@newfold/huapi-js 2.1906.0 → 2.1908.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +13 -13
- package/src/index.js +1 -1
- package/src/index.msw.js +2 -2
- package/src/index.schemas.d.ts +242 -128
- package/src/index.schemas.js +16 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, BackupCreateOndemandV1200, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupUsage200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -738,9 +738,9 @@ export declare function useAddonsSitelockSso<TData = Awaited<ReturnType<typeof a
|
|
|
738
738
|
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
739
739
|
* @summary backup list
|
|
740
740
|
*/
|
|
741
|
-
export declare const xcitiumBackupList: (addonId:
|
|
742
|
-
export declare const getXcitiumBackupListQueryKey: (addonId:
|
|
743
|
-
export declare const getXcitiumBackupListQueryOptions: <TData = AxiosResponse<XcitiumBackupList200, any>, TError = AxiosError<unknown, any>>(addonId:
|
|
741
|
+
export declare const xcitiumBackupList: (addonId: string, params: XcitiumBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<XcitiumBackupList200>>;
|
|
742
|
+
export declare const getXcitiumBackupListQueryKey: (addonId: string, params: XcitiumBackupListParams) => readonly [`/v1/addons/xcitium/${string}/backups`, ...XcitiumBackupListParams[]];
|
|
743
|
+
export declare const getXcitiumBackupListQueryOptions: <TData = AxiosResponse<XcitiumBackupList200, any>, TError = AxiosError<unknown, any>>(addonId: string, params: XcitiumBackupListParams, options?: {
|
|
744
744
|
query?: Partial<UseQueryOptions<AxiosResponse<XcitiumBackupList200, any>, TError, TData, QueryKey>> | undefined;
|
|
745
745
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
746
746
|
} | undefined) => UseQueryOptions<AxiosResponse<XcitiumBackupList200, any>, TError, TData, QueryKey> & {
|
|
@@ -748,19 +748,19 @@ export declare const getXcitiumBackupListQueryOptions: <TData = AxiosResponse<Xc
|
|
|
748
748
|
};
|
|
749
749
|
export declare type XcitiumBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof xcitiumBackupList>>>;
|
|
750
750
|
export declare type XcitiumBackupListQueryError = AxiosError<unknown>;
|
|
751
|
-
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId:
|
|
751
|
+
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId: string, params: XcitiumBackupListParams, options: {
|
|
752
752
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumBackupList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof xcitiumBackupList>>, TError, TData>, 'initialData'>;
|
|
753
753
|
axios?: AxiosRequestConfig;
|
|
754
754
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
755
755
|
queryKey: QueryKey;
|
|
756
756
|
};
|
|
757
|
-
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId:
|
|
757
|
+
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId: string, params: XcitiumBackupListParams, options?: {
|
|
758
758
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumBackupList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof xcitiumBackupList>>, TError, TData>, 'initialData'>;
|
|
759
759
|
axios?: AxiosRequestConfig;
|
|
760
760
|
}): UseQueryResult<TData, TError> & {
|
|
761
761
|
queryKey: QueryKey;
|
|
762
762
|
};
|
|
763
|
-
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId:
|
|
763
|
+
export declare function useXcitiumBackupList<TData = Awaited<ReturnType<typeof xcitiumBackupList>>, TError = AxiosError<unknown>>(addonId: string, params: XcitiumBackupListParams, options?: {
|
|
764
764
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof xcitiumBackupList>>, TError, TData>>;
|
|
765
765
|
axios?: AxiosRequestConfig;
|
|
766
766
|
}): UseQueryResult<TData, TError> & {
|
|
@@ -9077,7 +9077,7 @@ export declare const useBackupCreateV2: <TError = AxiosError<unknown, any>, TCon
|
|
|
9077
9077
|
* @summary Backup download
|
|
9078
9078
|
*/
|
|
9079
9079
|
export declare const backupDownloadV2: (addonId: number, backupDownloadV2Body: BackupDownloadV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupDownloadV2200>>;
|
|
9080
|
-
export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<
|
|
9080
|
+
export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<BackupDownloadV2409 | BackupDownloadV2404 | BackupDownloadV2403 | BackupDownloadV2400, any>, TContext = unknown>(options?: {
|
|
9081
9081
|
mutation?: UseMutationOptions<AxiosResponse<BackupDownloadV2200, any>, TError, {
|
|
9082
9082
|
addonId: number;
|
|
9083
9083
|
data: BackupDownloadV2Body;
|
|
@@ -9089,11 +9089,11 @@ export declare const getBackupDownloadV2MutationOptions: <TError = AxiosError<un
|
|
|
9089
9089
|
}, TContext>;
|
|
9090
9090
|
export declare type BackupDownloadV2MutationResult = NonNullable<Awaited<ReturnType<typeof backupDownloadV2>>>;
|
|
9091
9091
|
export declare type BackupDownloadV2MutationBody = BackupDownloadV2Body;
|
|
9092
|
-
export declare type BackupDownloadV2MutationError = AxiosError<
|
|
9092
|
+
export declare type BackupDownloadV2MutationError = AxiosError<BackupDownloadV2400 | BackupDownloadV2403 | BackupDownloadV2404 | BackupDownloadV2409>;
|
|
9093
9093
|
/**
|
|
9094
9094
|
* @summary Backup download
|
|
9095
9095
|
*/
|
|
9096
|
-
export declare const useBackupDownloadV2: <TError = AxiosError<
|
|
9096
|
+
export declare const useBackupDownloadV2: <TError = AxiosError<BackupDownloadV2409 | BackupDownloadV2404 | BackupDownloadV2403 | BackupDownloadV2400, any>, TContext = unknown>(options?: {
|
|
9097
9097
|
mutation?: UseMutationOptions<AxiosResponse<BackupDownloadV2200, any>, TError, {
|
|
9098
9098
|
addonId: number;
|
|
9099
9099
|
data: BackupDownloadV2Body;
|
|
@@ -9812,7 +9812,7 @@ export declare const useBackupCreateV3: <TError = AxiosError<unknown, any>, TCon
|
|
|
9812
9812
|
* @summary Backup restore
|
|
9813
9813
|
*/
|
|
9814
9814
|
export declare const backupRestoreV3: (addonId: number, backupRestoreV3Body: BackupRestoreV3Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<BackupRestoreV3200>>;
|
|
9815
|
-
export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<
|
|
9815
|
+
export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<BackupRestoreV3409 | BackupRestoreV3404 | BackupRestoreV3403 | BackupRestoreV3400, any>, TContext = unknown>(options?: {
|
|
9816
9816
|
mutation?: UseMutationOptions<AxiosResponse<BackupRestoreV3200, any>, TError, {
|
|
9817
9817
|
addonId: number;
|
|
9818
9818
|
data: BackupRestoreV3Body;
|
|
@@ -9824,11 +9824,11 @@ export declare const getBackupRestoreV3MutationOptions: <TError = AxiosError<unk
|
|
|
9824
9824
|
}, TContext>;
|
|
9825
9825
|
export declare type BackupRestoreV3MutationResult = NonNullable<Awaited<ReturnType<typeof backupRestoreV3>>>;
|
|
9826
9826
|
export declare type BackupRestoreV3MutationBody = BackupRestoreV3Body;
|
|
9827
|
-
export declare type BackupRestoreV3MutationError = AxiosError<
|
|
9827
|
+
export declare type BackupRestoreV3MutationError = AxiosError<BackupRestoreV3400 | BackupRestoreV3403 | BackupRestoreV3404 | BackupRestoreV3409>;
|
|
9828
9828
|
/**
|
|
9829
9829
|
* @summary Backup restore
|
|
9830
9830
|
*/
|
|
9831
|
-
export declare const useBackupRestoreV3: <TError = AxiosError<
|
|
9831
|
+
export declare const useBackupRestoreV3: <TError = AxiosError<BackupRestoreV3409 | BackupRestoreV3404 | BackupRestoreV3403 | BackupRestoreV3400, any>, TContext = unknown>(options?: {
|
|
9832
9832
|
mutation?: UseMutationOptions<AxiosResponse<BackupRestoreV3200, any>, TError, {
|
|
9833
9833
|
addonId: number;
|
|
9834
9834
|
data: BackupRestoreV3Body;
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1908.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1908.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -32,7 +32,7 @@ export const getCodeguardWebsiteBackupListResponseMock = (overrideResponse = {})
|
|
|
32
32
|
export const getCodeguardWebsiteBackupCreateResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
33
33
|
export const getCodeguardWebsiteBackupRestoreResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
34
34
|
export const getAddonsSitelockSsoResponseMock = (overrideResponse = {}) => (Object.assign({ site_url: faker.helpers.arrayElement([faker.word.sample(), undefined]), sitelock_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
35
|
-
export const getXcitiumBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({
|
|
35
|
+
export const getXcitiumBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ backups: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), end_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), files_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), files_deleted: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), files_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), files_total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), request_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), start_time: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), website_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
36
36
|
export const getXcitiumBackupCreateResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
37
37
|
export const getXcitiumBackupDownloadResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), website_success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
38
38
|
export const getXcitiumBackupRestoreResponseMock = (overrideResponse = {}) => (Object.assign({ database_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), website_success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1908.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -118,6 +118,13 @@ export declare type HostingSiteAddV3Body = {
|
|
|
118
118
|
/** Number of PHP workers */
|
|
119
119
|
workers?: number;
|
|
120
120
|
};
|
|
121
|
+
export declare type BackupListV3200 = {
|
|
122
|
+
has_more?: boolean;
|
|
123
|
+
items?: BackupListV3200ItemsItem[];
|
|
124
|
+
limit?: number;
|
|
125
|
+
offset?: number;
|
|
126
|
+
total?: number;
|
|
127
|
+
};
|
|
121
128
|
/**
|
|
122
129
|
* @nullable
|
|
123
130
|
*/
|
|
@@ -152,17 +159,26 @@ export declare type BackupListV3200ItemsItem = {
|
|
|
152
159
|
timezone?: string;
|
|
153
160
|
type?: string;
|
|
154
161
|
};
|
|
155
|
-
export declare type BackupListV3200 = {
|
|
156
|
-
has_more?: boolean;
|
|
157
|
-
items?: BackupListV3200ItemsItem[];
|
|
158
|
-
limit?: number;
|
|
159
|
-
offset?: number;
|
|
160
|
-
total?: number;
|
|
161
|
-
};
|
|
162
162
|
export declare type BackupListV3Params = {
|
|
163
163
|
page?: number;
|
|
164
164
|
limit?: number;
|
|
165
165
|
};
|
|
166
|
+
export declare type BackupRestoreV3409 = {
|
|
167
|
+
/** Customer error code */
|
|
168
|
+
error?: string;
|
|
169
|
+
};
|
|
170
|
+
export declare type BackupRestoreV3404 = {
|
|
171
|
+
/** Customer error code */
|
|
172
|
+
error?: string;
|
|
173
|
+
};
|
|
174
|
+
export declare type BackupRestoreV3403 = {
|
|
175
|
+
/** Customer error code */
|
|
176
|
+
error?: string;
|
|
177
|
+
};
|
|
178
|
+
export declare type BackupRestoreV3400 = {
|
|
179
|
+
/** Customer error code */
|
|
180
|
+
error?: string;
|
|
181
|
+
};
|
|
166
182
|
export declare type BackupRestoreV3200 = {
|
|
167
183
|
message?: string;
|
|
168
184
|
tracking_id?: number;
|
|
@@ -175,6 +191,14 @@ export declare const BackupRestoreV3BodyUserConsent: {
|
|
|
175
191
|
readonly NUMBER_0: 0;
|
|
176
192
|
readonly NUMBER_1: 1;
|
|
177
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
* Plan type used to route the request to free or premium HAL actions.
|
|
196
|
+
*/
|
|
197
|
+
export declare type BackupRestoreV3BodyPlanType = typeof BackupRestoreV3BodyPlanType[keyof typeof BackupRestoreV3BodyPlanType];
|
|
198
|
+
export declare const BackupRestoreV3BodyPlanType: {
|
|
199
|
+
readonly free: "free";
|
|
200
|
+
readonly premium: "premium";
|
|
201
|
+
};
|
|
178
202
|
/**
|
|
179
203
|
* Backup type
|
|
180
204
|
*/
|
|
@@ -196,17 +220,22 @@ export declare type BackupRestoreV3Body = {
|
|
|
196
220
|
/** Backup Volume store ID to restore from */
|
|
197
221
|
backup_id: string;
|
|
198
222
|
/** Create realtime backup before restoration (0/1) */
|
|
199
|
-
backup_pre_restore
|
|
223
|
+
backup_pre_restore?: BackupRestoreV3BodyBackupPreRestore;
|
|
200
224
|
/** Backup type */
|
|
201
225
|
backup_type?: BackupRestoreV3BodyBackupType;
|
|
202
|
-
/**
|
|
203
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Databases to backup/restore (when applicable)
|
|
228
|
+
* @nullable
|
|
229
|
+
*/
|
|
230
|
+
databases?: string[] | null;
|
|
231
|
+
/** Plan type used to route the request to free or premium HAL actions. */
|
|
232
|
+
plan_type: BackupRestoreV3BodyPlanType;
|
|
204
233
|
/** Site id */
|
|
205
234
|
site_id: number;
|
|
206
235
|
/** Snapshot date (epoch) */
|
|
207
236
|
snapshot_date: number;
|
|
208
237
|
/** User consent to restore (0/1) */
|
|
209
|
-
user_consent
|
|
238
|
+
user_consent?: BackupRestoreV3BodyUserConsent;
|
|
210
239
|
};
|
|
211
240
|
export declare type BackupCreateV3200 = {
|
|
212
241
|
message?: string;
|
|
@@ -313,13 +342,6 @@ export declare type SiteMalwareStatusV2200 = {
|
|
|
313
342
|
*/
|
|
314
343
|
scanner_state?: string | null;
|
|
315
344
|
};
|
|
316
|
-
/**
|
|
317
|
-
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
318
|
-
* @nullable
|
|
319
|
-
*/
|
|
320
|
-
export declare type SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable = {
|
|
321
|
-
[key: string]: unknown;
|
|
322
|
-
} | null;
|
|
323
345
|
/**
|
|
324
346
|
* @nullable
|
|
325
347
|
*/
|
|
@@ -370,13 +392,6 @@ export declare type SitesDomainsV2200DomainsItemSetupProgress = {
|
|
|
370
392
|
*/
|
|
371
393
|
validate_ssl_error_table?: SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable;
|
|
372
394
|
} | null;
|
|
373
|
-
/**
|
|
374
|
-
* Job ids and names currently running on the domain
|
|
375
|
-
* @nullable
|
|
376
|
-
*/
|
|
377
|
-
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
378
|
-
[key: string]: unknown;
|
|
379
|
-
} | null;
|
|
380
395
|
export declare type SitesDomainsV2200DomainsItem = {
|
|
381
396
|
/** @nullable */
|
|
382
397
|
account_back_ref?: string | null;
|
|
@@ -455,6 +470,20 @@ export declare type SitesDomainsV2200 = {
|
|
|
455
470
|
page?: number;
|
|
456
471
|
total?: number;
|
|
457
472
|
};
|
|
473
|
+
/**
|
|
474
|
+
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
475
|
+
* @nullable
|
|
476
|
+
*/
|
|
477
|
+
export declare type SitesDomainsV2200DomainsItemSetupProgressValidateSslErrorTable = {
|
|
478
|
+
[key: string]: unknown;
|
|
479
|
+
} | null;
|
|
480
|
+
/**
|
|
481
|
+
* Job ids and names currently running on the domain
|
|
482
|
+
* @nullable
|
|
483
|
+
*/
|
|
484
|
+
export declare type SitesDomainsV2200DomainsItemJobs = {
|
|
485
|
+
[key: string]: unknown;
|
|
486
|
+
} | null;
|
|
458
487
|
export declare type SitesDomainsV2Params = {
|
|
459
488
|
scan?: boolean;
|
|
460
489
|
};
|
|
@@ -992,6 +1021,12 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
992
1021
|
/** The site id to be unassigned */
|
|
993
1022
|
site_id: number;
|
|
994
1023
|
};
|
|
1024
|
+
export declare type HostingDomainsV2200 = {
|
|
1025
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
1026
|
+
limit?: number;
|
|
1027
|
+
page?: number;
|
|
1028
|
+
total?: number;
|
|
1029
|
+
};
|
|
995
1030
|
/**
|
|
996
1031
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
997
1032
|
* @nullable
|
|
@@ -1128,12 +1163,6 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1128
1163
|
*/
|
|
1129
1164
|
used_entri?: number | null;
|
|
1130
1165
|
};
|
|
1131
|
-
export declare type HostingDomainsV2200 = {
|
|
1132
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
1133
|
-
limit?: number;
|
|
1134
|
-
page?: number;
|
|
1135
|
-
total?: number;
|
|
1136
|
-
};
|
|
1137
1166
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1138
1167
|
export declare const HostingDomainsV2TypesItem: {
|
|
1139
1168
|
readonly addon: "addon";
|
|
@@ -1254,20 +1283,59 @@ export declare type BackupListV2200BackupsItem = {
|
|
|
1254
1283
|
export declare type BackupListV2200 = {
|
|
1255
1284
|
backups?: BackupListV2200BackupsItem[];
|
|
1256
1285
|
};
|
|
1286
|
+
export declare type BackupDownloadV2409 = {
|
|
1287
|
+
/** Customer error code */
|
|
1288
|
+
error?: string;
|
|
1289
|
+
};
|
|
1290
|
+
export declare type BackupDownloadV2404 = {
|
|
1291
|
+
/** Customer error code */
|
|
1292
|
+
error?: string;
|
|
1293
|
+
};
|
|
1294
|
+
export declare type BackupDownloadV2403 = {
|
|
1295
|
+
/** Customer error code */
|
|
1296
|
+
error?: string;
|
|
1297
|
+
};
|
|
1298
|
+
export declare type BackupDownloadV2400 = {
|
|
1299
|
+
/** Customer error code */
|
|
1300
|
+
error?: string;
|
|
1301
|
+
};
|
|
1257
1302
|
export declare type BackupDownloadV2200 = {
|
|
1258
1303
|
message?: string;
|
|
1259
1304
|
tracking_id?: number;
|
|
1260
1305
|
};
|
|
1306
|
+
/**
|
|
1307
|
+
* Plan type used to route the request to free or premium HAL actions.
|
|
1308
|
+
*/
|
|
1309
|
+
export declare type BackupDownloadV2BodyPlanType = typeof BackupDownloadV2BodyPlanType[keyof typeof BackupDownloadV2BodyPlanType];
|
|
1310
|
+
export declare const BackupDownloadV2BodyPlanType: {
|
|
1311
|
+
readonly free: "free";
|
|
1312
|
+
readonly premium: "premium";
|
|
1313
|
+
};
|
|
1314
|
+
/**
|
|
1315
|
+
* Type of the backup
|
|
1316
|
+
*/
|
|
1317
|
+
export declare type BackupDownloadV2BodyBackupType = typeof BackupDownloadV2BodyBackupType[keyof typeof BackupDownloadV2BodyBackupType];
|
|
1318
|
+
export declare const BackupDownloadV2BodyBackupType: {
|
|
1319
|
+
readonly home: "home";
|
|
1320
|
+
readonly db: "db";
|
|
1321
|
+
readonly home_db: "home_db";
|
|
1322
|
+
};
|
|
1261
1323
|
export declare type BackupDownloadV2Body = {
|
|
1262
1324
|
/** Backup Volume store ID to get the backup */
|
|
1263
1325
|
backup_id: string;
|
|
1264
1326
|
/** Type of the backup */
|
|
1265
|
-
backup_type?:
|
|
1266
|
-
|
|
1327
|
+
backup_type?: BackupDownloadV2BodyBackupType;
|
|
1328
|
+
/** @nullable */
|
|
1329
|
+
dbs?: string[] | null;
|
|
1330
|
+
/** Plan type used to route the request to free or premium HAL actions. */
|
|
1331
|
+
plan_type: BackupDownloadV2BodyPlanType;
|
|
1267
1332
|
/** Site id */
|
|
1268
|
-
site_id
|
|
1269
|
-
/**
|
|
1270
|
-
|
|
1333
|
+
site_id: number;
|
|
1334
|
+
/**
|
|
1335
|
+
* Snapshot date
|
|
1336
|
+
* @nullable
|
|
1337
|
+
*/
|
|
1338
|
+
snapshot_date?: number | null;
|
|
1271
1339
|
};
|
|
1272
1340
|
export declare type BackupCreateV2200 = {
|
|
1273
1341
|
message?: string;
|
|
@@ -1340,10 +1408,6 @@ export declare type UserHostingOverviewParams = {
|
|
|
1340
1408
|
*/
|
|
1341
1409
|
limit?: number;
|
|
1342
1410
|
};
|
|
1343
|
-
export declare type UserHosting200 = {
|
|
1344
|
-
/** Information for the paginated hosting accounts */
|
|
1345
|
-
rows?: UserHosting200RowsItem[];
|
|
1346
|
-
};
|
|
1347
1411
|
/**
|
|
1348
1412
|
* Usage statistics for staging sites
|
|
1349
1413
|
* @nullable
|
|
@@ -1539,6 +1603,10 @@ export declare type UserHosting200RowsItem = {
|
|
|
1539
1603
|
*/
|
|
1540
1604
|
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1541
1605
|
};
|
|
1606
|
+
export declare type UserHosting200 = {
|
|
1607
|
+
/** Information for the paginated hosting accounts */
|
|
1608
|
+
rows?: UserHosting200RowsItem[];
|
|
1609
|
+
};
|
|
1542
1610
|
/**
|
|
1543
1611
|
* Region information for the account
|
|
1544
1612
|
* @nullable
|
|
@@ -2379,13 +2447,6 @@ export declare type SitePendingDomainDelete200 = {
|
|
|
2379
2447
|
export declare type SitesOnboardingSteps200 = {
|
|
2380
2448
|
steps?: SiteOnboardingStepModel[];
|
|
2381
2449
|
};
|
|
2382
|
-
export declare type SitesMetricDimensions200 = {
|
|
2383
|
-
date_end?: string;
|
|
2384
|
-
date_start?: string;
|
|
2385
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2386
|
-
elapsed?: number;
|
|
2387
|
-
metric?: string;
|
|
2388
|
-
};
|
|
2389
2450
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
2390
2451
|
[key: string]: number;
|
|
2391
2452
|
};
|
|
@@ -2393,6 +2454,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
|
2393
2454
|
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
2394
2455
|
timestamp?: number;
|
|
2395
2456
|
};
|
|
2457
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
2458
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2459
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2460
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2461
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2462
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2463
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2464
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2465
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2466
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2467
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2468
|
+
};
|
|
2469
|
+
export declare type SitesMetricDimensions200 = {
|
|
2470
|
+
date_end?: string;
|
|
2471
|
+
date_start?: string;
|
|
2472
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
2473
|
+
elapsed?: number;
|
|
2474
|
+
metric?: string;
|
|
2475
|
+
};
|
|
2396
2476
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
2397
2477
|
[key: string]: number;
|
|
2398
2478
|
};
|
|
@@ -2456,18 +2536,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
|
|
|
2456
2536
|
dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
|
|
2457
2537
|
timestamp?: number;
|
|
2458
2538
|
};
|
|
2459
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
2460
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2461
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
2462
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
2463
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
2464
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
2465
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
2466
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
2467
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
2468
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2469
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2470
|
-
};
|
|
2471
2539
|
export declare type SitesMetricDimensionsParams = {
|
|
2472
2540
|
start?: string;
|
|
2473
2541
|
end?: string;
|
|
@@ -2904,10 +2972,6 @@ export declare type SitesAtomicMetrics200Views = {
|
|
|
2904
2972
|
last_n_days?: SitesAtomicMetrics200ViewsLastNDaysItem[];
|
|
2905
2973
|
total_hits?: number;
|
|
2906
2974
|
};
|
|
2907
|
-
export declare type SitesAtomicMetrics200 = {
|
|
2908
|
-
raw?: SitesAtomicMetrics200Raw;
|
|
2909
|
-
views?: SitesAtomicMetrics200Views;
|
|
2910
|
-
};
|
|
2911
2975
|
export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
|
|
2912
2976
|
[key: string]: string | number | number;
|
|
2913
2977
|
};
|
|
@@ -2925,6 +2989,10 @@ export declare type SitesAtomicMetrics200Raw = {
|
|
|
2925
2989
|
periods?: SitesAtomicMetrics200RawPeriodsItem[];
|
|
2926
2990
|
resolution?: number;
|
|
2927
2991
|
};
|
|
2992
|
+
export declare type SitesAtomicMetrics200 = {
|
|
2993
|
+
raw?: SitesAtomicMetrics200Raw;
|
|
2994
|
+
views?: SitesAtomicMetrics200Views;
|
|
2995
|
+
};
|
|
2928
2996
|
export declare type SitesAtomicMetricsParams = {
|
|
2929
2997
|
metric?: string[];
|
|
2930
2998
|
dimension?: string[];
|
|
@@ -3170,16 +3238,6 @@ export declare type SitesInfo200 = {
|
|
|
3170
3238
|
/** @nullable */
|
|
3171
3239
|
wp_multi_site?: SitesInfo200WpMultiSite;
|
|
3172
3240
|
};
|
|
3173
|
-
export declare type PublicImages200 = {
|
|
3174
|
-
/** Limit the number of images returned */
|
|
3175
|
-
limit?: PublicImages200Limit;
|
|
3176
|
-
/** Number of images returned */
|
|
3177
|
-
n_rows?: PublicImages200NRows;
|
|
3178
|
-
/** Page number */
|
|
3179
|
-
page?: PublicImages200Page;
|
|
3180
|
-
/** List of images */
|
|
3181
|
-
rows?: PublicImages200RowsItem[];
|
|
3182
|
-
};
|
|
3183
3241
|
/**
|
|
3184
3242
|
* Links
|
|
3185
3243
|
* @nullable
|
|
@@ -3327,6 +3385,16 @@ export declare type PublicImages200NRows = string | number;
|
|
|
3327
3385
|
* Limit the number of images returned
|
|
3328
3386
|
*/
|
|
3329
3387
|
export declare type PublicImages200Limit = string | number;
|
|
3388
|
+
export declare type PublicImages200 = {
|
|
3389
|
+
/** Limit the number of images returned */
|
|
3390
|
+
limit?: PublicImages200Limit;
|
|
3391
|
+
/** Number of images returned */
|
|
3392
|
+
n_rows?: PublicImages200NRows;
|
|
3393
|
+
/** Page number */
|
|
3394
|
+
page?: PublicImages200Page;
|
|
3395
|
+
/** List of images */
|
|
3396
|
+
rows?: PublicImages200RowsItem[];
|
|
3397
|
+
};
|
|
3330
3398
|
export declare type HostingVisitors200VisitorsItem = {
|
|
3331
3399
|
bandwidth?: number;
|
|
3332
3400
|
hits?: number;
|
|
@@ -4636,6 +4704,12 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4636
4704
|
/** list of rules to be applied to the filter */
|
|
4637
4705
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4638
4706
|
};
|
|
4707
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4708
|
+
/** The number of filters */
|
|
4709
|
+
count?: number;
|
|
4710
|
+
/** List of filters */
|
|
4711
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4712
|
+
};
|
|
4639
4713
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4640
4714
|
match?: FilterRuleMatch;
|
|
4641
4715
|
opt?: FilterRuleOpt;
|
|
@@ -4666,12 +4740,6 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4666
4740
|
/** Whether the filter is unescaped */
|
|
4667
4741
|
unescaped?: boolean;
|
|
4668
4742
|
};
|
|
4669
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4670
|
-
/** The number of filters */
|
|
4671
|
-
count?: number;
|
|
4672
|
-
/** List of filters */
|
|
4673
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4674
|
-
};
|
|
4675
4743
|
export declare type HostingEmailFiltersListParams = {
|
|
4676
4744
|
/**
|
|
4677
4745
|
* The email account address to query filters by
|
|
@@ -4848,10 +4916,6 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4848
4916
|
/** The password for the email */
|
|
4849
4917
|
password?: string;
|
|
4850
4918
|
};
|
|
4851
|
-
export declare type HostingEmailList200 = {
|
|
4852
|
-
/** List of email resources */
|
|
4853
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4854
|
-
};
|
|
4855
4919
|
/**
|
|
4856
4920
|
* List of suspensions that affect the entire user account
|
|
4857
4921
|
* @nullable
|
|
@@ -4941,6 +5005,10 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4941
5005
|
*/
|
|
4942
5006
|
utf8_folders?: boolean | null;
|
|
4943
5007
|
};
|
|
5008
|
+
export declare type HostingEmailList200 = {
|
|
5009
|
+
/** List of email resources */
|
|
5010
|
+
rows?: HostingEmailList200RowsItem[];
|
|
5011
|
+
};
|
|
4944
5012
|
export declare type HostingEmailDelete200 = {
|
|
4945
5013
|
[key: string]: unknown;
|
|
4946
5014
|
};
|
|
@@ -5780,28 +5848,6 @@ export declare type ActivityLog200 = {
|
|
|
5780
5848
|
export declare type ActivityLogParams = {
|
|
5781
5849
|
days?: number;
|
|
5782
5850
|
};
|
|
5783
|
-
export declare type HostingAccount200 = {
|
|
5784
|
-
account_id?: string;
|
|
5785
|
-
account_limits?: HostingAccount200AccountLimits;
|
|
5786
|
-
/** The timestamp that the hosting addon was created */
|
|
5787
|
-
addon_date_added?: string;
|
|
5788
|
-
advanced?: boolean;
|
|
5789
|
-
billing?: HostingAccount200Billing;
|
|
5790
|
-
brand?: string;
|
|
5791
|
-
id?: string;
|
|
5792
|
-
panel?: string;
|
|
5793
|
-
plan_key?: string;
|
|
5794
|
-
platform?: string;
|
|
5795
|
-
/** @nullable */
|
|
5796
|
-
resources?: HostingAccount200Resources;
|
|
5797
|
-
/** @nullable */
|
|
5798
|
-
server_status?: string | null;
|
|
5799
|
-
/** @nullable */
|
|
5800
|
-
ssh_hostname?: string | null;
|
|
5801
|
-
status?: string;
|
|
5802
|
-
type?: string;
|
|
5803
|
-
username?: string;
|
|
5804
|
-
};
|
|
5805
5851
|
export declare type HostingAccount200ResourcesWorkers = {
|
|
5806
5852
|
/** @nullable */
|
|
5807
5853
|
available?: number | null;
|
|
@@ -5819,6 +5865,14 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
5819
5865
|
/** @nullable */
|
|
5820
5866
|
used?: number | null;
|
|
5821
5867
|
};
|
|
5868
|
+
/**
|
|
5869
|
+
* @nullable
|
|
5870
|
+
*/
|
|
5871
|
+
export declare type HostingAccount200Resources = {
|
|
5872
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
5873
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
5874
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
5875
|
+
} | null;
|
|
5822
5876
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
5823
5877
|
/** @nullable */
|
|
5824
5878
|
available?: number | null;
|
|
@@ -5840,14 +5894,6 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
5840
5894
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5841
5895
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5842
5896
|
};
|
|
5843
|
-
/**
|
|
5844
|
-
* @nullable
|
|
5845
|
-
*/
|
|
5846
|
-
export declare type HostingAccount200Resources = {
|
|
5847
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
5848
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
5849
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
5850
|
-
} | null;
|
|
5851
5897
|
export declare type HostingAccount200Billing = {
|
|
5852
5898
|
prod_code?: string;
|
|
5853
5899
|
product_name?: string;
|
|
@@ -5865,6 +5911,28 @@ export declare type HostingAccount200AccountLimits = {
|
|
|
5865
5911
|
*/
|
|
5866
5912
|
sites?: number | null;
|
|
5867
5913
|
};
|
|
5914
|
+
export declare type HostingAccount200 = {
|
|
5915
|
+
account_id?: string;
|
|
5916
|
+
account_limits?: HostingAccount200AccountLimits;
|
|
5917
|
+
/** The timestamp that the hosting addon was created */
|
|
5918
|
+
addon_date_added?: string;
|
|
5919
|
+
advanced?: boolean;
|
|
5920
|
+
billing?: HostingAccount200Billing;
|
|
5921
|
+
brand?: string;
|
|
5922
|
+
id?: string;
|
|
5923
|
+
panel?: string;
|
|
5924
|
+
plan_key?: string;
|
|
5925
|
+
platform?: string;
|
|
5926
|
+
/** @nullable */
|
|
5927
|
+
resources?: HostingAccount200Resources;
|
|
5928
|
+
/** @nullable */
|
|
5929
|
+
server_status?: string | null;
|
|
5930
|
+
/** @nullable */
|
|
5931
|
+
ssh_hostname?: string | null;
|
|
5932
|
+
status?: string;
|
|
5933
|
+
type?: string;
|
|
5934
|
+
username?: string;
|
|
5935
|
+
};
|
|
5868
5936
|
export declare type DomainZoneeditorUrl200 = {
|
|
5869
5937
|
url: string;
|
|
5870
5938
|
};
|
|
@@ -6569,6 +6637,10 @@ export declare type BackupCreateOndemandV1Body = {
|
|
|
6569
6637
|
/** Whether to include a link to the backup tarball */
|
|
6570
6638
|
include_backup_tar_link?: BackupCreateOndemandV1BodyIncludeBackupTarLink;
|
|
6571
6639
|
};
|
|
6640
|
+
export declare type BackupMeta200 = {
|
|
6641
|
+
account?: BackupMeta200Account;
|
|
6642
|
+
site?: BackupMeta200Site;
|
|
6643
|
+
};
|
|
6572
6644
|
/**
|
|
6573
6645
|
* @nullable
|
|
6574
6646
|
*/
|
|
@@ -6602,10 +6674,6 @@ export declare type BackupMeta200Site = {
|
|
|
6602
6674
|
/** @nullable */
|
|
6603
6675
|
cbs_restore_consent_info?: BackupMeta200SiteCbsRestoreConsentInfo;
|
|
6604
6676
|
};
|
|
6605
|
-
export declare type BackupMeta200 = {
|
|
6606
|
-
account?: BackupMeta200Account;
|
|
6607
|
-
site?: BackupMeta200Site;
|
|
6608
|
-
};
|
|
6609
6677
|
/**
|
|
6610
6678
|
* @nullable
|
|
6611
6679
|
*/
|
|
@@ -6799,22 +6867,68 @@ export declare type XcitiumBackupCreateBody = {
|
|
|
6799
6867
|
/** The id of the website the given database is associated with. */
|
|
6800
6868
|
website_id?: number;
|
|
6801
6869
|
};
|
|
6802
|
-
export declare type XcitiumBackupList200BackupsItemDatabaseBackupsItem = {
|
|
6803
|
-
commit_id?: string;
|
|
6804
|
-
event_time?: string;
|
|
6805
|
-
id?: number;
|
|
6806
|
-
recommended?: boolean;
|
|
6807
|
-
};
|
|
6808
6870
|
export declare type XcitiumBackupList200BackupsItem = {
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6871
|
+
/**
|
|
6872
|
+
* The id of the backup
|
|
6873
|
+
* @nullable
|
|
6874
|
+
*/
|
|
6875
|
+
backup_id?: string | null;
|
|
6876
|
+
/**
|
|
6877
|
+
* The type of backup that was made
|
|
6878
|
+
* @nullable
|
|
6879
|
+
*/
|
|
6880
|
+
backup_type?: string | null;
|
|
6881
|
+
/**
|
|
6882
|
+
* The timestamp at which the backup completed
|
|
6883
|
+
* @nullable
|
|
6884
|
+
*/
|
|
6885
|
+
end_time?: string | null;
|
|
6886
|
+
/**
|
|
6887
|
+
* The number of files that were added with this backup
|
|
6888
|
+
* @nullable
|
|
6889
|
+
*/
|
|
6890
|
+
files_added?: string | null;
|
|
6891
|
+
/**
|
|
6892
|
+
* The number of files that were deleted with this backup
|
|
6893
|
+
* @nullable
|
|
6894
|
+
*/
|
|
6895
|
+
files_deleted?: string | null;
|
|
6896
|
+
/**
|
|
6897
|
+
* The number of files that were changed with this backup
|
|
6898
|
+
* @nullable
|
|
6899
|
+
*/
|
|
6900
|
+
files_modified?: string | null;
|
|
6901
|
+
/**
|
|
6902
|
+
* The number of files included in this backup
|
|
6903
|
+
* @nullable
|
|
6904
|
+
*/
|
|
6905
|
+
files_total?: string | null;
|
|
6906
|
+
/**
|
|
6907
|
+
* The method by which this backup was requested
|
|
6908
|
+
* @nullable
|
|
6909
|
+
*/
|
|
6910
|
+
request_type?: string | null;
|
|
6911
|
+
/**
|
|
6912
|
+
* The timestamp at which the backup began
|
|
6913
|
+
* @nullable
|
|
6914
|
+
*/
|
|
6915
|
+
start_time?: string | null;
|
|
6916
|
+
/**
|
|
6917
|
+
* The current status of the backup
|
|
6918
|
+
* @nullable
|
|
6919
|
+
*/
|
|
6920
|
+
status?: string | null;
|
|
6921
|
+
/**
|
|
6922
|
+
* The Xcitium id for the website that this backup belongs to
|
|
6923
|
+
* @nullable
|
|
6924
|
+
*/
|
|
6925
|
+
website_id?: string | null;
|
|
6812
6926
|
};
|
|
6813
6927
|
export declare type XcitiumBackupList200 = {
|
|
6814
6928
|
backups?: XcitiumBackupList200BackupsItem[];
|
|
6815
6929
|
};
|
|
6816
6930
|
export declare type XcitiumBackupListParams = {
|
|
6817
|
-
|
|
6931
|
+
site_id: string;
|
|
6818
6932
|
};
|
|
6819
6933
|
export declare type AddonsSitelockSso200 = {
|
|
6820
6934
|
site_url?: string;
|
package/src/index.schemas.js
CHANGED
|
@@ -11,6 +11,11 @@ export const BackupRestoreV3BodyUserConsent = {
|
|
|
11
11
|
NUMBER_1: 1,
|
|
12
12
|
};
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
14
|
+
export const BackupRestoreV3BodyPlanType = {
|
|
15
|
+
free: 'free',
|
|
16
|
+
premium: 'premium',
|
|
17
|
+
};
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
14
19
|
export const BackupRestoreV3BodyBackupType = {
|
|
15
20
|
home: 'home',
|
|
16
21
|
db: 'db',
|
|
@@ -49,6 +54,17 @@ export const HostingDomainsV2TypesItem = {
|
|
|
49
54
|
unassigned: 'unassigned',
|
|
50
55
|
};
|
|
51
56
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
57
|
+
export const BackupDownloadV2BodyPlanType = {
|
|
58
|
+
free: 'free',
|
|
59
|
+
premium: 'premium',
|
|
60
|
+
};
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
62
|
+
export const BackupDownloadV2BodyBackupType = {
|
|
63
|
+
home: 'home',
|
|
64
|
+
db: 'db',
|
|
65
|
+
home_db: 'home_db',
|
|
66
|
+
};
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
52
68
|
export const SiteAddonWpsolutionBodySubtype = {
|
|
53
69
|
creator: 'creator',
|
|
54
70
|
commerce: 'commerce',
|