From 991f26bed3c2ecaf1e193de6d98988bf556d0df6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 27 Oct 2026 17:13:26 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ctorRunsActorRunsGetCommandApiCommand.g.cs | 13 + .../Commands/ActorStandbyOptionSet.g.cs | 13 +- ...sksActorTaskInputPutCommandApiCommand.g.cs | 2 +- ...torTasksActorTaskPutCommandApiCommand.g.cs | 11 +- ...sActorTaskRunSyncGetCommandApiCommand.g.cs | 8 + ...ActorOAuthAccountGetCommandApiCommand.g.cs | 72 + ...ctorOAuthAccountsGetCommandApiCommand.g.cs | 71 + ...rOauthConnectionsGetCommandApiCommand.g.cs | 73 + .../ActorsActorPutCommandApiCommand.g.cs | 25 +- ...rRunsActorRunSyncGetCommandApiCommand.g.cs | 13 + ...ncGetDatasetItemsGetCommandApiCommand.g.cs | 13 + ...cGetDatasetItemsPostCommandApiCommand.g.cs | 13 + ...RunsActorRunSyncPostCommandApiCommand.g.cs | 13 + ...torRunsActorsRunsGetCommandApiCommand.g.cs | 13 + ...ersionBuildOnPushPutCommandApiCommand.g.cs | 80 + ...ctorVersionEnvVarPutCommandApiCommand.g.cs | 2 +- ...sionsActorVersionPutCommandApiCommand.g.cs | 2 +- .../ActorsActorVersionsApiGroupCommand.g.cs | 1 + .../ActorsActorsPostCommandApiCommand.g.cs | 23 +- .../Commands/ActorsApiGroupCommand.g.cs | 3 + ...tionActorWebhooksGetCommandApiCommand.g.cs | 4 +- .../Commands/DefaultRunOptionsOptionSet.g.cs | 11 +- .../Commands/SchedulesApiGroupCommand.g.cs | 1 + ...esScheduleInvokePostCommandApiCommand.g.cs | 71 + ...SchedulesSchedulePutCommandApiCommand.g.cs | 2 +- ...hedulesSchedulesPostCommandApiCommand.g.cs | 2 +- .../StoreStoreGetCommandApiCommand.g.cs | 10 + .../UpdateLimitsRequestOptionSet.g.cs | 29 + .../Commands/UsersApiGroupCommand.g.cs | 3 + ...onsGitCreateRepoPostCommandApiCommand.g.cs | 159 + ...rsIntegrationsGitGetCommandApiCommand.g.cs | 78 + ...terDeploymentKeyPostCommandApiCommand.g.cs | 95 + .../Commands/UsersUsageApiGroupCommand.g.cs | 3 + ...sUsageUsersLimitsGetCommandApiCommand.g.cs | 72 + ...sUsageUsersLimitsPutCommandApiCommand.g.cs | 114 + ...sageUsersMeLimitsPutCommandApiCommand.g.cs | 23 +- ...UsersUsageMonthlyGetCommandApiCommand.g.cs | 84 + .../UsersUserGetCommandApiCommand.g.cs | 8 +- ...ksWebhooksWebhookPutCommandApiCommand.g.cs | 2 +- ...ify.ActorBuilds.JsonSerializerContext.g.cs | 1 + ...Apify.ActorRuns.JsonSerializerContext.g.cs | 5 + .../Apify.ActorRunsClient.ActorRunsGet.g.cs | 22 +- ...pify.ActorTasks.JsonSerializerContext.g.cs | 35 +- ...fy.ActorTasksClient.ActorTaskInputPut.g.cs | 6 +- ....ActorTasksClient.ActorTaskRunSyncGet.g.cs | 14 + .../Apify.Actors.JsonSerializerContext.g.cs | 29 + ...torsActorBuilds.JsonSerializerContext.g.cs | 1 + ...ActorsActorRuns.JsonSerializerContext.g.cs | 71 +- ...ActorsActorRunsClient.ActorRunSyncGet.g.cs | 22 +- ...Client.ActorRunSyncGetDatasetItemsGet.g.cs | 14 + ...lient.ActorRunSyncGetDatasetItemsPost.g.cs | 19 + ...ctorsActorRunsClient.ActorRunSyncPost.g.cs | 19 + ...y.ActorsActorRunsClient.ActorsRunsGet.g.cs | 22 +- ...rsActorVersions.JsonSerializerContext.g.cs | 2 + ...ionsClient.ActorVersionBuildOnPushPut.g.cs | 792 ++++ ...rVersionsClient.ActorVersionEnvVarPut.g.cs | 6 +- ...rsActorVersionsClient.ActorVersionPut.g.cs | 6 +- ...ify.ActorsClient.ActorOAuthAccountGet.g.cs | 658 ++++ ...fy.ActorsClient.ActorOAuthAccountsGet.g.cs | 656 ++++ ...ActorsClient.ActorOauthConnectionsGet.g.cs | 658 ++++ .../Apify.ActorsClient.ActorPut.g.cs | 6 +- ...bhookCollection.JsonSerializerContext.g.cs | 24 +- ...hookCollectionClient.ActorWebhooksGet.g.cs | 12 +- .../Apify/Generated/Apify.ApifyClient.g.cs | 26 +- ....DefaultDataset.JsonSerializerContext.g.cs | 1 + ...ltKeyValueStore.JsonSerializerContext.g.cs | 1 + ...ultRequestQueue.JsonSerializerContext.g.cs | 1 + .../Apify.IActorRunsClient.ActorRunsGet.g.cs | 8 + ...y.IActorTasksClient.ActorTaskInputPut.g.cs | 6 +- ...IActorTasksClient.ActorTaskRunSyncGet.g.cs | 8 + ...ActorsActorRunsClient.ActorRunSyncGet.g.cs | 8 + ...Client.ActorRunSyncGetDatasetItemsGet.g.cs | 8 + ...lient.ActorRunSyncGetDatasetItemsPost.g.cs | 12 + ...ctorsActorRunsClient.ActorRunSyncPost.g.cs | 12 + ....IActorsActorRunsClient.ActorsRunsGet.g.cs | 8 + ...ionsClient.ActorVersionBuildOnPushPut.g.cs | 92 + ...rVersionsClient.ActorVersionEnvVarPut.g.cs | 6 +- ...rsActorVersionsClient.ActorVersionPut.g.cs | 6 +- ...fy.IActorsClient.ActorOAuthAccountGet.g.cs | 42 + ...y.IActorsClient.ActorOAuthAccountsGet.g.cs | 40 + ...ActorsClient.ActorOauthConnectionsGet.g.cs | 42 + .../Apify.IActorsClient.ActorPut.g.cs | 6 +- ...hookCollectionClient.ActorWebhooksGet.g.cs | 4 +- .../Apify/Generated/Apify.IApifyClient.g.cs | 26 +- ...y.ISchedulesClient.ScheduleInvokePost.g.cs | 40 + .../Apify.ISchedulesClient.SchedulePut.g.cs | 6 +- .../Apify.ISchedulesClient.SchedulesPost.g.cs | 6 +- .../Apify.IStoreClient.StoreGet.g.cs | 10 + ...sClient.IntegrationsGitCreateRepoPost.g.cs | 77 + ...Apify.IUsersClient.IntegrationsGitGet.g.cs | 38 + ...egrationsGitRegisterDeploymentKeyPost.g.cs | 76 + .../Generated/Apify.IUsersClient.UserGet.g.cs | 14 +- ...pify.IUsersUsageClient.UsersLimitsGet.g.cs | 42 + ...pify.IUsersUsageClient.UsersLimitsPut.g.cs | 76 + ...UsersUsageClient.UsersUsageMonthlyGet.g.cs | 54 + ...fy.IWebhooksWebhooksClient.WebhookPut.g.cs | 6 +- ...ActorOAuthConnectionOAuthProviderType.g.cs | 53 + ...thConnectionOAuthProviderTypeNullable.g.cs | 60 + ...etDatasetItemsGetForcePermissionLevel.g.cs | 53 + ...tItemsGetForcePermissionLevelNullable.g.cs | 60 + ...tDatasetItemsPostForcePermissionLevel.g.cs | 53 + ...ItemsPostForcePermissionLevelNullable.g.cs | 60 + ...s.ActorRunSyncGetForcePermissionLevel.g.cs | 53 + ...unSyncGetForcePermissionLevelNullable.g.cs | 60 + ....ActorRunSyncPostForcePermissionLevel.g.cs | 53 + ...nSyncPostForcePermissionLevelNullable.g.cs | 60 + ...erters.GitProviderIntegrationProvider.g.cs | 53 + ...itProviderIntegrationProviderNullable.g.cs | 60 + ...fy.JsonConverters.GitRepoFileEncoding.g.cs | 53 + ...onverters.GitRepoFileEncodingNullable.g.cs | 60 + ...JsonConverters.ListOfWebhookResources.g.cs | 116 + ...sonConverters.UserPlanMonitoringLevel.g.cs | 53 + ...rters.UserPlanMonitoringLevelNullable.g.cs | 60 + .../Apify.JsonSerializerContext.g.cs | 131 +- .../Apify.JsonSerializerContextTypes.g.cs | 916 +++-- ...tActorRunSAbort.JsonSerializerContext.g.cs | 7 + ...SDefaultDataset.JsonSerializerContext.g.cs | 1 + ...ltKeyValueStore.JsonSerializerContext.g.cs | 1 + ...ultRequestQueue.JsonSerializerContext.g.cs | 1 + ...astActorRunSLog.JsonSerializerContext.g.cs | 2 + ...orRunSMetamorph.JsonSerializerContext.g.cs | 7 + ...ActorRunSReboot.JsonSerializerContext.g.cs | 7 + ...orTaskRunSAbort.JsonSerializerContext.g.cs | 7 + ...SDefaultDataset.JsonSerializerContext.g.cs | 1 + ...ltKeyValueStore.JsonSerializerContext.g.cs | 1 + ...ultRequestQueue.JsonSerializerContext.g.cs | 1 + ...ctorTaskRunSLog.JsonSerializerContext.g.cs | 2 + ...skRunSMetamorph.JsonSerializerContext.g.cs | 7 + ...rTaskRunSReboot.JsonSerializerContext.g.cs | 7 + .../Apify.Logs.JsonSerializerContext.g.cs | 2 + .../Apify.Models.ActorOAuthAccount.Json.g.cs | 141 + .../Apify.Models.ActorOAuthAccount.g.cs | 119 + ...ify.Models.ActorOAuthAccountData.Json.g.cs | 141 + .../Apify.Models.ActorOAuthAccountData.g.cs | 20 + ...Models.ActorOAuthAccountResponse.Json.g.cs | 141 + ...pify.Models.ActorOAuthAccountResponse.g.cs | 47 + ...pify.Models.ActorOAuthConnection.Json.g.cs | 141 + .../Apify.Models.ActorOAuthConnection.g.cs | 97 + ....ActorOAuthConnectionCredentials.Json.g.cs | 141 + ...odels.ActorOAuthConnectionCredentials.g.cs | 75 + ...ActorOAuthConnectionOAuthProviderType.g.cs | 51 + .../Generated/Apify.Models.ActorResource.g.cs | 4 +- ...etDatasetItemsGetForcePermissionLevel.g.cs | 51 + ...tDatasetItemsPostForcePermissionLevel.g.cs | 51 + ...s.ActorRunSyncGetForcePermissionLevel.g.cs | 51 + ....ActorRunSyncPostForcePermissionLevel.g.cs | 51 + .../Generated/Apify.Models.ActorStandby.g.cs | 35 +- .../Apify/Generated/Apify.Models.Build.g.cs | 51 + .../Apify.Models.BuildActVersion.g.cs | 24 +- .../Generated/Apify.Models.BuildListItem.g.cs | 11 +- .../Generated/Apify.Models.BuildMeta.g.cs | 39 +- .../Generated/Apify.Models.BuildOptions.g.cs | 24 +- .../Apify.Models.CommonActorPricingInfo.g.cs | 9 + ...pify.Models.CreateGitRepoRequest.Json.g.cs | 141 + .../Apify.Models.CreateGitRepoRequest.g.cs | 93 + .../Apify.Models.CurrentPricingInfo.g.cs | 55 +- ....CurrentPricingInfoTieredPricing.Json.g.cs | 141 + ...odels.CurrentPricingInfoTieredPricing.g.cs | 19 + ...CurrentPricingInfoTieredPricing2.Json.g.cs | 141 + ...dels.CurrentPricingInfoTieredPricing2.g.cs | 44 + .../Generated/Apify.Models.CurrentUsage.g.cs | 11 +- .../Apify.Models.DatasetListItem.g.cs | 9 +- .../Apify.Models.DatasetResource.g.cs | 9 + .../Generated/Apify.Models.DatasetStats.g.cs | 8 +- .../Apify.Models.DefaultRunOptions.g.cs | 22 + .../Apify/Generated/Apify.Models.EnvVar.g.cs | 13 +- .../Generated/Apify.Models.ErrorDetail.g.cs | 13 +- .../Apify.Models.ErrorDetailData.Json.g.cs | 141 + .../Apify.Models.ErrorDetailData.g.cs | 19 + ...fy.Models.GitProviderIntegration.Json.g.cs | 141 + .../Apify.Models.GitProviderIntegration.g.cs | 83 + ...Models.GitProviderIntegrationProvider.g.cs | 57 + ...pify.Models.GitProviderWorkspace.Json.g.cs | 141 + .../Apify.Models.GitProviderWorkspace.g.cs | 59 + .../Generated/Apify.Models.GitRepo.Json.g.cs | 141 + .../Apify/Generated/Apify.Models.GitRepo.g.cs | 65 + .../Apify.Models.GitRepoFile.Json.g.cs | 141 + .../Generated/Apify.Models.GitRepoFile.g.cs | 66 + .../Apify.Models.GitRepoFileEncoding.g.cs | 51 + .../Apify.Models.GitRepoResponse.Json.g.cs | 141 + .../Apify.Models.GitRepoResponse.g.cs | 47 + ...Apify.Models.IntegrationTracking.Json.g.cs | 141 + .../Apify.Models.IntegrationTracking.g.cs | 68 + ...ify.Models.KeyValueStoreListItem.Json.g.cs | 141 + .../Apify.Models.KeyValueStoreListItem.g.cs | 158 + ...dels.KeyValueStoreListItemSchema.Json.g.cs | 141 + ...fy.Models.KeyValueStoreListItemSchema.g.cs | 19 + ...fy.Models.KeyValueStoreListStats.Json.g.cs | 141 + .../Apify.Models.KeyValueStoreListStats.g.cs | 82 + .../Apify.Models.KeyValueStoreResource.g.cs | 9 + .../Apify/Generated/Apify.Models.Limits.g.cs | 11 +- ....Models.ListOfActorOAuthAccounts.Json.g.cs | 141 + ...Apify.Models.ListOfActorOAuthAccounts.g.cs | 55 + ...ListOfActorOAuthAccountsResponse.Json.g.cs | 141 + ...dels.ListOfActorOAuthAccountsResponse.g.cs | 45 + ...dels.ListOfActorOAuthConnections.Json.g.cs | 141 + ...fy.Models.ListOfActorOAuthConnections.g.cs | 55 + ...tOfActorOAuthConnectionsResponse.Json.g.cs | 141 + ...s.ListOfActorOAuthConnectionsResponse.g.cs | 45 + ...fGitProviderIntegrationsResponse.Json.g.cs | 141 + ...ListOfGitProviderIntegrationsResponse.g.cs | 45 + ...y.Models.ListOfKeyValueStoresVariant2.g.cs | 4 +- ...fy.Models.ListOfWebhookResources.Json.g.cs | 141 + .../Apify.Models.ListOfWebhookResources.g.cs | 295 ++ ...s.ListOfWebhookResourcesResponse.Json.g.cs | 141 + ...Models.ListOfWebhookResourcesResponse.g.cs | 48 + ...s.ListOfWebhookResourcesVariant2.Json.g.cs | 141 + ...Models.ListOfWebhookResourcesVariant2.g.cs | 45 + ...s.PayPerEventActorPricingInfoVariant2.g.cs | 11 + .../Generated/Apify.Models.ProxyGroup.g.cs | 18 +- .../Generated/Apify.Models.ProxyResource.g.cs | 13 +- ...els.RegisterDeploymentKeyRequest.Json.g.cs | 141 + ...y.Models.RegisterDeploymentKeyRequest.g.cs | 59 + ...ls.RegisterDeploymentKeyResponse.Json.g.cs | 141 + ....Models.RegisterDeploymentKeyResponse.g.cs | 45 + ...egisterDeploymentKeyResponseData.Json.g.cs | 141 + ...els.RegisterDeploymentKeyResponseData.g.cs | 47 + .../Apify.Models.RequestQueueListItem.g.cs | 45 +- ...ify.Models.RequestQueueListStats.Json.g.cs | 141 + .../Apify.Models.RequestQueueListStats.g.cs | 101 + .../Apify.Models.RequestQueueResource.g.cs | 11 + .../Apify.Models.RequestResourceVariant2.g.cs | 26 +- .../Apify/Generated/Apify.Models.Run.g.cs | 94 + ...s.RunAccountedChargedEventCounts.Json.g.cs | 141 + ...Models.RunAccountedChargedEventCounts.g.cs | 20 + .../Apify.Models.RunEventUsage.Json.g.cs | 141 + .../Generated/Apify.Models.RunEventUsage.g.cs | 59 + .../Apify.Models.RunEventUsage2.Json.g.cs | 141 + .../Apify.Models.RunEventUsage2.g.cs | 19 + .../Generated/Apify.Models.RunListItem.g.cs | 13 +- .../Apify/Generated/Apify.Models.RunMeta.g.cs | 46 +- .../Apify.Models.RunMetamorphEvent.g.cs | 13 +- .../Generated/Apify.Models.RunOptions.g.cs | 24 +- .../Apify.Models.RunOutput.Json.g.cs | 141 + .../Generated/Apify.Models.RunOutput.g.cs | 20 + .../Apify.Models.RunStandby.Json.g.cs | 141 + .../Generated/Apify.Models.RunStandby.g.cs | 49 + .../Generated/Apify.Models.RunUsage.g.cs | 11 +- .../Generated/Apify.Models.RunUsageUsd.g.cs | 11 +- ...odels.ScheduleInvokePostResponse.Json.g.cs | 141 + ...ify.Models.ScheduleInvokePostResponse.g.cs | 19 + ...Apify.Models.ScheduleListItemVariant2.g.cs | 33 +- .../Apify.Models.ScheduleUiState.Json.g.cs | 141 + .../Apify.Models.ScheduleUiState.g.cs | 57 + ...Apify.Models.ScheduleUiStateData.Json.g.cs | 141 + .../Apify.Models.ScheduleUiStateData.g.cs | 53 + .../Apify.Models.ScheduleVariant2.g.cs | 24 +- .../Generated/Apify.Models.StoreActor.g.cs | 13 +- ...ify.Models.StoreActorInputSchema.Json.g.cs | 141 + .../Apify.Models.StoreActorInputSchema.g.cs | 64 + ....StoreActorInputSchemaProperties.Json.g.cs | 141 + ...odels.StoreActorInputSchemaProperties.g.cs | 19 + ...StoreActorInputSchemaProperties2.Json.g.cs | 141 + ...dels.StoreActorInputSchemaProperties2.g.cs | 45 + .../Apify/Generated/Apify.Models.Task.g.cs | 11 + .../Generated/Apify.Models.TaskListItem.g.cs | 22 +- .../Generated/Apify.Models.TaskOptions.g.cs | 24 +- .../Apify.Models.TaskPublicConfig.g.cs | 35 +- ...y.Models.TaskPublicConfigFaqItem.Json.g.cs | 141 + .../Apify.Models.TaskPublicConfigFaqItem.g.cs | 55 + .../Generated/Apify.Models.TaskStats.g.cs | 13 +- ....Models.UpdateBuildOnPushRequest.Json.g.cs | 141 + ...Apify.Models.UpdateBuildOnPushRequest.g.cs | 61 + .../Generated/Apify.Models.UserPlan.g.cs | 120 +- .../Apify.Models.UserPlanMonitoringLevel.g.cs | 45 + .../Apify.Models.UserPrivateInfo.g.cs | 25 +- ...fy.Models.UsersLimitsPutResponse.Json.g.cs | 141 + .../Apify.Models.UsersLimitsPutResponse.g.cs | 19 + .../Apify/Generated/Apify.Models.Version.g.cs | 35 +- ...els.WebhookDatasetTransformation.Json.g.cs | 141 + ...y.Models.WebhookDatasetTransformation.g.cs | 53 + .../Apify.Models.WebhookDispatchCall.g.cs | 13 +- ...hookDispatchCallDebugPostMessage.Json.g.cs | 141 + ...s.WebhookDispatchCallDebugPostMessage.g.cs | 19 + ....Models.WebhookDispatchWebhookSummary.g.cs | 66 +- .../Apify.Models.WebhookGithubIssue.Json.g.cs | 141 + .../Apify.Models.WebhookGithubIssue.g.cs | 71 + .../Apify.Models.WebhookGoogleDrive.Json.g.cs | 141 + .../Apify.Models.WebhookGoogleDrive.g.cs | 73 + .../Apify.Models.WebhookGoogleMail.Json.g.cs | 141 + .../Apify.Models.WebhookGoogleMail.g.cs | 91 + .../Apify.Models.WebhookListItem.g.cs | 84 +- .../Apify.Models.WebhookResource.g.cs | 82 + ...Apify.Models.WebhookSlackMessage.Json.g.cs | 141 + .../Apify.Models.WebhookSlackMessage.g.cs | 62 + ...Apify.Schedules.JsonSerializerContext.g.cs | 22 +- ...fy.SchedulesClient.ScheduleInvokePost.g.cs | 652 ++++ .../Apify.SchedulesClient.SchedulePut.g.cs | 6 +- .../Apify.SchedulesClient.SchedulesPost.g.cs | 6 +- ...StorageDatasets.JsonSerializerContext.g.cs | 1 + ...eKeyValueStores.JsonSerializerContext.g.cs | 7 +- ...geRequestQueues.JsonSerializerContext.g.cs | 2 + ...tQueuesRequests.JsonSerializerContext.g.cs | 1 + ...esRequestsLocks.JsonSerializerContext.g.cs | 2 + .../Apify.Store.JsonSerializerContext.g.cs | 9 + .../Generated/Apify.StoreClient.StoreGet.g.cs | 24 +- .../Apify.Tools.JsonSerializerContext.g.cs | 3 +- ...y.ToolsEncoding.JsonSerializerContext.g.cs | 1 + .../Apify.Users.JsonSerializerContext.g.cs | 70 +- ...sClient.IntegrationsGitCreateRepoPost.g.cs | 797 ++++ .../Apify.UsersClient.IntegrationsGitGet.g.cs | 612 +++ ...egrationsGitRegisterDeploymentKeyPost.g.cs | 793 ++++ .../Generated/Apify.UsersClient.UserGet.g.cs | 22 +- ...pify.UsersUsage.JsonSerializerContext.g.cs | 1 + ...Apify.UsersUsageClient.UsersLimitsGet.g.cs | 658 ++++ ...Apify.UsersUsageClient.UsersLimitsPut.g.cs | 789 ++++ ...UsersUsageClient.UsersUsageMonthlyGet.g.cs | 678 ++++ ...bhookDispatches.JsonSerializerContext.g.cs | 8 + ...ebhooksWebhooks.JsonSerializerContext.g.cs | 12 +- ...ify.WebhooksWebhooksClient.WebhookPut.g.cs | 6 +- .../Generated/autosdk.generated-examples.json | 533 ++- src/libs/Apify/openapi.yaml | 3460 ++++++++++++++--- 312 files changed, 26934 insertions(+), 1253 deletions(-) create mode 100644 src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountGetCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountsGetCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/ActorsActorOauthConnectionsGetCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/SchedulesScheduleInvokePostCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UpdateLimitsRequestOptionSet.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersIntegrationsGitCreateRepoPostCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersIntegrationsGitGetCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsGetCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsPutCommandApiCommand.g.cs create mode 100644 src/cli/Apify.CLI/Commands/UsersUsageUsersUsageMonthlyGetCommandApiCommand.g.cs create mode 100644 src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs create mode 100644 src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.ActorsClient.ActorOauthConnectionsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IActorsClient.ActorOauthConnectionsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.ISchedulesClient.ScheduleInvokePost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitCreateRepoPost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsPut.g.cs create mode 100644 src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersUsageMonthlyGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderType.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProvider.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProviderNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncoding.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncodingNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.ListOfWebhookResources.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevelNullable.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionOAuthProviderType.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ActorRunSyncPostForcePermissionLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ErrorDetailData.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ErrorDetailData.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitProviderIntegrationProvider.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepo.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepo.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepoFile.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepoFile.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepoFileEncoding.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepoResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.GitRepoResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.IntegrationTracking.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.IntegrationTracking.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunEventUsage.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunEventUsage.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunEventUsage2.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunEventUsage2.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunOutput.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunOutput.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunStandby.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.RunStandby.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleUiState.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleUiState.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.UserPlanMonitoringLevel.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.Json.g.cs create mode 100644 src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.g.cs create mode 100644 src/libs/Apify/Generated/Apify.SchedulesClient.ScheduleInvokePost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitCreateRepoPost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsGet.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsPut.g.cs create mode 100644 src/libs/Apify/Generated/Apify.UsersUsageClient.UsersUsageMonthlyGet.g.cs diff --git a/src/cli/Apify.CLI/Commands/ActorRunsActorRunsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorRunsActorRunsGetCommandApiCommand.g.cs index 0153b908..10f5c14a 100644 --- a/src/cli/Apify.CLI/Commands/ActorRunsActorRunsGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorRunsActorRunsGetCommandApiCommand.g.cs @@ -48,6 +48,16 @@ The value must be a valid ISO 8601 datetime string (UTC). { Description = @"Filter runs that started before the specified date and time (inclusive). The value must be a valid ISO 8601 datetime string (UTC). +", + }; + + private static Option?> Deployment { get; } = new( + name: @"--deployment") + { + Description = @"Single Actor Standby deployment or comma-separated list of deployments (`SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, +`MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`). Used to filter Actor Standby runs by the pool that +serves them. Requires the `status` parameter with only non-terminal statuses (`READY`, `RUNNING`, `TIMING-OUT` or +`ABORTING`). ", }; @@ -94,6 +104,7 @@ each object contains basic information about a single Actor run. command.Options.Add(Status); command.Options.Add(StartedAfter); command.Options.Add(StartedBefore); + command.Options.Add(Deployment); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => @@ -105,6 +116,7 @@ await CliRuntime.RunAsync(async () => var status = parseResult.GetValue(Status); var startedAfter = parseResult.GetValue(StartedAfter); var startedBefore = parseResult.GetValue(StartedBefore); + var deployment = parseResult.GetValue(Deployment); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -115,6 +127,7 @@ await CliRuntime.RunAsync(async () => status: status, startedAfter: startedAfter, startedBefore: startedBefore, + deployment: deployment, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorStandbyOptionSet.g.cs b/src/cli/Apify.CLI/Commands/ActorStandbyOptionSet.g.cs index 50831a93..49a7c336 100644 --- a/src/cli/Apify.CLI/Commands/ActorStandbyOptionSet.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorStandbyOptionSet.g.cs @@ -12,7 +12,10 @@ internal sealed record ActorStandbyOptionSet( Option Build, Option MemoryMbytes, Option DisableStandbyFieldsOverride, - Option ShouldPassActorInput) + Option ShouldPassActorInput, + Option Tenancy, + Option IsConsoleAuthEnabled, + Option IsTokenlessEnabled) { public static ActorStandbyOptionSet Create(string? prefix = null) { @@ -42,7 +45,13 @@ public static ActorStandbyOptionSet Create(string? prefix = null) Description = @"In MB, the amount of memory allocated to the run.", }, DisableStandbyFieldsOverride: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}disable-standby-fields-override", description: @"If `true`, prevents the standby mode configuration from being overridden elsewhere."), - ShouldPassActorInput: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}should-pass-actor-input", description: @"Whether to pass the Actor's input to the standby run. If `false`, the standby runs start with no input.") + ShouldPassActorInput: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}should-pass-actor-input", description: @"Whether to pass the Actor's input to the standby run. If `false`, the standby runs start with no input."), + Tenancy: new Option($"--{normalizedPrefix}tenancy") + { + Description = @"Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). Set by Apify.", + }, + IsConsoleAuthEnabled: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}is-console-auth-enabled", description: @"Whether standby requests can be authenticated with an Apify Console session. Set by Apify."), + IsTokenlessEnabled: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}is-tokenless-enabled", description: @"Whether standby requests can be made without an API token. Set by Apify.") ); } } \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskInputPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskInputPutCommandApiCommand.g.cs index f7c7b150..916ce12e 100644 --- a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskInputPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskInputPutCommandApiCommand.g.cs @@ -67,7 +67,7 @@ [Get Actor task input](/api/v2/actor-task-input-get) endpoint. When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). "); command.Arguments.Add(ActorTaskId); command.Options.Add(Input); diff --git a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskPutCommandApiCommand.g.cs index 76edb289..f00b5893 100644 --- a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskPutCommandApiCommand.g.cs @@ -147,6 +147,9 @@ [Get Actor task](/api/v2/actor-task-get) endpoint. command.Options.Add(ActorStandbyOptions.MemoryMbytes); command.Options.Add(ActorStandbyOptions.DisableStandbyFieldsOverride); command.Options.Add(ActorStandbyOptions.ShouldPassActorInput); + command.Options.Add(ActorStandbyOptions.Tenancy); + command.Options.Add(ActorStandbyOptions.IsConsoleAuthEnabled); + command.Options.Add(ActorStandbyOptions.IsTokenlessEnabled); command.Options.Add(RequestInput); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -189,7 +192,10 @@ await CliRuntime.RunAsync(async () => var actorStandbyMemoryMbytes = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) ? parseResult.GetValue(ActorStandbyOptions.MemoryMbytes) : (__ActorStandbyBase is { } __ActorStandbymemoryMbytesBaseValue ? __ActorStandbymemoryMbytesBaseValue.MemoryMbytes : default); var actorStandbyDisableStandbyFieldsOverride = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) ? parseResult.GetValue(ActorStandbyOptions.DisableStandbyFieldsOverride) : (__ActorStandbyBase is { } __ActorStandbydisableStandbyFieldsOverrideBaseValue ? __ActorStandbydisableStandbyFieldsOverrideBaseValue.DisableStandbyFieldsOverride : default); var actorStandbyShouldPassActorInput = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) ? parseResult.GetValue(ActorStandbyOptions.ShouldPassActorInput) : (__ActorStandbyBase is { } __ActorStandbyshouldPassActorInputBaseValue ? __ActorStandbyshouldPassActorInputBaseValue.ShouldPassActorInput : default); - var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput); + var actorStandbyTenancy = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) ? parseResult.GetValue(ActorStandbyOptions.Tenancy) : (__ActorStandbyBase is { } __ActorStandbytenancyBaseValue ? __ActorStandbytenancyBaseValue.Tenancy : default); + var actorStandbyIsConsoleAuthEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsConsoleAuthEnabled) : (__ActorStandbyBase is { } __ActorStandbyisConsoleAuthEnabledBaseValue ? __ActorStandbyisConsoleAuthEnabledBaseValue.IsConsoleAuthEnabled : default); + var actorStandbyIsTokenlessEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsTokenlessEnabled) : (__ActorStandbyBase is { } __ActorStandbyisTokenlessEnabledBaseValue ? __ActorStandbyisTokenlessEnabledBaseValue.IsTokenlessEnabled : default); + var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled); var actorStandby = __ActorStandbySpecified || __ActorStandbyBase is not null ? new global::Apify.ActorStandby @@ -202,6 +208,9 @@ await CliRuntime.RunAsync(async () => MemoryMbytes = actorStandbyMemoryMbytes, DisableStandbyFieldsOverride = actorStandbyDisableStandbyFieldsOverride, ShouldPassActorInput = actorStandbyShouldPassActorInput, + Tenancy = actorStandbyTenancy, + IsConsoleAuthEnabled = actorStandbyIsConsoleAuthEnabled, + IsTokenlessEnabled = actorStandbyIsTokenlessEnabled, } : __ActorStandbyBase; diff --git a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskRunSyncGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskRunSyncGetCommandApiCommand.g.cs index c49d9d54..560ccf1c 100644 --- a/src/cli/Apify.CLI/Commands/ActorTasksActorTaskRunSyncGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorTasksActorTaskRunSyncGetCommandApiCommand.g.cs @@ -50,6 +50,11 @@ You can access the maximum cost in your Actor ", }; + private static Option RestartOnError { get; } = CliRuntime.CreateNullableBoolOption( + name: @"--restart-on-error", + description: @"Determines whether the run will be restarted if it fails. +"); + private static Option Build { get; } = new( name: @"--build") { @@ -131,6 +136,7 @@ endpoint instead. command.Options.Add(Memory); command.Options.Add(MaxItems); command.Options.Add(MaxTotalChargeUsd); + command.Options.Add(RestartOnError); command.Options.Add(Build); command.Options.Add(OutputRecordKey); command.Options.Add(Webhooks); @@ -144,6 +150,7 @@ await CliRuntime.RunAsync(async () => var memory = parseResult.GetValue(Memory); var maxItems = parseResult.GetValue(MaxItems); var maxTotalChargeUsd = parseResult.GetValue(MaxTotalChargeUsd); + var restartOnError = parseResult.GetValue(RestartOnError); var build = parseResult.GetValue(Build); var outputRecordKey = parseResult.GetValue(OutputRecordKey); var webhooks = parseResult.GetValue(Webhooks); @@ -156,6 +163,7 @@ await CliRuntime.RunAsync(async () => memory: memory, maxItems: maxItems, maxTotalChargeUsd: maxTotalChargeUsd, + restartOnError: restartOnError, build: build, outputRecordKey: outputRecordKey, webhooks: webhooks, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountGetCommandApiCommand.g.cs new file mode 100644 index 00000000..9e13dc1e --- /dev/null +++ b/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountGetCommandApiCommand.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class ActorsActorOAuthAccountGetCommandApiCommand +{ + private static Argument AccountId { get; } = new( + name: @"account-id") + { + Description = @"Actor OAuth account ID.", + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.ActorOAuthAccountResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ActorOAuthAccountResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"oauth-account-get", @"Get Actor OAuth account +Gets an account connected through an Actor OAuth connection, including its OAuth tokens. + +This endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run). +The run must belong to the Actor that the account's OAuth connection is configured on, and the account must +belong to the user the run's token acts for. Any other token gets a `403` error. +"); + command.Arguments.Add(AccountId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var accountId = parseResult.GetRequiredValue(AccountId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Actors.ActorOAuthAccountGetAsync( + accountId: accountId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountsGetCommandApiCommand.g.cs new file mode 100644 index 00000000..67630538 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/ActorsActorOAuthAccountsGetCommandApiCommand.g.cs @@ -0,0 +1,71 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class ActorsActorOAuthAccountsGetCommandApiCommand +{ + private static Argument ConnectionId { get; } = new( + name: @"connection-id") + { + Description = @"Actor OAuth connection ID.", + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfActorOAuthAccountsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfActorOAuthAccountsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"oauth-accounts-get", @"Get list of Actor OAuth accounts +Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts +that finished authorization are returned. + +There are at most 5 accounts per user and connection, so the list is not paginated. +"); + command.Arguments.Add(ConnectionId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var connectionId = parseResult.GetRequiredValue(ConnectionId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Actors.ActorOAuthAccountsGetAsync( + connectionId: connectionId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ActorsActorOauthConnectionsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorOauthConnectionsGetCommandApiCommand.g.cs new file mode 100644 index 00000000..1fba7966 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/ActorsActorOauthConnectionsGetCommandApiCommand.g.cs @@ -0,0 +1,73 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class ActorsActorOauthConnectionsGetCommandApiCommand +{ + private static Argument ActorId { get; } = new( + name: @"actor-id") + { + Description = @"Actor ID or the username of the Actor owner and the Actor name, separated by a tilde (`~`).", + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfActorOAuthConnectionsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfActorOAuthConnectionsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"oauth-connections-get", @"Get list of Actor OAuth connections +Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the +Actor can connect their accounts through. Only public credential fields are returned, never the client secret. + +An Actor has at most 5 connections, so the list is not paginated. + +You need read access to the Actor. +"); + command.Arguments.Add(ActorId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var actorId = parseResult.GetRequiredValue(ActorId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Actors.ActorOauthConnectionsGetAsync( + actorId: actorId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs index 9688b754..ba4f2c99 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorPutCommandApiCommand.g.cs @@ -140,7 +140,7 @@ [Get Actor](/api/v2/actor-get) endpoint. To provide the authentication token, we recommend using the request's `Authorization` header, rather than the URL. For details, -see [Authentication](/api/v2/getting-started#authentication). +see [Authentication](/api/v2#authentication). ### Make an Actor public @@ -203,14 +203,19 @@ Changing tags is a patch operation. Only the tags that you provide in this objec command.Options.Add(DefaultRunOptionsOptions.TimeoutSecs); command.Options.Add(DefaultRunOptionsOptions.MemoryMbytes); command.Options.Add(DefaultRunOptionsOptions.RestartOnError); - command.Options.Add(DefaultRunOptionsOptions.MaxItems); command.Options.Add(ActorStandbyOptions.IsEnabled); + command.Options.Add(DefaultRunOptionsOptions.MaxItems); + command.Options.Add(DefaultRunOptionsOptions.MaxTotalChargeUsd); + command.Options.Add(DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser); command.Options.Add(ActorStandbyOptions.IsEnabled); command.Options.Add(ActorStandbyOptions.DesiredRequestsPerActorRun); command.Options.Add(ActorStandbyOptions.MaxRequestsPerActorRun); command.Options.Add(ActorStandbyOptions.IdleTimeoutSecs); command.Options.Add(ActorStandbyOptions.Build); command.Options.Add(ActorStandbyOptions.MemoryMbytes); command.Options.Add(ActorStandbyOptions.DisableStandbyFieldsOverride); - command.Options.Add(ActorStandbyOptions.ShouldPassActorInput); command.Options.Add(ExampleRunInputOptions.Body); + command.Options.Add(ActorStandbyOptions.ShouldPassActorInput); + command.Options.Add(ActorStandbyOptions.Tenancy); + command.Options.Add(ActorStandbyOptions.IsConsoleAuthEnabled); + command.Options.Add(ActorStandbyOptions.IsTokenlessEnabled); command.Options.Add(ExampleRunInputOptions.Body); command.Options.Add(ExampleRunInputOptions.ContentType); command.Options.Add(Input); command.Options.Add(RequestJson); @@ -256,7 +261,9 @@ await CliRuntime.RunAsync(async () => var defaultRunOptionsMemoryMbytes = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) ? parseResult.GetValue(DefaultRunOptionsOptions.MemoryMbytes) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmemoryMbytesBaseValue ? __DefaultRunOptionsmemoryMbytesBaseValue.MemoryMbytes : default); var defaultRunOptionsRestartOnError = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) ? parseResult.GetValue(DefaultRunOptionsOptions.RestartOnError) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsrestartOnErrorBaseValue ? __DefaultRunOptionsrestartOnErrorBaseValue.RestartOnError : default); var defaultRunOptionsMaxItems = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems) ? parseResult.GetValue(DefaultRunOptionsOptions.MaxItems) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmaxItemsBaseValue ? __DefaultRunOptionsmaxItemsBaseValue.MaxItems : default); - var __DefaultRunOptionsSpecified = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.Build) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.TimeoutSecs) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems); + var defaultRunOptionsMaxTotalChargeUsd = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxTotalChargeUsd) ? parseResult.GetValue(DefaultRunOptionsOptions.MaxTotalChargeUsd) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmaxTotalChargeUsdBaseValue ? __DefaultRunOptionsmaxTotalChargeUsdBaseValue.MaxTotalChargeUsd : default); + var defaultRunOptionsIsMaxTotalChargeUsdSetByUser = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser) ? parseResult.GetValue(DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsisMaxTotalChargeUsdSetByUserBaseValue ? __DefaultRunOptionsisMaxTotalChargeUsdSetByUserBaseValue.IsMaxTotalChargeUsdSetByUser : default); + var __DefaultRunOptionsSpecified = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.Build) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.TimeoutSecs) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxTotalChargeUsd) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser); var defaultRunOptions = __DefaultRunOptionsSpecified || __DefaultRunOptionsBase is not null ? new global::Apify.DefaultRunOptions @@ -266,6 +273,8 @@ await CliRuntime.RunAsync(async () => MemoryMbytes = defaultRunOptionsMemoryMbytes, RestartOnError = defaultRunOptionsRestartOnError, MaxItems = defaultRunOptionsMaxItems, + MaxTotalChargeUsd = defaultRunOptionsMaxTotalChargeUsd, + IsMaxTotalChargeUsdSetByUser = defaultRunOptionsIsMaxTotalChargeUsdSetByUser, } : __DefaultRunOptionsBase; @@ -278,7 +287,10 @@ await CliRuntime.RunAsync(async () => var actorStandbyMemoryMbytes = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) ? parseResult.GetValue(ActorStandbyOptions.MemoryMbytes) : (__ActorStandbyBase is { } __ActorStandbymemoryMbytesBaseValue ? __ActorStandbymemoryMbytesBaseValue.MemoryMbytes : default); var actorStandbyDisableStandbyFieldsOverride = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) ? parseResult.GetValue(ActorStandbyOptions.DisableStandbyFieldsOverride) : (__ActorStandbyBase is { } __ActorStandbydisableStandbyFieldsOverrideBaseValue ? __ActorStandbydisableStandbyFieldsOverrideBaseValue.DisableStandbyFieldsOverride : default); var actorStandbyShouldPassActorInput = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) ? parseResult.GetValue(ActorStandbyOptions.ShouldPassActorInput) : (__ActorStandbyBase is { } __ActorStandbyshouldPassActorInputBaseValue ? __ActorStandbyshouldPassActorInputBaseValue.ShouldPassActorInput : default); - var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput); + var actorStandbyTenancy = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) ? parseResult.GetValue(ActorStandbyOptions.Tenancy) : (__ActorStandbyBase is { } __ActorStandbytenancyBaseValue ? __ActorStandbytenancyBaseValue.Tenancy : default); + var actorStandbyIsConsoleAuthEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsConsoleAuthEnabled) : (__ActorStandbyBase is { } __ActorStandbyisConsoleAuthEnabledBaseValue ? __ActorStandbyisConsoleAuthEnabledBaseValue.IsConsoleAuthEnabled : default); + var actorStandbyIsTokenlessEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsTokenlessEnabled) : (__ActorStandbyBase is { } __ActorStandbyisTokenlessEnabledBaseValue ? __ActorStandbyisTokenlessEnabledBaseValue.IsTokenlessEnabled : default); + var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled); var actorStandby = __ActorStandbySpecified || __ActorStandbyBase is not null ? new global::Apify.ActorStandby @@ -291,6 +303,9 @@ await CliRuntime.RunAsync(async () => MemoryMbytes = actorStandbyMemoryMbytes, DisableStandbyFieldsOverride = actorStandbyDisableStandbyFieldsOverride, ShouldPassActorInput = actorStandbyShouldPassActorInput, + Tenancy = actorStandbyTenancy, + IsConsoleAuthEnabled = actorStandbyIsConsoleAuthEnabled, + IsTokenlessEnabled = actorStandbyIsTokenlessEnabled, } : __ActorStandbyBase; diff --git a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetCommandApiCommand.g.cs index bd510836..ecca4dbf 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetCommandApiCommand.g.cs @@ -79,6 +79,16 @@ You can access the maximum cost in your Actor e.g. when the Actor finished or failed. The value is a Base64-encoded JSON array whose items follow the WebhookRepresentation schema. For more information, see [Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks). +", + }; + + private static Option ForcePermissionLevel { get; } = new( + name: @"--force-permission-level") + { + Description = @"Overrides the Actor's permission level for this specific run. Use to test restricted permissions +before deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this +parameter, the Actor uses its configured default permission level. For more information on permissions, see the +[documentation](https://docs.apify.com/platform/actors/development/permissions). ", }; @@ -135,6 +145,7 @@ and its status. command.Options.Add(RestartOnError); command.Options.Add(Build); command.Options.Add(Webhooks); + command.Options.Add(ForcePermissionLevel); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => @@ -149,6 +160,7 @@ await CliRuntime.RunAsync(async () => var restartOnError = parseResult.GetValue(RestartOnError); var build = parseResult.GetValue(Build); var webhooks = parseResult.GetValue(Webhooks); + var forcePermissionLevel = parseResult.GetValue(ForcePermissionLevel); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -162,6 +174,7 @@ await CliRuntime.RunAsync(async () => restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsGetCommandApiCommand.g.cs index 4ad92c1b..88dbad69 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsGetCommandApiCommand.g.cs @@ -73,6 +73,16 @@ [Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks). ", }; + private static Option ForcePermissionLevel { get; } = new( + name: @"--force-permission-level") + { + Description = @"Overrides the Actor's permission level for this specific run. Use to test restricted permissions +before deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this +parameter, the Actor uses its configured default permission level. For more information on permissions, see the +[documentation](https://docs.apify.com/platform/actors/development/permissions). +", + }; + private static Option Format { get; } = new( name: @"--format") { @@ -295,6 +305,7 @@ and its status. command.Options.Add(RestartOnError); command.Options.Add(Build); command.Options.Add(Webhooks); + command.Options.Add(ForcePermissionLevel); command.Options.Add(Format); command.Options.Add(Clean); command.Options.Add(Offset); @@ -331,6 +342,7 @@ await CliRuntime.RunAsync(async () => var restartOnError = parseResult.GetValue(RestartOnError); var build = parseResult.GetValue(Build); var webhooks = parseResult.GetValue(Webhooks); + var forcePermissionLevel = parseResult.GetValue(ForcePermissionLevel); var format = parseResult.GetValue(Format); var clean = parseResult.GetValue(Clean); var offset = parseResult.GetValue(Offset); @@ -366,6 +378,7 @@ await CliRuntime.RunAsync(async () => restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsPostCommandApiCommand.g.cs index 520b740b..c307b8ec 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncGetDatasetItemsPostCommandApiCommand.g.cs @@ -73,6 +73,16 @@ [Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks). ", }; + private static Option ForcePermissionLevel { get; } = new( + name: @"--force-permission-level") + { + Description = @"Overrides the Actor's permission level for this specific run. Use to test restricted permissions +before deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this +parameter, the Actor uses its configured default permission level. For more information on permissions, see the +[documentation](https://docs.apify.com/platform/actors/development/permissions). +", + }; + private static Option Format { get; } = new( name: @"--format") { @@ -318,6 +328,7 @@ and its status. command.Options.Add(RestartOnError); command.Options.Add(Build); command.Options.Add(Webhooks); + command.Options.Add(ForcePermissionLevel); command.Options.Add(Format); command.Options.Add(Clean); command.Options.Add(Offset); @@ -367,6 +378,7 @@ await CliRuntime.RunAsync(async () => var restartOnError = parseResult.GetValue(RestartOnError); var build = parseResult.GetValue(Build); var webhooks = parseResult.GetValue(Webhooks); + var forcePermissionLevel = parseResult.GetValue(ForcePermissionLevel); var format = parseResult.GetValue(Format); var clean = parseResult.GetValue(Clean); var offset = parseResult.GetValue(Offset); @@ -409,6 +421,7 @@ await CliRuntime.RunAsync(async () => restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, diff --git a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncPostCommandApiCommand.g.cs index 67e15b16..cdfb7579 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorRunSyncPostCommandApiCommand.g.cs @@ -79,6 +79,16 @@ You can access the maximum cost in your Actor e.g. when the Actor finished or failed. The value is a Base64-encoded JSON array whose items follow the WebhookRepresentation schema. For more information, see [Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks). +", + }; + + private static Option ForcePermissionLevel { get; } = new( + name: @"--force-permission-level") + { + Description = @"Overrides the Actor's permission level for this specific run. Use to test restricted permissions +before deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this +parameter, the Actor uses its configured default permission level. For more information on permissions, see the +[documentation](https://docs.apify.com/platform/actors/development/permissions). ", }; private static Option Input { get; } = new(@"--input") @@ -157,6 +167,7 @@ and its status. command.Options.Add(RestartOnError); command.Options.Add(Build); command.Options.Add(Webhooks); + command.Options.Add(ForcePermissionLevel); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -184,6 +195,7 @@ await CliRuntime.RunAsync(async () => var restartOnError = parseResult.GetValue(RestartOnError); var build = parseResult.GetValue(Build); var webhooks = parseResult.GetValue(Webhooks); + var forcePermissionLevel = parseResult.GetValue(ForcePermissionLevel); var request = await CliRuntime.ReadRequestAsync( parseResult, Input, @@ -204,6 +216,7 @@ await CliRuntime.RunAsync(async () => restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, request: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorsRunsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorsRunsGetCommandApiCommand.g.cs index 97e19f3a..9fbb8b3c 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorRunsActorsRunsGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorRunsActorsRunsGetCommandApiCommand.g.cs @@ -54,6 +54,16 @@ The value must be a valid ISO 8601 datetime string (UTC). { Description = @"Filter runs that started before the specified date and time (inclusive). The value must be a valid ISO 8601 datetime string (UTC). +", + }; + + private static Option?> Deployment { get; } = new( + name: @"--deployment") + { + Description = @"Single Actor Standby deployment or comma-separated list of deployments (`SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, +`MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`). Used to filter Actor Standby runs by the pool that +serves them. Requires the `status` parameter with only non-terminal statuses (`READY`, `RUNNING`, `TIMING-OUT` or +`ABORTING`). ", }; @@ -101,6 +111,7 @@ Gets the list of runs of a specific Actor. The response is a list of command.Options.Add(Status); command.Options.Add(StartedAfter); command.Options.Add(StartedBefore); + command.Options.Add(Deployment); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => @@ -113,6 +124,7 @@ await CliRuntime.RunAsync(async () => var status = parseResult.GetValue(Status); var startedAfter = parseResult.GetValue(StartedAfter); var startedBefore = parseResult.GetValue(StartedBefore); + var deployment = parseResult.GetValue(Deployment); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -124,6 +136,7 @@ await CliRuntime.RunAsync(async () => status: status, startedAfter: startedAfter, startedBefore: startedBefore, + deployment: deployment, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand.g.cs new file mode 100644 index 00000000..18799f7b --- /dev/null +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand.g.cs @@ -0,0 +1,80 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand +{ + private static Argument ActorId { get; } = new( + name: @"actor-id") + { + Description = @"Actor ID or the username of the Actor owner and the Actor name, separated by a tilde (`~`).", + }; + + private static Argument VersionNumber { get; } = new( + name: @"version-number") + { + Description = @"Actor version.", + }; + + private static Option ProviderId { get; } = new( + name: @"--provider-id") + { + Description = @"The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID +of a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint. +", + Required = true, + }; + + private static Option Enabled { get; } = new( + name: @"--enabled") + { + Description = @"`true` registers the push webhook so that pushes to the repository build the version; `false` turns it off.", + Required = true, + }; + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"actor-version-build-on-push-put", @"Update Actor version build on push +Turns automatic builds on push on or off for an Actor version whose source is a git repository. + +Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so +that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it +on GitLab and Bitbucket. + +You need write access to the Actor. The version must have its source type set to a git repository, and the +connected account must have permission to manage the repository's webhooks. +"); + command.Arguments.Add(ActorId); + command.Arguments.Add(VersionNumber); + command.Options.Add(ProviderId); + command.Options.Add(Enabled); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var actorId = parseResult.GetRequiredValue(ActorId); + var versionNumber = parseResult.GetRequiredValue(VersionNumber); + var providerId = parseResult.GetRequiredValue(ProviderId); + var enabled = parseResult.GetRequiredValue(Enabled); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + await client.ActorsActorVersions.ActorVersionBuildOnPushPutAsync( + actorId: actorId, + versionNumber: versionNumber, + providerId: providerId, + enabled: enabled, + cancellationToken: cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs index 4c0dec89..bad23883 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionEnvVarPutCommandApiCommand.g.cs @@ -78,7 +78,7 @@ passed as JSON in the POST payload. When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). The response is the `EnvVar` object as returned by the [Get environment variable of Actor version](/api/v2/actor-version-env-var-get) diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs index a6383e98..7350b64a 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsActorVersionPutCommandApiCommand.g.cs @@ -83,7 +83,7 @@ public static Command Create(string? commandName = null) When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). The response is the `Version` object as returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. diff --git a/src/cli/Apify.CLI/Commands/ActorsActorVersionsApiGroupCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorVersionsApiGroupCommand.g.cs index b3f60fe7..60d432b5 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorVersionsApiGroupCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorVersionsApiGroupCommand.g.cs @@ -11,6 +11,7 @@ internal static partial class ActorsActorVersionsApiGroupCommand public static Command Create() { var command = new Command(@"actors-actor-versions", @"Actors/Actor versions endpoint commands."); + command.Subcommands.Add(ActorsActorVersionsActorVersionBuildOnPushPutCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorVersionsActorVersionDeleteCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorVersionsActorVersionEnvVarDeleteCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorVersionsActorVersionEnvVarGetCommandApiCommand.Create()); diff --git a/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs index 72500949..e401fd14 100644 --- a/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsActorsPostCommandApiCommand.g.cs @@ -140,14 +140,19 @@ use the [Update Actor](/api/v2/actor-put) endpoint. command.Options.Add(DefaultRunOptionsOptions.TimeoutSecs); command.Options.Add(DefaultRunOptionsOptions.MemoryMbytes); command.Options.Add(DefaultRunOptionsOptions.RestartOnError); - command.Options.Add(DefaultRunOptionsOptions.MaxItems); command.Options.Add(ActorStandbyOptions.IsEnabled); + command.Options.Add(DefaultRunOptionsOptions.MaxItems); + command.Options.Add(DefaultRunOptionsOptions.MaxTotalChargeUsd); + command.Options.Add(DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser); command.Options.Add(ActorStandbyOptions.IsEnabled); command.Options.Add(ActorStandbyOptions.DesiredRequestsPerActorRun); command.Options.Add(ActorStandbyOptions.MaxRequestsPerActorRun); command.Options.Add(ActorStandbyOptions.IdleTimeoutSecs); command.Options.Add(ActorStandbyOptions.Build); command.Options.Add(ActorStandbyOptions.MemoryMbytes); command.Options.Add(ActorStandbyOptions.DisableStandbyFieldsOverride); - command.Options.Add(ActorStandbyOptions.ShouldPassActorInput); command.Options.Add(ExampleRunInputOptions.Body); + command.Options.Add(ActorStandbyOptions.ShouldPassActorInput); + command.Options.Add(ActorStandbyOptions.Tenancy); + command.Options.Add(ActorStandbyOptions.IsConsoleAuthEnabled); + command.Options.Add(ActorStandbyOptions.IsTokenlessEnabled); command.Options.Add(ExampleRunInputOptions.Body); command.Options.Add(ExampleRunInputOptions.ContentType); command.Options.Add(Input); command.Options.Add(RequestJson); @@ -190,7 +195,9 @@ await CliRuntime.RunAsync(async () => var defaultRunOptionsMemoryMbytes = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) ? parseResult.GetValue(DefaultRunOptionsOptions.MemoryMbytes) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmemoryMbytesBaseValue ? __DefaultRunOptionsmemoryMbytesBaseValue.MemoryMbytes : default); var defaultRunOptionsRestartOnError = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) ? parseResult.GetValue(DefaultRunOptionsOptions.RestartOnError) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsrestartOnErrorBaseValue ? __DefaultRunOptionsrestartOnErrorBaseValue.RestartOnError : default); var defaultRunOptionsMaxItems = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems) ? parseResult.GetValue(DefaultRunOptionsOptions.MaxItems) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmaxItemsBaseValue ? __DefaultRunOptionsmaxItemsBaseValue.MaxItems : default); - var __DefaultRunOptionsSpecified = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.Build) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.TimeoutSecs) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems); + var defaultRunOptionsMaxTotalChargeUsd = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxTotalChargeUsd) ? parseResult.GetValue(DefaultRunOptionsOptions.MaxTotalChargeUsd) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsmaxTotalChargeUsdBaseValue ? __DefaultRunOptionsmaxTotalChargeUsdBaseValue.MaxTotalChargeUsd : default); + var defaultRunOptionsIsMaxTotalChargeUsdSetByUser = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser) ? parseResult.GetValue(DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser) : (__DefaultRunOptionsBase is { } __DefaultRunOptionsisMaxTotalChargeUsdSetByUserBaseValue ? __DefaultRunOptionsisMaxTotalChargeUsdSetByUserBaseValue.IsMaxTotalChargeUsdSetByUser : default); + var __DefaultRunOptionsSpecified = CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.Build) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.TimeoutSecs) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.RestartOnError) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxItems) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.MaxTotalChargeUsd) || CliRuntime.WasSpecified(parseResult, DefaultRunOptionsOptions.IsMaxTotalChargeUsdSetByUser); var defaultRunOptions = __DefaultRunOptionsSpecified || __DefaultRunOptionsBase is not null ? new global::Apify.DefaultRunOptions @@ -200,6 +207,8 @@ await CliRuntime.RunAsync(async () => MemoryMbytes = defaultRunOptionsMemoryMbytes, RestartOnError = defaultRunOptionsRestartOnError, MaxItems = defaultRunOptionsMaxItems, + MaxTotalChargeUsd = defaultRunOptionsMaxTotalChargeUsd, + IsMaxTotalChargeUsdSetByUser = defaultRunOptionsIsMaxTotalChargeUsdSetByUser, } : __DefaultRunOptionsBase; @@ -212,7 +221,10 @@ await CliRuntime.RunAsync(async () => var actorStandbyMemoryMbytes = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) ? parseResult.GetValue(ActorStandbyOptions.MemoryMbytes) : (__ActorStandbyBase is { } __ActorStandbymemoryMbytesBaseValue ? __ActorStandbymemoryMbytesBaseValue.MemoryMbytes : default); var actorStandbyDisableStandbyFieldsOverride = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) ? parseResult.GetValue(ActorStandbyOptions.DisableStandbyFieldsOverride) : (__ActorStandbyBase is { } __ActorStandbydisableStandbyFieldsOverrideBaseValue ? __ActorStandbydisableStandbyFieldsOverrideBaseValue.DisableStandbyFieldsOverride : default); var actorStandbyShouldPassActorInput = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) ? parseResult.GetValue(ActorStandbyOptions.ShouldPassActorInput) : (__ActorStandbyBase is { } __ActorStandbyshouldPassActorInputBaseValue ? __ActorStandbyshouldPassActorInputBaseValue.ShouldPassActorInput : default); - var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput); + var actorStandbyTenancy = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) ? parseResult.GetValue(ActorStandbyOptions.Tenancy) : (__ActorStandbyBase is { } __ActorStandbytenancyBaseValue ? __ActorStandbytenancyBaseValue.Tenancy : default); + var actorStandbyIsConsoleAuthEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsConsoleAuthEnabled) : (__ActorStandbyBase is { } __ActorStandbyisConsoleAuthEnabledBaseValue ? __ActorStandbyisConsoleAuthEnabledBaseValue.IsConsoleAuthEnabled : default); + var actorStandbyIsTokenlessEnabled = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled) ? parseResult.GetValue(ActorStandbyOptions.IsTokenlessEnabled) : (__ActorStandbyBase is { } __ActorStandbyisTokenlessEnabledBaseValue ? __ActorStandbyisTokenlessEnabledBaseValue.IsTokenlessEnabled : default); + var __ActorStandbySpecified = CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DesiredRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MaxRequestsPerActorRun) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IdleTimeoutSecs) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Build) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.MemoryMbytes) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.DisableStandbyFieldsOverride) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.ShouldPassActorInput) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.Tenancy) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsConsoleAuthEnabled) || CliRuntime.WasSpecified(parseResult, ActorStandbyOptions.IsTokenlessEnabled); var actorStandby = __ActorStandbySpecified || __ActorStandbyBase is not null ? new global::Apify.ActorStandby @@ -225,6 +237,9 @@ await CliRuntime.RunAsync(async () => MemoryMbytes = actorStandbyMemoryMbytes, DisableStandbyFieldsOverride = actorStandbyDisableStandbyFieldsOverride, ShouldPassActorInput = actorStandbyShouldPassActorInput, + Tenancy = actorStandbyTenancy, + IsConsoleAuthEnabled = actorStandbyIsConsoleAuthEnabled, + IsTokenlessEnabled = actorStandbyIsTokenlessEnabled, } : __ActorStandbyBase; diff --git a/src/cli/Apify.CLI/Commands/ActorsApiGroupCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsApiGroupCommand.g.cs index b61bf6d0..2b2a78bf 100644 --- a/src/cli/Apify.CLI/Commands/ActorsApiGroupCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsApiGroupCommand.g.cs @@ -13,6 +13,9 @@ public static Command Create() var command = new Command(@"actors", @"Actors endpoint commands."); command.Subcommands.Add(ActorsActorDeleteCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorGetCommandApiCommand.Create()); + command.Subcommands.Add(ActorsActorOAuthAccountGetCommandApiCommand.Create()); + command.Subcommands.Add(ActorsActorOAuthAccountsGetCommandApiCommand.Create()); + command.Subcommands.Add(ActorsActorOauthConnectionsGetCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorPutCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorValidateInputPostCommandApiCommand.Create()); command.Subcommands.Add(ActorsActorsGetCommandApiCommand.Create()); diff --git a/src/cli/Apify.CLI/Commands/ActorsWebhookCollectionActorWebhooksGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/ActorsWebhookCollectionActorWebhooksGetCommandApiCommand.g.cs index 20cba568..db132ac7 100644 --- a/src/cli/Apify.CLI/Commands/ActorsWebhookCollectionActorWebhooksGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/ActorsWebhookCollectionActorWebhooksGetCommandApiCommand.g.cs @@ -33,7 +33,7 @@ internal static partial class ActorsWebhookCollectionActorWebhooksGetCommandApiC descending order. By default, they are sorted in ascending order. "); - private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfWebhooksResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfWebhookResourcesResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -49,7 +49,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.ListOfWebhooksResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfWebhookResourcesResponse value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); diff --git a/src/cli/Apify.CLI/Commands/DefaultRunOptionsOptionSet.g.cs b/src/cli/Apify.CLI/Commands/DefaultRunOptionsOptionSet.g.cs index 470ce864..6c25139e 100644 --- a/src/cli/Apify.CLI/Commands/DefaultRunOptionsOptionSet.g.cs +++ b/src/cli/Apify.CLI/Commands/DefaultRunOptionsOptionSet.g.cs @@ -9,7 +9,9 @@ internal sealed record DefaultRunOptionsOptionSet( Option TimeoutSecs, Option MemoryMbytes, Option RestartOnError, - Option MaxItems) + Option MaxItems, + Option MaxTotalChargeUsd, + Option IsMaxTotalChargeUsdSetByUser) { public static DefaultRunOptionsOptionSet Create(string? prefix = null) { @@ -33,7 +35,12 @@ public static DefaultRunOptionsOptionSet Create(string? prefix = null) MaxItems: new Option($"--{normalizedPrefix}max-items") { Description = @"Maximum number of items the run might produce.", - } + }, + MaxTotalChargeUsd: new Option($"--{normalizedPrefix}max-total-charge-usd") + { + Description = @"Maximum cost in USD that a pay-per-event run can charge to the user.", + }, + IsMaxTotalChargeUsdSetByUser: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}is-max-total-charge-usd-set-by-user", description: @"Whether `maxTotalChargeUsd` was set explicitly by the user.") ); } } \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/SchedulesApiGroupCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesApiGroupCommand.g.cs index 298bfe3b..ca6a5591 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesApiGroupCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesApiGroupCommand.g.cs @@ -13,6 +13,7 @@ public static Command Create() var command = new Command(@"schedules", @"Schedules endpoint commands."); command.Subcommands.Add(SchedulesScheduleDeleteCommandApiCommand.Create()); command.Subcommands.Add(SchedulesScheduleGetCommandApiCommand.Create()); + command.Subcommands.Add(SchedulesScheduleInvokePostCommandApiCommand.Create()); command.Subcommands.Add(SchedulesScheduleLogGetCommandApiCommand.Create()); command.Subcommands.Add(SchedulesSchedulePutCommandApiCommand.Create()); command.Subcommands.Add(SchedulesSchedulesGetCommandApiCommand.Create()); diff --git a/src/cli/Apify.CLI/Commands/SchedulesScheduleInvokePostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesScheduleInvokePostCommandApiCommand.g.cs new file mode 100644 index 00000000..04867e6f --- /dev/null +++ b/src/cli/Apify.CLI/Commands/SchedulesScheduleInvokePostCommandApiCommand.g.cs @@ -0,0 +1,71 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class SchedulesScheduleInvokePostCommandApiCommand +{ + private static Argument ScheduleId { get; } = new( + name: @"schedule-id") + { + Description = @"Schedule ID.", + }; + + private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"invoke-post", @"Invoke schedule +Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console. + +The invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's +`lastRunAt` or `nextRunAt`. The response doesn't contain the started runs. +"); + command.Arguments.Add(ScheduleId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var scheduleId = parseResult.GetRequiredValue(ScheduleId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Schedules.ScheduleInvokePostAsync( + scheduleId: scheduleId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs index 863b8d8b..3b944e20 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulePutCommandApiCommand.g.cs @@ -75,7 +75,7 @@ [Get schedule](/api/v2/schedule-get) endpoint. When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). "); command.Arguments.Add(ScheduleId); command.Options.Add(Actions); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption); diff --git a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs index 4f484b0e..bc317fc4 100644 --- a/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/SchedulesSchedulesPostCommandApiCommand.g.cs @@ -64,7 +64,7 @@ as JSON in the payload. The response is the created schedule object. When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). "); command.Options.Add(Actions); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.NameOption); command.Options.Add(CreateOrUpdateScheduleRequestOptionSetOptions.IsEnabled); diff --git a/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs index 7d417b4b..9ed58c0a 100644 --- a/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/StoreStoreGetCommandApiCommand.g.cs @@ -79,6 +79,13 @@ complete response including image URLs and all fields. Use `agent` automatically (e.g. Actors from developers who haven't passed KYC, or full-permission Actors without a large user base). Set to `true` to bypass this safety filtering and include all Actors in the results. +"); + + private static Option IncludeInputSchema { get; } = CliRuntime.CreateNullableBoolOption( + name: @"--include-input-schema", + description: @"If `true`, each Actor in the results includes an `inputSchema` field with a compact version of the input +schema of its default build (property types and required properties only). With this parameter, `limit` +defaults to and can't exceed `10`. "); private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfStoreActorsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) @@ -124,6 +131,7 @@ and readme. command.Options.Add(AllowsAgenticUsers); command.Options.Add(ResponseFormat); command.Options.Add(IncludeUnrunnableActors); + command.Options.Add(IncludeInputSchema); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => @@ -139,6 +147,7 @@ await CliRuntime.RunAsync(async () => var allowsAgenticUsers = parseResult.GetValue(AllowsAgenticUsers); var responseFormat = parseResult.GetValue(ResponseFormat); var includeUnrunnableActors = parseResult.GetValue(IncludeUnrunnableActors); + var includeInputSchema = parseResult.GetValue(IncludeInputSchema); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -153,6 +162,7 @@ await CliRuntime.RunAsync(async () => allowsAgenticUsers: allowsAgenticUsers, responseFormat: responseFormat, includeUnrunnableActors: includeUnrunnableActors, + includeInputSchema: includeInputSchema, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/UpdateLimitsRequestOptionSet.g.cs b/src/cli/Apify.CLI/Commands/UpdateLimitsRequestOptionSet.g.cs new file mode 100644 index 00000000..05b056ce --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UpdateLimitsRequestOptionSet.g.cs @@ -0,0 +1,29 @@ +#nullable enable + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal sealed record UpdateLimitsRequestOptionSet( + Option MaxMonthlyUsageUsd, + Option DataRetentionDays) +{ + public static UpdateLimitsRequestOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new UpdateLimitsRequestOptionSet( + MaxMonthlyUsageUsd: new Option($"--{normalizedPrefix}max-monthly-usage-usd") + { + Description = @"If your platform usage in the billing period exceeds the prepaid usage, you will be charged extra. Setting this property you can update your hard limit on monthly platform usage to prevent accidental overage or to limit the extra charges. +", + }, + DataRetentionDays: new Option($"--{normalizedPrefix}data-retention-days") + { + Description = @"Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention). +", + } + ); + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersApiGroupCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersApiGroupCommand.g.cs index 9af702f1..e35193e5 100644 --- a/src/cli/Apify.CLI/Commands/UsersApiGroupCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersApiGroupCommand.g.cs @@ -11,6 +11,9 @@ internal static partial class UsersApiGroupCommand public static Command Create() { var command = new Command(@"users", @"Users endpoint commands."); + command.Subcommands.Add(UsersIntegrationsGitCreateRepoPostCommandApiCommand.Create()); + command.Subcommands.Add(UsersIntegrationsGitGetCommandApiCommand.Create()); + command.Subcommands.Add(UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand.Create()); command.Subcommands.Add(UsersUserGetCommandApiCommand.Create()); command.Subcommands.Add(UsersUsersMeGetCommandApiCommand.Create()); CustomizeCommand(ref command); diff --git a/src/cli/Apify.CLI/Commands/UsersIntegrationsGitCreateRepoPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitCreateRepoPostCommandApiCommand.g.cs new file mode 100644 index 00000000..1c11fa73 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitCreateRepoPostCommandApiCommand.g.cs @@ -0,0 +1,159 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersIntegrationsGitCreateRepoPostCommandApiCommand +{ + private static Argument ProviderId { get; } = new( + name: @"provider-id") + { + Description = @"The connected git account to use: `github-app` for the GitHub App, or the ID of a connected GitLab or +Bitbucket integration, as returned by [Get git provider integrations](/api/v2/integrations-git-get). +", + }; + + private static Option Workspace { get; } = new( + name: @"--workspace") + { + Description = @"Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the +numeric namespace ID. +", + Required = true, + }; + + private static Option RepoName { get; } = new( + name: @"--repo-name") + { + Description = @"", + Required = true, + }; + + private static Option IsPrivate { get; } = new( + name: @"--is-private") + { + Description = @"", + Required = true, + }; + + private static Option?> Files { get; } = new( + name: @"--files") + { + Description = @"Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`.", + }; + + private static Option TemplateArchiveUrl { get; } = new( + name: @"--template-archive-url") + { + Description = @"URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with +`files`. +", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.GitRepoResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.GitRepoResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"integrations-git-create-repo-post", @"Create git repository +Creates a repository through a connected git account and commits the initial files into it, either the given +`files` or the files of an Actor template archive (`templateArchiveUrl`). +"); + command.Arguments.Add(ProviderId); + command.Options.Add(Workspace); + command.Options.Add(RepoName); + command.Options.Add(IsPrivate); + command.Options.Add(Files); + command.Options.Add(TemplateArchiveUrl); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::Apify.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var providerId = parseResult.GetRequiredValue(ProviderId); + var workspace = parseResult.GetRequiredValue(Workspace); + var repoName = parseResult.GetRequiredValue(RepoName); + var isPrivate = parseResult.GetRequiredValue(IsPrivate); + var files = CliRuntime.WasSpecified(parseResult, Files) ? parseResult.GetValue(Files) : (__requestBase is { } __FilesBaseValue ? __FilesBaseValue.Files : default); + var templateArchiveUrl = CliRuntime.WasSpecified(parseResult, TemplateArchiveUrl) ? parseResult.GetValue(TemplateArchiveUrl) : (__requestBase is { } __TemplateArchiveUrlBaseValue ? __TemplateArchiveUrlBaseValue.TemplateArchiveUrl : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Users.IntegrationsGitCreateRepoPostAsync( + providerId: providerId, + workspace: workspace, + repoName: repoName, + isPrivate: isPrivate, + files: files, + templateArchiveUrl: templateArchiveUrl, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersIntegrationsGitGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitGetCommandApiCommand.g.cs new file mode 100644 index 00000000..120b92e6 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitGetCommandApiCommand.g.cs @@ -0,0 +1,78 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersIntegrationsGitGetCommandApiCommand +{ + + + private static string FormatResponse(ParseResult parseResult, global::Apify.ListOfGitProviderIntegrationsResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.ListOfGitProviderIntegrationsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"integrations-git-get", @"Get git provider integrations +Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can +create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left +out. + +Use the `id` of an integration as the `providerId` in the +[Create git repository](/api/v2/integrations-git-create-repo-post) and +[Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints. +"); + + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Users.IntegrationsGitGetAsync( + + cancellationToken: cancellationToken).ConfigureAwait(false); + + + if (!await CliRuntime.TryWriteOutputDirectoryAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + @"Data", + cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand.g.cs new file mode 100644 index 00000000..3aa5a08d --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand.g.cs @@ -0,0 +1,95 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersIntegrationsGitRegisterDeploymentKeyPostCommandApiCommand +{ + private static Argument ProviderId { get; } = new( + name: @"provider-id") + { + Description = @"The connected git account to use: `github-app` for the GitHub App, or the ID of a connected GitLab or +Bitbucket integration, as returned by [Get git provider integrations](/api/v2/integrations-git-get). +", + }; + + private static Option ActorId { get; } = new( + name: @"--actor-id") + { + Description = @"ID or `username~name` of the Actor whose deployment key to register.", + Required = true, + }; + + private static Option RepoName { get; } = new( + name: @"--repo-name") + { + Description = @"URL of the repository to register the key on. Its host must match the provider.", + Required = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.RegisterDeploymentKeyResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.RegisterDeploymentKeyResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"integrations-git-register-deployment-key-post", @"Register deployment key +Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a +connected git account, so that Apify can clone the repository when building the Actor. + +You need write access to the Actor. The repository's host must match the provider of the connected account. +If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another +repository removes it from the previously linked one. +"); + command.Arguments.Add(ProviderId); + command.Options.Add(ActorId); + command.Options.Add(RepoName); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var providerId = parseResult.GetRequiredValue(ProviderId); + var actorId = parseResult.GetRequiredValue(ActorId); + var repoName = parseResult.GetRequiredValue(RepoName); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Users.IntegrationsGitRegisterDeploymentKeyPostAsync( + providerId: providerId, + actorId: actorId, + repoName: repoName, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersUsageApiGroupCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageApiGroupCommand.g.cs index 5c75bead..6610aa23 100644 --- a/src/cli/Apify.CLI/Commands/UsersUsageApiGroupCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersUsageApiGroupCommand.g.cs @@ -11,9 +11,12 @@ internal static partial class UsersUsageApiGroupCommand public static Command Create() { var command = new Command(@"users-usage", @"Users/Usage endpoint commands."); + command.Subcommands.Add(UsersUsageUsersLimitsGetCommandApiCommand.Create()); + command.Subcommands.Add(UsersUsageUsersLimitsPutCommandApiCommand.Create()); command.Subcommands.Add(UsersUsageUsersMeLimitsGetCommandApiCommand.Create()); command.Subcommands.Add(UsersUsageUsersMeLimitsPutCommandApiCommand.Create()); command.Subcommands.Add(UsersUsageUsersMeUsageMonthlyGetCommandApiCommand.Create()); + command.Subcommands.Add(UsersUsageUsersUsageMonthlyGetCommandApiCommand.Create()); CustomizeCommand(ref command); return command; } diff --git a/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsGetCommandApiCommand.g.cs new file mode 100644 index 00000000..9591a3b2 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsGetCommandApiCommand.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersUsageUsersLimitsGetCommandApiCommand +{ + private static Argument UserId { get; } = new( + name: @"user-id") + { + Description = @"User ID or username of your account, or of the organization your API token belongs to.", + }; + + 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); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.AccountLimitsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"users-limits-get", @"Get user's limits by ID +Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by +its ID or username. + +You can only access your own account, or the organization your API token belongs to. API tokens with +limited permissions can't use this endpoint. +"); + command.Arguments.Add(UserId); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var userId = parseResult.GetRequiredValue(UserId); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.UsersUsage.UsersLimitsGetAsync( + userId: userId, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsPutCommandApiCommand.g.cs new file mode 100644 index 00000000..2c1be9f7 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersUsageUsersLimitsPutCommandApiCommand.g.cs @@ -0,0 +1,114 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersUsageUsersLimitsPutCommandApiCommand +{ + private static Argument UserId { get; } = new( + name: @"user-id") + { + Description = @"User ID or username of your account, or of the organization your API token belongs to.", + }; + private static readonly UpdateLimitsRequestOptionSet UpdateLimitsRequestOptionSetOptions = UpdateLimitsRequestOptionSet.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.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, string value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, string value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"users-limits-put", @"Update user's limits by ID +Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID +or username. + +You can only access your own account, or the organization your API token belongs to. API tokens with +limited permissions can't use this endpoint. +For an organization, you also need the permission to manage the organization. +"); + command.Arguments.Add(UserId); command.Options.Add(UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd); + command.Options.Add(UpdateLimitsRequestOptionSetOptions.DataRetentionDays); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::Apify.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var userId = parseResult.GetRequiredValue(UserId); var maxMonthlyUsageUsd = CliRuntime.WasSpecified(parseResult, UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd) ? parseResult.GetValue(UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd) : (__requestBase is { } __MaxMonthlyUsageUsdBaseValue ? __MaxMonthlyUsageUsdBaseValue.MaxMonthlyUsageUsd : default); + var dataRetentionDays = CliRuntime.WasSpecified(parseResult, UpdateLimitsRequestOptionSetOptions.DataRetentionDays) ? parseResult.GetValue(UpdateLimitsRequestOptionSetOptions.DataRetentionDays) : (__requestBase is { } __DataRetentionDaysBaseValue ? __DataRetentionDaysBaseValue.DataRetentionDays : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.UsersUsage.UsersLimitsPutAsync( + userId: userId, + maxMonthlyUsageUsd: maxMonthlyUsageUsd, + dataRetentionDays: dataRetentionDays, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsPutCommandApiCommand.g.cs index 14620f76..311ee807 100644 --- a/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/UsersUsageUsersMeLimitsPutCommandApiCommand.g.cs @@ -7,19 +7,7 @@ namespace Apify.CLI.Commands; internal static partial class UsersUsageUsersMeLimitsPutCommandApiCommand { - private static Option MaxMonthlyUsageUsd { get; } = new( - name: @"--max-monthly-usage-usd") - { - Description = @"If your platform usage in the billing period exceeds the prepaid usage, you will be charged extra. Setting this property you can update your hard limit on monthly platform usage to prevent accidental overage or to limit the extra charges. -", - }; - - private static Option DataRetentionDays { get; } = new( - name: @"--data-retention-days") - { - Description = @"Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention). -", - }; + private static readonly UpdateLimitsRequestOptionSet UpdateLimitsRequestOptionSetOptions = UpdateLimitsRequestOptionSet.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.", @@ -65,8 +53,8 @@ public static Command Create(string? commandName = null) Updates the account's limits manageable on your account's [Limits page](https://console.apify.com/billing#/limits). Specifically the: `maxMonthlyUsageUsd` and `dataRetentionDays` limits (see request body schema for more details). "); - command.Options.Add(MaxMonthlyUsageUsd); - command.Options.Add(DataRetentionDays); + command.Options.Add(UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd); + command.Options.Add(UpdateLimitsRequestOptionSetOptions.DataRetentionDays); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -91,9 +79,8 @@ await CliRuntime.RunAsync(async () => RequestJson, RequestFile, global::Apify.SourceGenerationContext.Default, - cancellationToken).ConfigureAwait(false); - var maxMonthlyUsageUsd = CliRuntime.WasSpecified(parseResult, MaxMonthlyUsageUsd) ? parseResult.GetValue(MaxMonthlyUsageUsd) : (__requestBase is { } __MaxMonthlyUsageUsdBaseValue ? __MaxMonthlyUsageUsdBaseValue.MaxMonthlyUsageUsd : default); - var dataRetentionDays = CliRuntime.WasSpecified(parseResult, DataRetentionDays) ? parseResult.GetValue(DataRetentionDays) : (__requestBase is { } __DataRetentionDaysBaseValue ? __DataRetentionDaysBaseValue.DataRetentionDays : default); + cancellationToken).ConfigureAwait(false); var maxMonthlyUsageUsd = CliRuntime.WasSpecified(parseResult, UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd) ? parseResult.GetValue(UpdateLimitsRequestOptionSetOptions.MaxMonthlyUsageUsd) : (__requestBase is { } __MaxMonthlyUsageUsdBaseValue ? __MaxMonthlyUsageUsdBaseValue.MaxMonthlyUsageUsd : default); + var dataRetentionDays = CliRuntime.WasSpecified(parseResult, UpdateLimitsRequestOptionSetOptions.DataRetentionDays) ? parseResult.GetValue(UpdateLimitsRequestOptionSetOptions.DataRetentionDays) : (__requestBase is { } __DataRetentionDaysBaseValue ? __DataRetentionDaysBaseValue.DataRetentionDays : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Apify.CLI/Commands/UsersUsageUsersUsageMonthlyGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUsageUsersUsageMonthlyGetCommandApiCommand.g.cs new file mode 100644 index 00000000..ede7e8b6 --- /dev/null +++ b/src/cli/Apify.CLI/Commands/UsersUsageUsersUsageMonthlyGetCommandApiCommand.g.cs @@ -0,0 +1,84 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Apify.CLI.Commands; + +internal static partial class UsersUsageUsersUsageMonthlyGetCommandApiCommand +{ + private static Argument UserId { get; } = new( + name: @"user-id") + { + Description = @"User ID or username of your account, or of the organization your API token belongs to.", + }; + + private static Option Date { get; } = new( + name: @"--date") + { + Description = @"Date in the YYYY-MM-DD format.", + }; + + private static string FormatResponse(ParseResult parseResult, global::Apify.MonthlyUsageResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.MonthlyUsageResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + + public static Command Create(string? commandName = null) + { + var command = new Command(commandName ?? @"monthly-get", @"Get user's monthly usage by ID +Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get), +for an account given by its ID or username. + +You can only access your own account, or the organization your API token belongs to. API tokens with +limited permissions can't use this endpoint. + +Using the `date` parameter will show the usage in the monthly usage cycle that +includes that date. +"); + command.Arguments.Add(UserId); + command.Options.Add(Date); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var userId = parseResult.GetRequiredValue(UserId); + var date = parseResult.GetValue(Date); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.UsersUsage.UsersUsageMonthlyGetAsync( + userId: userId, + date: date, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Apify.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/UsersUserGetCommandApiCommand.g.cs index 672e893a..1857a673 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.UserPublicInfoResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::Apify.AnyOf 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.User return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.UserPublicInfoResponse value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::Apify.AnyOf value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); @@ -42,6 +42,10 @@ public static Command Create(string? commandName = null) can be seen on public profile pages (e.g. https://apify.com/apify). This operation requires no authentication token. + +When the request is authenticated with an API token of the requested user account, or with a token +that impersonates it, the response also contains the private information, the same as in +[Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it. "); command.Arguments.Add(UserId); diff --git a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs index 753a61ed..b85b7eeb 100644 --- a/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs +++ b/src/cli/Apify.CLI/Commands/WebhooksWebhooksWebhookPutCommandApiCommand.g.cs @@ -114,7 +114,7 @@ [Get webhook](/api/v2/webhook-get) endpoint. When providing your API authentication token, we recommend using the request's `Authorization` header, rather than the URL. -For details, see [Authentication](/api/v2/getting-started#authentication). +For details, see [Authentication](/api/v2#authentication). "); command.Arguments.Add(WebhookId); command.Options.Add(IsAdHoc); diff --git a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs index 72870b15..6c1b0cb1 100644 --- a/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorBuilds.JsonSerializerContext.g.cs @@ -111,6 +111,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfBuildsJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs index 4e1d9b17..4889cc0e 100644 --- a/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorRuns.JsonSerializerContext.g.cs @@ -52,12 +52,15 @@ 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.RunStandby))] [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::Apify.ListOfRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -65,6 +68,7 @@ namespace Apify [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::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))] @@ -152,6 +156,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfRunsJsonConverter()); 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.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); diff --git a/src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunsGet.g.cs b/src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunsGet.g.cs index 67382988..ace126f3 100644 --- a/src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunsGet.g.cs @@ -32,7 +32,8 @@ partial void PrepareActorRunsGetArguments( ref bool? desc, global::System.Collections.Generic.IList? status, ref global::System.DateTime? startedAfter, - ref global::System.DateTime? startedBefore); + ref global::System.DateTime? startedBefore, + global::System.Collections.Generic.IList? deployment); partial void PrepareActorRunsGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -41,7 +42,8 @@ partial void PrepareActorRunsGetRequest( bool? desc, global::System.Collections.Generic.IList? status, global::System.DateTime? startedAfter, - global::System.DateTime? startedBefore); + global::System.DateTime? startedBefore, + global::System.Collections.Generic.IList? deployment); partial void ProcessActorRunsGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -81,6 +83,9 @@ partial void ProcessActorRunsGetResponseContent( /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -91,6 +96,7 @@ partial void ProcessActorRunsGetResponseContent( global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -101,6 +107,7 @@ partial void ProcessActorRunsGetResponseContent( status: status, startedAfter: startedAfter, startedBefore: startedBefore, + deployment: deployment, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -137,6 +144,9 @@ partial void ProcessActorRunsGetResponseContent( /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -147,6 +157,7 @@ partial void ProcessActorRunsGetResponseContent( global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -159,7 +170,8 @@ partial void ProcessActorRunsGetResponseContent( desc: ref desc, status: status, startedAfter: ref startedAfter, - startedBefore: ref startedBefore); + startedBefore: ref startedBefore, + deployment: deployment); var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( @@ -194,6 +206,7 @@ partial void ProcessActorRunsGetResponseContent( .AddOptionalParameter("status", status, delimiter: ",", explode: false) .AddOptionalParameter("startedAfter", startedAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ")) .AddOptionalParameter("startedBefore", startedBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("deployment", deployment, delimiter: ",", explode: false) ; var __path = __pathBuilder.ToString(); __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -240,7 +253,8 @@ partial void ProcessActorRunsGetResponseContent( desc: desc, status: status, startedAfter: startedAfter, - startedBefore: startedBefore); + startedBefore: startedBefore, + deployment: deployment); return __httpRequest; } diff --git a/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs index 71509980..6ffa5412 100644 --- a/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorTasks.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -52,16 +53,26 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel), TypeInfoPropertyName = "ActorRunPricingInfoDiscriminatorPricingModel2")] [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.WebhookSlackMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDatasetTransformation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleMail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleDrive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGithubIssue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] [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.WebhookResource))] [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.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.RunStandby))] [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.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -69,6 +80,7 @@ namespace Apify [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::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))] @@ -83,13 +95,14 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskPublicConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskPublicConfigFaqItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateTaskRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf>), TypeInfoPropertyName = "AnyOfTaskInputIListTaskInput2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [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.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))] @@ -97,7 +110,6 @@ 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::Apify.ActorTaskRunsGetResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AllOf), TypeInfoPropertyName = "AllOfPaginationResponseActorTaskRunsGetResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorTaskRunsGetResponseData))] @@ -108,6 +120,7 @@ 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.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel?), TypeInfoPropertyName = "NullableActorPermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PayPerEventActorPricingInfo?), TypeInfoPropertyName = "NullablePayPerEventActorPricingInfo2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.PricePerDatasetItemActorPricingInfo?), TypeInfoPropertyName = "NullablePricePerDatasetItemActorPricingInfo2")] @@ -129,12 +142,13 @@ 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::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))] internal sealed partial class ActorTasksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -193,6 +207,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); + options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); @@ -222,6 +237,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) + || typeToConvert == typeof(global::Apify.ActorPermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorPermissionLevel?) + || typeToConvert == typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel) || typeToConvert == typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel?) @@ -261,6 +280,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel)) + { + return new global::Apify.JsonConverters.ActorPermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Apify.ActorRunPricingInfoDiscriminatorPricingModel)) { return new global::Apify.JsonConverters.ActorRunPricingInfoDiscriminatorPricingModelJsonConverter(); diff --git a/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskInputPut.g.cs b/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskInputPut.g.cs index 5b05d9f9..05c6bedb 100644 --- a/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskInputPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskInputPut.g.cs @@ -54,7 +54,7 @@ partial void ProcessActorTaskInputPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: janedoe~my-task @@ -91,7 +91,7 @@ partial void ProcessActorTaskInputPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: janedoe~my-task @@ -767,7 +767,7 @@ partial void ProcessActorTaskInputPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: janedoe~my-task diff --git a/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskRunSyncGet.g.cs b/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskRunSyncGet.g.cs index 73390042..09e356f9 100644 --- a/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskRunSyncGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorTasksClient.ActorTaskRunSyncGet.g.cs @@ -32,6 +32,7 @@ partial void PrepareActorTaskRunSyncGetArguments( ref double? memory, ref double? maxItems, ref double? maxTotalChargeUsd, + ref bool? restartOnError, ref string? build, ref string? outputRecordKey, byte[]? webhooks); @@ -43,6 +44,7 @@ partial void PrepareActorTaskRunSyncGetRequest( double? memory, double? maxItems, double? maxTotalChargeUsd, + bool? restartOnError, string? build, string? outputRecordKey, byte[]? webhooks); @@ -91,6 +93,9 @@ partial void ProcessActorTaskRunSyncGetResponseContent( /// /// Example: 5 /// + /// + /// Example: false + /// /// /// Example: 0.1.234 /// @@ -109,6 +114,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( double? memory = default, double? maxItems = default, double? maxTotalChargeUsd = default, + bool? restartOnError = default, string? build = default, string? outputRecordKey = default, byte[]? webhooks = default, @@ -121,6 +127,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( memory: memory, maxItems: maxItems, maxTotalChargeUsd: maxTotalChargeUsd, + restartOnError: restartOnError, build: build, outputRecordKey: outputRecordKey, webhooks: webhooks, @@ -166,6 +173,9 @@ partial void ProcessActorTaskRunSyncGetResponseContent( /// /// Example: 5 /// + /// + /// Example: false + /// /// /// Example: 0.1.234 /// @@ -184,6 +194,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( double? memory = default, double? maxItems = default, double? maxTotalChargeUsd = default, + bool? restartOnError = default, string? build = default, string? outputRecordKey = default, byte[]? webhooks = default, @@ -199,6 +210,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( memory: ref memory, maxItems: ref maxItems, maxTotalChargeUsd: ref maxTotalChargeUsd, + restartOnError: ref restartOnError, build: ref build, outputRecordKey: ref outputRecordKey, webhooks: webhooks); @@ -234,6 +246,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( .AddOptionalParameter("memory", memory?.ToString()) .AddOptionalParameter("maxItems", maxItems?.ToString()) .AddOptionalParameter("maxTotalChargeUsd", maxTotalChargeUsd?.ToString()) + .AddOptionalParameter("restartOnError", restartOnError?.ToString().ToLowerInvariant()) .AddOptionalParameter("build", build) .AddOptionalParameter("outputRecordKey", outputRecordKey) .AddOptionalParameter("webhooks", webhooks?.ToString()) @@ -283,6 +296,7 @@ partial void ProcessActorTaskRunSyncGetResponseContent( memory: memory, maxItems: maxItems, maxTotalChargeUsd: maxTotalChargeUsd, + restartOnError: restartOnError, build: build, outputRecordKey: outputRecordKey, webhooks: webhooks); diff --git a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs index bdef5d1a..60ed4328 100644 --- a/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Actors.JsonSerializerContext.g.cs @@ -85,6 +85,17 @@ namespace Apify [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.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnectionOAuthProviderType), TypeInfoPropertyName = "ActorOAuthConnectionOAuthProviderType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnectionCredentials))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthConnections))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthConnectionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthAccount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthAccounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthAccountsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthAccountResponse))] [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?))] @@ -108,6 +119,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunPricingInfo?), TypeInfoPropertyName = "NullableActorRunPricingInfo2")] [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.ActorOAuthConnectionOAuthProviderType?), TypeInfoPropertyName = "NullableActorOAuthConnectionOAuthProviderType2")] [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>))] @@ -117,6 +129,8 @@ 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))] internal sealed partial class ActorsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -173,6 +187,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -223,6 +238,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ActorNotice?) + || typeToConvert == typeof(global::Apify.ActorOAuthConnectionOAuthProviderType) + + || typeToConvert == typeof(global::Apify.ActorOAuthConnectionOAuthProviderType?) + || typeToConvert == typeof(global::Apify.ActorsGetSortBy) || typeToConvert == typeof(global::Apify.ActorsGetSortBy?); @@ -302,6 +321,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ActorNoticeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Apify.ActorOAuthConnectionOAuthProviderType)) + { + return new global::Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorOAuthConnectionOAuthProviderType?)) + { + return new global::Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Apify.ActorsGetSortBy)) { return new global::Apify.JsonConverters.ActorsGetSortByJsonConverter(); diff --git a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs index 804214c1..316d9e94 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorBuilds.JsonSerializerContext.g.cs @@ -111,6 +111,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfBuildsJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs index 435ea56e..0f679b83 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRuns.JsonSerializerContext.g.cs @@ -52,12 +52,15 @@ 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.RunStandby))] [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::Apify.ListOfRunsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -65,6 +68,7 @@ namespace Apify [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::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))] @@ -73,6 +77,10 @@ namespace Apify [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")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncPostForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetDatasetItemsPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetDatasetItemsGetForcePermissionLevel2")] [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?))] @@ -93,6 +101,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfRuns?), TypeInfoPropertyName = "NullableListOfRuns2")] [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::Apify.ActorRunSyncPostForcePermissionLevel?), TypeInfoPropertyName = "NullableActorRunSyncPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetForcePermissionLevel?), TypeInfoPropertyName = "NullableActorRunSyncGetForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel?), TypeInfoPropertyName = "NullableActorRunSyncGetDatasetItemsPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel?), TypeInfoPropertyName = "NullableActorRunSyncGetDatasetItemsGetForcePermissionLevel2")] [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))] @@ -151,6 +163,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfRunsJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -195,7 +208,23 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ActorsRunsPostForcePermissionLevel) - || typeToConvert == typeof(global::Apify.ActorsRunsPostForcePermissionLevel?); + || typeToConvert == typeof(global::Apify.ActorsRunsPostForcePermissionLevel?) + + || typeToConvert == typeof(global::Apify.ActorRunSyncPostForcePermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorRunSyncPostForcePermissionLevel?) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetForcePermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetForcePermissionLevel?) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel?) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -261,6 +290,46 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::Apify.JsonConverters.ActorsRunsPostForcePermissionLevelNullableJsonConverter(); } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncPostForcePermissionLevel)) + { + return new global::Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncPostForcePermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetForcePermissionLevel)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetForcePermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGet.g.cs index 5c73a75d..c5d3cd7e 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGet.g.cs @@ -35,7 +35,8 @@ partial void PrepareActorRunSyncGetArguments( ref double? maxTotalChargeUsd, ref bool? restartOnError, ref string? build, - byte[]? webhooks); + byte[]? webhooks, + ref global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel); partial void PrepareActorRunSyncGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -47,7 +48,8 @@ partial void PrepareActorRunSyncGetRequest( double? maxTotalChargeUsd, bool? restartOnError, string? build, - byte[]? webhooks); + byte[]? webhooks, + global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel); partial void ProcessActorRunSyncGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -103,6 +105,9 @@ partial void ProcessActorRunSyncGetResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -116,6 +121,7 @@ partial void ProcessActorRunSyncGetResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -129,6 +135,7 @@ partial void ProcessActorRunSyncGetResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -181,6 +188,9 @@ partial void ProcessActorRunSyncGetResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -194,6 +204,7 @@ partial void ProcessActorRunSyncGetResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -209,7 +220,8 @@ partial void ProcessActorRunSyncGetResponseContent( maxTotalChargeUsd: ref maxTotalChargeUsd, restartOnError: ref restartOnError, build: ref build, - webhooks: webhooks); + webhooks: webhooks, + forcePermissionLevel: ref forcePermissionLevel); var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( @@ -246,6 +258,7 @@ partial void ProcessActorRunSyncGetResponseContent( .AddOptionalParameter("restartOnError", restartOnError?.ToString().ToLowerInvariant()) .AddOptionalParameter("build", build) .AddOptionalParameter("webhooks", webhooks?.ToString()) + .AddOptionalParameter("forcePermissionLevel", forcePermissionLevel?.ToValueString()) ; var __path = __pathBuilder.ToString(); __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -295,7 +308,8 @@ partial void ProcessActorRunSyncGetResponseContent( maxTotalChargeUsd: maxTotalChargeUsd, restartOnError: restartOnError, build: build, - webhooks: webhooks); + webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel); return __httpRequest; } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs index 2a3e6479..468f1240 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs @@ -35,6 +35,7 @@ partial void PrepareActorRunSyncGetDatasetItemsGetArguments( ref bool? restartOnError, ref string? build, byte[]? webhooks, + ref global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel, ref string? format, ref bool? clean, ref double? offset, @@ -69,6 +70,7 @@ partial void PrepareActorRunSyncGetDatasetItemsGetRequest( bool? restartOnError, string? build, byte[]? webhooks, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel, string? format, bool? clean, double? offset, @@ -140,6 +142,9 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -219,6 +224,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -254,6 +260,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, @@ -322,6 +329,9 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -401,6 +411,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -439,6 +450,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( restartOnError: ref restartOnError, build: ref build, webhooks: webhooks, + forcePermissionLevel: ref forcePermissionLevel, format: ref format, clean: ref clean, offset: ref offset, @@ -497,6 +509,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( .AddOptionalParameter("restartOnError", restartOnError?.ToString().ToLowerInvariant()) .AddOptionalParameter("build", build) .AddOptionalParameter("webhooks", webhooks?.ToString()) + .AddOptionalParameter("forcePermissionLevel", forcePermissionLevel?.ToValueString()) .AddOptionalParameter("format", format) .AddOptionalParameter("clean", clean?.ToString().ToLowerInvariant()) .AddOptionalParameter("offset", offset?.ToString()) @@ -569,6 +582,7 @@ partial void ProcessActorRunSyncGetDatasetItemsGetResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs index 224c6921..5f174df9 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs @@ -35,6 +35,7 @@ partial void PrepareActorRunSyncGetDatasetItemsPostArguments( ref bool? restartOnError, ref string? build, byte[]? webhooks, + ref global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel, ref string? format, ref bool? clean, ref double? offset, @@ -70,6 +71,7 @@ partial void PrepareActorRunSyncGetDatasetItemsPostRequest( bool? restartOnError, string? build, byte[]? webhooks, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel, string? format, bool? clean, double? offset, @@ -147,6 +149,9 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -229,6 +234,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -266,6 +272,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, @@ -339,6 +346,9 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -421,6 +431,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -461,6 +472,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( restartOnError: ref restartOnError, build: ref build, webhooks: webhooks, + forcePermissionLevel: ref forcePermissionLevel, format: ref format, clean: ref clean, offset: ref offset, @@ -520,6 +532,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( .AddOptionalParameter("restartOnError", restartOnError?.ToString().ToLowerInvariant()) .AddOptionalParameter("build", build) .AddOptionalParameter("webhooks", webhooks?.ToString()) + .AddOptionalParameter("forcePermissionLevel", forcePermissionLevel?.ToValueString()) .AddOptionalParameter("format", format) .AddOptionalParameter("clean", clean?.ToString().ToLowerInvariant()) .AddOptionalParameter("offset", offset?.ToString()) @@ -598,6 +611,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, @@ -1199,6 +1213,9 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -1278,6 +1295,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -1317,6 +1335,7 @@ partial void ProcessActorRunSyncGetDatasetItemsPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, format: format, clean: clean, offset: offset, diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncPost.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncPost.g.cs index 9cfabafa..fb77a513 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorRunSyncPost.g.cs @@ -36,6 +36,7 @@ partial void PrepareActorRunSyncPostArguments( ref bool? restartOnError, ref string? build, byte[]? webhooks, + ref global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel, object request); partial void PrepareActorRunSyncPostRequest( global::System.Net.Http.HttpClient httpClient, @@ -49,6 +50,7 @@ partial void PrepareActorRunSyncPostRequest( bool? restartOnError, string? build, byte[]? webhooks, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel, object request); partial void ProcessActorRunSyncPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -108,6 +110,9 @@ partial void ProcessActorRunSyncPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -124,6 +129,7 @@ partial void ProcessActorRunSyncPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -139,6 +145,7 @@ partial void ProcessActorRunSyncPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -194,6 +201,9 @@ partial void ProcessActorRunSyncPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -210,6 +220,7 @@ partial void ProcessActorRunSyncPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -228,6 +239,7 @@ partial void ProcessActorRunSyncPostResponseContent( restartOnError: ref restartOnError, build: ref build, webhooks: webhooks, + forcePermissionLevel: ref forcePermissionLevel, request: request); @@ -265,6 +277,7 @@ partial void ProcessActorRunSyncPostResponseContent( .AddOptionalParameter("restartOnError", restartOnError?.ToString().ToLowerInvariant()) .AddOptionalParameter("build", build) .AddOptionalParameter("webhooks", webhooks?.ToString()) + .AddOptionalParameter("forcePermissionLevel", forcePermissionLevel?.ToValueString()) ; var __path = __pathBuilder.ToString(); __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -321,6 +334,7 @@ partial void ProcessActorRunSyncPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, request: request); return __httpRequest; @@ -937,6 +951,9 @@ partial void ProcessActorRunSyncPostResponseContent( /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -950,6 +967,7 @@ partial void ProcessActorRunSyncPostResponseContent( bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -967,6 +985,7 @@ partial void ProcessActorRunSyncPostResponseContent( restartOnError: restartOnError, build: build, webhooks: webhooks, + forcePermissionLevel: forcePermissionLevel, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorsRunsGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorsRunsGet.g.cs index f2c4b63b..ce685747 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorsRunsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorRunsClient.ActorsRunsGet.g.cs @@ -33,7 +33,8 @@ partial void PrepareActorsRunsGetArguments( ref bool? desc, global::System.Collections.Generic.IList? status, ref global::System.DateTime? startedAfter, - ref global::System.DateTime? startedBefore); + ref global::System.DateTime? startedBefore, + global::System.Collections.Generic.IList? deployment); partial void PrepareActorsRunsGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -43,7 +44,8 @@ partial void PrepareActorsRunsGetRequest( bool? desc, global::System.Collections.Generic.IList? status, global::System.DateTime? startedAfter, - global::System.DateTime? startedBefore); + global::System.DateTime? startedBefore, + global::System.Collections.Generic.IList? deployment); partial void ProcessActorsRunsGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -86,6 +88,9 @@ partial void ProcessActorsRunsGetResponseContent( /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -97,6 +102,7 @@ partial void ProcessActorsRunsGetResponseContent( global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -108,6 +114,7 @@ partial void ProcessActorsRunsGetResponseContent( status: status, startedAfter: startedAfter, startedBefore: startedBefore, + deployment: deployment, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -147,6 +154,9 @@ partial void ProcessActorsRunsGetResponseContent( /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -158,6 +168,7 @@ partial void ProcessActorsRunsGetResponseContent( global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -171,7 +182,8 @@ partial void ProcessActorsRunsGetResponseContent( desc: ref desc, status: status, startedAfter: ref startedAfter, - startedBefore: ref startedBefore); + startedBefore: ref startedBefore, + deployment: deployment); var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( @@ -206,6 +218,7 @@ partial void ProcessActorsRunsGetResponseContent( .AddOptionalParameter("status", status, delimiter: ",", explode: false) .AddOptionalParameter("startedAfter", startedAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ")) .AddOptionalParameter("startedBefore", startedBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("deployment", deployment, delimiter: ",", explode: false) ; var __path = __pathBuilder.ToString(); __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -253,7 +266,8 @@ partial void ProcessActorsRunsGetResponseContent( desc: desc, status: status, startedAfter: startedAfter, - startedBefore: startedBefore); + startedBefore: startedBefore, + deployment: deployment); return __httpRequest; } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs index f96fb8d6..7b51236b 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersions.JsonSerializerContext.g.cs @@ -39,6 +39,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateBuildOnPushRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVars))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVarsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarResponse))] @@ -103,6 +104,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.AnyOfJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs new file mode 100644 index 00000000..872d24d2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs @@ -0,0 +1,792 @@ + +#nullable enable + +namespace Apify +{ + public partial class ActorsActorVersionsClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_ActorVersionBuildOnPushPutSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_ActorVersionBuildOnPushPutSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_ActorVersionBuildOnPushPutSecurityRequirement0, + }; + partial void PrepareActorVersionBuildOnPushPutArguments( + global::System.Net.Http.HttpClient httpClient, + ref string actorId, + ref string versionNumber, + global::Apify.UpdateBuildOnPushRequest request); + partial void PrepareActorVersionBuildOnPushPutRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string actorId, + string versionNumber, + global::Apify.UpdateBuildOnPushRequest request); + partial void ProcessActorVersionBuildOnPushPutResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// 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 ActorVersionBuildOnPushPutAsync( + string actorId, + string versionNumber, + + global::Apify.UpdateBuildOnPushRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await ActorVersionBuildOnPushPutAsResponseAsync( + actorId: actorId, + versionNumber: versionNumber, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// 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 ActorVersionBuildOnPushPutAsResponseAsync( + string actorId, + string versionNumber, + + global::Apify.UpdateBuildOnPushRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareActorVersionBuildOnPushPutArguments( + httpClient: HttpClient, + actorId: ref actorId, + versionNumber: ref versionNumber, + request: request); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ActorVersionBuildOnPushPutSecurityRequirements, + operationName: "ActorVersionBuildOnPushPutAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareActorVersionBuildOnPushPutRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + actorId: actorId, + versionNumber: versionNumber, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorVersionBuildOnPushPut", + methodName: "ActorVersionBuildOnPushPutAsync", + pathTemplate: "$\"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorVersionBuildOnPushPut", + methodName: "ActorVersionBuildOnPushPutAsync", + pathTemplate: "$\"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorVersionBuildOnPushPut", + methodName: "ActorVersionBuildOnPushPutAsync", + pathTemplate: "$\"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessActorVersionBuildOnPushPutResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorVersionBuildOnPushPut", + methodName: "ActorVersionBuildOnPushPutAsync", + pathTemplate: "$\"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorVersionBuildOnPushPut", + methodName: "ActorVersionBuildOnPushPutAsync", + pathTemplate: "$\"/v2/actors/{actorId}/versions/{versionNumber}/build-on-push\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payload too large - the request body exceeds the size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::Apify.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unsupported media type - the Content-Encoding of the request is not supported. + if ((int)__response.StatusCode == 415) + { + string? __content_415 = null; + global::System.Exception? __exception_415 = null; + global::Apify.ErrorResponse? __value_415 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + else + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_415 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_415 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_415, + responseBody: __content_415, + responseObject: __value_415, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID
+ /// of a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint. + /// + /// + /// `true` registers the push webhook so that pushes to the repository build the version; `false` turns it off. + /// + /// 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 ActorVersionBuildOnPushPutAsync( + string actorId, + string versionNumber, + string providerId, + bool enabled, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Apify.UpdateBuildOnPushRequest + { + ProviderId = providerId, + Enabled = enabled, + }; + + await ActorVersionBuildOnPushPutAsync( + actorId: actorId, + versionNumber: versionNumber, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs index 590c9b5b..3675c768 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs @@ -58,7 +58,7 @@ partial void ProcessActorVersionEnvVarPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. @@ -108,7 +108,7 @@ partial void ProcessActorVersionEnvVarPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. @@ -803,7 +803,7 @@ partial void ProcessActorVersionEnvVarPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. diff --git a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs index f9083976..66a74dd5 100644 --- a/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsActorVersionsClient.ActorVersionPut.g.cs @@ -54,7 +54,7 @@ partial void ProcessActorVersionPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. /// @@ -96,7 +96,7 @@ partial void ProcessActorVersionPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. /// @@ -782,7 +782,7 @@ partial void ProcessActorVersionPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. /// diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountGet.g.cs new file mode 100644 index 00000000..3b3c0cba --- /dev/null +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountGet.g.cs @@ -0,0 +1,658 @@ + +#nullable enable + +namespace Apify +{ + public partial class ActorsClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_ActorOAuthAccountGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_ActorOAuthAccountGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_ActorOAuthAccountGetSecurityRequirement0, + }; + partial void PrepareActorOAuthAccountGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string accountId); + partial void PrepareActorOAuthAccountGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string accountId); + partial void ProcessActorOAuthAccountGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessActorOAuthAccountGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Actor OAuth account
+ /// Gets an account connected through an Actor OAuth connection, including its OAuth tokens.
+ /// This endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run).
+ /// The run must belong to the Actor that the account's OAuth connection is configured on, and the account must
+ /// belong to the user the run's token acts for. Any other token gets a `403` error. + ///
+ /// + /// Example: Rk3mP8xQ2vN5tY7wZ + /// + /// 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 ActorOAuthAccountGetAsync( + string accountId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ActorOAuthAccountGetAsResponseAsync( + accountId: accountId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get Actor OAuth account
+ /// Gets an account connected through an Actor OAuth connection, including its OAuth tokens.
+ /// This endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run).
+ /// The run must belong to the Actor that the account's OAuth connection is configured on, and the account must
+ /// belong to the user the run's token acts for. Any other token gets a `403` error. + ///
+ /// + /// Example: Rk3mP8xQ2vN5tY7wZ + /// + /// 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> ActorOAuthAccountGetAsResponseAsync( + string accountId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareActorOAuthAccountGetArguments( + httpClient: HttpClient, + accountId: ref accountId); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ActorOAuthAccountGetSecurityRequirements, + operationName: "ActorOAuthAccountGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/actor-oauth-accounts/{accountId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareActorOAuthAccountGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + accountId: accountId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountGet", + methodName: "ActorOAuthAccountGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{accountId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountGet", + methodName: "ActorOAuthAccountGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{accountId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountGet", + methodName: "ActorOAuthAccountGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{accountId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessActorOAuthAccountGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountGet", + methodName: "ActorOAuthAccountGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{accountId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountGet", + methodName: "ActorOAuthAccountGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{accountId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessActorOAuthAccountGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.ActorOAuthAccountResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.ActorOAuthAccountResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountsGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountsGet.g.cs new file mode 100644 index 00000000..ffb6f7a4 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOAuthAccountsGet.g.cs @@ -0,0 +1,656 @@ + +#nullable enable + +namespace Apify +{ + public partial class ActorsClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_ActorOAuthAccountsGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_ActorOAuthAccountsGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_ActorOAuthAccountsGetSecurityRequirement0, + }; + partial void PrepareActorOAuthAccountsGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string connectionId); + partial void PrepareActorOAuthAccountsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string connectionId); + partial void ProcessActorOAuthAccountsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessActorOAuthAccountsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get list of Actor OAuth accounts
+ /// Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts
+ /// that finished authorization are returned.
+ /// There are at most 5 accounts per user and connection, so the list is not paginated. + ///
+ /// + /// Example: kD9fm2Xp4cJq7Lw8N + /// + /// 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 ActorOAuthAccountsGetAsync( + string connectionId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ActorOAuthAccountsGetAsResponseAsync( + connectionId: connectionId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get list of Actor OAuth accounts
+ /// Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts
+ /// that finished authorization are returned.
+ /// There are at most 5 accounts per user and connection, so the list is not paginated. + ///
+ /// + /// Example: kD9fm2Xp4cJq7Lw8N + /// + /// 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> ActorOAuthAccountsGetAsResponseAsync( + string connectionId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareActorOAuthAccountsGetArguments( + httpClient: HttpClient, + connectionId: ref connectionId); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ActorOAuthAccountsGetSecurityRequirements, + operationName: "ActorOAuthAccountsGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/actor-oauth-accounts/{connectionId}/accounts", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareActorOAuthAccountsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + connectionId: connectionId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountsGet", + methodName: "ActorOAuthAccountsGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{connectionId}/accounts\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountsGet", + methodName: "ActorOAuthAccountsGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{connectionId}/accounts\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountsGet", + methodName: "ActorOAuthAccountsGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{connectionId}/accounts\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessActorOAuthAccountsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountsGet", + methodName: "ActorOAuthAccountsGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{connectionId}/accounts\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOAuthAccountsGet", + methodName: "ActorOAuthAccountsGetAsync", + pathTemplate: "$\"/v2/actor-oauth-accounts/{connectionId}/accounts\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessActorOAuthAccountsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.ListOfActorOAuthAccountsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.ListOfActorOAuthAccountsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorOauthConnectionsGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOauthConnectionsGet.g.cs new file mode 100644 index 00000000..f6139412 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorOauthConnectionsGet.g.cs @@ -0,0 +1,658 @@ + +#nullable enable + +namespace Apify +{ + public partial class ActorsClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_ActorOauthConnectionsGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_ActorOauthConnectionsGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_ActorOauthConnectionsGetSecurityRequirement0, + }; + partial void PrepareActorOauthConnectionsGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string actorId); + partial void PrepareActorOauthConnectionsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string actorId); + partial void ProcessActorOauthConnectionsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessActorOauthConnectionsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get list of Actor OAuth connections
+ /// Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the
+ /// Actor can connect their accounts through. Only public credential fields are returned, never the client secret.
+ /// An Actor has at most 5 connections, so the list is not paginated.
+ /// You need read access to the Actor. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// 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 ActorOauthConnectionsGetAsync( + string actorId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ActorOauthConnectionsGetAsResponseAsync( + actorId: actorId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get list of Actor OAuth connections
+ /// Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the
+ /// Actor can connect their accounts through. Only public credential fields are returned, never the client secret.
+ /// An Actor has at most 5 connections, so the list is not paginated.
+ /// You need read access to the Actor. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// 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> ActorOauthConnectionsGetAsResponseAsync( + string actorId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareActorOauthConnectionsGetArguments( + httpClient: HttpClient, + actorId: ref actorId); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ActorOauthConnectionsGetSecurityRequirements, + operationName: "ActorOauthConnectionsGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/actors/{actorId}/oauth-connections", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareActorOauthConnectionsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + actorId: actorId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOauthConnectionsGet", + methodName: "ActorOauthConnectionsGetAsync", + pathTemplate: "$\"/v2/actors/{actorId}/oauth-connections\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOauthConnectionsGet", + methodName: "ActorOauthConnectionsGetAsync", + pathTemplate: "$\"/v2/actors/{actorId}/oauth-connections\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOauthConnectionsGet", + methodName: "ActorOauthConnectionsGetAsync", + pathTemplate: "$\"/v2/actors/{actorId}/oauth-connections\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessActorOauthConnectionsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOauthConnectionsGet", + methodName: "ActorOauthConnectionsGetAsync", + pathTemplate: "$\"/v2/actors/{actorId}/oauth-connections\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ActorOauthConnectionsGet", + methodName: "ActorOauthConnectionsGetAsync", + pathTemplate: "$\"/v2/actors/{actorId}/oauth-connections\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessActorOauthConnectionsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.ListOfActorOAuthConnectionsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.ListOfActorOAuthConnectionsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs index c5e4541f..998fb3f7 100644 --- a/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsClient.ActorPut.g.cs @@ -55,7 +55,7 @@ partial void ProcessActorPutResponseContent( /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
@@ -124,7 +124,7 @@ partial void ProcessActorPutResponseContent( /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
@@ -836,7 +836,7 @@ partial void ProcessActorPutResponseContent( /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
diff --git a/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs index ee45cc59..334e213d 100644 --- a/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsWebhookCollection.JsonSerializerContext.g.cs @@ -24,17 +24,23 @@ 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::System.Collections.Generic.IList))] [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.WebhookSlackMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDatasetTransformation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleMail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleDrive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGithubIssue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] [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.WebhookListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] [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::Apify.ListOfWebhooksResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResources), TypeInfoPropertyName = "ListOfWebhookResources2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResourcesVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResourcesResponse))] [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?))] @@ -42,9 +48,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType?), TypeInfoPropertyName = "NullableWebhookEventType2")] [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::Apify.ListOfWebhookResources?), TypeInfoPropertyName = "NullableListOfWebhookResources2")] + [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 ActorsWebhookCollectionSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -92,9 +99,10 @@ private ActorsWebhookCollectionSourceGenerationContext(global::System.Text.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.ListOfWebhooksJsonConverter()); + options.Converters.Add(new global::Apify.JsonConverters.ListOfWebhookResourcesJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.ActorsWebhookCollectionClient.ActorWebhooksGet.g.cs b/src/libs/Apify/Generated/Apify.ActorsWebhookCollectionClient.ActorWebhooksGet.g.cs index 04767017..2becf565 100644 --- a/src/libs/Apify/Generated/Apify.ActorsWebhookCollectionClient.ActorWebhooksGet.g.cs +++ b/src/libs/Apify/Generated/Apify.ActorsWebhookCollectionClient.ActorWebhooksGet.g.cs @@ -71,7 +71,7 @@ partial void ProcessActorWebhooksGetResponseContent( /// 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 ActorWebhooksGetAsync( + public async global::System.Threading.Tasks.Task ActorWebhooksGetAsync( string actorId, double? offset = default, double? limit = default, @@ -114,7 +114,7 @@ partial void ProcessActorWebhooksGetResponseContent( /// 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> ActorWebhooksGetAsResponseAsync( + public async global::System.Threading.Tasks.Task> ActorWebhooksGetAsResponseAsync( string actorId, double? offset = default, double? limit = default, @@ -628,9 +628,9 @@ partial void ProcessActorWebhooksGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.ListOfWebhooksResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.ListOfWebhookResourcesResponse.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, @@ -660,9 +660,9 @@ partial void ProcessActorWebhooksGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.ListOfWebhooksResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.ListOfWebhookResourcesResponse.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.ApifyClient.g.cs b/src/libs/Apify/Generated/Apify.ApifyClient.g.cs index 60d314bf..e224cd80 100644 --- a/src/libs/Apify/Generated/Apify.ApifyClient.g.cs +++ b/src/libs/Apify/Generated/Apify.ApifyClient.g.cs @@ -56,6 +56,12 @@ namespace Apify /// (`PAYMENT-SIGNATURE` header) and
/// [Skyfire](https://docs.apify.com/platform/integrations/skyfire)
/// (`skyfire-pay-id` header).
+ /// Agents can also pay once with x402 or the
+ /// [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp)
+ /// and receive a temporary API token with a fixed spend cap from the Apify
+ /// Agent General Interface (AGI) at
+ /// [https://agi.apify.com](https://agi.apify.com). Use that token as a regular
+ /// `Bearer` token.
/// ## Basic usage
/// <span id="/introduction/basic-usage"></span>
/// To run an Actor, send a POST request to the [Run Actor](/api/v2/actors-runs-post) endpoint using either the
@@ -282,9 +288,9 @@ namespace Apify /// </table>
/// ## Errors
/// <span id="/introduction/errors"></span>
- /// The Apify API uses common HTTP status codes: `2xx` range for success, `4xx`
+ /// The Apify API uses common HTTP status codes: 2xx range for success, 4xx
/// range for errors caused by the caller
- /// (invalid requests) and `5xx` range for server errors (these are rare).
+ /// (invalid requests) and 5xx range for server errors (these are rare).
/// Each error response contains a JSON object defining the `error` property,
/// which is an object with
/// the `type` and `message` properties that contain the error code and a
@@ -307,37 +313,37 @@ namespace Apify /// <th>message</th>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-request</code></td>
/// <td>POST data must be a JSON object</td>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-value</code></td>
/// <td>Invalid value provided: Comments required</td>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-record-key</code></td>
/// <td>Record key contains invalid character</td>
/// </tr>
/// <tr>
- /// <td><code>401</code></td>
+ /// <td>401</td>
/// <td><code>token-not-provided</code></td>
/// <td>Authentication token was not provided</td>
/// </tr>
/// <tr>
- /// <td><code>404</code></td>
+ /// <td>404</td>
/// <td><code>record-not-found</code></td>
/// <td>Store was not found</td>
/// </tr>
/// <tr>
- /// <td><code>429</code></td>
+ /// <td>429</td>
/// <td><code>rate-limit-exceeded</code></td>
/// <td>You have exceeded the rate limit of ... requests per second</td>
/// </tr>
/// <tr>
- /// <td><code>405</code></td>
+ /// <td>405</td>
/// <td><code>method-not-allowed</code></td>
/// <td>This API endpoint can only be accessed using the following HTTP methods: OPTIONS, POST</td>
/// </tr>
@@ -401,7 +407,7 @@ namespace Apify /// and it can be described using the following pseudo-code:
/// 1. Define a variable `DELAY=500`
/// 2. Send the HTTP request to the API endpoint
- /// 3. If the response has status code not equal to `429` then you are done. Otherwise:
+ /// 3. If the response has status code not equal to 429 then you are done. Otherwise:
/// * Wait for a period of time chosen randomly from the interval `DELAY` to `2*DELAY` milliseconds
/// * Double the future wait period by setting `DELAY = 2*DELAY`
/// * Continue with step 2
diff --git a/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs index a0cf3d7b..42f7f14a 100644 --- a/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultDataset.JsonSerializerContext.g.cs @@ -111,6 +111,7 @@ 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.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs index 6974a0b7..18402faa 100644 --- a/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultKeyValueStore.JsonSerializerContext.g.cs @@ -97,6 +97,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs index 08658849..e2ff092f 100644 --- a/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.DefaultRequestQueue.JsonSerializerContext.g.cs @@ -152,6 +152,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); 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.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); diff --git a/src/libs/Apify/Generated/Apify.IActorRunsClient.ActorRunsGet.g.cs b/src/libs/Apify/Generated/Apify.IActorRunsClient.ActorRunsGet.g.cs index a071ff58..a5fecd47 100644 --- a/src/libs/Apify/Generated/Apify.IActorRunsClient.ActorRunsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorRunsClient.ActorRunsGet.g.cs @@ -34,6 +34,9 @@ public partial interface IActorRunsClient /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -44,6 +47,7 @@ public partial interface IActorRunsClient global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -76,6 +80,9 @@ public partial interface IActorRunsClient /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -86,6 +93,7 @@ public partial interface IActorRunsClient global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskInputPut.g.cs b/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskInputPut.g.cs index 001bea4b..d4e22abd 100644 --- a/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskInputPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskInputPut.g.cs @@ -15,7 +15,7 @@ public partial interface IActorTasksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: janedoe~my-task @@ -41,7 +41,7 @@ public partial interface IActorTasksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: janedoe~my-task @@ -67,7 +67,7 @@ public partial interface IActorTasksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: janedoe~my-task diff --git a/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskRunSyncGet.g.cs b/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskRunSyncGet.g.cs index 4348cc0c..b995edc6 100644 --- a/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskRunSyncGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorTasksClient.ActorTaskRunSyncGet.g.cs @@ -40,6 +40,9 @@ public partial interface IActorTasksClient /// /// Example: 5 /// + /// + /// Example: false + /// /// /// Example: 0.1.234 /// @@ -58,6 +61,7 @@ public partial interface IActorTasksClient double? memory = default, double? maxItems = default, double? maxTotalChargeUsd = default, + bool? restartOnError = default, string? build = default, string? outputRecordKey = default, byte[]? webhooks = default, @@ -99,6 +103,9 @@ public partial interface IActorTasksClient /// /// Example: 5 /// + /// + /// Example: false + /// /// /// Example: 0.1.234 /// @@ -117,6 +124,7 @@ public partial interface IActorTasksClient double? memory = default, double? maxItems = default, double? maxTotalChargeUsd = default, + bool? restartOnError = default, string? build = default, string? outputRecordKey = default, byte[]? webhooks = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGet.g.cs index c4ede98c..dad6a9d9 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGet.g.cs @@ -50,6 +50,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -63,6 +66,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -111,6 +115,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -124,6 +131,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs index 79ac307b..5ef4ac34 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsGet.g.cs @@ -43,6 +43,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -122,6 +125,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -186,6 +190,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -265,6 +272,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs index 485279e3..9bb4d87e 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncGetDatasetItemsPost.g.cs @@ -48,6 +48,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -130,6 +133,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -199,6 +203,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -281,6 +288,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, @@ -350,6 +358,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Example: json /// @@ -429,6 +440,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? forcePermissionLevel = default, string? format = default, bool? clean = default, double? offset = default, diff --git a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncPost.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncPost.g.cs index f74c7961..68214bcd 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncPost.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorRunSyncPost.g.cs @@ -53,6 +53,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -69,6 +72,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -120,6 +124,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -136,6 +143,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -187,6 +195,9 @@ public partial interface IActorsActorRunsClient /// /// Example: dGhpcyBpcyBqdXN0IGV4YW1wbGUK... /// + /// + /// Example: LIMITED_PERMISSIONS + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -200,6 +211,7 @@ public partial interface IActorsActorRunsClient bool? restartOnError = default, string? build = default, byte[]? webhooks = default, + global::Apify.ActorRunSyncPostForcePermissionLevel? forcePermissionLevel = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorsRunsGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorsRunsGet.g.cs index d4dd854f..70bf0d80 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorsRunsGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorRunsClient.ActorsRunsGet.g.cs @@ -37,6 +37,9 @@ public partial interface IActorsActorRunsClient /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -48,6 +51,7 @@ public partial interface IActorsActorRunsClient global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -83,6 +87,9 @@ public partial interface IActorsActorRunsClient /// /// Example: 2025-09-17T23:59:59.000Z /// + /// + /// Example: [SINGLE_TENANT] + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -94,6 +101,7 @@ public partial interface IActorsActorRunsClient global::System.Collections.Generic.IList? status = default, global::System.DateTime? startedAfter = default, global::System.DateTime? startedBefore = default, + global::System.Collections.Generic.IList? deployment = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs new file mode 100644 index 00000000..e1d05491 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionBuildOnPushPut.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Apify +{ + public partial interface IActorsActorVersionsClient + { + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// 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 ActorVersionBuildOnPushPutAsync( + string actorId, + string versionNumber, + + global::Apify.UpdateBuildOnPushRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// 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 ActorVersionBuildOnPushPutAsResponseAsync( + string actorId, + string versionNumber, + + global::Apify.UpdateBuildOnPushRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Actor version build on push
+ /// Turns automatic builds on push on or off for an Actor version whose source is a git repository.
+ /// Enabling registers a push webhook on the repository through the connected git account given by `providerId`, so
+ /// that every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it
+ /// on GitLab and Bitbucket.
+ /// You need write access to the Actor. The version must have its source type set to a git repository, and the
+ /// connected account must have permission to manage the repository's webhooks. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// + /// Example: 0.1 + /// + /// + /// The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID
+ /// of a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint. + /// + /// + /// `true` registers the push webhook so that pushes to the repository build the version; `false` turns it off. + /// + /// 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 ActorVersionBuildOnPushPutAsync( + string actorId, + string versionNumber, + string providerId, + bool enabled, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs index 3b97609a..be91d4e6 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionEnvVarPut.g.cs @@ -15,7 +15,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. @@ -52,7 +52,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. @@ -89,7 +89,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `EnvVar` object as returned by the
/// [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)
/// endpoint. diff --git a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs index edea7896..5f7e609b 100644 --- a/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsActorVersionsClient.ActorVersionPut.g.cs @@ -13,7 +13,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. ///
@@ -43,7 +43,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. ///
@@ -73,7 +73,7 @@ public partial interface IActorsActorVersionsClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication).
+ /// For details, see [Authentication](/api/v2#authentication).
/// The response is the `Version` object as
/// returned by the [Get Actor version](/api/v2/actor-version-get) endpoint. ///
diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountGet.g.cs new file mode 100644 index 00000000..dde69ef6 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountGet.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace Apify +{ + public partial interface IActorsClient + { + /// + /// Get Actor OAuth account
+ /// Gets an account connected through an Actor OAuth connection, including its OAuth tokens.
+ /// This endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run).
+ /// The run must belong to the Actor that the account's OAuth connection is configured on, and the account must
+ /// belong to the user the run's token acts for. Any other token gets a `403` error. + ///
+ /// + /// Example: Rk3mP8xQ2vN5tY7wZ + /// + /// 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 ActorOAuthAccountGetAsync( + string accountId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get Actor OAuth account
+ /// Gets an account connected through an Actor OAuth connection, including its OAuth tokens.
+ /// This endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run).
+ /// The run must belong to the Actor that the account's OAuth connection is configured on, and the account must
+ /// belong to the user the run's token acts for. Any other token gets a `403` error. + ///
+ /// + /// Example: Rk3mP8xQ2vN5tY7wZ + /// + /// 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> ActorOAuthAccountGetAsResponseAsync( + string accountId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountsGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountsGet.g.cs new file mode 100644 index 00000000..e714aba7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOAuthAccountsGet.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace Apify +{ + public partial interface IActorsClient + { + /// + /// Get list of Actor OAuth accounts
+ /// Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts
+ /// that finished authorization are returned.
+ /// There are at most 5 accounts per user and connection, so the list is not paginated. + ///
+ /// + /// Example: kD9fm2Xp4cJq7Lw8N + /// + /// 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 ActorOAuthAccountsGetAsync( + string connectionId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get list of Actor OAuth accounts
+ /// Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts
+ /// that finished authorization are returned.
+ /// There are at most 5 accounts per user and connection, so the list is not paginated. + ///
+ /// + /// Example: kD9fm2Xp4cJq7Lw8N + /// + /// 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> ActorOAuthAccountsGetAsResponseAsync( + string connectionId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorOauthConnectionsGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOauthConnectionsGet.g.cs new file mode 100644 index 00000000..ece6a658 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorOauthConnectionsGet.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace Apify +{ + public partial interface IActorsClient + { + /// + /// Get list of Actor OAuth connections
+ /// Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the
+ /// Actor can connect their accounts through. Only public credential fields are returned, never the client secret.
+ /// An Actor has at most 5 connections, so the list is not paginated.
+ /// You need read access to the Actor. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// 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 ActorOauthConnectionsGetAsync( + string actorId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get list of Actor OAuth connections
+ /// Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the
+ /// Actor can connect their accounts through. Only public credential fields are returned, never the client secret.
+ /// An Actor has at most 5 connections, so the list is not paginated.
+ /// You need read access to the Actor. + ///
+ /// + /// Example: compass~google-maps-extractor + /// + /// 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> ActorOauthConnectionsGetAsResponseAsync( + string actorId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs index cd28a56f..6f22b317 100644 --- a/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsClient.ActorPut.g.cs @@ -16,7 +16,7 @@ public partial interface IActorsClient /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
@@ -74,7 +74,7 @@ public partial interface IActorsClient /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
@@ -132,7 +132,7 @@ public partial interface IActorsClient /// ### Authentication
/// To provide the authentication token, we recommend using the request's
/// `Authorization` header, rather than the URL. For details,
- /// see [Authentication](/api/v2/getting-started#authentication).
+ /// see [Authentication](/api/v2#authentication).
/// ### Make an Actor public
/// To make your Actor [public](https://docs.apify.com/platform/actors/publishing):
/// - Set `isPublic` to `true`.
diff --git a/src/libs/Apify/Generated/Apify.IActorsWebhookCollectionClient.ActorWebhooksGet.g.cs b/src/libs/Apify/Generated/Apify.IActorsWebhookCollectionClient.ActorWebhooksGet.g.cs index 9b508235..67a821aa 100644 --- a/src/libs/Apify/Generated/Apify.IActorsWebhookCollectionClient.ActorWebhooksGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IActorsWebhookCollectionClient.ActorWebhooksGet.g.cs @@ -28,7 +28,7 @@ public partial interface IActorsWebhookCollectionClient /// 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 ActorWebhooksGetAsync( + global::System.Threading.Tasks.Task ActorWebhooksGetAsync( string actorId, double? offset = default, double? limit = default, @@ -59,7 +59,7 @@ public partial interface IActorsWebhookCollectionClient /// 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> ActorWebhooksGetAsResponseAsync( + global::System.Threading.Tasks.Task> ActorWebhooksGetAsResponseAsync( string actorId, double? offset = default, double? limit = default, diff --git a/src/libs/Apify/Generated/Apify.IApifyClient.g.cs b/src/libs/Apify/Generated/Apify.IApifyClient.g.cs index d2b1c4d8..e49267f2 100644 --- a/src/libs/Apify/Generated/Apify.IApifyClient.g.cs +++ b/src/libs/Apify/Generated/Apify.IApifyClient.g.cs @@ -56,6 +56,12 @@ namespace Apify /// (`PAYMENT-SIGNATURE` header) and
/// [Skyfire](https://docs.apify.com/platform/integrations/skyfire)
/// (`skyfire-pay-id` header).
+ /// Agents can also pay once with x402 or the
+ /// [Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp)
+ /// and receive a temporary API token with a fixed spend cap from the Apify
+ /// Agent General Interface (AGI) at
+ /// [https://agi.apify.com](https://agi.apify.com). Use that token as a regular
+ /// `Bearer` token.
/// ## Basic usage
/// <span id="/introduction/basic-usage"></span>
/// To run an Actor, send a POST request to the [Run Actor](/api/v2/actors-runs-post) endpoint using either the
@@ -282,9 +288,9 @@ namespace Apify /// </table>
/// ## Errors
/// <span id="/introduction/errors"></span>
- /// The Apify API uses common HTTP status codes: `2xx` range for success, `4xx`
+ /// The Apify API uses common HTTP status codes: 2xx range for success, 4xx
/// range for errors caused by the caller
- /// (invalid requests) and `5xx` range for server errors (these are rare).
+ /// (invalid requests) and 5xx range for server errors (these are rare).
/// Each error response contains a JSON object defining the `error` property,
/// which is an object with
/// the `type` and `message` properties that contain the error code and a
@@ -307,37 +313,37 @@ namespace Apify /// <th>message</th>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-request</code></td>
/// <td>POST data must be a JSON object</td>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-value</code></td>
/// <td>Invalid value provided: Comments required</td>
/// </tr>
/// <tr>
- /// <td><code>400</code></td>
+ /// <td>400</td>
/// <td><code>invalid-record-key</code></td>
/// <td>Record key contains invalid character</td>
/// </tr>
/// <tr>
- /// <td><code>401</code></td>
+ /// <td>401</td>
/// <td><code>token-not-provided</code></td>
/// <td>Authentication token was not provided</td>
/// </tr>
/// <tr>
- /// <td><code>404</code></td>
+ /// <td>404</td>
/// <td><code>record-not-found</code></td>
/// <td>Store was not found</td>
/// </tr>
/// <tr>
- /// <td><code>429</code></td>
+ /// <td>429</td>
/// <td><code>rate-limit-exceeded</code></td>
/// <td>You have exceeded the rate limit of ... requests per second</td>
/// </tr>
/// <tr>
- /// <td><code>405</code></td>
+ /// <td>405</td>
/// <td><code>method-not-allowed</code></td>
/// <td>This API endpoint can only be accessed using the following HTTP methods: OPTIONS, POST</td>
/// </tr>
@@ -401,7 +407,7 @@ namespace Apify /// and it can be described using the following pseudo-code:
/// 1. Define a variable `DELAY=500`
/// 2. Send the HTTP request to the API endpoint
- /// 3. If the response has status code not equal to `429` then you are done. Otherwise:
+ /// 3. If the response has status code not equal to 429 then you are done. Otherwise:
/// * Wait for a period of time chosen randomly from the interval `DELAY` to `2*DELAY` milliseconds
/// * Double the future wait period by setting `DELAY = 2*DELAY`
/// * Continue with step 2
diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.ScheduleInvokePost.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.ScheduleInvokePost.g.cs new file mode 100644 index 00000000..b3212767 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.ScheduleInvokePost.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace Apify +{ + public partial interface ISchedulesClient + { + /// + /// Invoke schedule
+ /// Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.
+ /// The invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's
+ /// `lastRunAt` or `nextRunAt`. The response doesn't contain the started runs. + ///
+ /// + /// Example: asdLZtadYvn4mBZmm + /// + /// 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 ScheduleInvokePostAsync( + string scheduleId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Invoke schedule
+ /// Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.
+ /// The invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's
+ /// `lastRunAt` or `nextRunAt`. The response doesn't contain the started runs. + ///
+ /// + /// Example: asdLZtadYvn4mBZmm + /// + /// 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> ScheduleInvokePostAsResponseAsync( + string scheduleId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs index ab6cee59..9b4f4931 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulePut.g.cs @@ -15,7 +15,7 @@ public partial interface ISchedulesClient /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: asdLZtadYvn4mBZmm @@ -41,7 +41,7 @@ public partial interface ISchedulesClient /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: asdLZtadYvn4mBZmm @@ -67,7 +67,7 @@ public partial interface ISchedulesClient /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: asdLZtadYvn4mBZmm diff --git a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs index 9b927666..a1094a83 100644 --- a/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.ISchedulesClient.SchedulesPost.g.cs @@ -11,7 +11,7 @@ public partial interface ISchedulesClient /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -29,7 +29,7 @@ public partial interface ISchedulesClient /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -47,7 +47,7 @@ public partial interface ISchedulesClient /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// diff --git a/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs b/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs index 7ba0f55d..84143a83 100644 --- a/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IStoreClient.StoreGet.g.cs @@ -45,6 +45,10 @@ public partial interface IStoreClient /// Default Value: false
/// Example: true /// + /// + /// Default Value: false
+ /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -59,6 +63,7 @@ public partial interface IStoreClient bool? allowsAgenticUsers = default, global::Apify.StoreGetResponseFormat? responseFormat = default, bool? includeUnrunnableActors = default, + bool? includeInputSchema = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -102,6 +107,10 @@ public partial interface IStoreClient /// Default Value: false
/// Example: true /// + /// + /// Default Value: false
+ /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -116,6 +125,7 @@ public partial interface IStoreClient bool? allowsAgenticUsers = default, global::Apify.StoreGetResponseFormat? responseFormat = default, bool? includeUnrunnableActors = default, + bool? includeInputSchema = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitCreateRepoPost.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitCreateRepoPost.g.cs new file mode 100644 index 00000000..cedcf3fe --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitCreateRepoPost.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersClient + { + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// 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 IntegrationsGitCreateRepoPostAsync( + string providerId, + + global::Apify.CreateGitRepoRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// 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> IntegrationsGitCreateRepoPostAsResponseAsync( + string providerId, + + global::Apify.CreateGitRepoRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the
+ /// numeric namespace ID. + /// + /// + /// + /// + /// Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`. + /// + /// + /// URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with
+ /// `files`. + /// + /// 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 IntegrationsGitCreateRepoPostAsync( + string providerId, + string workspace, + string repoName, + bool isPrivate, + global::System.Collections.Generic.IList? files = default, + string? templateArchiveUrl = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitGet.g.cs new file mode 100644 index 00000000..d26ddff6 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitGet.g.cs @@ -0,0 +1,38 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersClient + { + /// + /// Get git provider integrations
+ /// Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can
+ /// create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left
+ /// out.
+ /// Use the `id` of an integration as the `providerId` in the
+ /// [Create git repository](/api/v2/integrations-git-create-repo-post) and
+ /// [Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints. + ///
+ /// 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 IntegrationsGitGetAsync( + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get git provider integrations
+ /// Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can
+ /// create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left
+ /// out.
+ /// Use the `id` of an integration as the `providerId` in the
+ /// [Create git repository](/api/v2/integrations-git-create-repo-post) and
+ /// [Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints. + ///
+ /// 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> IntegrationsGitGetAsResponseAsync( + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs new file mode 100644 index 00000000..d553c926 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersClient + { + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// 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 IntegrationsGitRegisterDeploymentKeyPostAsync( + string providerId, + + global::Apify.RegisterDeploymentKeyRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// 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> IntegrationsGitRegisterDeploymentKeyPostAsResponseAsync( + string providerId, + + global::Apify.RegisterDeploymentKeyRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// ID or `username~name` of the Actor whose deployment key to register. + /// + /// + /// URL of the repository to register the key on. Its host must match the provider. + /// + /// 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 IntegrationsGitRegisterDeploymentKeyPostAsync( + string providerId, + string actorId, + string repoName, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs index 8df6decd..f69569ea 100644 --- a/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs +++ b/src/libs/Apify/Generated/Apify.IUsersClient.UserGet.g.cs @@ -8,7 +8,10 @@ public partial interface IUsersClient /// Get public user data
/// Returns public information about a specific user account, similar to what
/// can be seen on public profile pages (e.g. https://apify.com/apify).
- /// This operation requires no authentication token. + /// This operation requires no authentication token.
+ /// When the request is authenticated with an API token of the requested user account, or with a token
+ /// that impersonates it, the response also contains the private information, the same as in
+ /// [Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it. ///
/// /// Example: HGzIk8z78YcAPEB @@ -16,7 +19,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); @@ -24,7 +27,10 @@ public partial interface IUsersClient /// Get public user data
/// Returns public information about a specific user account, similar to what
/// can be seen on public profile pages (e.g. https://apify.com/apify).
- /// This operation requires no authentication token. + /// This operation requires no authentication token.
+ /// When the request is authenticated with an API token of the requested user account, or with a token
+ /// that impersonates it, the response also contains the private information, the same as in
+ /// [Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it. /// /// /// Example: HGzIk8z78YcAPEB @@ -32,7 +38,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.IUsersUsageClient.UsersLimitsGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsGet.g.cs new file mode 100644 index 00000000..b959f274 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsGet.g.cs @@ -0,0 +1,42 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersUsageClient + { + /// + /// Get user's limits by ID
+ /// Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by
+ /// its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// 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 UsersLimitsGetAsync( + string userId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get user's limits by ID
+ /// Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by
+ /// its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// 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> UsersLimitsGetAsResponseAsync( + string userId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsPut.g.cs b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsPut.g.cs new file mode 100644 index 00000000..5adea62f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersLimitsPut.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersUsageClient + { + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// 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 UsersLimitsPutAsync( + string userId, + + global::Apify.UpdateLimitsRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// 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> UsersLimitsPutAsResponseAsync( + string userId, + + global::Apify.UpdateLimitsRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// If your platform usage in the billing period exceeds the prepaid usage, you will be charged extra. Setting this property you can update your hard limit on monthly platform usage to prevent accidental overage or to limit the extra charges. + /// + /// + /// Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention). + /// + /// 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 UsersLimitsPutAsync( + string userId, + double? maxMonthlyUsageUsd = default, + int? dataRetentionDays = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersUsageMonthlyGet.g.cs b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersUsageMonthlyGet.g.cs new file mode 100644 index 00000000..63aca36d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.IUsersUsageClient.UsersUsageMonthlyGet.g.cs @@ -0,0 +1,54 @@ +#nullable enable + +namespace Apify +{ + public partial interface IUsersUsageClient + { + /// + /// Get user's monthly usage by ID
+ /// Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get),
+ /// for an account given by its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// Using the `date` parameter will show the usage in the monthly usage cycle that
+ /// includes that date. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// Example: 2020-06-14 + /// + /// 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 UsersUsageMonthlyGetAsync( + string userId, + string? date = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get user's monthly usage by ID
+ /// Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get),
+ /// for an account given by its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// Using the `date` parameter will show the usage in the monthly usage cycle that
+ /// includes that date. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// Example: 2020-06-14 + /// + /// 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> UsersUsageMonthlyGetAsResponseAsync( + string userId, + string? date = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs index ec7d259c..b5a0eec1 100644 --- a/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs +++ b/src/libs/Apify/Generated/Apify.IWebhooksWebhooksClient.WebhookPut.g.cs @@ -16,7 +16,7 @@ public partial interface IWebhooksWebhooksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: pVJtoTelgYUq4qJOt @@ -43,7 +43,7 @@ public partial interface IWebhooksWebhooksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: pVJtoTelgYUq4qJOt @@ -70,7 +70,7 @@ public partial interface IWebhooksWebhooksClient /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). /// /// /// Example: pVJtoTelgYUq4qJOt diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderType.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderType.g.cs new file mode 100644 index 00000000..97a28b37 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorOAuthConnectionOAuthProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorOAuthConnectionOAuthProviderType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorOAuthConnectionOAuthProviderTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorOAuthConnectionOAuthProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorOAuthConnectionOAuthProviderType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorOAuthConnectionOAuthProviderType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.ActorOAuthConnectionOAuthProviderTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullable.g.cs new file mode 100644 index 00000000..665eddd7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorOAuthConnectionOAuthProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorOAuthConnectionOAuthProviderType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorOAuthConnectionOAuthProviderTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorOAuthConnectionOAuthProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorOAuthConnectionOAuthProviderType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorOAuthConnectionOAuthProviderType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.ActorOAuthConnectionOAuthProviderTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs new file mode 100644 index 00000000..af44fa43 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetDatasetItemsGetForcePermissionLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullable.g.cs new file mode 100644 index 00000000..32a33bb5 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs new file mode 100644 index 00000000..c43e0d25 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetDatasetItemsPostForcePermissionLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullable.g.cs new file mode 100644 index 00000000..7b650762 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevel.g.cs new file mode 100644 index 00000000..149fc0a6 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetForcePermissionLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetForcePermissionLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetForcePermissionLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetForcePermissionLevel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetForcePermissionLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.ActorRunSyncGetForcePermissionLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullable.g.cs new file mode 100644 index 00000000..3a96d2b7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncGetForcePermissionLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncGetForcePermissionLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncGetForcePermissionLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncGetForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncGetForcePermissionLevel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncGetForcePermissionLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.ActorRunSyncGetForcePermissionLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevel.g.cs new file mode 100644 index 00000000..83e45b91 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncPostForcePermissionLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncPostForcePermissionLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncPostForcePermissionLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncPostForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncPostForcePermissionLevel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncPostForcePermissionLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.ActorRunSyncPostForcePermissionLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullable.g.cs new file mode 100644 index 00000000..85e1a464 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class ActorRunSyncPostForcePermissionLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ActorRunSyncPostForcePermissionLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.ActorRunSyncPostForcePermissionLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.ActorRunSyncPostForcePermissionLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.ActorRunSyncPostForcePermissionLevel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ActorRunSyncPostForcePermissionLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.ActorRunSyncPostForcePermissionLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProvider.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProvider.g.cs new file mode 100644 index 00000000..8a4ec7ce --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProvider.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class GitProviderIntegrationProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.GitProviderIntegrationProvider Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.GitProviderIntegrationProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.GitProviderIntegrationProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.GitProviderIntegrationProvider); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.GitProviderIntegrationProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.GitProviderIntegrationProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProviderNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProviderNullable.g.cs new file mode 100644 index 00000000..6de03b84 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.GitProviderIntegrationProviderNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class GitProviderIntegrationProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.GitProviderIntegrationProvider? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.GitProviderIntegrationProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.GitProviderIntegrationProvider)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.GitProviderIntegrationProvider?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.GitProviderIntegrationProvider? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.GitProviderIntegrationProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncoding.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncoding.g.cs new file mode 100644 index 00000000..7984e9dc --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncoding.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class GitRepoFileEncodingJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.GitRepoFileEncoding Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.GitRepoFileEncodingExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.GitRepoFileEncoding)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.GitRepoFileEncoding); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.GitRepoFileEncoding value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.GitRepoFileEncodingExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncodingNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncodingNullable.g.cs new file mode 100644 index 00000000..72454b23 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.GitRepoFileEncodingNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class GitRepoFileEncodingNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.GitRepoFileEncoding? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.GitRepoFileEncodingExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.GitRepoFileEncoding)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.GitRepoFileEncoding?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.GitRepoFileEncoding? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.GitRepoFileEncodingExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.ListOfWebhookResources.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.ListOfWebhookResources.g.cs new file mode 100644 index 00000000..c0d557ef --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.ListOfWebhookResources.g.cs @@ -0,0 +1,116 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Apify.JsonConverters +{ + /// + public class ListOfWebhookResourcesJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.ListOfWebhookResources Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + 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."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + + global::Apify.PaginationResponse? paginationResponse = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.PaginationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.PaginationResponse).Name}"); + paginationResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + + global::Apify.ListOfWebhookResourcesVariant2? listOfWebhookResourcesVariant2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfWebhookResourcesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfWebhookResourcesVariant2).Name}"); + listOfWebhookResourcesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } + var __value = new global::Apify.ListOfWebhookResources( + paginationResponse, + + listOfWebhookResourcesVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.ListOfWebhookResources 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."); + + + writer.WriteStartObject(); + var __writtenPropertyNames = new global::System.Collections.Generic.HashSet(global::System.StringComparer.Ordinal); + if (value.IsPaginationResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.PaginationResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.PaginationResponse).Name}"); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPaginationResponse(), typeInfo); + if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) + { + throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); + } + + foreach (var __property in __element0.EnumerateObject()) + { + if (__writtenPropertyNames.Add(__property.Name)) + { + __property.WriteTo(writer); + } + } + } + if (value.IsListOfWebhookResourcesVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfWebhookResourcesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfWebhookResourcesVariant2).Name}"); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickListOfWebhookResourcesVariant2(), typeInfo); + if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) + { + throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); + } + + foreach (var __property in __element1.EnumerateObject()) + { + if (__writtenPropertyNames.Add(__property.Name)) + { + __property.WriteTo(writer); + } + } + } + writer.WriteEndObject(); + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevel.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevel.g.cs new file mode 100644 index 00000000..6ed21871 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevel.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class UserPlanMonitoringLevelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.UserPlanMonitoringLevel Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.UserPlanMonitoringLevelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.UserPlanMonitoringLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.UserPlanMonitoringLevel); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.UserPlanMonitoringLevel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Apify.UserPlanMonitoringLevelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevelNullable.g.cs b/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevelNullable.g.cs new file mode 100644 index 00000000..48e917d0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.JsonConverters.UserPlanMonitoringLevelNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Apify.JsonConverters +{ + /// + public sealed class UserPlanMonitoringLevelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Apify.UserPlanMonitoringLevel? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Apify.UserPlanMonitoringLevelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Apify.UserPlanMonitoringLevel)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Apify.UserPlanMonitoringLevel?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Apify.UserPlanMonitoringLevel? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Apify.UserPlanMonitoringLevelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs index 15befcb9..a40da6a7 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContext.g.cs @@ -47,6 +47,10 @@ namespace Apify typeof(global::Apify.JsonConverters.WebhookDispatchStatusNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeJsonConverter), + + typeof(global::Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorJobStatusJsonConverter), typeof(global::Apify.JsonConverters.ActorJobStatusNullableJsonConverter), @@ -79,6 +83,18 @@ namespace Apify typeof(global::Apify.JsonConverters.ScheduleActionDiscriminatorTypeNullableJsonConverter), + typeof(global::Apify.JsonConverters.UserPlanMonitoringLevelJsonConverter), + + typeof(global::Apify.JsonConverters.UserPlanMonitoringLevelNullableJsonConverter), + + typeof(global::Apify.JsonConverters.GitProviderIntegrationProviderJsonConverter), + + typeof(global::Apify.JsonConverters.GitProviderIntegrationProviderNullableJsonConverter), + + typeof(global::Apify.JsonConverters.GitRepoFileEncodingJsonConverter), + + typeof(global::Apify.JsonConverters.GitRepoFileEncodingNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorsGetSortByJsonConverter), typeof(global::Apify.JsonConverters.ActorsGetSortByNullableJsonConverter), @@ -87,6 +103,22 @@ namespace Apify typeof(global::Apify.JsonConverters.ActorsRunsPostForcePermissionLevelNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncPostForcePermissionLevelNullableJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetForcePermissionLevelNullableJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsPostForcePermissionLevelNullableJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelJsonConverter), + + typeof(global::Apify.JsonConverters.ActorRunSyncGetDatasetItemsGetForcePermissionLevelNullableJsonConverter), + typeof(global::Apify.JsonConverters.ActorRunsLastDatasetItemsPostContentEncodingJsonConverter), typeof(global::Apify.JsonConverters.ActorRunsLastDatasetItemsPostContentEncodingNullableJsonConverter), @@ -171,7 +203,7 @@ namespace Apify typeof(global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter), - typeof(global::Apify.JsonConverters.ListOfWebhooksJsonConverter), + typeof(global::Apify.JsonConverters.ListOfWebhookResourcesJsonConverter), typeof(global::Apify.JsonConverters.ListOfBuildsJsonConverter), @@ -193,6 +225,8 @@ namespace Apify typeof(global::Apify.JsonConverters.ListOfRequestQueuesJsonConverter), + typeof(global::Apify.JsonConverters.ListOfWebhooksJsonConverter), + typeof(global::Apify.JsonConverters.ListOfWebhookDispatchesJsonConverter), typeof(global::Apify.JsonConverters.ScheduleListItemActionJsonConverter), @@ -221,6 +255,8 @@ namespace Apify typeof(global::Apify.JsonConverters.OneOfJsonConverter>), + typeof(global::Apify.JsonConverters.OneOfJsonConverter>), + typeof(global::Apify.JsonConverters.OneOfJsonConverter>), typeof(global::Apify.JsonConverters.AllOfJsonConverter), @@ -253,6 +289,8 @@ namespace Apify typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.AnyOfJsonConverter), + typeof(global::Apify.JsonConverters.UnixTimestampJsonConverter), })] #pragma warning restore CS3016 @@ -334,20 +372,32 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfVersionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.VersionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateVersionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UpdateBuildOnPushRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVars))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfEnvVarsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EnvVarResponse))] [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.WebhookSlackMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDatasetTransformation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleMail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleDrive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGithubIssue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] [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.WebhookListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] [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::Apify.ListOfWebhooksResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResources), TypeInfoPropertyName = "ListOfWebhookResources2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResourcesVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfWebhookResourcesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnectionOAuthProviderType), TypeInfoPropertyName = "ActorOAuthConnectionOAuthProviderType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthConnectionCredentials))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthConnections))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthConnectionsResponse))] [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.BuildMeta))] @@ -370,6 +420,7 @@ 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.RunStandby))] [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))] @@ -377,6 +428,8 @@ namespace Apify [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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -384,6 +437,7 @@ namespace Apify [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::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))] @@ -469,30 +523,44 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskPublicConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TaskPublicConfigFaqItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateTaskRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf>), TypeInfoPropertyName = "AnyOfTaskInputIListTaskInput2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [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.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.ActorOAuthAccount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthAccounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfActorOAuthAccountsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorOAuthAccountResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StorageOwnership), TypeInfoPropertyName = "StorageOwnership2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreListStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreListItem))] [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.RequestQueueListStats))] [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::Apify.ListOfRequestQueuesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookListItem))] + [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::Apify.ListOfWebhooksResponse))] [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.UpdateWebhookRequest))] @@ -507,6 +575,7 @@ namespace Apify [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.ScheduleBase))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleNotifications))] [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")] @@ -519,7 +588,6 @@ namespace Apify [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::Apify.ListOfSchedulesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleNotifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActorTask))] @@ -528,6 +596,8 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminatorType), TypeInfoPropertyName = "ScheduleCreateActionDiscriminatorType2")] [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.ScheduleUiState))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleUiStateData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActorTask))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleAction), TypeInfoPropertyName = "ScheduleAction2")] @@ -541,7 +611,13 @@ namespace Apify [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::Apify.CurrentPricingInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentPricingInfoTieredPricing2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActorInputSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActorInputSchemaProperties2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] [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))] @@ -553,6 +629,7 @@ namespace Apify [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.UserPlan))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPlanMonitoringLevel), TypeInfoPropertyName = "UserPlanMonitoringLevel2")] [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))] @@ -571,8 +648,22 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AccountLimits))] [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.GitProviderWorkspace))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderIntegration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderIntegrationProvider), TypeInfoPropertyName = "GitProviderIntegrationProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfGitProviderIntegrationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoFileEncoding), TypeInfoPropertyName = "GitRepoFileEncoding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateGitRepoRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyResponseData))] [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.EncodeAndSignResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.EncodeAndSignResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.DecodeAndVerifyRequest))] @@ -588,6 +679,10 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsGetSortBy), TypeInfoPropertyName = "ActorsGetSortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorsRunsPostForcePermissionLevel), TypeInfoPropertyName = "ActorsRunsPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncPostForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetDatasetItemsPostForcePermissionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel), TypeInfoPropertyName = "ActorRunSyncGetDatasetItemsGetForcePermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastDatasetItemsPostContentEncoding), TypeInfoPropertyName = "ActorRunsLastDatasetItemsPostContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding), TypeInfoPropertyName = "ActorRunsLastKeyValueStoreRecordPutContentEncoding2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding), TypeInfoPropertyName = "ActorRunsLastKeyValueStoreRecordPostContentEncoding2")] @@ -618,13 +713,13 @@ 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::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::Apify.AnyOf), TypeInfoPropertyName = "AnyOfUserPublicInfoResponseUserPrivateInfoResponse2")] [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))] @@ -634,7 +729,8 @@ 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))] @@ -649,11 +745,14 @@ 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::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))] @@ -661,11 +760,14 @@ 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::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::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::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))] @@ -674,7 +776,6 @@ 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))] 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 34c41cee..0ee66a41 100644 --- a/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs +++ b/src/libs/Apify/Generated/Apify.JsonSerializerContextTypes.g.cs @@ -322,1167 +322,1395 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.ListOfEnvVars? Type71 { get; set; } + public global::Apify.UpdateBuildOnPushRequest? Type71 { get; set; } /// /// /// - public global::Apify.ListOfEnvVarsResponse? Type72 { get; set; } + public global::Apify.ListOfEnvVars? Type72 { get; set; } /// /// /// - public global::Apify.EnvVarResponse? Type73 { get; set; } + public global::Apify.ListOfEnvVarsResponse? Type73 { get; set; } /// /// /// - public global::Apify.WebhookEventType? Type74 { get; set; } + public global::Apify.EnvVarResponse? Type74 { get; set; } /// /// /// - public global::Apify.WebhookCondition? Type75 { get; set; } + public global::Apify.WebhookEventType? Type75 { get; set; } /// /// /// - public global::Apify.WebhookDispatchStatus? Type76 { get; set; } + public global::Apify.WebhookCondition? Type76 { get; set; } /// /// /// - public global::Apify.WebhookLastDispatch? Type77 { get; set; } + public global::Apify.WebhookSlackMessage? Type77 { get; set; } /// /// /// - public global::Apify.WebhookStats? Type78 { get; set; } + public global::Apify.WebhookDatasetTransformation? Type78 { get; set; } /// /// /// - public global::Apify.WebhookListItem? Type79 { get; set; } + public global::Apify.WebhookGoogleMail? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::Apify.WebhookGoogleDrive? Type80 { get; set; } /// /// /// - public global::Apify.ListOfWebhooks? Type81 { get; set; } + public global::Apify.WebhookGithubIssue? Type81 { get; set; } /// /// /// - public global::Apify.ListOfWebhooksVariant2? Type82 { get; set; } + public global::Apify.WebhookDispatchStatus? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::Apify.WebhookLastDispatch? Type83 { get; set; } /// /// /// - public global::Apify.ListOfWebhooksResponse? Type84 { get; set; } + public global::Apify.WebhookStats? Type84 { get; set; } /// /// /// - public global::Apify.ActorJobStatus? Type85 { get; set; } + public global::Apify.WebhookResource? Type85 { get; set; } /// /// /// - public global::Apify.RunOrigin? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::Apify.BuildMeta? Type87 { get; set; } + public global::Apify.ListOfWebhookResources? Type87 { get; set; } /// /// /// - public global::Apify.BuildListItem? Type88 { get; set; } + public global::Apify.ListOfWebhookResourcesVariant2? Type88 { get; set; } /// /// /// - public global::Apify.ListOfBuilds? Type89 { get; set; } + public global::System.Collections.Generic.IList? Type89 { get; set; } /// /// /// - public global::Apify.ListOfBuildsVariant2? Type90 { get; set; } + public global::Apify.ListOfWebhookResourcesResponse? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::Apify.ActorOAuthConnection? Type91 { get; set; } /// /// /// - public global::Apify.ListOfBuildsResponse? Type92 { get; set; } + public global::Apify.ActorOAuthConnectionOAuthProviderType? Type92 { get; set; } /// /// /// - public global::Apify.BuildStats? Type93 { get; set; } + public global::Apify.ActorOAuthConnectionCredentials? Type93 { get; set; } /// /// /// - public global::Apify.BuildOptions? Type94 { get; set; } + public global::Apify.ListOfActorOAuthConnections? Type94 { get; set; } /// /// /// - public global::Apify.BuildUsage? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::Apify.ActorDefinitionMeta? Type96 { get; set; } + public global::Apify.ListOfActorOAuthConnectionsResponse? Type96 { get; set; } /// /// /// - public global::Apify.ActorDefinition? Type97 { get; set; } + public global::Apify.ActorJobStatus? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type98 { get; set; } + public global::Apify.RunOrigin? Type98 { get; set; } /// /// /// - public global::Apify.ActorDefinitionStorages? Type99 { get; set; } + public global::Apify.BuildMeta? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type100 { get; set; } + public global::Apify.BuildListItem? Type100 { get; set; } /// /// /// - public global::Apify.OneOf? Type101 { get; set; } + public global::Apify.ListOfBuilds? Type101 { get; set; } /// /// /// - public global::Apify.Build? Type102 { get; set; } + public global::Apify.ListOfBuildsVariant2? Type102 { get; set; } /// /// /// - public global::Apify.BuildActVersion? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::Apify.ListOfBuildsResponse? Type104 { get; set; } /// /// /// - public global::Apify.BuildResponse? Type105 { get; set; } + public global::Apify.BuildStats? Type105 { get; set; } /// /// /// - public global::Apify.RunMeta? Type106 { get; set; } + public global::Apify.BuildOptions? Type106 { get; set; } /// /// /// - public global::Apify.RunListItem? Type107 { get; set; } + public global::Apify.BuildUsage? Type107 { get; set; } /// /// /// - public global::Apify.ListOfRuns? Type108 { get; set; } + public global::Apify.ActorDefinitionMeta? Type108 { get; set; } /// /// /// - public global::Apify.ListOfRunsVariant2? Type109 { get; set; } + public global::Apify.ActorDefinition? Type109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type110 { get; set; } + public global::System.Collections.Generic.Dictionary? Type110 { get; set; } /// /// /// - public global::Apify.ListOfRunsResponse? Type111 { get; set; } + public global::Apify.ActorDefinitionStorages? Type111 { get; set; } /// /// /// - public global::Apify.WebhookRepresentation? Type112 { get; set; } + public global::System.Collections.Generic.Dictionary? Type112 { get; set; } /// /// /// - public global::Apify.RunStats? Type113 { get; set; } + public global::Apify.OneOf? Type113 { get; set; } /// /// /// - public global::Apify.RunOptions? Type114 { get; set; } + public global::Apify.Build? Type114 { get; set; } /// /// /// - public global::Apify.GeneralAccess? Type115 { get; set; } + public global::Apify.BuildActVersion? Type115 { get; set; } /// /// /// - public global::Apify.RunUsage? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::Apify.RunUsageUsd? Type117 { get; set; } + public global::Apify.BuildResponse? Type117 { get; set; } /// /// /// - public global::Apify.RunMetamorphEvent? Type118 { get; set; } + public global::Apify.RunMeta? Type118 { get; set; } /// /// /// - public global::Apify.Run? Type119 { get; set; } + public global::Apify.RunStandby? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type120 { get; set; } + public global::Apify.RunListItem? Type120 { get; set; } /// /// /// - public global::Apify.RunStorageIds? Type121 { get; set; } + public global::Apify.ListOfRuns? Type121 { get; set; } /// /// /// - public global::Apify.RunStorageIdsDatasets? Type122 { get; set; } + public global::Apify.ListOfRunsVariant2? Type122 { get; set; } /// /// /// - public global::Apify.RunStorageIdsKeyValueStores? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::Apify.RunStorageIdsRequestQueues? Type124 { get; set; } + public global::Apify.ListOfRunsResponse? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::Apify.WebhookRepresentation? Type125 { get; set; } /// /// /// - public global::Apify.RunResponse? Type126 { get; set; } + public global::Apify.RunStats? Type126 { get; set; } /// /// /// - public global::Apify.DatasetStats? Type127 { get; set; } + public global::Apify.RunEventUsage? Type127 { get; set; } /// /// /// - public global::Apify.DatasetResource? Type128 { get; set; } + public global::Apify.IntegrationTracking? Type128 { get; set; } /// /// /// - public global::Apify.DatasetResponse? Type129 { get; set; } + public global::Apify.RunOptions? Type129 { get; set; } /// /// /// - public global::Apify.UpdateDatasetRequest? Type130 { get; set; } + public global::Apify.GeneralAccess? Type130 { get; set; } /// /// /// - public global::Apify.PutItemsRequest? Type131 { get; set; } + public global::Apify.RunUsage? Type131 { get; set; } /// /// /// - public global::Apify.DatasetItemValidationError? Type132 { get; set; } + public global::Apify.RunUsageUsd? Type132 { get; set; } /// /// /// - public global::Apify.InvalidDatasetItem? Type133 { get; set; } + public global::Apify.RunMetamorphEvent? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::Apify.Run? Type134 { get; set; } /// /// /// - public global::Apify.DatasetSchemaValidationErrorData? Type135 { get; set; } + public global::System.Collections.Generic.Dictionary? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::System.Collections.Generic.Dictionary? Type136 { get; set; } /// /// /// - public global::Apify.DatasetSchemaValidationError? Type137 { get; set; } + public global::Apify.RunStorageIds? Type137 { get; set; } /// /// /// - public global::Apify.PutItemsErrorResponse? Type138 { get; set; } + public global::Apify.RunStorageIdsDatasets? Type138 { get; set; } /// /// /// - public global::Apify.DatasetFieldStatistics? Type139 { get; set; } + public global::Apify.RunStorageIdsKeyValueStores? Type139 { get; set; } /// /// /// - public global::Apify.DatasetStatistics? Type140 { get; set; } + public global::Apify.RunStorageIdsRequestQueues? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type141 { get; set; } + public global::System.Collections.Generic.IList? Type141 { get; set; } /// /// /// - public global::Apify.DatasetStatisticsResponse? Type142 { get; set; } + public global::Apify.RunResponse? Type142 { get; set; } /// /// /// - public global::Apify.KeyValueStoreStats? Type143 { get; set; } + public global::Apify.DatasetStats? Type143 { get; set; } /// /// /// - public global::Apify.KeyValueStoreResource? Type144 { get; set; } + public global::Apify.DatasetResource? Type144 { get; set; } /// /// /// - public global::Apify.KeyValueStoreResponse? Type145 { get; set; } + public global::Apify.DatasetResponse? Type145 { get; set; } /// /// /// - public global::Apify.UpdateKeyValueStoreRequest? Type146 { get; set; } + public global::Apify.UpdateDatasetRequest? Type146 { get; set; } /// /// /// - public global::Apify.KeyValueStoreKey? Type147 { get; set; } + public global::Apify.PutItemsRequest? Type147 { get; set; } /// /// /// - public global::Apify.ListOfKeys? Type148 { get; set; } + public global::Apify.DatasetItemValidationError? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Apify.InvalidDatasetItem? Type149 { get; set; } /// /// /// - public global::Apify.ListOfKeysResponse? Type150 { get; set; } + public global::System.Collections.Generic.IList? Type150 { get; set; } /// /// /// - public global::Apify.RecordResponse? Type151 { get; set; } + public global::Apify.DatasetSchemaValidationErrorData? Type151 { get; set; } /// /// /// - public global::Apify.PutRecordRequest? Type152 { get; set; } + public global::System.Collections.Generic.IList? Type152 { get; set; } /// /// /// - public global::Apify.RequestQueueStats? Type153 { get; set; } + public global::Apify.DatasetSchemaValidationError? Type153 { get; set; } /// /// /// - public global::Apify.RequestQueueResource? Type154 { get; set; } + public global::Apify.PutItemsErrorResponse? Type154 { get; set; } /// /// /// - public global::Apify.RequestQueueResponse? Type155 { get; set; } + public global::Apify.DatasetFieldStatistics? Type155 { get; set; } /// /// /// - public global::Apify.UpdateRequestQueueRequest? Type156 { get; set; } + public global::Apify.DatasetStatistics? Type156 { get; set; } /// /// /// - public global::Apify.HttpMethod? Type157 { get; set; } + public global::System.Collections.Generic.Dictionary? Type157 { get; set; } /// /// /// - public global::Apify.RequestUserData? Type158 { get; set; } + public global::Apify.DatasetStatisticsResponse? Type158 { get; set; } /// /// /// - public global::Apify.RequestBase? Type159 { get; set; } + public global::Apify.KeyValueStoreStats? Type159 { get; set; } /// /// /// - public global::Apify.RequestResource? Type160 { get; set; } + public global::Apify.KeyValueStoreResource? Type160 { get; set; } /// /// /// - public global::Apify.RequestResourceVariant2? Type161 { get; set; } + public global::Apify.KeyValueStoreResponse? Type161 { get; set; } /// /// /// - public global::Apify.ListOfRequests? Type162 { get; set; } + public global::Apify.UpdateKeyValueStoreRequest? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::Apify.KeyValueStoreKey? Type163 { get; set; } /// /// /// - public global::Apify.ListOfRequestsResponse? Type164 { get; set; } + public global::Apify.ListOfKeys? Type164 { get; set; } /// /// /// - public global::Apify.RequestWithoutId? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Apify.RequestRegistration? Type166 { get; set; } + public global::Apify.ListOfKeysResponse? Type166 { get; set; } /// /// /// - public global::Apify.AddRequestResponse? Type167 { get; set; } + public global::Apify.RecordResponse? Type167 { get; set; } /// /// /// - public global::Apify.AddedRequest? Type168 { get; set; } + public global::Apify.PutRecordRequest? Type168 { get; set; } /// /// /// - public global::Apify.UnprocessedRequest? Type169 { get; set; } + public global::Apify.RequestQueueStats? Type169 { get; set; } /// /// /// - public global::Apify.BatchAddResult? Type170 { get; set; } + public global::Apify.RequestQueueResource? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Apify.RequestQueueResponse? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::Apify.UpdateRequestQueueRequest? Type172 { get; set; } /// /// /// - public global::Apify.BatchAddResponse? Type173 { get; set; } + public global::Apify.HttpMethod? Type173 { get; set; } /// /// /// - public global::Apify.RequestToDeleteById? Type174 { get; set; } + public global::Apify.RequestUserData? Type174 { get; set; } /// /// /// - public global::Apify.RequestToDeleteByUniqueKey? Type175 { get; set; } + public global::Apify.RequestBase? Type175 { get; set; } /// /// /// - public global::Apify.RequestToDelete? Type176 { get; set; } + public global::Apify.RequestResource? Type176 { get; set; } /// /// /// - public global::Apify.DeletedRequestById? Type177 { get; set; } + public global::Apify.RequestResourceVariant2? Type177 { get; set; } /// /// /// - public global::Apify.DeletedRequestByUniqueKey? Type178 { get; set; } + public global::Apify.ListOfRequests? Type178 { get; set; } /// /// /// - public global::Apify.DeletedRequest? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Apify.BatchDeleteResult? Type180 { get; set; } + public global::Apify.ListOfRequestsResponse? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Apify.RequestWithoutId? Type181 { get; set; } /// /// /// - public global::Apify.BatchDeleteResponse? Type182 { get; set; } + public global::Apify.RequestRegistration? Type182 { get; set; } /// /// /// - public global::Apify.UnlockRequestsResult? Type183 { get; set; } + public global::Apify.AddRequestResponse? Type183 { get; set; } /// /// /// - public global::Apify.UnlockRequestsResponse? Type184 { get; set; } + public global::Apify.AddedRequest? Type184 { get; set; } /// /// /// - public global::Apify.RequestResponse? Type185 { get; set; } + public global::Apify.UnprocessedRequest? Type185 { get; set; } /// /// /// - public global::Apify.UpdateRequestResponse? Type186 { get; set; } + public global::Apify.BatchAddResult? Type186 { get; set; } /// /// /// - public global::Apify.RequestLockInfo? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::Apify.ProlongRequestLockResponse? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::Apify.RequestQueueHeadItem? Type189 { get; set; } + public global::Apify.BatchAddResponse? Type189 { get; set; } /// /// /// - public global::Apify.RequestQueueHead? Type190 { get; set; } + public global::Apify.RequestToDeleteById? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::Apify.RequestToDeleteByUniqueKey? Type191 { get; set; } /// /// /// - public global::Apify.RequestQueueHeadResponse? Type192 { get; set; } + public global::Apify.RequestToDelete? Type192 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHeadItem? Type193 { get; set; } + public global::Apify.DeletedRequestById? Type193 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHead? Type194 { get; set; } + public global::Apify.DeletedRequestByUniqueKey? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::Apify.DeletedRequest? Type195 { get; set; } /// /// /// - public global::Apify.LockedRequestQueueHeadResponse? Type196 { get; set; } + public global::Apify.BatchDeleteResult? Type196 { get; set; } /// /// /// - public global::Apify.TaskStats? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Apify.TaskListItem? Type198 { get; set; } + public global::Apify.BatchDeleteResponse? Type198 { get; set; } /// /// /// - public global::Apify.ListOfTasks? Type199 { get; set; } + public global::Apify.UnlockRequestsResult? Type199 { get; set; } /// /// /// - public global::Apify.ListOfTasksVariant2? Type200 { get; set; } + public global::Apify.UnlockRequestsResponse? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::Apify.RequestResponse? Type201 { get; set; } /// /// /// - public global::Apify.ListOfTasksResponse? Type202 { get; set; } + public global::Apify.UpdateRequestResponse? Type202 { get; set; } /// /// /// - public global::Apify.TaskOptions? Type203 { get; set; } + public global::Apify.RequestLockInfo? Type203 { get; set; } /// /// /// - public global::Apify.TaskInput? Type204 { get; set; } + public global::Apify.ProlongRequestLockResponse? Type204 { get; set; } /// /// /// - public global::Apify.TaskPublicConfig? Type205 { get; set; } + public global::Apify.RequestQueueHeadItem? Type205 { get; set; } /// /// /// - public global::Apify.CreateTaskRequest? Type206 { get; set; } + public global::Apify.RequestQueueHead? Type206 { get; set; } /// /// /// - public global::Apify.AnyOf>? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::Apify.RequestQueueHeadResponse? Type208 { get; set; } /// /// /// - public global::Apify.Task? Type209 { get; set; } + public global::Apify.LockedRequestQueueHeadItem? Type209 { get; set; } /// /// /// - public global::Apify.TaskResponse? Type210 { get; set; } + public global::Apify.LockedRequestQueueHead? Type210 { get; set; } /// /// /// - public global::Apify.UpdateTaskRequest? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::Apify.WebhookResource? Type212 { get; set; } + public global::Apify.LockedRequestQueueHeadResponse? Type212 { get; set; } /// /// /// - public global::Apify.UpdateRunRequest? Type213 { get; set; } + public global::Apify.TaskStats? Type213 { get; set; } /// /// /// - public global::Apify.ChargeRunRequest? Type214 { get; set; } + public global::Apify.TaskListItem? Type214 { get; set; } /// /// /// - public global::Apify.StorageOwnership? Type215 { get; set; } + public global::Apify.ListOfTasks? Type215 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStores? Type216 { get; set; } + public global::Apify.ListOfTasksVariant2? Type216 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStoresVariant2? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Apify.ListOfTasksResponse? Type218 { get; set; } /// /// /// - public global::Apify.ListOfKeyValueStoresResponse? Type219 { get; set; } + public global::Apify.TaskOptions? Type219 { get; set; } /// /// /// - public global::Apify.DatasetListItem? Type220 { get; set; } + public global::Apify.TaskInput? Type220 { get; set; } /// /// /// - public global::Apify.ListOfDatasets? Type221 { get; set; } + public global::Apify.TaskPublicConfig? Type221 { get; set; } /// /// /// - public global::Apify.ListOfDatasetsVariant2? Type222 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Apify.TaskPublicConfigFaqItem? Type223 { get; set; } /// /// /// - public global::Apify.ListOfDatasetsResponse? Type224 { get; set; } + public global::Apify.CreateTaskRequest? Type224 { get; set; } /// /// /// - public global::Apify.RequestQueueListItem? Type225 { get; set; } + public global::Apify.AnyOf>? Type225 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueues? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueuesVariant2? Type227 { get; set; } + public global::Apify.Task? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Apify.TaskResponse? Type228 { get; set; } /// /// /// - public global::Apify.ListOfRequestQueuesResponse? Type229 { get; set; } + public global::Apify.UpdateTaskRequest? Type229 { get; set; } /// /// /// - public global::Apify.CreateWebhookRequest? Type230 { get; set; } + public global::Apify.UpdateRunRequest? Type230 { get; set; } /// /// /// - public global::Apify.WebhookResponse? Type231 { get; set; } + public global::Apify.ChargeRunRequest? Type231 { get; set; } /// /// /// - public global::Apify.UpdateWebhookRequest? Type232 { get; set; } + public global::Apify.ActorOAuthAccount? Type232 { get; set; } /// /// /// - public global::Apify.WebhookDispatchWebhookSummary? Type233 { get; set; } + public global::Apify.ListOfActorOAuthAccounts? Type233 { get; set; } /// /// /// - public global::Apify.WebhookDispatch? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::Apify.WebhookDispatchEventData? Type235 { get; set; } + public global::Apify.ListOfActorOAuthAccountsResponse? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::Apify.ActorOAuthAccountResponse? Type236 { get; set; } /// /// /// - public global::Apify.WebhookDispatchCall? Type237 { get; set; } + public global::Apify.StorageOwnership? Type237 { get; set; } /// /// /// - public global::Apify.WebhookDispatchResponse? Type238 { get; set; } + public global::Apify.KeyValueStoreListStats? Type238 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatches? Type239 { get; set; } + public global::Apify.KeyValueStoreListItem? Type239 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatchesVariant2? Type240 { get; set; } + public global::Apify.ListOfKeyValueStores? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::Apify.ListOfKeyValueStoresVariant2? Type241 { get; set; } /// /// /// - public global::Apify.ListOfWebhookDispatchesResponse? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Apify.ScheduleBase? Type243 { get; set; } + public global::Apify.ListOfKeyValueStoresResponse? Type243 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionRunActor? Type244 { get; set; } + public global::Apify.DatasetListItem? Type244 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionRunActorTask? Type245 { get; set; } + public global::Apify.ListOfDatasets? Type245 { get; set; } /// /// /// - public global::Apify.ScheduleListItemAction? Type246 { get; set; } + public global::Apify.ListOfDatasetsVariant2? Type246 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionDiscriminator? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::Apify.ScheduleListItemActionDiscriminatorType? Type248 { get; set; } + public global::Apify.ListOfDatasetsResponse? Type248 { get; set; } /// /// /// - public global::Apify.ScheduleListItem? Type249 { get; set; } + public global::Apify.RequestQueueListStats? Type249 { get; set; } /// /// /// - public global::Apify.ScheduleListItemVariant2? Type250 { get; set; } + public global::Apify.RequestQueueListItem? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::Apify.ListOfRequestQueues? Type251 { get; set; } /// /// /// - public global::Apify.ListOfSchedules? Type252 { get; set; } + public global::Apify.ListOfRequestQueuesVariant2? Type252 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesVariant2? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::Apify.ListOfRequestQueuesResponse? Type254 { get; set; } /// /// /// - public global::Apify.ListOfSchedulesResponse? Type255 { get; set; } + public global::Apify.WebhookListItem? Type255 { get; set; } /// /// /// - public global::Apify.ScheduleNotifications? Type256 { get; set; } + public global::Apify.ListOfWebhooks? Type256 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunInput? Type257 { get; set; } + public global::Apify.ListOfWebhooksVariant2? Type257 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActor? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionRunActorTask? Type259 { get; set; } + public global::Apify.ListOfWebhooksResponse? Type259 { get; set; } /// /// /// - public global::Apify.ScheduleCreateAction? Type260 { get; set; } + public global::Apify.CreateWebhookRequest? Type260 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminator? Type261 { get; set; } + public global::Apify.WebhookResponse? Type261 { get; set; } /// /// /// - public global::Apify.ScheduleCreateActionDiscriminatorType? Type262 { get; set; } + public global::Apify.UpdateWebhookRequest? Type262 { get; set; } /// /// /// - public global::Apify.CreateOrUpdateScheduleRequest? Type263 { get; set; } + public global::Apify.WebhookDispatchWebhookSummary? Type263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type264 { get; set; } + public global::Apify.WebhookDispatch? Type264 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActor? Type265 { get; set; } + public global::Apify.WebhookDispatchEventData? Type265 { get; set; } /// /// /// - public global::Apify.ScheduleActionRunActorTask? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::Apify.ScheduleAction? Type267 { get; set; } + public global::Apify.WebhookDispatchCall? Type267 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminator? Type268 { get; set; } + public global::Apify.WebhookDispatchResponse? Type268 { get; set; } /// /// /// - public global::Apify.ScheduleActionDiscriminatorType? Type269 { get; set; } + public global::Apify.ListOfWebhookDispatches? Type269 { get; set; } /// /// /// - public global::Apify.Schedule? Type270 { get; set; } + public global::Apify.ListOfWebhookDispatchesVariant2? Type270 { get; set; } /// /// /// - public global::Apify.ScheduleVariant2? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Apify.ListOfWebhookDispatchesResponse? Type272 { get; set; } /// /// /// - public global::Apify.ScheduleResponse? Type273 { get; set; } + public global::Apify.ScheduleBase? Type273 { get; set; } /// /// /// - public global::Apify.ScheduleLogEntry? Type274 { get; set; } + public global::Apify.ScheduleNotifications? Type274 { get; set; } /// /// /// - public global::Apify.ScheduleLogResponse? Type275 { get; set; } + public global::Apify.ScheduleListItemActionRunActor? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::Apify.ScheduleListItemActionRunActorTask? Type276 { get; set; } /// /// /// - public global::Apify.CurrentPricingInfo? Type277 { get; set; } + public global::Apify.ScheduleListItemAction? Type277 { get; set; } /// /// /// - public global::Apify.StoreActor? Type278 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminator? Type278 { get; set; } /// /// /// - public global::Apify.ListOfStoreActors? Type279 { get; set; } + public global::Apify.ScheduleListItemActionDiscriminatorType? Type279 { get; set; } /// /// /// - public global::Apify.ListOfStoreActorsVariant2? Type280 { get; set; } + public global::Apify.ScheduleListItem? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Apify.ScheduleListItemVariant2? Type281 { get; set; } /// /// /// - public global::Apify.ListOfStoreActorsResponse? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::Apify.UserProfile? Type283 { get; set; } + public global::Apify.ListOfSchedules? Type283 { get; set; } /// /// /// - public global::Apify.UserPublicInfo? Type284 { get; set; } + public global::Apify.ListOfSchedulesVariant2? Type284 { get; set; } /// /// /// - public global::Apify.UserPublicInfoResponse? Type285 { get; set; } + public global::System.Collections.Generic.IList? Type285 { get; set; } /// /// /// - public global::Apify.ProxyGroup? Type286 { get; set; } + public global::Apify.ListOfSchedulesResponse? Type286 { get; set; } /// /// /// - public global::Apify.ProxyResource? Type287 { get; set; } + public global::Apify.ScheduleActionRunInput? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::Apify.ScheduleCreateActionRunActor? Type288 { get; set; } /// /// /// - public global::Apify.UserPlan? Type289 { get; set; } + public global::Apify.ScheduleCreateActionRunActorTask? Type289 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeature? Type290 { get; set; } + public global::Apify.ScheduleCreateAction? Type290 { get; set; } /// /// /// - public global::Apify.EffectivePlatformFeatures? Type291 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminator? Type291 { get; set; } /// /// /// - public global::Apify.UserPrivateInfo? Type292 { get; set; } + public global::Apify.ScheduleCreateActionDiscriminatorType? Type292 { get; set; } /// /// /// - public global::Apify.UserPrivateInfoResponse? Type293 { get; set; } + public global::Apify.CreateOrUpdateScheduleRequest? Type293 { get; set; } /// /// /// - public global::Apify.UsageCycle? Type294 { get; set; } + public global::System.Collections.Generic.IList? Type294 { get; set; } /// /// /// - public global::Apify.PriceTier? Type295 { get; set; } + public global::Apify.ScheduleUiState? Type295 { get; set; } /// /// /// - public global::Apify.UsageItem? Type296 { get; set; } + public global::Apify.ScheduleUiStateData? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::Apify.ScheduleActionRunActor? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type298 { get; set; } + public global::Apify.ScheduleActionRunActorTask? Type298 { get; set; } /// /// /// - public global::Apify.DailyServiceUsage? Type299 { get; set; } + public global::Apify.ScheduleAction? Type299 { get; set; } /// /// /// - public global::Apify.MonthlyUsage? Type300 { get; set; } + public global::Apify.ScheduleActionDiscriminator? Type300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type301 { get; set; } + public global::Apify.ScheduleActionDiscriminatorType? Type301 { get; set; } /// /// /// - public global::Apify.MonthlyUsageResponse? Type302 { get; set; } + public global::Apify.Schedule? Type302 { get; set; } /// /// /// - public global::Apify.Limits? Type303 { get; set; } + public global::Apify.ScheduleVariant2? Type303 { get; set; } /// /// /// - public global::Apify.CurrentUsage? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::Apify.AccountLimits? Type305 { get; set; } + public global::Apify.ScheduleResponse? Type305 { get; set; } /// /// /// - public global::Apify.AccountLimitsResponse? Type306 { get; set; } + public global::Apify.ScheduleLogEntry? Type306 { get; set; } /// /// /// - public global::Apify.UpdateLimitsRequest? Type307 { get; set; } + public global::Apify.ScheduleLogResponse? Type307 { get; set; } /// /// /// - public global::Apify.BrowserInfoResponse? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::Apify.OneOf>? Type309 { get; set; } + public global::Apify.CurrentPricingInfo? Type309 { get; set; } /// /// /// - public global::Apify.EncodeAndSignResult? Type310 { get; set; } + public global::System.Collections.Generic.Dictionary? Type310 { get; set; } /// /// /// - public global::Apify.EncodeAndSignResponse? Type311 { get; set; } + public global::Apify.CurrentPricingInfoTieredPricing2? Type311 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyRequest? Type312 { get; set; } + public global::Apify.StoreActor? Type312 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyResult? Type313 { get; set; } + public global::Apify.StoreActorInputSchema? Type313 { get; set; } /// /// /// - public global::Apify.DecodeAndVerifyResponse? Type314 { get; set; } + public global::System.Collections.Generic.Dictionary? Type314 { get; set; } /// /// /// - public global::Apify.OneOf>? Type315 { get; set; } + public global::Apify.StoreActorInputSchemaProperties2? Type315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type316 { get; set; } + public global::Apify.OneOf>? Type316 { get; set; } /// /// /// - public global::Apify.AllOf? Type317 { get; set; } + public global::Apify.ListOfStoreActors? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::Apify.ListOfStoreActorsVariant2? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::System.Collections.Generic.IList? Type319 { get; set; } /// /// /// - public global::Apify.AllOf? Type320 { get; set; } + public global::Apify.ListOfStoreActorsResponse? Type320 { get; set; } /// /// /// - public global::Apify.AllOf? Type321 { get; set; } + public global::Apify.UserProfile? Type321 { get; set; } /// /// /// - public global::Apify.ActorsGetSortBy? Type322 { get; set; } + public global::Apify.UserPublicInfo? Type322 { get; set; } /// /// /// - public byte[]? Type323 { get; set; } + public global::Apify.UserPublicInfoResponse? Type323 { get; set; } /// /// /// - public global::Apify.ActorsRunsPostForcePermissionLevel? Type324 { get; set; } + public global::Apify.ProxyGroup? Type324 { get; set; } /// /// /// - public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type325 { get; set; } + public global::Apify.ProxyResource? Type325 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type327 { get; set; } + public global::Apify.UserPlan? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::Apify.UserPlanMonitoringLevel? Type328 { get; set; } /// /// /// - public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type329 { get; set; } + public global::Apify.EffectivePlatformFeature? Type329 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type330 { get; set; } + public global::Apify.EffectivePlatformFeatures? Type330 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type331 { get; set; } + public global::Apify.UserPrivateInfo? Type331 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type332 { get; set; } + public global::Apify.UserPrivateInfoResponse? Type332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type333 { get; set; } + public global::Apify.UsageCycle? Type333 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type334 { get; set; } + public global::Apify.PriceTier? Type334 { get; set; } /// /// /// - public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type335 { get; set; } + public global::Apify.UsageItem? Type335 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type336 { get; set; } + public global::System.Collections.Generic.IList? Type336 { get; set; } /// /// /// - public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type337 { get; set; } + public global::System.Collections.Generic.Dictionary? Type337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type338 { get; set; } + public global::Apify.DailyServiceUsage? Type338 { get; set; } /// /// /// - public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type339 { get; set; } + public global::Apify.MonthlyUsage? Type339 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPutContentEncoding? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::Apify.KeyValueStoreRecordPostContentEncoding? Type341 { get; set; } + public global::Apify.MonthlyUsageResponse? Type341 { get; set; } /// /// /// - public global::Apify.DatasetItemsPostContentEncoding? Type342 { get; set; } + public global::Apify.Limits? Type342 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type343 { get; set; } + public global::Apify.CurrentUsage? Type343 { get; set; } /// /// /// - public global::Apify.RequestQueueRequestsGetFilterItem? Type344 { get; set; } + public global::Apify.AccountLimits? Type344 { get; set; } /// /// /// - public global::Apify.StoreGetPricingModel? Type345 { get; set; } + public global::Apify.AccountLimitsResponse? Type345 { get; set; } /// /// /// - public global::Apify.StoreGetResponseFormat? Type346 { get; set; } + public global::Apify.UpdateLimitsRequest? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type347 { get; set; } + public global::Apify.GitProviderWorkspace? Type347 { get; set; } /// /// /// - public global::Apify.ActorValidateInputPostResponse? Type348 { get; set; } + public global::Apify.GitProviderIntegration? Type348 { get; set; } /// /// /// - public global::Apify.AnyOf? Type349 { get; set; } + public global::Apify.GitProviderIntegrationProvider? Type349 { get; set; } /// /// /// - public global::Apify.ActorTaskGetResponse? Type350 { get; set; } + public global::System.Collections.Generic.IList? Type350 { get; set; } /// /// /// - public global::Apify.ActorTaskPutResponse? Type351 { get; set; } + public global::Apify.ListOfGitProviderIntegrationsResponse? Type351 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponse? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::Apify.AllOf? Type353 { get; set; } + public global::Apify.GitRepoFile? Type353 { get; set; } /// /// /// - public global::Apify.ActorTaskWebhooksGetResponseData? Type354 { get; set; } + public global::Apify.GitRepoFileEncoding? Type354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type355 { get; set; } + public global::Apify.CreateGitRepoRequest? Type355 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponse? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::Apify.AllOf? Type357 { get; set; } + public global::Apify.GitRepo? Type357 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsGetResponseData? Type358 { get; set; } + public global::Apify.GitRepoResponse? Type358 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsPostResponse? Type359 { get; set; } + public global::Apify.RegisterDeploymentKeyRequest? Type359 { get; set; } /// /// /// - public global::Apify.ActorTaskRunsLastGetResponse? Type360 { get; set; } + public global::Apify.RegisterDeploymentKeyResponse? Type360 { get; set; } /// /// /// - public global::Apify.PostChargeRunResponse? Type361 { get; set; } + public global::Apify.RegisterDeploymentKeyResponseData? Type361 { get; set; } + /// + /// + /// + public global::Apify.BrowserInfoResponse? Type362 { get; set; } + /// + /// + /// + public global::Apify.EncodeAndSignResult? Type363 { get; set; } + /// + /// + /// + public global::Apify.EncodeAndSignResponse? Type364 { get; set; } + /// + /// + /// + public global::Apify.DecodeAndVerifyRequest? Type365 { get; set; } + /// + /// + /// + public global::Apify.DecodeAndVerifyResult? Type366 { get; set; } + /// + /// + /// + public global::Apify.DecodeAndVerifyResponse? Type367 { get; set; } + /// + /// + /// + public global::Apify.OneOf>? Type368 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type369 { get; set; } + /// + /// + /// + public global::Apify.AllOf? Type370 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type371 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type372 { get; set; } + /// + /// + /// + public global::Apify.AllOf? Type373 { get; set; } + /// + /// + /// + public global::Apify.AllOf? Type374 { get; set; } + /// + /// + /// + public global::Apify.ActorsGetSortBy? Type375 { get; set; } + /// + /// + /// + public byte[]? Type376 { get; set; } + /// + /// + /// + public global::Apify.ActorsRunsPostForcePermissionLevel? Type377 { get; set; } + /// + /// + /// + public global::Apify.ActorRunSyncPostForcePermissionLevel? Type378 { get; set; } + /// + /// + /// + public global::Apify.ActorRunSyncGetForcePermissionLevel? Type379 { get; set; } + /// + /// + /// + public global::Apify.ActorRunSyncGetDatasetItemsPostForcePermissionLevel? Type380 { get; set; } + /// + /// + /// + public global::Apify.ActorRunSyncGetDatasetItemsGetForcePermissionLevel? Type381 { get; set; } + /// + /// + /// + public global::Apify.ActorRunsLastDatasetItemsPostContentEncoding? Type382 { get; set; } + /// + /// + /// + public global::Apify.ActorRunsLastKeyValueStoreRecordPutContentEncoding? Type383 { get; set; } + /// + /// + /// + public global::Apify.ActorRunsLastKeyValueStoreRecordPostContentEncoding? Type384 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type385 { get; set; } + /// + /// + /// + public global::Apify.ActorRunsLastRequestQueueRequestsGetFilterItem? Type386 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastDatasetItemsPostContentEncoding? Type387 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPutContentEncoding? Type388 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastKeyValueStoreRecordPostContentEncoding? Type389 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type390 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastRequestQueueRequestsGetFilterItem? Type391 { get; set; } + /// + /// + /// + public global::Apify.ActorRunDatasetItemsPostContentEncoding? Type392 { get; set; } + /// + /// + /// + public global::Apify.ActorRunKeyValueStoreRecordPutContentEncoding? Type393 { get; set; } + /// + /// + /// + public global::Apify.ActorRunKeyValueStoreRecordPostContentEncoding? Type394 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type395 { get; set; } + /// + /// + /// + public global::Apify.ActorRunRequestQueueRequestsGetFilterItem? Type396 { get; set; } + /// + /// + /// + public global::Apify.KeyValueStoreRecordPutContentEncoding? Type397 { get; set; } + /// + /// + /// + public global::Apify.KeyValueStoreRecordPostContentEncoding? Type398 { get; set; } + /// + /// + /// + public global::Apify.DatasetItemsPostContentEncoding? Type399 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type400 { get; set; } + /// + /// + /// + public global::Apify.RequestQueueRequestsGetFilterItem? Type401 { get; set; } + /// + /// + /// + public global::Apify.StoreGetPricingModel? Type402 { get; set; } + /// + /// + /// + public global::Apify.StoreGetResponseFormat? Type403 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type404 { get; set; } + /// + /// + /// + public global::Apify.ActorValidateInputPostResponse? Type405 { get; set; } + /// + /// + /// + public global::Apify.AnyOf? Type406 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskGetResponse? Type407 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskPutResponse? Type408 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskWebhooksGetResponse? Type409 { get; set; } + /// + /// + /// + public global::Apify.AllOf? Type410 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskWebhooksGetResponseData? Type411 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsGetResponse? Type412 { get; set; } + /// + /// + /// + public global::Apify.AllOf? Type413 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsGetResponseData? Type414 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsPostResponse? Type415 { get; set; } + /// + /// + /// + public global::Apify.ActorTaskRunsLastGetResponse? Type416 { get; set; } + /// + /// + /// + public global::Apify.PostChargeRunResponse? Type417 { get; set; } + /// + /// + /// + public global::Apify.AnyOf? Type418 { get; set; } /// /// @@ -1523,127 +1751,127 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - 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; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - 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; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::Apify.AnyOf>? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::Apify.AnyOf>? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - 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; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - 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; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - 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; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// @@ -1651,42 +1879,66 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Apify.OneOf>? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType43 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::Apify.OneOf>? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType56 { 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 4fe48943..a5dbe22a 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSAbort.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs index a063eb9b..cf3869b7 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultDataset.JsonSerializerContext.g.cs @@ -113,6 +113,7 @@ 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.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs index aeef52cf..3bb2d29b 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultKeyValueStore.JsonSerializerContext.g.cs @@ -99,6 +99,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs index f94c2647..7b3decbd 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSDefaultRequestQueue.JsonSerializerContext.g.cs @@ -154,6 +154,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); 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.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSLog.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSLog.JsonSerializerContext.g.cs index 27e8e3ff..d9fd84eb 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSLog.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSLog.JsonSerializerContext.g.cs @@ -16,6 +16,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [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.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] @@ -72,6 +73,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs index 5ef8bb97..0e75af50 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSMetamorph.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs index c28aae29..9efd9895 100644 --- a/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorRunSReboot.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs index 99117c8f..1eefa598 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSAbort.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs index 89ec09e4..d2064d1e 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultDataset.JsonSerializerContext.g.cs @@ -113,6 +113,7 @@ 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.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs index 235834bc..1b484467 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultKeyValueStore.JsonSerializerContext.g.cs @@ -99,6 +99,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs index 35aa9937..52224679 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSDefaultRequestQueue.JsonSerializerContext.g.cs @@ -154,6 +154,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.DeletedRequestJsonConverter()); 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.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSLog.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSLog.JsonSerializerContext.g.cs index f03dd08f..f86868e7 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSLog.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSLog.JsonSerializerContext.g.cs @@ -16,6 +16,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [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.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] @@ -72,6 +73,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs index 1126fb32..dff7c8f5 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSMetamorph.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs index 7860aa20..49cf4c0a 100644 --- a/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.LastActorTaskRunSReboot.JsonSerializerContext.g.cs @@ -24,6 +24,7 @@ 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(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CommonActorPricingInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.TieredPricingPerEventEntry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -50,7 +51,10 @@ 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.RunStandby))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RunEventUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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))] @@ -58,6 +62,7 @@ namespace Apify [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::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))] @@ -81,6 +86,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 { @@ -136,6 +142,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ActorRunPricingInfoJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.Logs.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Logs.JsonSerializerContext.g.cs index f89bdcd4..14763e18 100644 --- a/src/libs/Apify/Generated/Apify.Logs.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Logs.JsonSerializerContext.g.cs @@ -16,6 +16,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [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.ErrorType), TypeInfoPropertyName = "ErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorDetail))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] @@ -70,6 +71,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.Json.g.cs new file mode 100644 index 00000000..bb042e83 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorOAuthAccount + { + /// + /// 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.ActorOAuthAccount? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorOAuthAccount), + jsonSerializerContext) as global::Apify.ActorOAuthAccount; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorOAuthAccount? 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.ActorOAuthAccount? 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.ActorOAuthAccount), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorOAuthAccount; + } + + /// + /// 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.ActorOAuthAccount.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.g.cs new file mode 100644 index 00000000..52e071fa --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccount.g.cs @@ -0,0 +1,119 @@ + +#nullable enable + +namespace Apify +{ + /// + /// An account a user connected through an Actor OAuth connection. + /// + public sealed partial class ActorOAuthAccount + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UserId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("connectionId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConnectionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modifiedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime ModifiedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("authorizedAt")] + public global::System.DateTime? AuthorizedAt { get; set; } + + /// + /// Label of the connected account, usually its email address. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// The OAuth tokens of the account, such as `access_token`, `refresh_token`, `scope` and `expiry_date`. The exact
+ /// fields depend on the OAuth provider. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object 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. + /// + /// + /// + /// + /// + /// + /// + /// The OAuth tokens of the account, such as `access_token`, `refresh_token`, `scope` and `expiry_date`. The exact
+ /// fields depend on the OAuth provider. + /// + /// + /// + /// Label of the connected account, usually its email address. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ActorOAuthAccount( + string id, + string userId, + string connectionId, + global::System.DateTime createdAt, + global::System.DateTime modifiedAt, + object data, + global::System.DateTime? authorizedAt, + string? description) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); + this.ConnectionId = connectionId ?? throw new global::System.ArgumentNullException(nameof(connectionId)); + this.CreatedAt = createdAt; + this.ModifiedAt = modifiedAt; + this.AuthorizedAt = authorizedAt; + this.Description = description; + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ActorOAuthAccount() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.Json.g.cs new file mode 100644 index 00000000..b02cdb8f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorOAuthAccountData + { + /// + /// 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.ActorOAuthAccountData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorOAuthAccountData), + jsonSerializerContext) as global::Apify.ActorOAuthAccountData; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorOAuthAccountData? 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.ActorOAuthAccountData? 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.ActorOAuthAccountData), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorOAuthAccountData; + } + + /// + /// 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.ActorOAuthAccountData.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.g.cs new file mode 100644 index 00000000..ccaac271 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountData.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace Apify +{ + /// + /// The OAuth tokens of the account, such as `access_token`, `refresh_token`, `scope` and `expiry_date`. The exact
+ /// fields depend on the OAuth provider. + ///
+ public sealed partial class ActorOAuthAccountData + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.Json.g.cs new file mode 100644 index 00000000..9f25049e --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorOAuthAccountResponse + { + /// + /// 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.ActorOAuthAccountResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorOAuthAccountResponse), + jsonSerializerContext) as global::Apify.ActorOAuthAccountResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorOAuthAccountResponse? 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.ActorOAuthAccountResponse? 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.ActorOAuthAccountResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorOAuthAccountResponse; + } + + /// + /// 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.ActorOAuthAccountResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.g.cs new file mode 100644 index 00000000..c1b637ed --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthAccountResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ActorOAuthAccountResponse + { + /// + /// An account a user connected through an Actor OAuth connection. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.ActorOAuthAccount 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. + /// + /// + /// An account a user connected through an Actor OAuth connection. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ActorOAuthAccountResponse( + global::Apify.ActorOAuthAccount data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ActorOAuthAccountResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.Json.g.cs new file mode 100644 index 00000000..67b362fd --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorOAuthConnection + { + /// + /// 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.ActorOAuthConnection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorOAuthConnection), + jsonSerializerContext) as global::Apify.ActorOAuthConnection; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorOAuthConnection? 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.ActorOAuthConnection? 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.ActorOAuthConnection), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorOAuthConnection; + } + + /// + /// 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.ActorOAuthConnection.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.g.cs new file mode 100644 index 00000000..5075a862 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnection.g.cs @@ -0,0 +1,97 @@ + +#nullable enable + +namespace Apify +{ + /// + /// An OAuth connection configured on an Actor. Secret credentials are never returned. + /// + public sealed partial class ActorOAuthConnection + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ActorId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("oAuthProviderType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ActorOAuthConnectionOAuthProviderTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.ActorOAuthConnectionOAuthProviderType OAuthProviderType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modifiedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime ModifiedAt { get; set; } + + /// + /// The public part of the connection's OAuth client configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + public global::Apify.ActorOAuthConnectionCredentials? Credentials { 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. + /// + /// + /// + /// + /// + /// + /// + /// The public part of the connection's OAuth client configuration. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ActorOAuthConnection( + string id, + string actorId, + global::Apify.ActorOAuthConnectionOAuthProviderType oAuthProviderType, + global::System.DateTime createdAt, + global::System.DateTime modifiedAt, + global::Apify.ActorOAuthConnectionCredentials? credentials) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.ActorId = actorId ?? throw new global::System.ArgumentNullException(nameof(actorId)); + this.OAuthProviderType = oAuthProviderType; + this.CreatedAt = createdAt; + this.ModifiedAt = modifiedAt; + this.Credentials = credentials; + } + + /// + /// Initializes a new instance of the class. + /// + public ActorOAuthConnection() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.Json.g.cs new file mode 100644 index 00000000..0b9c4194 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ActorOAuthConnectionCredentials + { + /// + /// 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.ActorOAuthConnectionCredentials? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ActorOAuthConnectionCredentials), + jsonSerializerContext) as global::Apify.ActorOAuthConnectionCredentials; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ActorOAuthConnectionCredentials? 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.ActorOAuthConnectionCredentials? 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.ActorOAuthConnectionCredentials), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ActorOAuthConnectionCredentials; + } + + /// + /// 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.ActorOAuthConnectionCredentials.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.g.cs new file mode 100644 index 00000000..f50d506b --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionCredentials.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Apify +{ + /// + /// The public part of the connection's OAuth client configuration. + /// + public sealed partial class ActorOAuthConnectionCredentials + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("clientId")] + public string? ClientId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + public string? Scope { get; set; } + + /// + /// Display name of a `CUSTOM` provider. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + public string? Label { get; set; } + + /// + /// Logo URL of a `CUSTOM` provider. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("imageUrl")] + public string? ImageUrl { 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. + /// + /// + /// + /// + /// Display name of a `CUSTOM` provider. + /// + /// + /// Logo URL of a `CUSTOM` provider. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ActorOAuthConnectionCredentials( + string? clientId, + string? scope, + string? label, + string? imageUrl) + { + this.ClientId = clientId; + this.Scope = scope; + this.Label = label; + this.ImageUrl = imageUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public ActorOAuthConnectionCredentials() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionOAuthProviderType.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionOAuthProviderType.g.cs new file mode 100644 index 00000000..bd3a05a0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorOAuthConnectionOAuthProviderType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public enum ActorOAuthConnectionOAuthProviderType + { + /// + /// + /// + Custom, + /// + /// + /// + Google, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ActorOAuthConnectionOAuthProviderTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ActorOAuthConnectionOAuthProviderType value) + { + return value switch + { + ActorOAuthConnectionOAuthProviderType.Custom => "CUSTOM", + ActorOAuthConnectionOAuthProviderType.Google => "GOOGLE", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ActorOAuthConnectionOAuthProviderType? ToEnum(string value) + { + return value switch + { + "CUSTOM" => ActorOAuthConnectionOAuthProviderType.Custom, + "GOOGLE" => ActorOAuthConnectionOAuthProviderType.Google, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs index 17e0565e..b91c167d 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorResource.g.cs @@ -119,7 +119,7 @@ public sealed partial class ActorResource public bool? IsDeprecated { get; set; } /// - /// The Actor's public SSH key, used as a deployment key for private Git repositories. + /// The Actor's public SSH key, used as a deployment key for private Git repositories. Returned only by the get Actor endpoint. /// [global::System.Text.Json.Serialization.JsonPropertyName("deploymentKey")] public string? DeploymentKey { get; set; } @@ -264,7 +264,7 @@ public sealed partial class ActorResource /// Whether the Actor is deprecated. /// /// - /// The Actor's public SSH key, used as a deployment key for private Git repositories. + /// The Actor's public SSH key, used as a deployment key for private Git repositories. Returned only by the get Actor endpoint. /// /// /// Human-readable name of the Actor, displayed in Apify Store and Console. diff --git a/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs new file mode 100644 index 00000000..b8fb8d12 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsGetForcePermissionLevel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Example: LIMITED_PERMISSIONS + /// + public enum ActorRunSyncGetDatasetItemsGetForcePermissionLevel + { + /// + /// + /// + FullPermissions, + /// + /// + /// + LimitedPermissions, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ActorRunSyncGetDatasetItemsGetForcePermissionLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ActorRunSyncGetDatasetItemsGetForcePermissionLevel value) + { + return value switch + { + ActorRunSyncGetDatasetItemsGetForcePermissionLevel.FullPermissions => "FULL_PERMISSIONS", + ActorRunSyncGetDatasetItemsGetForcePermissionLevel.LimitedPermissions => "LIMITED_PERMISSIONS", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ActorRunSyncGetDatasetItemsGetForcePermissionLevel? ToEnum(string value) + { + return value switch + { + "FULL_PERMISSIONS" => ActorRunSyncGetDatasetItemsGetForcePermissionLevel.FullPermissions, + "LIMITED_PERMISSIONS" => ActorRunSyncGetDatasetItemsGetForcePermissionLevel.LimitedPermissions, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs new file mode 100644 index 00000000..3d45cc81 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetDatasetItemsPostForcePermissionLevel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Example: LIMITED_PERMISSIONS + /// + public enum ActorRunSyncGetDatasetItemsPostForcePermissionLevel + { + /// + /// + /// + FullPermissions, + /// + /// + /// + LimitedPermissions, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ActorRunSyncGetDatasetItemsPostForcePermissionLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ActorRunSyncGetDatasetItemsPostForcePermissionLevel value) + { + return value switch + { + ActorRunSyncGetDatasetItemsPostForcePermissionLevel.FullPermissions => "FULL_PERMISSIONS", + ActorRunSyncGetDatasetItemsPostForcePermissionLevel.LimitedPermissions => "LIMITED_PERMISSIONS", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ActorRunSyncGetDatasetItemsPostForcePermissionLevel? ToEnum(string value) + { + return value switch + { + "FULL_PERMISSIONS" => ActorRunSyncGetDatasetItemsPostForcePermissionLevel.FullPermissions, + "LIMITED_PERMISSIONS" => ActorRunSyncGetDatasetItemsPostForcePermissionLevel.LimitedPermissions, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetForcePermissionLevel.g.cs new file mode 100644 index 00000000..fed05cf8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncGetForcePermissionLevel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Example: LIMITED_PERMISSIONS + /// + public enum ActorRunSyncGetForcePermissionLevel + { + /// + /// + /// + FullPermissions, + /// + /// + /// + LimitedPermissions, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ActorRunSyncGetForcePermissionLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ActorRunSyncGetForcePermissionLevel value) + { + return value switch + { + ActorRunSyncGetForcePermissionLevel.FullPermissions => "FULL_PERMISSIONS", + ActorRunSyncGetForcePermissionLevel.LimitedPermissions => "LIMITED_PERMISSIONS", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ActorRunSyncGetForcePermissionLevel? ToEnum(string value) + { + return value switch + { + "FULL_PERMISSIONS" => ActorRunSyncGetForcePermissionLevel.FullPermissions, + "LIMITED_PERMISSIONS" => ActorRunSyncGetForcePermissionLevel.LimitedPermissions, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorRunSyncPostForcePermissionLevel.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncPostForcePermissionLevel.g.cs new file mode 100644 index 00000000..58b3b30a --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ActorRunSyncPostForcePermissionLevel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Example: LIMITED_PERMISSIONS + /// + public enum ActorRunSyncPostForcePermissionLevel + { + /// + /// + /// + FullPermissions, + /// + /// + /// + LimitedPermissions, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ActorRunSyncPostForcePermissionLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ActorRunSyncPostForcePermissionLevel value) + { + return value switch + { + ActorRunSyncPostForcePermissionLevel.FullPermissions => "FULL_PERMISSIONS", + ActorRunSyncPostForcePermissionLevel.LimitedPermissions => "LIMITED_PERMISSIONS", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ActorRunSyncPostForcePermissionLevel? ToEnum(string value) + { + return value switch + { + "FULL_PERMISSIONS" => ActorRunSyncPostForcePermissionLevel.FullPermissions, + "LIMITED_PERMISSIONS" => ActorRunSyncPostForcePermissionLevel.LimitedPermissions, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ActorStandby.g.cs b/src/libs/Apify/Generated/Apify.Models.ActorStandby.g.cs index 341b3baf..7d3ccd3c 100644 --- a/src/libs/Apify/Generated/Apify.Models.ActorStandby.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ActorStandby.g.cs @@ -56,6 +56,24 @@ public sealed partial class ActorStandby [global::System.Text.Json.Serialization.JsonPropertyName("shouldPassActorInput")] public bool? ShouldPassActorInput { get; set; } + /// + /// Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). Set by Apify. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tenancy")] + public string? Tenancy { get; set; } + + /// + /// Whether standby requests can be authenticated with an Apify Console session. Set by Apify. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isConsoleAuthEnabled")] + public bool? IsConsoleAuthEnabled { get; set; } + + /// + /// Whether standby requests can be made without an API token. Set by Apify. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isTokenlessEnabled")] + public bool? IsTokenlessEnabled { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -89,6 +107,15 @@ public sealed partial class ActorStandby /// /// Whether to pass the Actor's input to the standby run. If `false`, the standby runs start with no input. /// + /// + /// Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). Set by Apify. + /// + /// + /// Whether standby requests can be authenticated with an Apify Console session. Set by Apify. + /// + /// + /// Whether standby requests can be made without an API token. Set by Apify. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -100,7 +127,10 @@ public ActorStandby( string? build, long? memoryMbytes, bool? disableStandbyFieldsOverride, - bool? shouldPassActorInput) + bool? shouldPassActorInput, + string? tenancy, + bool? isConsoleAuthEnabled, + bool? isTokenlessEnabled) { this.IsEnabled = isEnabled; this.DesiredRequestsPerActorRun = desiredRequestsPerActorRun; @@ -110,6 +140,9 @@ public ActorStandby( this.MemoryMbytes = memoryMbytes; this.DisableStandbyFieldsOverride = disableStandbyFieldsOverride; this.ShouldPassActorInput = shouldPassActorInput; + this.Tenancy = tenancy; + this.IsConsoleAuthEnabled = isConsoleAuthEnabled; + this.IsTokenlessEnabled = isTokenlessEnabled; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.Build.g.cs b/src/libs/Apify/Generated/Apify.Models.Build.g.cs index 12c53ee7..aeffa6c1 100644 --- a/src/libs/Apify/Generated/Apify.Models.Build.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Build.g.cs @@ -103,6 +103,37 @@ public sealed partial class Build [global::System.Obsolete("This property marked as deprecated.")] public string? Readme { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("changelog")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? Changelog { get; set; } + + /// + /// Exit code of the build process. Set when the build finishes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exitCode")] + public int? ExitCode { get; set; } + + /// + /// ID of the Git commit the build was created from. Present only for builds from a Git repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitCommitId")] + public string? GitCommitId { get; set; } + + /// + /// Name of the Git branch the build was created from. Present only for builds from a Git repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitBranchName")] + public string? GitBranchName { get; set; } + + /// + /// ID of the organization member who started the build. Present only for builds started in an organization account. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdByOrganizationMemberUserId")] + public string? CreatedByOrganizationMemberUserId { get; set; } + /// /// /// @@ -156,6 +187,18 @@ public sealed partial class Build /// /// Platform usage costs breakdown in USD for this build. Requires authentication token to access. /// + /// + /// Exit code of the build process. Set when the build finishes. + /// + /// + /// ID of the Git commit the build was created from. Present only for builds from a Git repository. + /// + /// + /// Name of the Git branch the build was created from. Present only for builds from a Git repository. + /// + /// + /// ID of the organization member who started the build. Present only for builds started in an organization account. + /// /// /// Digest of the built Docker image manifest, without the `sha256:` prefix. Compare digests of two builds to find out whether their image contents differ. `null` if the digest is not available. /// @@ -180,6 +223,10 @@ public Build( global::Apify.BuildUsage? usage, double? usageTotalUsd, global::Apify.BuildUsage? usageUsd, + int? exitCode, + string? gitCommitId, + string? gitBranchName, + string? createdByOrganizationMemberUserId, string? imageDigest, global::Apify.BuildActVersion? actVersion, global::Apify.ActorDefinition? actorDefinition) @@ -196,6 +243,10 @@ public Build( this.Usage = usage; this.UsageTotalUsd = usageTotalUsd; this.UsageUsd = usageUsd; + this.ExitCode = exitCode; + this.GitCommitId = gitCommitId; + this.GitBranchName = gitBranchName; + this.CreatedByOrganizationMemberUserId = createdByOrganizationMemberUserId; this.BuildNumber = buildNumber ?? throw new global::System.ArgumentNullException(nameof(buildNumber)); this.ImageDigest = imageDigest; this.ActVersion = actVersion; diff --git a/src/libs/Apify/Generated/Apify.Models.BuildActVersion.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildActVersion.g.cs index 026c6897..1814c051 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildActVersion.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildActVersion.g.cs @@ -39,6 +39,18 @@ public sealed partial class BuildActVersion [global::System.Text.Json.Serialization.JsonPropertyName("sourceFiles")] public global::System.Collections.Generic.IList? SourceFiles { get; set; } + /// + /// URL of the GitHub Gist, present when sourceType is GITHUB_GIST. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitHubGistUrl")] + public string? GitHubGistUrl { get; set; } + + /// + /// URL of the tarball or ZIP file, present when sourceType is TARBALL. Returned only to the Actor owner. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tarballUrl")] + public string? TarballUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -59,6 +71,12 @@ public sealed partial class BuildActVersion /// /// Inline source files, present when sourceType is SOURCE_FILES. /// + /// + /// URL of the GitHub Gist, present when sourceType is GITHUB_GIST. + /// + /// + /// URL of the tarball or ZIP file, present when sourceType is TARBALL. Returned only to the Actor owner. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -67,13 +85,17 @@ public BuildActVersion( string? buildTag, string? versionNumber, string? gitRepoUrl, - global::System.Collections.Generic.IList? sourceFiles) + global::System.Collections.Generic.IList? sourceFiles, + string? gitHubGistUrl, + string? tarballUrl) { this.SourceType = sourceType; this.BuildTag = buildTag; this.VersionNumber = versionNumber; this.GitRepoUrl = gitRepoUrl; this.SourceFiles = sourceFiles; + this.GitHubGistUrl = gitHubGistUrl; + this.TarballUrl = tarballUrl; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs index 9540dcc3..b7e21697 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildListItem.g.cs @@ -49,11 +49,10 @@ public sealed partial class BuildListItem public global::System.DateTime? FinishedAt { get; set; } /// - /// + /// Total cost in USD for this build. Requires authentication token to access. /// [global::System.Text.Json.Serialization.JsonPropertyName("usageTotalUsd")] - [global::System.Text.Json.Serialization.JsonRequired] - public required double UsageTotalUsd { get; set; } + public double? UsageTotalUsd { get; set; } /// /// @@ -88,11 +87,13 @@ public sealed partial class BuildListItem /// Status of an Actor job (run or build). /// /// - /// /// /// /// /// + /// + /// Total cost in USD for this build. Requires authentication token to access. + /// /// /// #if NET7_0_OR_GREATER @@ -102,11 +103,11 @@ public BuildListItem( string id, global::Apify.ActorJobStatus status, global::System.DateTime startedAt, - double usageTotalUsd, string buildNumber, string? actId, string? userId, global::System.DateTime? finishedAt, + double? usageTotalUsd, int? buildNumberInt, global::Apify.BuildMeta? meta) { diff --git a/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs index 788c2ae0..5e5a2df4 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildMeta.g.cs @@ -23,11 +23,29 @@ public sealed partial class BuildMeta public string? ClientIp { get; set; } /// - /// User agent of the client that started the build. + /// User agent of the client that started the build. Returned only to the Actor owner. /// [global::System.Text.Json.Serialization.JsonPropertyName("userAgent")] public string? UserAgent { get; set; } + /// + /// URL of the GitHub Actions run that started the build. Present only for builds started from CI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("githubActionsRunUrl")] + public string? GithubActionsRunUrl { get; set; } + + /// + /// ID of the Actor run that started the build. Returned only to the Actor owner. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorRunId")] + public string? ActorRunId { get; set; } + + /// + /// ID of the webhook dispatch that started the build. Returned only to the Actor owner. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("webhookDispatchId")] + public string? WebhookDispatchId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,7 +60,16 @@ public sealed partial class BuildMeta /// IP address of the client that started the build. /// /// - /// User agent of the client that started the build. + /// User agent of the client that started the build. Returned only to the Actor owner. + /// + /// + /// URL of the GitHub Actions run that started the build. Present only for builds started from CI. + /// + /// + /// ID of the Actor run that started the build. Returned only to the Actor owner. + /// + /// + /// ID of the webhook dispatch that started the build. Returned only to the Actor owner. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -50,11 +77,17 @@ public sealed partial class BuildMeta public BuildMeta( global::Apify.RunOrigin origin, string? clientIp, - string? userAgent) + string? userAgent, + string? githubActionsRunUrl, + string? actorRunId, + string? webhookDispatchId) { this.Origin = origin; this.ClientIp = clientIp; this.UserAgent = userAgent; + this.GithubActionsRunUrl = githubActionsRunUrl; + this.ActorRunId = actorRunId; + this.WebhookDispatchId = webhookDispatchId; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.BuildOptions.g.cs b/src/libs/Apify/Generated/Apify.Models.BuildOptions.g.cs index 265e0e23..8b0bb016 100644 --- a/src/libs/Apify/Generated/Apify.Models.BuildOptions.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.BuildOptions.g.cs @@ -32,6 +32,18 @@ public sealed partial class BuildOptions [global::System.Text.Json.Serialization.JsonPropertyName("diskMbytes")] public long? DiskMbytes { get; set; } + /// + /// The tag passed when starting the build. Present only when the `tag` parameter was used. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// Whether this is a debug build. Present only on debug builds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("debug")] + public bool? Debug { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,6 +57,12 @@ public sealed partial class BuildOptions /// /// /// + /// + /// The tag passed when starting the build. Present only when the `tag` parameter was used. + /// + /// + /// Whether this is a debug build. Present only on debug builds. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -52,12 +70,16 @@ public BuildOptions( bool? useCache, bool? betaPackages, long? memoryMbytes, - long? diskMbytes) + long? diskMbytes, + string? tag, + bool? debug) { this.UseCache = useCache; this.BetaPackages = betaPackages; this.MemoryMbytes = memoryMbytes; this.DiskMbytes = diskMbytes; + this.Tag = tag; + this.Debug = debug; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.CommonActorPricingInfo.g.cs b/src/libs/Apify/Generated/Apify.Models.CommonActorPricingInfo.g.cs index c37f42e4..7987e564 100644 --- a/src/libs/Apify/Generated/Apify.Models.CommonActorPricingInfo.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CommonActorPricingInfo.g.cs @@ -41,6 +41,12 @@ public sealed partial class CommonActorPricingInfo [global::System.Text.Json.Serialization.JsonPropertyName("notifiedAboutChangeAt")] public global::System.DateTime? NotifiedAboutChangeAt { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("notifiedAboutRentalToPpePriceChangeAt")] + public global::System.DateTime? NotifiedAboutRentalToPpePriceChangeAt { get; set; } + /// /// /// @@ -79,6 +85,7 @@ public sealed partial class CommonActorPricingInfo /// /// /// + /// /// /// /// @@ -91,6 +98,7 @@ public CommonActorPricingInfo( global::System.DateTime startedAt, global::System.DateTime? notifiedAboutFutureChangeAt, global::System.DateTime? notifiedAboutChangeAt, + global::System.DateTime? notifiedAboutRentalToPpePriceChangeAt, string? reasonForChange, bool? isPriceChangeNotificationSuppressed, bool? forceContainsSignificantPriceChange) @@ -100,6 +108,7 @@ public CommonActorPricingInfo( this.StartedAt = startedAt; this.NotifiedAboutFutureChangeAt = notifiedAboutFutureChangeAt; this.NotifiedAboutChangeAt = notifiedAboutChangeAt; + this.NotifiedAboutRentalToPpePriceChangeAt = notifiedAboutRentalToPpePriceChangeAt; this.ReasonForChange = reasonForChange; this.IsPriceChangeNotificationSuppressed = isPriceChangeNotificationSuppressed; this.ForceContainsSignificantPriceChange = forceContainsSignificantPriceChange; diff --git a/src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.Json.g.cs new file mode 100644 index 00000000..6babd2ca --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class CreateGitRepoRequest + { + /// + /// 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.CreateGitRepoRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.CreateGitRepoRequest), + jsonSerializerContext) as global::Apify.CreateGitRepoRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.CreateGitRepoRequest? 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.CreateGitRepoRequest? 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.CreateGitRepoRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CreateGitRepoRequest; + } + + /// + /// 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.CreateGitRepoRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.g.cs new file mode 100644 index 00000000..7f3803d1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CreateGitRepoRequest.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class CreateGitRepoRequest + { + /// + /// Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the
+ /// numeric namespace ID. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Workspace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("repoName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RepoName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isPrivate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsPrivate { get; set; } + + /// + /// Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + + /// + /// URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with
+ /// `files`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("templateArchiveUrl")] + public string? TemplateArchiveUrl { 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. + /// + /// + /// Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the
+ /// numeric namespace ID. + /// + /// + /// + /// + /// Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`. + /// + /// + /// URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with
+ /// `files`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGitRepoRequest( + string workspace, + string repoName, + bool isPrivate, + global::System.Collections.Generic.IList? files, + string? templateArchiveUrl) + { + this.Workspace = workspace ?? throw new global::System.ArgumentNullException(nameof(workspace)); + this.RepoName = repoName ?? throw new global::System.ArgumentNullException(nameof(repoName)); + this.IsPrivate = isPrivate; + this.Files = files; + this.TemplateArchiveUrl = templateArchiveUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGitRepoRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfo.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfo.g.cs index dcc3d5d1..01f22af6 100644 --- a/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfo.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfo.g.cs @@ -81,6 +81,36 @@ public sealed partial class CurrentPricingInfo [global::System.Text.Json.Serialization.JsonPropertyName("pricingPerEvent")] public object? PricingPerEvent { get; set; } + /// + /// Price per unit in USD. Present only for `FLAT_PRICE_PER_MONTH` and non-tiered `PRICE_PER_DATASET_ITEM` pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pricePerUnitUsd")] + public double? PricePerUnitUsd { get; set; } + + /// + /// Length of the free trial in minutes. Present only for `FLAT_PRICE_PER_MONTH` pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trialMinutes")] + public int? TrialMinutes { get; set; } + + /// + /// Name of the charged unit. Present only for `PRICE_PER_DATASET_ITEM` pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unitName")] + public string? UnitName { get; set; } + + /// + /// Price per unit for each pricing tier. Present only for tiered `PRICE_PER_DATASET_ITEM` pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tieredPricing")] + public global::System.Collections.Generic.Dictionary? TieredPricing { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("notifiedAboutRentalToPpePriceChangeAt")] + public global::System.DateTime? NotifiedAboutRentalToPpePriceChangeAt { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -106,6 +136,19 @@ public sealed partial class CurrentPricingInfo /// /// Per-event pricing configuration for pay-per-event Actors. /// + /// + /// Price per unit in USD. Present only for `FLAT_PRICE_PER_MONTH` and non-tiered `PRICE_PER_DATASET_ITEM` pricing. + /// + /// + /// Length of the free trial in minutes. Present only for `FLAT_PRICE_PER_MONTH` pricing. + /// + /// + /// Name of the charged unit. Present only for `PRICE_PER_DATASET_ITEM` pricing. + /// + /// + /// Price per unit for each pricing tier. Present only for tiered `PRICE_PER_DATASET_ITEM` pricing. + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -121,7 +164,12 @@ public CurrentPricingInfo( bool? isPPEPlatformUsagePaidByUser, string? reasonForChange, double? minimalMaxTotalChargeUsd, - object? pricingPerEvent) + object? pricingPerEvent, + double? pricePerUnitUsd, + int? trialMinutes, + string? unitName, + global::System.Collections.Generic.Dictionary? tieredPricing, + global::System.DateTime? notifiedAboutRentalToPpePriceChangeAt) { this.PricingModel = pricingModel ?? throw new global::System.ArgumentNullException(nameof(pricingModel)); this.ApifyMarginPercentage = apifyMarginPercentage; @@ -135,6 +183,11 @@ public CurrentPricingInfo( this.ReasonForChange = reasonForChange; this.MinimalMaxTotalChargeUsd = minimalMaxTotalChargeUsd; this.PricingPerEvent = pricingPerEvent; + this.PricePerUnitUsd = pricePerUnitUsd; + this.TrialMinutes = trialMinutes; + this.UnitName = unitName; + this.TieredPricing = tieredPricing; + this.NotifiedAboutRentalToPpePriceChangeAt = notifiedAboutRentalToPpePriceChangeAt; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.Json.g.cs new file mode 100644 index 00000000..13b7c817 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class CurrentPricingInfoTieredPricing + { + /// + /// 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.CurrentPricingInfoTieredPricing? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.CurrentPricingInfoTieredPricing), + jsonSerializerContext) as global::Apify.CurrentPricingInfoTieredPricing; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.CurrentPricingInfoTieredPricing? 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.CurrentPricingInfoTieredPricing? 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.CurrentPricingInfoTieredPricing), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CurrentPricingInfoTieredPricing; + } + + /// + /// 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.CurrentPricingInfoTieredPricing.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.g.cs new file mode 100644 index 00000000..b9907f5f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Price per unit for each pricing tier. Present only for tiered `PRICE_PER_DATASET_ITEM` pricing. + /// + public sealed partial class CurrentPricingInfoTieredPricing + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.Json.g.cs new file mode 100644 index 00000000..d456f28d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class CurrentPricingInfoTieredPricing2 + { + /// + /// 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.CurrentPricingInfoTieredPricing2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.CurrentPricingInfoTieredPricing2), + jsonSerializerContext) as global::Apify.CurrentPricingInfoTieredPricing2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.CurrentPricingInfoTieredPricing2? 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.CurrentPricingInfoTieredPricing2? 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.CurrentPricingInfoTieredPricing2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.CurrentPricingInfoTieredPricing2; + } + + /// + /// 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.CurrentPricingInfoTieredPricing2.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.g.cs new file mode 100644 index 00000000..353eae0c --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.CurrentPricingInfoTieredPricing2.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class CurrentPricingInfoTieredPricing2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tieredPricePerUnitUsd")] + public double? TieredPricePerUnitUsd { 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 CurrentPricingInfoTieredPricing2( + double? tieredPricePerUnitUsd) + { + this.TieredPricePerUnitUsd = tieredPricePerUnitUsd; + } + + /// + /// Initializes a new instance of the class. + /// + public CurrentPricingInfoTieredPricing2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs index 9a59ea4b..3cd80ee2 100644 --- a/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.CurrentUsage.g.cs @@ -84,6 +84,12 @@ public sealed partial class CurrentUsage [global::System.Text.Json.Serialization.JsonPropertyName("scheduleCount")] public int? ScheduleCount { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("monthlyUnblockerUnits")] + public double? MonthlyUnblockerUnits { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -104,6 +110,7 @@ public sealed partial class CurrentUsage /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -118,7 +125,8 @@ public CurrentUsage( int actorTaskCount, int activeActorJobCount, int teamAccountSeatCount, - int? scheduleCount) + int? scheduleCount, + double? monthlyUnblockerUnits) { this.MonthlyUsageUsd = monthlyUsageUsd; this.MonthlyActorComputeUnits = monthlyActorComputeUnits; @@ -131,6 +139,7 @@ public CurrentUsage( this.ActiveActorJobCount = activeActorJobCount; this.TeamAccountSeatCount = teamAccountSeatCount; this.ScheduleCount = scheduleCount; + this.MonthlyUnblockerUnits = monthlyUnblockerUnits; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetListItem.g.cs index 88188dd4..6b58ac03 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetListItem.g.cs @@ -19,8 +19,7 @@ public sealed partial class DatasetListItem /// /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public string? Name { get; set; } /// /// @@ -110,13 +109,13 @@ public sealed partial class DatasetListItem /// Initializes a new instance of the class. /// /// - /// /// /// /// /// /// /// + /// /// /// /// @@ -128,13 +127,13 @@ public sealed partial class DatasetListItem #endif public DatasetListItem( string id, - string name, string userId, global::System.DateTime createdAt, global::System.DateTime modifiedAt, global::System.DateTime accessedAt, int itemCount, int cleanItemCount, + string? name, string? actId, string? actRunId, string? title, @@ -143,7 +142,7 @@ public DatasetListItem( global::Apify.DatasetStats? stats) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Name = name; this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.CreatedAt = createdAt; this.ModifiedAt = modifiedAt; diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs index 082d1081..f3278371 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetResource.g.cs @@ -21,6 +21,12 @@ public sealed partial class DatasetResource [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// /// @@ -138,6 +144,7 @@ public sealed partial class DatasetResource /// /// /// + /// /// /// /// @@ -166,6 +173,7 @@ public DatasetResource( int cleanItemCount, string consoleUrl, string? name, + string? title, string? actId, string? actRunId, global::System.Collections.Generic.IList? fields, @@ -177,6 +185,7 @@ public DatasetResource( { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name; + this.Title = title; this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.CreatedAt = createdAt; this.ModifiedAt = modifiedAt; diff --git a/src/libs/Apify/Generated/Apify.Models.DatasetStats.g.cs b/src/libs/Apify/Generated/Apify.Models.DatasetStats.g.cs index 0b91a09f..a3b5358d 100644 --- a/src/libs/Apify/Generated/Apify.Models.DatasetStats.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DatasetStats.g.cs @@ -21,13 +21,13 @@ public sealed partial class DatasetStats public int? WriteCount { get; set; } /// - /// Total storage size in bytes. Only returned by the single-dataset endpoint. + /// Total storage size in bytes. /// [global::System.Text.Json.Serialization.JsonPropertyName("storageBytes")] public long? StorageBytes { get; set; } /// - /// Uncompressed size in bytes. Only returned by the dataset list endpoint. + /// Uncompressed size in bytes. /// [global::System.Text.Json.Serialization.JsonPropertyName("inflatedBytes")] public long? InflatedBytes { get; set; } @@ -44,10 +44,10 @@ public sealed partial class DatasetStats /// /// /// - /// Total storage size in bytes. Only returned by the single-dataset endpoint. + /// Total storage size in bytes. /// /// - /// Uncompressed size in bytes. Only returned by the dataset list endpoint. + /// Uncompressed size in bytes. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Apify/Generated/Apify.Models.DefaultRunOptions.g.cs b/src/libs/Apify/Generated/Apify.Models.DefaultRunOptions.g.cs index e28a7387..18695c4f 100644 --- a/src/libs/Apify/Generated/Apify.Models.DefaultRunOptions.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.DefaultRunOptions.g.cs @@ -38,6 +38,18 @@ public sealed partial class DefaultRunOptions [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] public int? MaxItems { get; set; } + /// + /// Maximum cost in USD that a pay-per-event run can charge to the user. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxTotalChargeUsd")] + public double? MaxTotalChargeUsd { get; set; } + + /// + /// Whether `maxTotalChargeUsd` was set explicitly by the user. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isMaxTotalChargeUsdSetByUser")] + public bool? IsMaxTotalChargeUsdSetByUser { get; set; } + /// /// /// @@ -68,6 +80,12 @@ public sealed partial class DefaultRunOptions /// /// Maximum number of items the run might produce. /// + /// + /// Maximum cost in USD that a pay-per-event run can charge to the user. + /// + /// + /// Whether `maxTotalChargeUsd` was set explicitly by the user. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -78,6 +96,8 @@ public DefaultRunOptions( long? memoryMbytes, bool? restartOnError, int? maxItems, + double? maxTotalChargeUsd, + bool? isMaxTotalChargeUsdSetByUser, global::Apify.ActorPermissionLevel? forcePermissionLevel) { this.Build = build; @@ -85,6 +105,8 @@ public DefaultRunOptions( this.MemoryMbytes = memoryMbytes; this.RestartOnError = restartOnError; this.MaxItems = maxItems; + this.MaxTotalChargeUsd = maxTotalChargeUsd; + this.IsMaxTotalChargeUsdSetByUser = isMaxTotalChargeUsdSetByUser; this.ForcePermissionLevel = forcePermissionLevel; } diff --git a/src/libs/Apify/Generated/Apify.Models.EnvVar.g.cs b/src/libs/Apify/Generated/Apify.Models.EnvVar.g.cs index 2e365266..f134b4b0 100644 --- a/src/libs/Apify/Generated/Apify.Models.EnvVar.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.EnvVar.g.cs @@ -27,6 +27,12 @@ public sealed partial class EnvVar [global::System.Text.Json.Serialization.JsonPropertyName("isSecret")] public bool? IsSecret { get; set; } + /// + /// A short hash of the secret value, to detect value changes. Returned only for secret environment variables, in place of `value`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("valueHash")] + public string? ValueHash { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,17 +51,22 @@ public sealed partial class EnvVar /// /// Whether the environment variable is encrypted. Secret values aren't returned by the API. /// + /// + /// A short hash of the secret value, to detect value changes. Returned only for secret environment variables, in place of `value`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvVar( string name, string? value, - bool? isSecret) + bool? isSecret, + string? valueHash) { this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Value = value; this.IsSecret = isSecret; + this.ValueHash = valueHash; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.ErrorDetail.g.cs b/src/libs/Apify/Generated/Apify.Models.ErrorDetail.g.cs index 858545a9..a53cbc6d 100644 --- a/src/libs/Apify/Generated/Apify.Models.ErrorDetail.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ErrorDetail.g.cs @@ -21,6 +21,12 @@ public sealed partial class ErrorDetail [global::System.Text.Json.Serialization.JsonPropertyName("message")] public string? Message { get; set; } + /// + /// Additional machine-readable details about the error. Present only for some error types. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public object? Data { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,15 +42,20 @@ public sealed partial class ErrorDetail /// /// Human-readable error message describing what went wrong. /// + /// + /// Additional machine-readable details about the error. Present only for some error types. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ErrorDetail( global::Apify.ErrorType? type, - string? message) + string? message, + object? data) { this.Type = type; this.Message = message; + this.Data = data; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.ErrorDetailData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ErrorDetailData.Json.g.cs new file mode 100644 index 00000000..db8432ff --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ErrorDetailData.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ErrorDetailData + { + /// + /// 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.ErrorDetailData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ErrorDetailData), + jsonSerializerContext) as global::Apify.ErrorDetailData; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ErrorDetailData? 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.ErrorDetailData? 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.ErrorDetailData), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ErrorDetailData; + } + + /// + /// 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.ErrorDetailData.g.cs b/src/libs/Apify/Generated/Apify.Models.ErrorDetailData.g.cs new file mode 100644 index 00000000..e9f023fe --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ErrorDetailData.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Additional machine-readable details about the error. Present only for some error types. + /// + public sealed partial class ErrorDetailData + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.Json.g.cs new file mode 100644 index 00000000..378cebc9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class GitProviderIntegration + { + /// + /// 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.GitProviderIntegration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.GitProviderIntegration), + jsonSerializerContext) as global::Apify.GitProviderIntegration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.GitProviderIntegration? 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.GitProviderIntegration? 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.GitProviderIntegration), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.GitProviderIntegration; + } + + /// + /// 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.GitProviderIntegration.g.cs b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.g.cs new file mode 100644 index 00000000..3095c411 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegration.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Apify +{ + /// + /// A connected git provider account the user can create repositories through. + /// + public sealed partial class GitProviderIntegration + { + /// + /// The provider ID to use in the `providerId` path parameter: `github-app` for the GitHub App, or the ID of a
+ /// connected GitLab or Bitbucket integration. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.GitProviderIntegrationProviderJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.GitProviderIntegrationProvider Provider { get; set; } + + /// + /// The workspaces the account can create a repository in. Empty if listing them failed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaces")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Workspaces { get; set; } + + /// + /// URL where the user can install the GitHub App on another account or organization. Only for the GitHub App. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("addWorkspaceUrl")] + public string? AddWorkspaceUrl { 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. + /// + /// + /// The provider ID to use in the `providerId` path parameter: `github-app` for the GitHub App, or the ID of a
+ /// connected GitLab or Bitbucket integration. + /// + /// + /// + /// The workspaces the account can create a repository in. Empty if listing them failed. + /// + /// + /// URL where the user can install the GitHub App on another account or organization. Only for the GitHub App. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GitProviderIntegration( + string id, + global::Apify.GitProviderIntegrationProvider provider, + global::System.Collections.Generic.IList workspaces, + string? addWorkspaceUrl) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Provider = provider; + this.Workspaces = workspaces ?? throw new global::System.ArgumentNullException(nameof(workspaces)); + this.AddWorkspaceUrl = addWorkspaceUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public GitProviderIntegration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitProviderIntegrationProvider.g.cs b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegrationProvider.g.cs new file mode 100644 index 00000000..d50c37c2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitProviderIntegrationProvider.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public enum GitProviderIntegrationProvider + { + /// + /// + /// + Bitbucket, + /// + /// + /// + Github, + /// + /// + /// + Gitlab, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GitProviderIntegrationProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GitProviderIntegrationProvider value) + { + return value switch + { + GitProviderIntegrationProvider.Bitbucket => "bitbucket", + GitProviderIntegrationProvider.Github => "github", + GitProviderIntegrationProvider.Gitlab => "gitlab", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GitProviderIntegrationProvider? ToEnum(string value) + { + return value switch + { + "bitbucket" => GitProviderIntegrationProvider.Bitbucket, + "github" => GitProviderIntegrationProvider.Github, + "gitlab" => GitProviderIntegrationProvider.Gitlab, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.Json.g.cs new file mode 100644 index 00000000..9480cda2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class GitProviderWorkspace + { + /// + /// 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.GitProviderWorkspace? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.GitProviderWorkspace), + jsonSerializerContext) as global::Apify.GitProviderWorkspace; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.GitProviderWorkspace? 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.GitProviderWorkspace? 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.GitProviderWorkspace), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.GitProviderWorkspace; + } + + /// + /// 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.GitProviderWorkspace.g.cs b/src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.g.cs new file mode 100644 index 00000000..4aa9e52d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitProviderWorkspace.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Apify +{ + /// + /// A place the user can create a repository in, such as their own account or an organization, group or workspace they can access. + /// + public sealed partial class GitProviderWorkspace + { + /// + /// The workspace identifier to pass as `workspace` when creating a repository: the account or organization login
+ /// on GitHub, the numeric namespace ID on GitLab, or the workspace slug on Bitbucket. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { 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. + /// + /// + /// The workspace identifier to pass as `workspace` when creating a repository: the account or organization login
+ /// on GitHub, the numeric namespace ID on GitLab, or the workspace slug on Bitbucket. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GitProviderWorkspace( + string id, + string label) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + } + + /// + /// Initializes a new instance of the class. + /// + public GitProviderWorkspace() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitRepo.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepo.Json.g.cs new file mode 100644 index 00000000..fe45c7d9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class GitRepo + { + /// + /// 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.GitRepo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.GitRepo), + jsonSerializerContext) as global::Apify.GitRepo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.GitRepo? 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.GitRepo? 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.GitRepo), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.GitRepo; + } + + /// + /// 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.GitRepo.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepo.g.cs new file mode 100644 index 00000000..8603cbdc --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepo.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Apify +{ + /// + /// URLs of a newly created repository. + /// + public sealed partial class GitRepo + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sshUrl")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SshUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("httpsUrl")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string HttpsUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("htmlUrl")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string HtmlUrl { 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 GitRepo( + string sshUrl, + string httpsUrl, + string htmlUrl) + { + this.SshUrl = sshUrl ?? throw new global::System.ArgumentNullException(nameof(sshUrl)); + this.HttpsUrl = httpsUrl ?? throw new global::System.ArgumentNullException(nameof(httpsUrl)); + this.HtmlUrl = htmlUrl ?? throw new global::System.ArgumentNullException(nameof(htmlUrl)); + } + + /// + /// Initializes a new instance of the class. + /// + public GitRepo() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitRepoFile.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepoFile.Json.g.cs new file mode 100644 index 00000000..6d8515ae --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepoFile.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class GitRepoFile + { + /// + /// 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.GitRepoFile? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.GitRepoFile), + jsonSerializerContext) as global::Apify.GitRepoFile; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.GitRepoFile? 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.GitRepoFile? 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.GitRepoFile), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.GitRepoFile; + } + + /// + /// 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.GitRepoFile.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepoFile.g.cs new file mode 100644 index 00000000..cdee13b7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepoFile.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace Apify +{ + /// + /// A file to commit into the new repository. + /// + public sealed partial class GitRepoFile + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Path { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encoding")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.GitRepoFileEncodingJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.GitRepoFileEncoding Encoding { 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 GitRepoFile( + string path, + string content, + global::Apify.GitRepoFileEncoding encoding) + { + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content)); + this.Encoding = encoding; + } + + /// + /// Initializes a new instance of the class. + /// + public GitRepoFile() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitRepoFileEncoding.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepoFileEncoding.g.cs new file mode 100644 index 00000000..f5cfb94e --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepoFileEncoding.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public enum GitRepoFileEncoding + { + /// + /// + /// + Base64, + /// + /// + /// + Utf8, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GitRepoFileEncodingExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GitRepoFileEncoding value) + { + return value switch + { + GitRepoFileEncoding.Base64 => "base64", + GitRepoFileEncoding.Utf8 => "utf-8", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GitRepoFileEncoding? ToEnum(string value) + { + return value switch + { + "base64" => GitRepoFileEncoding.Base64, + "utf-8" => GitRepoFileEncoding.Utf8, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.GitRepoResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepoResponse.Json.g.cs new file mode 100644 index 00000000..db11d140 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepoResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class GitRepoResponse + { + /// + /// 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.GitRepoResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.GitRepoResponse), + jsonSerializerContext) as global::Apify.GitRepoResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.GitRepoResponse? 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.GitRepoResponse? 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.GitRepoResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.GitRepoResponse; + } + + /// + /// 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.GitRepoResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.GitRepoResponse.g.cs new file mode 100644 index 00000000..1b10cdf2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.GitRepoResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class GitRepoResponse + { + /// + /// URLs of a newly created repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.GitRepo 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. + /// + /// + /// URLs of a newly created repository. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GitRepoResponse( + global::Apify.GitRepo data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public GitRepoResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.IntegrationTracking.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.IntegrationTracking.Json.g.cs new file mode 100644 index 00000000..ff56f57e --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.IntegrationTracking.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class IntegrationTracking + { + /// + /// 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.IntegrationTracking? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.IntegrationTracking), + jsonSerializerContext) as global::Apify.IntegrationTracking; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.IntegrationTracking? 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.IntegrationTracking? 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.IntegrationTracking), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.IntegrationTracking; + } + + /// + /// 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.IntegrationTracking.g.cs b/src/libs/Apify/Generated/Apify.Models.IntegrationTracking.g.cs new file mode 100644 index 00000000..d595451a --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.IntegrationTracking.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Information about the third-party integration that created the resource. + /// + public sealed partial class IntegrationTracking + { + /// + /// Name of the integration platform. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("platform")] + public string? Platform { get; set; } + + /// + /// ID of the integration app. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("appId")] + public string? AppId { get; set; } + + /// + /// Whether the resource was created by an AI tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isAiTool")] + public bool? IsAiTool { 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. + /// + /// + /// Name of the integration platform. + /// + /// + /// ID of the integration app. + /// + /// + /// Whether the resource was created by an AI tool. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IntegrationTracking( + string? platform, + string? appId, + bool? isAiTool) + { + this.Platform = platform; + this.AppId = appId; + this.IsAiTool = isAiTool; + } + + /// + /// Initializes a new instance of the class. + /// + public IntegrationTracking() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.Json.g.cs new file mode 100644 index 00000000..7bc20472 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class KeyValueStoreListItem + { + /// + /// 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.KeyValueStoreListItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.KeyValueStoreListItem), + jsonSerializerContext) as global::Apify.KeyValueStoreListItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.KeyValueStoreListItem? 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.KeyValueStoreListItem? 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.KeyValueStoreListItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreListItem; + } + + /// + /// 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.KeyValueStoreListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.g.cs new file mode 100644 index 00000000..88862885 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItem.g.cs @@ -0,0 +1,158 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class KeyValueStoreListItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userId")] + public string? UserId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("username")] + public string? Username { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modifiedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime ModifiedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("accessedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime AccessedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actId")] + public string? ActId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actRunId")] + public string? ActRunId { get; set; } + + /// + /// Optional JSON schema describing the keys stored in the key-value store. Older stores return it as a JSON string. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schema")] + public string? Schema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generalAccess")] + public global::Apify.GeneralAccess? GeneralAccess { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stats")] + public global::Apify.KeyValueStoreListStats? Stats { 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. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Optional JSON schema describing the keys stored in the key-value store. Older stores return it as a JSON string. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public KeyValueStoreListItem( + string id, + global::System.DateTime createdAt, + global::System.DateTime modifiedAt, + global::System.DateTime accessedAt, + string? name, + string? title, + string? userId, + string? username, + string? actId, + string? actRunId, + string? schema, + global::Apify.GeneralAccess? generalAccess, + global::Apify.KeyValueStoreListStats? stats) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name; + this.Title = title; + this.UserId = userId; + this.Username = username; + this.CreatedAt = createdAt; + this.ModifiedAt = modifiedAt; + this.AccessedAt = accessedAt; + this.ActId = actId; + this.ActRunId = actRunId; + this.Schema = schema; + this.GeneralAccess = generalAccess; + this.Stats = stats; + } + + /// + /// Initializes a new instance of the class. + /// + public KeyValueStoreListItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.Json.g.cs new file mode 100644 index 00000000..a6000bf9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class KeyValueStoreListItemSchema + { + /// + /// 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.KeyValueStoreListItemSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.KeyValueStoreListItemSchema), + jsonSerializerContext) as global::Apify.KeyValueStoreListItemSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.KeyValueStoreListItemSchema? 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.KeyValueStoreListItemSchema? 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.KeyValueStoreListItemSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreListItemSchema; + } + + /// + /// 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.KeyValueStoreListItemSchema.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.g.cs new file mode 100644 index 00000000..f2efbc7f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListItemSchema.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Optional JSON schema describing the keys stored in the key-value store. Older stores return it as a JSON string. + /// + public sealed partial class KeyValueStoreListItemSchema + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.Json.g.cs new file mode 100644 index 00000000..aa6fe5ea --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class KeyValueStoreListStats + { + /// + /// 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.KeyValueStoreListStats? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.KeyValueStoreListStats), + jsonSerializerContext) as global::Apify.KeyValueStoreListStats; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.KeyValueStoreListStats? 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.KeyValueStoreListStats? 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.KeyValueStoreListStats), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.KeyValueStoreListStats; + } + + /// + /// 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.KeyValueStoreListStats.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.g.cs new file mode 100644 index 00000000..40a4c8e6 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreListStats.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class KeyValueStoreListStats + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("readCount")] + public int? ReadCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("writeCount")] + public int? WriteCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleteCount")] + public int? DeleteCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("listCount")] + public int? ListCount { get; set; } + + /// + /// Storage size in bytes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("s3StorageBytes")] + public long? S3StorageBytes { 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. + /// + /// + /// + /// + /// + /// + /// Storage size in bytes. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public KeyValueStoreListStats( + int? readCount, + int? writeCount, + int? deleteCount, + int? listCount, + long? s3StorageBytes) + { + this.ReadCount = readCount; + this.WriteCount = writeCount; + this.DeleteCount = deleteCount; + this.ListCount = listCount; + this.S3StorageBytes = s3StorageBytes; + } + + /// + /// Initializes a new instance of the class. + /// + public KeyValueStoreListStats() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs index 835956a5..54e06975 100644 --- a/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.KeyValueStoreResource.g.cs @@ -21,6 +21,12 @@ public sealed partial class KeyValueStoreResource [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// /// @@ -122,6 +128,7 @@ public sealed partial class KeyValueStoreResource /// /// /// + /// /// /// /// @@ -150,6 +157,7 @@ public KeyValueStoreResource( global::System.DateTime modifiedAt, global::System.DateTime accessedAt, string? name, + string? title, string? userId, string? username, string? actId, @@ -164,6 +172,7 @@ public KeyValueStoreResource( { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name; + this.Title = title; this.UserId = userId; this.Username = username; this.CreatedAt = createdAt; diff --git a/src/libs/Apify/Generated/Apify.Models.Limits.g.cs b/src/libs/Apify/Generated/Apify.Models.Limits.g.cs index 4d5aa726..d1aee0db 100644 --- a/src/libs/Apify/Generated/Apify.Models.Limits.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Limits.g.cs @@ -91,6 +91,12 @@ public sealed partial class Limits [global::System.Text.Json.Serialization.JsonPropertyName("maxScheduleCount")] public int? MaxScheduleCount { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxMonthlyUnblockerUnits")] + public double? MaxMonthlyUnblockerUnits { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -112,6 +118,7 @@ public sealed partial class Limits /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -127,7 +134,8 @@ public Limits( int maxConcurrentActorJobs, int maxTeamAccountSeatCount, int dataRetentionDays, - int? maxScheduleCount) + int? maxScheduleCount, + double? maxMonthlyUnblockerUnits) { this.MaxMonthlyUsageUsd = maxMonthlyUsageUsd; this.MaxMonthlyActorComputeUnits = maxMonthlyActorComputeUnits; @@ -141,6 +149,7 @@ public Limits( this.MaxTeamAccountSeatCount = maxTeamAccountSeatCount; this.DataRetentionDays = dataRetentionDays; this.MaxScheduleCount = maxScheduleCount; + this.MaxMonthlyUnblockerUnits = maxMonthlyUnblockerUnits; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.Json.g.cs new file mode 100644 index 00000000..3e01a70c --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfActorOAuthAccounts + { + /// + /// 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.ListOfActorOAuthAccounts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfActorOAuthAccounts), + jsonSerializerContext) as global::Apify.ListOfActorOAuthAccounts; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfActorOAuthAccounts? 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.ListOfActorOAuthAccounts? 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.ListOfActorOAuthAccounts), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfActorOAuthAccounts; + } + + /// + /// 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.ListOfActorOAuthAccounts.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.g.cs new file mode 100644 index 00000000..9080c3d6 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccounts.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfActorOAuthAccounts + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Total { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { 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 ListOfActorOAuthAccounts( + int total, + global::System.Collections.Generic.IList items) + { + this.Total = total; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfActorOAuthAccounts() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.Json.g.cs new file mode 100644 index 00000000..28fc75b0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfActorOAuthAccountsResponse + { + /// + /// 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.ListOfActorOAuthAccountsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfActorOAuthAccountsResponse), + jsonSerializerContext) as global::Apify.ListOfActorOAuthAccountsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfActorOAuthAccountsResponse? 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.ListOfActorOAuthAccountsResponse? 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.ListOfActorOAuthAccountsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfActorOAuthAccountsResponse; + } + + /// + /// 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.ListOfActorOAuthAccountsResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.g.cs new file mode 100644 index 00000000..d55bd2d8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthAccountsResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfActorOAuthAccountsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.ListOfActorOAuthAccounts 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 ListOfActorOAuthAccountsResponse( + global::Apify.ListOfActorOAuthAccounts data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfActorOAuthAccountsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.Json.g.cs new file mode 100644 index 00000000..99aa8529 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfActorOAuthConnections + { + /// + /// 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.ListOfActorOAuthConnections? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfActorOAuthConnections), + jsonSerializerContext) as global::Apify.ListOfActorOAuthConnections; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfActorOAuthConnections? 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.ListOfActorOAuthConnections? 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.ListOfActorOAuthConnections), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfActorOAuthConnections; + } + + /// + /// 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.ListOfActorOAuthConnections.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.g.cs new file mode 100644 index 00000000..772e65fb --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnections.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfActorOAuthConnections + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Total { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { 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 ListOfActorOAuthConnections( + int total, + global::System.Collections.Generic.IList items) + { + this.Total = total; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfActorOAuthConnections() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.Json.g.cs new file mode 100644 index 00000000..34882a37 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfActorOAuthConnectionsResponse + { + /// + /// 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.ListOfActorOAuthConnectionsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfActorOAuthConnectionsResponse), + jsonSerializerContext) as global::Apify.ListOfActorOAuthConnectionsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfActorOAuthConnectionsResponse? 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.ListOfActorOAuthConnectionsResponse? 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.ListOfActorOAuthConnectionsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfActorOAuthConnectionsResponse; + } + + /// + /// 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.ListOfActorOAuthConnectionsResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.g.cs new file mode 100644 index 00000000..a45a86a7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfActorOAuthConnectionsResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfActorOAuthConnectionsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.ListOfActorOAuthConnections 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 ListOfActorOAuthConnectionsResponse( + global::Apify.ListOfActorOAuthConnections data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfActorOAuthConnectionsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.Json.g.cs new file mode 100644 index 00000000..5bd9b63b --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfGitProviderIntegrationsResponse + { + /// + /// 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.ListOfGitProviderIntegrationsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfGitProviderIntegrationsResponse), + jsonSerializerContext) as global::Apify.ListOfGitProviderIntegrationsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfGitProviderIntegrationsResponse? 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.ListOfGitProviderIntegrationsResponse? 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.ListOfGitProviderIntegrationsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfGitProviderIntegrationsResponse; + } + + /// + /// 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.ListOfGitProviderIntegrationsResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.g.cs new file mode 100644 index 00000000..34a4109d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfGitProviderIntegrationsResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfGitProviderIntegrationsResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList 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 ListOfGitProviderIntegrationsResponse( + global::System.Collections.Generic.IList data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfGitProviderIntegrationsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfKeyValueStoresVariant2.g.cs index 6f157337..f2497b8a 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.ListOfWebhookResources.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.Json.g.cs new file mode 100644 index 00000000..9dcce8af --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public readonly partial struct ListOfWebhookResources + { + /// + /// 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.ListOfWebhookResources? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfWebhookResources), + jsonSerializerContext) as global::Apify.ListOfWebhookResources?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfWebhookResources? 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.ListOfWebhookResources? 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.ListOfWebhookResources), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfWebhookResources?; + } + + /// + /// 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.ListOfWebhookResources.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.g.cs new file mode 100644 index 00000000..4d6145bd --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResources.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Apify +{ + /// + /// Paginated list of webhooks with all their fields, including `payloadTemplate`. + /// + public readonly partial struct ListOfWebhookResources : global::System.IEquatable + { + /// + /// Common pagination fields for list responses. + /// +#if NET6_0_OR_GREATER + public global::Apify.PaginationResponse? PaginationResponse { get; init; } +#else + public global::Apify.PaginationResponse? PaginationResponse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PaginationResponse))] +#endif + public bool IsPaginationResponse => PaginationResponse != null; + + /// + /// + /// + public bool TryPickPaginationResponse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Apify.PaginationResponse? value) + { + value = PaginationResponse; + return IsPaginationResponse; + } + + /// + /// + /// + public global::Apify.PaginationResponse PickPaginationResponse() => PaginationResponse is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'PaginationResponse' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Apify.ListOfWebhookResourcesVariant2? ListOfWebhookResourcesVariant2 { get; init; } +#else + public global::Apify.ListOfWebhookResourcesVariant2? ListOfWebhookResourcesVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ListOfWebhookResourcesVariant2))] +#endif + public bool IsListOfWebhookResourcesVariant2 => ListOfWebhookResourcesVariant2 != null; + + /// + /// + /// + public bool TryPickListOfWebhookResourcesVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Apify.ListOfWebhookResourcesVariant2? value) + { + value = ListOfWebhookResourcesVariant2; + return IsListOfWebhookResourcesVariant2; + } + + /// + /// + /// + public global::Apify.ListOfWebhookResourcesVariant2 PickListOfWebhookResourcesVariant2() => ListOfWebhookResourcesVariant2 is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'ListOfWebhookResourcesVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ListOfWebhookResources(global::Apify.PaginationResponse value) => new ListOfWebhookResources((global::Apify.PaginationResponse?)value); + + /// + /// + /// + public static implicit operator global::Apify.PaginationResponse?(ListOfWebhookResources @this) => @this.PaginationResponse; + + /// + /// + /// + public ListOfWebhookResources(global::Apify.PaginationResponse? value) + { + PaginationResponse = value; + } + + /// + /// + /// + public static ListOfWebhookResources FromPaginationResponse(global::Apify.PaginationResponse? value) => new ListOfWebhookResources(value); + + /// + /// + /// + public static implicit operator ListOfWebhookResources(global::Apify.ListOfWebhookResourcesVariant2 value) => new ListOfWebhookResources((global::Apify.ListOfWebhookResourcesVariant2?)value); + + /// + /// + /// + public static implicit operator global::Apify.ListOfWebhookResourcesVariant2?(ListOfWebhookResources @this) => @this.ListOfWebhookResourcesVariant2; + + /// + /// + /// + public ListOfWebhookResources(global::Apify.ListOfWebhookResourcesVariant2? value) + { + ListOfWebhookResourcesVariant2 = value; + } + + /// + /// + /// + public static ListOfWebhookResources FromListOfWebhookResourcesVariant2(global::Apify.ListOfWebhookResourcesVariant2? value) => new ListOfWebhookResources(value); + + /// + /// + /// + public ListOfWebhookResources( + global::Apify.PaginationResponse? paginationResponse, + global::Apify.ListOfWebhookResourcesVariant2? listOfWebhookResourcesVariant2 + ) + { + PaginationResponse = paginationResponse; + ListOfWebhookResourcesVariant2 = listOfWebhookResourcesVariant2; + } + + /// + /// + /// + public object? Object => + ListOfWebhookResourcesVariant2 as object ?? + PaginationResponse as object + ; + + /// + /// + /// + public override string? ToString() => + PaginationResponse?.ToString() ?? + ListOfWebhookResourcesVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsPaginationResponse && IsListOfWebhookResourcesVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? paginationResponse = null, + global::System.Func? listOfWebhookResourcesVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PaginationResponse is { } __value0 && paginationResponse != null) + { + return paginationResponse(__value0); + } + else if (ListOfWebhookResourcesVariant2 is { } __value1 && listOfWebhookResourcesVariant2 != null) + { + return listOfWebhookResourcesVariant2(__value1); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? paginationResponse = null, + + global::System.Action? listOfWebhookResourcesVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PaginationResponse is { } __value0) + { + paginationResponse?.Invoke(__value0); + } + else if (ListOfWebhookResourcesVariant2 is { } __value1) + { + listOfWebhookResourcesVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? paginationResponse = null, + global::System.Action? listOfWebhookResourcesVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (PaginationResponse is { } __value0) + { + paginationResponse?.Invoke(__value0); + } + else if (ListOfWebhookResourcesVariant2 is { } __value1) + { + listOfWebhookResourcesVariant2?.Invoke(__value1); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + PaginationResponse, + typeof(global::Apify.PaginationResponse), + ListOfWebhookResourcesVariant2, + typeof(global::Apify.ListOfWebhookResourcesVariant2), + }; + 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(ListOfWebhookResources other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(PaginationResponse, other.PaginationResponse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ListOfWebhookResourcesVariant2, other.ListOfWebhookResourcesVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(ListOfWebhookResources obj1, ListOfWebhookResources obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ListOfWebhookResources obj1, ListOfWebhookResources obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ListOfWebhookResources o && Equals(o); + } + } +} diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.Json.g.cs new file mode 100644 index 00000000..ef8438fa --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfWebhookResourcesResponse + { + /// + /// 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.ListOfWebhookResourcesResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfWebhookResourcesResponse), + jsonSerializerContext) as global::Apify.ListOfWebhookResourcesResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfWebhookResourcesResponse? 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.ListOfWebhookResourcesResponse? 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.ListOfWebhookResourcesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfWebhookResourcesResponse; + } + + /// + /// 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.ListOfWebhookResourcesResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.g.cs new file mode 100644 index 00000000..a83fc6e1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesResponse.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfWebhookResourcesResponse + { + /// + /// Paginated list of webhooks with all their fields, including `payloadTemplate`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.ListOfWebhookResourcesJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.ListOfWebhookResources 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. + /// + /// + /// Paginated list of webhooks with all their fields, including `payloadTemplate`. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ListOfWebhookResourcesResponse( + global::Apify.ListOfWebhookResources data) + { + this.Data = data; + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfWebhookResourcesResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.Json.g.cs new file mode 100644 index 00000000..ae7aa1d8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ListOfWebhookResourcesVariant2 + { + /// + /// 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.ListOfWebhookResourcesVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ListOfWebhookResourcesVariant2), + jsonSerializerContext) as global::Apify.ListOfWebhookResourcesVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ListOfWebhookResourcesVariant2? 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.ListOfWebhookResourcesVariant2? 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.ListOfWebhookResourcesVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ListOfWebhookResourcesVariant2; + } + + /// + /// 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.ListOfWebhookResourcesVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.g.cs new file mode 100644 index 00000000..7dc66755 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ListOfWebhookResourcesVariant2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ListOfWebhookResourcesVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { 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 ListOfWebhookResourcesVariant2( + global::System.Collections.Generic.IList items) + { + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + } + + /// + /// Initializes a new instance of the class. + /// + public ListOfWebhookResourcesVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.PayPerEventActorPricingInfoVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.PayPerEventActorPricingInfoVariant2.g.cs index 64bb9743..17748d40 100644 --- a/src/libs/Apify/Generated/Apify.Models.PayPerEventActorPricingInfoVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.PayPerEventActorPricingInfoVariant2.g.cs @@ -28,6 +28,12 @@ public sealed partial class PayPerEventActorPricingInfoVariant2 [global::System.Text.Json.Serialization.JsonPropertyName("minimalMaxTotalChargeUsd")] public double? MinimalMaxTotalChargeUsd { get; set; } + /// + /// If `true`, the platform usage of the run is charged to the user running the Actor, in addition to the event prices. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isPPEPlatformUsagePaidByUser")] + public bool? IsPPEPlatformUsagePaidByUser { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,6 +45,9 @@ public sealed partial class PayPerEventActorPricingInfoVariant2 /// /// /// + /// + /// If `true`, the platform usage of the run is charged to the user running the Actor, in addition to the event prices. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -46,11 +55,13 @@ public sealed partial class PayPerEventActorPricingInfoVariant2 public PayPerEventActorPricingInfoVariant2( global::Apify.PayPerEventActorPricingInfoVariant2PricingPerEvent pricingPerEvent, double? minimalMaxTotalChargeUsd, + bool? isPPEPlatformUsagePaidByUser, string pricingModel = "PAY_PER_EVENT") { this.PricingModel = pricingModel; this.PricingPerEvent = pricingPerEvent ?? throw new global::System.ArgumentNullException(nameof(pricingPerEvent)); this.MinimalMaxTotalChargeUsd = minimalMaxTotalChargeUsd; + this.IsPPEPlatformUsagePaidByUser = isPPEPlatformUsagePaidByUser; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.ProxyGroup.g.cs b/src/libs/Apify/Generated/Apify.Models.ProxyGroup.g.cs index d52cf54e..abdb5043 100644 --- a/src/libs/Apify/Generated/Apify.Models.ProxyGroup.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ProxyGroup.g.cs @@ -8,6 +8,12 @@ namespace Apify /// public sealed partial class ProxyGroup { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// /// @@ -25,8 +31,7 @@ public sealed partial class ProxyGroup /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("availableCount")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int AvailableCount { get; set; } + public int? AvailableCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,16 +43,19 @@ public sealed partial class ProxyGroup /// Initializes a new instance of the class. /// /// - /// + /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ProxyGroup( string name, - int availableCount, - string? description) + string? id, + string? description, + int? availableCount) { + this.Id = id; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Description = description; this.AvailableCount = availableCount; diff --git a/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs b/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs index 059abe1b..1f7ac0de 100644 --- a/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ProxyResource.g.cs @@ -4,7 +4,7 @@ namespace Apify { /// - /// + /// Proxy access info. Omitted when the user has no access to Apify Proxy. /// public sealed partial class ProxyResource { @@ -12,8 +12,7 @@ public sealed partial class ProxyResource /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("password")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Password { get; set; } + public string? Password { get; set; } /// /// @@ -31,16 +30,16 @@ public sealed partial class ProxyResource /// /// Initializes a new instance of the class. /// - /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ProxyResource( - string password, - global::System.Collections.Generic.IList groups) + global::System.Collections.Generic.IList groups, + string? password) { - this.Password = password ?? throw new global::System.ArgumentNullException(nameof(password)); + this.Password = password; this.Groups = groups ?? throw new global::System.ArgumentNullException(nameof(groups)); } diff --git a/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.Json.g.cs new file mode 100644 index 00000000..c21f66b0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RegisterDeploymentKeyRequest + { + /// + /// 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.RegisterDeploymentKeyRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RegisterDeploymentKeyRequest), + jsonSerializerContext) as global::Apify.RegisterDeploymentKeyRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RegisterDeploymentKeyRequest? 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.RegisterDeploymentKeyRequest? 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.RegisterDeploymentKeyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RegisterDeploymentKeyRequest; + } + + /// + /// 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.RegisterDeploymentKeyRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.g.cs new file mode 100644 index 00000000..6e08f3d3 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyRequest.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class RegisterDeploymentKeyRequest + { + /// + /// ID or `username~name` of the Actor whose deployment key to register. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ActorId { get; set; } + + /// + /// URL of the repository to register the key on. Its host must match the provider. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("repoName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RepoName { 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. + /// + /// + /// ID or `username~name` of the Actor whose deployment key to register. + /// + /// + /// URL of the repository to register the key on. Its host must match the provider. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RegisterDeploymentKeyRequest( + string actorId, + string repoName) + { + this.ActorId = actorId ?? throw new global::System.ArgumentNullException(nameof(actorId)); + this.RepoName = repoName ?? throw new global::System.ArgumentNullException(nameof(repoName)); + } + + /// + /// Initializes a new instance of the class. + /// + public RegisterDeploymentKeyRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.Json.g.cs new file mode 100644 index 00000000..62310bf8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RegisterDeploymentKeyResponse + { + /// + /// 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.RegisterDeploymentKeyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RegisterDeploymentKeyResponse), + jsonSerializerContext) as global::Apify.RegisterDeploymentKeyResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RegisterDeploymentKeyResponse? 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.RegisterDeploymentKeyResponse? 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.RegisterDeploymentKeyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RegisterDeploymentKeyResponse; + } + + /// + /// 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.RegisterDeploymentKeyResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.g.cs new file mode 100644 index 00000000..52412928 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponse.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class RegisterDeploymentKeyResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Apify.RegisterDeploymentKeyResponseData 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 RegisterDeploymentKeyResponse( + global::Apify.RegisterDeploymentKeyResponseData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public RegisterDeploymentKeyResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.Json.g.cs new file mode 100644 index 00000000..e3e1f45f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RegisterDeploymentKeyResponseData + { + /// + /// 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.RegisterDeploymentKeyResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RegisterDeploymentKeyResponseData), + jsonSerializerContext) as global::Apify.RegisterDeploymentKeyResponseData; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RegisterDeploymentKeyResponseData? 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.RegisterDeploymentKeyResponseData? 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.RegisterDeploymentKeyResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RegisterDeploymentKeyResponseData; + } + + /// + /// 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.RegisterDeploymentKeyResponseData.g.cs b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.g.cs new file mode 100644 index 00000000..78d7e6ec --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RegisterDeploymentKeyResponseData.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class RegisterDeploymentKeyResponseData + { + /// + /// The normalized URL of the repository the key is registered on. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("repoName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RepoName { 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. + /// + /// + /// The normalized URL of the repository the key is registered on. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RegisterDeploymentKeyResponseData( + string repoName) + { + this.RepoName = repoName ?? throw new global::System.ArgumentNullException(nameof(repoName)); + } + + /// + /// Initializes a new instance of the class. + /// + public RegisterDeploymentKeyResponseData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs index 5050e40a..af9a6638 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueListItem.g.cs @@ -19,8 +19,13 @@ public sealed partial class RequestQueueListItem /// The name of the request queue. /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public string? Name { get; set; } + + /// + /// The title of the request queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// /// The ID of the user who owns the request queue. @@ -33,8 +38,7 @@ public sealed partial class RequestQueueListItem /// The username of the user who owns the request queue. /// [global::System.Text.Json.Serialization.JsonPropertyName("username")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Username { get; set; } + public string? Username { get; set; } /// /// The timestamp when the request queue was created. @@ -110,10 +114,10 @@ public sealed partial class RequestQueueListItem public global::Apify.GeneralAccess? GeneralAccess { get; set; } /// - /// Statistics about request queue operations and storage. + /// Statistics about request queue operations and storage, as returned in request queue lists. /// [global::System.Text.Json.Serialization.JsonPropertyName("stats")] - public global::Apify.RequestQueueStats? Stats { get; set; } + public global::Apify.RequestQueueListStats? Stats { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -127,15 +131,9 @@ public sealed partial class RequestQueueListItem /// /// A unique identifier assigned to the request queue. /// - /// - /// The name of the request queue. - /// /// /// The ID of the user who owns the request queue. /// - /// - /// The username of the user who owns the request queue. - /// /// /// The timestamp when the request queue was created. /// @@ -157,6 +155,15 @@ public sealed partial class RequestQueueListItem /// /// Whether the request queue has been accessed by multiple different clients. /// + /// + /// The name of the request queue. + /// + /// + /// The title of the request queue. + /// + /// + /// The username of the user who owns the request queue. + /// /// /// The timestamp when the request queue will expire and be deleted. /// @@ -168,16 +175,14 @@ public sealed partial class RequestQueueListItem /// /// /// - /// Statistics about request queue operations and storage. + /// Statistics about request queue operations and storage, as returned in request queue lists. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RequestQueueListItem( string id, - string name, string userId, - string username, global::System.DateTime createdAt, global::System.DateTime modifiedAt, global::System.DateTime accessedAt, @@ -185,16 +190,20 @@ public RequestQueueListItem( int handledRequestCount, int pendingRequestCount, bool hadMultipleClients, + string? name, + string? title, + string? username, global::System.DateTime? expireAt, string? actId, string? actRunId, global::Apify.GeneralAccess? generalAccess, - global::Apify.RequestQueueStats? stats) + global::Apify.RequestQueueListStats? stats) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Name = name; + this.Title = title; this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); - this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); + this.Username = username; this.CreatedAt = createdAt; this.ModifiedAt = modifiedAt; this.AccessedAt = accessedAt; diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.Json.g.cs new file mode 100644 index 00000000..ce5ea7a8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RequestQueueListStats + { + /// + /// 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.RequestQueueListStats? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RequestQueueListStats), + jsonSerializerContext) as global::Apify.RequestQueueListStats; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RequestQueueListStats? 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.RequestQueueListStats? 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.RequestQueueListStats), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RequestQueueListStats; + } + + /// + /// 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.RequestQueueListStats.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.g.cs new file mode 100644 index 00000000..2b709e13 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueListStats.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Statistics about request queue operations and storage, as returned in request queue lists. + /// + public sealed partial class RequestQueueListStats + { + /// + /// The number of delete operations performed on the request queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleteCount")] + public int? DeleteCount { get; set; } + + /// + /// The number of times requests from the head were read. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headItemReadCount")] + public int? HeadItemReadCount { get; set; } + + /// + /// The total number of read operations performed on the request queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("readCount")] + public int? ReadCount { get; set; } + + /// + /// The total number of write operations performed on the request queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("writeCount")] + public int? WriteCount { get; set; } + + /// + /// The storage size in bytes of requests stored in S3. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("s3StorageBytes")] + public long? S3StorageBytes { get; set; } + + /// + /// The storage size in bytes of requests stored in DynamoDB. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dynamodbStorageBytes")] + public long? DynamodbStorageBytes { 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. + /// + /// + /// The number of delete operations performed on the request queue. + /// + /// + /// The number of times requests from the head were read. + /// + /// + /// The total number of read operations performed on the request queue. + /// + /// + /// The total number of write operations performed on the request queue. + /// + /// + /// The storage size in bytes of requests stored in S3. + /// + /// + /// The storage size in bytes of requests stored in DynamoDB. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RequestQueueListStats( + int? deleteCount, + int? headItemReadCount, + int? readCount, + int? writeCount, + long? s3StorageBytes, + long? dynamodbStorageBytes) + { + this.DeleteCount = deleteCount; + this.HeadItemReadCount = headItemReadCount; + this.ReadCount = readCount; + this.WriteCount = writeCount; + this.S3StorageBytes = s3StorageBytes; + this.DynamodbStorageBytes = dynamodbStorageBytes; + } + + /// + /// Initializes a new instance of the class. + /// + public RequestQueueListStats() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs index 4a377b97..a2972bbe 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestQueueResource.g.cs @@ -21,6 +21,12 @@ public sealed partial class RequestQueueResource [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// The title of the request queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// The ID of the user who owns the request queue. /// @@ -150,6 +156,9 @@ public sealed partial class RequestQueueResource /// /// The name of the request queue. /// + /// + /// The title of the request queue. + /// /// /// The ID of the Actor that created this request queue. /// @@ -175,6 +184,7 @@ public RequestQueueResource( bool hadMultipleClients, string consoleUrl, string? name, + string? title, string? actId, string? actRunId, global::Apify.RequestQueueStats? stats, @@ -182,6 +192,7 @@ public RequestQueueResource( { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name; + this.Title = title; this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.ActId = actId; this.ActRunId = actRunId; diff --git a/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs index a48d5cd4..db435295 100644 --- a/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RequestResourceVariant2.g.cs @@ -14,6 +14,19 @@ public sealed partial class RequestResourceVariant2 [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// The timestamp when the lock on this request expires. Only present while the request is locked. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lockExpiresAt")] + public global::System.DateTime? LockExpiresAt { get; set; } + + /// + /// Key of the client that last locked the request. It is set when the request is locked and removed only by
+ /// an explicit unlock or by an update of the request, so it can still be present after the lock has expired. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("lockByClient")] + public string? LockByClient { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -26,13 +39,24 @@ public sealed partial class RequestResourceVariant2 /// /// A unique identifier assigned to the request. /// + /// + /// The timestamp when the lock on this request expires. Only present while the request is locked. + /// + /// + /// Key of the client that last locked the request. It is set when the request is locked and removed only by
+ /// an explicit unlock or by an update of the request, so it can still be present after the lock has expired. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RequestResourceVariant2( - string? id) + string? id, + global::System.DateTime? lockExpiresAt, + string? lockByClient) { this.Id = id; + this.LockExpiresAt = lockExpiresAt; + this.LockByClient = lockByClient; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.Run.g.cs b/src/libs/Apify/Generated/Apify.Models.Run.g.cs index 38966874..f2003355 100644 --- a/src/libs/Apify/Generated/Apify.Models.Run.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Run.g.cs @@ -99,6 +99,58 @@ public sealed partial class Run [global::System.Text.Json.Serialization.JsonPropertyName("chargedEventCounts")] public global::System.Collections.Generic.Dictionary? ChargedEventCounts { get; set; } + /// + /// A map of charged event types to the number of their charges that have already been accounted for billing. Present only for pay-per-event Actors.
+ /// Example: {"actor-start":1,"page-crawled":150} + ///
+ /// {"actor-start":1,"page-crawled":150} + [global::System.Text.Json.Serialization.JsonPropertyName("accountedChargedEventCounts")] + public global::System.Collections.Generic.Dictionary? AccountedChargedEventCounts { get; set; } + + /// + /// Cost breakdown of the pay-per-event charges in USD, keyed by event type. Present only for pay-per-event runs, and not when the run was started by the Actor's owner. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("eventUsage")] + public global::System.Collections.Generic.Dictionary? EventUsage { get; set; } + + /// + /// Total price in USD of the pay-per-event charges made to other users. Present only on multi-tenant Standby runs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("externalChargedTotalUsd")] + public double? ExternalChargedTotalUsd { get; set; } + + /// + /// Standby configuration of the run. `null` for runs that are not Actor Standby runs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("standby")] + public global::Apify.RunStandby? Standby { get; set; } + + /// + /// Present only when the run was started by a third-party integration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("integrationTracking")] + public global::Apify.IntegrationTracking? IntegrationTracking { get; set; } + + /// + /// ID of the organization member who started the run. Present only for runs started on behalf of an organization. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdByOrganizationMemberUserId")] + public string? CreatedByOrganizationMemberUserId { get; set; } + + /// + /// URL of the run in Apify Console. Returned only by the [Get Actor run](/api/v2/actor-run-get) endpoint. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("consoleUrl")] + public string? ConsoleUrl { get; set; } + + /// + /// Output links of the run, generated from the output schema of the Actor build. Present only if the build defines an output schema.
+ /// Example: {"results":"https://api.apify.com/v2/datasets/wmKPijuyDnPZAPRMk/items"} + ///
+ /// {"results":"https://api.apify.com/v2/datasets/wmKPijuyDnPZAPRMk/items"} + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::System.Collections.Generic.Dictionary? Output { get; set; } + /// /// Configuration options for the Actor run. /// @@ -270,6 +322,32 @@ public sealed partial class Run /// A map of charged event types to their counts. The keys are event type identifiers defined by the Actor's pricing model (pay-per-event), and the values are the number of times each event was charged during this run.
/// Example: {"actor-start":1,"page-crawled":150,"data-extracted":75} /// + /// + /// A map of charged event types to the number of their charges that have already been accounted for billing. Present only for pay-per-event Actors.
+ /// Example: {"actor-start":1,"page-crawled":150} + /// + /// + /// Cost breakdown of the pay-per-event charges in USD, keyed by event type. Present only for pay-per-event runs, and not when the run was started by the Actor's owner. + /// + /// + /// Total price in USD of the pay-per-event charges made to other users. Present only on multi-tenant Standby runs. + /// + /// + /// Standby configuration of the run. `null` for runs that are not Actor Standby runs. + /// + /// + /// Present only when the run was started by a third-party integration. + /// + /// + /// ID of the organization member who started the run. Present only for runs started on behalf of an organization. + /// + /// + /// URL of the run in Apify Console. Returned only by the [Get Actor run](/api/v2/actor-run-get) endpoint. + /// + /// + /// Output links of the run, generated from the output schema of the Actor build. Present only if the build defines an output schema.
+ /// Example: {"results":"https://api.apify.com/v2/datasets/wmKPijuyDnPZAPRMk/items"} + /// /// /// Exit code of the Actor run process. /// @@ -328,6 +406,14 @@ public Run( bool? isStatusMessageTerminal, global::Apify.ActorRunPricingInfo? pricingInfo, global::System.Collections.Generic.Dictionary? chargedEventCounts, + global::System.Collections.Generic.Dictionary? accountedChargedEventCounts, + global::System.Collections.Generic.Dictionary? eventUsage, + double? externalChargedTotalUsd, + global::Apify.RunStandby? standby, + global::Apify.IntegrationTracking? integrationTracking, + string? createdByOrganizationMemberUserId, + string? consoleUrl, + global::System.Collections.Generic.Dictionary? output, int? exitCode, global::Apify.GeneralAccess? generalAccess, global::Apify.RunStorageIds? storageIds, @@ -354,6 +440,14 @@ public Run( this.PricingInfo = pricingInfo; this.Stats = stats ?? throw new global::System.ArgumentNullException(nameof(stats)); this.ChargedEventCounts = chargedEventCounts; + this.AccountedChargedEventCounts = accountedChargedEventCounts; + this.EventUsage = eventUsage; + this.ExternalChargedTotalUsd = externalChargedTotalUsd; + this.Standby = standby; + this.IntegrationTracking = integrationTracking; + this.CreatedByOrganizationMemberUserId = createdByOrganizationMemberUserId; + this.ConsoleUrl = consoleUrl; + this.Output = output; this.Options = options ?? throw new global::System.ArgumentNullException(nameof(options)); this.BuildId = buildId ?? throw new global::System.ArgumentNullException(nameof(buildId)); this.ExitCode = exitCode; diff --git a/src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.Json.g.cs new file mode 100644 index 00000000..194b5db8 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RunAccountedChargedEventCounts + { + /// + /// 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.RunAccountedChargedEventCounts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RunAccountedChargedEventCounts), + jsonSerializerContext) as global::Apify.RunAccountedChargedEventCounts; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RunAccountedChargedEventCounts? 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.RunAccountedChargedEventCounts? 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.RunAccountedChargedEventCounts), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunAccountedChargedEventCounts; + } + + /// + /// 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.RunAccountedChargedEventCounts.g.cs b/src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.g.cs new file mode 100644 index 00000000..d5336120 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunAccountedChargedEventCounts.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace Apify +{ + /// + /// A map of charged event types to the number of their charges that have already been accounted for billing. Present only for pay-per-event Actors.
+ /// Example: {"actor-start":1,"page-crawled":150} + ///
+ public sealed partial class RunAccountedChargedEventCounts + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RunEventUsage.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunEventUsage.Json.g.cs new file mode 100644 index 00000000..b2b89258 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunEventUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RunEventUsage + { + /// + /// 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.RunEventUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RunEventUsage), + jsonSerializerContext) as global::Apify.RunEventUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RunEventUsage? 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.RunEventUsage? 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.RunEventUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunEventUsage; + } + + /// + /// 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.RunEventUsage.g.cs b/src/libs/Apify/Generated/Apify.Models.RunEventUsage.g.cs new file mode 100644 index 00000000..06b17fdd --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunEventUsage.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Cost of a single pay-per-event event type charged during the run. + /// + public sealed partial class RunEventUsage + { + /// + /// Total cost of all charges of this event in USD. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("eventTotalUsd")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double EventTotalUsd { get; set; } + + /// + /// Human-readable title of the event. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("eventTitle")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string EventTitle { 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. + /// + /// + /// Total cost of all charges of this event in USD. + /// + /// + /// Human-readable title of the event. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RunEventUsage( + double eventTotalUsd, + string eventTitle) + { + this.EventTotalUsd = eventTotalUsd; + this.EventTitle = eventTitle ?? throw new global::System.ArgumentNullException(nameof(eventTitle)); + } + + /// + /// Initializes a new instance of the class. + /// + public RunEventUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RunEventUsage2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunEventUsage2.Json.g.cs new file mode 100644 index 00000000..192f44fa --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunEventUsage2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RunEventUsage2 + { + /// + /// 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.RunEventUsage2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RunEventUsage2), + jsonSerializerContext) as global::Apify.RunEventUsage2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RunEventUsage2? 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.RunEventUsage2? 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.RunEventUsage2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunEventUsage2; + } + + /// + /// 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.RunEventUsage2.g.cs b/src/libs/Apify/Generated/Apify.Models.RunEventUsage2.g.cs new file mode 100644 index 00000000..b15d3bf1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunEventUsage2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Cost breakdown of the pay-per-event charges in USD, keyed by event type. Present only for pay-per-event runs, and not when the run was started by the Actor's owner. + /// + public sealed partial class RunEventUsage2 + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs index 3421419b..959109db 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunListItem.g.cs @@ -109,6 +109,12 @@ public sealed partial class RunListItem [global::System.Text.Json.Serialization.JsonRequired] public required string DefaultRequestQueueId { get; set; } + /// + /// Standby configuration of the run. `null` for runs that are not Actor Standby runs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("standby")] + public global::Apify.RunStandby? Standby { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -135,6 +141,9 @@ public sealed partial class RunListItem /// /// /// + /// + /// Standby configuration of the run. `null` for runs that are not Actor Standby runs. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -153,7 +162,8 @@ public RunListItem( string? actorTaskId, global::System.DateTime? finishedAt, string? buildNumber, - int? buildNumberInt) + int? buildNumberInt, + global::Apify.RunStandby? standby) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.ActId = actId ?? throw new global::System.ArgumentNullException(nameof(actId)); @@ -170,6 +180,7 @@ public RunListItem( this.DefaultKeyValueStoreId = defaultKeyValueStoreId ?? throw new global::System.ArgumentNullException(nameof(defaultKeyValueStoreId)); this.DefaultDatasetId = defaultDatasetId ?? throw new global::System.ArgumentNullException(nameof(defaultDatasetId)); this.DefaultRequestQueueId = defaultRequestQueueId ?? throw new global::System.ArgumentNullException(nameof(defaultRequestQueueId)); + this.Standby = standby; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.RunMeta.g.cs b/src/libs/Apify/Generated/Apify.Models.RunMeta.g.cs index 8b1257b6..942c0131 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunMeta.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunMeta.g.cs @@ -40,6 +40,30 @@ public sealed partial class RunMeta [global::System.Text.Json.Serialization.JsonPropertyName("scheduledAt")] public global::System.DateTime? ScheduledAt { get; set; } + /// + /// ID of the Actor run that started this run. Present only when the run was started from another run. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorRunId")] + public string? ActorRunId { get; set; } + + /// + /// ID of the webhook dispatch that started the run. Present only when the run was started by a webhook. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("webhookDispatchId")] + public string? WebhookDispatchId { get; set; } + + /// + /// ID of the schedule action that started the Actor. Present only on runs of Actors started by a schedule. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scheduledAct2Id")] + public string? ScheduledAct2Id { get; set; } + + /// + /// ID of the schedule action that started the Actor task. Present only on runs of tasks started by a schedule. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scheduledActorTaskId")] + public string? ScheduledActorTaskId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -62,6 +86,18 @@ public sealed partial class RunMeta /// /// Time when the run was scheduled. /// + /// + /// ID of the Actor run that started this run. Present only when the run was started from another run. + /// + /// + /// ID of the webhook dispatch that started the run. Present only when the run was started by a webhook. + /// + /// + /// ID of the schedule action that started the Actor. Present only on runs of Actors started by a schedule. + /// + /// + /// ID of the schedule action that started the Actor task. Present only on runs of tasks started by a schedule. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -70,13 +106,21 @@ public RunMeta( string? clientIp, string? userAgent, string? scheduleId, - global::System.DateTime? scheduledAt) + global::System.DateTime? scheduledAt, + string? actorRunId, + string? webhookDispatchId, + string? scheduledAct2Id, + string? scheduledActorTaskId) { this.Origin = origin; this.ClientIp = clientIp; this.UserAgent = userAgent; this.ScheduleId = scheduleId; this.ScheduledAt = scheduledAt; + this.ActorRunId = actorRunId; + this.WebhookDispatchId = webhookDispatchId; + this.ScheduledAct2Id = scheduledAct2Id; + this.ScheduledActorTaskId = scheduledActorTaskId; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs index 87d4a07c..3c920f40 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunMetamorphEvent.g.cs @@ -35,6 +35,12 @@ public sealed partial class RunMetamorphEvent [global::System.Text.Json.Serialization.JsonPropertyName("inputKey")] public string? InputKey { get; set; } + /// + /// Build tags of the build used for the metamorphed Actor. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("buildTags")] + public global::System.Collections.Generic.IList? BuildTags { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -56,6 +62,9 @@ public sealed partial class RunMetamorphEvent /// /// Key of the input record in the key-value store. /// + /// + /// Build tags of the build used for the metamorphed Actor. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -63,12 +72,14 @@ public RunMetamorphEvent( global::System.DateTime createdAt, string actorId, string buildId, - string? inputKey) + string? inputKey, + global::System.Collections.Generic.IList? buildTags) { this.CreatedAt = createdAt; this.ActorId = actorId ?? throw new global::System.ArgumentNullException(nameof(actorId)); this.BuildId = buildId ?? throw new global::System.ArgumentNullException(nameof(buildId)); this.InputKey = inputKey; + this.BuildTags = buildTags; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.RunOptions.g.cs b/src/libs/Apify/Generated/Apify.Models.RunOptions.g.cs index f51996d7..54f777d9 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunOptions.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunOptions.g.cs @@ -36,6 +36,12 @@ public sealed partial class RunOptions [global::System.Text.Json.Serialization.JsonRequired] public required long DiskMbytes { get; set; } + /// + /// Whether to automatically restart the run if it fails. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("restartOnError")] + public bool? RestartOnError { get; set; } + /// /// /// @@ -48,6 +54,12 @@ public sealed partial class RunOptions [global::System.Text.Json.Serialization.JsonPropertyName("maxTotalChargeUsd")] public double? MaxTotalChargeUsd { get; set; } + /// + /// Whether the user explicitly set `maxTotalChargeUsd` when starting the run. Not present for pay-per-result Actors. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isMaxTotalChargeUsdSetByUser")] + public bool? IsMaxTotalChargeUsdSetByUser { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,8 +73,14 @@ public sealed partial class RunOptions /// /// /// + /// + /// Whether to automatically restart the run if it fails. + /// /// /// + /// + /// Whether the user explicitly set `maxTotalChargeUsd` when starting the run. Not present for pay-per-result Actors. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -71,15 +89,19 @@ public RunOptions( int timeoutSecs, long memoryMbytes, long diskMbytes, + bool? restartOnError, int? maxItems, - double? maxTotalChargeUsd) + double? maxTotalChargeUsd, + bool? isMaxTotalChargeUsdSetByUser) { this.Build = build ?? throw new global::System.ArgumentNullException(nameof(build)); this.TimeoutSecs = timeoutSecs; this.MemoryMbytes = memoryMbytes; this.DiskMbytes = diskMbytes; + this.RestartOnError = restartOnError; this.MaxItems = maxItems; this.MaxTotalChargeUsd = maxTotalChargeUsd; + this.IsMaxTotalChargeUsdSetByUser = isMaxTotalChargeUsdSetByUser; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.RunOutput.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunOutput.Json.g.cs new file mode 100644 index 00000000..1e64eaca --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunOutput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RunOutput + { + /// + /// 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.RunOutput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RunOutput), + jsonSerializerContext) as global::Apify.RunOutput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RunOutput? 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.RunOutput? 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.RunOutput), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunOutput; + } + + /// + /// 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.RunOutput.g.cs b/src/libs/Apify/Generated/Apify.Models.RunOutput.g.cs new file mode 100644 index 00000000..649c9350 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunOutput.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Output links of the run, generated from the output schema of the Actor build. Present only if the build defines an output schema.
+ /// Example: {"results":"https://api.apify.com/v2/datasets/wmKPijuyDnPZAPRMk/items"} + ///
+ public sealed partial class RunOutput + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RunStandby.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.RunStandby.Json.g.cs new file mode 100644 index 00000000..450ea67f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunStandby.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class RunStandby + { + /// + /// 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.RunStandby? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.RunStandby), + jsonSerializerContext) as global::Apify.RunStandby; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.RunStandby? 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.RunStandby? 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.RunStandby), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.RunStandby; + } + + /// + /// 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.RunStandby.g.cs b/src/libs/Apify/Generated/Apify.Models.RunStandby.g.cs new file mode 100644 index 00000000..87f7dee0 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.RunStandby.g.cs @@ -0,0 +1,49 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Standby configuration of the run. Present only on Actor Standby runs. + /// + public sealed partial class RunStandby + { + /// + /// How the Standby run is deployed: `SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, `MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`. `SINGLE_TENANT` is a private instance in the user's account.
+ /// The `MULTI_TENANT_*` values are runs in the Actor owner's account that serve requests from many users. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("deployment")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Deployment { 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. + /// + /// + /// How the Standby run is deployed: `SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, `MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`. `SINGLE_TENANT` is a private instance in the user's account.
+ /// The `MULTI_TENANT_*` values are runs in the Actor owner's account that serve requests from many users. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public RunStandby( + string deployment) + { + this.Deployment = deployment ?? throw new global::System.ArgumentNullException(nameof(deployment)); + } + + /// + /// Initializes a new instance of the class. + /// + public RunStandby() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.RunUsage.g.cs b/src/libs/Apify/Generated/Apify.Models.RunUsage.g.cs index 2bbf69dd..f149d677 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunUsage.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunUsage.g.cs @@ -80,6 +80,12 @@ public sealed partial class RunUsage [global::System.Text.Json.Serialization.JsonPropertyName("PROXY_SERPS")] public int? ProxySerps { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("PROXY_UNBLOCKER_UNITS")] + public double? ProxyUnblockerUnits { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -101,6 +107,7 @@ public sealed partial class RunUsage /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -116,7 +123,8 @@ public RunUsage( double? dataTransferInternalGbytes, double? dataTransferExternalGbytes, double? proxyResidentialTransferGbytes, - int? proxySerps) + int? proxySerps, + double? proxyUnblockerUnits) { this.ActorComputeUnits = actorComputeUnits; this.DatasetReads = datasetReads; @@ -130,6 +138,7 @@ public RunUsage( this.DataTransferExternalGbytes = dataTransferExternalGbytes; this.ProxyResidentialTransferGbytes = proxyResidentialTransferGbytes; this.ProxySerps = proxySerps; + this.ProxyUnblockerUnits = proxyUnblockerUnits; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.RunUsageUsd.g.cs b/src/libs/Apify/Generated/Apify.Models.RunUsageUsd.g.cs index c667d17f..1961b879 100644 --- a/src/libs/Apify/Generated/Apify.Models.RunUsageUsd.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.RunUsageUsd.g.cs @@ -80,6 +80,12 @@ public sealed partial class RunUsageUsd [global::System.Text.Json.Serialization.JsonPropertyName("PROXY_SERPS")] public double? ProxySerps { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("PROXY_UNBLOCKER_UNITS")] + public double? ProxyUnblockerUnits { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -101,6 +107,7 @@ public sealed partial class RunUsageUsd /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -116,7 +123,8 @@ public RunUsageUsd( double? dataTransferInternalGbytes, double? dataTransferExternalGbytes, double? proxyResidentialTransferGbytes, - double? proxySerps) + double? proxySerps, + double? proxyUnblockerUnits) { this.ActorComputeUnits = actorComputeUnits; this.DatasetReads = datasetReads; @@ -130,6 +138,7 @@ public RunUsageUsd( this.DataTransferExternalGbytes = dataTransferExternalGbytes; this.ProxyResidentialTransferGbytes = proxyResidentialTransferGbytes; this.ProxySerps = proxySerps; + this.ProxyUnblockerUnits = proxyUnblockerUnits; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.Json.g.cs new file mode 100644 index 00000000..e8b6f0f2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ScheduleInvokePostResponse + { + /// + /// 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.ScheduleInvokePostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ScheduleInvokePostResponse), + jsonSerializerContext) as global::Apify.ScheduleInvokePostResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ScheduleInvokePostResponse? 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.ScheduleInvokePostResponse? 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.ScheduleInvokePostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleInvokePostResponse; + } + + /// + /// 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.ScheduleInvokePostResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.g.cs new file mode 100644 index 00000000..904e9ab7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleInvokePostResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class ScheduleInvokePostResponse + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs index 0298e0b1..93a48a5d 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleListItemVariant2.g.cs @@ -8,6 +8,24 @@ namespace Apify /// public sealed partial class ScheduleListItemVariant2 { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Notification settings for this schedule. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("notifications")] + public global::Apify.ScheduleNotifications? Notifications { get; set; } + + /// + /// Present only when the schedule was created by a third-party integration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("integrationTracking")] + public global::Apify.IntegrationTracking? IntegrationTracking { get; set; } + /// /// /// @@ -25,12 +43,25 @@ public sealed partial class ScheduleListItemVariant2 /// Initializes a new instance of the class. /// /// + /// + /// + /// Notification settings for this schedule. + /// + /// + /// Present only when the schedule was created by a third-party integration. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ScheduleListItemVariant2( - global::System.Collections.Generic.IList actions) + global::System.Collections.Generic.IList actions, + string? title, + global::Apify.ScheduleNotifications? notifications, + global::Apify.IntegrationTracking? integrationTracking) { + this.Title = title; + this.Notifications = notifications; + this.IntegrationTracking = integrationTracking; this.Actions = actions ?? throw new global::System.ArgumentNullException(nameof(actions)); } diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleUiState.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleUiState.Json.g.cs new file mode 100644 index 00000000..c304983d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleUiState.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ScheduleUiState + { + /// + /// 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.ScheduleUiState? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ScheduleUiState), + jsonSerializerContext) as global::Apify.ScheduleUiState; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ScheduleUiState? 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.ScheduleUiState? 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.ScheduleUiState), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleUiState; + } + + /// + /// 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.ScheduleUiState.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleUiState.g.cs new file mode 100644 index 00000000..c841c392 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleUiState.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Apify +{ + /// + /// State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`. + /// + public sealed partial class ScheduleUiState + { + /// + /// Version of the editor state format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + public int? Version { get; set; } + + /// + /// Editor form values, such as the frequency settings the cron expression was built from. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public global::Apify.ScheduleUiStateData? 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. + /// + /// + /// Version of the editor state format. + /// + /// + /// Editor form values, such as the frequency settings the cron expression was built from. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ScheduleUiState( + int? version, + global::Apify.ScheduleUiStateData? data) + { + this.Version = version; + this.Data = data; + } + + /// + /// Initializes a new instance of the class. + /// + public ScheduleUiState() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.Json.g.cs new file mode 100644 index 00000000..25579d1d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class ScheduleUiStateData + { + /// + /// 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.ScheduleUiStateData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.ScheduleUiStateData), + jsonSerializerContext) as global::Apify.ScheduleUiStateData; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.ScheduleUiStateData? 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.ScheduleUiStateData? 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.ScheduleUiStateData), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.ScheduleUiStateData; + } + + /// + /// 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.ScheduleUiStateData.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.g.cs new file mode 100644 index 00000000..2996ced3 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleUiStateData.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Editor form values, such as the frequency settings the cron expression was built from. + /// + public sealed partial class ScheduleUiStateData + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cronExpression")] + public string? CronExpression { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timezone")] + public string? Timezone { 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 ScheduleUiStateData( + string? cronExpression, + string? timezone) + { + this.CronExpression = cronExpression; + this.Timezone = timezone; + } + + /// + /// Initializes a new instance of the class. + /// + public ScheduleUiStateData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs b/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs index 68258f1f..0ae468d6 100644 --- a/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.ScheduleVariant2.g.cs @@ -26,6 +26,18 @@ public sealed partial class ScheduleVariant2 [global::System.Text.Json.Serialization.JsonPropertyName("notifications")] public global::Apify.ScheduleNotifications? Notifications { get; set; } + /// + /// State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uiState")] + public global::Apify.ScheduleUiState? UiState { get; set; } + + /// + /// Present only when the schedule was created by a third-party integration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("integrationTracking")] + public global::Apify.IntegrationTracking? IntegrationTracking { get; set; } + /// /// /// @@ -48,6 +60,12 @@ public sealed partial class ScheduleVariant2 /// /// Notification settings for this schedule. /// + /// + /// State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`. + /// + /// + /// Present only when the schedule was created by a third-party integration. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -55,11 +73,15 @@ public ScheduleVariant2( global::System.Collections.Generic.IList actions, string? description, string? title, - global::Apify.ScheduleNotifications? notifications) + global::Apify.ScheduleNotifications? notifications, + global::Apify.ScheduleUiState? uiState, + global::Apify.IntegrationTracking? integrationTracking) { this.Description = description; this.Title = title; this.Notifications = notifications; + this.UiState = uiState; + this.IntegrationTracking = integrationTracking; this.Actions = actions ?? throw new global::System.ArgumentNullException(nameof(actions)); } diff --git a/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs index 3973f77c..0eab794c 100644 --- a/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.StoreActor.g.cs @@ -129,6 +129,12 @@ public sealed partial class StoreActor [global::System.Text.Json.Serialization.JsonPropertyName("readmeSummary")] public string? ReadmeSummary { get; set; } + /// + /// Compact input schema of the Actor's default build, with only property types and required properties. Returned only when `includeInputSchema=true` and the default build succeeded and defines input properties. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputSchema")] + public global::Apify.StoreActorInputSchema? InputSchema { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -167,6 +173,9 @@ public sealed partial class StoreActor /// /// A brief, LLM-generated readme summary /// + /// + /// Compact input schema of the Actor's default build, with only property types and required properties. Returned only when `includeInputSchema=true` and the default build succeeded and defines input properties. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -189,7 +198,8 @@ public StoreActor( double? actorReviewRating, int? bookmarkCount, string? badge, - string? readmeSummary) + string? readmeSummary, + global::Apify.StoreActorInputSchema? inputSchema) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); @@ -210,6 +220,7 @@ public StoreActor( this.BookmarkCount = bookmarkCount; this.Badge = badge; this.ReadmeSummary = readmeSummary; + this.InputSchema = inputSchema; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.Json.g.cs new file mode 100644 index 00000000..be5d1b2a --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class StoreActorInputSchema + { + /// + /// 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.StoreActorInputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.StoreActorInputSchema), + jsonSerializerContext) as global::Apify.StoreActorInputSchema; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.StoreActorInputSchema? 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.StoreActorInputSchema? 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.StoreActorInputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.StoreActorInputSchema; + } + + /// + /// 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.StoreActorInputSchema.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.g.cs new file mode 100644 index 00000000..de2b719f --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchema.g.cs @@ -0,0 +1,64 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Compact input schema of the Actor's default build, with only property types and required properties. Returned only when `includeInputSchema=true` and the default build succeeded and defines input properties. + /// + public sealed partial class StoreActorInputSchema + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary Properties { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { 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 StoreActorInputSchema( + string type, + global::System.Collections.Generic.Dictionary properties, + global::System.Collections.Generic.IList? required) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Properties = properties ?? throw new global::System.ArgumentNullException(nameof(properties)); + this.Required = required; + } + + /// + /// Initializes a new instance of the class. + /// + public StoreActorInputSchema() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.Json.g.cs new file mode 100644 index 00000000..7dc2d76d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class StoreActorInputSchemaProperties + { + /// + /// 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.StoreActorInputSchemaProperties? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.StoreActorInputSchemaProperties), + jsonSerializerContext) as global::Apify.StoreActorInputSchemaProperties; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.StoreActorInputSchemaProperties? 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.StoreActorInputSchemaProperties? 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.StoreActorInputSchemaProperties), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.StoreActorInputSchemaProperties; + } + + /// + /// 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.StoreActorInputSchemaProperties.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.g.cs new file mode 100644 index 00000000..75e826ac --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class StoreActorInputSchemaProperties + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.Json.g.cs new file mode 100644 index 00000000..794aaa21 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class StoreActorInputSchemaProperties2 + { + /// + /// 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.StoreActorInputSchemaProperties2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.StoreActorInputSchemaProperties2), + jsonSerializerContext) as global::Apify.StoreActorInputSchemaProperties2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.StoreActorInputSchemaProperties2? 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.StoreActorInputSchemaProperties2? 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.StoreActorInputSchemaProperties2), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.StoreActorInputSchemaProperties2; + } + + /// + /// 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.StoreActorInputSchemaProperties2.g.cs b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.g.cs new file mode 100644 index 00000000..3d3e4956 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.StoreActorInputSchemaProperties2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class StoreActorInputSchemaProperties2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.OneOfJsonConverter>))] + public global::Apify.OneOf>? Type { 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 StoreActorInputSchemaProperties2( + global::Apify.OneOf>? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public StoreActorInputSchemaProperties2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.Task.g.cs b/src/libs/Apify/Generated/Apify.Models.Task.g.cs index 72c078d9..965f1d6c 100644 --- a/src/libs/Apify/Generated/Apify.Models.Task.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Task.g.cs @@ -36,6 +36,12 @@ public sealed partial class Task [global::System.Text.Json.Serialization.JsonRequired] public required string Name { get; set; } + /// + /// Task name in lowercase. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nameLowerCase")] + public string? NameLowerCase { get; set; } + /// /// /// @@ -132,6 +138,9 @@ public sealed partial class Task /// /// /// + /// + /// Task name in lowercase. + /// /// /// /// @@ -155,6 +164,7 @@ public Task( string name, global::System.DateTime createdAt, global::System.DateTime modifiedAt, + string? nameLowerCase, string? username, global::System.DateTime? removedAt, global::Apify.TaskStats? stats, @@ -171,6 +181,7 @@ public Task( this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.ActId = actId ?? throw new global::System.ArgumentNullException(nameof(actId)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.NameLowerCase = nameLowerCase; this.Username = username; this.CreatedAt = createdAt; this.ModifiedAt = modifiedAt; diff --git a/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs index b6064124..c03ebff1 100644 --- a/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskListItem.g.cs @@ -42,6 +42,12 @@ public sealed partial class TaskListItem [global::System.Text.Json.Serialization.JsonRequired] public required string Name { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// /// @@ -74,6 +80,12 @@ public sealed partial class TaskListItem [global::System.Text.Json.Serialization.JsonPropertyName("stats")] public global::Apify.TaskStats? Stats { get; set; } + /// + /// Whether the task is published. Based on the `publicConfig.publishedAt` field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isPublic")] + public bool? IsPublic { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -90,9 +102,13 @@ public sealed partial class TaskListItem /// /// /// + /// /// /// /// + /// + /// Whether the task is published. Based on the `publicConfig.publishedAt` field. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -104,20 +120,24 @@ public TaskListItem( global::System.DateTime createdAt, global::System.DateTime modifiedAt, string? actName, + string? title, string? username, string? actUsername, - global::Apify.TaskStats? stats) + global::Apify.TaskStats? stats, + bool? isPublic) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.ActId = actId ?? throw new global::System.ArgumentNullException(nameof(actId)); this.ActName = actName; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Title = title; this.Username = username; this.ActUsername = actUsername; this.CreatedAt = createdAt; this.ModifiedAt = modifiedAt; this.Stats = stats; + this.IsPublic = isPublic; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.TaskOptions.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskOptions.g.cs index b4eca6e7..04af0db8 100644 --- a/src/libs/Apify/Generated/Apify.Models.TaskOptions.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskOptions.g.cs @@ -44,6 +44,18 @@ public sealed partial class TaskOptions [global::System.Text.Json.Serialization.JsonPropertyName("restartOnError")] public bool? RestartOnError { get; set; } + /// + /// Whether the user explicitly set `maxTotalChargeUsd`. Returned only in schedule action `runOptions`, and only if it was provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isMaxTotalChargeUsdSetByUser")] + public bool? IsMaxTotalChargeUsdSetByUser { get; set; } + + /// + /// Permission level to run the Actor with, overriding the Actor's own setting. Returned only in schedule action `runOptions`, and only if it was provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("forcePermissionLevel")] + public global::Apify.ActorPermissionLevel? ForcePermissionLevel { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -59,6 +71,12 @@ public sealed partial class TaskOptions /// /// /// + /// + /// Whether the user explicitly set `maxTotalChargeUsd`. Returned only in schedule action `runOptions`, and only if it was provided. + /// + /// + /// Permission level to run the Actor with, overriding the Actor's own setting. Returned only in schedule action `runOptions`, and only if it was provided. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -68,7 +86,9 @@ public TaskOptions( long? memoryMbytes, int? maxItems, double? maxTotalChargeUsd, - bool? restartOnError) + bool? restartOnError, + bool? isMaxTotalChargeUsdSetByUser, + global::Apify.ActorPermissionLevel? forcePermissionLevel) { this.Build = build; this.TimeoutSecs = timeoutSecs; @@ -76,6 +96,8 @@ public TaskOptions( this.MaxItems = maxItems; this.MaxTotalChargeUsd = maxTotalChargeUsd; this.RestartOnError = restartOnError; + this.IsMaxTotalChargeUsdSetByUser = isMaxTotalChargeUsdSetByUser; + this.ForcePermissionLevel = forcePermissionLevel; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.TaskPublicConfig.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfig.g.cs index cfe3fe98..36fe766b 100644 --- a/src/libs/Apify/Generated/Apify.Models.TaskPublicConfig.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfig.g.cs @@ -54,6 +54,24 @@ public sealed partial class TaskPublicConfig [global::System.Text.Json.Serialization.JsonPropertyName("datasetView")] public string? DatasetView { get; set; } + /// + /// ID of the use-case category of the task. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("categorization")] + public string? Categorization { get; set; } + + /// + /// Names of the dataset fields highlighted on the public task page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("highlightedFields")] + public global::System.Collections.Generic.IList? HighlightedFields { get; set; } + + /// + /// Frequently asked questions displayed on the public task page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("faq")] + public global::System.Collections.Generic.IList? Faq { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -89,6 +107,15 @@ public sealed partial class TaskPublicConfig /// Key of the dataset view from the Actor's dataset schema used to display results. Must be
/// one of the views declared on the resolved dataset. You can't publish a task without it. /// + /// + /// ID of the use-case category of the task. + /// + /// + /// Names of the dataset fields highlighted on the public task page. + /// + /// + /// Frequently asked questions displayed on the public task page. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -98,7 +125,10 @@ public TaskPublicConfig( string? seoDescription, global::System.Collections.Generic.IList? inputSchemaFields, string? datasetName, - string? datasetView) + string? datasetView, + string? categorization, + global::System.Collections.Generic.IList? highlightedFields, + global::System.Collections.Generic.IList? faq) { this.PublishedAt = publishedAt; this.SeoTitle = seoTitle; @@ -106,6 +136,9 @@ public TaskPublicConfig( this.InputSchemaFields = inputSchemaFields; this.DatasetName = datasetName; this.DatasetView = datasetView; + this.Categorization = categorization; + this.HighlightedFields = highlightedFields; + this.Faq = faq; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.Json.g.cs new file mode 100644 index 00000000..9ea11935 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class TaskPublicConfigFaqItem + { + /// + /// 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.TaskPublicConfigFaqItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.TaskPublicConfigFaqItem), + jsonSerializerContext) as global::Apify.TaskPublicConfigFaqItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.TaskPublicConfigFaqItem? 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.TaskPublicConfigFaqItem? 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.TaskPublicConfigFaqItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.TaskPublicConfigFaqItem; + } + + /// + /// 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.TaskPublicConfigFaqItem.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.g.cs new file mode 100644 index 00000000..3eef24d4 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.TaskPublicConfigFaqItem.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class TaskPublicConfigFaqItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("question")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Question { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("answer")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Answer { 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 TaskPublicConfigFaqItem( + string question, + string answer) + { + this.Question = question ?? throw new global::System.ArgumentNullException(nameof(question)); + this.Answer = answer ?? throw new global::System.ArgumentNullException(nameof(answer)); + } + + /// + /// Initializes a new instance of the class. + /// + public TaskPublicConfigFaqItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.TaskStats.g.cs b/src/libs/Apify/Generated/Apify.Models.TaskStats.g.cs index ff082bcd..e8927939 100644 --- a/src/libs/Apify/Generated/Apify.Models.TaskStats.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.TaskStats.g.cs @@ -14,6 +14,12 @@ public sealed partial class TaskStats [global::System.Text.Json.Serialization.JsonPropertyName("totalRuns")] public int? TotalRuns { get; set; } + /// + /// Time when the last run of the task started. In the task list, it's `null` if the task has no runs. In a single task, it's omitted if the task has no runs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("lastRunStartedAt")] + public global::System.DateTime? LastRunStartedAt { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,13 +30,18 @@ public sealed partial class TaskStats /// Initializes a new instance of the class. /// /// + /// + /// Time when the last run of the task started. In the task list, it's `null` if the task has no runs. In a single task, it's omitted if the task has no runs. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TaskStats( - int? totalRuns) + int? totalRuns, + global::System.DateTime? lastRunStartedAt) { this.TotalRuns = totalRuns; + this.LastRunStartedAt = lastRunStartedAt; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.Json.g.cs new file mode 100644 index 00000000..ba4372ba --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UpdateBuildOnPushRequest + { + /// + /// 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.UpdateBuildOnPushRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UpdateBuildOnPushRequest), + jsonSerializerContext) as global::Apify.UpdateBuildOnPushRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UpdateBuildOnPushRequest? 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.UpdateBuildOnPushRequest? 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.UpdateBuildOnPushRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UpdateBuildOnPushRequest; + } + + /// + /// 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.UpdateBuildOnPushRequest.g.cs b/src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.g.cs new file mode 100644 index 00000000..3f35e6f3 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UpdateBuildOnPushRequest.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class UpdateBuildOnPushRequest + { + /// + /// The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID
+ /// of a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProviderId { get; set; } + + /// + /// `true` registers the push webhook so that pushes to the repository build the version; `false` turns it off. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { 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. + /// + /// + /// The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID
+ /// of a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint. + /// + /// + /// `true` registers the push webhook so that pushes to the repository build the version; `false` turns it off. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateBuildOnPushRequest( + string providerId, + bool enabled) + { + this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); + this.Enabled = enabled; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateBuildOnPushRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs index 5bbd32ed..ee39e54c 100644 --- a/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPlan.g.cs @@ -164,6 +164,75 @@ public sealed partial class UserPlan [global::System.Text.Json.Serialization.JsonPropertyName("planPricing")] public object? PlanPricing { get; set; } + /// + /// Version of the plan definition. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("planVersion")] + public double? PlanVersion { get; set; } + + /// + /// ID of the legacy plan this plan was migrated from. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("legacyPlanId")] + public string? LegacyPlanId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("planTags")] + public global::System.Collections.Generic.IList? PlanTags { get; set; } + + /// + /// Mid-cycle overage threshold above which the user is billed for the current-cycle overage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("overageThresholdUsd")] + public double? OverageThresholdUsd { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxMonthlyUnblockerUnits")] + public int? MaxMonthlyUnblockerUnits { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxPublicActorTaskCount")] + public int? MaxPublicActorTaskCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxPublicActorTaskCountPerActor")] + public int? MaxPublicActorTaskCountPerActor { get; set; } + + /// + /// If set, the plan can be subscribed only in this billing interval. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("forceBillingInterval")] + public string? ForceBillingInterval { get; set; } + + /// + /// Hours of personalized support with Apify engineers included in the plan, as `Nh/P`: `N` hours per period
+ /// `P`, where `P` is `M` (monthly), `Q` (quarterly), `B` (every 6 months) or `A` (annually), for example `1h/M`.
+ /// `null` or missing means the plan includes no personalized support. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("personalizedSupport")] + public string? PersonalizedSupport { get; set; } + + /// + /// Level of monitoring services included in the plan. `null` or missing means the plan includes no monitoring service. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("monitoringLevel")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Apify.JsonConverters.UserPlanMonitoringLevelJsonConverter))] + public global::Apify.UserPlanMonitoringLevel? MonitoringLevel { get; set; } + + /// + /// Marks the user as a paying customer even without a subscription. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isPayingCustomer")] + public bool? IsPayingCustomer { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -207,6 +276,33 @@ public sealed partial class UserPlan /// /// Pricing details for this plan. /// + /// + /// Version of the plan definition. + /// + /// + /// ID of the legacy plan this plan was migrated from. + /// + /// + /// + /// Mid-cycle overage threshold above which the user is billed for the current-cycle overage. + /// + /// + /// + /// + /// + /// If set, the plan can be subscribed only in this billing interval. + /// + /// + /// Hours of personalized support with Apify engineers included in the plan, as `Nh/P`: `N` hours per period
+ /// `P`, where `P` is `M` (monthly), `Q` (quarterly), `B` (every 6 months) or `A` (annually), for example `1h/M`.
+ /// `null` or missing means the plan includes no personalized support. + /// + /// + /// Level of monitoring services included in the plan. `null` or missing means the plan includes no monitoring service. + /// + /// + /// Marks the user as a paying customer even without a subscription. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -235,7 +331,18 @@ public UserPlan( int? apiRateLimitBoosts, int? maxScheduleCount, int? maxConcurrentActorRuns, - object? planPricing) + object? planPricing, + double? planVersion, + string? legacyPlanId, + global::System.Collections.Generic.IList? planTags, + double? overageThresholdUsd, + int? maxMonthlyUnblockerUnits, + int? maxPublicActorTaskCount, + int? maxPublicActorTaskCountPerActor, + string? forceBillingInterval, + string? personalizedSupport, + global::Apify.UserPlanMonitoringLevel? monitoringLevel, + bool? isPayingCustomer) { this.Id = id; this.Description = description; @@ -262,6 +369,17 @@ public UserPlan( this.MaxScheduleCount = maxScheduleCount; this.MaxConcurrentActorRuns = maxConcurrentActorRuns; this.PlanPricing = planPricing; + this.PlanVersion = planVersion; + this.LegacyPlanId = legacyPlanId; + this.PlanTags = planTags; + this.OverageThresholdUsd = overageThresholdUsd; + this.MaxMonthlyUnblockerUnits = maxMonthlyUnblockerUnits; + this.MaxPublicActorTaskCount = maxPublicActorTaskCount; + this.MaxPublicActorTaskCountPerActor = maxPublicActorTaskCountPerActor; + this.ForceBillingInterval = forceBillingInterval; + this.PersonalizedSupport = personalizedSupport; + this.MonitoringLevel = monitoringLevel; + this.IsPayingCustomer = isPayingCustomer; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.UserPlanMonitoringLevel.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPlanMonitoringLevel.g.cs new file mode 100644 index 00000000..ede1e7a4 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UserPlanMonitoringLevel.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Level of monitoring services included in the plan. `null` or missing means the plan includes no monitoring service. + /// + public enum UserPlanMonitoringLevel + { + /// + /// + /// + Standard, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UserPlanMonitoringLevelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UserPlanMonitoringLevel value) + { + return value switch + { + UserPlanMonitoringLevel.Standard => "STANDARD", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UserPlanMonitoringLevel? ToEnum(string value) + { + return value switch + { + "STANDARD" => UserPlanMonitoringLevel.Standard, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs index 3d6cde87..1a81c5fa 100644 --- a/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.UserPrivateInfo.g.cs @@ -28,13 +28,13 @@ public sealed partial class UserPrivateInfo public global::Apify.UserProfile? Profile { get; set; } /// - /// + /// Primary email of the user. It is `null` when the email is not verified. /// [global::System.Text.Json.Serialization.JsonPropertyName("email")] public string? Email { get; set; } /// - /// + /// Proxy access info. Omitted when the user has no access to Apify Proxy. /// [global::System.Text.Json.Serialization.JsonPropertyName("proxy")] public global::Apify.ProxyResource? Proxy { get; set; } @@ -63,6 +63,12 @@ public sealed partial class UserPrivateInfo [global::System.Text.Json.Serialization.JsonPropertyName("isPaying")] public bool? IsPaying { get; set; } + /// + /// ID of the user who owns the organization. Present only for organization accounts. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("organizationOwnerUserId")] + public string? OrganizationOwnerUserId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -75,12 +81,19 @@ public sealed partial class UserPrivateInfo /// /// /// - /// - /// + /// + /// Primary email of the user. It is `null` when the email is not verified. + /// + /// + /// Proxy access info. Omitted when the user has no access to Apify Proxy. + /// /// /// /// /// + /// + /// ID of the user who owns the organization. Present only for organization accounts. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -93,7 +106,8 @@ public UserPrivateInfo( global::Apify.UserPlan? plan, global::Apify.EffectivePlatformFeatures? effectivePlatformFeatures, global::System.DateTime? createdAt, - bool? isPaying) + bool? isPaying, + string? organizationOwnerUserId) { this.Id = id; this.Username = username ?? throw new global::System.ArgumentNullException(nameof(username)); @@ -104,6 +118,7 @@ public UserPrivateInfo( this.EffectivePlatformFeatures = effectivePlatformFeatures; this.CreatedAt = createdAt; this.IsPaying = isPaying; + this.OrganizationOwnerUserId = organizationOwnerUserId; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.Json.g.cs new file mode 100644 index 00000000..3f8adc73 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class UsersLimitsPutResponse + { + /// + /// 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.UsersLimitsPutResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.UsersLimitsPutResponse), + jsonSerializerContext) as global::Apify.UsersLimitsPutResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.UsersLimitsPutResponse? 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.UsersLimitsPutResponse? 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.UsersLimitsPutResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.UsersLimitsPutResponse; + } + + /// + /// 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.UsersLimitsPutResponse.g.cs b/src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.g.cs new file mode 100644 index 00000000..1a5fcef7 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.UsersLimitsPutResponse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// + /// + public sealed partial class UsersLimitsPutResponse + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.Version.g.cs b/src/libs/Apify/Generated/Apify.Models.Version.g.cs index eb346025..54960299 100644 --- a/src/libs/Apify/Generated/Apify.Models.Version.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.Version.g.cs @@ -63,6 +63,24 @@ public sealed partial class Version [global::System.Text.Json.Serialization.JsonPropertyName("gitHubGistUrl")] public string? GitHubGistUrl { get; set; } + /// + /// ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("githubWebhookId")] + public int? GithubWebhookId { get; set; } + + /// + /// ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("gitlabWebhookId")] + public int? GitlabWebhookId { get; set; } + + /// + /// ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bitbucketWebhookId")] + public string? BitbucketWebhookId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -99,6 +117,15 @@ public sealed partial class Version /// /// URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. /// + /// + /// ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository. + /// + /// + /// ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository. + /// + /// + /// ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -111,7 +138,10 @@ public Version( global::System.Collections.Generic.IList>? sourceFiles, string? gitRepoUrl, string? tarballUrl, - string? gitHubGistUrl) + string? gitHubGistUrl, + int? githubWebhookId, + int? gitlabWebhookId, + string? bitbucketWebhookId) { this.VersionNumber = versionNumber ?? throw new global::System.ArgumentNullException(nameof(versionNumber)); this.SourceType = sourceType; @@ -122,6 +152,9 @@ public Version( this.GitRepoUrl = gitRepoUrl; this.TarballUrl = tarballUrl; this.GitHubGistUrl = gitHubGistUrl; + this.GithubWebhookId = githubWebhookId; + this.GitlabWebhookId = gitlabWebhookId; + this.BitbucketWebhookId = bitbucketWebhookId; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.Json.g.cs new file mode 100644 index 00000000..38569518 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookDatasetTransformation + { + /// + /// 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.WebhookDatasetTransformation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookDatasetTransformation), + jsonSerializerContext) as global::Apify.WebhookDatasetTransformation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookDatasetTransformation? 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.WebhookDatasetTransformation? 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.WebhookDatasetTransformation), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookDatasetTransformation; + } + + /// + /// 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.WebhookDatasetTransformation.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.g.cs new file mode 100644 index 00000000..bf1b7a57 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDatasetTransformation.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Selects which dataset item fields are included in the output. + /// + public sealed partial class WebhookDatasetTransformation + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fields")] + public global::System.Collections.Generic.IList? Fields { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("omit")] + public global::System.Collections.Generic.IList? Omit { 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 WebhookDatasetTransformation( + global::System.Collections.Generic.IList? fields, + global::System.Collections.Generic.IList? omit) + { + this.Fields = fields; + this.Omit = omit; + } + + /// + /// Initializes a new instance of the class. + /// + public WebhookDatasetTransformation() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCall.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCall.g.cs index 0bb91346..897d0ec6 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCall.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCall.g.cs @@ -39,6 +39,12 @@ public sealed partial class WebhookDispatchCall [global::System.Text.Json.Serialization.JsonPropertyName("responseBody")] public string? ResponseBody { get; set; } + /// + /// Response of the Slack `chat.postMessage` call. Present only for successful calls of `SLACK_MESSAGE` webhooks. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("debugPostMessage")] + public object? DebugPostMessage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -55,6 +61,9 @@ public sealed partial class WebhookDispatchCall /// /// Example: {"foo": "bar"} /// + /// + /// Response of the Slack `chat.postMessage` call. Present only for successful calls of `SLACK_MESSAGE` webhooks. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -63,13 +72,15 @@ public WebhookDispatchCall( global::System.DateTime? finishedAt, string? errorMessage, int? responseStatus, - string? responseBody) + string? responseBody, + object? debugPostMessage) { this.StartedAt = startedAt; this.FinishedAt = finishedAt; this.ErrorMessage = errorMessage; this.ResponseStatus = responseStatus; this.ResponseBody = responseBody; + this.DebugPostMessage = debugPostMessage; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.Json.g.cs new file mode 100644 index 00000000..9c15d055 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookDispatchCallDebugPostMessage + { + /// + /// 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.WebhookDispatchCallDebugPostMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookDispatchCallDebugPostMessage), + jsonSerializerContext) as global::Apify.WebhookDispatchCallDebugPostMessage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookDispatchCallDebugPostMessage? 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.WebhookDispatchCallDebugPostMessage? 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.WebhookDispatchCallDebugPostMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookDispatchCallDebugPostMessage; + } + + /// + /// 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.WebhookDispatchCallDebugPostMessage.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.g.cs new file mode 100644 index 00000000..a2f289b1 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchCallDebugPostMessage.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Response of the Slack `chat.postMessage` call. Present only for successful calls of `SLACK_MESSAGE` webhooks. + /// + public sealed partial class WebhookDispatchCallDebugPostMessage + { + + /// + /// 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(); + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookDispatchWebhookSummary.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchWebhookSummary.g.cs index 7625ec44..5f0b8386 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookDispatchWebhookSummary.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookDispatchWebhookSummary.g.cs @@ -8,6 +8,12 @@ namespace Apify /// public sealed partial class WebhookDispatchWebhookSummary { + /// + /// ID of the webhook. The API returns it under `_id`, not `id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("_id")] + public string? Id { get; set; } + /// /// /// @@ -32,6 +38,36 @@ public sealed partial class WebhookDispatchWebhookSummary [global::System.Text.Json.Serialization.JsonPropertyName("isAdHoc")] public bool? IsAdHoc { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isApifyIntegration")] + public bool? IsApifyIntegration { get; set; } + + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slackMessage")] + public global::Apify.WebhookSlackMessage? SlackMessage { get; set; } + + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleMail")] + public global::Apify.WebhookGoogleMail? GoogleMail { get; set; } + + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleDrive")] + public global::Apify.WebhookGoogleDrive? GoogleDrive { get; set; } + + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("githubIssue")] + public global::Apify.WebhookGithubIssue? GithubIssue { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,25 +77,53 @@ public sealed partial class WebhookDispatchWebhookSummary /// /// Initializes a new instance of the class. /// + /// + /// ID of the webhook. The API returns it under `_id`, not `id`. + /// /// /// /// /// URL of the HTTP request sent by the webhook. It is `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications). /// /// + /// + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebhookDispatchWebhookSummary( + string? id, string? actionType, global::Apify.WebhookCondition? condition, string? requestUrl, - bool? isAdHoc) + bool? isAdHoc, + bool? isApifyIntegration, + global::Apify.WebhookSlackMessage? slackMessage, + global::Apify.WebhookGoogleMail? googleMail, + global::Apify.WebhookGoogleDrive? googleDrive, + global::Apify.WebhookGithubIssue? githubIssue) { + this.Id = id; this.ActionType = actionType; this.Condition = condition; this.RequestUrl = requestUrl; this.IsAdHoc = isAdHoc; + this.IsApifyIntegration = isApifyIntegration; + this.SlackMessage = slackMessage; + this.GoogleMail = googleMail; + this.GoogleDrive = googleDrive; + this.GithubIssue = githubIssue; } /// diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.Json.g.cs new file mode 100644 index 00000000..46b153c9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookGithubIssue + { + /// + /// 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.WebhookGithubIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookGithubIssue), + jsonSerializerContext) as global::Apify.WebhookGithubIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookGithubIssue? 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.WebhookGithubIssue? 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.WebhookGithubIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookGithubIssue; + } + + /// + /// 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.WebhookGithubIssue.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.g.cs new file mode 100644 index 00000000..bc3fdf46 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGithubIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Apify +{ + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// + public sealed partial class WebhookGithubIssue + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userIntegrationId")] + public string? UserIntegrationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("repository")] + public string? Repository { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("body")] + public string? Body { 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 WebhookGithubIssue( + string? userIntegrationId, + string? repository, + string? title, + string? body) + { + this.UserIntegrationId = userIntegrationId; + this.Repository = repository; + this.Title = title; + this.Body = body; + } + + /// + /// Initializes a new instance of the class. + /// + public WebhookGithubIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.Json.g.cs new file mode 100644 index 00000000..25503d03 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookGoogleDrive + { + /// + /// 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.WebhookGoogleDrive? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookGoogleDrive), + jsonSerializerContext) as global::Apify.WebhookGoogleDrive; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookGoogleDrive? 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.WebhookGoogleDrive? 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.WebhookGoogleDrive), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookGoogleDrive; + } + + /// + /// 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.WebhookGoogleDrive.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.g.cs new file mode 100644 index 00000000..8fd4741b --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleDrive.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + public sealed partial class WebhookGoogleDrive + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userIntegrationId")] + public string? UserIntegrationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + public string? Format { get; set; } + + /// + /// Selects which dataset item fields are included in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transformation")] + public global::Apify.WebhookDatasetTransformation? Transformation { 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. + /// + /// + /// + /// + /// + /// Selects which dataset item fields are included in the output. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WebhookGoogleDrive( + string? userIntegrationId, + string? filename, + string? format, + global::Apify.WebhookDatasetTransformation? transformation) + { + this.UserIntegrationId = userIntegrationId; + this.Filename = filename; + this.Format = format; + this.Transformation = transformation; + } + + /// + /// Initializes a new instance of the class. + /// + public WebhookGoogleDrive() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.Json.g.cs new file mode 100644 index 00000000..dc8c20a9 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookGoogleMail + { + /// + /// 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.WebhookGoogleMail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookGoogleMail), + jsonSerializerContext) as global::Apify.WebhookGoogleMail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookGoogleMail? 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.WebhookGoogleMail? 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.WebhookGoogleMail), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookGoogleMail; + } + + /// + /// 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.WebhookGoogleMail.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.g.cs new file mode 100644 index 00000000..cd61c7e2 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookGoogleMail.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + public sealed partial class WebhookGoogleMail + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userIntegrationId")] + public string? UserIntegrationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("emailTo")] + public global::System.Collections.Generic.IList? EmailTo { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("subject")] + public string? Subject { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("body")] + public string? Body { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attachmentFormat")] + public string? AttachmentFormat { get; set; } + + /// + /// Selects which dataset item fields are included in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attachmentTransformation")] + public global::Apify.WebhookDatasetTransformation? AttachmentTransformation { 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. + /// + /// + /// + /// + /// + /// + /// + /// Selects which dataset item fields are included in the output. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public WebhookGoogleMail( + string? userIntegrationId, + global::System.Collections.Generic.IList? emailTo, + string? subject, + string? body, + string? attachmentFormat, + global::Apify.WebhookDatasetTransformation? attachmentTransformation) + { + this.UserIntegrationId = userIntegrationId; + this.EmailTo = emailTo; + this.Subject = subject; + this.Body = body; + this.AttachmentFormat = attachmentFormat; + this.AttachmentTransformation = attachmentTransformation; + } + + /// + /// Initializes a new instance of the class. + /// + public WebhookGoogleMail() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs index 2f66dd5f..51f97008 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookListItem.g.cs @@ -95,11 +95,52 @@ public sealed partial class WebhookListItem public required bool DoNotRetry { get; set; } /// - /// + /// URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications). /// [global::System.Text.Json.Serialization.JsonPropertyName("requestUrl")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string RequestUrl { get; set; } + public string? RequestUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("headersTemplate")] + public string? HeadersTemplate { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slackMessage")] + public global::Apify.WebhookSlackMessage? SlackMessage { get; set; } + + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleMail")] + public global::Apify.WebhookGoogleMail? GoogleMail { get; set; } + + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleDrive")] + public global::Apify.WebhookGoogleDrive? GoogleDrive { get; set; } + + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("githubIssue")] + public global::Apify.WebhookGithubIssue? GithubIssue { get; set; } /// /// @@ -130,12 +171,29 @@ public sealed partial class WebhookListItem /// /// /// - /// /// /// /// /// /// + /// + /// URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications). + /// + /// + /// + /// + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// /// /// #if NET7_0_OR_GREATER @@ -150,12 +208,19 @@ public WebhookListItem( global::Apify.WebhookCondition condition, bool ignoreSslErrors, bool doNotRetry, - string requestUrl, bool? isAdHoc, bool? isApifyIntegration, bool? isEnabled, string? actionType, bool? shouldInterpolateStrings, + string? requestUrl, + string? headersTemplate, + string? title, + string? description, + global::Apify.WebhookSlackMessage? slackMessage, + global::Apify.WebhookGoogleMail? googleMail, + global::Apify.WebhookGoogleDrive? googleDrive, + global::Apify.WebhookGithubIssue? githubIssue, global::Apify.WebhookLastDispatch? lastDispatch, global::Apify.WebhookStats? stats) { @@ -172,7 +237,14 @@ public WebhookListItem( this.Condition = condition ?? throw new global::System.ArgumentNullException(nameof(condition)); this.IgnoreSslErrors = ignoreSslErrors; this.DoNotRetry = doNotRetry; - this.RequestUrl = requestUrl ?? throw new global::System.ArgumentNullException(nameof(requestUrl)); + this.RequestUrl = requestUrl; + this.HeadersTemplate = headersTemplate; + this.Title = title; + this.Description = description; + this.SlackMessage = slackMessage; + this.GoogleMail = googleMail; + this.GoogleDrive = googleDrive; + this.GithubIssue = githubIssue; this.LastDispatch = lastDispatch; this.Stats = stats; } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs index b486b071..4fb98dfa 100644 --- a/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs +++ b/src/libs/Apify/Generated/Apify.Models.WebhookResource.g.cs @@ -42,6 +42,24 @@ public sealed partial class WebhookResource [global::System.Text.Json.Serialization.JsonPropertyName("isAdHoc")] public bool? IsAdHoc { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Type of action the webhook performs: `HTTP_REQUEST`, `SLACK_MESSAGE`, `GOOGLE_MAIL`, `GOOGLE_DRIVE` or `GITHUB_ISSUE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actionType")] + public string? ActionType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("isApifyIntegration")] + public bool? IsApifyIntegration { get; set; } + /// /// /// @@ -93,12 +111,42 @@ public sealed partial class WebhookResource [global::System.Text.Json.Serialization.JsonPropertyName("headersTemplate")] public string? HeadersTemplate { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slackMessage")] + public global::Apify.WebhookSlackMessage? SlackMessage { get; set; } + + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleMail")] + public global::Apify.WebhookGoogleMail? GoogleMail { get; set; } + + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleDrive")] + public global::Apify.WebhookGoogleDrive? GoogleDrive { get; set; } + + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("githubIssue")] + public global::Apify.WebhookGithubIssue? GithubIssue { get; set; } + /// /// /// @@ -128,6 +176,11 @@ public sealed partial class WebhookResource /// /// /// + /// + /// + /// Type of action the webhook performs: `HTTP_REQUEST`, `SLACK_MESSAGE`, `GOOGLE_MAIL`, `GOOGLE_DRIVE` or `GITHUB_ISSUE`. + /// + /// /// /// /// @@ -135,7 +188,20 @@ public sealed partial class WebhookResource /// /// /// + /// /// + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + /// + /// Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. + /// + /// + /// Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. + /// + /// + /// GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. + /// /// /// #if NET7_0_OR_GREATER @@ -150,12 +216,20 @@ public WebhookResource( global::Apify.WebhookCondition condition, bool ignoreSslErrors, bool? isAdHoc, + bool? isEnabled, + string? actionType, + bool? isApifyIntegration, bool? shouldInterpolateStrings, bool? doNotRetry, string? requestUrl, string? payloadTemplate, string? headersTemplate, + string? title, string? description, + global::Apify.WebhookSlackMessage? slackMessage, + global::Apify.WebhookGoogleMail? googleMail, + global::Apify.WebhookGoogleDrive? googleDrive, + global::Apify.WebhookGithubIssue? githubIssue, global::Apify.WebhookLastDispatch? lastDispatch, global::Apify.WebhookStats? stats) { @@ -164,6 +238,9 @@ public WebhookResource( this.ModifiedAt = modifiedAt; this.UserId = userId ?? throw new global::System.ArgumentNullException(nameof(userId)); this.IsAdHoc = isAdHoc; + this.IsEnabled = isEnabled; + this.ActionType = actionType; + this.IsApifyIntegration = isApifyIntegration; this.ShouldInterpolateStrings = shouldInterpolateStrings; this.EventTypes = eventTypes ?? throw new global::System.ArgumentNullException(nameof(eventTypes)); this.Condition = condition ?? throw new global::System.ArgumentNullException(nameof(condition)); @@ -172,7 +249,12 @@ public WebhookResource( this.RequestUrl = requestUrl; this.PayloadTemplate = payloadTemplate; this.HeadersTemplate = headersTemplate; + this.Title = title; this.Description = description; + this.SlackMessage = slackMessage; + this.GoogleMail = googleMail; + this.GoogleDrive = googleDrive; + this.GithubIssue = githubIssue; this.LastDispatch = lastDispatch; this.Stats = stats; } diff --git a/src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.Json.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.Json.g.cs new file mode 100644 index 00000000..d88b1304 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Apify +{ + public sealed partial class WebhookSlackMessage + { + /// + /// 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.WebhookSlackMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Apify.WebhookSlackMessage), + jsonSerializerContext) as global::Apify.WebhookSlackMessage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Apify.WebhookSlackMessage? 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.WebhookSlackMessage? 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.WebhookSlackMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Apify.WebhookSlackMessage; + } + + /// + /// 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.WebhookSlackMessage.g.cs b/src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.g.cs new file mode 100644 index 00000000..ada5aedd --- /dev/null +++ b/src/libs/Apify/Generated/Apify.Models.WebhookSlackMessage.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Apify +{ + /// + /// Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. + /// + public sealed partial class WebhookSlackMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userIntegrationId")] + public string? UserIntegrationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("channelId")] + public string? ChannelId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messageTemplate")] + public string? MessageTemplate { 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 WebhookSlackMessage( + string? userIntegrationId, + string? channelId, + string? messageTemplate) + { + this.UserIntegrationId = userIntegrationId; + this.ChannelId = channelId; + this.MessageTemplate = messageTemplate; + } + + /// + /// Initializes a new instance of the class. + /// + public WebhookSlackMessage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs index 788f1bb3..f97fb243 100644 --- a/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Schedules.JsonSerializerContext.g.cs @@ -24,9 +24,12 @@ 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.ActorPermissionLevel), TypeInfoPropertyName = "ActorPermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.IntegrationTracking))] [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.ScheduleNotifications))] [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")] @@ -39,7 +42,6 @@ namespace Apify [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::Apify.ListOfSchedulesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleNotifications))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionRunActorTask))] @@ -48,6 +50,8 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleCreateActionDiscriminatorType), TypeInfoPropertyName = "ScheduleCreateActionDiscriminatorType2")] [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.ScheduleUiState))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleUiStateData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActor))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleActionRunActorTask))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleAction), TypeInfoPropertyName = "ScheduleAction2")] @@ -65,6 +69,7 @@ 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.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ActorPermissionLevel?), TypeInfoPropertyName = "NullableActorPermissionLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemAction?), TypeInfoPropertyName = "NullableScheduleListItemAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ScheduleListItemActionDiscriminatorType?), TypeInfoPropertyName = "NullableScheduleListItemActionDiscriminatorType2")] @@ -135,6 +140,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ScheduleJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -161,6 +167,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Apify.ErrorType?) + || typeToConvert == typeof(global::Apify.ActorPermissionLevel) + + || typeToConvert == typeof(global::Apify.ActorPermissionLevel?) + || typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType) || typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType?) @@ -188,6 +198,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel)) + { + return new global::Apify.JsonConverters.ActorPermissionLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.ActorPermissionLevel?)) + { + return new global::Apify.JsonConverters.ActorPermissionLevelNullableJsonConverter(); + } + if (typeToConvert == typeof(global::Apify.ScheduleListItemActionDiscriminatorType)) { return new global::Apify.JsonConverters.ScheduleListItemActionDiscriminatorTypeJsonConverter(); diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.ScheduleInvokePost.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.ScheduleInvokePost.g.cs new file mode 100644 index 00000000..04020258 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.ScheduleInvokePost.g.cs @@ -0,0 +1,652 @@ + +#nullable enable + +namespace Apify +{ + public partial class SchedulesClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_ScheduleInvokePostSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_ScheduleInvokePostSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_ScheduleInvokePostSecurityRequirement0, + }; + partial void PrepareScheduleInvokePostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string scheduleId); + partial void PrepareScheduleInvokePostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string scheduleId); + partial void ProcessScheduleInvokePostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessScheduleInvokePostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Invoke schedule
+ /// Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.
+ /// The invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's
+ /// `lastRunAt` or `nextRunAt`. The response doesn't contain the started runs. + ///
+ /// + /// Example: asdLZtadYvn4mBZmm + /// + /// 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 ScheduleInvokePostAsync( + string scheduleId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ScheduleInvokePostAsResponseAsync( + scheduleId: scheduleId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Invoke schedule
+ /// Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.
+ /// The invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's
+ /// `lastRunAt` or `nextRunAt`. The response doesn't contain the started runs. + ///
+ /// + /// Example: asdLZtadYvn4mBZmm + /// + /// 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> ScheduleInvokePostAsResponseAsync( + string scheduleId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareScheduleInvokePostArguments( + httpClient: HttpClient, + scheduleId: ref scheduleId); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ScheduleInvokePostSecurityRequirements, + operationName: "ScheduleInvokePostAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/schedules/{scheduleId}/invoke", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareScheduleInvokePostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + scheduleId: scheduleId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ScheduleInvokePost", + methodName: "ScheduleInvokePostAsync", + pathTemplate: "$\"/v2/schedules/{scheduleId}/invoke\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ScheduleInvokePost", + methodName: "ScheduleInvokePostAsync", + pathTemplate: "$\"/v2/schedules/{scheduleId}/invoke\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ScheduleInvokePost", + methodName: "ScheduleInvokePostAsync", + pathTemplate: "$\"/v2/schedules/{scheduleId}/invoke\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessScheduleInvokePostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ScheduleInvokePost", + methodName: "ScheduleInvokePostAsync", + pathTemplate: "$\"/v2/schedules/{scheduleId}/invoke\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ScheduleInvokePost", + methodName: "ScheduleInvokePostAsync", + pathTemplate: "$\"/v2/schedules/{scheduleId}/invoke\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessScheduleInvokePostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs index 90b76b19..95abea12 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulePut.g.cs @@ -54,7 +54,7 @@ partial void ProcessSchedulePutResponseContent( /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: asdLZtadYvn4mBZmm @@ -91,7 +91,7 @@ partial void ProcessSchedulePutResponseContent( /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: asdLZtadYvn4mBZmm @@ -808,7 +808,7 @@ partial void ProcessSchedulePutResponseContent( /// header!**
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: asdLZtadYvn4mBZmm diff --git a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs index 606ccc8c..188e1369 100644 --- a/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs +++ b/src/libs/Apify/Generated/Apify.SchedulesClient.SchedulesPost.g.cs @@ -48,7 +48,7 @@ partial void ProcessSchedulesPostResponseContent( /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -76,7 +76,7 @@ partial void ProcessSchedulesPostResponseContent( /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -783,7 +783,7 @@ partial void ProcessSchedulesPostResponseContent( /// The request needs to specify the `Content-Type: application/json` HTTP header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// diff --git a/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs index 279992f3..6742136b 100644 --- a/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageDatasets.JsonSerializerContext.g.cs @@ -122,6 +122,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfDatasetsJsonConverter()); 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.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Apify.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs index 7fa382df..47153fad 100644 --- a/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageKeyValueStores.JsonSerializerContext.g.cs @@ -37,9 +37,11 @@ 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.StorageOwnership), TypeInfoPropertyName = "StorageOwnership2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreListStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.KeyValueStoreListItem))] [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")] @@ -56,7 +58,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 { } @@ -107,6 +109,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfKeyValueStoresJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs index fe04c619..30b03447 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueues.JsonSerializerContext.g.cs @@ -51,6 +51,7 @@ 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.RequestQueueListStats))] [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))] @@ -133,6 +134,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfRequestQueuesJsonConverter()); 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.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::Apify.JsonConverters.AllOfJsonConverter()); diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs index 0ba05fe2..5c9cc425 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequests.JsonSerializerContext.g.cs @@ -102,6 +102,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.RequestWithoutIdJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs index 361c8497..bed24e61 100644 --- a/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.StorageRequestQueuesRequestsLocks.JsonSerializerContext.g.cs @@ -19,6 +19,7 @@ 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(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [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))] @@ -92,6 +93,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs index 43e14f1f..f636a12f 100644 --- a/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Store.JsonSerializerContext.g.cs @@ -29,7 +29,13 @@ 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::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CurrentPricingInfoTieredPricing2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActor))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActorInputSchema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.StoreActorInputSchemaProperties2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] [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))] @@ -42,10 +48,12 @@ 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.ActorNotice?), TypeInfoPropertyName = "NullableActorNotice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.OneOf>?), TypeInfoPropertyName = "NullableOneOfStringIListString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfStoreActors?), TypeInfoPropertyName = "NullableListOfStoreActors2")] [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::Apify.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StoreSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -97,6 +105,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfStoreActorsJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs b/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs index 6b17fc98..794ed7b0 100644 --- a/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs +++ b/src/libs/Apify/Generated/Apify.StoreClient.StoreGet.g.cs @@ -36,7 +36,8 @@ partial void PrepareStoreGetArguments( ref global::Apify.StoreGetPricingModel? pricingModel, ref bool? allowsAgenticUsers, ref global::Apify.StoreGetResponseFormat? responseFormat, - ref bool? includeUnrunnableActors); + ref bool? includeUnrunnableActors, + ref bool? includeInputSchema); partial void PrepareStoreGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, @@ -49,7 +50,8 @@ partial void PrepareStoreGetRequest( global::Apify.StoreGetPricingModel? pricingModel, bool? allowsAgenticUsers, global::Apify.StoreGetResponseFormat? responseFormat, - bool? includeUnrunnableActors); + bool? includeUnrunnableActors, + bool? includeInputSchema); partial void ProcessStoreGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -100,6 +102,10 @@ partial void ProcessStoreGetResponseContent( /// Default Value: false
/// Example: true /// + /// + /// Default Value: false
+ /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -114,6 +120,7 @@ partial void ProcessStoreGetResponseContent( bool? allowsAgenticUsers = default, global::Apify.StoreGetResponseFormat? responseFormat = default, bool? includeUnrunnableActors = default, + bool? includeInputSchema = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -128,6 +135,7 @@ partial void ProcessStoreGetResponseContent( allowsAgenticUsers: allowsAgenticUsers, responseFormat: responseFormat, includeUnrunnableActors: includeUnrunnableActors, + includeInputSchema: includeInputSchema, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -175,6 +183,10 @@ partial void ProcessStoreGetResponseContent( /// Default Value: false
/// Example: true /// + /// + /// Default Value: false
+ /// Example: true + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -189,6 +201,7 @@ partial void ProcessStoreGetResponseContent( bool? allowsAgenticUsers = default, global::Apify.StoreGetResponseFormat? responseFormat = default, bool? includeUnrunnableActors = default, + bool? includeInputSchema = default, global::Apify.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -205,7 +218,8 @@ partial void ProcessStoreGetResponseContent( pricingModel: ref pricingModel, allowsAgenticUsers: ref allowsAgenticUsers, responseFormat: ref responseFormat, - includeUnrunnableActors: ref includeUnrunnableActors); + includeUnrunnableActors: ref includeUnrunnableActors, + includeInputSchema: ref includeInputSchema); var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( @@ -244,6 +258,7 @@ partial void ProcessStoreGetResponseContent( .AddOptionalParameter("allowsAgenticUsers", allowsAgenticUsers?.ToString().ToLowerInvariant()) .AddOptionalParameter("responseFormat", responseFormat?.ToValueString()) .AddOptionalParameter("includeUnrunnableActors", includeUnrunnableActors?.ToString().ToLowerInvariant()) + .AddOptionalParameter("includeInputSchema", includeInputSchema?.ToString().ToLowerInvariant()) ; var __path = __pathBuilder.ToString(); __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -294,7 +309,8 @@ partial void ProcessStoreGetResponseContent( pricingModel: pricingModel, allowsAgenticUsers: allowsAgenticUsers, responseFormat: responseFormat, - includeUnrunnableActors: includeUnrunnableActors); + includeUnrunnableActors: includeUnrunnableActors, + includeInputSchema: includeInputSchema); return __httpRequest; } diff --git a/src/libs/Apify/Generated/Apify.Tools.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Tools.JsonSerializerContext.g.cs index 9f82da9c..002fc1f7 100644 --- a/src/libs/Apify/Generated/Apify.Tools.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Tools.JsonSerializerContext.g.cs @@ -22,8 +22,8 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [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.BrowserInfoResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ErrorType?), TypeInfoPropertyName = "NullableErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] @@ -79,6 +79,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs index 4f6dd68a..eab338ec 100644 --- a/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.ToolsEncoding.JsonSerializerContext.g.cs @@ -76,6 +76,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs index 639ce699..222ff553 100644 --- a/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.Users.JsonSerializerContext.g.cs @@ -32,17 +32,41 @@ namespace Apify [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.UserPlan))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.UserPlanMonitoringLevel), TypeInfoPropertyName = "UserPlanMonitoringLevel2")] [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.UserPrivateInfoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderWorkspace))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderIntegration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderIntegrationProvider), TypeInfoPropertyName = "GitProviderIntegrationProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.ListOfGitProviderIntegrationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoFileEncoding), TypeInfoPropertyName = "GitRepoFileEncoding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.CreateGitRepoRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.RegisterDeploymentKeyResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf), TypeInfoPropertyName = "AnyOfUserPublicInfoResponseUserPrivateInfoResponse2")] [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.UserPlanMonitoringLevel?), TypeInfoPropertyName = "NullableUserPlanMonitoringLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitProviderIntegrationProvider?), TypeInfoPropertyName = "NullableGitProviderIntegrationProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.GitRepoFileEncoding?), TypeInfoPropertyName = "NullableGitRepoFileEncoding2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.AnyOf?), TypeInfoPropertyName = "NullableAnyOfUserPublicInfoResponseUserPrivateInfoResponse2")] [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 UsersSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -92,6 +116,8 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -116,7 +142,19 @@ public override bool CanConvert(global::System.Type typeToConvert) return typeToConvert == typeof(global::Apify.ErrorType) - || typeToConvert == typeof(global::Apify.ErrorType?); + || typeToConvert == typeof(global::Apify.ErrorType?) + + || typeToConvert == typeof(global::Apify.UserPlanMonitoringLevel) + + || typeToConvert == typeof(global::Apify.UserPlanMonitoringLevel?) + + || typeToConvert == typeof(global::Apify.GitProviderIntegrationProvider) + + || typeToConvert == typeof(global::Apify.GitProviderIntegrationProvider?) + + || typeToConvert == typeof(global::Apify.GitRepoFileEncoding) + + || typeToConvert == typeof(global::Apify.GitRepoFileEncoding?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -132,6 +170,36 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::Apify.JsonConverters.ErrorTypeNullableJsonConverter(); } + + if (typeToConvert == typeof(global::Apify.UserPlanMonitoringLevel)) + { + return new global::Apify.JsonConverters.UserPlanMonitoringLevelJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.UserPlanMonitoringLevel?)) + { + return new global::Apify.JsonConverters.UserPlanMonitoringLevelNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.GitProviderIntegrationProvider)) + { + return new global::Apify.JsonConverters.GitProviderIntegrationProviderJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.GitProviderIntegrationProvider?)) + { + return new global::Apify.JsonConverters.GitProviderIntegrationProviderNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.GitRepoFileEncoding)) + { + return new global::Apify.JsonConverters.GitRepoFileEncodingJsonConverter(); + } + + if (typeToConvert == typeof(global::Apify.GitRepoFileEncoding?)) + { + return new global::Apify.JsonConverters.GitRepoFileEncodingNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitCreateRepoPost.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitCreateRepoPost.g.cs new file mode 100644 index 00000000..9862297c --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitCreateRepoPost.g.cs @@ -0,0 +1,797 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_IntegrationsGitCreateRepoPostSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_IntegrationsGitCreateRepoPostSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_IntegrationsGitCreateRepoPostSecurityRequirement0, + }; + partial void PrepareIntegrationsGitCreateRepoPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string providerId, + global::Apify.CreateGitRepoRequest request); + partial void PrepareIntegrationsGitCreateRepoPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string providerId, + global::Apify.CreateGitRepoRequest request); + partial void ProcessIntegrationsGitCreateRepoPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessIntegrationsGitCreateRepoPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// 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 IntegrationsGitCreateRepoPostAsync( + string providerId, + + global::Apify.CreateGitRepoRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await IntegrationsGitCreateRepoPostAsResponseAsync( + providerId: providerId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// 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> IntegrationsGitCreateRepoPostAsResponseAsync( + string providerId, + + global::Apify.CreateGitRepoRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareIntegrationsGitCreateRepoPostArguments( + httpClient: HttpClient, + providerId: ref providerId, + request: request); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_IntegrationsGitCreateRepoPostSecurityRequirements, + operationName: "IntegrationsGitCreateRepoPostAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/integrations/git/{providerId}/create-repo", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareIntegrationsGitCreateRepoPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + providerId: providerId, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitCreateRepoPost", + methodName: "IntegrationsGitCreateRepoPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/create-repo\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitCreateRepoPost", + methodName: "IntegrationsGitCreateRepoPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/create-repo\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitCreateRepoPost", + methodName: "IntegrationsGitCreateRepoPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/create-repo\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessIntegrationsGitCreateRepoPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitCreateRepoPost", + methodName: "IntegrationsGitCreateRepoPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/create-repo\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitCreateRepoPost", + methodName: "IntegrationsGitCreateRepoPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/create-repo\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payload too large - the request body exceeds the size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::Apify.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unsupported media type - the Content-Encoding of the request is not supported. + if ((int)__response.StatusCode == 415) + { + string? __content_415 = null; + global::System.Exception? __exception_415 = null; + global::Apify.ErrorResponse? __value_415 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + else + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_415 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_415 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_415, + responseBody: __content_415, + responseObject: __value_415, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessIntegrationsGitCreateRepoPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.GitRepoResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.GitRepoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create git repository
+ /// Creates a repository through a connected git account and commits the initial files into it, either the given
+ /// `files` or the files of an Actor template archive (`templateArchiveUrl`). + ///
+ /// + /// Example: github-app + /// + /// + /// Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the
+ /// numeric namespace ID. + /// + /// + /// + /// + /// Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`. + /// + /// + /// URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with
+ /// `files`. + /// + /// 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 IntegrationsGitCreateRepoPostAsync( + string providerId, + string workspace, + string repoName, + bool isPrivate, + global::System.Collections.Generic.IList? files = default, + string? templateArchiveUrl = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Apify.CreateGitRepoRequest + { + Workspace = workspace, + RepoName = repoName, + IsPrivate = isPrivate, + Files = files, + TemplateArchiveUrl = templateArchiveUrl, + }; + + return await IntegrationsGitCreateRepoPostAsync( + providerId: providerId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitGet.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitGet.g.cs new file mode 100644 index 00000000..d7e2b5af --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitGet.g.cs @@ -0,0 +1,612 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_IntegrationsGitGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_IntegrationsGitGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_IntegrationsGitGetSecurityRequirement0, + }; + partial void PrepareIntegrationsGitGetArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareIntegrationsGitGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessIntegrationsGitGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessIntegrationsGitGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get git provider integrations
+ /// Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can
+ /// create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left
+ /// out.
+ /// Use the `id` of an integration as the `providerId` in the
+ /// [Create git repository](/api/v2/integrations-git-create-repo-post) and
+ /// [Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints. + ///
+ /// 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 IntegrationsGitGetAsync( + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await IntegrationsGitGetAsResponseAsync( + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get git provider integrations
+ /// Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can
+ /// create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left
+ /// out.
+ /// Use the `id` of an integration as the `providerId` in the
+ /// [Create git repository](/api/v2/integrations-git-create-repo-post) and
+ /// [Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints. + ///
+ /// 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> IntegrationsGitGetAsResponseAsync( + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareIntegrationsGitGetArguments( + httpClient: HttpClient); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_IntegrationsGitGetSecurityRequirements, + operationName: "IntegrationsGitGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: "/v2/integrations/git", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareIntegrationsGitGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitGet", + methodName: "IntegrationsGitGetAsync", + pathTemplate: "\"/v2/integrations/git\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitGet", + methodName: "IntegrationsGitGetAsync", + pathTemplate: "\"/v2/integrations/git\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitGet", + methodName: "IntegrationsGitGetAsync", + pathTemplate: "\"/v2/integrations/git\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessIntegrationsGitGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitGet", + methodName: "IntegrationsGitGetAsync", + pathTemplate: "\"/v2/integrations/git\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitGet", + methodName: "IntegrationsGitGetAsync", + pathTemplate: "\"/v2/integrations/git\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessIntegrationsGitGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.ListOfGitProviderIntegrationsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.ListOfGitProviderIntegrationsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs new file mode 100644 index 00000000..e78fbe8d --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersClient.IntegrationsGitRegisterDeploymentKeyPost.g.cs @@ -0,0 +1,793 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_IntegrationsGitRegisterDeploymentKeyPostSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_IntegrationsGitRegisterDeploymentKeyPostSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_IntegrationsGitRegisterDeploymentKeyPostSecurityRequirement0, + }; + partial void PrepareIntegrationsGitRegisterDeploymentKeyPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string providerId, + global::Apify.RegisterDeploymentKeyRequest request); + partial void PrepareIntegrationsGitRegisterDeploymentKeyPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string providerId, + global::Apify.RegisterDeploymentKeyRequest request); + partial void ProcessIntegrationsGitRegisterDeploymentKeyPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessIntegrationsGitRegisterDeploymentKeyPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// 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 IntegrationsGitRegisterDeploymentKeyPostAsync( + string providerId, + + global::Apify.RegisterDeploymentKeyRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await IntegrationsGitRegisterDeploymentKeyPostAsResponseAsync( + providerId: providerId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// 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> IntegrationsGitRegisterDeploymentKeyPostAsResponseAsync( + string providerId, + + global::Apify.RegisterDeploymentKeyRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareIntegrationsGitRegisterDeploymentKeyPostArguments( + httpClient: HttpClient, + providerId: ref providerId, + request: request); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_IntegrationsGitRegisterDeploymentKeyPostSecurityRequirements, + operationName: "IntegrationsGitRegisterDeploymentKeyPostAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/integrations/git/{providerId}/register-deployment-key", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareIntegrationsGitRegisterDeploymentKeyPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + providerId: providerId, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitRegisterDeploymentKeyPost", + methodName: "IntegrationsGitRegisterDeploymentKeyPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/register-deployment-key\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitRegisterDeploymentKeyPost", + methodName: "IntegrationsGitRegisterDeploymentKeyPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/register-deployment-key\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitRegisterDeploymentKeyPost", + methodName: "IntegrationsGitRegisterDeploymentKeyPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/register-deployment-key\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessIntegrationsGitRegisterDeploymentKeyPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitRegisterDeploymentKeyPost", + methodName: "IntegrationsGitRegisterDeploymentKeyPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/register-deployment-key\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "IntegrationsGitRegisterDeploymentKeyPost", + methodName: "IntegrationsGitRegisterDeploymentKeyPostAsync", + pathTemplate: "$\"/v2/integrations/git/{providerId}/register-deployment-key\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payload too large - the request body exceeds the size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::Apify.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unsupported media type - the Content-Encoding of the request is not supported. + if ((int)__response.StatusCode == 415) + { + string? __content_415 = null; + global::System.Exception? __exception_415 = null; + global::Apify.ErrorResponse? __value_415 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + else + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_415 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_415 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_415, + responseBody: __content_415, + responseObject: __value_415, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessIntegrationsGitRegisterDeploymentKeyPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.RegisterDeploymentKeyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.RegisterDeploymentKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Register deployment key
+ /// Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a
+ /// connected git account, so that Apify can clone the repository when building the Actor.
+ /// You need write access to the Actor. The repository's host must match the provider of the connected account.
+ /// If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another
+ /// repository removes it from the previously linked one. + ///
+ /// + /// Example: github-app + /// + /// + /// ID or `username~name` of the Actor whose deployment key to register. + /// + /// + /// URL of the repository to register the key on. Its host must match the provider. + /// + /// 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 IntegrationsGitRegisterDeploymentKeyPostAsync( + string providerId, + string actorId, + string repoName, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Apify.RegisterDeploymentKeyRequest + { + ActorId = actorId, + RepoName = repoName, + }; + + return await IntegrationsGitRegisterDeploymentKeyPostAsync( + providerId: providerId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs b/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs index 98bbb8bd..c444baa8 100644 --- a/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersClient.UserGet.g.cs @@ -45,7 +45,10 @@ partial void ProcessUserGetResponseContent( /// Get public user data
/// Returns public information about a specific user account, similar to what
/// can be seen on public profile pages (e.g. https://apify.com/apify).
- /// This operation requires no authentication token. + /// This operation requires no authentication token.
+ /// When the request is authenticated with an API token of the requested user account, or with a token
+ /// that impersonates it, the response also contains the private information, the same as in
+ /// [Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it. ///
/// /// Example: HGzIk8z78YcAPEB @@ -53,7 +56,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) @@ -70,7 +73,10 @@ partial void ProcessUserGetResponseContent( /// Get public user data
/// Returns public information about a specific user account, similar to what
/// can be seen on public profile pages (e.g. https://apify.com/apify).
- /// This operation requires no authentication token. + /// This operation requires no authentication token.
+ /// When the request is authenticated with an API token of the requested user account, or with a token
+ /// that impersonates it, the response also contains the private information, the same as in
+ /// [Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it. ///
/// /// Example: HGzIk8z78YcAPEB @@ -78,7 +84,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 +547,9 @@ partial void ProcessUserGetResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Apify.UserPublicInfoResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Apify.AnyOf.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 +579,9 @@ partial void ProcessUserGetResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Apify.UserPublicInfoResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Apify.AnyOf.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 9f2c898f..9cdf17fc 100644 --- a/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.UsersUsage.JsonSerializerContext.g.cs @@ -91,6 +91,7 @@ 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsGet.g.cs b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsGet.g.cs new file mode 100644 index 00000000..63138bcf --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsGet.g.cs @@ -0,0 +1,658 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersUsageClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_UsersLimitsGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_UsersLimitsGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_UsersLimitsGetSecurityRequirement0, + }; + partial void PrepareUsersLimitsGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string userId); + partial void PrepareUsersLimitsGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string userId); + partial void ProcessUsersLimitsGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUsersLimitsGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get user's limits by ID
+ /// Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by
+ /// its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// 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 UsersLimitsGetAsync( + string userId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UsersLimitsGetAsResponseAsync( + userId: userId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get user's limits by ID
+ /// Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by
+ /// its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// 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> UsersLimitsGetAsResponseAsync( + string userId, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareUsersLimitsGetArguments( + httpClient: HttpClient, + userId: ref userId); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersLimitsGetSecurityRequirements, + operationName: "UsersLimitsGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/users/{userId}/limits", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUsersLimitsGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + userId: userId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsGet", + methodName: "UsersLimitsGetAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsGet", + methodName: "UsersLimitsGetAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsGet", + methodName: "UsersLimitsGetAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUsersLimitsGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsGet", + methodName: "UsersLimitsGetAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsGet", + methodName: "UsersLimitsGetAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUsersLimitsGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.AccountLimitsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).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( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsPut.g.cs b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsPut.g.cs new file mode 100644 index 00000000..4c34442a --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersLimitsPut.g.cs @@ -0,0 +1,789 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersUsageClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_UsersLimitsPutSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_UsersLimitsPutSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_UsersLimitsPutSecurityRequirement0, + }; + partial void PrepareUsersLimitsPutArguments( + global::System.Net.Http.HttpClient httpClient, + ref string userId, + global::Apify.UpdateLimitsRequest request); + partial void PrepareUsersLimitsPutRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string userId, + global::Apify.UpdateLimitsRequest request); + partial void ProcessUsersLimitsPutResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUsersLimitsPutResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// 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 UsersLimitsPutAsync( + string userId, + + global::Apify.UpdateLimitsRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UsersLimitsPutAsResponseAsync( + userId: userId, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// 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> UsersLimitsPutAsResponseAsync( + string userId, + + global::Apify.UpdateLimitsRequest request, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUsersLimitsPutArguments( + httpClient: HttpClient, + userId: ref userId, + request: request); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersLimitsPutSecurityRequirements, + operationName: "UsersLimitsPutAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/users/{userId}/limits", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Put, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUsersLimitsPutRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + userId: userId, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsPut", + methodName: "UsersLimitsPutAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsPut", + methodName: "UsersLimitsPutAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsPut", + methodName: "UsersLimitsPutAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUsersLimitsPutResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsPut", + methodName: "UsersLimitsPutAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersLimitsPut", + methodName: "UsersLimitsPutAsync", + pathTemplate: "$\"/v2/users/{userId}/limits\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Payload too large - the request body exceeds the size limit. + if ((int)__response.StatusCode == 413) + { + string? __content_413 = null; + global::System.Exception? __exception_413 = null; + global::Apify.ErrorResponse? __value_413 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + else + { + __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_413 = global::Apify.ErrorResponse.FromJson(__content_413, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_413 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_413, + responseBody: __content_413, + responseObject: __value_413, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unsupported media type - the Content-Encoding of the request is not supported. + if ((int)__response.StatusCode == 415) + { + string? __content_415 = null; + global::System.Exception? __exception_415 = null; + global::Apify.ErrorResponse? __value_415 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + else + { + __content_415 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_415 = global::Apify.ErrorResponse.FromJson(__content_415, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_415 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_415 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_415, + responseBody: __content_415, + responseObject: __value_415, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUsersLimitsPutResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update user's limits by ID
+ /// Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID
+ /// or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// For an organization, you also need the permission to manage the organization. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// If your platform usage in the billing period exceeds the prepaid usage, you will be charged extra. Setting this property you can update your hard limit on monthly platform usage to prevent accidental overage or to limit the extra charges. + /// + /// + /// Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention). + /// + /// 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 UsersLimitsPutAsync( + string userId, + double? maxMonthlyUsageUsd = default, + int? dataRetentionDays = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Apify.UpdateLimitsRequest + { + MaxMonthlyUsageUsd = maxMonthlyUsageUsd, + DataRetentionDays = dataRetentionDays, + }; + + return await UsersLimitsPutAsync( + userId: userId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersUsageMonthlyGet.g.cs b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersUsageMonthlyGet.g.cs new file mode 100644 index 00000000..b73d6272 --- /dev/null +++ b/src/libs/Apify/Generated/Apify.UsersUsageClient.UsersUsageMonthlyGet.g.cs @@ -0,0 +1,678 @@ + +#nullable enable + +namespace Apify +{ + public partial class UsersUsageClient + { + + + private static readonly global::Apify.EndPointSecurityRequirement s_UsersUsageMonthlyGetSecurityRequirement0 = + new global::Apify.EndPointSecurityRequirement + { + Authorizations = new global::Apify.EndPointAuthorizationRequirement[] + { new global::Apify.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Apify.EndPointSecurityRequirement[] s_UsersUsageMonthlyGetSecurityRequirements = + new global::Apify.EndPointSecurityRequirement[] + { s_UsersUsageMonthlyGetSecurityRequirement0, + }; + partial void PrepareUsersUsageMonthlyGetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string userId, + ref string? date); + partial void PrepareUsersUsageMonthlyGetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string userId, + string? date); + partial void ProcessUsersUsageMonthlyGetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUsersUsageMonthlyGetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get user's monthly usage by ID
+ /// Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get),
+ /// for an account given by its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// Using the `date` parameter will show the usage in the monthly usage cycle that
+ /// includes that date. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// Example: 2020-06-14 + /// + /// 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 UsersUsageMonthlyGetAsync( + string userId, + string? date = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UsersUsageMonthlyGetAsResponseAsync( + userId: userId, + date: date, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get user's monthly usage by ID
+ /// Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get),
+ /// for an account given by its ID or username.
+ /// You can only access your own account, or the organization your API token belongs to. API tokens with
+ /// limited permissions can't use this endpoint.
+ /// Using the `date` parameter will show the usage in the monthly usage cycle that
+ /// includes that date. + ///
+ /// + /// Example: HGzIk8z78YcAPEB + /// + /// + /// Example: 2020-06-14 + /// + /// 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> UsersUsageMonthlyGetAsResponseAsync( + string userId, + string? date = default, + global::Apify.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareUsersUsageMonthlyGetArguments( + httpClient: HttpClient, + userId: ref userId, + date: ref date); + + + var __authorizations = global::Apify.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UsersUsageMonthlyGetSecurityRequirements, + operationName: "UsersUsageMonthlyGetAsync"); + + using var __timeoutCancellationTokenSource = global::Apify.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Apify.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Apify.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Apify.PathBuilder( + path: $"/v2/users/{userId}/usage/monthly", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("date", date) + ; + var __path = __pathBuilder.ToString(); + __path = global::Apify.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Apify.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUsersUsageMonthlyGetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + userId: userId, + date: date); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Apify.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersUsageMonthlyGet", + methodName: "UsersUsageMonthlyGetAsync", + pathTemplate: "$\"/v2/users/{userId}/usage/monthly\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersUsageMonthlyGet", + methodName: "UsersUsageMonthlyGetAsync", + pathTemplate: "$\"/v2/users/{userId}/usage/monthly\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Apify.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Apify.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersUsageMonthlyGet", + methodName: "UsersUsageMonthlyGetAsync", + pathTemplate: "$\"/v2/users/{userId}/usage/monthly\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Apify.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUsersUsageMonthlyGetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersUsageMonthlyGet", + methodName: "UsersUsageMonthlyGetAsync", + pathTemplate: "$\"/v2/users/{userId}/usage/monthly\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Apify.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Apify.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UsersUsageMonthlyGet", + methodName: "UsersUsageMonthlyGetAsync", + pathTemplate: "$\"/v2/users/{userId}/usage/monthly\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad request - invalid input parameters or request body. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Apify.ErrorResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Apify.ErrorResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized - authentication required or invalid token. + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::Apify.ErrorResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::Apify.ErrorResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Forbidden - insufficient permissions to perform this action. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::Apify.ErrorResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::Apify.ErrorResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Not found - the requested resource does not exist. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Apify.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Apify.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Method not allowed. + if ((int)__response.StatusCode == 405) + { + string? __content_405 = null; + global::System.Exception? __exception_405 = null; + global::Apify.ErrorResponse? __value_405 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + else + { + __content_405 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_405 = global::Apify.ErrorResponse.FromJson(__content_405, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_405 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_405 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_405, + responseBody: __content_405, + responseObject: __value_405, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Too many requests - rate limit exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Apify.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Apify.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUsersUsageMonthlyGetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Apify.MonthlyUsageResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Apify.MonthlyUsageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Apify.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Apify.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Apify.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs index a0642750..377266fe 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhookDispatches.JsonSerializerContext.g.cs @@ -24,8 +24,14 @@ 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::System.Collections.Generic.IList))] [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.WebhookSlackMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDatasetTransformation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleMail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleDrive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGithubIssue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchWebhookSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatch))] @@ -45,6 +51,7 @@ namespace Apify [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookEventType?), TypeInfoPropertyName = "NullableWebhookEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus?), TypeInfoPropertyName = "NullableWebhookDispatchStatus2")] [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))] internal sealed partial class WebhooksWebhookDispatchesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -97,6 +104,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfWebhookDispatchesJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs index daab892a..0c8563d9 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooks.JsonSerializerContext.g.cs @@ -24,18 +24,24 @@ 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::System.Collections.Generic.IList))] [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.WebhookSlackMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDatasetTransformation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleMail))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGoogleDrive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookGithubIssue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookDispatchStatus), TypeInfoPropertyName = "WebhookDispatchStatus2")] [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.WebhookListItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Apify.WebhookListItem))] [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::Apify.ListOfWebhooksResponse))] - [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.UpdateWebhookRequest))] @@ -58,6 +64,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::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))] @@ -113,6 +120,7 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Apify.JsonConverters.ListOfWebhookDispatchesJsonConverter()); 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.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs index fdc07bbd..1eff3734 100644 --- a/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs +++ b/src/libs/Apify/Generated/Apify.WebhooksWebhooksClient.WebhookPut.g.cs @@ -55,7 +55,7 @@ partial void ProcessWebhookPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: pVJtoTelgYUq4qJOt @@ -93,7 +93,7 @@ partial void ProcessWebhookPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: pVJtoTelgYUq4qJOt @@ -774,7 +774,7 @@ partial void ProcessWebhookPutResponseContent( /// header!
/// When providing your API authentication token, we recommend using the
/// request's `Authorization` header, rather than the URL.
- /// For details, see [Authentication](/api/v2/getting-started#authentication). + /// For details, see [Authentication](/api/v2#authentication). ///
/// /// Example: pVJtoTelgYUq4qJOt diff --git a/src/libs/Apify/Generated/autosdk.generated-examples.json b/src/libs/Apify/Generated/autosdk.generated-examples.json index eb6ddbc5..a697b642 100644 --- a/src/libs/Apify/Generated/autosdk.generated-examples.json +++ b/src/libs/Apify/Generated/autosdk.generated-examples.json @@ -213,7 +213,7 @@ "Order": 20, "Title": "Update Actor task input", "Slug": "actortask-input-put", - "Description": "Updates the input of a task using values specified by an object passed as\nJSON in the PUT payload.\n\nIf the object does not define a specific property, its value is not updated.\n\nThe response is the full task input as returned by the\n[Get Actor task input](/api/v2/actor-task-input-get) endpoint.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).", + "Description": "Updates the input of a task using values specified by an object passed as\nJSON in the PUT payload.\n\nIf the object does not define a specific property, its value is not updated.\n\nThe response is the full task input as returned by the\n[Get Actor task input](/api/v2/actor-task-input-get) endpoint.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).", "Language": "http", "Code": "### Update Actor task input\n# @name actorTask_input_put\nPUT {{host}}/v2/actor-tasks/{{actorTaskId}}/input\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022myField2\u0022: \u0022updated-value\u0022\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -237,7 +237,7 @@ "Slug": "actortask-runsync-get", "Description": "Runs an Actor task and synchronously returns a key-value store record.\n\nThe response contains the record stored under the \u0060OUTPUT\u0060 key in the run\u0027s\ndefault key-value store. This is a legacy approach that has been replaced by\nthe Actor [output object](https://docs.apify.com/platform/actors/development/actor-definition/output-schema#output-object-definition);\nActors aren\u0027t required to store a record under this key, so the response may\nnot contain any data. Use the \u0060outputRecordKey\u0060 query parameter to return a\ndifferent record.\n\nThe run must finish in 300\u003C!-- MAX_ACTOR_JOB_SYNC_WAIT_SECS --\u003E seconds\notherwise the HTTP request fails with a timeout error (this won\u0027t abort\nthe run itself).\n\nBeware that it might be impossible to maintain an idle HTTP connection for\nan extended period, due to client timeout or network conditions. Make sure your HTTP client is\nconfigured to have a long enough connection timeout.\n\nIf the connection breaks, you will not receive any information about the run\nand its status.\n\nTo run the Task asynchronously, use the\n[Run Actor task](/api/v2/actor-task-runs-post)\nendpoint instead.", "Language": "http", - "Code": "### Run Actor task synchronously and get key-value store record (GET)\n# @name actorTask_runSync_get\nGET {{host}}/v2/actor-tasks/{{actorTaskId}}/run-sync?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026build={{build}}\u0026outputRecordKey={{outputRecordKey}}\u0026webhooks={{webhooks}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Run Actor task synchronously and get key-value store record (GET)\n# @name actorTask_runSync_get\nGET {{host}}/v2/actor-tasks/{{actorTaskId}}/run-sync?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026outputRecordKey={{outputRecordKey}}\u0026webhooks={{webhooks}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actorTask_runSync_get", "Setup": null @@ -365,9 +365,42 @@ }, { "Order": 34, + "Title": "Get Actor OAuth account", + "Slug": "actoroauthaccount-get", + "Description": "Gets an account connected through an Actor OAuth connection, including its OAuth tokens.\n\nThis endpoint only accepts the API token of an Actor run (the \u0060APIFY_TOKEN\u0060 environment variable of the run).\nThe run must belong to the Actor that the account\u0027s OAuth connection is configured on, and the account must\nbelong to the user the run\u0027s token acts for. Any other token gets a \u0060403\u0060 error.", + "Language": "http", + "Code": "### Get Actor OAuth account\n# @name actorOAuthAccount_get\nGET {{host}}/v2/actor-oauth-accounts/{{accountId}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "actorOAuthAccount_get", + "Setup": null + }, + { + "Order": 35, + "Title": "Get list of Actor OAuth accounts", + "Slug": "actoroauthaccounts-get", + "Description": "Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts\nthat finished authorization are returned.\n\nThere are at most 5 accounts per user and connection, so the list is not paginated.", + "Language": "http", + "Code": "### Get list of Actor OAuth accounts\n# @name actorOAuthAccounts_get\nGET {{host}}/v2/actor-oauth-accounts/{{connectionId}}/accounts\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "actorOAuthAccounts_get", + "Setup": null + }, + { + "Order": 36, + "Title": "Get list of Actor OAuth connections", + "Slug": "actor-oauthconnections-get", + "Description": "Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the\nActor can connect their accounts through. Only public credential fields are returned, never the client secret.\n\nAn Actor has at most 5 connections, so the list is not paginated.\n\nYou need read access to the Actor.", + "Language": "http", + "Code": "### Get list of Actor OAuth connections\n# @name actor_oauthConnections_get\nGET {{host}}/v2/actors/{{actorId}}/oauth-connections\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "actor_oauthConnections_get", + "Setup": null + }, + { + "Order": 37, "Title": "Update Actor", "Slug": "actor-put", - "Description": "Updates an Actor\u0027s settings with the values specified in an \u0060Actor\u0060 object\npassed as JSON in the POST payload. Only the fields specified in the request body are updated.\n\nReturns the full \u0060Actor\u0060 object, the same as the\n[Get Actor](/api/v2/actor-get) endpoint.\n\nIn the HTTP request, set the \u0060Content-Type\u0060 header to \u0060application/json\u0060.\n\n### Authentication\n\nTo provide the authentication token, we recommend using the request\u0027s\n\u0060Authorization\u0060 header, rather than the URL. For details,\nsee [Authentication](/api/v2/getting-started#authentication).\n\n### Make an Actor public\n\nTo make your Actor [public](https://docs.apify.com/platform/actors/publishing):\n- Set \u0060isPublic\u0060 to \u0060true\u0060.\n- Provide \u0060title\u0060 and \u0060categories\u0060. For reference, see [constants from the \u0060apify-shared-js\u0060\npackage](https://github.com/apify/apify-shared-js/blob/2d43ebc41ece9ad31cd6525bd523fb86939bf860/packages/consts/src/consts.ts#L452-L471)\n\n### Update build tags\n\nTo change tags assigned to Actor builds, use the \u0060taggedBuilds\u0060 object. It\u0027s a dictionary that maps tag names\nto specific builds, where:\n- the key is the tag name, for example \u0060latest\u0060 or \u0060beta\u0060\n- the value is either \u0060null\u0060 or an object with a build ID\n\nChanging tags is a patch operation. Only the tags that you provide in this object are updated.\n\nNote that you can assign multiple tags to a single build, but you can\u0027t assign the same tag to multiple builds.\n\n- To create or reassign a tag, provide the tag name with a build ID. For example, to assign\nthe \u0060latest\u0060 tag to a build, use:\n\n\u0060\u0060\u0060json\n{\n \u0022latest\u0022: { \u0022buildId\u0022: \u0022z2EryhbfhgSyqj6Hn\u0022 }\n}\n\u0060\u0060\u0060\n\n- To remove a tag from a build, provide the tag name with a \u0060null\u0060 value. For example, to remove the \u0060beta\u0060 tag, use:\n\n\u0060\u0060\u0060json\n{\n \u0022beta\u0022: null\n}\n\u0060\u0060\u0060\n\n- You can perform multiple actions at once. The following example reassigns \u0060latest\u0060\nand removes \u0060beta\u0060, while preserving other existing tags:\n\n\u0060\u0060\u0060json\n{\n \u0022latest\u0022: { \u0022buildId\u0022: \u0022z2EryhbfhgSyqj6Hn\u0022 },\n \u0022beta\u0022: null\n}\n\u0060\u0060\u0060", + "Description": "Updates an Actor\u0027s settings with the values specified in an \u0060Actor\u0060 object\npassed as JSON in the POST payload. Only the fields specified in the request body are updated.\n\nReturns the full \u0060Actor\u0060 object, the same as the\n[Get Actor](/api/v2/actor-get) endpoint.\n\nIn the HTTP request, set the \u0060Content-Type\u0060 header to \u0060application/json\u0060.\n\n### Authentication\n\nTo provide the authentication token, we recommend using the request\u0027s\n\u0060Authorization\u0060 header, rather than the URL. For details,\nsee [Authentication](/api/v2#authentication).\n\n### Make an Actor public\n\nTo make your Actor [public](https://docs.apify.com/platform/actors/publishing):\n- Set \u0060isPublic\u0060 to \u0060true\u0060.\n- Provide \u0060title\u0060 and \u0060categories\u0060. For reference, see [constants from the \u0060apify-shared-js\u0060\npackage](https://github.com/apify/apify-shared-js/blob/2d43ebc41ece9ad31cd6525bd523fb86939bf860/packages/consts/src/consts.ts#L452-L471)\n\n### Update build tags\n\nTo change tags assigned to Actor builds, use the \u0060taggedBuilds\u0060 object. It\u0027s a dictionary that maps tag names\nto specific builds, where:\n- the key is the tag name, for example \u0060latest\u0060 or \u0060beta\u0060\n- the value is either \u0060null\u0060 or an object with a build ID\n\nChanging tags is a patch operation. Only the tags that you provide in this object are updated.\n\nNote that you can assign multiple tags to a single build, but you can\u0027t assign the same tag to multiple builds.\n\n- To create or reassign a tag, provide the tag name with a build ID. For example, to assign\nthe \u0060latest\u0060 tag to a build, use:\n\n\u0060\u0060\u0060json\n{\n \u0022latest\u0022: { \u0022buildId\u0022: \u0022z2EryhbfhgSyqj6Hn\u0022 }\n}\n\u0060\u0060\u0060\n\n- To remove a tag from a build, provide the tag name with a \u0060null\u0060 value. For example, to remove the \u0060beta\u0060 tag, use:\n\n\u0060\u0060\u0060json\n{\n \u0022beta\u0022: null\n}\n\u0060\u0060\u0060\n\n- You can perform multiple actions at once. The following example reassigns \u0060latest\u0060\nand removes \u0060beta\u0060, while preserving other existing tags:\n\n\u0060\u0060\u0060json\n{\n \u0022latest\u0022: { \u0022buildId\u0022: \u0022z2EryhbfhgSyqj6Hn\u0022 },\n \u0022beta\u0022: null\n}\n\u0060\u0060\u0060", "Language": "http", "Code": "### Update Actor\n# @name actor_put\nPUT {{host}}/v2/actors/{{actorId}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022MyActor\u0022,\n \u0022description\u0022: \u0022My favourite Actor!\u0022,\n \u0022isPublic\u0022: false,\n \u0022actorPermissionLevel\u0022: \u0022LIMITED_PERMISSIONS\u0022,\n \u0022seoTitle\u0022: \u0022My Actor\u0022,\n \u0022seoDescription\u0022: \u0022My Actor is the best\u0022,\n \u0022title\u0022: \u0022My Actor\u0022,\n \u0022versions\u0022: [\n {\n \u0022versionNumber\u0022: \u00220.0\u0022,\n \u0022sourceType\u0022: \u0022SOURCE_FILES\u0022,\n \u0022envVars\u0022: [\n {\n \u0022name\u0022: \u0022DOMAIN\u0022,\n \u0022value\u0022: \u0022http://example.com\u0022,\n \u0022isSecret\u0022: false\n },\n {\n \u0022name\u0022: \u0022SECRET_PASSWORD\u0022,\n \u0022value\u0022: \u0022MyTopSecretPassword123\u0022,\n \u0022isSecret\u0022: true\n }\n ],\n \u0022applyEnvVarsToBuild\u0022: false,\n \u0022buildTag\u0022: \u0022latest\u0022,\n \u0022sourceFiles\u0022: []\n }\n ],\n \u0022categories\u0022: [],\n \u0022defaultRunOptions\u0022: {\n \u0022build\u0022: \u0022latest\u0022,\n \u0022timeoutSecs\u0022: 3600,\n \u0022memoryMbytes\u0022: 2048,\n \u0022restartOnError\u0022: false\n }\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -375,7 +408,7 @@ "Setup": null }, { - "Order": 35, + "Order": 38, "Title": "Validate Actor input", "Slug": "actor-validateinput-post", "Description": "Validates the JSON payload against the Actor\u0027s\n[input schema](https://docs.apify.com/actors/development/actor-definition/input-schema)\ndefined in the specified build.\n\nIf the specified build has no input schema, any input is considered valid.", @@ -386,7 +419,7 @@ "Setup": null }, { - "Order": 36, + "Order": 39, "Title": "Get list of Actors", "Slug": "actors-get", "Description": "Gets the list of all Actors that the user created or used. The response is a\nlist of objects, where each object contains a basic information about a single Actor.\n\nTo only get Actors created by the user, add the \u0060my=1\u0060 query parameter.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 records.\n\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder, therefore you can use pagination to incrementally fetch all Actors while new\nones are still being created. To sort the records in descending order, use the \u0060desc=1\u0060 parameter.\n\nYou can also sort by your last run by using the \u0060sortBy=stats.lastRunStartedAt\u0060 query parameter.\nIn this case, descending order means the most recently run Actor appears first.", @@ -397,7 +430,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 37, + "Order": 40, "Title": "Create Actor", "Slug": "actors-post", "Description": "Creates an Actor with the settings specified in an \u0060Actor\u0060 object passed as\nJSON in the POST payload.\n\nReturns the created \u0060Actor\u0060 object.\n\nIn the HTTP request, set the \u0060Content-Type\u0060 header to \u0060application/json\u0060.\n\n### Define a source code version\n\nAn Actor must specify at least one version of the source code.\nFor details, see [Actor versions](/api/v2/actors-actor-versions).\n\n### Publish an Actor\n\nTo make your Actor [public](https://docs.apify.com/platform/actors/publishing),\nuse the [Update Actor](/api/v2/actor-put) endpoint.", @@ -408,7 +441,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 38, + "Order": 41, "Title": "Get default Actor build", "Slug": "actor-build-default-get", "Description": "Get the default build for an Actor.\n\nUse the optional \u0060waitForFinish\u0060 parameter to synchronously wait for the build to finish.\nThis avoids the need for periodic polling when waiting for the build to complete.\n\nThis endpoint does not require an authentication token. Instead, calls are authenticated using the Actor\u0027s unique ID.\nHowever, if you access the endpoint without a token, certain attributes (e.g., \u0060usageUsd\u0060 and \u0060usageTotalUsd\u0060) will be hidden.", @@ -419,7 +452,7 @@ "Setup": null }, { - "Order": 39, + "Order": 42, "Title": "Get OpenAPI definition of Actor build", "Slug": "actor-openapi-json-get", "Description": "Get the OpenAPI definition for Actor builds. Two similar endpoints are available:\n\n- [Get OpenAPI definition of Actor build](/api/v2/actor-openapi-json-get) (\u0060/v2/actors/{actorId}/builds/{buildId}/openapi.json\u0060): Requires both \u0060actorId\u0060 and \u0060buildId\u0060. Use \u0060default\u0060 as the \u0060buildId\u0060 to get the OpenAPI schema for the default Actor build.\n\n- [Get OpenAPI definition of Actor build](/api/v2/actor-build-openapi-json-get) (\u0060/v2/actor-builds/{buildId}/openapi.json\u0060): Requires only \u0060buildId\u0060.\n\nGet the OpenAPI definition for a specific Actor build.\n\nTo fetch the default Actor build, simply pass \u0060default\u0060 as the \u0060buildId\u0060.\nAuthentication is based on the build\u0027s unique ID. No authentication token is required.\n\n:::note\n\nYou can also use the [Get OpenAPI definition of Actor build](/api/v2/actor-build-openapi-json-get) endpoint (\u0060/v2/actor-builds/{buildId}/openapi.json\u0060) to get the OpenAPI definition for a build.\n\n:::", @@ -430,7 +463,7 @@ "Setup": null }, { - "Order": 40, + "Order": 43, "Title": "Get list of Actor\u0027s builds", "Slug": "actors-builds-get", "Description": "Gets the list of builds of a specific Actor. The response is a JSON with the\nlist of objects, where each object contains basic information about a single build.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 records.\n\nBy default, the records are sorted by the \u0060startedAt\u0060 field in ascending order,\ntherefore you can use pagination to incrementally fetch all builds while new\nones are still being started. To sort the records in descending order, use\nthe \u0060desc=1\u0060 parameter.", @@ -441,7 +474,7 @@ "Setup": null }, { - "Order": 41, + "Order": 44, "Title": "Build Actor", "Slug": "actors-builds-post", "Description": "Builds an Actor.\nThe response is the build object as returned by the\n[Get Actor build](/api/v2/actor-build-get) endpoint.", @@ -452,7 +485,7 @@ "Setup": null }, { - "Order": 42, + "Order": 45, "Title": "Resurrect Actor run", "Slug": "actor-run-resurrect-post", "Description": "**[DEPRECATED]** API endpoints related to run of the Actor were moved under\nnew namespace \u0060actor-runs\u0060\n([Manage Actor runs](/api/v2/actor-runs)). Resurrects a finished\nActor run and returns an object that contains all the details about the\nresurrected run.\n\nOnly finished runs, i.e. runs with status \u0060SUCCEEDED\u0060, \u0060FAILED\u0060, \u0060ABORTED\u0060\nand \u0060TIMED-OUT\u0060 can be resurrected.\nRun status will be updated to RUNNING and its container will be restarted\nwith the same storages\n(the same behaviour as when the run gets migrated to the new server).\n\nFor more information, see the [Actor\ndocs](https://docs.apify.com/platform/actors/running/runs-and-builds#resurrect-a-finished-run).", @@ -463,51 +496,51 @@ "Setup": null }, { - "Order": 43, + "Order": 46, "Title": "Run Actor synchronously and get key-value store record (GET)", "Slug": "actor-runsync-get", "Description": "Runs a specific Actor and returns a key-value store record. The response contains the\nrecord stored under the \u0060OUTPUT\u0060 key in the run\u0027s default key-value store.\nThis is a legacy approach that has been replaced by the Actor\n[output object](https://docs.apify.com/platform/actors/development/actor-definition/output-schema#output-object-definition);\nthe record may not exist, in which case the response contains no data. Use the\n\u0060outputRecordKey\u0060 query parameter to return a different record.\nThe run must finish in 300\u003C!-- MAX_ACTOR_JOB_SYNC_WAIT_SECS --\u003E seconds\notherwise the API endpoint returns a timeout error.\nThe Actor is not passed any input.\n\nBeware that it might be impossible to maintain an idle HTTP connection for a\nlong period of time,\ndue to client timeout or network conditions. Make sure your HTTP client is\nconfigured to have a long enough connection timeout.\nIf the connection breaks, you will not receive any information about the run\nand its status.\n\nTo run the Actor asynchronously, use the [Run Actor](/api/v2/actors-runs-post) API endpoint instead.", "Language": "http", - "Code": "### Run Actor synchronously and get key-value store record (GET)\n# @name actor_runSync_get\nGET {{host}}/v2/actors/{{actorId}}/run-sync?outputRecordKey={{outputRecordKey}}\u0026timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Run Actor synchronously and get key-value store record (GET)\n# @name actor_runSync_get\nGET {{host}}/v2/actors/{{actorId}}/run-sync?outputRecordKey={{outputRecordKey}}\u0026timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026forcePermissionLevel=LIMITED_PERMISSIONS\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actor_runSync_get", "Setup": null }, { - "Order": 44, + "Order": 47, "Title": "Run Actor synchronously and get dataset items (GET)", "Slug": "actor-runsyncgetdatasetitems-get", "Description": "Runs a specific Actor and returns its dataset items.\nThe run must finish in 300\u003C!-- MAX_ACTOR_JOB_SYNC_WAIT_SECS --\u003E seconds\notherwise the API endpoint returns a timeout error.\nThe Actor is not passed any input.\n\nIt allows to send all possible options in parameters from [Get dataset items](/api/v2/dataset-items-get) API endpoint.\n\nBeware that it might be impossible to maintain an idle HTTP connection for a\nlong period of time,\ndue to client timeout or network conditions. Make sure your HTTP client is\nconfigured to have a long enough connection timeout.\nIf the connection breaks, you will not receive any information about the run\nand its status.\n\nTo run the Actor asynchronously, use the [Run Actor](/api/v2/actors-runs-post) API endpoint instead.", "Language": "http", - "Code": "### Run Actor synchronously and get dataset items (GET)\n# @name actor_runSyncGetDatasetItems_get\nGET {{host}}/v2/actors/{{actorId}}/run-sync-get-dataset-items?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026format={{format}}\u0026clean={{clean}}\u0026offset={{offset}}\u0026limit={{limit}}\u0026fields={{fields}}\u0026outputFields={{outputFields}}\u0026omit={{omit}}\u0026unwind={{unwind}}\u0026flatten={{flatten}}\u0026desc={{desc}}\u0026attachment={{attachment}}\u0026delimiter={{delimiter}}\u0026bom={{bom}}\u0026xmlRoot={{xmlRoot}}\u0026xmlRow={{xmlRow}}\u0026skipHeaderRow={{skipHeaderRow}}\u0026skipHidden={{skipHidden}}\u0026skipEmpty={{skipEmpty}}\u0026simplified={{simplified}}\u0026view={{view}}\u0026skipFailedPages={{skipFailedPages}}\u0026feedTitle={{feedTitle}}\u0026feedDescription={{feedDescription}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Run Actor synchronously and get dataset items (GET)\n# @name actor_runSyncGetDatasetItems_get\nGET {{host}}/v2/actors/{{actorId}}/run-sync-get-dataset-items?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026forcePermissionLevel=LIMITED_PERMISSIONS\u0026format={{format}}\u0026clean={{clean}}\u0026offset={{offset}}\u0026limit={{limit}}\u0026fields={{fields}}\u0026outputFields={{outputFields}}\u0026omit={{omit}}\u0026unwind={{unwind}}\u0026flatten={{flatten}}\u0026desc={{desc}}\u0026attachment={{attachment}}\u0026delimiter={{delimiter}}\u0026bom={{bom}}\u0026xmlRoot={{xmlRoot}}\u0026xmlRow={{xmlRow}}\u0026skipHeaderRow={{skipHeaderRow}}\u0026skipHidden={{skipHidden}}\u0026skipEmpty={{skipEmpty}}\u0026simplified={{simplified}}\u0026view={{view}}\u0026skipFailedPages={{skipFailedPages}}\u0026feedTitle={{feedTitle}}\u0026feedDescription={{feedDescription}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actor_runSyncGetDatasetItems_get", "Setup": null }, { - "Order": 45, + "Order": 48, "Title": "Run Actor synchronously and get dataset items", "Slug": "actor-runsyncgetdatasetitems-post", "Description": "Runs a specific Actor and returns its dataset items.\n\nThe POST payload including its \u0060Content-Type\u0060 header is passed as \u0060INPUT\u0060 to\nthe Actor (usually \u0060application/json\u0060).\nThe HTTP response contains the Actors dataset items, while the format of\nitems depends on specifying dataset items\u0027 \u0060format\u0060 parameter.\n\nYou can send all the same options in parameters as the [Get dataset items](/api/v2/dataset-items-get) API endpoint.\n\nThe Actor is started with the default options; you can override them using\nURL query parameters.\nIf the Actor run exceeds 300\u003C!-- MAX_ACTOR_JOB_SYNC_WAIT_SECS --\u003E seconds,\nthe HTTP response will return the 408 status code (Request Timeout).\n\nBeware that it might be impossible to maintain an idle HTTP connection for a\nlong period of time,\ndue to client timeout or network conditions. Make sure your HTTP client is\nconfigured to have a long enough connection timeout.\nIf the connection breaks, you will not receive any information about the run\nand its status.\n\nTo run the Actor asynchronously, use the [Run Actor](/api/v2/actors-runs-post) API endpoint instead.", "Language": "http", - "Code": "### Run Actor synchronously and get dataset items\n# @name actor_runSyncGetDatasetItems_post\nPOST {{host}}/v2/actors/{{actorId}}/run-sync-get-dataset-items?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026format={{format}}\u0026clean={{clean}}\u0026offset={{offset}}\u0026limit={{limit}}\u0026fields={{fields}}\u0026outputFields={{outputFields}}\u0026omit={{omit}}\u0026unwind={{unwind}}\u0026flatten={{flatten}}\u0026desc={{desc}}\u0026attachment={{attachment}}\u0026delimiter={{delimiter}}\u0026bom={{bom}}\u0026xmlRoot={{xmlRoot}}\u0026xmlRow={{xmlRow}}\u0026skipHeaderRow={{skipHeaderRow}}\u0026skipHidden={{skipHidden}}\u0026skipEmpty={{skipEmpty}}\u0026simplified={{simplified}}\u0026view={{view}}\u0026skipFailedPages={{skipFailedPages}}\u0026feedTitle={{feedTitle}}\u0026feedDescription={{feedDescription}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022foo\u0022: \u0022bar\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Run Actor synchronously and get dataset items\n# @name actor_runSyncGetDatasetItems_post\nPOST {{host}}/v2/actors/{{actorId}}/run-sync-get-dataset-items?timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026forcePermissionLevel=LIMITED_PERMISSIONS\u0026format={{format}}\u0026clean={{clean}}\u0026offset={{offset}}\u0026limit={{limit}}\u0026fields={{fields}}\u0026outputFields={{outputFields}}\u0026omit={{omit}}\u0026unwind={{unwind}}\u0026flatten={{flatten}}\u0026desc={{desc}}\u0026attachment={{attachment}}\u0026delimiter={{delimiter}}\u0026bom={{bom}}\u0026xmlRoot={{xmlRoot}}\u0026xmlRow={{xmlRow}}\u0026skipHeaderRow={{skipHeaderRow}}\u0026skipHidden={{skipHidden}}\u0026skipEmpty={{skipEmpty}}\u0026simplified={{simplified}}\u0026view={{view}}\u0026skipFailedPages={{skipFailedPages}}\u0026feedTitle={{feedTitle}}\u0026feedDescription={{feedDescription}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022foo\u0022: \u0022bar\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actor_runSyncGetDatasetItems_post", "Setup": null }, { - "Order": 46, + "Order": 49, "Title": "Run Actor synchronously and get key-value store record", "Slug": "actor-runsync-post", "Description": "Runs a specific Actor and returns a key-value store record.\n\nThe POST payload including its \u0060Content-Type\u0060 header is passed as \u0060INPUT\u0060 to\nthe Actor (usually \u003Ccode\u003Eapplication/json\u003C/code\u003E).\n\nThe response contains the record stored under the \u0060OUTPUT\u0060 key in the run\u0027s\ndefault key-value store. This is a legacy approach that has been replaced by\nthe Actor [output object](https://docs.apify.com/platform/actors/development/actor-definition/output-schema#output-object-definition);\nActors aren\u0027t required to store a record under this key, so the response may\nnot contain any data. Use the \u0060outputRecordKey\u0060 query parameter to return a\ndifferent record.\n\nThe Actor is started with the default options; you can override them using\nvarious URL query parameters.\nIf the Actor run exceeds 300\u003C!-- MAX_ACTOR_JOB_SYNC_WAIT_SECS --\u003E seconds,\nthe HTTP response will have status 408 (Request Timeout).\n\nBeware that it might be impossible to maintain an idle HTTP connection for a\nlong period of time, due to client timeout or network conditions. Make sure your HTTP client is\nconfigured to have a long enough connection timeout.\nIf the connection breaks, you will not receive any information about the run\nand its status.\n\nTo run the Actor asynchronously, use the [Run Actor](/api/v2/actors-runs-post) API endpoint instead.", "Language": "http", - "Code": "### Run Actor synchronously and get key-value store record\n# @name actor_runSync_post\nPOST {{host}}/v2/actors/{{actorId}}/run-sync?outputRecordKey={{outputRecordKey}}\u0026timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022foo\u0022: \u0022bar\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Run Actor synchronously and get key-value store record\n# @name actor_runSync_post\nPOST {{host}}/v2/actors/{{actorId}}/run-sync?outputRecordKey={{outputRecordKey}}\u0026timeout={{timeout}}\u0026memory={{memory}}\u0026maxItems={{maxItems}}\u0026maxTotalChargeUsd={{maxTotalChargeUsd}}\u0026restartOnError={{restartOnError}}\u0026build={{build}}\u0026webhooks={{webhooks}}\u0026forcePermissionLevel=LIMITED_PERMISSIONS\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022foo\u0022: \u0022bar\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 402\n# Description: Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 408\n# Description: The HTTP request exceeded the timeout limit\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actor_runSync_post", "Setup": null }, { - "Order": 47, + "Order": 50, "Title": "Get Actor\u0027s last run", "Slug": "actor-runs-last-get", "Description": "This is not a single endpoint, but an entire group of endpoints that lets you to\nretrieve and manage the last run of given Actor or any of its default storages.\nAll the endpoints require an authentication token.\n\nThe base path represents the last Actor run object is:\n\n\u0060/v2/actors/{actorId}/runs/last{?token,status,origin}\u0060\n\nUsing the \u0060status\u0060 query parameter you can ensure to only get a run with a certain status\n(e.g. \u0060status=SUCCEEDED\u0060). Similarly, the \u0060origin\u0060 query parameter filters runs by the means\nby which they were started (e.g. \u0060origin=API\u0060). The output of this endpoint and other query\nparameters are the same as in the [Get Actor run](/api/v2/actor-run-get) endpoint.\n\n##### Convenience endpoints for last Actor run\n\n* [Last Actor run\u0027s default dataset](/api/v2/last-actor-runs-default-dataset)\n\n* [Last Actor run\u0027s default key-value store](/api/v2/last-actor-runs-default-key-value-store)\n\n* [Last Actor run\u0027s default request queue](/api/v2/last-actor-runs-default-request-queue)\n\n* [Last Actor run\u0027s log](/api/v2/last-actor-runs-log)", @@ -518,18 +551,18 @@ "Setup": null }, { - "Order": 48, + "Order": 51, "Title": "Get list of Actor\u0027s runs", "Slug": "actors-runs-get", "Description": "Gets the list of runs of a specific Actor. The response is a list of\nobjects, where each object contains basic information about a single Actor run.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 array elements.\n\nBy default, the records are sorted by the \u0060startedAt\u0060 field in ascending\norder, therefore you can use pagination to incrementally fetch all records while\nnew ones are still being created. To sort the records in descending order, use\n\u0060desc=1\u0060 parameter. You can also filter runs by status ([available\nstatuses](https://docs.apify.com/platform/actors/running/runs-and-builds#lifecycle)).", "Language": "http", - "Code": "### Get list of Actor\u0027s runs\n# @name actors_runs_get\nGET {{host}}/v2/actors/{{actorId}}/runs?offset={{offset}}\u0026limit={{limit}}\u0026desc={{desc}}\u0026status={{status}}\u0026startedAfter={{startedAfter}}\u0026startedBefore={{startedBefore}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Code": "### Get list of Actor\u0027s runs\n# @name actors_runs_get\nGET {{host}}/v2/actors/{{actorId}}/runs?offset={{offset}}\u0026limit={{limit}}\u0026desc={{desc}}\u0026status={{status}}\u0026startedAfter={{startedAfter}}\u0026startedBefore={{startedBefore}}\u0026deployment={{deployment}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", "OperationId": "actors_runs_get", "Setup": null }, { - "Order": 49, + "Order": 52, "Title": "Run Actor", "Slug": "actors-runs-post", "Description": "Runs an Actor and immediately returns without waiting for the run to finish.\n\nThe POST payload including its \u0060Content-Type\u0060 header is passed as \u0060INPUT\u0060 to\nthe Actor (usually \u0060application/json\u0060).\n\nThe Actor is started with the default options; you can override them using\nvarious URL query parameters.\n\nThe response is the Run object as returned by the [Get Actor run](/api/v2/actor-run-get) API\nendpoint.\n\nIf you want to wait for the run to finish and receive the actual output of\nthe Actor as the response, please use the [Run Actor synchronously and get key-value store record](/api/v2/actor-run-sync-post)\nor [Run Actor synchronously and get dataset items](/api/v2/actor-run-sync-get-dataset-items-post)\nendpoint instead.\n\nTo fetch the Actor run results that are typically stored in the default\ndataset, you\u0027ll need to pass the ID received in the \u0060defaultDatasetId\u0060 field\nreceived in the response JSON to the [Get dataset items](/api/v2/dataset-items-get)\nAPI endpoint.", @@ -540,7 +573,18 @@ "Setup": null }, { - "Order": 50, + "Order": 53, + "Title": "Update Actor version build on push", + "Slug": "actor-version-buildonpush-put", + "Description": "Turns automatic builds on push on or off for an Actor version whose source is a git repository.\n\nEnabling registers a push webhook on the repository through the connected git account given by \u0060providerId\u0060, so\nthat every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it\non GitLab and Bitbucket.\n\nYou need write access to the Actor. The version must have its source type set to a git repository, and the\nconnected account must have permission to manage the repository\u0027s webhooks.", + "Language": "http", + "Code": "### Update Actor version build on push\n# @name actor_version_buildOnPush_put\nPUT {{host}}/v2/actors/{{actorId}}/versions/{{versionNumber}}/build-on-push\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022providerId\u0022: \u0022string\u0022,\n \u0022enabled\u0022: true\n}\n\n## Responses\n# 204\n# Description: No content\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "actor_version_buildOnPush_put", + "Setup": null + }, + { + "Order": 54, "Title": "Delete Actor version", "Slug": "actor-version-delete", "Description": "Deletes a specific version of Actor\u0027s source code.", @@ -551,7 +595,7 @@ "Setup": null }, { - "Order": 51, + "Order": 55, "Title": "Delete environment variable from Actor version", "Slug": "actor-version-envvar-delete", "Description": "Deletes a specific environment variable.", @@ -562,7 +606,7 @@ "Setup": null }, { - "Order": 52, + "Order": 56, "Title": "Get environment variable of Actor version", "Slug": "actor-version-envvar-get", "Description": "Gets an \u0060EnvVar\u0060 object that\ncontains all the details about a specific environment variable of an Actor.\n\nIf \u0060isSecret\u0060 is set to \u0060true\u0060, then \u0060value\u0060 will never be returned.", @@ -573,7 +617,7 @@ "Setup": null }, { - "Order": 53, + "Order": 57, "Title": "Update environment variable in Actor version (POST)", "Slug": "actor-version-envvar-post", "Description": "Updates Actor environment variable using values specified by an \u0060EnvVar\u0060\nobject\npassed as JSON in the POST payload.\nThis endpoint is an alias for the [Update environment variable in Actor version](/api/v2/actor-version-env-var-put) endpoint and behaves identically.", @@ -584,10 +628,10 @@ "Setup": null }, { - "Order": 54, + "Order": 58, "Title": "Update environment variable in Actor version", "Slug": "actor-version-envvar-put", - "Description": "Updates Actor environment variable using values specified by an \u0060EnvVar\u0060\nobject\npassed as JSON in the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n\nThe response is the \u0060EnvVar\u0060 object as returned by the\n[Get environment variable of Actor version](/api/v2/actor-version-env-var-get)\nendpoint.", + "Description": "Updates Actor environment variable using values specified by an \u0060EnvVar\u0060\nobject\npassed as JSON in the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n\nThe response is the \u0060EnvVar\u0060 object as returned by the\n[Get environment variable of Actor version](/api/v2/actor-version-env-var-get)\nendpoint.", "Language": "http", "Code": "### Update environment variable in Actor version\n# @name actor_version_envVar_put\nPUT {{host}}/v2/actors/{{actorId}}/versions/{{versionNumber}}/env-vars/{{envVarName}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022MY_ENV_VAR\u0022,\n \u0022value\u0022: \u0022my-new-value\u0022,\n \u0022isSecret\u0022: false\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -595,7 +639,7 @@ "Setup": null }, { - "Order": 55, + "Order": 59, "Title": "Get list of environment variables of Actor version", "Slug": "actor-version-envvars-get", "Description": "Gets the list of environment variables for a specific version of an Actor.\nThe response is a JSON object with the list of \u0060EnvVar\u0060 objects, where each contains basic information about a single environment variable.", @@ -606,7 +650,7 @@ "Setup": null }, { - "Order": 56, + "Order": 60, "Title": "Create environment variable in Actor version", "Slug": "actor-version-envvars-post", "Description": "Creates an environment variable of an Actor using values specified in an\n\u0060EnvVar\u0060 object passed as\nJSON in the POST payload.\n\nThe request must specify \u0060name\u0060 and \u0060value\u0060 parameters (as strings) in the\nJSON payload and a \u0060Content-Type: application/json\u0060 HTTP header.\n\n\u0060\u0060\u0060\n{\n \u0022name\u0022: \u0022ENV_VAR_NAME\u0022,\n \u0022value\u0022: \u0022my-env-var\u0022\n}\n\u0060\u0060\u0060\n\nThe response is the \u0060EnvVar\u0060\nobject as returned by the [Get environment variable of Actor version](/api/v2/actor-version-env-var-get)\nendpoint.", @@ -617,7 +661,7 @@ "Setup": null }, { - "Order": 57, + "Order": 61, "Title": "Get Actor version", "Slug": "actor-version-get", "Description": "Gets a \u0060Version\u0060 object that contains all the details about a specific version of an Actor.", @@ -628,7 +672,7 @@ "Setup": null }, { - "Order": 58, + "Order": 62, "Title": "Update Actor version (POST)", "Slug": "actor-version-post", "Description": "Updates Actor version using values specified by a \u0060Version\u0060 object passed as JSON in the POST payload.\nThis endpoint is an alias for the [Update Actor version](/api/v2/actor-version-put) endpoint and behaves identically.", @@ -639,10 +683,10 @@ "Setup": null }, { - "Order": 59, + "Order": 63, "Title": "Update Actor version", "Slug": "actor-version-put", - "Description": "Updates Actor version using values specified by a \u0060Version\u0060 object passed as JSON in the POST payload.\n\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n\nThe response is the \u0060Version\u0060 object as\nreturned by the [Get Actor version](/api/v2/actor-version-get) endpoint.", + "Description": "Updates Actor version using values specified by a \u0060Version\u0060 object passed as JSON in the POST payload.\n\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n\nThe response is the \u0060Version\u0060 object as\nreturned by the [Get Actor version](/api/v2/actor-version-get) endpoint.", "Language": "http", "Code": "### Update Actor version\n# @name actor_version_put\nPUT {{host}}/v2/actors/{{actorId}}/versions/{{versionNumber}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022versionNumber\u0022: \u00220.0\u0022,\n \u0022sourceType\u0022: \u0022SOURCE_FILES\u0022,\n \u0022envVars\u0022: [\n {\n \u0022name\u0022: \u0022DOMAIN\u0022,\n \u0022value\u0022: \u0022http://example.com\u0022,\n \u0022isSecret\u0022: false\n },\n {\n \u0022name\u0022: \u0022SECRET_PASSWORD\u0022,\n \u0022value\u0022: \u0022MyTopSecretPassword123\u0022,\n \u0022isSecret\u0022: true\n }\n ],\n \u0022applyEnvVarsToBuild\u0022: false,\n \u0022buildTag\u0022: \u0022latest\u0022,\n \u0022sourceFiles\u0022: []\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -650,7 +694,7 @@ "Setup": null }, { - "Order": 60, + "Order": 64, "Title": "Get list of Actor versions", "Slug": "actor-versions-get", "Description": "Gets the list of versions of a specific Actor. The response is a JSON object\nwith the list of \u0060Version\u0060 objects, where each\ncontains basic information about a single version.", @@ -661,7 +705,7 @@ "Setup": null }, { - "Order": 61, + "Order": 65, "Title": "Create Actor version", "Slug": "actor-versions-post", "Description": "Creates a version of an Actor using values specified in a \u0060Version\u0060\nobject passed as JSON in the POST\npayload.\n\nThe request must specify \u0060versionNumber\u0060 and \u0060sourceType\u0060 parameters (as\nstrings) in the JSON payload and a \u0060Content-Type: application/json\u0060 HTTP\nheader.\n\nEach \u0060sourceType\u0060 requires its own additional properties to be passed to the\nJSON payload object. These are outlined in the \u0060Version\u0060\nobject table below and in more detail in\nthe [Apify\ndocumentation](https://docs.apify.com/platform/actors/development/deployment/source-types).\n\nFor example, if an Actor\u0027s source code is stored in a [GitHub\nrepository](https://docs.apify.com/platform/actors/development/deployment/source-types#git-repository),\nyou will set the \u0060sourceType\u0060 to \u0060GIT_REPO\u0060 and pass the repository\u0027s URL in\nthe \u0060gitRepoUrl\u0060 property.\n\n\u0060\u0060\u0060\n{\n \u0022versionNumber\u0022: \u00220.1\u0022,\n \u0022sourceType\u0022: \u0022GIT_REPO\u0022,\n \u0022gitRepoUrl\u0022: \u0022https://github.com/my-github-account/actor-repo\u0022\n}\n\u0060\u0060\u0060\n\nThe response is the \u0060Version\u0060 object as\nreturned by the [Get Actor version](/api/v2/actor-version-get) endpoint.", @@ -672,7 +716,7 @@ "Setup": null }, { - "Order": 62, + "Order": 66, "Title": "Get list of Actor\u0027s webhooks", "Slug": "actor-webhooks-get", "Description": "Gets the list of webhooks of a specific Actor. The response is a JSON with\nthe list of objects, where each object contains basic information about a single webhook.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 records.\n\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder, to sort the records in descending order, use the \u0060desc=1\u0060 parameter.", @@ -683,7 +727,7 @@ "Setup": null }, { - "Order": 63, + "Order": 67, "Title": "Delete the default dataset of an Actor run", "Slug": "actorrun-dataset-delete", "Description": "Deletes default dataset associated with an Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Delete dataset](/api/v2/dataset-delete) endpoint.", @@ -694,7 +738,7 @@ "Setup": null }, { - "Order": 64, + "Order": 68, "Title": "Get the default dataset of an Actor run", "Slug": "actorrun-dataset-get", "Description": "Returns the default dataset associated with an Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Get dataset](/api/v2/dataset-get) endpoint.", @@ -705,7 +749,7 @@ "Setup": null }, { - "Order": 65, + "Order": 69, "Title": "Get the default dataset items from an Actor run", "Slug": "actorrun-dataset-items-get", "Description": "Returns data stored in the default dataset of the Actor run in the desired format.\n\nThis endpoint is a shortcut that resolves the run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset items](/api/v2/dataset-items-get) endpoint.", @@ -716,7 +760,7 @@ "Setup": null }, { - "Order": 66, + "Order": 70, "Title": "Store items in the default dataset of an Actor run", "Slug": "actorrun-dataset-items-post", "Description": "Appends an item or an array of items to the end of the Actor run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Store items in dataset](/api/v2/dataset-items-post) endpoint.\n\nTo save bandwidth and speed up your upload, you can send the request payload compressed and set the \u0060Content-Encoding\u0060 header accordingly.\n\nBelow is a list of supported \u0060Content-Encoding\u0060 types.\n\n* Brotli: \u0060Content-Encoding: br\u0060\n* Gzip: \u0060Content-Encoding: gzip\u0060\n* Deflate: \u0060Content-Encoding: deflate\u0060", @@ -727,7 +771,7 @@ "Setup": null }, { - "Order": 67, + "Order": 71, "Title": "Update the default dataset of an Actor run", "Slug": "actorrun-dataset-put", "Description": "Updates the default dataset associated with an Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Update dataset](/api/v2/dataset-put) endpoint.", @@ -738,7 +782,7 @@ "Setup": null }, { - "Order": 68, + "Order": 72, "Title": "Get the default dataset statistics for an Actor run", "Slug": "actorrun-dataset-statistics-get", "Description": "Returns statistics for the Actor run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset statistics](/api/v2/dataset-statistics-get) endpoint.", @@ -749,7 +793,7 @@ "Setup": null }, { - "Order": 69, + "Order": 73, "Title": "Delete the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-delete", "Description": "Delete the default key-value store.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store](/api/v2/key-value-store-delete) endpoint.", @@ -760,7 +804,7 @@ "Setup": null }, { - "Order": 70, + "Order": 74, "Title": "Get the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-get", "Description": "Gets an object that contains all the details about the default key-value\nstore.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store](/api/v2/key-value-store-get) endpoint.", @@ -771,7 +815,7 @@ "Setup": null }, { - "Order": 71, + "Order": 75, "Title": "Get list of keys in the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-keys-get", "Description": "Returns a list of keys for the default key-value store of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get) endpoint.", @@ -782,7 +826,7 @@ "Setup": null }, { - "Order": 72, + "Order": 76, "Title": "Update the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-put", "Description": "Updates the default key-value store\u0027s name and general resource access level using a value specified by a JSON object\npassed in the PUT payload.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Update key-value store](/api/v2/key-value-store-put) endpoint.", @@ -793,7 +837,7 @@ "Setup": null }, { - "Order": 73, + "Order": 77, "Title": "Delete record from the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-record-delete", "Description": "Removes a record specified by a key from the default key-value store of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store record](/api/v2/key-value-store-record-delete) endpoint.", @@ -804,7 +848,7 @@ "Setup": null }, { - "Order": 74, + "Order": 78, "Title": "Get record from the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-record-get", "Description": "Gets a value stored under a specific key in the default key-value store of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store record](/api/v2/key-value-store-record-get) endpoint.", @@ -815,7 +859,7 @@ "Setup": null }, { - "Order": 75, + "Order": 79, "Title": "Set record in the default key-value store of an Actor run (POST)", "Slug": "actorrun-keyvaluestore-record-post", "Description": "Stores a value under a specific key in the default key-value store of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record (POST)](/api/v2/key-value-store-record-post) endpoint.", @@ -826,7 +870,7 @@ "Setup": null }, { - "Order": 76, + "Order": 80, "Title": "Set record in the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-record-put", "Description": "Stores a value under a specific key in the default key-value store of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record](/api/v2/key-value-store-record-put) endpoint.", @@ -837,7 +881,7 @@ "Setup": null }, { - "Order": 77, + "Order": 81, "Title": "Download records from the default key-value store of an Actor run", "Slug": "actorrun-keyvaluestore-records-get", "Description": "Downloads all records from the default key-value store of the Actor run as a ZIP archive.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Download key-value store records](/api/v2/key-value-store-records-get) endpoint.", @@ -848,7 +892,7 @@ "Setup": null }, { - "Order": 78, + "Order": 82, "Title": "Delete the default request queue of an Actor run", "Slug": "actorrun-requestqueue-delete", "Description": "Deletes the default request queue associated with an Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request queue](/api/v2/request-queue-delete) endpoint.", @@ -859,7 +903,7 @@ "Setup": null }, { - "Order": 79, + "Order": 83, "Title": "Get the default request queue of an Actor run", "Slug": "actorrun-requestqueue-get", "Description": "Returns the default request queue associated with an Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue](/api/v2/request-queue-get) endpoint.", @@ -870,7 +914,7 @@ "Setup": null }, { - "Order": 80, + "Order": 84, "Title": "Get the default request queue head for an Actor run", "Slug": "actorrun-requestqueue-head-get", "Description": "Returns the given number of first requests from the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue head](/api/v2/request-queue-head-get) endpoint.", @@ -881,7 +925,7 @@ "Setup": null }, { - "Order": 81, + "Order": 85, "Title": "Get and lock the default request queue head for an Actor run", "Slug": "actorrun-requestqueue-head-lock-post", "Description": "Returns the given number of first requests from the default request queue of the Actor run\nand locks them for the given time.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get and lock request queue head](/api/v2/request-queue-head-lock-post) endpoint.", @@ -892,7 +936,7 @@ "Setup": null }, { - "Order": 82, + "Order": 86, "Title": "Update the default request queue of an Actor run", "Slug": "actorrun-requestqueue-put", "Description": "Updates the default request queue associated with an Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request queue](/api/v2/request-queue-put) endpoint.", @@ -903,7 +947,7 @@ "Setup": null }, { - "Order": 83, + "Order": 87, "Title": "Delete request from the default request queue of an Actor run", "Slug": "actorrun-requestqueue-request-delete", "Description": "Deletes a request from the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request from request queue](/api/v2/request-queue-request-delete) endpoint.", @@ -914,7 +958,7 @@ "Setup": null }, { - "Order": 84, + "Order": 88, "Title": "Get request from the default request queue of an Actor run", "Slug": "actorrun-requestqueue-request-get", "Description": "Returns a request from the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request from request queue](/api/v2/request-queue-request-get) endpoint.", @@ -925,7 +969,7 @@ "Setup": null }, { - "Order": 85, + "Order": 89, "Title": "Delete lock on request in the default request queue of an Actor run", "Slug": "actorrun-requestqueue-request-lock-delete", "Description": "Deletes a request lock in the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete lock on request in request queue](/api/v2/request-queue-request-lock-delete) endpoint.", @@ -936,7 +980,7 @@ "Setup": null }, { - "Order": 86, + "Order": 90, "Title": "Prolong lock on request in the default request queue of an Actor run", "Slug": "actorrun-requestqueue-request-lock-put", "Description": "Prolongs a request lock in the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Prolong lock on request in request queue](/api/v2/request-queue-request-lock-put) endpoint.", @@ -947,7 +991,7 @@ "Setup": null }, { - "Order": 87, + "Order": 91, "Title": "Update request in the default request queue of an Actor run", "Slug": "actorrun-requestqueue-request-put", "Description": "Updates a request in the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request in request queue](/api/v2/request-queue-request-put) endpoint.", @@ -958,7 +1002,7 @@ "Setup": null }, { - "Order": 88, + "Order": 92, "Title": "Batch delete requests from the default request queue of an Actor run", "Slug": "actorrun-requestqueue-requests-batch-delete", "Description": "Batch-deletes requests from the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch delete requests from request queue](/api/v2/request-queue-requests-batch-delete) endpoint.", @@ -969,7 +1013,7 @@ "Setup": null }, { - "Order": 89, + "Order": 93, "Title": "Batch add requests to the default request queue of an Actor run", "Slug": "actorrun-requestqueue-requests-batch-post", "Description": "Adds requests to the default request queue of the Actor run in batch.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch add requests to request queue](/api/v2/request-queue-requests-batch-post) endpoint.", @@ -980,7 +1024,7 @@ "Setup": null }, { - "Order": 90, + "Order": 94, "Title": "List requests in the default request queue of an Actor run", "Slug": "actorrun-requestqueue-requests-get", "Description": "Returns a list of requests from the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[List requests in request queue](/api/v2/request-queue-requests-get) endpoint.", @@ -991,7 +1035,7 @@ "Setup": null }, { - "Order": 91, + "Order": 95, "Title": "Add request to the default request queue of an Actor run", "Slug": "actorrun-requestqueue-requests-post", "Description": "Adds a request to the default request queue of the Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Add request to request queue](/api/v2/request-queue-requests-post) endpoint.", @@ -1002,7 +1046,7 @@ "Setup": null }, { - "Order": 92, + "Order": 96, "Title": "Unlock requests in the default request queue of an Actor run", "Slug": "actorrun-requestqueue-requests-unlock-post", "Description": "Unlocks requests in the default request queue of the Actor run that are currently locked by the client.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Unlock requests in request queue](/api/v2/request-queue-requests-unlock-post) endpoint.", @@ -1013,7 +1057,7 @@ "Setup": null }, { - "Order": 93, + "Order": 97, "Title": "Abort Actor\u0027s last run", "Slug": "actor-runs-last-abort-post", "Description": "Aborts the last run of the specified Actor and returns an object that\ncontains all the details about the run.\n\nThis endpoint is a shortcut for [Abort Actor run](/api/v2/actor-run-abort-post)\non the Actor\u0027s last run. Only runs that are starting or running are aborted.\nFor runs with status \u0060FINISHED\u0060, \u0060FAILED\u0060, \u0060ABORTING\u0060 and \u0060TIMED-OUT\u0060 this call\ndoes nothing.", @@ -1024,7 +1068,7 @@ "Setup": null }, { - "Order": 94, + "Order": 98, "Title": "Delete the default dataset of an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-delete", "Description": "Deletes the default dataset associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Delete dataset](/api/v2/dataset-delete) endpoint.", @@ -1035,7 +1079,7 @@ "Setup": null }, { - "Order": 95, + "Order": 99, "Title": "Get the default dataset of an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-get", "Description": "Returns the default dataset associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Get dataset](/api/v2/dataset-get) endpoint.", @@ -1046,7 +1090,7 @@ "Setup": null }, { - "Order": 96, + "Order": 100, "Title": "Get the default dataset items from an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-items-get", "Description": "Returns data stored in the default dataset of the last Actor run in the desired format.\n\nThis endpoint is a shortcut that resolves the last run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset items](/api/v2/dataset-items-get) endpoint.", @@ -1057,7 +1101,7 @@ "Setup": null }, { - "Order": 97, + "Order": 101, "Title": "Store items in the default dataset of an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-items-post", "Description": "Appends an item or an array of items to the end of the last Actor run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the last run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Store items in dataset](/api/v2/dataset-items-post) endpoint.\n\nTo save bandwidth and speed up your upload, you can send the request payload compressed and set the \u0060Content-Encoding\u0060 header accordingly.\n\nBelow is a list of supported \u0060Content-Encoding\u0060 types.\n\n* Brotli: \u0060Content-Encoding: br\u0060\n* Gzip: \u0060Content-Encoding: gzip\u0060\n* Deflate: \u0060Content-Encoding: deflate\u0060", @@ -1068,7 +1112,7 @@ "Setup": null }, { - "Order": 98, + "Order": 102, "Title": "Update the default dataset of an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-put", "Description": "Updates the default dataset associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Update dataset](/api/v2/dataset-put) endpoint.", @@ -1079,7 +1123,7 @@ "Setup": null }, { - "Order": 99, + "Order": 103, "Title": "Get the default dataset statistics for an Actor\u0027s last run", "Slug": "actor-runs-last-dataset-statistics-get", "Description": "Returns statistics for the last Actor run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the last run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset statistics](/api/v2/dataset-statistics-get) endpoint.", @@ -1090,7 +1134,7 @@ "Setup": null }, { - "Order": 100, + "Order": 104, "Title": "Delete the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-delete", "Description": "Deletes the last Actor run key-value store.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store](/api/v2/key-value-store-delete) endpoint.", @@ -1101,7 +1145,7 @@ "Setup": null }, { - "Order": 101, + "Order": 105, "Title": "Get the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-get", "Description": "Gets an object that contains all the details about the default key-value store associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store](/api/v2/key-value-store-get) endpoint.", @@ -1112,7 +1156,7 @@ "Setup": null }, { - "Order": 102, + "Order": 106, "Title": "Get list of keys in the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-keys-get", "Description": "Returns a list of keys for the default key-value store of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get) endpoint.", @@ -1123,7 +1167,7 @@ "Setup": null }, { - "Order": 103, + "Order": 107, "Title": "Update the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-put", "Description": "Updates the last Actor run key-value store\u0027s name and general resource access level using a value specified by a JSON object\npassed in the PUT payload.\n\nThis endpoint is a shortcut for getting the run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Update key-value store](/api/v2/key-value-store-put) endpoint.", @@ -1134,7 +1178,7 @@ "Setup": null }, { - "Order": 104, + "Order": 108, "Title": "Delete record from the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-record-delete", "Description": "Removes a record specified by a key from the default key-value store of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store record](/api/v2/key-value-store-record-delete) endpoint.", @@ -1145,7 +1189,7 @@ "Setup": null }, { - "Order": 105, + "Order": 109, "Title": "Get record from the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-record-get", "Description": "Gets a value stored under a specific key in the default key-value store of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store record](/api/v2/key-value-store-record-get) endpoint.", @@ -1156,7 +1200,7 @@ "Setup": null }, { - "Order": 106, + "Order": 110, "Title": "Set record in the default key-value store of an Actor\u0027s last run (POST)", "Slug": "actor-runs-last-keyvaluestore-record-post", "Description": "Stores a value under a specific key in the default key-value store of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record (POST)](/api/v2/key-value-store-record-post) endpoint.", @@ -1167,7 +1211,7 @@ "Setup": null }, { - "Order": 107, + "Order": 111, "Title": "Set record in the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-record-put", "Description": "Stores a value under a specific key in the default key-value store of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record](/api/v2/key-value-store-record-put) endpoint.", @@ -1178,7 +1222,7 @@ "Setup": null }, { - "Order": 108, + "Order": 112, "Title": "Download records from the default key-value store of an Actor\u0027s last run", "Slug": "actor-runs-last-keyvaluestore-records-get", "Description": "Downloads all records from the default key-value store of the last Actor run as a ZIP archive.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Download key-value store records](/api/v2/key-value-store-records-get) endpoint.", @@ -1189,7 +1233,7 @@ "Setup": null }, { - "Order": 109, + "Order": 113, "Title": "Delete the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-delete", "Description": "Deletes the default request queue associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request queue](/api/v2/request-queue-delete) endpoint.", @@ -1200,7 +1244,7 @@ "Setup": null }, { - "Order": 110, + "Order": 114, "Title": "Get the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-get", "Description": "Returns the default request queue associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue](/api/v2/request-queue-get) endpoint.", @@ -1211,7 +1255,7 @@ "Setup": null }, { - "Order": 111, + "Order": 115, "Title": "Get the default request queue head for an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-head-get", "Description": "Returns the given number of first requests from the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue head](/api/v2/request-queue-head-get) endpoint.", @@ -1222,7 +1266,7 @@ "Setup": null }, { - "Order": 112, + "Order": 116, "Title": "Get and lock the default request queue head for an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-head-lock-post", "Description": "Returns the given number of first requests from the default request queue of the last Actor run\nand locks them for the given time.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get and lock request queue head](/api/v2/request-queue-head-lock-post) endpoint.", @@ -1233,7 +1277,7 @@ "Setup": null }, { - "Order": 113, + "Order": 117, "Title": "Update the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-put", "Description": "Updates the default request queue associated with the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request queue](/api/v2/request-queue-put) endpoint.", @@ -1244,7 +1288,7 @@ "Setup": null }, { - "Order": 114, + "Order": 118, "Title": "Delete request from the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-request-delete", "Description": "Deletes a request from the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request from request queue](/api/v2/request-queue-request-delete) endpoint.", @@ -1255,7 +1299,7 @@ "Setup": null }, { - "Order": 115, + "Order": 119, "Title": "Get request from the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-request-get", "Description": "Returns a request from the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request from request queue](/api/v2/request-queue-request-get) endpoint.", @@ -1266,7 +1310,7 @@ "Setup": null }, { - "Order": 116, + "Order": 120, "Title": "Delete lock on request in the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-request-lock-delete", "Description": "Deletes a request lock in the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete lock on request in request queue](/api/v2/request-queue-request-lock-delete) endpoint.", @@ -1277,7 +1321,7 @@ "Setup": null }, { - "Order": 117, + "Order": 121, "Title": "Prolong lock on request in the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-request-lock-put", "Description": "Prolongs a request lock in the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Prolong lock on request in request queue](/api/v2/request-queue-request-lock-put) endpoint.", @@ -1288,7 +1332,7 @@ "Setup": null }, { - "Order": 118, + "Order": 122, "Title": "Update request in the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-request-put", "Description": "Updates a request in the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request in request queue](/api/v2/request-queue-request-put) endpoint.", @@ -1299,7 +1343,7 @@ "Setup": null }, { - "Order": 119, + "Order": 123, "Title": "Batch delete requests from the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-requests-batch-delete", "Description": "Batch-deletes requests from the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch delete requests from request queue](/api/v2/request-queue-requests-batch-delete) endpoint.", @@ -1310,7 +1354,7 @@ "Setup": null }, { - "Order": 120, + "Order": 124, "Title": "Batch add requests to the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-requests-batch-post", "Description": "Adds requests to the default request queue of the last Actor run in batch.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch add requests to request queue](/api/v2/request-queue-requests-batch-post) endpoint.", @@ -1321,7 +1365,7 @@ "Setup": null }, { - "Order": 121, + "Order": 125, "Title": "List requests in the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-requests-get", "Description": "Returns a list of requests from the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[List requests in request queue](/api/v2/request-queue-requests-get) endpoint.", @@ -1332,7 +1376,7 @@ "Setup": null }, { - "Order": 122, + "Order": 126, "Title": "Add request to the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-requests-post", "Description": "Adds a request to the default request queue of the last Actor run.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Add request to request queue](/api/v2/request-queue-requests-post) endpoint.", @@ -1343,7 +1387,7 @@ "Setup": null }, { - "Order": 123, + "Order": 127, "Title": "Unlock requests in the default request queue of an Actor\u0027s last run", "Slug": "actor-runs-last-requestqueue-requests-unlock-post", "Description": "Unlocks requests in the default request queue of the last Actor run that are currently locked by the client.\n\nThis endpoint is a shortcut for getting the last run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Unlock requests in request queue](/api/v2/request-queue-requests-unlock-post) endpoint.", @@ -1354,7 +1398,7 @@ "Setup": null }, { - "Order": 124, + "Order": 128, "Title": "Get log of an Actor\u0027s last run", "Slug": "actor-runs-last-log-get", "Description": "Retrieves last Actor run\u0027s logs.\n\nThis endpoint is a shortcut for getting last Actor run\u0027s log. Same as [Get Actor build or run log](/api/v2/log-get) endpoint.", @@ -1365,7 +1409,7 @@ "Setup": null }, { - "Order": 125, + "Order": 129, "Title": "Metamorph Actor\u0027s last run", "Slug": "actor-runs-last-metamorph-post", "Description": "Transforms the last run of the specified Actor into a run of another Actor with\na new input.\n\nThis endpoint is a shortcut for [Metamorph Actor run](/api/v2/actor-run-metamorph-post)\non the Actor\u0027s last run.", @@ -1376,7 +1420,7 @@ "Setup": null }, { - "Order": 126, + "Order": 130, "Title": "Reboot Actor\u0027s last run", "Slug": "actor-runs-last-reboot-post", "Description": "Reboots the last run of the specified Actor and returns an object that\ncontains all the details about the rebooted run.\n\nThis endpoint is a shortcut for [Reboot Actor run](/api/v2/actor-run-reboot-post)\non the Actor\u0027s last run. Only runs with status \u0060RUNNING\u0060 can be rebooted. The run\u0027s\ncontainer will be restarted, so any data not persisted in the key-value store, dataset,\nor request queue will be lost.", @@ -1387,7 +1431,7 @@ "Setup": null }, { - "Order": 127, + "Order": 131, "Title": "Abort last run of an Actor task", "Slug": "actortask-runs-last-abort-post", "Description": "Aborts the last run of the specified Actor task and returns an object that\ncontains all the details about the run.\n\nThis endpoint is a shortcut for [Abort Actor run](/api/v2/actor-run-abort-post)\non the Actor task\u0027s last run. Only runs that are starting or running are aborted.\nFor runs with status \u0060FINISHED\u0060, \u0060FAILED\u0060, \u0060ABORTING\u0060 and \u0060TIMED-OUT\u0060 this call\ndoes nothing.", @@ -1398,7 +1442,7 @@ "Setup": null }, { - "Order": 128, + "Order": 132, "Title": "Delete the default dataset of an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-delete", "Description": "Deletes the default dataset associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Delete dataset](/api/v2/dataset-delete) endpoint.", @@ -1409,7 +1453,7 @@ "Setup": null }, { - "Order": 129, + "Order": 133, "Title": "Get the default dataset of an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-get", "Description": "Returns the default dataset associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Get dataset](/api/v2/dataset-get) endpoint.", @@ -1420,7 +1464,7 @@ "Setup": null }, { - "Order": 130, + "Order": 134, "Title": "Get the default dataset items from an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-items-get", "Description": "Returns data stored in the default dataset of the last Actor task run in the desired format.\n\nThis endpoint is a shortcut that resolves the last task run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset items](/api/v2/dataset-items-get) endpoint.", @@ -1431,7 +1475,7 @@ "Setup": null }, { - "Order": 131, + "Order": 135, "Title": "Store items in the default dataset of an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-items-post", "Description": "Appends an item or an array of items to the end of the last Actor task run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the last task run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Store items in dataset](/api/v2/dataset-items-post) endpoint.\n\nTo save bandwidth and speed up your upload, you can send the request payload compressed and set the \u0060Content-Encoding\u0060 header accordingly.\n\nBelow is a list of supported \u0060Content-Encoding\u0060 types.\n\n* Brotli: \u0060Content-Encoding: br\u0060\n* Gzip: \u0060Content-Encoding: gzip\u0060\n* Deflate: \u0060Content-Encoding: deflate\u0060", @@ -1442,7 +1486,7 @@ "Setup": null }, { - "Order": 132, + "Order": 136, "Title": "Update the default dataset of an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-put", "Description": "Updates the default dataset associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultDatasetId\u0060 and then using the\n[Update dataset](/api/v2/dataset-put) endpoint.", @@ -1453,7 +1497,7 @@ "Setup": null }, { - "Order": 133, + "Order": 137, "Title": "Get the default dataset statistics for an Actor task\u0027s last run", "Slug": "actortask-runs-last-dataset-statistics-get", "Description": "Returns statistics for the last Actor task run\u0027s default dataset.\n\nThis endpoint is a shortcut that resolves the last task run\u0027s \u0060defaultDatasetId\u0060 and proxies to the\n[Get dataset statistics](/api/v2/dataset-statistics-get) endpoint.", @@ -1464,7 +1508,7 @@ "Setup": null }, { - "Order": 134, + "Order": 138, "Title": "Delete the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-delete", "Description": "Deletes the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store](/api/v2/key-value-store-delete) endpoint.", @@ -1475,7 +1519,7 @@ "Setup": null }, { - "Order": 135, + "Order": 139, "Title": "Get the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-get", "Description": "Gets an object that contains all the details about the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store](/api/v2/key-value-store-get) endpoint.", @@ -1486,7 +1530,7 @@ "Setup": null }, { - "Order": 136, + "Order": 140, "Title": "Get list of keys in the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-keys-get", "Description": "Returns a list of keys for the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get) endpoint.", @@ -1497,7 +1541,7 @@ "Setup": null }, { - "Order": 137, + "Order": 141, "Title": "Update the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-put", "Description": "Updates the default key-value store associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Update key-value store](/api/v2/key-value-store-put) endpoint.", @@ -1508,7 +1552,7 @@ "Setup": null }, { - "Order": 138, + "Order": 142, "Title": "Delete record from the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-record-delete", "Description": "Removes a record specified by a key from the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Delete key-value store record](/api/v2/key-value-store-record-delete) endpoint.", @@ -1519,7 +1563,7 @@ "Setup": null }, { - "Order": 139, + "Order": 143, "Title": "Get record from the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-record-get", "Description": "Gets a value stored under a specific key in the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Get key-value store record](/api/v2/key-value-store-record-get) endpoint.", @@ -1530,7 +1574,7 @@ "Setup": null }, { - "Order": 140, + "Order": 144, "Title": "Set record in the default key-value store of an Actor task\u0027s last run (POST)", "Slug": "actortask-runs-last-keyvaluestore-record-post", "Description": "Stores a value under a specific key in the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record (POST)](/api/v2/key-value-store-record-post) endpoint.", @@ -1541,7 +1585,7 @@ "Setup": null }, { - "Order": 141, + "Order": 145, "Title": "Set record in the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-record-put", "Description": "Stores a value under a specific key in the default key-value store of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Set key-value store record](/api/v2/key-value-store-record-put) endpoint.", @@ -1552,7 +1596,7 @@ "Setup": null }, { - "Order": 142, + "Order": 146, "Title": "Download records from the default key-value store of an Actor task\u0027s last run", "Slug": "actortask-runs-last-keyvaluestore-records-get", "Description": "Downloads all records from the default key-value store of the last Actor task run as a ZIP archive.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultKeyValueStoreId\u0060 and then using the\n[Download key-value store records](/api/v2/key-value-store-records-get) endpoint.", @@ -1563,7 +1607,7 @@ "Setup": null }, { - "Order": 143, + "Order": 147, "Title": "Delete the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-delete", "Description": "Deletes the default request queue associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request queue](/api/v2/request-queue-delete) endpoint.", @@ -1574,7 +1618,7 @@ "Setup": null }, { - "Order": 144, + "Order": 148, "Title": "Get the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-get", "Description": "Returns the default request queue associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue](/api/v2/request-queue-get) endpoint.", @@ -1585,7 +1629,7 @@ "Setup": null }, { - "Order": 145, + "Order": 149, "Title": "Get the default request queue head for an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-head-get", "Description": "Returns the given number of first requests from the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request queue head](/api/v2/request-queue-head-get) endpoint.", @@ -1596,7 +1640,7 @@ "Setup": null }, { - "Order": 146, + "Order": 150, "Title": "Get and lock the default request queue head for an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-head-lock-post", "Description": "Returns the given number of first requests from the default request queue of the last Actor task run\nand locks them for the given time.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get and lock request queue head](/api/v2/request-queue-head-lock-post) endpoint.", @@ -1607,7 +1651,7 @@ "Setup": null }, { - "Order": 147, + "Order": 151, "Title": "Update the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-put", "Description": "Updates the default request queue associated with the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request queue](/api/v2/request-queue-put) endpoint.", @@ -1618,7 +1662,7 @@ "Setup": null }, { - "Order": 148, + "Order": 152, "Title": "Delete request from the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-request-delete", "Description": "Deletes a request from the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete request from request queue](/api/v2/request-queue-request-delete) endpoint.", @@ -1629,7 +1673,7 @@ "Setup": null }, { - "Order": 149, + "Order": 153, "Title": "Get request from the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-request-get", "Description": "Returns a request from the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Get request from request queue](/api/v2/request-queue-request-get) endpoint.", @@ -1640,7 +1684,7 @@ "Setup": null }, { - "Order": 150, + "Order": 154, "Title": "Delete lock on request in the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-request-lock-delete", "Description": "Deletes a request lock in the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Delete lock on request in request queue](/api/v2/request-queue-request-lock-delete) endpoint.", @@ -1651,7 +1695,7 @@ "Setup": null }, { - "Order": 151, + "Order": 155, "Title": "Prolong lock on request in the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-request-lock-put", "Description": "Prolongs a request lock in the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Prolong lock on request in request queue](/api/v2/request-queue-request-lock-put) endpoint.", @@ -1662,7 +1706,7 @@ "Setup": null }, { - "Order": 152, + "Order": 156, "Title": "Update request in the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-request-put", "Description": "Updates a request in the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Update request in request queue](/api/v2/request-queue-request-put) endpoint.", @@ -1673,7 +1717,7 @@ "Setup": null }, { - "Order": 153, + "Order": 157, "Title": "Batch delete requests from the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-requests-batch-delete", "Description": "Batch-deletes requests from the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch delete requests from request queue](/api/v2/request-queue-requests-batch-delete) endpoint.", @@ -1684,7 +1728,7 @@ "Setup": null }, { - "Order": 154, + "Order": 158, "Title": "Batch add requests to the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-requests-batch-post", "Description": "Adds requests to the default request queue of the last Actor task run in batch.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Batch add requests to request queue](/api/v2/request-queue-requests-batch-post) endpoint.", @@ -1695,7 +1739,7 @@ "Setup": null }, { - "Order": 155, + "Order": 159, "Title": "List requests in the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-requests-get", "Description": "Returns a list of requests from the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[List requests in request queue](/api/v2/request-queue-requests-get) endpoint.", @@ -1706,7 +1750,7 @@ "Setup": null }, { - "Order": 156, + "Order": 160, "Title": "Add request to the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-requests-post", "Description": "Adds a request to the default request queue of the last Actor task run.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Add request to request queue](/api/v2/request-queue-requests-post) endpoint.", @@ -1717,7 +1761,7 @@ "Setup": null }, { - "Order": 157, + "Order": 161, "Title": "Unlock requests in the default request queue of an Actor task\u0027s last run", "Slug": "actortask-runs-last-requestqueue-requests-unlock-post", "Description": "Unlocks requests in the default request queue of the last Actor task run that are currently locked by the client.\n\nThis endpoint is a shortcut for getting the last task run\u0027s \u0060defaultRequestQueueId\u0060 and then using the\n[Unlock requests in request queue](/api/v2/request-queue-requests-unlock-post) endpoint.", @@ -1728,7 +1772,7 @@ "Setup": null }, { - "Order": 158, + "Order": 162, "Title": "Get log of an Actor task\u0027s last run", "Slug": "actortask-last-log-get", "Description": "Retrieves last Actor task run\u0027s logs.\n\nThis endpoint is a shortcut for getting last Actor task run\u0027s log. Same as [Get Actor build or run log](/api/v2/log-get) endpoint.", @@ -1739,7 +1783,7 @@ "Setup": null }, { - "Order": 159, + "Order": 163, "Title": "Metamorph last run of an Actor task", "Slug": "actortask-runs-last-metamorph-post", "Description": "Transforms the last run of the specified Actor task into a run of another Actor with\na new input.\n\nThis endpoint is a shortcut for [Metamorph Actor run](/api/v2/actor-run-metamorph-post)\non the Actor task\u0027s last run.", @@ -1750,7 +1794,7 @@ "Setup": null }, { - "Order": 160, + "Order": 164, "Title": "Reboot last run of an Actor task", "Slug": "actortask-runs-last-reboot-post", "Description": "Reboots the last run of the specified Actor task and returns an object that\ncontains all the details about the rebooted run.\n\nThis endpoint is a shortcut for [Reboot Actor run](/api/v2/actor-run-reboot-post)\non the Actor task\u0027s last run. Only runs with status \u0060RUNNING\u0060 can be rebooted. The run\u0027s\ncontainer will be restarted, so any data not persisted in the key-value store, dataset,\nor request queue will be lost.", @@ -1761,7 +1805,7 @@ "Setup": null }, { - "Order": 161, + "Order": 165, "Title": "Get Actor build or run log", "Slug": "log-get", "Description": "Retrieves logs for a specific Actor build or run.", @@ -1772,7 +1816,7 @@ "Setup": null }, { - "Order": 162, + "Order": 166, "Title": "Delete schedule", "Slug": "schedule-delete", "Description": "Deletes a schedule.", @@ -1783,7 +1827,7 @@ "Setup": null }, { - "Order": 163, + "Order": 167, "Title": "Get schedule", "Slug": "schedule-get", "Description": "Gets the schedule object with all details.", @@ -1794,7 +1838,18 @@ "Setup": null }, { - "Order": 164, + "Order": 168, + "Title": "Invoke schedule", + "Slug": "schedule-invoke-post", + "Description": "Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.\n\nThe invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn\u0027t change the schedule\u0027s\n\u0060lastRunAt\u0060 or \u0060nextRunAt\u0060. The response doesn\u0027t contain the started runs.", + "Language": "http", + "Code": "### Invoke schedule\n# @name schedule_invoke_post\nPOST {{host}}/v2/schedules/{{scheduleId}}/invoke\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "schedule_invoke_post", + "Setup": null + }, + { + "Order": 169, "Title": "Get schedule log", "Slug": "schedule-log-get", "Description": "Gets the schedule log as a JSON array containing information about up to a\n1000 invocations of the schedule.", @@ -1805,10 +1860,10 @@ "Setup": null }, { - "Order": 165, + "Order": 170, "Title": "Update schedule", "Slug": "schedule-put", - "Description": "Updates a schedule using values specified by a schedule object passed as\nJSON in the POST payload. If the object does not define a specific property,\nits value will not be updated.\n\nThe response is the full schedule object as returned by the\n[Get schedule](/api/v2/schedule-get) endpoint.\n\n**The request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!**\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).", + "Description": "Updates a schedule using values specified by a schedule object passed as\nJSON in the POST payload. If the object does not define a specific property,\nits value will not be updated.\n\nThe response is the full schedule object as returned by the\n[Get schedule](/api/v2/schedule-get) endpoint.\n\n**The request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!**\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).", "Language": "http", "Code": "### Update schedule\n# @name schedule_put\nPUT {{host}}/v2/schedules/{{scheduleId}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022notifications\u0022: {\n \u0022email\u0022: true\n },\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -1816,7 +1871,7 @@ "Setup": null }, { - "Order": 166, + "Order": 171, "Title": "Get list of schedules", "Slug": "schedules-get", "Description": "Gets the list of schedules that the user created.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters.\nIt will not return more than 1000 records.\n\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder. To sort the records in descending order, use the \u0060desc=1\u0060 parameter.", @@ -1827,10 +1882,10 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 167, + "Order": 172, "Title": "Create schedule", "Slug": "schedules-post", - "Description": "Creates a new schedule with settings provided by the schedule object passed\nas JSON in the payload. The response is the created schedule object.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP header!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).", + "Description": "Creates a new schedule with settings provided by the schedule object passed\nas JSON in the payload. The response is the created schedule object.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP header!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).", "Language": "http", "Code": "### Create schedule\n# @name schedules_post\nPOST {{host}}/v2/schedules\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022name\u0022: \u0022string\u0022,\n \u0022isEnabled\u0022: true,\n \u0022isExclusive\u0022: true,\n \u0022cronExpression\u0022: \u0022string\u0022,\n \u0022timezone\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022title\u0022: \u0022string\u0022,\n \u0022notifications\u0022: {\n \u0022email\u0022: true\n },\n \u0022actions\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022,\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022runInput\u0022: {},\n \u0022runOptions\u0022: {}\n }\n ]\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 409\n# Description: Conflict - the request could not be completed due to a conflict with the current state of the resource.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -1838,7 +1893,7 @@ "Setup": null }, { - "Order": 168, + "Order": 173, "Title": "Delete dataset", "Slug": "dataset-delete", "Description": "Deletes a specific dataset.", @@ -1849,7 +1904,7 @@ "Setup": null }, { - "Order": 169, + "Order": 174, "Title": "Get dataset", "Slug": "dataset-get", "Description": "Returns dataset object for given dataset ID.\n\nThis does not return dataset items, only information about the storage itself.\nTo retrieve dataset items, use the [Get dataset items](/api/v2/dataset-items-get) endpoint.\n\n:::note\n\nKeep in mind that attributes \u0060itemCount\u0060 and \u0060cleanItemCount\u0060 are not propagated right away after data are pushed into a dataset.\n\n:::\n\nThere is a short period (up to 5 seconds) during which these counters may not match with exact counts in dataset items.", @@ -1860,7 +1915,7 @@ "Setup": null }, { - "Order": 170, + "Order": 175, "Title": "Get dataset items", "Slug": "dataset-items-get", "Description": "Returns data stored in the dataset in a desired format.\n\n### Response format\n\nThe format of the response depends on \u003Ccode\u003Eformat\u003C/code\u003E query parameter.\n\nThe \u003Ccode\u003Eformat\u003C/code\u003E parameter can have one of the following values:\n\u003Ccode\u003Ejson\u003C/code\u003E, \u003Ccode\u003Ejsonl\u003C/code\u003E, \u003Ccode\u003Exml\u003C/code\u003E, \u003Ccode\u003Ehtml\u003C/code\u003E,\n\u003Ccode\u003Ecsv\u003C/code\u003E, \u003Ccode\u003Exlsx\u003C/code\u003E and \u003Ccode\u003Erss\u003C/code\u003E.\n\nThe following table describes how each format is treated.\n\n\u003Ctable\u003E\n \u003Ctr\u003E\n \u003Cth\u003EFormat\u003C/th\u003E\n \u003Cth\u003EItems\u003C/th\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Ejson\u003C/code\u003E\u003C/td\u003E\n \u003Ctd rowspan=\u00223\u0022\u003EThe response is a JSON, JSONL or XML array of raw item objects.\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Ejsonl\u003C/code\u003E\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Exml\u003C/code\u003E\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Ehtml\u003C/code\u003E\u003C/td\u003E\n \u003Ctd rowspan=\u00223\u0022\u003EThe response is a HTML, CSV or XLSX table, where columns correspond to the\n properties of the item and rows correspond to each dataset item.\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Ecsv\u003C/code\u003E\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Exlsx\u003C/code\u003E\u003C/td\u003E\n \u003C/tr\u003E\n \u003Ctr\u003E\n \u003Ctd\u003E\u003Ccode\u003Erss\u003C/code\u003E\u003C/td\u003E\n \u003Ctd colspan=\u00222\u0022\u003EThe response is a RSS file. Each item is displayed as child elements of one\n \u003Ccode\u003E\u0026lt;item\u0026gt;\u003C/code\u003E.\u003C/td\u003E\n \u003C/tr\u003E\n\u003C/table\u003E\n\nNote that CSV, XLSX and HTML tables are limited to 2000 columns and the column names cannot be longer than 200 characters.\nJSON, XML and RSS formats do not have such restrictions.\n\n### Hidden fields\n\nThe top-level fields starting with the \u0060#\u0060 character are considered hidden.\nThese are useful to store debugging information and can be omitted from the output by providing the \u0060skipHidden=1\u0060 or \u0060clean=1\u0060 query parameters.\nFor example, if you store the following object to the dataset:\n\n\u0060\u0060\u0060\n{\n productName: \u0022iPhone Xs\u0022,\n description: \u0022Welcome to the big screens.\u0022\n #debug: {\n url: \u0022https://www.apple.com/lae/iphone-xs/\u0022,\n crawledAt: \u00222019-01-21T16:06:03.683Z\u0022\n }\n}\n\u0060\u0060\u0060\n\nThe \u0060#debug\u0060 field will be considered as hidden and can be omitted from the\nresults. This is useful to\nprovide nice cleaned data to end users, while keeping debugging info\navailable if needed. The Dataset object\nreturned by the API contains the number of such clean items in the\u0060dataset.cleanItemCount\u0060 property.\n\n### XML format extension\n\nWhen exporting results to XML or RSS formats, the names of object properties become XML tags and the corresponding values become tag\u0027s children. For example, the following JavaScript object:\n\n\u0060\u0060\u0060\n{\n name: \u0022Paul Newman\u0022,\n address: [\n { type: \u0022home\u0022, street: \u002221st\u0022, city: \u0022Chicago\u0022 },\n { type: \u0022office\u0022, street: null, city: null }\n ]\n}\n\u0060\u0060\u0060\n\nwill be transformed to the following XML snippet:\n\n\u0060\u0060\u0060\n\u003Cname\u003EPaul Newman\u003C/name\u003E\n\u003Caddress\u003E\n \u003Ctype\u003Ehome\u003C/type\u003E\n \u003Cstreet\u003E21st\u003C/street\u003E\n \u003Ccity\u003EChicago\u003C/city\u003E\n\u003C/address\u003E\n\u003Caddress\u003E\n \u003Ctype\u003Eoffice\u003C/type\u003E\n \u003Cstreet/\u003E\n \u003Ccity/\u003E\n\u003C/address\u003E\n\u0060\u0060\u0060\n\nIf the JavaScript object contains a property named \u0060@\u0060 then its sub-properties are exported as attributes of the parent XML\nelement.\nIf the parent XML element does not have any child elements then its value is taken from a JavaScript object property named \u0060#\u0060.\n\nFor example, the following JavaScript object:\n\n\u0060\u0060\u0060\n{\n \u0022address\u0022: [{\n \u0022@\u0022: {\n \u0022type\u0022: \u0022home\u0022\n },\n \u0022street\u0022: \u002221st\u0022,\n \u0022city\u0022: \u0022Chicago\u0022\n },\n {\n \u0022@\u0022: {\n \u0022type\u0022: \u0022office\u0022\n },\n \u0022#\u0022: \u0027unknown\u0027\n }]\n}\n\u0060\u0060\u0060\n\nwill be transformed to the following XML snippet:\n\n\u0060\u0060\u0060\n\u003Caddress type=\u0022home\u0022\u003E\n \u003Cstreet\u003E21st\u003C/street\u003E\n \u003Ccity\u003EChicago\u003C/city\u003E\n\u003C/address\u003E\n\u003Caddress type=\u0022office\u0022\u003Eunknown\u003C/address\u003E\n\u0060\u0060\u0060\n\nThis feature is also useful to customize your RSS feeds generated for various websites.\n\nBy default the whole result is wrapped in a \u0060\u003Citems\u003E\u0060 element and each page object is wrapped in a \u0060\u003Citem\u003E\u0060 element.\nYou can change this using \u003Ccode\u003ExmlRoot\u003C/code\u003E and \u003Ccode\u003ExmlRow\u003C/code\u003E url parameters.\n\n### Pagination\n\nThe generated response supports [pagination](#/introduction/pagination).\nThe pagination is always performed with the granularity of a single item, regardless whether \u003Ccode\u003Eunwind\u003C/code\u003E parameter was provided.\nBy default, the **Items** in the response are sorted by the time they were stored to the database, therefore you can use pagination to incrementally fetch the items as they are being added.\nNo limit exists to how many items can be returned in one response.\n\nIf you specify \u0060desc=1\u0060 query parameter, the results are returned in the reverse order than they were stored (i.e. from newest to oldest items).\nNote that only the order of **Items** is reversed, but not the order of the \u0060unwind\u0060 array elements.", @@ -1871,7 +1926,7 @@ "Setup": null }, { - "Order": 171, + "Order": 176, "Title": "Get dataset items headers", "Slug": "dataset-items-head", "Description": "Returns only the HTTP headers for the dataset items endpoint, without the response body.\nThis is useful to check pagination metadata or verify access without downloading the full dataset.", @@ -1882,7 +1937,7 @@ "Setup": null }, { - "Order": 172, + "Order": 177, "Title": "Store items in dataset", "Slug": "dataset-items-post", "Description": "Appends an item or an array of items to the end of the dataset.\nThe POST payload is a JSON object or a JSON array of objects to save into the dataset.\n\nIf the data you attempt to store in the dataset is invalid (meaning any of the items received by the API fails the validation), the whole request is discarded and the API will return a response with status code 400.\nFor more information about dataset schema validation, see [Dataset schema](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation).\n\n**IMPORTANT:** The limit of request payload size for the dataset is 5 MB. If the array exceeds the size, you\u0027ll need to split it into a number of smaller arrays.\n\nTo save bandwidth and speed up your upload, you can send the request payload compressed and set the \u0060Content-Encoding\u0060 header accordingly.\n\nBelow is a list of supported \u0060Content-Encoding\u0060 types.\n\n* Brotli: \u0060Content-Encoding: br\u0060\n* Gzip: \u0060Content-Encoding: gzip\u0060\n* Deflate: \u0060Content-Encoding: deflate\u0060", @@ -1893,7 +1948,7 @@ "Setup": null }, { - "Order": 173, + "Order": 178, "Title": "Update dataset", "Slug": "dataset-put", "Description": "Updates a dataset\u0027s name and general resource access level using a value specified by a JSON object passed in the PUT payload.\nThe response is the updated dataset object, as returned by the [Get dataset](/api/v2/dataset-get) API endpoint.", @@ -1904,7 +1959,7 @@ "Setup": null }, { - "Order": 174, + "Order": 179, "Title": "Get dataset statistics", "Slug": "dataset-statistics-get", "Description": "Returns statistics for given dataset.\n\nProvides only [field statistics](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation#dataset-field-statistics).", @@ -1915,7 +1970,7 @@ "Setup": null }, { - "Order": 175, + "Order": 180, "Title": "Get list of datasets", "Slug": "datasets-get", "Description": "Lists all of a user\u0027s datasets.\n\nThe response is a JSON array of objects,\nwhere each object contains basic information about one dataset.\n\nBy default, the objects are sorted by the \u0060createdAt\u0060 field in ascending\norder, therefore you can use pagination to incrementally fetch all datasets while new\nones are still being created. To sort them in descending order, use \u0060desc=1\u0060\nparameter. The endpoint supports pagination using \u0060limit\u0060 and \u0060offset\u0060\nparameters and it will not return more than 1000 array elements.", @@ -1926,7 +1981,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 176, + "Order": 181, "Title": "Create dataset", "Slug": "datasets-post", "Description": "Creates a dataset and returns its object.\nKeep in mind that data stored under unnamed dataset follows [data retention period](https://docs.apify.com/platform/storage#data-retention).\nIt creates a dataset with the given name if the parameter name is used.\nIf a dataset with the given name already exists then returns its object.", @@ -1937,7 +1992,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 177, + "Order": 182, "Title": "Delete key-value store", "Slug": "keyvaluestore-delete", "Description": "Deletes a key-value store.", @@ -1948,7 +2003,7 @@ "Setup": null }, { - "Order": 178, + "Order": 183, "Title": "Get key-value store", "Slug": "keyvaluestore-get", "Description": "Gets an object that contains all the details about a specific key-value\nstore.", @@ -1959,7 +2014,7 @@ "Setup": null }, { - "Order": 179, + "Order": 184, "Title": "Get list of key-value store keys", "Slug": "keyvaluestore-keys-get", "Description": "Returns a list of objects describing keys of a given key-value store, as\nwell as some information about the values (e.g. size).\n\nThis endpoint is paginated using \u0060exclusiveStartKey\u0060 and \u0060limit\u0060 parameters\n- see [Pagination](/api/v2#using-key) for more details.", @@ -1970,7 +2025,7 @@ "Setup": null }, { - "Order": 180, + "Order": 185, "Title": "Update key-value store", "Slug": "keyvaluestore-put", "Description": "Updates a key-value store\u0027s name and general resource access level using a value specified by a JSON object\npassed in the PUT payload.\n\nThe response is the updated key-value store object, as returned by the [Get key-value store](/api/v2/key-value-store-get) API endpoint.", @@ -1981,7 +2036,7 @@ "Setup": null }, { - "Order": 181, + "Order": 186, "Title": "Delete key-value store record", "Slug": "keyvaluestore-record-delete", "Description": "Removes a record specified by a key from the key-value store.", @@ -1992,7 +2047,7 @@ "Setup": null }, { - "Order": 182, + "Order": 187, "Title": "Get key-value store record", "Slug": "keyvaluestore-record-get", "Description": "Gets a value stored in the key-value store under a specific key.\n\nThe response body has the same \u0060Content-Encoding\u0060 header as it was set in\n[Set key-value store record](/api/v2/key-value-store-record-put).\n\nIf the request does not define the \u0060Accept-Encoding\u0060 HTTP header with the\nright encoding, the record will be decompressed.\n\nMost HTTP clients support decompression by default. After using the HTTP\nclient with decompression support, the \u0060Accept-Encoding\u0060 header is set by\nthe client and body is decompressed automatically.\n\nPlease note that for security reasons, Apify API can perform small modifications\nto HTML documents before they are served via this endpoint. To fetch the raw HTML\ncontent without any modifications, use the \u0060attachment\u0060 query parameter.", @@ -2003,7 +2058,7 @@ "Setup": null }, { - "Order": 183, + "Order": 188, "Title": "Check if key-value store record exists", "Slug": "keyvaluestore-record-head", "Description": "Check if a value is stored in the key-value store under a specific key.", @@ -2014,7 +2069,7 @@ "Setup": null }, { - "Order": 184, + "Order": 189, "Title": "Set key-value store record (POST)", "Slug": "keyvaluestore-record-post", "Description": "Stores a value under a specific key to the key-value store.\n\nThis endpoint is an alias for the [Set key-value store record](/api/v2/key-value-store-record-put) endpoint and behaves identically.", @@ -2025,7 +2080,7 @@ "Setup": null }, { - "Order": 185, + "Order": 190, "Title": "Set key-value store record", "Slug": "keyvaluestore-record-put", "Description": "Stores a value under a specific key to the key-value store.\n\nThe value is passed as the PUT payload and it is stored with a MIME content\ntype defined by the \u0060Content-Type\u0060 header and with encoding defined by the\n\u0060Content-Encoding\u0060 header.\n\nTo save bandwidth, storage, and speed up your upload, send the request\npayload compressed with Gzip compression and add the \u0060Content-Encoding: gzip\u0060\nheader. It is possible to set up another compression type with \u0060Content-Encoding\u0060\nrequest header.\n\nBelow is a list of supported \u0060Content-Encoding\u0060 types.\n\n* Brotli compression: \u0060Content-Encoding: br\u0060\n* Gzip compression: \u0060Content-Encoding: gzip\u0060\n* Deflate compression: \u0060Content-Encoding: deflate\u0060", @@ -2036,7 +2091,7 @@ "Setup": null }, { - "Order": 186, + "Order": 191, "Title": "Download key-value store records", "Slug": "keyvaluestore-records-get", "Description": "Downloads all records from the key-value store as a ZIP archive.\nEach record is stored as a separate file in the archive, with the filename equal to the record key.\n\nYou can optionally filter the records by \u0060collection\u0060 or \u0060prefix\u0060 to download only a subset of the store.", @@ -2047,7 +2102,7 @@ "Setup": null }, { - "Order": 187, + "Order": 192, "Title": "Get list of key-value stores", "Slug": "keyvaluestores-get", "Description": "Gets the list of key-value stores owned by the user.\n\nThe response is a list of objects, where each objects contains a basic\ninformation about a single key-value store.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 array elements.\n\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder, therefore you can use pagination to incrementally fetch all key-value stores\nwhile new ones are still being created. To sort the records in descending order, use\nthe \u0060desc=1\u0060 parameter.", @@ -2058,7 +2113,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 188, + "Order": 193, "Title": "Create key-value store", "Slug": "keyvaluestores-post", "Description": "Creates a key-value store and returns its object. The response is the same\nobject as returned by the [Get key-value store](/api/v2/key-value-store-get)\nendpoint.\n\nKeep in mind that data stored under unnamed store follows [data retention\nperiod](https://docs.apify.com/platform/storage#data-retention).\n\nIt creates a store with the given name if the parameter name is used.\nIf there is another store with the same name, the endpoint does not create a\nnew one and returns the existing object instead.", @@ -2069,7 +2124,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 189, + "Order": 194, "Title": "Delete request queue", "Slug": "requestqueue-delete", "Description": "Deletes given queue.", @@ -2080,7 +2135,7 @@ "Setup": null }, { - "Order": 190, + "Order": 195, "Title": "Get request queue", "Slug": "requestqueue-get", "Description": "Returns queue object for given queue ID.", @@ -2091,7 +2146,7 @@ "Setup": null }, { - "Order": 191, + "Order": 196, "Title": "Update request queue", "Slug": "requestqueue-put", "Description": "Updates a request queue\u0027s name and general resource access level using a value specified by a JSON object\npassed in the PUT payload.\n\nThe response is the updated request queue object, as returned by the\n[Get request queue](/api/v2/request-queue-get) API endpoint.", @@ -2102,7 +2157,7 @@ "Setup": null }, { - "Order": 192, + "Order": 197, "Title": "Batch delete requests from request queue", "Slug": "requestqueue-requests-batch-delete", "Description": "Batch-deletes given requests from the queue. The number of requests in a\nbatch is limited to 25. The response contains an array of unprocessed and\nprocessed requests.\nIf any delete operation fails because the request queue rate limit is\nexceeded or an internal failure occurs,\nthe failed request is returned in the \u0060unprocessedRequests\u0060 response\nparameter.\nYou can re-send these delete requests. It is recommended to use an\nexponential backoff algorithm for these retries.\nEach request is identified by its ID or uniqueKey parameter. You can use\neither of them to identify the request.", @@ -2113,7 +2168,7 @@ "Setup": null }, { - "Order": 193, + "Order": 198, "Title": "Batch add requests to request queue", "Slug": "requestqueue-requests-batch-post", "Description": "Adds requests to the queue in batch. The maximum requests in batch is limited\nto 25. The response contains an array of unprocessed and processed requests.\nIf any add operation fails because the request queue rate limit is exceeded\nor an internal failure occurs,\nthe failed request is returned in the unprocessedRequests response\nparameter.\nYou can resend these requests to add. It is recommended to use an\nexponential backoff algorithm for these retries.\nIf a request with the same \u0060uniqueKey\u0060 was already present in the queue,\nthen it returns an ID of the existing request.", @@ -2124,7 +2179,7 @@ "Setup": null }, { - "Order": 194, + "Order": 199, "Title": "Get list of request queues", "Slug": "requestqueues-get", "Description": "Lists all of a user\u0027s request queues. The response is a JSON array of\nobjects, where each object\ncontains basic information about one queue.\n\nBy default, the objects are sorted by the \u0060createdAt\u0060 field in ascending order,\ntherefore you can use pagination to incrementally fetch all queues while new\nones are still being created. To sort them in descending order, use \u0060desc=1\u0060\nparameter. The endpoint supports pagination using \u0060limit\u0060 and \u0060offset\u0060\nparameters and it will not return more than 1000\narray elements.", @@ -2135,7 +2190,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 195, + "Order": 200, "Title": "Create request queue", "Slug": "requestqueues-post", "Description": "Creates a request queue and returns its object.\nKeep in mind that requests stored under unnamed queue follows [data\nretention period](https://docs.apify.com/platform/storage#data-retention).\n\nIt creates a queue of given name if the parameter name is used. If a queue\nwith the given name already exists then the endpoint returns\nits object.", @@ -2146,7 +2201,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 196, + "Order": 201, "Title": "Delete request from request queue", "Slug": "requestqueue-request-delete", "Description": "Deletes given request from queue.", @@ -2157,7 +2212,7 @@ "Setup": null }, { - "Order": 197, + "Order": 202, "Title": "Get request from request queue", "Slug": "requestqueue-request-get", "Description": "Returns request from queue.", @@ -2168,7 +2223,7 @@ "Setup": null }, { - "Order": 198, + "Order": 203, "Title": "Update request in request queue", "Slug": "requestqueue-request-put", "Description": "Updates a request in a queue. Mark request as handled by setting\n\u0060request.handledAt = new Date()\u0060.\nIf \u0060handledAt\u0060 is set, the request will be removed from head of the queue (and unlocked, if applicable).", @@ -2179,7 +2234,7 @@ "Setup": null }, { - "Order": 199, + "Order": 204, "Title": "List requests in request queue", "Slug": "requestqueue-requests-get", "Description": "Returns a list of requests. This endpoint is paginated using\ncursor (pagination by \u0060exclusiveStartId\u0060 is deprecated) and limit parameters.", @@ -2190,7 +2245,7 @@ "Setup": null }, { - "Order": 200, + "Order": 205, "Title": "Add request to request queue", "Slug": "requestqueue-requests-post", "Description": "Adds request to the queue. Response contains ID of the request and info if\nrequest was already present in the queue or handled.\n\nIf request with same \u0060uniqueKey\u0060 was already present in the queue then\nreturns an ID of existing request.", @@ -2201,7 +2256,7 @@ "Setup": null }, { - "Order": 201, + "Order": 206, "Title": "Get request queue head", "Slug": "requestqueue-head-get", "Description": "Returns given number of first requests from the queue.\n\nThe response contains the \u0060hadMultipleClients\u0060 boolean field which indicates\nthat the queue was accessed by more than one client (with unique or empty\n\u0060clientKey\u0060).\nThis field is used by [Apify SDK](https://sdk.apify.com) to determine\nwhether the local cache is consistent with the request queue, and thus\noptimize performance of certain operations.", @@ -2212,7 +2267,7 @@ "Setup": null }, { - "Order": 202, + "Order": 207, "Title": "Get and lock request queue head", "Slug": "requestqueue-head-lock-post", "Description": "Returns the given number of first requests from the queue and locks them for\nthe given time.\n\nIf this endpoint locks the request, no other client or run will be able to get and\nlock these requests.\n\nThe response contains the \u0060hadMultipleClients\u0060 boolean field which indicates\nthat the queue was accessed by more than one client (with unique or empty\n\u0060clientKey\u0060).", @@ -2223,7 +2278,7 @@ "Setup": null }, { - "Order": 203, + "Order": 208, "Title": "Delete lock on request in request queue", "Slug": "requestqueue-request-lock-delete", "Description": "Deletes a request lock. The request lock can be deleted only by the client\nthat has locked it using [Get and lock head\noperation](#/request-queue-head-lock-post).\n\nThe clientKey identifier is used for locking and unlocking requests.\nYou can delete or prolong the lock only for requests that were locked by the same client key or from the same Actor run.", @@ -2234,7 +2289,7 @@ "Setup": null }, { - "Order": 204, + "Order": 209, "Title": "Prolong lock on request in request queue", "Slug": "requestqueue-request-lock-put", "Description": "Prolongs request lock. The request lock can be prolonged only by the client\nthat has locked it using [Get and lock head\noperation](#/request-queue-head-lock-post).\n\nThe clientKey identifier is used for locking and unlocking requests.\nYou can delete or prolong the lock only for requests that were locked by the same client key or from the same Actor run.", @@ -2245,7 +2300,7 @@ "Setup": null }, { - "Order": 205, + "Order": 210, "Title": "Unlock requests in request queue", "Slug": "requestqueue-requests-unlock-post", "Description": "Unlocks requests in the queue that are currently locked by the client.\n\n* If the client is within an Actor run, it unlocks all requests locked by that specific run plus all requests locked by the same clientKey.\n* If the client is outside of an Actor run, it unlocks all requests locked using the same clientKey.", @@ -2256,7 +2311,7 @@ "Setup": null }, { - "Order": 206, + "Order": 211, "Title": "Get list of Actors in Store", "Slug": "store-get", "Description": "Gets the list of public Actors in Apify Store. You can use \u0060search\u0060\nparameter to search Actors by string in title, name, description, username\nand readme.\nIf you need detailed info about a specific Actor, use the [Get Actor](/api/v2/actor-get) endpoint.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters.\nIt will not return more than 1,000 records.", @@ -2267,7 +2322,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 207, + "Order": 212, "Title": "Get browser info (DELETE)", "Slug": "tools-browser-info-delete", "Description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.", @@ -2278,7 +2333,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 208, + "Order": 213, "Title": "Get browser info", "Slug": "tools-browser-info-get", "Description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.", @@ -2289,7 +2344,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 209, + "Order": 214, "Title": "Get browser info (POST)", "Slug": "tools-browser-info-post", "Description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.", @@ -2300,7 +2355,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 210, + "Order": 215, "Title": "Get browser info (PUT)", "Slug": "tools-browser-info-put", "Description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.", @@ -2311,7 +2366,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 211, + "Order": 216, "Title": "Decode and verify object", "Slug": "tools-decode-and-verify-post", "Description": "Decodes and verifies an encoded value previously created by the\nencode-and-sign endpoint. Returns the original decoded object along with\ninformation about the user who encoded it and whether that user is verified.\n\n**Important**: The request must specify the \u0060Content-Type: application/json\u0060\nHTTP header.", @@ -2322,7 +2377,7 @@ "Setup": null }, { - "Order": 212, + "Order": 217, "Title": "Encode and sign object", "Slug": "tools-encode-and-sign-post", "Description": "Encodes and signs any JSON object. The encoded value includes a signature\ntied to the authenticated user\u0027s ID, which can later be verified using the\ndecode-and-verify endpoint.\n\n**Important**: The request must specify the \u0060Content-Type: application/json\u0060\nHTTP header.", @@ -2333,10 +2388,43 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 213, + "Order": 218, + "Title": "Create git repository", + "Slug": "integrations-git-createrepo-post", + "Description": "Creates a repository through a connected git account and commits the initial files into it, either the given\n\u0060files\u0060 or the files of an Actor template archive (\u0060templateArchiveUrl\u0060).", + "Language": "http", + "Code": "### Create git repository\n# @name integrations_git_createRepo_post\nPOST {{host}}/v2/integrations/git/{{providerId}}/create-repo\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022workspace\u0022: \u0022string\u0022,\n \u0022repoName\u0022: \u0022string\u0022,\n \u0022isPrivate\u0022: true,\n \u0022files\u0022: [\n {\n \u0022path\u0022: \u0022string\u0022,\n \u0022content\u0022: \u0022string\u0022,\n \u0022encoding\u0022: \u0022utf-8\u0022\n }\n ],\n \u0022templateArchiveUrl\u0022: \u0022string\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "integrations_git_createRepo_post", + "Setup": null + }, + { + "Order": 219, + "Title": "Get git provider integrations", + "Slug": "integrations-git-get", + "Description": "Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can\ncreate a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left\nout.\n\nUse the \u0060id\u0060 of an integration as the \u0060providerId\u0060 in the\n[Create git repository](/api/v2/integrations-git-create-repo-post) and\n[Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints.", + "Language": "csharp", + "Code": "using var client = ApifyClient.CreateFromEnvironment();\nvar response = await client.Users.IntegrationsGitGetAsync();", + "Format": "sdk", + "OperationId": "integrations_git_get", + "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." + }, + { + "Order": 220, + "Title": "Register deployment key", + "Slug": "integrations-git-registerdeploymentkey-post", + "Description": "Registers the Actor\u0027s deployment key (a read-only SSH key generated for every Actor) on a repository through a\nconnected git account, so that Apify can clone the repository when building the Actor.\n\nYou need write access to the Actor. The repository\u0027s host must match the provider of the connected account.\nIf the key is already registered on the repository, nothing changes. On GitHub, registering the key on another\nrepository removes it from the previously linked one.", + "Language": "http", + "Code": "### Register deployment key\n# @name integrations_git_registerDeploymentKey_post\nPOST {{host}}/v2/integrations/git/{{providerId}}/register-deployment-key\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022repoName\u0022: \u0022string\u0022\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "integrations_git_registerDeploymentKey_post", + "Setup": null + }, + { + "Order": 221, "Title": "Get public user data", "Slug": "user-get", - "Description": "Returns public information about a specific user account, similar to what\ncan be seen on public profile pages (e.g. https://apify.com/apify).\n\nThis operation requires no authentication token.", + "Description": "Returns public information about a specific user account, similar to what\ncan be seen on public profile pages (e.g. https://apify.com/apify).\n\nThis operation requires no authentication token.\n\nWhen the request is authenticated with an API token of the requested user account, or with a token\nthat impersonates it, the response also contains the private information, the same as in\n[Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it.", "Language": "http", "Code": "### Get public user data\n# @name user_get\nGET {{host}}/v2/users/{{userId}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -2344,7 +2432,7 @@ "Setup": null }, { - "Order": 214, + "Order": 222, "Title": "Get private user data", "Slug": "users-me-get", "Description": "Returns information about the current user account, including both public\nand private information.\n\nThe user account is identified by the provided authentication token.\n\nThe fields \u0060plan\u0060, \u0060email\u0060 and \u0060profile\u0060 are omitted when this endpoint is accessed from Actor run.", @@ -2355,7 +2443,29 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 215, + "Order": 223, + "Title": "Get user\u0027s limits by ID", + "Slug": "users-limits-get", + "Description": "Returns the same summary of limits as [Get user\u0027s limits](/api/v2/users-me-limits-get), for an account given by\nits ID or username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can\u0027t use this endpoint.", + "Language": "http", + "Code": "### Get user\u0027s limits by ID\n# @name users_limits_get\nGET {{host}}/v2/users/{{userId}}/limits\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "users_limits_get", + "Setup": null + }, + { + "Order": 224, + "Title": "Update user\u0027s limits by ID", + "Slug": "users-limits-put", + "Description": "Updates the same limits as [Update user\u0027s limits](/api/v2/users-me-limits-put), for an account given by its ID\nor username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can\u0027t use this endpoint.\nFor an organization, you also need the permission to manage the organization.", + "Language": "http", + "Code": "### Update user\u0027s limits by ID\n# @name users_limits_put\nPUT {{host}}/v2/users/{{userId}}/limits\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022maxMonthlyUsageUsd\u0022: 0,\n \u0022dataRetentionDays\u0022: 0\n}\n\n## Responses\n# 201\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "users_limits_put", + "Setup": null + }, + { + "Order": 225, "Title": "Get user\u0027s limits", "Slug": "users-me-limits-get", "Description": "Returns a complete summary of your account\u0027s limits. It is the same\ninformation you will see on your account\u0027s [Limits page](https://console.apify.com/billing#/limits). The returned data\nincludes the current usage cycle, a summary of your limits, and your current usage.", @@ -2366,7 +2476,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 216, + "Order": 226, "Title": "Update user\u0027s limits", "Slug": "users-me-limits-put", "Description": "Updates the account\u0027s limits manageable on your account\u0027s [Limits page](https://console.apify.com/billing#/limits).\nSpecifically the: \u0060maxMonthlyUsageUsd\u0060 and \u0060dataRetentionDays\u0060 limits (see request body schema for more details).", @@ -2377,7 +2487,7 @@ "Setup": null }, { - "Order": 217, + "Order": 227, "Title": "Get user\u0027s monthly usage", "Slug": "users-me-usage-monthly-get", "Description": "Returns a complete summary of your usage for the current monthly usage cycle,\nan overall sum, as well as a daily breakdown of usage. It is the same\ninformation you will see on your account\u0027s [Billing \u003E Historical usage page](https://console.apify.com/billing/historical-usage). The information\nincludes your use of Actors, compute, data transfer, and storage.\n\nUsing the \u0060date\u0060 parameter will show your usage in the monthly usage cycle that\nincludes that date.", @@ -2388,7 +2498,18 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 218, + "Order": 228, + "Title": "Get user\u0027s monthly usage by ID", + "Slug": "users-usage-monthly-get", + "Description": "Returns the same summary of monthly usage as [Get user\u0027s monthly usage](/api/v2/users-me-usage-monthly-get),\nfor an account given by its ID or username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can\u0027t use this endpoint.\n\nUsing the \u0060date\u0060 parameter will show the usage in the monthly usage cycle that\nincludes that date.", + "Language": "http", + "Code": "### Get user\u0027s monthly usage by ID\n# @name users_usage_monthly_get\nGET {{host}}/v2/users/{{userId}}/usage/monthly?date={{date}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "users_usage_monthly_get", + "Setup": null + }, + { + "Order": 229, "Title": "Get webhook dispatch", "Slug": "webhookdispatch-get", "Description": "Gets webhook dispatch object with all details.", @@ -2399,7 +2520,7 @@ "Setup": null }, { - "Order": 219, + "Order": 230, "Title": "Get list of webhook dispatches", "Slug": "webhookdispatches-get", "Description": "Gets the list of webhook dispatches that the user have.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 records.\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder. To sort the records in descending order, use the \u0060desc=1\u0060\nparameter.", @@ -2410,7 +2531,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 220, + "Order": 231, "Title": "Delete webhook", "Slug": "webhook-delete", "Description": "Deletes a webhook.", @@ -2421,7 +2542,7 @@ "Setup": null }, { - "Order": 221, + "Order": 232, "Title": "Get webhook", "Slug": "webhook-get", "Description": "Gets webhook object with all details.", @@ -2432,10 +2553,10 @@ "Setup": null }, { - "Order": 222, + "Order": 233, "Title": "Update webhook", "Slug": "webhook-put", - "Description": "Updates a webhook using values specified by a webhook object passed as JSON\nin the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe response is the full webhook object as returned by the\n[Get webhook](/api/v2/webhook-get) endpoint.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).", + "Description": "Updates a webhook using values specified by a webhook object passed as JSON\nin the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe response is the full webhook object as returned by the\n[Get webhook](/api/v2/webhook-get) endpoint.\n\nThe request needs to specify the \u0060Content-Type: application/json\u0060 HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest\u0027s \u0060Authorization\u0060 header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).", "Language": "http", "Code": "### Update webhook\n# @name webhook_put\nPUT {{host}}/v2/webhooks/{{webhookId}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022isAdHoc\u0022: true,\n \u0022eventTypes\u0022: [\n \u0022ACTOR.BUILD.ABORTED\u0022\n ],\n \u0022condition\u0022: {\n \u0022actorId\u0022: \u0022string\u0022,\n \u0022actorTaskId\u0022: \u0022string\u0022,\n \u0022actorRunId\u0022: \u0022string\u0022\n },\n \u0022ignoreSslErrors\u0022: true,\n \u0022doNotRetry\u0022: true,\n \u0022requestUrl\u0022: \u0022https://example.com\u0022,\n \u0022payloadTemplate\u0022: \u0022string\u0022,\n \u0022headersTemplate\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022shouldInterpolateStrings\u0022: true\n}\n\n## Responses\n# 200\n# Content-Type: application/json\n# 400\n# Description: Bad request - invalid input parameters or request body.\n# Content-Type: application/json\n# 401\n# Description: Unauthorized - authentication required or invalid token.\n# Content-Type: application/json\n# 403\n# Description: Forbidden - insufficient permissions to perform this action.\n# Content-Type: application/json\n# 404\n# Description: Not found - the requested resource does not exist.\n# Content-Type: application/json\n# 405\n# Description: Method not allowed.\n# Content-Type: application/json\n# 413\n# Description: Payload too large - the request body exceeds the size limit.\n# Content-Type: application/json\n# 415\n# Description: Unsupported media type - the Content-Encoding of the request is not supported.\n# Content-Type: application/json\n# 429\n# Description: Too many requests - rate limit exceeded.\n# Content-Type: application/json", "Format": "http", @@ -2443,7 +2564,7 @@ "Setup": null }, { - "Order": 223, + "Order": 234, "Title": "Test webhook", "Slug": "webhook-test-post", "Description": "Tests a webhook. Creates a webhook dispatch with a dummy payload.", @@ -2454,7 +2575,7 @@ "Setup": null }, { - "Order": 224, + "Order": 235, "Title": "Get list of webhook\u0027s dispatches", "Slug": "webhook-webhookdispatches-get", "Description": "Gets a given webhook\u0027s list of dispatches.", @@ -2465,7 +2586,7 @@ "Setup": null }, { - "Order": 225, + "Order": 236, "Title": "Get list of webhooks", "Slug": "webhooks-get", "Description": "Gets the list of webhooks that the user created.\n\nThe endpoint supports pagination using the \u0060limit\u0060 and \u0060offset\u0060 parameters\nand it will not return more than 1000 records.\nBy default, the records are sorted by the \u0060createdAt\u0060 field in ascending\norder. To sort the records in descending order, use the \u0060desc=1\u0060\nparameter.", @@ -2476,7 +2597,7 @@ "Setup": "This example assumes \u0060using Apify;\u0060 is in scope and a configured credential environment variable is set: \u0060APIFY_API_KEY\u0060." }, { - "Order": 226, + "Order": 237, "Title": "Create webhook", "Slug": "webhooks-post", "Description": "Creates a new webhook with settings provided by the webhook object passed as\nJSON in the payload.\nThe response is the created webhook object.\n\nTo avoid duplicating a webhook, use the \u0060idempotencyKey\u0060 parameter in the\nrequest body.\nMultiple calls to create a webhook with the same \u0060idempotencyKey\u0060 will only\ncreate the webhook with the first call and return the existing webhook on\nsubsequent calls.\nIdempotency keys must be unique, so use a UUID or another random string with\nenough entropy.\n\nTo assign the new webhook to an Actor or task, the request body must contain\n\u0060requestUrl\u0060, \u0060eventTypes\u0060, and \u0060condition\u0060 properties.\n\n* \u0060requestUrl\u0060 is the webhook\u0027s target URL, to which data is sent as a POST\nrequest with a JSON payload.\n* \u0060eventTypes\u0060 is a list of events that will trigger the webhook, e.g. when\nthe Actor run succeeds.\n* \u0060condition\u0060 should be an object containing the ID of the Actor or task to\nwhich the webhook will be assigned.\n* \u0060payloadTemplate\u0060 is a JSON-like string, whose syntax is extended with the\nuse of variables.\n* \u0060headersTemplate\u0060 is a JSON-like string, whose syntax is extended with the\nuse of variables. Following values will be re-written to defaults: \u0022host\u0022,\n\u0022Content-Type\u0022, \u0022X-Apify-Webhook\u0022, \u0022X-Apify-Webhook-Dispatch-Id\u0022,\n\u0022X-Apify-Request-Origin\u0022\n* \u0060description\u0060 is an optional string.\n* \u0060shouldInterpolateStrings\u0060 is a boolean indicating whether to interpolate\nvariables contained inside strings in the \u0060payloadTemplate\u0060\n\n\u0060\u0060\u0060\n \u0022isAdHoc\u0022 : false,\n \u0022requestUrl\u0022 : \u0022https://example.com\u0022,\n \u0022eventTypes\u0022 : [\n \u0022ACTOR.RUN.SUCCEEDED\u0022,\n \u0022ACTOR.RUN.ABORTED\u0022\n ],\n \u0022condition\u0022 : {\n \u0022actorId\u0022: \u00225sTMwDQywwsLzKRRh\u0022,\n \u0022actorTaskId\u0022 : \u0022W9bs9JE9v7wprjAnJ\u0022\n },\n \u0022payloadTemplate\u0022: \u0022\u0022,\n \u0022headersTemplate\u0022: \u0022\u0022,\n \u0022description\u0022: \u0022my awesome webhook\u0022,\n \u0022shouldInterpolateStrings\u0022: false,\n\u0060\u0060\u0060\n\n**Important**: The request must specify the \u0060Content-Type: application/json\u0060\nHTTP header.", diff --git a/src/libs/Apify/openapi.yaml b/src/libs/Apify/openapi.yaml index 49760009..7c77ec81 100644 --- a/src/libs/Apify/openapi.yaml +++ b/src/libs/Apify/openapi.yaml @@ -6,9 +6,9 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "description": "\nThe Apify API (version 2) provides programmatic access to the [Apify\nplatform](https://docs.apify.com). The API is organized\naround [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer)\nHTTP endpoints.\n\nYou can download the complete OpenAPI schema of Apify API in the [YAML](http://docs.apify.com/api/openapi.yaml) or [JSON](http://docs.apify.com/api/openapi.json) formats. The source code is also available on [GitHub](https://github.com/apify/apify-docs/tree/master/apify-api/openapi).\n\nAll requests and responses (including errors) are encoded in\n[JSON](http://www.json.org/) format with UTF-8 encoding,\nwith a few exceptions that are explicitly described in the reference.\n\nTo access the API, we recommend using one of our API clients:\n\nStable API clients:\n- For [Node.js](https://nodejs.org/en/), we recommend the [`apify-client`](https://docs.apify.com/api/client/js) [NPM\npackage](https://www.npmjs.com/package/apify-client).\n- For [Python](https://www.python.org/), we recommend the [`apify-client`](https://docs.apify.com/api/client/python) [PyPI\npackage](https://pypi.org/project/apify-client/).\n\nExperimental API clients:\n- For [Java](https://www.java.com/), we recommend the `apify-client` [Maven central component](https://central.sonatype.com/artifact/com.apify/apify-client).\n- For [Rust](https://rust-lang.org/), we recommend the `apify-client` [crate](https://crates.io/crates/apify-client).\n- For [.NET](https://dotnet.microsoft.com/), we recommend the `apify-client` [Nuget package](https://www.nuget.org/packages/Apify.Client).\n- For [PHP](https://www.php.net/), we recommend the `apify-client` [Packagist package](https://packagist.org/packages/apify/apify-client).\n- For [Go](https://go.dev/), we recommend the `apify-client` [package](https://github.com/apify/apify-client-go/releases).\n\nThe clients' functions correspond to the API endpoints and have the same\nparameters. This simplifies development of apps that depend on the Apify\nplatform.\n\n:::note Important Request Details\n\n- `Content-Type` header: For requests with a JSON body, you must include the `Content-Type: application/json` header.\n\n- Method override: You can override the HTTP method using the `method` query parameter. This is useful for clients that can only send `GET` requests. For example, to call a `POST` endpoint, append `?method=POST` to the URL of your `GET` request.\n\n:::\n\n## Authentication\n\n\n**You can find your API token on the\n[Integrations](https://console.apify.com/settings/integrations) page in the\nApify Console.**\n\nTo use your token in a request, either:\n\n- _(Recommended)_ Add the token to your request's `Authorization` header as `Bearer `.\nE.g., `Authorization: Bearer xxxxxxx`.\nFor details, see the [`Authorization` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization) on MDN.\n- Add it as the `token` parameter to your request URL. (Less secure).\n\nUsing your token in the request header is more secure than using it as a URL\nparameter because URLs are often stored\nin browser history and server logs. This creates a chance for someone\nunauthorized to access your API token.\n\n**Never share your API token or password with untrusted parties!**\n\nFor more information, see our\n[integrations](https://docs.apify.com/platform/integrations) documentation.\n\n### Agentic payments\n\nAI agents can authenticate and pay for Actor runs without an Apify account\nusing agentic payments. Instead of an API token, the request carries a\npayment credential that both authorizes and pays for the call. Apify supports\nthe [x402 protocol](https://docs.apify.com/platform/integrations/x402)\n(`PAYMENT-SIGNATURE` header) and\n[Skyfire](https://docs.apify.com/platform/integrations/skyfire)\n(`skyfire-pay-id` header).\n\n## Basic usage\n\n\nTo run an Actor, send a POST request to the [Run Actor](/api/v2/actors-runs-post) endpoint using either the\nActor ID code (e.g. `vKg4IjxZbEYTYeW8T`) or its name (e.g.\n`janedoe~my-actor`):\n\n`https://api.apify.com/v2/actors/[actor_id]/runs`\n\nIf the Actor is not runnable anonymously, you will receive a 401 or 403\n[response code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).\nThis means you need to add your [secret API\ntoken](https://console.apify.com/account#/integrations) to the request's\n`Authorization` header ([recommended](#/introduction/authentication)) or as a\nURL query parameter `?token=[your_token]` (less secure).\n\nOptionally, you can include the query parameters described in the [Run Actor](/api/v2/actors-runs-post) section to customize your\nrun.\n\nIf you're using Node.js, the best way to run an Actor is using the\n`Apify.call()` method from the [Apify\nSDK](https://sdk.apify.com/docs/api/apify#apifycallactid-input-options). It\nruns the Actor using the account you are currently logged into (determined\nby the [secret API token](https://console.apify.com/account#/integrations)).\nThe result is an [Actor run\nobject](https://sdk.apify.com/docs/typedefs/actor-run) and its output (if\nany).\n\nA typical workflow is as follows:\n\n1. Run an Actor or task using the [Run Actor](/api/v2/actors-runs-post) or\n[Run Actor task](/api/v2/actor-task-runs-post) API endpoints.\n2. Monitor the Actor run by periodically polling its progress using the [Get Actor run](/api/v2/actor-run-get) API\nendpoint.\n3. Fetch the results from the [Get dataset items](/api/v2/dataset-items-get) API endpoint using the\n`defaultDatasetId`, which you receive in the Run request response.\nAdditional data may be stored in a key-value store. You can fetch them from\nthe [Get key-value store record](/api/v2/key-value-store-record-get) API endpoint\nusing the `defaultKeyValueStoreId` and the store's `key`.\n\n**Note**: Instead of periodic polling, you can also run your Actor or task synchronously with the\n[Run Actor synchronously and get key-value store record](/api/v2/actor-run-sync-post) or\n[Run Actor task synchronously and get key-value store record](/api/v2/actor-task-run-sync-post)\nendpoint. This will ensure that the request waits for 300 seconds (5\nminutes) for the run to finish and returns its output. If the run takes\nlonger, the request will time out and throw an error.\n\n## Legacy `/v2/acts/` URL prefix\n\n\nThe `/v2/acts/` prefix is deprecated but still fully functional, and \nsuch endpoint routes to the same handler as its `/v2/actors/...` counterpart. \nNew integrations should use the canonical /v2/actors/ prefix, \nbut existing clients keep working without changes.\n\n## Response structure\n\n\nMost API endpoints return a JSON object with the `data` property:\n\n```\n{\n \"data\": {\n ...\n }\n}\n```\n\nHowever, there are a few explicitly described exceptions, such as\n[Get dataset items](/api/v2/dataset-items-get) or\n[Get key-value store record](/api/v2/key-value-store-record-get)\nAPI endpoints, which return data in other formats.\nIn case of an error, the response has the HTTP status code in the range of\n4xx or 5xx and the `data` property is replaced with `error`. For example:\n\n```\n{\n \"error\": {\n \"type\": \"record-not-found\",\n \"message\": \"Store was not found.\"\n }\n}\n```\n\nSee [Errors](#/introduction/errors) for more details.\n\n## Pagination\n\n\nAll API endpoints that return a list of records\n(e.g. [Get list of Actors](/api/v2/actors-get))\nenforce pagination in order to limit the size of their responses.\n\nMost of these API endpoints are paginated using the `offset` and `limit`\nquery parameters.\nThe only exception is\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get),\nwhich is paginated using the `exclusiveStartKey` query parameter.\n\n**IMPORTANT**: Each API endpoint that supports pagination enforces a certain\nmaximum value for the `limit` parameter,\nin order to reduce the load on Apify servers.\nThe maximum limit could change in future so you should never\nrely on a specific value and check the responses of these API endpoints.\n\n### Using offset\n\n\nMost API endpoints that return a list of records enable pagination using the\nfollowing query parameters:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n
limitLimits the response to contain a specific maximum number of items, e.g. limit=20.
offsetSkips a number of items from the beginning of the list, e.g. offset=100.
desc\n By default, items are sorted in the order in which they were created or added to the list.\n This feature is useful when fetching all the items, because it ensures that items\n created after the client started the pagination will not be skipped.\n If you specify the desc=1 parameter, the items will be returned in the reverse order,\n i.e. from the newest to the oldest items.\n
\n\nThe response of these API endpoints is always a JSON object with the\nfollowing structure:\n\n```\n{\n \"data\": {\n \"total\": 2560,\n \"offset\": 250,\n \"limit\": 1000,\n \"count\": 1000,\n \"desc\": false,\n \"items\": [\n { 1st object },\n { 2nd object },\n ...\n { 1000th object }\n ]\n }\n}\n```\n\nThe following table describes the meaning of the response properties:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
totalThe total number of items available in the list.
offsetThe number of items that were skipped at the start.\n This is equal to the offset query parameter if it was provided, otherwise it is 0.
limitThe maximum number of items that can be returned in the HTTP response.\n It equals to the limit query parameter if it was provided or\n the maximum limit enforced for the particular API endpoint, whichever is smaller.
countThe actual number of items returned in the HTTP response.
desctrue if data were requested in descending order and false otherwise.
itemsAn array of requested items.
\n\n### Using key\n\n\nThe records in the [key-value\nstore](https://docs.apify.com/platform/storage/key-value-store)\nare not ordered based on numerical indexes,\nbut rather by their keys in the UTF-8 binary order.\nTherefore the\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get)\nAPI endpoint only supports pagination using the following query parameters:\n\n\n \n \n \n \n \n \n \n \n
limitLimits the response to contain a specific maximum number items, e.g. limit=20.
exclusiveStartKeySkips all records with keys up to the given key including the given key,\n in the UTF-8 binary order.
\n\nThe response of the API endpoint is always a JSON object with following\nstructure:\n\n```\n{\n \"data\": {\n \"limit\": 1000,\n \"isTruncated\": true,\n \"exclusiveStartKey\": \"my-key\",\n \"nextExclusiveStartKey\": \"some-other-key\",\n \"items\": [\n { 1st object },\n { 2nd object },\n ...\n { 1000th object }\n ]\n }\n}\n```\n\nThe following table describes the meaning of the response properties:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
limitThe maximum number of items that can be returned in the HTTP response.\n It equals to the limit query parameter if it was provided or\n the maximum limit enforced for the particular endpoint, whichever is smaller.
isTruncatedtrue if there are more items left to be queried. Otherwise false.
exclusiveStartKeyThe last key that was skipped at the start. Is `null` for the first page.
nextExclusiveStartKeyThe value for the exclusiveStartKey parameter to query the next page of items.
\n\n## Errors\n\n\nThe Apify API uses common HTTP status codes: `2xx` range for success, `4xx`\nrange for errors caused by the caller\n(invalid requests) and `5xx` range for server errors (these are rare).\nEach error response contains a JSON object defining the `error` property,\nwhich is an object with\nthe `type` and `message` properties that contain the error code and a\nhuman-readable error description, respectively.\n\nFor example:\n\n```\n{\n \"error\": {\n \"type\": \"record-not-found\",\n \"message\": \"Store was not found.\"\n }\n}\n```\n\nHere is the table of the most common errors that can occur for many API\nendpoints:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
statustypemessage
400invalid-requestPOST data must be a JSON object
400invalid-valueInvalid value provided: Comments required
400invalid-record-keyRecord key contains invalid character
401token-not-providedAuthentication token was not provided
404record-not-foundStore was not found
429rate-limit-exceededYou have exceeded the rate limit of ... requests per second
405method-not-allowedThis API endpoint can only be accessed using the following HTTP methods: OPTIONS, POST
\n\n## Rate limiting\n\n\nAll API endpoints limit the rate of requests in order to prevent overloading of Apify servers by misbehaving clients.\n\nThere are two kinds of rate limits - a global rate limit and a per-resource rate limit.\n\n### Global rate limit\n\n\nThe global rate limit is set to _250 000 requests per minute_.\nFor [authenticated](#/introduction/authentication) requests, it is counted per user,\nand for unauthenticated requests, it is counted per IP address.\n\n### Per-resource rate limit\n\n\nThe default per-resource rate limit is _60 requests per second per resource_, which in this context means a single Actor, a single Actor run, a single dataset, single key-value store etc.\nThe default rate limit is applied to every API endpoint except a few select ones, which have higher rate limits.\nEach API endpoint returns its rate limit in `X-RateLimit-Limit` header.\n\nThese endpoints have a rate limit of _35 requests per second per resource_:\n\n* [Batch add requests to request queue](/api/v2/request-queue-requests-batch-post)\n* [Batch delete requests from request queue](/api/v2/request-queue-requests-batch-delete)\n* [Get and lock request queue head](/api/v2/request-queue-head-lock-post)\n\nThese endpoints have a rate limit of _100 requests per second per resource_:\n\n* [Download key-value store records](/api/v2/key-value-store-records-get) (ZIP archive)\n\nThese endpoints have a rate limit of _200 requests per second per resource_:\n\n* [Get key-value store record](/api/v2/key-value-store-record-get)\n* [Set key-value store record](/api/v2/key-value-store-record-put) and its [`POST` variant](/api/v2/key-value-store-record-post)\n* [Delete key-value store record](/api/v2/key-value-store-record-delete)\n* [Get list of key-value store keys](/api/v2/key-value-store-keys-get)\n\nThese endpoints have a rate limit of _350 requests per second per resource_:\n\n* [Add request to request queue](/api/v2/request-queue-requests-post)\n* [Get request from request queue](/api/v2/request-queue-request-get)\n* [Update request in request queue](/api/v2/request-queue-request-put)\n* [Delete request from request queue](/api/v2/request-queue-request-delete)\n* [Prolong lock on request in request queue](/api/v2/request-queue-request-lock-put)\n* [Delete lock on request in request queue](/api/v2/request-queue-request-lock-delete)\n\nThese endpoints have a rate limit of _400 requests per second per resource_:\n\n* [Run Actor](/api/v2/actors-runs-post)\n* [Run Actor task](/api/v2/actor-task-runs-post)\n* [Run Actor task synchronously and get key-value store record](/api/v2/actor-task-run-sync-post) and its [`GET` variant](/api/v2/actor-task-run-sync-get)\n* [Run Actor task synchronously and get dataset items](/api/v2/actor-task-run-sync-get-dataset-items-post) and its [`GET` variant](/api/v2/actor-task-run-sync-get-dataset-items-get)\n* [Metamorph Actor run](/api/v2/actor-run-metamorph-post)\n* [Store items in dataset](/api/v2/dataset-items-post)\n\n### Rate limit exceeded errors\n\n\nIf the client is sending too many requests, the API endpoints respond with the HTTP status code `429 Too Many Requests`\nand the following body:\n\n```\n{\n \"error\": {\n \"type\": \"rate-limit-exceeded\",\n \"message\": \"You have exceeded the rate limit of ... requests per second\"\n }\n}\n```\n\n### Retrying rate-limited requests with exponential backoff\n\n\nIf the client receives the rate limit error, it should wait a certain period of time and then retry the request.\nIf the error happens again, the client should double the wait period and retry the request,\nand so on. This algorithm is known as _exponential backoff_\nand it can be described using the following pseudo-code:\n\n1. Define a variable `DELAY=500`\n2. Send the HTTP request to the API endpoint\n3. If the response has status code not equal to `429` then you are done. Otherwise:\n * Wait for a period of time chosen randomly from the interval `DELAY` to `2*DELAY` milliseconds\n * Double the future wait period by setting `DELAY = 2*DELAY`\n * Continue with step 2\n\nIf all requests sent by the client implement the above steps,\nthe client will automatically use the maximum available bandwidth for its requests.\n\nNote that the Apify API clients [for JavaScript](https://docs.apify.com/api/client/js)\nand [for Python](https://docs.apify.com/api/client/python)\nuse the exponential backoff algorithm transparently, so that you do not need to worry about it.\n\n## Referring to resources\n\n\nThere are three main ways to refer to a resource you're accessing via API.\n\n- the resource ID (e.g. `iKkPcIgVvwmztduf8`)\n- `username~resourcename` - when using this access method, you will need to\nuse your API token, and access will only work if you have the correct\npermissions.\n- `~resourcename` - for this, you need to use an API token, and the\n`resourcename` refers to a resource in the API token owner's account.\n", + "description": "\nThe Apify API (version 2) provides programmatic access to the [Apify\nplatform](https://docs.apify.com). The API is organized\naround [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer)\nHTTP endpoints.\n\nYou can download the complete OpenAPI schema of Apify API in the [YAML](http://docs.apify.com/api/openapi.yaml) or [JSON](http://docs.apify.com/api/openapi.json) formats. The source code is also available on [GitHub](https://github.com/apify/apify-docs/tree/master/apify-api/openapi).\n\nAll requests and responses (including errors) are encoded in\n[JSON](http://www.json.org/) format with UTF-8 encoding,\nwith a few exceptions that are explicitly described in the reference.\n\nTo access the API, we recommend using one of our API clients:\n\nStable API clients:\n- For [Node.js](https://nodejs.org/en/), we recommend the [`apify-client`](https://docs.apify.com/api/client/js) [NPM\npackage](https://www.npmjs.com/package/apify-client).\n- For [Python](https://www.python.org/), we recommend the [`apify-client`](https://docs.apify.com/api/client/python) [PyPI\npackage](https://pypi.org/project/apify-client/).\n\nExperimental API clients:\n- For [Java](https://www.java.com/), we recommend the `apify-client` [Maven central component](https://central.sonatype.com/artifact/com.apify/apify-client).\n- For [Rust](https://rust-lang.org/), we recommend the `apify-client` [crate](https://crates.io/crates/apify-client).\n- For [.NET](https://dotnet.microsoft.com/), we recommend the `apify-client` [Nuget package](https://www.nuget.org/packages/Apify.Client).\n- For [PHP](https://www.php.net/), we recommend the `apify-client` [Packagist package](https://packagist.org/packages/apify/apify-client).\n- For [Go](https://go.dev/), we recommend the `apify-client` [package](https://github.com/apify/apify-client-go/releases).\n\nThe clients' functions correspond to the API endpoints and have the same\nparameters. This simplifies development of apps that depend on the Apify\nplatform.\n\n:::note Important Request Details\n\n- `Content-Type` header: For requests with a JSON body, you must include the `Content-Type: application/json` header.\n\n- Method override: You can override the HTTP method using the `method` query parameter. This is useful for clients that can only send `GET` requests. For example, to call a `POST` endpoint, append `?method=POST` to the URL of your `GET` request.\n\n:::\n\n## Authentication\n\n\n**You can find your API token on the\n[Integrations](https://console.apify.com/settings/integrations) page in the\nApify Console.**\n\nTo use your token in a request, either:\n\n- _(Recommended)_ Add the token to your request's `Authorization` header as `Bearer `.\nE.g., `Authorization: Bearer xxxxxxx`.\nFor details, see the [`Authorization` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization) on MDN.\n- Add it as the `token` parameter to your request URL. (Less secure).\n\nUsing your token in the request header is more secure than using it as a URL\nparameter because URLs are often stored\nin browser history and server logs. This creates a chance for someone\nunauthorized to access your API token.\n\n**Never share your API token or password with untrusted parties!**\n\nFor more information, see our\n[integrations](https://docs.apify.com/platform/integrations) documentation.\n\n### Agentic payments\n\nAI agents can authenticate and pay for Actor runs without an Apify account\nusing agentic payments. Instead of an API token, the request carries a\npayment credential that both authorizes and pays for the call. Apify supports\nthe [x402 protocol](https://docs.apify.com/platform/integrations/x402)\n(`PAYMENT-SIGNATURE` header) and\n[Skyfire](https://docs.apify.com/platform/integrations/skyfire)\n(`skyfire-pay-id` header).\n\nAgents can also pay once with x402 or the\n[Machine Payments Protocol (MPP)](https://docs.apify.com/integrations/mpp)\nand receive a temporary API token with a fixed spend cap from the Apify\nAgent General Interface (AGI) at\n[https://agi.apify.com](https://agi.apify.com). Use that token as a regular\n`Bearer` token.\n\n## Basic usage\n\n\nTo run an Actor, send a POST request to the [Run Actor](/api/v2/actors-runs-post) endpoint using either the\nActor ID code (e.g. `vKg4IjxZbEYTYeW8T`) or its name (e.g.\n`janedoe~my-actor`):\n\n`https://api.apify.com/v2/actors/[actor_id]/runs`\n\nIf the Actor is not runnable anonymously, you will receive a 401 or 403\n[response code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).\nThis means you need to add your [secret API\ntoken](https://console.apify.com/account#/integrations) to the request's\n`Authorization` header ([recommended](#/introduction/authentication)) or as a\nURL query parameter `?token=[your_token]` (less secure).\n\nOptionally, you can include the query parameters described in the [Run Actor](/api/v2/actors-runs-post) section to customize your\nrun.\n\nIf you're using Node.js, the best way to run an Actor is using the\n`Apify.call()` method from the [Apify\nSDK](https://sdk.apify.com/docs/api/apify#apifycallactid-input-options). It\nruns the Actor using the account you are currently logged into (determined\nby the [secret API token](https://console.apify.com/account#/integrations)).\nThe result is an [Actor run\nobject](https://sdk.apify.com/docs/typedefs/actor-run) and its output (if\nany).\n\nA typical workflow is as follows:\n\n1. Run an Actor or task using the [Run Actor](/api/v2/actors-runs-post) or\n[Run Actor task](/api/v2/actor-task-runs-post) API endpoints.\n2. Monitor the Actor run by periodically polling its progress using the [Get Actor run](/api/v2/actor-run-get) API\nendpoint.\n3. Fetch the results from the [Get dataset items](/api/v2/dataset-items-get) API endpoint using the\n`defaultDatasetId`, which you receive in the Run request response.\nAdditional data may be stored in a key-value store. You can fetch them from\nthe [Get key-value store record](/api/v2/key-value-store-record-get) API endpoint\nusing the `defaultKeyValueStoreId` and the store's `key`.\n\n**Note**: Instead of periodic polling, you can also run your Actor or task synchronously with the\n[Run Actor synchronously and get key-value store record](/api/v2/actor-run-sync-post) or\n[Run Actor task synchronously and get key-value store record](/api/v2/actor-task-run-sync-post)\nendpoint. This will ensure that the request waits for 300 seconds (5\nminutes) for the run to finish and returns its output. If the run takes\nlonger, the request will time out and throw an error.\n\n## Legacy `/v2/acts/` URL prefix\n\n\nThe `/v2/acts/` prefix is deprecated but still fully functional, and \nsuch endpoint routes to the same handler as its `/v2/actors/...` counterpart. \nNew integrations should use the canonical /v2/actors/ prefix, \nbut existing clients keep working without changes.\n\n## Response structure\n\n\nMost API endpoints return a JSON object with the `data` property:\n\n```\n{\n \"data\": {\n ...\n }\n}\n```\n\nHowever, there are a few explicitly described exceptions, such as\n[Get dataset items](/api/v2/dataset-items-get) or\n[Get key-value store record](/api/v2/key-value-store-record-get)\nAPI endpoints, which return data in other formats.\nIn case of an error, the response has the HTTP status code in the range of\n4xx or 5xx and the `data` property is replaced with `error`. For example:\n\n```\n{\n \"error\": {\n \"type\": \"record-not-found\",\n \"message\": \"Store was not found.\"\n }\n}\n```\n\nSee [Errors](#/introduction/errors) for more details.\n\n## Pagination\n\n\nAll API endpoints that return a list of records\n(e.g. [Get list of Actors](/api/v2/actors-get))\nenforce pagination in order to limit the size of their responses.\n\nMost of these API endpoints are paginated using the `offset` and `limit`\nquery parameters.\nThe only exception is\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get),\nwhich is paginated using the `exclusiveStartKey` query parameter.\n\n**IMPORTANT**: Each API endpoint that supports pagination enforces a certain\nmaximum value for the `limit` parameter,\nin order to reduce the load on Apify servers.\nThe maximum limit could change in future so you should never\nrely on a specific value and check the responses of these API endpoints.\n\n### Using offset\n\n\nMost API endpoints that return a list of records enable pagination using the\nfollowing query parameters:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n
limitLimits the response to contain a specific maximum number of items, e.g. limit=20.
offsetSkips a number of items from the beginning of the list, e.g. offset=100.
desc\n By default, items are sorted in the order in which they were created or added to the list.\n This feature is useful when fetching all the items, because it ensures that items\n created after the client started the pagination will not be skipped.\n If you specify the desc=1 parameter, the items will be returned in the reverse order,\n i.e. from the newest to the oldest items.\n
\n\nThe response of these API endpoints is always a JSON object with the\nfollowing structure:\n\n```\n{\n \"data\": {\n \"total\": 2560,\n \"offset\": 250,\n \"limit\": 1000,\n \"count\": 1000,\n \"desc\": false,\n \"items\": [\n { 1st object },\n { 2nd object },\n ...\n { 1000th object }\n ]\n }\n}\n```\n\nThe following table describes the meaning of the response properties:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
totalThe total number of items available in the list.
offsetThe number of items that were skipped at the start.\n This is equal to the offset query parameter if it was provided, otherwise it is 0.
limitThe maximum number of items that can be returned in the HTTP response.\n It equals to the limit query parameter if it was provided or\n the maximum limit enforced for the particular API endpoint, whichever is smaller.
countThe actual number of items returned in the HTTP response.
desctrue if data were requested in descending order and false otherwise.
itemsAn array of requested items.
\n\n### Using key\n\n\nThe records in the [key-value\nstore](https://docs.apify.com/platform/storage/key-value-store)\nare not ordered based on numerical indexes,\nbut rather by their keys in the UTF-8 binary order.\nTherefore the\n[Get list of key-value store keys](/api/v2/key-value-store-keys-get)\nAPI endpoint only supports pagination using the following query parameters:\n\n\n \n \n \n \n \n \n \n \n
limitLimits the response to contain a specific maximum number items, e.g. limit=20.
exclusiveStartKeySkips all records with keys up to the given key including the given key,\n in the UTF-8 binary order.
\n\nThe response of the API endpoint is always a JSON object with following\nstructure:\n\n```\n{\n \"data\": {\n \"limit\": 1000,\n \"isTruncated\": true,\n \"exclusiveStartKey\": \"my-key\",\n \"nextExclusiveStartKey\": \"some-other-key\",\n \"items\": [\n { 1st object },\n { 2nd object },\n ...\n { 1000th object }\n ]\n }\n}\n```\n\nThe following table describes the meaning of the response properties:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
limitThe maximum number of items that can be returned in the HTTP response.\n It equals to the limit query parameter if it was provided or\n the maximum limit enforced for the particular endpoint, whichever is smaller.
isTruncatedtrue if there are more items left to be queried. Otherwise false.
exclusiveStartKeyThe last key that was skipped at the start. Is `null` for the first page.
nextExclusiveStartKeyThe value for the exclusiveStartKey parameter to query the next page of items.
\n\n## Errors\n\n\nThe Apify API uses common HTTP status codes: 2xx range for success, 4xx\nrange for errors caused by the caller\n(invalid requests) and 5xx range for server errors (these are rare).\nEach error response contains a JSON object defining the `error` property,\nwhich is an object with\nthe `type` and `message` properties that contain the error code and a\nhuman-readable error description, respectively.\n\nFor example:\n\n```\n{\n \"error\": {\n \"type\": \"record-not-found\",\n \"message\": \"Store was not found.\"\n }\n}\n```\n\nHere is the table of the most common errors that can occur for many API\nendpoints:\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
statustypemessage
400invalid-requestPOST data must be a JSON object
400invalid-valueInvalid value provided: Comments required
400invalid-record-keyRecord key contains invalid character
401token-not-providedAuthentication token was not provided
404record-not-foundStore was not found
429rate-limit-exceededYou have exceeded the rate limit of ... requests per second
405method-not-allowedThis API endpoint can only be accessed using the following HTTP methods: OPTIONS, POST
\n\n## Rate limiting\n\n\nAll API endpoints limit the rate of requests in order to prevent overloading of Apify servers by misbehaving clients.\n\nThere are two kinds of rate limits - a global rate limit and a per-resource rate limit.\n\n### Global rate limit\n\n\nThe global rate limit is set to _250 000 requests per minute_.\nFor [authenticated](#/introduction/authentication) requests, it is counted per user,\nand for unauthenticated requests, it is counted per IP address.\n\n### Per-resource rate limit\n\n\nThe default per-resource rate limit is _60 requests per second per resource_, which in this context means a single Actor, a single Actor run, a single dataset, single key-value store etc.\nThe default rate limit is applied to every API endpoint except a few select ones, which have higher rate limits.\nEach API endpoint returns its rate limit in `X-RateLimit-Limit` header.\n\nThese endpoints have a rate limit of _35 requests per second per resource_:\n\n* [Batch add requests to request queue](/api/v2/request-queue-requests-batch-post)\n* [Batch delete requests from request queue](/api/v2/request-queue-requests-batch-delete)\n* [Get and lock request queue head](/api/v2/request-queue-head-lock-post)\n\nThese endpoints have a rate limit of _100 requests per second per resource_:\n\n* [Download key-value store records](/api/v2/key-value-store-records-get) (ZIP archive)\n\nThese endpoints have a rate limit of _200 requests per second per resource_:\n\n* [Get key-value store record](/api/v2/key-value-store-record-get)\n* [Set key-value store record](/api/v2/key-value-store-record-put) and its [`POST` variant](/api/v2/key-value-store-record-post)\n* [Delete key-value store record](/api/v2/key-value-store-record-delete)\n* [Get list of key-value store keys](/api/v2/key-value-store-keys-get)\n\nThese endpoints have a rate limit of _350 requests per second per resource_:\n\n* [Add request to request queue](/api/v2/request-queue-requests-post)\n* [Get request from request queue](/api/v2/request-queue-request-get)\n* [Update request in request queue](/api/v2/request-queue-request-put)\n* [Delete request from request queue](/api/v2/request-queue-request-delete)\n* [Prolong lock on request in request queue](/api/v2/request-queue-request-lock-put)\n* [Delete lock on request in request queue](/api/v2/request-queue-request-lock-delete)\n\nThese endpoints have a rate limit of _400 requests per second per resource_:\n\n* [Run Actor](/api/v2/actors-runs-post)\n* [Run Actor task](/api/v2/actor-task-runs-post)\n* [Run Actor task synchronously and get key-value store record](/api/v2/actor-task-run-sync-post) and its [`GET` variant](/api/v2/actor-task-run-sync-get)\n* [Run Actor task synchronously and get dataset items](/api/v2/actor-task-run-sync-get-dataset-items-post) and its [`GET` variant](/api/v2/actor-task-run-sync-get-dataset-items-get)\n* [Metamorph Actor run](/api/v2/actor-run-metamorph-post)\n* [Store items in dataset](/api/v2/dataset-items-post)\n\n### Rate limit exceeded errors\n\n\nIf the client is sending too many requests, the API endpoints respond with the HTTP status code `429 Too Many Requests`\nand the following body:\n\n```\n{\n \"error\": {\n \"type\": \"rate-limit-exceeded\",\n \"message\": \"You have exceeded the rate limit of ... requests per second\"\n }\n}\n```\n\n### Retrying rate-limited requests with exponential backoff\n\n\nIf the client receives the rate limit error, it should wait a certain period of time and then retry the request.\nIf the error happens again, the client should double the wait period and retry the request,\nand so on. This algorithm is known as _exponential backoff_\nand it can be described using the following pseudo-code:\n\n1. Define a variable `DELAY=500`\n2. Send the HTTP request to the API endpoint\n3. If the response has status code not equal to 429 then you are done. Otherwise:\n * Wait for a period of time chosen randomly from the interval `DELAY` to `2*DELAY` milliseconds\n * Double the future wait period by setting `DELAY = 2*DELAY`\n * Continue with step 2\n\nIf all requests sent by the client implement the above steps,\nthe client will automatically use the maximum available bandwidth for its requests.\n\nNote that the Apify API clients [for JavaScript](https://docs.apify.com/api/client/js)\nand [for Python](https://docs.apify.com/api/client/python)\nuse the exponential backoff algorithm transparently, so that you do not need to worry about it.\n\n## Referring to resources\n\n\nThere are three main ways to refer to a resource you're accessing via API.\n\n- the resource ID (e.g. `iKkPcIgVvwmztduf8`)\n- `username~resourcename` - when using this access method, you will need to\nuse your API token, and access will only work if you have the correct\npermissions.\n- `~resourcename` - for this, you need to use an API token, and the\n`resourcename` refers to a resource in the API token owner's account.\n", "contact": {}, - "version": "v2-2026-10-26T131003Z" + "version": "v2-2026-10-27T134926Z" }, "servers": [ { @@ -906,7 +906,7 @@ "Actors" ], "summary": "Update Actor", - "description": "Updates an Actor's settings with the values specified in an `Actor` object\npassed as JSON in the POST payload. Only the fields specified in the request body are updated.\n\nReturns the full `Actor` object, the same as the\n[Get Actor](/api/v2/actor-get) endpoint.\n\nIn the HTTP request, set the `Content-Type` header to `application/json`.\n\n### Authentication\n\nTo provide the authentication token, we recommend using the request's\n`Authorization` header, rather than the URL. For details,\nsee [Authentication](/api/v2/getting-started#authentication).\n\n### Make an Actor public\n\nTo make your Actor [public](https://docs.apify.com/platform/actors/publishing):\n- Set `isPublic` to `true`.\n- Provide `title` and `categories`. For reference, see [constants from the `apify-shared-js`\npackage](https://github.com/apify/apify-shared-js/blob/2d43ebc41ece9ad31cd6525bd523fb86939bf860/packages/consts/src/consts.ts#L452-L471)\n\n### Update build tags\n\nTo change tags assigned to Actor builds, use the `taggedBuilds` object. It's a dictionary that maps tag names\nto specific builds, where:\n- the key is the tag name, for example `latest` or `beta`\n- the value is either `null` or an object with a build ID\n\nChanging tags is a patch operation. Only the tags that you provide in this object are updated.\n\nNote that you can assign multiple tags to a single build, but you can't assign the same tag to multiple builds.\n\n- To create or reassign a tag, provide the tag name with a build ID. For example, to assign\nthe `latest` tag to a build, use:\n\n```json\n{\n \"latest\": { \"buildId\": \"z2EryhbfhgSyqj6Hn\" }\n}\n```\n\n- To remove a tag from a build, provide the tag name with a `null` value. For example, to remove the `beta` tag, use:\n\n```json\n{\n \"beta\": null\n}\n```\n\n- You can perform multiple actions at once. The following example reassigns `latest`\nand removes `beta`, while preserving other existing tags:\n\n```json\n{\n \"latest\": { \"buildId\": \"z2EryhbfhgSyqj6Hn\" },\n \"beta\": null\n}\n```\n", + "description": "Updates an Actor's settings with the values specified in an `Actor` object\npassed as JSON in the POST payload. Only the fields specified in the request body are updated.\n\nReturns the full `Actor` object, the same as the\n[Get Actor](/api/v2/actor-get) endpoint.\n\nIn the HTTP request, set the `Content-Type` header to `application/json`.\n\n### Authentication\n\nTo provide the authentication token, we recommend using the request's\n`Authorization` header, rather than the URL. For details,\nsee [Authentication](/api/v2#authentication).\n\n### Make an Actor public\n\nTo make your Actor [public](https://docs.apify.com/platform/actors/publishing):\n- Set `isPublic` to `true`.\n- Provide `title` and `categories`. For reference, see [constants from the `apify-shared-js`\npackage](https://github.com/apify/apify-shared-js/blob/2d43ebc41ece9ad31cd6525bd523fb86939bf860/packages/consts/src/consts.ts#L452-L471)\n\n### Update build tags\n\nTo change tags assigned to Actor builds, use the `taggedBuilds` object. It's a dictionary that maps tag names\nto specific builds, where:\n- the key is the tag name, for example `latest` or `beta`\n- the value is either `null` or an object with a build ID\n\nChanging tags is a patch operation. Only the tags that you provide in this object are updated.\n\nNote that you can assign multiple tags to a single build, but you can't assign the same tag to multiple builds.\n\n- To create or reassign a tag, provide the tag name with a build ID. For example, to assign\nthe `latest` tag to a build, use:\n\n```json\n{\n \"latest\": { \"buildId\": \"z2EryhbfhgSyqj6Hn\" }\n}\n```\n\n- To remove a tag from a build, provide the tag name with a `null` value. For example, to remove the `beta` tag, use:\n\n```json\n{\n \"beta\": null\n}\n```\n\n- You can perform multiple actions at once. The following example reassigns `latest`\nand removes `beta`, while preserving other existing tags:\n\n```json\n{\n \"latest\": { \"buildId\": \"z2EryhbfhgSyqj6Hn\" },\n \"beta\": null\n}\n```\n", "operationId": "actor_put", "parameters": [ { @@ -1505,7 +1505,7 @@ "x-py-name": "update", "x-py-doc-url": "https://docs.apify.com/api/client/python/reference/class/ActorVersionClientAsync#update", "summary": "Update Actor version", - "description": "Updates Actor version using values specified by a `Version` object passed as JSON in the POST payload.\n\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n\nThe response is the `Version` object as\nreturned by the [Get Actor version](/api/v2/actor-version-get) endpoint.\n", + "description": "Updates Actor version using values specified by a `Version` object passed as JSON in the POST payload.\n\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n\nThe response is the `Version` object as\nreturned by the [Get Actor version](/api/v2/actor-version-get) endpoint.\n", "operationId": "actor_version_put", "x-legacy-doc-urls": [ "https://docs.apify.com/api/v2#/reference/actors/version-object/update-version", @@ -1661,6 +1661,65 @@ ] } }, + "/v2/actors/{actorId}/versions/{versionNumber}/build-on-push": { + "put": { + "tags": [ + "Actors/Actor versions" + ], + "summary": "Update Actor version build on push", + "description": "Turns automatic builds on push on or off for an Actor version whose source is a git repository.\n\nEnabling registers a push webhook on the repository through the connected git account given by `providerId`, so\nthat every push to the repository builds the version. Disabling turns the webhook off on GitHub, or removes it\non GitLab and Bitbucket.\n\nYou need write access to the Actor. The version must have its source type set to a git repository, and the\nconnected account must have permission to manage the repository's webhooks.\n", + "operationId": "actor_version_buildOnPush_put", + "parameters": [ + { + "$ref": "#/components/parameters/actorId" + }, + { + "$ref": "#/components/parameters/versionNumber" + } + ], + "requestBody": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateBuildOnPushRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "$ref": "#/components/responses/NoContent" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "415": { + "$ref": "#/components/responses/UnsupportedMediaType" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, "/v2/actors/{actorId}/versions/{versionNumber}/env-vars": { "get": { "tags": [ @@ -1977,7 +2036,7 @@ "x-py-name": "update", "x-py-doc-url": "https://docs.apify.com/api/client/python/reference/class/ActorEnvVarClientAsync#update", "summary": "Update environment variable in Actor version", - "description": "Updates Actor environment variable using values specified by an `EnvVar`\nobject\npassed as JSON in the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n\nThe response is the `EnvVar` object as returned by the\n[Get environment variable of Actor version](/api/v2/actor-version-env-var-get)\nendpoint.\n", + "description": "Updates Actor environment variable using values specified by an `EnvVar`\nobject\npassed as JSON in the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n\nThe response is the `EnvVar` object as returned by the\n[Get environment variable of Actor version](/api/v2/actor-version-env-var-get)\nendpoint.\n", "operationId": "actor_version_envVar_put", "x-legacy-doc-urls": [ "https://docs.apify.com/api/v2#/reference/actors/environment-variable-object/update-environment-variable", @@ -2233,7 +2292,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOfWebhooksResponse" + "$ref": "#/components/schemas/ListOfWebhookResourcesResponse" } } } @@ -2265,6 +2324,53 @@ ] } }, + "/v2/actors/{actorId}/oauth-connections": { + "get": { + "tags": [ + "Actors" + ], + "summary": "Get list of Actor OAuth connections", + "description": "Gets the OAuth connections configured on the Actor. Each connection defines an OAuth provider that users of the\nActor can connect their accounts through. Only public credential fields are returned, never the client secret.\n\nAn Actor has at most 5 connections, so the list is not paginated.\n\nYou need read access to the Actor.\n", + "operationId": "actor_oauthConnections_get", + "parameters": [ + { + "$ref": "#/components/parameters/actorId" + } + ], + "responses": { + "200": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListOfActorOAuthConnectionsResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, "/v2/actors/{actorId}/builds": { "get": { "tags": [ @@ -2793,6 +2899,9 @@ }, { "$ref": "#/components/parameters/startedBefore" + }, + { + "$ref": "#/components/parameters/deployment" } ], "responses": { @@ -2936,19 +3045,7 @@ "$ref": "#/components/parameters/webhooks" }, { - "name": "forcePermissionLevel", - "in": "query", - "description": "Overrides the Actor's permission level for this specific run. Use to test restricted permissions\nbefore deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this\nparameter, the Actor uses its configured default permission level. For more information on permissions, see the\n[documentation](https://docs.apify.com/platform/actors/development/permissions).\n", - "style": "form", - "explode": true, - "schema": { - "type": "string", - "enum": [ - "LIMITED_PERMISSIONS", - "FULL_PERMISSIONS" - ], - "example": "LIMITED_PERMISSIONS" - } + "$ref": "#/components/parameters/forcePermissionLevel" } ], "requestBody": { @@ -3071,6 +3168,9 @@ }, { "$ref": "#/components/parameters/webhooks" + }, + { + "$ref": "#/components/parameters/forcePermissionLevel" } ], "requestBody": { @@ -3171,6 +3271,9 @@ }, { "$ref": "#/components/parameters/webhooks" + }, + { + "$ref": "#/components/parameters/forcePermissionLevel" } ], "responses": { @@ -3251,6 +3354,9 @@ { "$ref": "#/components/parameters/webhooks" }, + { + "$ref": "#/components/parameters/forcePermissionLevel" + }, { "$ref": "#/components/parameters/format" }, @@ -3476,6 +3582,9 @@ { "$ref": "#/components/parameters/webhooks" }, + { + "$ref": "#/components/parameters/forcePermissionLevel" + }, { "$ref": "#/components/parameters/format" }, @@ -7160,7 +7269,7 @@ "Actor tasks" ], "summary": "Update Actor task input", - "description": "Updates the input of a task using values specified by an object passed as\nJSON in the PUT payload.\n\nIf the object does not define a specific property, its value is not updated.\n\nThe response is the full task input as returned by the\n[Get Actor task input](/api/v2/actor-task-input-get) endpoint.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n", + "description": "Updates the input of a task using values specified by an object passed as\nJSON in the PUT payload.\n\nIf the object does not define a specific property, its value is not updated.\n\nThe response is the full task input as returned by the\n[Get Actor task input](/api/v2/actor-task-input-get) endpoint.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n", "operationId": "actorTask_input_put", "parameters": [ { @@ -7744,6 +7853,9 @@ { "$ref": "#/components/parameters/maxTotalChargeUsd" }, + { + "$ref": "#/components/parameters/restartOnError" + }, { "$ref": "#/components/parameters/build" }, @@ -10887,6 +10999,9 @@ }, { "$ref": "#/components/parameters/startedBefore" + }, + { + "$ref": "#/components/parameters/deployment" } ], "responses": { @@ -14037,6 +14152,116 @@ "x-py-doc-url": "https://docs.apify.com/api/client/python/reference/class/BuildClient#get_open_api_definition" } }, + "/v2/actor-oauth-accounts/{connectionId}/accounts": { + "get": { + "tags": [ + "Actors" + ], + "summary": "Get list of Actor OAuth accounts", + "description": "Gets the accounts you connected through the Actor OAuth connection, including their OAuth tokens. Only accounts\nthat finished authorization are returned.\n\nThere are at most 5 accounts per user and connection, so the list is not paginated.\n", + "operationId": "actorOAuthAccounts_get", + "parameters": [ + { + "name": "connectionId", + "in": "path", + "description": "Actor OAuth connection ID.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "kD9fm2Xp4cJq7Lw8N" + } + } + ], + "responses": { + "200": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListOfActorOAuthAccountsResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, + "/v2/actor-oauth-accounts/{accountId}": { + "get": { + "tags": [ + "Actors" + ], + "summary": "Get Actor OAuth account", + "description": "Gets an account connected through an Actor OAuth connection, including its OAuth tokens.\n\nThis endpoint only accepts the API token of an Actor run (the `APIFY_TOKEN` environment variable of the run).\nThe run must belong to the Actor that the account's OAuth connection is configured on, and the account must\nbelong to the user the run's token acts for. Any other token gets a `403` error.\n", + "operationId": "actorOAuthAccount_get", + "parameters": [ + { + "name": "accountId", + "in": "path", + "description": "Actor OAuth account ID.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "Rk3mP8xQ2vN5tY7wZ" + } + } + ], + "responses": { + "200": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorOAuthAccountResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, "/v2/key-value-stores": { "get": { "tags": [ @@ -17385,7 +17610,7 @@ "Webhooks/Webhooks" ], "summary": "Update webhook", - "description": "Updates a webhook using values specified by a webhook object passed as JSON\nin the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe response is the full webhook object as returned by the\n[Get webhook](/api/v2/webhook-get) endpoint.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n", + "description": "Updates a webhook using values specified by a webhook object passed as JSON\nin the POST payload.\nIf the object does not define a specific property, its value will not be\nupdated.\n\nThe response is the full webhook object as returned by the\n[Get webhook](/api/v2/webhook-get) endpoint.\n\nThe request needs to specify the `Content-Type: application/json` HTTP\nheader!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n", "operationId": "webhook_put", "parameters": [ { @@ -17990,7 +18215,7 @@ "Schedules" ], "summary": "Create schedule", - "description": "Creates a new schedule with settings provided by the schedule object passed\nas JSON in the payload. The response is the created schedule object.\n\nThe request needs to specify the `Content-Type: application/json` HTTP header!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n", + "description": "Creates a new schedule with settings provided by the schedule object passed\nas JSON in the payload. The response is the created schedule object.\n\nThe request needs to specify the `Content-Type: application/json` HTTP header!\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n", "operationId": "schedules_post", "requestBody": { "description": "", @@ -18130,7 +18355,7 @@ "Schedules" ], "summary": "Update schedule", - "description": "Updates a schedule using values specified by a schedule object passed as\nJSON in the POST payload. If the object does not define a specific property,\nits value will not be updated.\n\nThe response is the full schedule object as returned by the\n[Get schedule](/api/v2/schedule-get) endpoint.\n\n**The request needs to specify the `Content-Type: application/json` HTTP\nheader!**\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2/getting-started#authentication).\n", + "description": "Updates a schedule using values specified by a schedule object passed as\nJSON in the POST payload. If the object does not define a specific property,\nits value will not be updated.\n\nThe response is the full schedule object as returned by the\n[Get schedule](/api/v2/schedule-get) endpoint.\n\n**The request needs to specify the `Content-Type: application/json` HTTP\nheader!**\n\nWhen providing your API authentication token, we recommend using the\nrequest's `Authorization` header, rather than the URL.\nFor details, see [Authentication](/api/v2#authentication).\n", "operationId": "schedule_put", "parameters": [ { @@ -18257,42 +18482,29 @@ "x-js-doc-url": "https://docs.apify.com/api/client/js/reference/class/ScheduleClient#delete" } }, - "/v2/schedules/{scheduleId}/log": { - "get": { + "/v2/schedules/{scheduleId}/invoke": { + "post": { "tags": [ "Schedules" ], - "summary": "Get schedule log", - "description": "Gets the schedule log as a JSON array containing information about up to a\n1000 invocations of the schedule.\n", - "operationId": "schedule_log_get", + "summary": "Invoke schedule", + "description": "Immediately runs all actions of the schedule, the same way as the **Run now** button in Apify Console.\n\nThe invocation is recorded in the [schedule log](/api/v2/schedule-log-get). It doesn't change the schedule's\n`lastRunAt` or `nextRunAt`. The response doesn't contain the started runs.\n", + "operationId": "schedule_invoke_post", "parameters": [ { "$ref": "#/components/parameters/scheduleId" } ], "responses": { - "200": { + "201": { "description": "", "headers": {}, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScheduleLogResponse" + "type": "object" }, - "example": { - "data": [ - { - "message": "Schedule invoked", - "level": "INFO", - "createdAt": "2019-03-26T12:28:00.370Z" - }, - { - "message": "Cannot start Actor task \\\"iEvfA6pm6DWjRTGxS\\\": Provided input must be object, got \\\"string\\\" instead.", - "level": "ERROR", - "createdAt": "2019-03-26T12:30:00.325Z" - } - ] - } + "example": {} } } }, @@ -18315,24 +18527,85 @@ "$ref": "#/components/responses/TooManyRequests" } }, - "deprecated": false, - "x-legacy-doc-urls": [ - "https://docs.apify.com/api/v2#/reference/schedules/schedule-log/get-schedule-log", - "https://docs.apify.com/api/v2#/reference/schedules/get-schedule-log", - "https://docs.apify.com/api/v2#tag/SchedulesSchedule-log/operation/schedule_log_get" - ], - "x-js-parent": "ScheduleClient", - "x-js-name": "getLog", - "x-js-doc-url": "https://docs.apify.com/api/client/js/reference/class/ScheduleClient#getLog", - "x-py-parent": "ScheduleClientAsync", - "x-py-name": "get_log", - "x-py-doc-url": "https://docs.apify.com/api/client/python/reference/class/ScheduleClientAsync#get_log" + "deprecated": false } }, - "/v2/store": { + "/v2/schedules/{scheduleId}/log": { "get": { "tags": [ - "Store" + "Schedules" + ], + "summary": "Get schedule log", + "description": "Gets the schedule log as a JSON array containing information about up to a\n1000 invocations of the schedule.\n", + "operationId": "schedule_log_get", + "parameters": [ + { + "$ref": "#/components/parameters/scheduleId" + } + ], + "responses": { + "200": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScheduleLogResponse" + }, + "example": { + "data": [ + { + "message": "Schedule invoked", + "level": "INFO", + "createdAt": "2019-03-26T12:28:00.370Z" + }, + { + "message": "Cannot start Actor task \\\"iEvfA6pm6DWjRTGxS\\\": Provided input must be object, got \\\"string\\\" instead.", + "level": "ERROR", + "createdAt": "2019-03-26T12:30:00.325Z" + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false, + "x-legacy-doc-urls": [ + "https://docs.apify.com/api/v2#/reference/schedules/schedule-log/get-schedule-log", + "https://docs.apify.com/api/v2#/reference/schedules/get-schedule-log", + "https://docs.apify.com/api/v2#tag/SchedulesSchedule-log/operation/schedule_log_get" + ], + "x-js-parent": "ScheduleClient", + "x-js-name": "getLog", + "x-js-doc-url": "https://docs.apify.com/api/client/js/reference/class/ScheduleClient#getLog", + "x-py-parent": "ScheduleClientAsync", + "x-py-name": "get_log", + "x-py-doc-url": "https://docs.apify.com/api/client/python/reference/class/ScheduleClientAsync#get_log" + } + }, + "/v2/store": { + "get": { + "tags": [ + "Store" ], "summary": "Get list of Actors in Store", "description": "Gets the list of public Actors in Apify Store. You can use `search`\nparameter to search Actors by string in title, name, description, username\nand readme.\nIf you need detailed info about a specific Actor, use the [Get Actor](/api/v2/actor-get) endpoint.\n\nThe endpoint supports pagination using the `limit` and `offset` parameters.\nIt will not return more than 1,000 records.\n", @@ -18442,6 +18715,18 @@ "default": false, "example": true } + }, + { + "name": "includeInputSchema", + "in": "query", + "description": "If `true`, each Actor in the results includes an `inputSchema` field with a compact version of the input\nschema of its default build (property types and required properties only). With this parameter, `limit`\ndefaults to and can't exceed `10`.\n", + "style": "form", + "explode": true, + "schema": { + "type": "boolean", + "default": false, + "example": true + } } ], "responses": { @@ -18616,7 +18901,7 @@ "Users" ], "summary": "Get public user data", - "description": "Returns public information about a specific user account, similar to what\ncan be seen on public profile pages (e.g. https://apify.com/apify).\n\nThis operation requires no authentication token.\n", + "description": "Returns public information about a specific user account, similar to what\ncan be seen on public profile pages (e.g. https://apify.com/apify).\n\nThis operation requires no authentication token.\n\nWhen the request is authenticated with an API token of the requested user account, or with a token\nthat impersonates it, the response also contains the private information, the same as in\n[Get private user data](/api/v2/users-me-get). Tokens with limited permissions never receive it.\n", "operationId": "user_get", "parameters": [ { @@ -18638,7 +18923,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserPublicInfoResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/UserPublicInfoResponse" + }, + { + "$ref": "#/components/schemas/UserPrivateInfoResponse" + } + ] } } } @@ -18870,43 +19162,62 @@ ] } }, - "/v2/browser-info": { + "/v2/users/{userId}/usage/monthly": { "get": { "tags": [ - "Tools" + "Users/Usage" ], - "summary": "Get browser info", - "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", - "security": [], + "summary": "Get user's monthly usage by ID", + "description": "Returns the same summary of monthly usage as [Get user's monthly usage](/api/v2/users-me-usage-monthly-get),\nfor an account given by its ID or username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can't use this endpoint.\n\nUsing the `date` parameter will show the usage in the monthly usage cycle that\nincludes that date.\n", + "operationId": "users_usage_monthly_get", "parameters": [ { - "name": "skipHeaders", - "in": "query", - "description": "If `true` or `1`, the response omits the `headers` field.", + "name": "userId", + "in": "path", + "description": "User ID or username of your account, or of the organization your API token belongs to.", + "required": true, + "style": "simple", "schema": { - "type": "boolean" + "type": "string", + "example": "HGzIk8z78YcAPEB" } }, { - "name": "rawHeaders", + "name": "date", "in": "query", - "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "description": "Date in the YYYY-MM-DD format.", + "style": "form", + "explode": true, "schema": { - "type": "boolean" + "type": "string", + "example": "2020-06-14" } } ], "responses": { "200": { "description": "", + "headers": {}, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BrowserInfoResponse" + "$ref": "#/components/schemas/MonthlyUsageResponse" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, @@ -18914,45 +19225,54 @@ "$ref": "#/components/responses/TooManyRequests" } }, - "deprecated": false, - "operationId": "tools_browser_info_get" - }, - "post": { + "deprecated": false + } + }, + "/v2/users/{userId}/limits": { + "get": { "tags": [ - "Tools" + "Users/Usage" ], - "summary": "Get browser info (POST)", - "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", - "security": [], + "summary": "Get user's limits by ID", + "description": "Returns the same summary of limits as [Get user's limits](/api/v2/users-me-limits-get), for an account given by\nits ID or username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can't use this endpoint.\n", + "operationId": "users_limits_get", "parameters": [ { - "name": "skipHeaders", - "in": "query", - "description": "If `true` or `1`, the response omits the `headers` field.", - "schema": { - "type": "boolean" - } - }, - { - "name": "rawHeaders", - "in": "query", - "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "name": "userId", + "in": "path", + "description": "User ID or username of your account, or of the organization your API token belongs to.", + "required": true, + "style": "simple", "schema": { - "type": "boolean" + "type": "string", + "example": "HGzIk8z78YcAPEB" } } ], "responses": { "200": { "description": "", + "headers": {}, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BrowserInfoResponse" + "$ref": "#/components/schemas/AccountLimitsResponse" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, @@ -18960,72 +19280,417 @@ "$ref": "#/components/responses/TooManyRequests" } }, - "deprecated": false, - "operationId": "tools_browser_info_post" + "deprecated": false }, "put": { "tags": [ - "Tools" + "Users/Usage" ], - "summary": "Get browser info (PUT)", - "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", - "security": [], + "summary": "Update user's limits by ID", + "description": "Updates the same limits as [Update user's limits](/api/v2/users-me-limits-put), for an account given by its ID\nor username.\n\nYou can only access your own account, or the organization your API token belongs to. API tokens with\nlimited permissions can't use this endpoint.\nFor an organization, you also need the permission to manage the organization.\n", + "operationId": "users_limits_put", "parameters": [ { - "name": "skipHeaders", - "in": "query", - "description": "If `true` or `1`, the response omits the `headers` field.", - "schema": { - "type": "boolean" - } - }, - { - "name": "rawHeaders", - "in": "query", - "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "name": "userId", + "in": "path", + "description": "User ID or username of your account, or of the organization your API token belongs to.", + "required": true, + "style": "simple", "schema": { - "type": "boolean" + "type": "string", + "example": "HGzIk8z78YcAPEB" } } ], + "requestBody": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateLimitsRequest" + } + } + } + }, "responses": { - "200": { + "201": { "description": "", + "headers": {}, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BrowserInfoResponse" + "type": "object" } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "415": { + "$ref": "#/components/responses/UnsupportedMediaType" + }, "429": { "$ref": "#/components/responses/TooManyRequests" } }, - "deprecated": false, - "operationId": "tools_browser_info_put" - }, - "delete": { + "deprecated": false + } + }, + "/v2/integrations/git": { + "get": { "tags": [ - "Tools" + "Users" ], - "summary": "Get browser info (DELETE)", - "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", - "security": [], - "parameters": [ - { - "name": "skipHeaders", - "in": "query", - "description": "If `true` or `1`, the response omits the `headers` field.", - "schema": { - "type": "boolean" - } - }, - { + "summary": "Get git provider integrations", + "description": "Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can\ncreate a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left\nout.\n\nUse the `id` of an integration as the `providerId` in the\n[Create git repository](/api/v2/integrations-git-create-repo-post) and\n[Register deployment key](/api/v2/integrations-git-register-deployment-key-post) endpoints.\n", + "operationId": "integrations_git_get", + "responses": { + "200": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListOfGitProviderIntegrationsResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, + "/v2/integrations/git/{providerId}/create-repo": { + "post": { + "tags": [ + "Users" + ], + "summary": "Create git repository", + "description": "Creates a repository through a connected git account and commits the initial files into it, either the given\n`files` or the files of an Actor template archive (`templateArchiveUrl`).\n", + "operationId": "integrations_git_createRepo_post", + "parameters": [ + { + "name": "providerId", + "in": "path", + "description": "The connected git account to use: `github-app` for the GitHub App, or the ID of a connected GitLab or\nBitbucket integration, as returned by [Get git provider integrations](/api/v2/integrations-git-get).\n", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "github-app" + } + } + ], + "requestBody": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateGitRepoRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GitRepoResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "415": { + "$ref": "#/components/responses/UnsupportedMediaType" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, + "/v2/integrations/git/{providerId}/register-deployment-key": { + "post": { + "tags": [ + "Users" + ], + "summary": "Register deployment key", + "description": "Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a\nconnected git account, so that Apify can clone the repository when building the Actor.\n\nYou need write access to the Actor. The repository's host must match the provider of the connected account.\nIf the key is already registered on the repository, nothing changes. On GitHub, registering the key on another\nrepository removes it from the previously linked one.\n", + "operationId": "integrations_git_registerDeploymentKey_post", + "parameters": [ + { + "name": "providerId", + "in": "path", + "description": "The connected git account to use: `github-app` for the GitHub App, or the ID of a connected GitLab or\nBitbucket integration, as returned by [Get git provider integrations](/api/v2/integrations-git-get).\n", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "github-app" + } + } + ], + "requestBody": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegisterDeploymentKeyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "", + "headers": {}, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegisterDeploymentKeyResponse" + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "415": { + "$ref": "#/components/responses/UnsupportedMediaType" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false + } + }, + "/v2/browser-info": { + "get": { + "tags": [ + "Tools" + ], + "summary": "Get browser info", + "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", + "security": [], + "parameters": [ + { + "name": "skipHeaders", + "in": "query", + "description": "If `true` or `1`, the response omits the `headers` field.", + "schema": { + "type": "boolean" + } + }, + { + "name": "rawHeaders", + "in": "query", + "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BrowserInfoResponse" + } + } + } + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false, + "operationId": "tools_browser_info_get" + }, + "post": { + "tags": [ + "Tools" + ], + "summary": "Get browser info (POST)", + "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", + "security": [], + "parameters": [ + { + "name": "skipHeaders", + "in": "query", + "description": "If `true` or `1`, the response omits the `headers` field.", + "schema": { + "type": "boolean" + } + }, + { + "name": "rawHeaders", + "in": "query", + "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BrowserInfoResponse" + } + } + } + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false, + "operationId": "tools_browser_info_post" + }, + "put": { + "tags": [ + "Tools" + ], + "summary": "Get browser info (PUT)", + "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", + "security": [], + "parameters": [ + { + "name": "skipHeaders", + "in": "query", + "description": "If `true` or `1`, the response omits the `headers` field.", + "schema": { + "type": "boolean" + } + }, + { + "name": "rawHeaders", + "in": "query", + "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BrowserInfoResponse" + } + } + } + }, + "405": { + "$ref": "#/components/responses/MethodNotAllowed" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + } + }, + "deprecated": false, + "operationId": "tools_browser_info_put" + }, + "delete": { + "tags": [ + "Tools" + ], + "summary": "Get browser info (DELETE)", + "description": "Returns information about the HTTP request, including the client IP address,\ncountry code, request headers, and body length.\n\nThis endpoint is designed for proxy testing. It accepts any HTTP method so you\ncan verify that your proxy correctly forwards requests of any type and that\nclient IP addresses are anonymized.\n", + "security": [], + "parameters": [ + { + "name": "skipHeaders", + "in": "query", + "description": "If `true` or `1`, the response omits the `headers` field.", + "schema": { + "type": "boolean" + } + }, + { "name": "rawHeaders", "in": "query", "description": "If `true` or `1`, the response includes the `rawHeaders` field with the raw request headers.", @@ -19324,6 +19989,22 @@ "example": "2025-09-17T23:59:59.000Z" } }, + "deployment": { + "name": "deployment", + "in": "query", + "description": "Single Actor Standby deployment or comma-separated list of deployments (`SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`,\n`MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`). Used to filter Actor Standby runs by the pool that\nserves them. Requires the `status` parameter with only non-terminal statuses (`READY`, `RUNNING`, `TIMING-OUT` or\n`ABORTING`).\n", + "style": "form", + "explode": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "SINGLE_TENANT" + ] + } + }, "timeout": { "name": "timeout", "in": "query", @@ -19427,6 +20108,21 @@ "example": "dGhpcyBpcyBqdXN0IGV4YW1wbGUK..." } }, + "forcePermissionLevel": { + "name": "forcePermissionLevel", + "in": "query", + "description": "Overrides the Actor's permission level for this specific run. Use to test restricted permissions\nbefore deploying changes to your Actor or to temporarily elevate or restrict access. If you don't specify this\nparameter, the Actor uses its configured default permission level. For more information on permissions, see the\n[documentation](https://docs.apify.com/platform/actors/development/permissions).\n", + "style": "form", + "explode": true, + "schema": { + "type": "string", + "enum": [ + "LIMITED_PERMISSIONS", + "FULL_PERMISSIONS" + ], + "example": "LIMITED_PERMISSIONS" + } + }, "outputRecordKey": { "name": "outputRecordKey", "in": "query", @@ -20865,6 +21561,10 @@ "message": { "type": "string", "description": "Human-readable error message describing what went wrong." + }, + "data": { + "type": "object", + "description": "Additional machine-readable details about the error. Present only for some error types." } } }, @@ -21121,6 +21821,23 @@ ], "description": "Maximum number of items the run might produce." }, + "maxTotalChargeUsd": { + "type": [ + "number", + "null" + ], + "examples": [ + 5 + ], + "description": "Maximum cost in USD that a pay-per-event run can charge to the user." + }, + "isMaxTotalChargeUsdSetByUser": { + "type": [ + "boolean", + "null" + ], + "description": "Whether `maxTotalChargeUsd` was set explicitly by the user." + }, "forcePermissionLevel": { "anyOf": [ { @@ -21192,6 +21909,30 @@ "null" ], "description": "Whether to pass the Actor's input to the standby run. If `false`, the standby runs start with no input." + }, + "tenancy": { + "type": [ + "string", + "null" + ], + "examples": [ + "SINGLE_TENANT" + ], + "description": "Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). Set by Apify." + }, + "isConsoleAuthEnabled": { + "type": [ + "boolean", + "null" + ], + "description": "Whether standby requests can be authenticated with an Apify Console session. Set by Apify." + }, + "isTokenlessEnabled": { + "type": [ + "boolean", + "null" + ], + "description": "Whether standby requests can be made without an API token. Set by Apify." } } }, @@ -21382,6 +22123,13 @@ false ], "description": "Whether the environment variable is encrypted. Secret values aren't returned by the API." + }, + "valueHash": { + "type": "string", + "examples": [ + "a1b2c3" + ], + "description": "A short hash of the secret value, to detect value changes. Returned only for secret environment variables, in place of `value`." } } }, @@ -21470,6 +22218,27 @@ "null" ], "description": "URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`." + }, + "githubWebhookId": { + "type": [ + "integer", + "null" + ], + "description": "ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository." + }, + "gitlabWebhookId": { + "type": [ + "integer", + "null" + ], + "description": "ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository." + }, + "bitbucketWebhookId": { + "type": [ + "string", + "null" + ], + "description": "ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository." } } }, @@ -21515,6 +22284,14 @@ "format": "date-time", "x-internal": true }, + "notifiedAboutRentalToPpePriceChangeAt": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "x-internal": true + }, "reasonForChange": { "type": [ "string", @@ -21624,6 +22401,16 @@ "number", "null" ] + }, + "isPPEPlatformUsagePaidByUser": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ], + "description": "If `true`, the platform usage of the run is charged to the user running the Actor, in addition to the event prices." } } } @@ -21983,7 +22770,7 @@ "examples": [ "ssh-rsa AAAA ..." ], - "description": "The Actor's public SSH key, used as a deployment key for private Git repositories." + "description": "The Actor's public SSH key, used as a deployment key for private Git repositories. Returned only by the get Actor endpoint." }, "title": { "type": [ @@ -22400,6 +23187,30 @@ } } }, + "UpdateBuildOnPushRequest": { + "title": "UpdateBuildOnPushRequest", + "required": [ + "providerId", + "enabled" + ], + "type": "object", + "properties": { + "providerId": { + "type": "string", + "description": "The connected git account to register the push webhook through: `github-app` for the GitHub App, or the ID\nof a connected GitLab or Bitbucket integration, as returned by the [Get git provider integrations](/api/v2/integrations-git-get) endpoint.\n", + "examples": [ + "github-app" + ] + }, + "enabled": { + "type": "boolean", + "description": "`true` registers the push webhook so that pushes to the repository build the version; `false` turns it off.", + "examples": [ + true + ] + } + } + }, "ListOfEnvVars": { "title": "ListOfEnvVars", "type": "object", @@ -22408,93 +23219,255 @@ "items" ], "properties": { - "total": { - "type": "integer", + "total": { + "type": "integer", + "examples": [ + 5 + ] + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvVar" + }, + "description": "" + } + } + }, + "ListOfEnvVarsResponse": { + "title": "ListOfEnvVarsResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ListOfEnvVars" + } + } + }, + "EnvVarResponse": { + "title": "EnvVarResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/EnvVar" + } + } + }, + "WebhookEventType": { + "title": "WebhookEventType", + "type": "string", + "enum": [ + "ACTOR.BUILD.ABORTED", + "ACTOR.BUILD.CREATED", + "ACTOR.BUILD.FAILED", + "ACTOR.BUILD.SUCCEEDED", + "ACTOR.BUILD.TIMED_OUT", + "ACTOR.RUN.ABORTED", + "ACTOR.RUN.CREATED", + "ACTOR.RUN.FAILED", + "ACTOR.RUN.RESURRECTED", + "ACTOR.RUN.SUCCEEDED", + "ACTOR.RUN.TIMED_OUT", + "TEST" + ], + "description": "Type of event that triggers the webhook." + }, + "WebhookCondition": { + "title": "WebhookCondition", + "type": "object", + "properties": { + "actorId": { + "type": [ + "string", + "null" + ], + "examples": [ + "hksJZtadYvn4mBuin" + ] + }, + "actorTaskId": { + "type": [ + "string", + "null" + ], + "examples": [ + "asdLZtadYvn4mBZmm" + ] + }, + "actorRunId": { + "type": [ + "string", + "null" + ], + "examples": [ + "hgdKZtadYvn4mBpoi" + ] + } + } + }, + "WebhookSlackMessage": { + "title": "WebhookSlackMessage", + "description": "Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`.", + "type": "object", + "properties": { + "userIntegrationId": { + "type": "string", + "examples": [ + "kLcd8Z4dzXN1z3QzS" + ] + }, + "channelId": { + "type": "string", + "examples": [ + "C01234ABCDE" + ] + }, + "messageTemplate": { + "type": "string", + "examples": [ + "Actor run {{resource.id}} finished." + ] + } + } + }, + "WebhookDatasetTransformation": { + "title": "WebhookDatasetTransformation", + "description": "Selects which dataset item fields are included in the output.", + "type": "object", + "properties": { + "fields": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + [ + "title", + "url" + ] + ] + }, + "omit": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + [ + "html" + ] + ] + } + } + }, + "WebhookGoogleMail": { + "title": "WebhookGoogleMail", + "description": "Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`.", + "type": "object", + "properties": { + "userIntegrationId": { + "type": "string", "examples": [ - 5 + "kLcd8Z4dzXN1z3QzS" ] }, - "items": { + "emailTo": { "type": "array", "items": { - "$ref": "#/components/schemas/EnvVar" + "type": "string" }, - "description": "" - } - } - }, - "ListOfEnvVarsResponse": { - "title": "ListOfEnvVarsResponse", - "required": [ - "data" - ], - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/ListOfEnvVars" + "examples": [ + [ + "bob@example.com" + ] + ] + }, + "subject": { + "type": "string", + "examples": [ + "Actor run finished" + ] + }, + "body": { + "type": "string", + "examples": [ + "Actor run {{resource.id}} finished." + ] + }, + "attachmentFormat": { + "type": "string", + "examples": [ + "csv" + ] + }, + "attachmentTransformation": { + "$ref": "#/components/schemas/WebhookDatasetTransformation" } } }, - "EnvVarResponse": { - "title": "EnvVarResponse", - "required": [ - "data" - ], + "WebhookGoogleDrive": { + "title": "WebhookGoogleDrive", + "description": "Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`.", "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/EnvVar" + "userIntegrationId": { + "type": "string", + "examples": [ + "kLcd8Z4dzXN1z3QzS" + ] + }, + "filename": { + "type": "string", + "examples": [ + "results" + ] + }, + "format": { + "type": [ + "string", + "null" + ], + "examples": [ + "json" + ] + }, + "transformation": { + "$ref": "#/components/schemas/WebhookDatasetTransformation" } } }, - "WebhookEventType": { - "title": "WebhookEventType", - "type": "string", - "enum": [ - "ACTOR.BUILD.ABORTED", - "ACTOR.BUILD.CREATED", - "ACTOR.BUILD.FAILED", - "ACTOR.BUILD.SUCCEEDED", - "ACTOR.BUILD.TIMED_OUT", - "ACTOR.RUN.ABORTED", - "ACTOR.RUN.CREATED", - "ACTOR.RUN.FAILED", - "ACTOR.RUN.RESURRECTED", - "ACTOR.RUN.SUCCEEDED", - "ACTOR.RUN.TIMED_OUT", - "TEST" - ], - "description": "Type of event that triggers the webhook." - }, - "WebhookCondition": { - "title": "WebhookCondition", + "WebhookGithubIssue": { + "title": "WebhookGithubIssue", + "description": "GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`.", "type": "object", "properties": { - "actorId": { - "type": [ - "string", - "null" - ], + "userIntegrationId": { + "type": "string", "examples": [ - "hksJZtadYvn4mBuin" + "kLcd8Z4dzXN1z3QzS" ] }, - "actorTaskId": { - "type": [ - "string", - "null" - ], + "repository": { + "type": "string", "examples": [ - "asdLZtadYvn4mBZmm" + "apify/apify-docs" ] }, - "actorRunId": { - "type": [ - "string", - "null" - ], + "title": { + "type": "string", "examples": [ - "hgdKZtadYvn4mBpoi" + "Actor run failed" + ] + }, + "body": { + "type": "string", + "examples": [ + "Actor run {{resource.id}} failed." ] } } @@ -22553,8 +23526,8 @@ } } }, - "WebhookListItem": { - "title": "WebhookListItem", + "WebhookResource": { + "title": "WebhookResource", "required": [ "id", "createdAt", @@ -22562,9 +23535,7 @@ "userId", "eventTypes", "condition", - "ignoreSslErrors", - "doNotRetry", - "requestUrl" + "ignoreSslErrors" ], "type": "object", "properties": { @@ -22603,12 +23574,6 @@ false ] }, - "isApifyIntegration": { - "type": "boolean", - "examples": [ - false - ] - }, "isEnabled": { "type": "boolean", "examples": [ @@ -22617,10 +23582,20 @@ }, "actionType": { "type": "string", + "description": "Type of action the webhook performs: `HTTP_REQUEST`, `SLACK_MESSAGE`, `GOOGLE_MAIL`, `GOOGLE_DRIVE` or `GITHUB_ISSUE`.", "examples": [ "HTTP_REQUEST" ] }, + "isApifyIntegration": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, "shouldInterpolateStrings": { "type": [ "boolean", @@ -22650,72 +23625,244 @@ false ] }, - "doNotRetry": { - "type": "boolean", + "doNotRetry": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "requestUrl": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).", + "examples": [ + "http://example.com/" + ] + }, + "payloadTemplate": { + "type": [ + "string", + "null" + ], + "examples": [ + "{\\n \"userId\": {{userId}}..." + ] + }, + "headersTemplate": { + "type": [ + "string", + "null" + ], + "examples": [ + "{\\n \"Authorization\": \"Bearer ...\"}" + ] + }, + "title": { + "type": [ + "string", + "null" + ], + "examples": [ + "Notify on failure" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "this is webhook description" + ] + }, + "slackMessage": { + "$ref": "#/components/schemas/WebhookSlackMessage" + }, + "googleMail": { + "$ref": "#/components/schemas/WebhookGoogleMail" + }, + "googleDrive": { + "$ref": "#/components/schemas/WebhookGoogleDrive" + }, + "githubIssue": { + "$ref": "#/components/schemas/WebhookGithubIssue" + }, + "lastDispatch": { + "anyOf": [ + { + "$ref": "#/components/schemas/WebhookLastDispatch" + }, + { + "type": "null" + } + ] + }, + "stats": { + "anyOf": [ + { + "$ref": "#/components/schemas/WebhookStats" + }, + { + "type": "null" + } + ] + } + } + }, + "ListOfWebhookResources": { + "title": "ListOfWebhookResources", + "description": "Paginated list of webhooks with all their fields, including `payloadTemplate`.", + "allOf": [ + { + "$ref": "#/components/schemas/PaginationResponse" + }, + { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookResource" + } + } + } + } + ] + }, + "ListOfWebhookResourcesResponse": { + "title": "ListOfWebhookResourcesResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ListOfWebhookResources" + } + } + }, + "ActorOAuthConnection": { + "title": "ActorOAuthConnection", + "description": "An OAuth connection configured on an Actor. Secret credentials are never returned.", + "required": [ + "_id", + "actorId", + "oAuthProviderType", + "createdAt", + "modifiedAt" + ], + "type": "object", + "properties": { + "_id": { + "type": "string", + "examples": [ + "kD9fm2Xp4cJq7Lw8N" + ] + }, + "actorId": { + "type": "string", + "examples": [ + "zdc3Pyhyz3m8vjDeM" + ] + }, + "oAuthProviderType": { + "type": "string", + "enum": [ + "CUSTOM", + "GOOGLE" + ], "examples": [ - false + "GOOGLE" ] }, - "requestUrl": { + "createdAt": { "type": "string", - "format": "uri", + "format": "date-time", "examples": [ - "http://example.com/" + "2026-01-28T10:00:00.000Z" ] }, - "lastDispatch": { - "anyOf": [ - { - "$ref": "#/components/schemas/WebhookLastDispatch" - }, - { - "type": "null" - } + "modifiedAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2026-01-28T10:00:00.000Z" ] }, - "stats": { - "anyOf": [ - { - "$ref": "#/components/schemas/WebhookStats" + "credentials": { + "type": "object", + "description": "The public part of the connection's OAuth client configuration.", + "properties": { + "clientId": { + "type": "string", + "examples": [ + "1234567890-abc.apps.googleusercontent.com" + ] }, - { - "type": "null" + "scope": { + "type": "string", + "examples": [ + "https://www.googleapis.com/auth/drive.file" + ] + }, + "label": { + "type": "string", + "description": "Display name of a `CUSTOM` provider.", + "examples": [ + "My OAuth app" + ] + }, + "imageUrl": { + "type": "string", + "description": "Logo URL of a `CUSTOM` provider.", + "examples": [ + "https://example.com/logo.png" + ] } - ] + } } } }, - "ListOfWebhooks": { - "title": "ListOfWebhooks", - "allOf": [ - { - "$ref": "#/components/schemas/PaginationResponse" + "ListOfActorOAuthConnections": { + "title": "ListOfActorOAuthConnections", + "required": [ + "total", + "items" + ], + "type": "object", + "properties": { + "total": { + "type": "integer", + "examples": [ + 1 + ] }, - { - "type": "object", - "required": [ - "items" - ], - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WebhookListItem" - } - } + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ActorOAuthConnection" } } - ] + } }, - "ListOfWebhooksResponse": { - "title": "ListOfWebhooksResponse", + "ListOfActorOAuthConnectionsResponse": { + "title": "ListOfActorOAuthConnectionsResponse", "required": [ "data" ], "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/ListOfWebhooks" + "$ref": "#/components/schemas/ListOfActorOAuthConnections" } } }, @@ -22774,10 +23921,31 @@ "type": [ "string" ], - "description": "User agent of the client that started the build.", + "description": "User agent of the client that started the build. Returned only to the Actor owner.", "examples": [ "Mozilla/5.0 (iPad)" ] + }, + "githubActionsRunUrl": { + "type": "string", + "description": "URL of the GitHub Actions run that started the build. Present only for builds started from CI.", + "examples": [ + "https://github.com/apify/my-actor/actions/runs/123456789" + ] + }, + "actorRunId": { + "type": "string", + "description": "ID of the Actor run that started the build. Returned only to the Actor owner.", + "examples": [ + "HG7ML7M8z78YcAPEB" + ] + }, + "webhookDispatchId": { + "type": "string", + "description": "ID of the webhook dispatch that started the build. Returned only to the Actor owner.", + "examples": [ + "Zib4xbZsmvZeK55ua" + ] } } }, @@ -22787,7 +23955,6 @@ "id", "status", "startedAt", - "usageTotalUsd", "buildNumber" ], "type": "object", @@ -22834,7 +24001,8 @@ "type": "number", "examples": [ 0.02 - ] + ], + "description": "Total cost in USD for this build. Requires authentication token to access." }, "buildNumber": { "type": "string", @@ -22960,6 +24128,23 @@ "examples": [ 2048 ] + }, + "tag": { + "type": [ + "string", + "null" + ], + "examples": [ + "latest" + ], + "description": "The tag passed when starting the build. Present only when the `tag` parameter was used." + }, + "debug": { + "type": [ + "boolean", + "null" + ], + "description": "Whether this is a debug build. Present only on debug builds." } } }, @@ -23258,6 +24443,47 @@ "# Magic Actor\\nThis Actor is magic." ] }, + "changelog": { + "type": [ + "string", + "null" + ], + "deprecated": true, + "examples": [ + "# Changelog\\n## 0.1.1\\n- Initial release" + ] + }, + "exitCode": { + "type": [ + "integer", + "null" + ], + "examples": [ + 0 + ], + "description": "Exit code of the build process. Set when the build finishes." + }, + "gitCommitId": { + "type": "string", + "examples": [ + "5f1d2b3c4a5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a" + ], + "description": "ID of the Git commit the build was created from. Present only for builds from a Git repository." + }, + "gitBranchName": { + "type": "string", + "examples": [ + "main" + ], + "description": "Name of the Git branch the build was created from. Present only for builds from a Git repository." + }, + "createdByOrganizationMemberUserId": { + "type": "string", + "examples": [ + "klmdEpoiojmdEMlk3" + ], + "description": "ID of the organization member who started the build. Present only for builds started in an organization account." + }, "buildNumber": { "type": "string", "pattern": "^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])(\\.[1-9][0-9]{0,4})$", @@ -23313,6 +24539,20 @@ "items": { "$ref": "#/components/schemas/SourceCodeFile" } + }, + "gitHubGistUrl": { + "type": "string", + "description": "URL of the GitHub Gist, present when sourceType is GITHUB_GIST.", + "examples": [ + "https://gist.github.com/jancurn/2dd8fa0dd5bf9ea2b4d5a6e0f6a0e8c5" + ] + }, + "tarballUrl": { + "type": "string", + "description": "URL of the tarball or ZIP file, present when sourceType is TARBALL. Returned only to the Actor owner.", + "examples": [ + "https://example.com/my-actor.zip" + ] } } }, @@ -23462,6 +24702,51 @@ ], "format": "date-time", "description": "Time when the run was scheduled." + }, + "actorRunId": { + "type": "string", + "examples": [ + "HG7ML7M8z78YcAPEB" + ], + "description": "ID of the Actor run that started this run. Present only when the run was started from another run." + }, + "webhookDispatchId": { + "type": "string", + "examples": [ + "asdLZtadYvn4mBZmm" + ], + "description": "ID of the webhook dispatch that started the run. Present only when the run was started by a webhook." + }, + "scheduledAct2Id": { + "type": "string", + "examples": [ + "c6KfSgoQzFhMk3etc" + ], + "description": "ID of the schedule action that started the Actor. Present only on runs of Actors started by a schedule." + }, + "scheduledActorTaskId": { + "type": "string", + "examples": [ + "c6KfSgoQzFhMk3etc" + ], + "description": "ID of the schedule action that started the Actor task. Present only on runs of tasks started by a schedule." + } + } + }, + "RunStandby": { + "title": "RunStandby", + "type": "object", + "description": "Standby configuration of the run. Present only on Actor Standby runs.", + "required": [ + "deployment" + ], + "properties": { + "deployment": { + "type": "string", + "examples": [ + "SINGLE_TENANT" + ], + "description": "How the Standby run is deployed: `SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, `MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`. `SINGLE_TENANT` is a private instance in the user's account.\nThe `MULTI_TENANT_*` values are runs in the Actor owner's account that serve requests from many users.\n" } } }, @@ -23573,6 +24858,17 @@ "examples": [ "so93g2shcDzK3pA85" ] + }, + "standby": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunStandby" + }, + { + "type": "null" + } + ], + "description": "Standby configuration of the run. `null` for runs that are not Actor Standby runs." } } }, @@ -23823,6 +25119,56 @@ } } }, + "RunEventUsage": { + "title": "RunEventUsage", + "type": "object", + "description": "Cost of a single pay-per-event event type charged during the run.", + "required": [ + "eventTotalUsd", + "eventTitle" + ], + "properties": { + "eventTotalUsd": { + "type": "number", + "examples": [ + 0.15 + ], + "description": "Total cost of all charges of this event in USD." + }, + "eventTitle": { + "type": "string", + "examples": [ + "Page crawled" + ], + "description": "Human-readable title of the event." + } + } + }, + "IntegrationTracking": { + "title": "IntegrationTracking", + "type": "object", + "description": "Information about the third-party integration that created the resource.", + "properties": { + "platform": { + "type": "string", + "examples": [ + "zapier" + ], + "description": "Name of the integration platform." + }, + "appId": { + "type": "string", + "description": "ID of the integration app." + }, + "isAiTool": { + "type": "boolean", + "examples": [ + false + ], + "description": "Whether the resource was created by an AI tool." + } + } + }, "RunOptions": { "title": "RunOptions", "required": [ @@ -23861,6 +25207,16 @@ 2048 ] }, + "restartOnError": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ], + "description": "Whether to automatically restart the run if it fails." + }, "maxItems": { "type": [ "integer", @@ -23880,6 +25236,13 @@ "examples": [ 5 ] + }, + "isMaxTotalChargeUsdSetByUser": { + "type": "boolean", + "examples": [ + true + ], + "description": "Whether the user explicitly set `maxTotalChargeUsd` when starting the run. Not present for pay-per-result Actors." } } }, @@ -24008,6 +25371,15 @@ "examples": [ 3 ] + }, + "PROXY_UNBLOCKER_UNITS": { + "type": [ + "number", + "null" + ], + "examples": [ + 0 + ] } } }, @@ -24112,16 +25484,25 @@ "null" ], "examples": [ - 0.034 + 0.034 + ] + }, + "PROXY_SERPS": { + "type": [ + "number", + "null" + ], + "examples": [ + 0.003 ] }, - "PROXY_SERPS": { + "PROXY_UNBLOCKER_UNITS": { "type": [ "number", "null" ], "examples": [ - 0.003 + 0 ] } } @@ -24167,6 +25548,18 @@ "examples": [ "INPUT-METAMORPH-1" ] + }, + "buildTags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Build tags of the build used for the metamorphed Actor.", + "examples": [ + [ + "latest" + ] + ] } } }, @@ -24287,6 +25680,75 @@ "data-extracted": 75 } }, + "accountedChargedEventCounts": { + "description": "A map of charged event types to the number of their charges that have already been accounted for billing. Present only for pay-per-event Actors.", + "type": [ + "object", + "null" + ], + "additionalProperties": { + "type": "integer" + }, + "example": { + "actor-start": 1, + "page-crawled": 150 + } + }, + "eventUsage": { + "description": "Cost breakdown of the pay-per-event charges in USD, keyed by event type. Present only for pay-per-event runs, and not when the run was started by the Actor's owner.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/RunEventUsage" + } + }, + "externalChargedTotalUsd": { + "type": "number", + "examples": [ + 0.5 + ], + "description": "Total price in USD of the pay-per-event charges made to other users. Present only on multi-tenant Standby runs." + }, + "standby": { + "anyOf": [ + { + "$ref": "#/components/schemas/RunStandby" + }, + { + "type": "null" + } + ], + "description": "Standby configuration of the run. `null` for runs that are not Actor Standby runs." + }, + "integrationTracking": { + "description": "Present only when the run was started by a third-party integration.", + "$ref": "#/components/schemas/IntegrationTracking" + }, + "createdByOrganizationMemberUserId": { + "type": "string", + "examples": [ + "7sT5jcggjjA9fNcxF" + ], + "description": "ID of the organization member who started the run. Present only for runs started on behalf of an organization." + }, + "consoleUrl": { + "type": "string", + "format": "uri", + "examples": [ + "https://console.apify.com/view/runs/HG7ML7M8z78YcAPEB" + ], + "description": "URL of the run in Apify Console. Returned only by the [Get Actor run](/api/v2/actor-run-get) endpoint." + }, + "output": { + "type": "object", + "description": "Output links of the run, generated from the output schema of the Actor build. Present only if the build defines an output schema.", + "additionalProperties": { + "type": "string", + "format": "uri" + }, + "example": { + "results": "https://api.apify.com/v2/datasets/wmKPijuyDnPZAPRMk/items" + } + }, "options": { "description": "Configuration options for the Actor run.", "$ref": "#/components/schemas/RunOptions" @@ -24512,14 +25974,14 @@ }, "storageBytes": { "type": "integer", - "description": "Total storage size in bytes. Only returned by the single-dataset endpoint.", + "description": "Total storage size in bytes.", "examples": [ 783 ] }, "inflatedBytes": { "type": "integer", - "description": "Uncompressed size in bytes. Only returned by the dataset list endpoint.", + "description": "Uncompressed size in bytes.", "examples": [ 0 ] @@ -24555,6 +26017,15 @@ "d7b9MDYsbtX5L7XAj" ] }, + "title": { + "type": [ + "string", + "null" + ], + "examples": [ + "My Dataset" + ] + }, "userId": { "type": "string", "examples": [ @@ -24989,6 +26460,15 @@ "d7b9MDYsbtX5L7XAj" ] }, + "title": { + "type": [ + "string", + "null" + ], + "examples": [ + "My Store" + ] + }, "userId": { "type": [ "string", @@ -25409,6 +26889,16 @@ "some-name" ] }, + "title": { + "type": [ + "string", + "null" + ], + "description": "The title of the request queue.", + "examples": [ + "My Queue" + ] + }, "userId": { "$ref": "#/components/schemas/QueueUserId" }, @@ -25653,6 +27143,14 @@ "sbJ7klsdf7ujN9l" ] }, + "LockExpiresAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the lock on this request expires.", + "examples": [ + "2022-06-14T23:00:00.000Z" + ] + }, "RequestResource": { "title": "RequestResource", "description": "A request stored in the request queue, including its metadata and processing state.", @@ -25667,6 +27165,17 @@ "properties": { "id": { "$ref": "#/components/schemas/RequestId" + }, + "lockExpiresAt": { + "$ref": "#/components/schemas/LockExpiresAt", + "description": "The timestamp when the lock on this request expires. Only present while the request is locked." + }, + "lockByClient": { + "type": "string", + "description": "Key of the client that last locked the request. It is set when the request is locked and removed only by\nan explicit unlock or by an update of the request, so it can still be present after the lock has expired.\n", + "examples": [ + "my-client-key" + ] } } } @@ -26118,14 +27627,6 @@ } } }, - "LockExpiresAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp when the lock on this request expires.", - "examples": [ - "2022-06-14T23:00:00.000Z" - ] - }, "RequestLockInfo": { "title": "RequestLockInfo", "description": "Information about a request lock.", @@ -26396,6 +27897,17 @@ "examples": [ 15 ] + }, + "lastRunStartedAt": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2019-11-30T07:34:24.202Z" + ], + "description": "Time when the last run of the task started. In the task list, it's `null` if the task has no runs. In a single task, it's omitted if the task has no runs." } } }, @@ -26444,6 +27956,15 @@ "my-task" ] }, + "title": { + "type": [ + "string", + "null" + ], + "examples": [ + "My task" + ] + }, "username": { "type": [ "string", @@ -26485,6 +28006,13 @@ "type": "null" } ] + }, + "isPublic": { + "type": "boolean", + "description": "Whether the task is published. Based on the `publicConfig.publishedAt` field.\n", + "examples": [ + false + ] } } }, @@ -26579,6 +28107,27 @@ "examples": [ false ] + }, + "isMaxTotalChargeUsdSetByUser": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ], + "description": "Whether the user explicitly set `maxTotalChargeUsd`. Returned only in schedule action `runOptions`, and only if it was provided." + }, + "forcePermissionLevel": { + "description": "Permission level to run the Actor with, overriding the Actor's own setting. Returned only in schedule action `runOptions`, and only if it was provided.", + "anyOf": [ + { + "$ref": "#/components/schemas/ActorPermissionLevel" + }, + { + "type": "null" + } + ] } } }, @@ -26655,6 +28204,45 @@ "null" ], "description": "Key of the dataset view from the Actor's dataset schema used to display results. Must be\none of the views declared on the resolved dataset. You can't publish a task without it.\n" + }, + "categorization": { + "type": [ + "string", + "null" + ], + "description": "ID of the use-case category of the task." + }, + "highlightedFields": { + "type": [ + "array", + "null" + ], + "description": "Names of the dataset fields highlighted on the public task page.", + "items": { + "type": "string" + } + }, + "faq": { + "type": [ + "array", + "null" + ], + "description": "Frequently asked questions displayed on the public task page.", + "items": { + "type": "object", + "required": [ + "question", + "answer" + ], + "properties": { + "question": { + "type": "string" + }, + "answer": { + "type": "string" + } + } + } } } }, @@ -26767,6 +28355,13 @@ "my-task" ] }, + "nameLowerCase": { + "type": "string", + "examples": [ + "my-task" + ], + "description": "Task name in lowercase." + }, "username": { "type": [ "string", @@ -26988,218 +28583,341 @@ } } }, - "WebhookResource": { - "title": "WebhookResource", + "UpdateRunRequest": { + "title": "UpdateRunRequest", + "type": "object", + "properties": { + "runId": { + "type": "string", + "examples": [ + "3KH8gEpp4d8uQSe8T" + ] + }, + "statusMessage": { + "type": "string", + "examples": [ + "Actor has finished" + ] + }, + "isStatusMessageTerminal": { + "type": "boolean", + "examples": [ + true + ] + }, + "generalAccess": { + "$ref": "#/components/schemas/GeneralAccess" + } + } + }, + "ChargeRunRequest": { + "title": "ChargeRunRequest", "required": [ - "id", + "eventName", + "count" + ], + "type": "object", + "properties": { + "eventName": { + "type": "string", + "examples": [ + "ANALYZE_PAGE" + ] + }, + "count": { + "type": "integer", + "examples": [ + 1 + ] + }, + "requestId": { + "type": "string", + "description": "ID of the Server Actor request being charged, from the `X-Actor-Request-ID` header of the incoming request. Required for multi-tenant Server Actor runs, where it identifies the request the charge belongs to.", + "examples": [ + "7Hs2kQw9LxP4mN1vB" + ] + } + } + }, + "ActorOAuthAccount": { + "title": "ActorOAuthAccount", + "description": "An account a user connected through an Actor OAuth connection.", + "required": [ + "_id", + "userId", + "connectionId", "createdAt", "modifiedAt", - "userId", - "eventTypes", - "condition", - "ignoreSslErrors" + "data" ], "type": "object", "properties": { - "id": { + "_id": { + "type": "string", + "examples": [ + "Rk3mP8xQ2vN5tY7wZ" + ] + }, + "userId": { "type": "string", "examples": [ - "YiKoxjkaS9gjGTqhF" + "wRsJZtadYvn4mBZmm" ] }, - "createdAt": { + "connectionId": { "type": "string", - "format": "date-time", "examples": [ - "2019-12-12T07:34:14.202Z" + "kD9fm2Xp4cJq7Lw8N" ] }, - "modifiedAt": { + "createdAt": { "type": "string", "format": "date-time", "examples": [ - "2019-12-13T08:36:13.202Z" + "2026-01-28T10:00:00.000Z" ] }, - "userId": { + "modifiedAt": { "type": "string", + "format": "date-time", "examples": [ - "wRsJZtadYvn4mBZmm" + "2026-01-28T10:05:00.000Z" ] }, - "isAdHoc": { + "authorizedAt": { "type": [ - "boolean", + "string", "null" ], + "format": "date-time", "examples": [ - false + "2026-01-28T10:05:00.000Z" ] }, - "shouldInterpolateStrings": { + "description": { "type": [ - "boolean", + "string", "null" ], + "description": "Label of the connected account, usually its email address.", "examples": [ - false + "jane.doe@example.com" ] }, - "eventTypes": { + "data": { + "type": "object", + "description": "The OAuth tokens of the account, such as `access_token`, `refresh_token`, `scope` and `expiry_date`. The exact\nfields depend on the OAuth provider.\n", + "additionalProperties": true + } + } + }, + "ListOfActorOAuthAccounts": { + "title": "ListOfActorOAuthAccounts", + "required": [ + "total", + "items" + ], + "type": "object", + "properties": { + "total": { + "type": "integer", + "examples": [ + 1 + ] + }, + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/WebhookEventType" - }, + "$ref": "#/components/schemas/ActorOAuthAccount" + } + } + } + }, + "ListOfActorOAuthAccountsResponse": { + "title": "ListOfActorOAuthAccountsResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ListOfActorOAuthAccounts" + } + } + }, + "ActorOAuthAccountResponse": { + "title": "ActorOAuthAccountResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ActorOAuthAccount" + } + } + }, + "StorageOwnership": { + "type": "string", + "enum": [ + "ownedByMe", + "sharedWithMe" + ], + "examples": [ + "ownedByMe" + ] + }, + "KeyValueStoreListStats": { + "title": "KeyValueStoreListStats", + "type": "object", + "properties": { + "readCount": { + "type": "integer", "examples": [ - [ - "ACTOR.RUN.SUCCEEDED" - ] + 9 ] }, - "condition": { - "$ref": "#/components/schemas/WebhookCondition" + "writeCount": { + "type": "integer", + "examples": [ + 3 + ] }, - "ignoreSslErrors": { - "type": "boolean", + "deleteCount": { + "type": "integer", "examples": [ - false + 6 ] }, - "doNotRetry": { - "type": [ - "boolean", - "null" - ], + "listCount": { + "type": "integer", "examples": [ - false + 2 ] }, - "requestUrl": { + "s3StorageBytes": { + "type": "integer", + "description": "Storage size in bytes.", + "examples": [ + 18 + ] + } + } + }, + "KeyValueStoreListItem": { + "title": "KeyValueStoreListItem", + "required": [ + "id", + "createdAt", + "modifiedAt", + "accessedAt" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "examples": [ + "WkzbQMuFYuamGv3YF" + ] + }, + "name": { "type": [ "string", "null" ], - "format": "uri", - "description": "URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).", "examples": [ - "http://example.com/" + "d7b9MDYsbtX5L7XAj" ] }, - "payloadTemplate": { + "title": { "type": [ "string", "null" ], "examples": [ - "{\\n \"userId\": {{userId}}..." + "My Store" ] }, - "headersTemplate": { + "userId": { "type": [ "string", "null" ], "examples": [ - "{\\n \"Authorization\": \"Bearer ...\"}" + "BPWDBd7Z9c746JAnF" ] }, - "description": { + "username": { "type": [ "string", "null" ], "examples": [ - "this is webhook description" - ] - }, - "lastDispatch": { - "anyOf": [ - { - "$ref": "#/components/schemas/WebhookLastDispatch" - }, - { - "type": "null" - } + "janedoe" ] }, - "stats": { - "anyOf": [ - { - "$ref": "#/components/schemas/WebhookStats" - }, - { - "type": "null" - } - ] - } - } - }, - "UpdateRunRequest": { - "title": "UpdateRunRequest", - "type": "object", - "properties": { - "runId": { + "createdAt": { "type": "string", + "format": "date-time", "examples": [ - "3KH8gEpp4d8uQSe8T" + "2019-12-12T07:34:14.202Z" ] }, - "statusMessage": { + "modifiedAt": { "type": "string", + "format": "date-time", "examples": [ - "Actor has finished" + "2019-12-13T08:36:13.202Z" ] }, - "isStatusMessageTerminal": { - "type": "boolean", + "accessedAt": { + "type": "string", + "format": "date-time", "examples": [ - true + "2019-12-14T08:36:13.202Z" ] }, - "generalAccess": { - "$ref": "#/components/schemas/GeneralAccess" - } - } - }, - "ChargeRunRequest": { - "title": "ChargeRunRequest", - "required": [ - "eventName", - "count" - ], - "type": "object", - "properties": { - "eventName": { - "type": "string", + "actId": { + "type": [ + "string", + "null" + ], "examples": [ - "ANALYZE_PAGE" + null ] }, - "count": { - "type": "integer", + "actRunId": { + "type": [ + "string", + "null" + ], "examples": [ - 1 + null ] }, - "requestId": { - "type": "string", - "description": "ID of the Server Actor request being charged, from the `X-Actor-Request-ID` header of the incoming request. Required for multi-tenant Server Actor runs, where it identifies the request the charge belongs to.", - "examples": [ - "7Hs2kQw9LxP4mN1vB" + "schema": { + "type": [ + "object", + "string", + "null" + ], + "description": "Optional JSON schema describing the keys stored in the key-value store. Older stores return it as a JSON string." + }, + "generalAccess": { + "anyOf": [ + { + "$ref": "#/components/schemas/GeneralAccess" + }, + { + "type": "null" + } ] + }, + "stats": { + "$ref": "#/components/schemas/KeyValueStoreListStats" } } }, - "StorageOwnership": { - "type": "string", - "enum": [ - "ownedByMe", - "sharedWithMe" - ], - "examples": [ - "ownedByMe" - ] - }, "ListOfKeyValueStores": { "title": "ListOfKeyValueStores", "allOf": [ @@ -27222,7 +28940,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/KeyValueStoreResource" + "$ref": "#/components/schemas/KeyValueStoreListItem" } } } @@ -27245,7 +28963,6 @@ "title": "DatasetListItem", "required": [ "id", - "name", "userId", "createdAt", "modifiedAt", @@ -27262,7 +28979,10 @@ ] }, "name": { - "type": "string", + "type": [ + "string", + "null" + ], "examples": [ "d7b9MDYsbtX5L7XAj" ] @@ -27395,14 +29115,61 @@ } } }, + "RequestQueueListStats": { + "title": "RequestQueueListStats", + "description": "Statistics about request queue operations and storage, as returned in request queue lists.", + "type": "object", + "properties": { + "deleteCount": { + "type": "integer", + "description": "The number of delete operations performed on the request queue.", + "examples": [ + 0 + ] + }, + "headItemReadCount": { + "type": "integer", + "description": "The number of times requests from the head were read.", + "examples": [ + 5 + ] + }, + "readCount": { + "type": "integer", + "description": "The total number of read operations performed on the request queue.", + "examples": [ + 100 + ] + }, + "writeCount": { + "type": "integer", + "description": "The total number of write operations performed on the request queue.", + "examples": [ + 10 + ] + }, + "s3StorageBytes": { + "type": "integer", + "description": "The storage size in bytes of requests stored in S3.", + "examples": [ + 0 + ] + }, + "dynamodbStorageBytes": { + "type": "integer", + "description": "The storage size in bytes of requests stored in DynamoDB.", + "examples": [ + 1024 + ] + } + } + }, "RequestQueueListItem": { "title": "RequestQueueListItem", "description": "A shortened request queue object for list responses.", "required": [ "id", - "name", "userId", - "username", "createdAt", "modifiedAt", "accessedAt", @@ -27417,12 +29184,25 @@ "$ref": "#/components/schemas/QueueId" }, "name": { - "type": "string", + "type": [ + "string", + "null" + ], "description": "The name of the request queue.", "examples": [ "some-name" ] }, + "title": { + "type": [ + "string", + "null" + ], + "description": "The title of the request queue.", + "examples": [ + "My Queue" + ] + }, "userId": { "$ref": "#/components/schemas/QueueUserId" }, @@ -27473,13 +29253,224 @@ ], "description": "The ID of the Actor run that created this request queue." }, - "hadMultipleClients": { - "$ref": "#/components/schemas/HadMultipleClients" + "hadMultipleClients": { + "$ref": "#/components/schemas/HadMultipleClients" + }, + "generalAccess": { + "anyOf": [ + { + "$ref": "#/components/schemas/GeneralAccess" + }, + { + "type": "null" + } + ] + }, + "stats": { + "$ref": "#/components/schemas/RequestQueueListStats" + } + } + }, + "ListOfRequestQueues": { + "title": "ListOfRequestQueues", + "description": "A paginated list of request queues.", + "allOf": [ + { + "$ref": "#/components/schemas/PaginationResponse" + }, + { + "type": "object", + "required": [ + "items" + ], + "properties": { + "unnamed": { + "type": "boolean", + "description": "Whether the listing was filtered to only unnamed request queues.", + "examples": [ + false + ] + }, + "items": { + "type": "array", + "description": "The array of request queues.", + "items": { + "$ref": "#/components/schemas/RequestQueueListItem" + } + } + } + } + ] + }, + "ListOfRequestQueuesResponse": { + "title": "ListOfRequestQueuesResponse", + "description": "Response containing a list of request queues.", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ListOfRequestQueues" + } + } + }, + "WebhookListItem": { + "title": "WebhookListItem", + "required": [ + "id", + "createdAt", + "modifiedAt", + "userId", + "eventTypes", + "condition", + "ignoreSslErrors", + "doNotRetry" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "examples": [ + "YiKoxjkaS9gjGTqhF" + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2019-12-12T07:34:14.202Z" + ] + }, + "modifiedAt": { + "type": "string", + "format": "date-time", + "examples": [ + "2019-12-13T08:36:13.202Z" + ] + }, + "userId": { + "type": "string", + "examples": [ + "wRsJZtadYvn4mBZmm" + ] + }, + "isAdHoc": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "isApifyIntegration": { + "type": "boolean", + "examples": [ + false + ] + }, + "isEnabled": { + "type": "boolean", + "examples": [ + true + ] + }, + "actionType": { + "type": "string", + "examples": [ + "HTTP_REQUEST" + ] + }, + "shouldInterpolateStrings": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "eventTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEventType" + }, + "examples": [ + [ + "ACTOR.RUN.SUCCEEDED" + ] + ] + }, + "condition": { + "$ref": "#/components/schemas/WebhookCondition" + }, + "ignoreSslErrors": { + "type": "boolean", + "examples": [ + false + ] + }, + "doNotRetry": { + "type": "boolean", + "examples": [ + false + ] + }, + "requestUrl": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "URL of the HTTP request sent by the webhook. It is omitted or `null` for hook actions other than the conventional HTTP case (e.g. Slack or email notifications).", + "examples": [ + "http://example.com/" + ] + }, + "headersTemplate": { + "type": [ + "string", + "null" + ], + "examples": [ + "{\\n \"Authorization\": \"Bearer ...\"}" + ] + }, + "title": { + "type": [ + "string", + "null" + ], + "examples": [ + "Notify on failure" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "this is webhook description" + ] + }, + "slackMessage": { + "$ref": "#/components/schemas/WebhookSlackMessage" }, - "generalAccess": { + "googleMail": { + "$ref": "#/components/schemas/WebhookGoogleMail" + }, + "googleDrive": { + "$ref": "#/components/schemas/WebhookGoogleDrive" + }, + "githubIssue": { + "$ref": "#/components/schemas/WebhookGithubIssue" + }, + "lastDispatch": { "anyOf": [ { - "$ref": "#/components/schemas/GeneralAccess" + "$ref": "#/components/schemas/WebhookLastDispatch" }, { "type": "null" @@ -27487,13 +29478,19 @@ ] }, "stats": { - "$ref": "#/components/schemas/RequestQueueStats" + "anyOf": [ + { + "$ref": "#/components/schemas/WebhookStats" + }, + { + "type": "null" + } + ] } } }, - "ListOfRequestQueues": { - "title": "ListOfRequestQueues", - "description": "A paginated list of request queues.", + "ListOfWebhooks": { + "title": "ListOfWebhooks", "allOf": [ { "$ref": "#/components/schemas/PaginationResponse" @@ -27504,34 +29501,25 @@ "items" ], "properties": { - "unnamed": { - "type": "boolean", - "description": "Whether the listing was filtered to only unnamed request queues.", - "examples": [ - false - ] - }, "items": { "type": "array", - "description": "The array of request queues.", "items": { - "$ref": "#/components/schemas/RequestQueueListItem" + "$ref": "#/components/schemas/WebhookListItem" } } } } ] }, - "ListOfRequestQueuesResponse": { - "title": "ListOfRequestQueuesResponse", - "description": "Response containing a list of request queues.", + "ListOfWebhooksResponse": { + "title": "ListOfWebhooksResponse", "required": [ "data" ], "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/ListOfRequestQueues" + "$ref": "#/components/schemas/ListOfWebhooks" } } }, @@ -27760,6 +29748,13 @@ "description": "A summary of the webhook that triggered this dispatch.", "type": "object", "properties": { + "_id": { + "type": "string", + "description": "ID of the webhook. The API returns it under `_id`, not `id`.", + "examples": [ + "YiKoxjkaS9gjGTqhF" + ] + }, "actionType": { "type": "string", "examples": [ @@ -27785,6 +29780,27 @@ "examples": [ false ] + }, + "isApifyIntegration": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "slackMessage": { + "$ref": "#/components/schemas/WebhookSlackMessage" + }, + "googleMail": { + "$ref": "#/components/schemas/WebhookGoogleMail" + }, + "googleDrive": { + "$ref": "#/components/schemas/WebhookGoogleDrive" + }, + "githubIssue": { + "$ref": "#/components/schemas/WebhookGithubIssue" } } }, @@ -27930,6 +29946,11 @@ "null" ], "example": "{\"foo\": \"bar\"}" + }, + "debugPostMessage": { + "type": "object", + "description": "Response of the Slack `chat.postMessage` call. Present only for successful calls of `SLACK_MESSAGE` webhooks.", + "additionalProperties": true } } } @@ -28075,6 +30096,19 @@ } } }, + "ScheduleNotifications": { + "title": "ScheduleNotifications", + "type": "object", + "description": "Notification settings for this schedule.", + "properties": { + "email": { + "type": "boolean", + "examples": [ + true + ] + } + } + }, "ScheduleListItemActionRunActor": { "title": "ScheduleListItemActionRunActor", "required": [ @@ -28157,6 +30191,19 @@ "actions" ], "properties": { + "title": { + "type": [ + "string", + "null" + ] + }, + "notifications": { + "$ref": "#/components/schemas/ScheduleNotifications" + }, + "integrationTracking": { + "description": "Present only when the schedule was created by a third-party integration.", + "$ref": "#/components/schemas/IntegrationTracking" + }, "actions": { "type": "array", "items": { @@ -28202,19 +30249,6 @@ } } }, - "ScheduleNotifications": { - "title": "ScheduleNotifications", - "type": "object", - "description": "Notification settings for this schedule.", - "properties": { - "email": { - "type": "boolean", - "examples": [ - true - ] - } - } - }, "ScheduleActionRunInput": { "title": "ScheduleActionRunInput", "type": "object", @@ -28404,6 +30438,39 @@ } } }, + "ScheduleUiState": { + "title": "ScheduleUiState", + "type": "object", + "description": "State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`.", + "properties": { + "version": { + "type": "integer", + "examples": [ + 1 + ], + "description": "Version of the editor state format." + }, + "data": { + "type": "object", + "description": "Editor form values, such as the frequency settings the cron expression was built from.", + "additionalProperties": true, + "properties": { + "cronExpression": { + "type": "string", + "examples": [ + "0 8 * * *" + ] + }, + "timezone": { + "type": "string", + "examples": [ + "UTC" + ] + } + } + } + } + }, "ScheduleActionRunActor": { "title": "ScheduleActionRunActor", "required": [ @@ -28534,6 +30601,13 @@ "notifications": { "$ref": "#/components/schemas/ScheduleNotifications" }, + "uiState": { + "$ref": "#/components/schemas/ScheduleUiState" + }, + "integrationTracking": { + "description": "Present only when the schedule was created by a third-party integration.", + "$ref": "#/components/schemas/IntegrationTracking" + }, "actions": { "type": "array", "items": { @@ -28700,6 +30774,57 @@ ], "description": "Per-event pricing configuration for pay-per-event Actors.", "additionalProperties": true + }, + "pricePerUnitUsd": { + "type": "number", + "description": "Price per unit in USD. Present only for `FLAT_PRICE_PER_MONTH` and non-tiered `PRICE_PER_DATASET_ITEM` pricing.", + "examples": [ + 5 + ] + }, + "trialMinutes": { + "type": "integer", + "description": "Length of the free trial in minutes. Present only for `FLAT_PRICE_PER_MONTH` pricing.", + "examples": [ + 1440 + ] + }, + "unitName": { + "type": "string", + "description": "Name of the charged unit. Present only for `PRICE_PER_DATASET_ITEM` pricing.", + "examples": [ + "result" + ] + }, + "tieredPricing": { + "type": "object", + "description": "Price per unit for each pricing tier. Present only for tiered `PRICE_PER_DATASET_ITEM` pricing.", + "additionalProperties": { + "type": "object", + "properties": { + "tieredPricePerUnitUsd": { + "type": "number" + } + } + }, + "examples": [ + { + "FREE": { + "tieredPricePerUnitUsd": 0.005 + } + } + ] + }, + "notifiedAboutRentalToPpePriceChangeAt": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + null + ], + "x-internal": true } } }, @@ -28841,6 +30966,64 @@ "readmeSummary": { "type": "string", "description": "A brief, LLM-generated readme summary" + }, + "inputSchema": { + "type": "object", + "description": "Compact input schema of the Actor's default build, with only property types and required properties. Returned only when `includeInputSchema=true` and the default build succeeded and defines input properties.", + "required": [ + "type", + "properties" + ], + "properties": { + "type": { + "type": "string", + "examples": [ + "object" + ] + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + } + } + }, + "examples": [ + { + "startUrls": { + "type": "array" + }, + "maxItems": { + "type": "integer" + } + } + ] + }, + "required": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + [ + "startUrls" + ] + ] + } + } } } }, @@ -29046,11 +31229,16 @@ "title": "ProxyGroup", "required": [ "name", - "description", - "availableCount" + "description" ], "type": "object", "properties": { + "id": { + "type": "string", + "examples": [ + "Hsu2Sk8jPqxd3dNsB" + ] + }, "name": { "type": "string", "examples": [ @@ -29076,14 +31264,17 @@ }, "ProxyResource": { "title": "ProxyResource", + "description": "Proxy access info. Omitted when the user has no access to Apify Proxy.", "required": [ - "password", "groups" ], "type": "object", "properties": { "password": { - "type": "string", + "type": [ + "string", + "null" + ], "examples": [ "ad78knd9Jkjd86" ] @@ -29211,31 +31402,83 @@ "maxActorTaskCount": { "type": "integer", "examples": [ - 1000 + 1000 + ] + }, + "dataRetentionDays": { + "type": "integer", + "examples": [ + 14 + ] + }, + "availableProxyGroups": { + "$ref": "#/components/schemas/AvailableProxyGroups" + }, + "teamAccountSeatCount": { + "type": "integer", + "examples": [ + 1 + ] + }, + "supportLevel": { + "type": "string", + "examples": [ + "COMMUNITY" + ] + }, + "availableAddOns": { + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + [] + ] + }, + "tier": { + "type": "string", + "examples": [ + "FREE" + ] + }, + "apiRateLimitBoosts": { + "type": "integer", + "examples": [ + 0 + ] + }, + "maxScheduleCount": { + "type": "integer", + "examples": [ + 100 ] }, - "dataRetentionDays": { + "maxConcurrentActorRuns": { "type": "integer", "examples": [ - 14 + 25 ] }, - "availableProxyGroups": { - "$ref": "#/components/schemas/AvailableProxyGroups" + "planPricing": { + "type": "object", + "description": "Pricing details for this plan.", + "additionalProperties": true }, - "teamAccountSeatCount": { - "type": "integer", + "planVersion": { + "type": "number", + "description": "Version of the plan definition.", "examples": [ - 1 + 2 ] }, - "supportLevel": { + "legacyPlanId": { "type": "string", + "description": "ID of the legacy plan this plan was migrated from.", "examples": [ - "COMMUNITY" + "STARTER" ] }, - "availableAddOns": { + "planTags": { "type": "array", "items": { "type": "string" @@ -29244,34 +31487,68 @@ [] ] }, - "tier": { - "type": "string", + "overageThresholdUsd": { + "type": "number", + "description": "Mid-cycle overage threshold above which the user is billed for the current-cycle overage.", "examples": [ - "FREE" + 500 ] }, - "apiRateLimitBoosts": { + "maxMonthlyUnblockerUnits": { "type": "integer", "examples": [ - 0 + 1000000 ] }, - "maxScheduleCount": { + "maxPublicActorTaskCount": { "type": "integer", "examples": [ 100 ] }, - "maxConcurrentActorRuns": { + "maxPublicActorTaskCountPerActor": { "type": "integer", "examples": [ - 25 + 10 ] }, - "planPricing": { - "type": "object", - "description": "Pricing details for this plan.", - "additionalProperties": true + "forceBillingInterval": { + "type": "string", + "description": "If set, the plan can be subscribed only in this billing interval.", + "examples": [ + "ANNUAL" + ] + }, + "personalizedSupport": { + "type": [ + "string", + "null" + ], + "description": "Hours of personalized support with Apify engineers included in the plan, as `Nh/P`: `N` hours per period\n`P`, where `P` is `M` (monthly), `Q` (quarterly), `B` (every 6 months) or `A` (annually), for example `1h/M`.\n`null` or missing means the plan includes no personalized support.\n", + "examples": [ + "4h/M" + ] + }, + "monitoringLevel": { + "type": [ + "string", + "null" + ], + "enum": [ + "STANDARD", + null + ], + "description": "Level of monitoring services included in the plan. `null` or missing means the plan includes no monitoring service.", + "examples": [ + "STANDARD" + ] + }, + "isPayingCustomer": { + "type": "boolean", + "description": "Marks the user as a paying customer even without a subscription.", + "examples": [ + false + ] } } }, @@ -29399,8 +31676,12 @@ "$ref": "#/components/schemas/UserProfile" }, "email": { - "type": "string", + "type": [ + "string", + "null" + ], "format": "email", + "description": "Primary email of the user. It is `null` when the email is not verified.", "examples": [ "bob@example.com" ] @@ -29426,6 +31707,16 @@ "examples": [ true ] + }, + "organizationOwnerUserId": { + "type": [ + "string", + "null" + ], + "description": "ID of the user who owns the organization. Present only for organization accounts.", + "examples": [ + "wRsJZtadYvn4mBZmm" + ] } } }, @@ -29739,6 +32030,12 @@ "examples": [ 100 ] + }, + "maxMonthlyUnblockerUnits": { + "type": "number", + "examples": [ + 1000000 + ] } } }, @@ -29823,6 +32120,12 @@ "examples": [ 77 ] + }, + "monthlyUnblockerUnits": { + "type": "number", + "examples": [ + 1520 + ] } } }, @@ -29878,6 +32181,257 @@ } } }, + "GitProviderWorkspace": { + "title": "GitProviderWorkspace", + "description": "A place the user can create a repository in, such as their own account or an organization, group or workspace they can access.", + "required": [ + "id", + "label" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The workspace identifier to pass as `workspace` when creating a repository: the account or organization login\non GitHub, the numeric namespace ID on GitLab, or the workspace slug on Bitbucket.\n", + "examples": [ + "janedoe" + ] + }, + "label": { + "type": "string", + "examples": [ + "janedoe" + ] + } + } + }, + "GitProviderIntegration": { + "title": "GitProviderIntegration", + "description": "A connected git provider account the user can create repositories through.", + "required": [ + "id", + "provider", + "workspaces" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The provider ID to use in the `providerId` path parameter: `github-app` for the GitHub App, or the ID of a\nconnected GitLab or Bitbucket integration.\n", + "examples": [ + "github-app" + ] + }, + "provider": { + "type": "string", + "enum": [ + "github", + "gitlab", + "bitbucket" + ], + "examples": [ + "github" + ] + }, + "workspaces": { + "type": "array", + "description": "The workspaces the account can create a repository in. Empty if listing them failed.", + "items": { + "$ref": "#/components/schemas/GitProviderWorkspace" + } + }, + "addWorkspaceUrl": { + "type": "string", + "description": "URL where the user can install the GitHub App on another account or organization. Only for the GitHub App.", + "examples": [ + "https://github.com/apps/apify/installations/new" + ] + } + } + }, + "ListOfGitProviderIntegrationsResponse": { + "title": "ListOfGitProviderIntegrationsResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GitProviderIntegration" + } + } + } + }, + "GitRepoFile": { + "title": "GitRepoFile", + "description": "A file to commit into the new repository.", + "required": [ + "path", + "content", + "encoding" + ], + "type": "object", + "properties": { + "path": { + "type": "string", + "examples": [ + "src/main.js" + ] + }, + "content": { + "type": "string", + "examples": [ + "console.log('Hello');" + ] + }, + "encoding": { + "type": "string", + "enum": [ + "utf-8", + "base64" + ], + "examples": [ + "utf-8" + ] + } + } + }, + "CreateGitRepoRequest": { + "title": "CreateGitRepoRequest", + "required": [ + "workspace", + "repoName", + "isPrivate" + ], + "type": "object", + "properties": { + "workspace": { + "type": "string", + "description": "Where to create the repository, as the `id` of one of the provider's workspaces. On GitLab, this is the\nnumeric namespace ID.\n", + "examples": [ + "janedoe" + ] + }, + "repoName": { + "type": "string", + "examples": [ + "my-actor" + ] + }, + "isPrivate": { + "type": "boolean", + "examples": [ + true + ] + }, + "files": { + "type": "array", + "description": "Files to commit as the initial commit. Can't be combined with `templateArchiveUrl`.", + "items": { + "$ref": "#/components/schemas/GitRepoFile" + } + }, + "templateArchiveUrl": { + "type": "string", + "description": "URL of an Actor template archive whose files are committed as the initial commit. Can't be combined with\n`files`.\n", + "examples": [ + "https://github.com/apify/actor-templates/blob/master/dist/templates/js-start.zip?raw=true" + ] + } + } + }, + "GitRepo": { + "title": "GitRepo", + "description": "URLs of a newly created repository.", + "required": [ + "sshUrl", + "httpsUrl", + "htmlUrl" + ], + "type": "object", + "properties": { + "sshUrl": { + "type": "string", + "examples": [ + "git@github.com:janedoe/my-actor.git" + ] + }, + "httpsUrl": { + "type": "string", + "examples": [ + "https://github.com/janedoe/my-actor.git" + ] + }, + "htmlUrl": { + "type": "string", + "examples": [ + "https://github.com/janedoe/my-actor" + ] + } + } + }, + "GitRepoResponse": { + "title": "GitRepoResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/GitRepo" + } + } + }, + "RegisterDeploymentKeyRequest": { + "title": "RegisterDeploymentKeyRequest", + "required": [ + "actorId", + "repoName" + ], + "type": "object", + "properties": { + "actorId": { + "type": "string", + "description": "ID or `username~name` of the Actor whose deployment key to register.", + "examples": [ + "janedoe~my-actor" + ] + }, + "repoName": { + "type": "string", + "description": "URL of the repository to register the key on. Its host must match the provider.", + "examples": [ + "https://github.com/janedoe/my-actor" + ] + } + } + }, + "RegisterDeploymentKeyResponse": { + "title": "RegisterDeploymentKeyResponse", + "required": [ + "data" + ], + "type": "object", + "properties": { + "data": { + "type": "object", + "required": [ + "repoName" + ], + "properties": { + "repoName": { + "type": "string", + "description": "The normalized URL of the repository the key is registered on.", + "examples": [ + "https://github.com/janedoe/my-actor" + ] + } + } + } + } + }, "BrowserInfoResponse": { "type": "object", "required": [ @@ -30152,6 +32706,9 @@ } } }, + "NoContent": { + "description": "No content" + }, "PaymentRequired": { "description": "Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.", "content": { @@ -30184,9 +32741,6 @@ } } }, - "NoContent": { - "description": "No content" - }, "Conflict": { "description": "Conflict - the request could not be completed due to a conflict with the current state of the resource.", "content": {