@newfold/huapi-js 2.1715.0 → 2.1750.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 +65 -1
- package/src/index.js +53 -1
- package/src/index.msw.d.ts +5 -1
- package/src/index.msw.js +26 -2
- package/src/index.schemas.d.ts +218 -132
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, 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, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, 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, 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, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, 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, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, 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, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, 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 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, 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, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, 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, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, 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, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, 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, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, 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 } 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
|
/**
|
|
@@ -876,6 +876,38 @@ export declare const useAddonsCloudflare: <TError = AxiosError<unknown, any>, TC
|
|
|
876
876
|
} | undefined) => UseMutationResult<AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
877
877
|
addonId: number;
|
|
878
878
|
}, TContext>;
|
|
879
|
+
/**
|
|
880
|
+
* Get cloudflare basic addon nameservers
|
|
881
|
+
* @summary Get cloudflare basic addon nameservers
|
|
882
|
+
*/
|
|
883
|
+
export declare const addonsCloudflareExternalNsCheck: (addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsCloudflareExternalNsCheck200>>;
|
|
884
|
+
export declare const getAddonsCloudflareExternalNsCheckQueryKey: (addonId: number, params?: AddonsCloudflareExternalNsCheckParams) => readonly [`/v1/addons/${number}/cloudflare/external-ns-check`, ...AddonsCloudflareExternalNsCheckParams[]];
|
|
885
|
+
export declare const getAddonsCloudflareExternalNsCheckQueryOptions: <TData = AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError = AxiosError<unknown, any>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
886
|
+
query?: Partial<UseQueryOptions<AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError, TData, QueryKey>> | undefined;
|
|
887
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
888
|
+
} | undefined) => UseQueryOptions<AxiosResponse<AddonsCloudflareExternalNsCheck200, any>, TError, TData, QueryKey> & {
|
|
889
|
+
queryKey: QueryKey;
|
|
890
|
+
};
|
|
891
|
+
export declare type AddonsCloudflareExternalNsCheckQueryResult = NonNullable<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>>;
|
|
892
|
+
export declare type AddonsCloudflareExternalNsCheckQueryError = AxiosError<unknown>;
|
|
893
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params: undefined | AddonsCloudflareExternalNsCheckParams, options: {
|
|
894
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>, 'initialData'>;
|
|
895
|
+
axios?: AxiosRequestConfig;
|
|
896
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
897
|
+
queryKey: QueryKey;
|
|
898
|
+
};
|
|
899
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
900
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>, 'initialData'>;
|
|
901
|
+
axios?: AxiosRequestConfig;
|
|
902
|
+
}): UseQueryResult<TData, TError> & {
|
|
903
|
+
queryKey: QueryKey;
|
|
904
|
+
};
|
|
905
|
+
export declare function useAddonsCloudflareExternalNsCheck<TData = Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError = AxiosError<unknown>>(addonId: number, params?: AddonsCloudflareExternalNsCheckParams, options?: {
|
|
906
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof addonsCloudflareExternalNsCheck>>, TError, TData>>;
|
|
907
|
+
axios?: AxiosRequestConfig;
|
|
908
|
+
}): UseQueryResult<TData, TError> & {
|
|
909
|
+
queryKey: QueryKey;
|
|
910
|
+
};
|
|
879
911
|
/**
|
|
880
912
|
* Returns addon information
|
|
881
913
|
* @summary info
|
|
@@ -1767,6 +1799,38 @@ export declare const useHostingAdvancedDomainServices: <TError = AxiosError<unkn
|
|
|
1767
1799
|
hostingId: string;
|
|
1768
1800
|
data: HostingAdvancedDomainServicesBody;
|
|
1769
1801
|
}, TContext>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Returns a list of images avaiable to rebuild a server with
|
|
1804
|
+
* @summary list of server images
|
|
1805
|
+
*/
|
|
1806
|
+
export declare const hostingAdvancedImages: (hostingId: string, params?: HostingAdvancedImagesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedImages200>>;
|
|
1807
|
+
export declare const getHostingAdvancedImagesQueryKey: (hostingId: string, params?: HostingAdvancedImagesParams) => readonly [`/v1/hosting/${string}/advanced/images`, ...HostingAdvancedImagesParams[]];
|
|
1808
|
+
export declare const getHostingAdvancedImagesQueryOptions: <TData = AxiosResponse<HostingAdvancedImages200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
|
|
1809
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingAdvancedImages200, any>, TError, TData, QueryKey>> | undefined;
|
|
1810
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1811
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingAdvancedImages200, any>, TError, TData, QueryKey> & {
|
|
1812
|
+
queryKey: QueryKey;
|
|
1813
|
+
};
|
|
1814
|
+
export declare type HostingAdvancedImagesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedImages>>>;
|
|
1815
|
+
export declare type HostingAdvancedImagesQueryError = AxiosError<unknown>;
|
|
1816
|
+
export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | HostingAdvancedImagesParams, options: {
|
|
1817
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>, 'initialData'>;
|
|
1818
|
+
axios?: AxiosRequestConfig;
|
|
1819
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
1820
|
+
queryKey: QueryKey;
|
|
1821
|
+
};
|
|
1822
|
+
export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
|
|
1823
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>, 'initialData'>;
|
|
1824
|
+
axios?: AxiosRequestConfig;
|
|
1825
|
+
}): UseQueryResult<TData, TError> & {
|
|
1826
|
+
queryKey: QueryKey;
|
|
1827
|
+
};
|
|
1828
|
+
export declare function useHostingAdvancedImages<TData = Awaited<ReturnType<typeof hostingAdvancedImages>>, TError = AxiosError<unknown>>(hostingId: string, params?: HostingAdvancedImagesParams, options?: {
|
|
1829
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingAdvancedImages>>, TError, TData>>;
|
|
1830
|
+
axios?: AxiosRequestConfig;
|
|
1831
|
+
}): UseQueryResult<TData, TError> & {
|
|
1832
|
+
queryKey: QueryKey;
|
|
1833
|
+
};
|
|
1770
1834
|
/**
|
|
1771
1835
|
* Returns the hosting server info
|
|
1772
1836
|
* @summary server status/info
|
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.1750.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -691,6 +691,32 @@ export const useAddonsCloudflare = (options) => {
|
|
|
691
691
|
const mutationOptions = getAddonsCloudflareMutationOptions(options);
|
|
692
692
|
return useMutation(mutationOptions);
|
|
693
693
|
};
|
|
694
|
+
/**
|
|
695
|
+
* Get cloudflare basic addon nameservers
|
|
696
|
+
* @summary Get cloudflare basic addon nameservers
|
|
697
|
+
*/
|
|
698
|
+
export const addonsCloudflareExternalNsCheck = (addonId, params, options) => {
|
|
699
|
+
return axios.get(`/v1/addons/${addonId}/cloudflare/external-ns-check`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
700
|
+
};
|
|
701
|
+
export const getAddonsCloudflareExternalNsCheckQueryKey = (addonId, params) => {
|
|
702
|
+
return [`/v1/addons/${addonId}/cloudflare/external-ns-check`, ...(params ? [params] : [])];
|
|
703
|
+
};
|
|
704
|
+
export const getAddonsCloudflareExternalNsCheckQueryOptions = (addonId, params, options) => {
|
|
705
|
+
var _a;
|
|
706
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
707
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getAddonsCloudflareExternalNsCheckQueryKey(addonId, params);
|
|
708
|
+
const queryFn = ({ signal }) => addonsCloudflareExternalNsCheck(addonId, params, Object.assign({ signal }, axiosOptions));
|
|
709
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(addonId) }, queryOptions);
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* @summary Get cloudflare basic addon nameservers
|
|
713
|
+
*/
|
|
714
|
+
export function useAddonsCloudflareExternalNsCheck(addonId, params, options) {
|
|
715
|
+
const queryOptions = getAddonsCloudflareExternalNsCheckQueryOptions(addonId, params, options);
|
|
716
|
+
const query = useQuery(queryOptions);
|
|
717
|
+
query.queryKey = queryOptions.queryKey;
|
|
718
|
+
return query;
|
|
719
|
+
}
|
|
694
720
|
/**
|
|
695
721
|
* Returns addon information
|
|
696
722
|
* @summary info
|
|
@@ -1397,6 +1423,32 @@ export const useHostingAdvancedDomainServices = (options) => {
|
|
|
1397
1423
|
const mutationOptions = getHostingAdvancedDomainServicesMutationOptions(options);
|
|
1398
1424
|
return useMutation(mutationOptions);
|
|
1399
1425
|
};
|
|
1426
|
+
/**
|
|
1427
|
+
* Returns a list of images avaiable to rebuild a server with
|
|
1428
|
+
* @summary list of server images
|
|
1429
|
+
*/
|
|
1430
|
+
export const hostingAdvancedImages = (hostingId, params, options) => {
|
|
1431
|
+
return axios.get(`/v1/hosting/${hostingId}/advanced/images`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
1432
|
+
};
|
|
1433
|
+
export const getHostingAdvancedImagesQueryKey = (hostingId, params) => {
|
|
1434
|
+
return [`/v1/hosting/${hostingId}/advanced/images`, ...(params ? [params] : [])];
|
|
1435
|
+
};
|
|
1436
|
+
export const getHostingAdvancedImagesQueryOptions = (hostingId, params, options) => {
|
|
1437
|
+
var _a;
|
|
1438
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1439
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingAdvancedImagesQueryKey(hostingId, params);
|
|
1440
|
+
const queryFn = ({ signal }) => hostingAdvancedImages(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
1441
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
1442
|
+
};
|
|
1443
|
+
/**
|
|
1444
|
+
* @summary list of server images
|
|
1445
|
+
*/
|
|
1446
|
+
export function useHostingAdvancedImages(hostingId, params, options) {
|
|
1447
|
+
const queryOptions = getHostingAdvancedImagesQueryOptions(hostingId, params, options);
|
|
1448
|
+
const query = useQuery(queryOptions);
|
|
1449
|
+
query.queryKey = queryOptions.queryKey;
|
|
1450
|
+
return query;
|
|
1451
|
+
}
|
|
1400
1452
|
/**
|
|
1401
1453
|
* Returns the hosting server info
|
|
1402
1454
|
* @summary server status/info
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, AddonsSync200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupRestoreV3200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainEmailDeliverability200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserHosting200, UserHostingOverview200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -28,6 +28,7 @@ export declare const getBackupStatusResponseMock: (overrideResponse?: Partial<Ba
|
|
|
28
28
|
export declare const getBackupListResponseMock: (overrideResponse?: Partial<BackupList200>) => BackupList200;
|
|
29
29
|
export declare const getBackupMetaResponseMock: (overrideResponse?: Partial<BackupMeta200>) => BackupMeta200;
|
|
30
30
|
export declare const getAddonsCloudflareResponseMock: (overrideResponse?: Partial<AddonsCloudflare200>) => AddonsCloudflare200;
|
|
31
|
+
export declare const getAddonsCloudflareExternalNsCheckResponseMock: (overrideResponse?: Partial<AddonsCloudflareExternalNsCheck200>) => AddonsCloudflareExternalNsCheck200;
|
|
31
32
|
export declare const getAddonsInfoResponseMock: (overrideResponse?: Partial<AddonsInfo200>) => AddonsInfo200;
|
|
32
33
|
export declare const getAddonsJetpackValidateResponseMock: (overrideResponse?: Partial<AddonsJetpackValidate200>) => AddonsJetpackValidate200;
|
|
33
34
|
export declare const getAddonsSpamexpertsSsoResponseMock: (overrideResponse?: Partial<AddonsSpamexpertsSso200>) => AddonsSpamexpertsSso200;
|
|
@@ -57,6 +58,7 @@ export declare const getHostingAdvancedDnsResponseMock: (overrideResponse?: Part
|
|
|
57
58
|
export declare const getHostingAdvancedDnsUpdateResponseMock: (overrideResponse?: Partial<HostingAdvancedDnsUpdate200>) => HostingAdvancedDnsUpdate200;
|
|
58
59
|
export declare const getHostingAdvancedDomainServicesCheckResponseMock: (overrideResponse?: Partial<HostingAdvancedDomainServicesCheck200>) => HostingAdvancedDomainServicesCheck200;
|
|
59
60
|
export declare const getHostingAdvancedDomainServicesResponseMock: (overrideResponse?: Partial<HostingAdvancedDomainServices200>) => HostingAdvancedDomainServices200;
|
|
61
|
+
export declare const getHostingAdvancedImagesResponseMock: (overrideResponse?: Partial<HostingAdvancedImages200>) => HostingAdvancedImages200;
|
|
60
62
|
export declare const getHostingAdvancedServerResponseMock: (overrideResponse?: Partial<HostingAdvancedServer200>) => HostingAdvancedServer200;
|
|
61
63
|
export declare const getHostingAdvancedServerStatusResponseMock: (overrideResponse?: Partial<HostingAdvancedServerStatus200>) => HostingAdvancedServerStatus200;
|
|
62
64
|
export declare const getHostingAdvancedPasswordResponseMock: (overrideResponse?: Partial<HostingAdvancedPassword200>) => HostingAdvancedPassword200;
|
|
@@ -307,6 +309,7 @@ export declare const getBackupStatusMockHandler: (overrideResponse?: BackupStatu
|
|
|
307
309
|
export declare const getBackupListMockHandler: (overrideResponse?: BackupList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupList200> | BackupList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
308
310
|
export declare const getBackupMetaMockHandler: (overrideResponse?: BackupMeta200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<BackupMeta200> | BackupMeta200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
309
311
|
export declare const getAddonsCloudflareMockHandler: (overrideResponse?: AddonsCloudflare200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<AddonsCloudflare200> | AddonsCloudflare200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
312
|
+
export declare const getAddonsCloudflareExternalNsCheckMockHandler: (overrideResponse?: AddonsCloudflareExternalNsCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsCloudflareExternalNsCheck200> | AddonsCloudflareExternalNsCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
310
313
|
export declare const getAddonsInfoMockHandler: (overrideResponse?: AddonsInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsInfo200> | AddonsInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
311
314
|
export declare const getAddonsJetpackValidateMockHandler: (overrideResponse?: AddonsJetpackValidate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddonsJetpackValidate200> | AddonsJetpackValidate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
312
315
|
export declare const getAddonsSpamexpertsSsoMockHandler: (overrideResponse?: AddonsSpamexpertsSso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AddonsSpamexpertsSso200> | AddonsSpamexpertsSso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -336,6 +339,7 @@ export declare const getHostingAdvancedDnsMockHandler: (overrideResponse?: Hosti
|
|
|
336
339
|
export declare const getHostingAdvancedDnsUpdateMockHandler: (overrideResponse?: HostingAdvancedDnsUpdate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingAdvancedDnsUpdate200> | HostingAdvancedDnsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
337
340
|
export declare const getHostingAdvancedDomainServicesCheckMockHandler: (overrideResponse?: HostingAdvancedDomainServicesCheck200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedDomainServicesCheck200> | HostingAdvancedDomainServicesCheck200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
338
341
|
export declare const getHostingAdvancedDomainServicesMockHandler: (overrideResponse?: HostingAdvancedDomainServices200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingAdvancedDomainServices200> | HostingAdvancedDomainServices200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
342
|
+
export declare const getHostingAdvancedImagesMockHandler: (overrideResponse?: HostingAdvancedImages200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedImages200> | HostingAdvancedImages200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
339
343
|
export declare const getHostingAdvancedServerMockHandler: (overrideResponse?: HostingAdvancedServer200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAdvancedServer200> | HostingAdvancedServer200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
340
344
|
export declare const getHostingAdvancedServerStatusMockHandler: (overrideResponse?: HostingAdvancedServerStatus200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedServerStatus200> | HostingAdvancedServerStatus200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
341
345
|
export declare const getHostingAdvancedPasswordMockHandler: (overrideResponse?: HostingAdvancedPassword200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingAdvancedPassword200> | HostingAdvancedPassword200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
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.1750.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -37,6 +37,7 @@ export const getBackupStatusResponseMock = (overrideResponse = {}) => (Object.as
|
|
|
37
37
|
export const getBackupListResponseMock = (overrideResponse = {}) => (Object.assign({ home: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ backup_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), backup_status: faker.helpers.arrayElement([{ download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tracking_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]), time_created: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
38
38
|
export const getBackupMetaResponseMock = (overrideResponse = {}) => (Object.assign({ account: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_event_processing: faker.helpers.arrayElement([{ action: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), client_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), cbs_last_restore_timestamp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), site: faker.helpers.arrayElement([{ cbs_downloadables: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ snapshot_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), time_req_completed: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), cbs_restore_consent_info: faker.helpers.arrayElement([{ backup_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_download_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), current_state_backup_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), internal_tracking_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), restore_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]) }, undefined]) }, overrideResponse));
|
|
39
39
|
export const getAddonsCloudflareResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
40
|
+
export const getAddonsCloudflareExternalNsCheckResponseMock = (overrideResponse = {}) => (Object.assign({ base: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), cdn_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), domain_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), is_external: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), need_records: faker.helpers.arrayElement([{ content: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), server_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), server_ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), www: faker.helpers.arrayElement([{ detected_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), matched: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]) }, overrideResponse));
|
|
40
41
|
export const getAddonsInfoResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
41
42
|
export const getAddonsJetpackValidateResponseMock = (overrideResponse = {}) => (Object.assign({ is_connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
42
43
|
export const getAddonsSpamexpertsSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
@@ -59,7 +60,7 @@ export const getDomainsUnsetEntriUsedResponseMock = (overrideResponse = {}) => (
|
|
|
59
60
|
export const getAccessLogsResponseMock = (overrideResponse = {}) => (Object.assign({ logs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), device: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), host: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), request: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), response_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), response_size: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
60
61
|
export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
61
62
|
export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
62
|
-
export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
63
|
+
export const getHostingAccountResponseMock = (overrideResponse = {}) => (Object.assign({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_limits: faker.helpers.arrayElement([{ email_accounts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), advanced: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), billing: faker.helpers.arrayElement([{ prod_code: faker.helpers.arrayElement([faker.word.sample(), undefined]), product_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), subbrand: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), brand: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), panel: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan_key: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), resources: faker.helpers.arrayElement([{ staging: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) }, undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
63
64
|
export const getActivityLogResponseMock = (overrideResponse = {}) => (Object.assign({ activity: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), data: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_entry: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), event: faker.helpers.arrayElement([faker.word.sample(), undefined]), site_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), tenant_id: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
64
65
|
export const getHostingAddonsResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), meta: faker.helpers.arrayElement([{
|
|
65
66
|
[faker.string.alphanumeric(5)]: faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined }), faker.datatype.boolean()])
|
|
@@ -68,6 +69,7 @@ export const getHostingAdvancedDnsResponseMock = (overrideResponse = {}) => (Obj
|
|
|
68
69
|
export const getHostingAdvancedDnsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
69
70
|
export const getHostingAdvancedDomainServicesCheckResponseMock = (overrideResponse = {}) => (Object.assign({ configure_domain_services: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), managed_cpanel_user_exists: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
70
71
|
export const getHostingAdvancedDomainServicesResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
72
|
+
export const getHostingAdvancedImagesResponseMock = (overrideResponse = {}) => (Object.assign({ images: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ arch_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), software: faker.helpers.arrayElement([faker.word.sample(), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) })) }, overrideResponse));
|
|
71
73
|
export const getHostingAdvancedServerResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), hostname: faker.helpers.arrayElement([faker.word.sample(), undefined]), ips: faker.helpers.arrayElement([{ other_ips: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), primary_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), os_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_version: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
72
74
|
export const getHostingAdvancedServerStatusResponseMock = (overrideResponse = {}) => (Object.assign({ actions: faker.helpers.arrayElement([{}, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime: faker.helpers.arrayElement([faker.word.sample(), undefined]), uptime_seconds: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
73
75
|
export const getHostingAdvancedPasswordResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
@@ -594,6 +596,16 @@ export const getAddonsCloudflareMockHandler = (overrideResponse) => {
|
|
|
594
596
|
});
|
|
595
597
|
}));
|
|
596
598
|
};
|
|
599
|
+
export const getAddonsCloudflareExternalNsCheckMockHandler = (overrideResponse) => {
|
|
600
|
+
return http.get('*/v1/addons/:addonId/cloudflare/external-ns-check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
601
|
+
yield delay(0);
|
|
602
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
603
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
604
|
+
: getAddonsCloudflareExternalNsCheckResponseMock()), { status: 200,
|
|
605
|
+
headers: { 'Content-Type': 'application/json' }
|
|
606
|
+
});
|
|
607
|
+
}));
|
|
608
|
+
};
|
|
597
609
|
export const getAddonsInfoMockHandler = (overrideResponse) => {
|
|
598
610
|
return http.get('*/v1/addons/:addonId/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
599
611
|
yield delay(0);
|
|
@@ -884,6 +896,16 @@ export const getHostingAdvancedDomainServicesMockHandler = (overrideResponse) =>
|
|
|
884
896
|
});
|
|
885
897
|
}));
|
|
886
898
|
};
|
|
899
|
+
export const getHostingAdvancedImagesMockHandler = (overrideResponse) => {
|
|
900
|
+
return http.get('*/v1/hosting/:hostingId/advanced/images', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
901
|
+
yield delay(0);
|
|
902
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
903
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
904
|
+
: getHostingAdvancedImagesResponseMock()), { status: 200,
|
|
905
|
+
headers: { 'Content-Type': 'application/json' }
|
|
906
|
+
});
|
|
907
|
+
}));
|
|
908
|
+
};
|
|
887
909
|
export const getHostingAdvancedServerMockHandler = (overrideResponse) => {
|
|
888
910
|
return http.get('*/v1/hosting/:hostingId/advanced/server', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
889
911
|
yield delay(0);
|
|
@@ -3153,6 +3175,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3153
3175
|
getBackupListMockHandler(),
|
|
3154
3176
|
getBackupMetaMockHandler(),
|
|
3155
3177
|
getAddonsCloudflareMockHandler(),
|
|
3178
|
+
getAddonsCloudflareExternalNsCheckMockHandler(),
|
|
3156
3179
|
getAddonsInfoMockHandler(),
|
|
3157
3180
|
getAddonsJetpackValidateMockHandler(),
|
|
3158
3181
|
getAddonsSpamexpertsSsoMockHandler(),
|
|
@@ -3182,6 +3205,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3182
3205
|
getHostingAdvancedDnsUpdateMockHandler(),
|
|
3183
3206
|
getHostingAdvancedDomainServicesCheckMockHandler(),
|
|
3184
3207
|
getHostingAdvancedDomainServicesMockHandler(),
|
|
3208
|
+
getHostingAdvancedImagesMockHandler(),
|
|
3185
3209
|
getHostingAdvancedServerMockHandler(),
|
|
3186
3210
|
getHostingAdvancedServerStatusMockHandler(),
|
|
3187
3211
|
getHostingAdvancedPasswordMockHandler(),
|
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.1750.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -410,17 +410,6 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
410
410
|
export declare type SitesDomainsV2Params = {
|
|
411
411
|
scan?: boolean;
|
|
412
412
|
};
|
|
413
|
-
export declare type SitesListV2200 = {
|
|
414
|
-
items?: SitesListV2200ItemsItem[];
|
|
415
|
-
/** page size */
|
|
416
|
-
limit?: number;
|
|
417
|
-
/** current page number */
|
|
418
|
-
page?: number;
|
|
419
|
-
/** total number of pages */
|
|
420
|
-
pages?: number;
|
|
421
|
-
/** total number of sites returned */
|
|
422
|
-
total?: number;
|
|
423
|
-
};
|
|
424
413
|
/**
|
|
425
414
|
* @nullable
|
|
426
415
|
*/
|
|
@@ -583,6 +572,17 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
583
572
|
*/
|
|
584
573
|
version_ptr?: string | null;
|
|
585
574
|
};
|
|
575
|
+
export declare type SitesListV2200 = {
|
|
576
|
+
items?: SitesListV2200ItemsItem[];
|
|
577
|
+
/** page size */
|
|
578
|
+
limit?: number;
|
|
579
|
+
/** current page number */
|
|
580
|
+
page?: number;
|
|
581
|
+
/** total number of pages */
|
|
582
|
+
pages?: number;
|
|
583
|
+
/** total number of sites returned */
|
|
584
|
+
total?: number;
|
|
585
|
+
};
|
|
586
586
|
export declare type SshKeyV2200 = {
|
|
587
587
|
deleted?: number;
|
|
588
588
|
key_name?: string;
|
|
@@ -923,12 +923,6 @@ export declare type HostingDomainsUnassignV2Body = {
|
|
|
923
923
|
/** The site id to be unassigned */
|
|
924
924
|
site_id: number;
|
|
925
925
|
};
|
|
926
|
-
export declare type HostingDomainsV2200 = {
|
|
927
|
-
domains: HostingDomainsV2200DomainsItem[];
|
|
928
|
-
limit?: number;
|
|
929
|
-
page?: number;
|
|
930
|
-
total?: number;
|
|
931
|
-
};
|
|
932
926
|
/**
|
|
933
927
|
* Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
|
|
934
928
|
* @nullable
|
|
@@ -1065,6 +1059,12 @@ export declare type HostingDomainsV2200DomainsItem = {
|
|
|
1065
1059
|
*/
|
|
1066
1060
|
used_entri?: number | null;
|
|
1067
1061
|
};
|
|
1062
|
+
export declare type HostingDomainsV2200 = {
|
|
1063
|
+
domains: HostingDomainsV2200DomainsItem[];
|
|
1064
|
+
limit?: number;
|
|
1065
|
+
page?: number;
|
|
1066
|
+
total?: number;
|
|
1067
|
+
};
|
|
1068
1068
|
export declare type HostingDomainsV2TypesItem = typeof HostingDomainsV2TypesItem[keyof typeof HostingDomainsV2TypesItem];
|
|
1069
1069
|
export declare const HostingDomainsV2TypesItem: {
|
|
1070
1070
|
readonly addon: "addon";
|
|
@@ -1234,6 +1234,70 @@ export declare type UserHostingOverviewParams = {
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
limit?: number;
|
|
1236
1236
|
};
|
|
1237
|
+
export declare type UserHosting200RowsItem = {
|
|
1238
|
+
/** Additional information about the account */
|
|
1239
|
+
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1240
|
+
/** HAL Account back_reference, used to link to the product instance */
|
|
1241
|
+
back_reference?: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* Information from the billing system about this hosting account
|
|
1244
|
+
* @nullable
|
|
1245
|
+
*/
|
|
1246
|
+
billing?: UserHosting200RowsItemBilling;
|
|
1247
|
+
/**
|
|
1248
|
+
* Capability sites associated with the account
|
|
1249
|
+
* @nullable
|
|
1250
|
+
*/
|
|
1251
|
+
capability_sites?: string | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* Feature set name ex: hosting_40s
|
|
1254
|
+
* @nullable
|
|
1255
|
+
*/
|
|
1256
|
+
feature_set?: string | null;
|
|
1257
|
+
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1258
|
+
has_panel_mail?: boolean;
|
|
1259
|
+
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1260
|
+
is_upgradeable?: boolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* Account limits
|
|
1263
|
+
* @nullable
|
|
1264
|
+
*/
|
|
1265
|
+
limit?: UserHosting200RowsItemLimit;
|
|
1266
|
+
/**
|
|
1267
|
+
* Remote limits for the account
|
|
1268
|
+
* @nullable
|
|
1269
|
+
*/
|
|
1270
|
+
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1271
|
+
/**
|
|
1272
|
+
* Package name
|
|
1273
|
+
* @nullable
|
|
1274
|
+
*/
|
|
1275
|
+
package?: string | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Control panel type
|
|
1278
|
+
* @nullable
|
|
1279
|
+
*/
|
|
1280
|
+
panel?: string | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Number of sites
|
|
1283
|
+
* @nullable
|
|
1284
|
+
*/
|
|
1285
|
+
sites?: number | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* Usage statistics for non-staging sites
|
|
1288
|
+
* @nullable
|
|
1289
|
+
*/
|
|
1290
|
+
used?: UserHosting200RowsItemUsed;
|
|
1291
|
+
/**
|
|
1292
|
+
* Usage statistics for staging sites
|
|
1293
|
+
* @nullable
|
|
1294
|
+
*/
|
|
1295
|
+
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1296
|
+
};
|
|
1297
|
+
export declare type UserHosting200 = {
|
|
1298
|
+
/** Information for the paginated hosting accounts */
|
|
1299
|
+
rows?: UserHosting200RowsItem[];
|
|
1300
|
+
};
|
|
1237
1301
|
/**
|
|
1238
1302
|
* Usage statistics for staging sites
|
|
1239
1303
|
* @nullable
|
|
@@ -1354,70 +1418,6 @@ export declare type UserHosting200RowsItemBilling = {
|
|
|
1354
1418
|
*/
|
|
1355
1419
|
prod_name?: string | null;
|
|
1356
1420
|
} | null;
|
|
1357
|
-
export declare type UserHosting200RowsItem = {
|
|
1358
|
-
/** Additional information about the account */
|
|
1359
|
-
account_info?: UserHosting200RowsItemAccountInfo;
|
|
1360
|
-
/** HAL Account back_reference, used to link to the product instance */
|
|
1361
|
-
back_reference?: string;
|
|
1362
|
-
/**
|
|
1363
|
-
* Information from the billing system about this hosting account
|
|
1364
|
-
* @nullable
|
|
1365
|
-
*/
|
|
1366
|
-
billing?: UserHosting200RowsItemBilling;
|
|
1367
|
-
/**
|
|
1368
|
-
* Capability sites associated with the account
|
|
1369
|
-
* @nullable
|
|
1370
|
-
*/
|
|
1371
|
-
capability_sites?: string | null;
|
|
1372
|
-
/**
|
|
1373
|
-
* Feature set name ex: hosting_40s
|
|
1374
|
-
* @nullable
|
|
1375
|
-
*/
|
|
1376
|
-
feature_set?: string | null;
|
|
1377
|
-
/** Whether the product associated with this hosting account has panel mail (True) or not (False) */
|
|
1378
|
-
has_panel_mail?: boolean;
|
|
1379
|
-
/** Whether the product associated with this hosting account can be upgraded (True) or not (False) */
|
|
1380
|
-
is_upgradeable?: boolean;
|
|
1381
|
-
/**
|
|
1382
|
-
* Account limits
|
|
1383
|
-
* @nullable
|
|
1384
|
-
*/
|
|
1385
|
-
limit?: UserHosting200RowsItemLimit;
|
|
1386
|
-
/**
|
|
1387
|
-
* Remote limits for the account
|
|
1388
|
-
* @nullable
|
|
1389
|
-
*/
|
|
1390
|
-
limit_remote?: UserHosting200RowsItemLimitRemote;
|
|
1391
|
-
/**
|
|
1392
|
-
* Package name
|
|
1393
|
-
* @nullable
|
|
1394
|
-
*/
|
|
1395
|
-
package?: string | null;
|
|
1396
|
-
/**
|
|
1397
|
-
* Control panel type
|
|
1398
|
-
* @nullable
|
|
1399
|
-
*/
|
|
1400
|
-
panel?: string | null;
|
|
1401
|
-
/**
|
|
1402
|
-
* Number of sites
|
|
1403
|
-
* @nullable
|
|
1404
|
-
*/
|
|
1405
|
-
sites?: number | null;
|
|
1406
|
-
/**
|
|
1407
|
-
* Usage statistics for non-staging sites
|
|
1408
|
-
* @nullable
|
|
1409
|
-
*/
|
|
1410
|
-
used?: UserHosting200RowsItemUsed;
|
|
1411
|
-
/**
|
|
1412
|
-
* Usage statistics for staging sites
|
|
1413
|
-
* @nullable
|
|
1414
|
-
*/
|
|
1415
|
-
used_stage?: UserHosting200RowsItemUsedStage;
|
|
1416
|
-
};
|
|
1417
|
-
export declare type UserHosting200 = {
|
|
1418
|
-
/** Information for the paginated hosting accounts */
|
|
1419
|
-
rows?: UserHosting200RowsItem[];
|
|
1420
|
-
};
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Region information for the account
|
|
1423
1423
|
* @nullable
|
|
@@ -1973,6 +1973,9 @@ export declare type SiteQualityMetrics200Audits = {
|
|
|
1973
1973
|
export declare type SiteQualityMetrics200AspectScores = {
|
|
1974
1974
|
performance?: number;
|
|
1975
1975
|
};
|
|
1976
|
+
export declare type SiteQualityMetrics200AspectDetails = {
|
|
1977
|
+
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
1978
|
+
};
|
|
1976
1979
|
export declare type SiteQualityMetrics200 = {
|
|
1977
1980
|
aspect_details: SiteQualityMetrics200AspectDetails;
|
|
1978
1981
|
aspect_scores: SiteQualityMetrics200AspectScores;
|
|
@@ -2003,9 +2006,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
|
|
|
2003
2006
|
'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
|
|
2004
2007
|
'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
|
|
2005
2008
|
};
|
|
2006
|
-
export declare type SiteQualityMetrics200AspectDetails = {
|
|
2007
|
-
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
2008
|
-
};
|
|
2009
2009
|
export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
|
|
2010
2010
|
export declare const SiteQualityMetricsStrategy: {
|
|
2011
2011
|
readonly MOBILE: "MOBILE";
|
|
@@ -2134,13 +2134,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
|
|
|
2134
2134
|
dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
|
|
2135
2135
|
timestamp?: number;
|
|
2136
2136
|
};
|
|
2137
|
-
export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
|
|
2138
|
-
[key: string]: number;
|
|
2139
|
-
};
|
|
2140
|
-
export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
2141
|
-
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2142
|
-
timestamp?: number;
|
|
2143
|
-
};
|
|
2144
2137
|
export declare type SitesMetricDimensions200Dimensions = {
|
|
2145
2138
|
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
2146
2139
|
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
@@ -2153,6 +2146,13 @@ export declare type SitesMetricDimensions200Dimensions = {
|
|
|
2153
2146
|
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
2154
2147
|
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
2155
2148
|
};
|
|
2149
|
+
export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
|
|
2150
|
+
[key: string]: number;
|
|
2151
|
+
};
|
|
2152
|
+
export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
2153
|
+
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
2154
|
+
timestamp?: number;
|
|
2155
|
+
};
|
|
2156
2156
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
2157
2157
|
[key: string]: number;
|
|
2158
2158
|
};
|
|
@@ -3188,6 +3188,9 @@ export declare type HostingRedirects200Item = {
|
|
|
3188
3188
|
url?: string;
|
|
3189
3189
|
wildcard?: boolean;
|
|
3190
3190
|
};
|
|
3191
|
+
export declare type ProductLicenseDetails200 = {
|
|
3192
|
+
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3193
|
+
};
|
|
3191
3194
|
export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
|
|
3192
3195
|
expirationDate?: string;
|
|
3193
3196
|
prodInstId?: string;
|
|
@@ -3201,9 +3204,6 @@ export declare type ProductLicenseDetails200Wpsolution = {
|
|
|
3201
3204
|
creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
|
|
3202
3205
|
total?: number;
|
|
3203
3206
|
};
|
|
3204
|
-
export declare type ProductLicenseDetails200 = {
|
|
3205
|
-
wpsolution?: ProductLicenseDetails200Wpsolution;
|
|
3206
|
-
};
|
|
3207
3207
|
export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
|
|
3208
3208
|
export declare const ProductLicenseDetailsProductName: {
|
|
3209
3209
|
readonly wpsolution: "wpsolution";
|
|
@@ -4109,12 +4109,6 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
4109
4109
|
/** list of rules to be applied to the filter */
|
|
4110
4110
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
4111
4111
|
};
|
|
4112
|
-
export declare type HostingEmailFiltersList200 = {
|
|
4113
|
-
/** The number of filters */
|
|
4114
|
-
count?: number;
|
|
4115
|
-
/** List of filters */
|
|
4116
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4117
|
-
};
|
|
4118
4112
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
4119
4113
|
match?: FilterRuleMatch;
|
|
4120
4114
|
opt?: FilterRuleOpt;
|
|
@@ -4145,6 +4139,12 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
4145
4139
|
/** Whether the filter is unescaped */
|
|
4146
4140
|
unescaped?: boolean;
|
|
4147
4141
|
};
|
|
4142
|
+
export declare type HostingEmailFiltersList200 = {
|
|
4143
|
+
/** The number of filters */
|
|
4144
|
+
count?: number;
|
|
4145
|
+
/** List of filters */
|
|
4146
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
4147
|
+
};
|
|
4148
4148
|
export declare type HostingEmailFiltersListParams = {
|
|
4149
4149
|
/**
|
|
4150
4150
|
* The email account address to query filters by
|
|
@@ -4321,6 +4321,10 @@ export declare type HostingEmailUpdateBody = {
|
|
|
4321
4321
|
/** The password for the email */
|
|
4322
4322
|
password?: string;
|
|
4323
4323
|
};
|
|
4324
|
+
export declare type HostingEmailList200 = {
|
|
4325
|
+
/** List of email resources */
|
|
4326
|
+
rows?: HostingEmailList200RowsItem[];
|
|
4327
|
+
};
|
|
4324
4328
|
/**
|
|
4325
4329
|
* List of suspensions that affect the entire user account
|
|
4326
4330
|
* @nullable
|
|
@@ -4410,10 +4414,6 @@ export declare type HostingEmailList200RowsItem = {
|
|
|
4410
4414
|
*/
|
|
4411
4415
|
utf8_folders?: boolean | null;
|
|
4412
4416
|
};
|
|
4413
|
-
export declare type HostingEmailList200 = {
|
|
4414
|
-
/** List of email resources */
|
|
4415
|
-
rows?: HostingEmailList200RowsItem[];
|
|
4416
|
-
};
|
|
4417
4417
|
export declare type HostingEmailDelete200 = {
|
|
4418
4418
|
[key: string]: unknown;
|
|
4419
4419
|
};
|
|
@@ -5004,7 +5004,9 @@ export declare type HostingAdvancedServerStatusBody = {
|
|
|
5004
5004
|
action?: string;
|
|
5005
5005
|
/** Admin email for the site user */
|
|
5006
5006
|
admin_email?: string;
|
|
5007
|
-
/**
|
|
5007
|
+
/** ID of the image to rebuild with - only applicable for the 'rebuild' action */
|
|
5008
|
+
image_id?: string;
|
|
5009
|
+
/** To skip site installation - DEPRECATED do not use */
|
|
5008
5010
|
skip_site_installation?: boolean;
|
|
5009
5011
|
/** Site subtype to be installed during rebuild */
|
|
5010
5012
|
subtype?: string;
|
|
@@ -5032,6 +5034,55 @@ export declare type HostingAdvancedServer200 = {
|
|
|
5032
5034
|
uptime?: string;
|
|
5033
5035
|
uptime_seconds?: number;
|
|
5034
5036
|
};
|
|
5037
|
+
export declare type HostingAdvancedImages200ImagesItem = {
|
|
5038
|
+
/** The image architecture type */
|
|
5039
|
+
arch_name?: string;
|
|
5040
|
+
/**
|
|
5041
|
+
* Whether this is the image currently in use by the hosting addon
|
|
5042
|
+
* @nullable
|
|
5043
|
+
*/
|
|
5044
|
+
current?: number | null;
|
|
5045
|
+
/** The date and time the image was added */
|
|
5046
|
+
date_added?: string;
|
|
5047
|
+
/**
|
|
5048
|
+
* Whether this image is the default for docker site installations; If this = 1, it is the image that will be used when installing a Docker app
|
|
5049
|
+
* @nullable
|
|
5050
|
+
*/
|
|
5051
|
+
docker_default?: string | null;
|
|
5052
|
+
/** The id of the image */
|
|
5053
|
+
id?: string;
|
|
5054
|
+
/**
|
|
5055
|
+
* Whether this is an LTS (long term support) image - Ubuntu only
|
|
5056
|
+
* @nullable
|
|
5057
|
+
*/
|
|
5058
|
+
lts?: number | null;
|
|
5059
|
+
/** The full image name */
|
|
5060
|
+
name?: string;
|
|
5061
|
+
/** The name of the operating system included on the image */
|
|
5062
|
+
os_name?: string;
|
|
5063
|
+
/** The version of the operating system included on the image */
|
|
5064
|
+
os_version?: string;
|
|
5065
|
+
/** The software included on the image */
|
|
5066
|
+
software?: string;
|
|
5067
|
+
/**
|
|
5068
|
+
* Whether this image can be rebuilt to without a docker site
|
|
5069
|
+
* @nullable
|
|
5070
|
+
*/
|
|
5071
|
+
user_image?: number | null;
|
|
5072
|
+
};
|
|
5073
|
+
export declare type HostingAdvancedImages200 = {
|
|
5074
|
+
images: HostingAdvancedImages200ImagesItem[];
|
|
5075
|
+
};
|
|
5076
|
+
export declare type HostingAdvancedImagesParams = {
|
|
5077
|
+
/**
|
|
5078
|
+
* Starting page for pagination
|
|
5079
|
+
*/
|
|
5080
|
+
page?: number;
|
|
5081
|
+
/**
|
|
5082
|
+
* Maximum number of items to return. If not provided, returns all items from start index
|
|
5083
|
+
*/
|
|
5084
|
+
limit?: number;
|
|
5085
|
+
};
|
|
5035
5086
|
export declare type HostingAdvancedDomainServices200 = {
|
|
5036
5087
|
success?: number;
|
|
5037
5088
|
};
|
|
@@ -5117,6 +5168,26 @@ export declare type ActivityLog200 = {
|
|
|
5117
5168
|
export declare type ActivityLogParams = {
|
|
5118
5169
|
days?: number;
|
|
5119
5170
|
};
|
|
5171
|
+
export declare type HostingAccount200 = {
|
|
5172
|
+
account_id?: string;
|
|
5173
|
+
account_limits?: HostingAccount200AccountLimits;
|
|
5174
|
+
advanced?: boolean;
|
|
5175
|
+
billing?: HostingAccount200Billing;
|
|
5176
|
+
brand?: string;
|
|
5177
|
+
id?: string;
|
|
5178
|
+
panel?: string;
|
|
5179
|
+
plan_key?: string;
|
|
5180
|
+
platform?: string;
|
|
5181
|
+
/** @nullable */
|
|
5182
|
+
resources?: HostingAccount200Resources;
|
|
5183
|
+
/** @nullable */
|
|
5184
|
+
server_status?: string | null;
|
|
5185
|
+
/** @nullable */
|
|
5186
|
+
ssh_hostname?: string | null;
|
|
5187
|
+
status?: string;
|
|
5188
|
+
type?: string;
|
|
5189
|
+
username?: string;
|
|
5190
|
+
};
|
|
5120
5191
|
export declare type HostingAccount200ResourcesWorkers = {
|
|
5121
5192
|
/** @nullable */
|
|
5122
5193
|
available?: number | null;
|
|
@@ -5134,14 +5205,6 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
5134
5205
|
/** @nullable */
|
|
5135
5206
|
used?: number | null;
|
|
5136
5207
|
};
|
|
5137
|
-
/**
|
|
5138
|
-
* @nullable
|
|
5139
|
-
*/
|
|
5140
|
-
export declare type HostingAccount200Resources = {
|
|
5141
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
5142
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
5143
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
5144
|
-
} | null;
|
|
5145
5208
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
5146
5209
|
/** @nullable */
|
|
5147
5210
|
available?: number | null;
|
|
@@ -5163,6 +5226,14 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
5163
5226
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
5164
5227
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
5165
5228
|
};
|
|
5229
|
+
/**
|
|
5230
|
+
* @nullable
|
|
5231
|
+
*/
|
|
5232
|
+
export declare type HostingAccount200Resources = {
|
|
5233
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
5234
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
5235
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
5236
|
+
} | null;
|
|
5166
5237
|
export declare type HostingAccount200Billing = {
|
|
5167
5238
|
prod_code?: string;
|
|
5168
5239
|
product_name?: string;
|
|
@@ -5180,24 +5251,6 @@ export declare type HostingAccount200AccountLimits = {
|
|
|
5180
5251
|
*/
|
|
5181
5252
|
sites?: number | null;
|
|
5182
5253
|
};
|
|
5183
|
-
export declare type HostingAccount200 = {
|
|
5184
|
-
account_id?: string;
|
|
5185
|
-
account_limits?: HostingAccount200AccountLimits;
|
|
5186
|
-
advanced?: boolean;
|
|
5187
|
-
billing?: HostingAccount200Billing;
|
|
5188
|
-
brand?: string;
|
|
5189
|
-
id?: string;
|
|
5190
|
-
panel?: string;
|
|
5191
|
-
plan_key?: string;
|
|
5192
|
-
platform?: string;
|
|
5193
|
-
/** @nullable */
|
|
5194
|
-
resources?: HostingAccount200Resources;
|
|
5195
|
-
/** @nullable */
|
|
5196
|
-
ssh_hostname?: string | null;
|
|
5197
|
-
status?: string;
|
|
5198
|
-
type?: string;
|
|
5199
|
-
username?: string;
|
|
5200
|
-
};
|
|
5201
5254
|
export declare type DomainZoneeditorUrl200 = {
|
|
5202
5255
|
url: string;
|
|
5203
5256
|
};
|
|
@@ -5646,6 +5699,39 @@ export declare type AddonsJetpackValidate200 = {
|
|
|
5646
5699
|
export declare type AddonsInfo200 = {
|
|
5647
5700
|
id?: string;
|
|
5648
5701
|
};
|
|
5702
|
+
export declare type AddonsCloudflareExternalNsCheck200Www = {
|
|
5703
|
+
/** @nullable */
|
|
5704
|
+
detected_ips?: string[] | null;
|
|
5705
|
+
matched?: string;
|
|
5706
|
+
};
|
|
5707
|
+
/**
|
|
5708
|
+
* @nullable
|
|
5709
|
+
*/
|
|
5710
|
+
export declare type AddonsCloudflareExternalNsCheck200NeedRecords = {
|
|
5711
|
+
content?: string;
|
|
5712
|
+
type?: string;
|
|
5713
|
+
} | null;
|
|
5714
|
+
export declare type AddonsCloudflareExternalNsCheck200Base = {
|
|
5715
|
+
/** @nullable */
|
|
5716
|
+
detected_ips?: string[] | null;
|
|
5717
|
+
matched?: string;
|
|
5718
|
+
};
|
|
5719
|
+
export declare type AddonsCloudflareExternalNsCheck200 = {
|
|
5720
|
+
base?: AddonsCloudflareExternalNsCheck200Base;
|
|
5721
|
+
cdn_ip?: string;
|
|
5722
|
+
domain?: string;
|
|
5723
|
+
domain_id?: number;
|
|
5724
|
+
domain_ns?: string[];
|
|
5725
|
+
is_external?: number;
|
|
5726
|
+
/** @nullable */
|
|
5727
|
+
need_records?: AddonsCloudflareExternalNsCheck200NeedRecords;
|
|
5728
|
+
server_ip?: string;
|
|
5729
|
+
server_ns?: string[];
|
|
5730
|
+
www?: AddonsCloudflareExternalNsCheck200Www;
|
|
5731
|
+
};
|
|
5732
|
+
export declare type AddonsCloudflareExternalNsCheckParams = {
|
|
5733
|
+
domain?: string;
|
|
5734
|
+
};
|
|
5649
5735
|
export declare type AddonsCloudflare200 = {
|
|
5650
5736
|
status?: string;
|
|
5651
5737
|
};
|