@newfold/huapi-js 2.2040.0 → 2.2058.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 +71 -9
- package/src/index.js +60 -12
- package/src/index.msw.d.ts +5 -1
- package/src/index.msw.js +26 -2
- package/src/index.schemas.d.ts +198 -152
- package/src/index.schemas.js +5 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountAddonList200, AccountAddonListParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountHostingListV2200, AccountHostingListV2Params, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseHosting400, AccountPurchaseHosting401, AccountPurchaseHosting403, AccountPurchaseHosting404, AccountPurchaseHosting502, AccountPurchaseHostingBody, AccountPurchaseOrder200, AccountPurchaseOrder400, AccountPurchaseOrder401, AccountPurchaseOrder403, AccountPurchaseOrder404, AccountPurchaseProducts200, AccountPurchaseProducts400, AccountPurchaseProducts401, AccountPurchaseProducts403, AccountPurchaseProducts502, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysCreateBody, AddonsLlmKeysDelete200, AddonsLlmKeysDeleteBody, AddonsLlmKeysParams, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsDomainAssignBody, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainHealth200, DomainHealthParams, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicImagesV2200, PublicImagesV2Params, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserBillingAccounts200, UserBillingAccounts401, UserBillingAccounts502, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, UserProducts200, UserProducts401, UserProducts502, UserProservices200, UserServers200, UserServersParams, UserSpamexperts200, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountAddonList200, AccountAddonListParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountHostingListV2200, AccountHostingListV2Params, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseHosting400, AccountPurchaseHosting401, AccountPurchaseHosting403, AccountPurchaseHosting404, AccountPurchaseHosting502, AccountPurchaseHostingBody, AccountPurchaseOrder200, AccountPurchaseOrder400, AccountPurchaseOrder401, AccountPurchaseOrder403, AccountPurchaseOrder404, AccountPurchaseProducts200, AccountPurchaseProducts400, AccountPurchaseProducts401, AccountPurchaseProducts403, AccountPurchaseProducts502, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysCreateBody, AddonsLlmKeysDelete200, AddonsLlmKeysDeleteBody, AddonsLlmKeysParams, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsDomainAssignBody, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainHealth200, DomainHealthParams, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, EntriJwt200, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HostingVpsSshKeySync200, HostingVpsSshKeySync404, HostingVpsSshKeySync500, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicImagesV2200, PublicImagesV2Params, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyListV4Params, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserBillingAccounts200, UserBillingAccounts401, UserBillingAccounts502, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, UserProducts200, UserProducts401, UserProducts502, UserProservices200, UserServers200, UserServersParams, UserSpamexperts200, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -2398,6 +2398,38 @@ export declare function useDomainZoneeditorUrl<TData = Awaited<ReturnType<typeof
|
|
|
2398
2398
|
}): UseQueryResult<TData, TError> & {
|
|
2399
2399
|
queryKey: QueryKey;
|
|
2400
2400
|
};
|
|
2401
|
+
/**
|
|
2402
|
+
* Retrieves a JWT token from the Entri API for domain DNS configuration. Requires bearer JWT authentication.
|
|
2403
|
+
* @summary Get Entri JWT
|
|
2404
|
+
*/
|
|
2405
|
+
export declare const entriJwt: (options?: AxiosRequestConfig) => Promise<AxiosResponse<EntriJwt200>>;
|
|
2406
|
+
export declare const getEntriJwtQueryKey: () => readonly ["/v1/entri/jwt"];
|
|
2407
|
+
export declare const getEntriJwtQueryOptions: <TData = AxiosResponse<EntriJwt200, any>, TError = AxiosError<void, any>>(options?: {
|
|
2408
|
+
query?: Partial<UseQueryOptions<AxiosResponse<EntriJwt200, any>, TError, TData, QueryKey>> | undefined;
|
|
2409
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
2410
|
+
} | undefined) => UseQueryOptions<AxiosResponse<EntriJwt200, any>, TError, TData, QueryKey> & {
|
|
2411
|
+
queryKey: QueryKey;
|
|
2412
|
+
};
|
|
2413
|
+
export declare type EntriJwtQueryResult = NonNullable<Awaited<ReturnType<typeof entriJwt>>>;
|
|
2414
|
+
export declare type EntriJwtQueryError = AxiosError<void>;
|
|
2415
|
+
export declare function useEntriJwt<TData = Awaited<ReturnType<typeof entriJwt>>, TError = AxiosError<void>>(options: {
|
|
2416
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof entriJwt>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof entriJwt>>, TError, TData>, 'initialData'>;
|
|
2417
|
+
axios?: AxiosRequestConfig;
|
|
2418
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
2419
|
+
queryKey: QueryKey;
|
|
2420
|
+
};
|
|
2421
|
+
export declare function useEntriJwt<TData = Awaited<ReturnType<typeof entriJwt>>, TError = AxiosError<void>>(options?: {
|
|
2422
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof entriJwt>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof entriJwt>>, TError, TData>, 'initialData'>;
|
|
2423
|
+
axios?: AxiosRequestConfig;
|
|
2424
|
+
}): UseQueryResult<TData, TError> & {
|
|
2425
|
+
queryKey: QueryKey;
|
|
2426
|
+
};
|
|
2427
|
+
export declare function useEntriJwt<TData = Awaited<ReturnType<typeof entriJwt>>, TError = AxiosError<void>>(options?: {
|
|
2428
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof entriJwt>>, TError, TData>>;
|
|
2429
|
+
axios?: AxiosRequestConfig;
|
|
2430
|
+
}): UseQueryResult<TData, TError> & {
|
|
2431
|
+
queryKey: QueryKey;
|
|
2432
|
+
};
|
|
2401
2433
|
/**
|
|
2402
2434
|
* Returns HAL hosting account-level information
|
|
2403
2435
|
* @summary HAL Hosting Account Info
|
|
@@ -6522,6 +6554,36 @@ export declare const useSshKeyGenerate: <TError = AxiosError<unknown, any>, TCon
|
|
|
6522
6554
|
hostingId: number;
|
|
6523
6555
|
data: SshKeyGenerateBody;
|
|
6524
6556
|
}, TContext>;
|
|
6557
|
+
/**
|
|
6558
|
+
* Reinstalls a customer SSH public key from HAL storage onto the VPS server. Used when a key exists in the panel database but is missing from the server (for example after a reimage).
|
|
6559
|
+
* @summary Sync a VPS SSH public key to the server
|
|
6560
|
+
*/
|
|
6561
|
+
export declare const hostingVpsSshKeySync: (hostingId: string, id: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingVpsSshKeySync200>>;
|
|
6562
|
+
export declare const getHostingVpsSshKeySyncMutationOptions: <TError = AxiosError<HostingVpsSshKeySync500 | HostingVpsSshKeySync404, any>, TContext = unknown>(options?: {
|
|
6563
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
|
|
6564
|
+
hostingId: string;
|
|
6565
|
+
id: number;
|
|
6566
|
+
}, TContext> | undefined;
|
|
6567
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6568
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
|
|
6569
|
+
hostingId: string;
|
|
6570
|
+
id: number;
|
|
6571
|
+
}, TContext>;
|
|
6572
|
+
export declare type HostingVpsSshKeySyncMutationResult = NonNullable<Awaited<ReturnType<typeof hostingVpsSshKeySync>>>;
|
|
6573
|
+
export declare type HostingVpsSshKeySyncMutationError = AxiosError<HostingVpsSshKeySync404 | HostingVpsSshKeySync500>;
|
|
6574
|
+
/**
|
|
6575
|
+
* @summary Sync a VPS SSH public key to the server
|
|
6576
|
+
*/
|
|
6577
|
+
export declare const useHostingVpsSshKeySync: <TError = AxiosError<HostingVpsSshKeySync500 | HostingVpsSshKeySync404, any>, TContext = unknown>(options?: {
|
|
6578
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
|
|
6579
|
+
hostingId: string;
|
|
6580
|
+
id: number;
|
|
6581
|
+
}, TContext> | undefined;
|
|
6582
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
6583
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
|
|
6584
|
+
hostingId: string;
|
|
6585
|
+
id: number;
|
|
6586
|
+
}, TContext>;
|
|
6525
6587
|
/**
|
|
6526
6588
|
* Returns a SSO login token for a hosting account by default, or directly to various apps within the hosting account by using the optional query parameter.
|
|
6527
6589
|
* @summary sso
|
|
@@ -10318,7 +10380,7 @@ export declare function useSshKeyListV2<TData = Awaited<ReturnType<typeof sshKey
|
|
|
10318
10380
|
queryKey: QueryKey;
|
|
10319
10381
|
};
|
|
10320
10382
|
/**
|
|
10321
|
-
* Deletes an SSH key
|
|
10383
|
+
* Deletes an SSH key. VPS/dedicated: id required, optional remote. Shared: name and authorize.
|
|
10322
10384
|
* @summary ssh key delete
|
|
10323
10385
|
*/
|
|
10324
10386
|
export declare const sshKeyV2: (hostingId: string, sshKeyV2Body: SshKeyV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyV2200>>;
|
|
@@ -10891,12 +10953,12 @@ export declare function useSitesInfoV3<TData = Awaited<ReturnType<typeof sitesIn
|
|
|
10891
10953
|
queryKey: QueryKey;
|
|
10892
10954
|
};
|
|
10893
10955
|
/**
|
|
10894
|
-
* List
|
|
10956
|
+
* List SSH public keys. Shared hosting reads keys from the account .ssh directory via gap_ssh_key_list. VPS/Dedicated hosting reads customer keys via server_pubkey_list, or server_pubkey_scan when scan=true.
|
|
10895
10957
|
* @summary ssh keys list
|
|
10896
10958
|
*/
|
|
10897
|
-
export declare const sshKeyListV4: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV4200>>;
|
|
10898
|
-
export declare const getSshKeyListV4QueryKey: (hostingId: string) => readonly [`/v4/hosting/${string}/ssh/keys
|
|
10899
|
-
export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyListV4200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
10959
|
+
export declare const sshKeyListV4: (hostingId: string, params?: SshKeyListV4Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV4200>>;
|
|
10960
|
+
export declare const getSshKeyListV4QueryKey: (hostingId: string, params?: SshKeyListV4Params) => readonly [`/v4/hosting/${string}/ssh/keys`, ...SshKeyListV4Params[]];
|
|
10961
|
+
export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyListV4200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: SshKeyListV4Params, options?: {
|
|
10900
10962
|
query?: Partial<UseQueryOptions<AxiosResponse<SshKeyListV4200, any>, TError, TData, QueryKey>> | undefined;
|
|
10901
10963
|
axios?: AxiosRequestConfig<any> | undefined;
|
|
10902
10964
|
} | undefined) => UseQueryOptions<AxiosResponse<SshKeyListV4200, any>, TError, TData, QueryKey> & {
|
|
@@ -10904,19 +10966,19 @@ export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyL
|
|
|
10904
10966
|
};
|
|
10905
10967
|
export declare type SshKeyListV4QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV4>>>;
|
|
10906
10968
|
export declare type SshKeyListV4QueryError = AxiosError<unknown>;
|
|
10907
|
-
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options: {
|
|
10969
|
+
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | SshKeyListV4Params, options: {
|
|
10908
10970
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>, 'initialData'>;
|
|
10909
10971
|
axios?: AxiosRequestConfig;
|
|
10910
10972
|
}): DefinedUseQueryResult<TData, TError> & {
|
|
10911
10973
|
queryKey: QueryKey;
|
|
10912
10974
|
};
|
|
10913
|
-
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
10975
|
+
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params?: SshKeyListV4Params, options?: {
|
|
10914
10976
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>, 'initialData'>;
|
|
10915
10977
|
axios?: AxiosRequestConfig;
|
|
10916
10978
|
}): UseQueryResult<TData, TError> & {
|
|
10917
10979
|
queryKey: QueryKey;
|
|
10918
10980
|
};
|
|
10919
|
-
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
10981
|
+
export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params?: SshKeyListV4Params, options?: {
|
|
10920
10982
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>>;
|
|
10921
10983
|
axios?: AxiosRequestConfig;
|
|
10922
10984
|
}): UseQueryResult<TData, TError> & {
|
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.2058.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -1871,6 +1871,32 @@ export function useDomainZoneeditorUrl(domainId, options) {
|
|
|
1871
1871
|
query.queryKey = queryOptions.queryKey;
|
|
1872
1872
|
return query;
|
|
1873
1873
|
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Retrieves a JWT token from the Entri API for domain DNS configuration. Requires bearer JWT authentication.
|
|
1876
|
+
* @summary Get Entri JWT
|
|
1877
|
+
*/
|
|
1878
|
+
export const entriJwt = (options) => {
|
|
1879
|
+
return axios.get(`/v1/entri/jwt`, options);
|
|
1880
|
+
};
|
|
1881
|
+
export const getEntriJwtQueryKey = () => {
|
|
1882
|
+
return [`/v1/entri/jwt`];
|
|
1883
|
+
};
|
|
1884
|
+
export const getEntriJwtQueryOptions = (options) => {
|
|
1885
|
+
var _a;
|
|
1886
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1887
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getEntriJwtQueryKey();
|
|
1888
|
+
const queryFn = ({ signal }) => entriJwt(Object.assign({ signal }, axiosOptions));
|
|
1889
|
+
return Object.assign({ queryKey, queryFn }, queryOptions);
|
|
1890
|
+
};
|
|
1891
|
+
/**
|
|
1892
|
+
* @summary Get Entri JWT
|
|
1893
|
+
*/
|
|
1894
|
+
export function useEntriJwt(options) {
|
|
1895
|
+
const queryOptions = getEntriJwtQueryOptions(options);
|
|
1896
|
+
const query = useQuery(queryOptions);
|
|
1897
|
+
query.queryKey = queryOptions.queryKey;
|
|
1898
|
+
return query;
|
|
1899
|
+
}
|
|
1874
1900
|
/**
|
|
1875
1901
|
* Returns HAL hosting account-level information
|
|
1876
1902
|
* @summary HAL Hosting Account Info
|
|
@@ -5014,6 +5040,28 @@ export const useSshKeyGenerate = (options) => {
|
|
|
5014
5040
|
const mutationOptions = getSshKeyGenerateMutationOptions(options);
|
|
5015
5041
|
return useMutation(mutationOptions);
|
|
5016
5042
|
};
|
|
5043
|
+
/**
|
|
5044
|
+
* Reinstalls a customer SSH public key from HAL storage onto the VPS server. Used when a key exists in the panel database but is missing from the server (for example after a reimage).
|
|
5045
|
+
* @summary Sync a VPS SSH public key to the server
|
|
5046
|
+
*/
|
|
5047
|
+
export const hostingVpsSshKeySync = (hostingId, id, options) => {
|
|
5048
|
+
return axios.post(`/v1/hosting/${hostingId}/ssh/keys/${id}/sync`, undefined, options);
|
|
5049
|
+
};
|
|
5050
|
+
export const getHostingVpsSshKeySyncMutationOptions = (options) => {
|
|
5051
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
5052
|
+
const mutationFn = (props) => {
|
|
5053
|
+
const { hostingId, id } = props !== null && props !== void 0 ? props : {};
|
|
5054
|
+
return hostingVpsSshKeySync(hostingId, id, axiosOptions);
|
|
5055
|
+
};
|
|
5056
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
5057
|
+
};
|
|
5058
|
+
/**
|
|
5059
|
+
* @summary Sync a VPS SSH public key to the server
|
|
5060
|
+
*/
|
|
5061
|
+
export const useHostingVpsSshKeySync = (options) => {
|
|
5062
|
+
const mutationOptions = getHostingVpsSshKeySyncMutationOptions(options);
|
|
5063
|
+
return useMutation(mutationOptions);
|
|
5064
|
+
};
|
|
5017
5065
|
/**
|
|
5018
5066
|
* Returns a SSO login token for a hosting account by default, or directly to various apps within the hosting account by using the optional query parameter.
|
|
5019
5067
|
* @summary sso
|
|
@@ -7980,7 +8028,7 @@ export function useSshKeyListV2(hostingId, options) {
|
|
|
7980
8028
|
return query;
|
|
7981
8029
|
}
|
|
7982
8030
|
/**
|
|
7983
|
-
* Deletes an SSH key
|
|
8031
|
+
* Deletes an SSH key. VPS/dedicated: id required, optional remote. Shared: name and authorize.
|
|
7984
8032
|
* @summary ssh key delete
|
|
7985
8033
|
*/
|
|
7986
8034
|
export const sshKeyV2 = (hostingId, sshKeyV2Body, options) => {
|
|
@@ -8432,27 +8480,27 @@ export function useSitesInfoV3(siteId, options) {
|
|
|
8432
8480
|
return query;
|
|
8433
8481
|
}
|
|
8434
8482
|
/**
|
|
8435
|
-
* List
|
|
8483
|
+
* List SSH public keys. Shared hosting reads keys from the account .ssh directory via gap_ssh_key_list. VPS/Dedicated hosting reads customer keys via server_pubkey_list, or server_pubkey_scan when scan=true.
|
|
8436
8484
|
* @summary ssh keys list
|
|
8437
8485
|
*/
|
|
8438
|
-
export const sshKeyListV4 = (hostingId, options) => {
|
|
8439
|
-
return axios.get(`/v4/hosting/${hostingId}/ssh/keys`, options);
|
|
8486
|
+
export const sshKeyListV4 = (hostingId, params, options) => {
|
|
8487
|
+
return axios.get(`/v4/hosting/${hostingId}/ssh/keys`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
8440
8488
|
};
|
|
8441
|
-
export const getSshKeyListV4QueryKey = (hostingId) => {
|
|
8442
|
-
return [`/v4/hosting/${hostingId}/ssh/keys
|
|
8489
|
+
export const getSshKeyListV4QueryKey = (hostingId, params) => {
|
|
8490
|
+
return [`/v4/hosting/${hostingId}/ssh/keys`, ...(params ? [params] : [])];
|
|
8443
8491
|
};
|
|
8444
|
-
export const getSshKeyListV4QueryOptions = (hostingId, options) => {
|
|
8492
|
+
export const getSshKeyListV4QueryOptions = (hostingId, params, options) => {
|
|
8445
8493
|
var _a;
|
|
8446
8494
|
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
8447
|
-
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV4QueryKey(hostingId);
|
|
8448
|
-
const queryFn = ({ signal }) => sshKeyListV4(hostingId, Object.assign({ signal }, axiosOptions));
|
|
8495
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV4QueryKey(hostingId, params);
|
|
8496
|
+
const queryFn = ({ signal }) => sshKeyListV4(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
8449
8497
|
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
8450
8498
|
};
|
|
8451
8499
|
/**
|
|
8452
8500
|
* @summary ssh keys list
|
|
8453
8501
|
*/
|
|
8454
|
-
export function useSshKeyListV4(hostingId, options) {
|
|
8455
|
-
const queryOptions = getSshKeyListV4QueryOptions(hostingId, options);
|
|
8502
|
+
export function useSshKeyListV4(hostingId, params, options) {
|
|
8503
|
+
const queryOptions = getSshKeyListV4QueryOptions(hostingId, params, options);
|
|
8456
8504
|
const query = useQuery(queryOptions);
|
|
8457
8505
|
query.queryKey = queryOptions.queryKey;
|
|
8458
8506
|
return query;
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountAddonList200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountHostingListV2200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseOrder200, AccountPurchaseProducts200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysDelete200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainHealth200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicImagesV2200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, 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, UserBillingAccounts200, UserHosting200, UserHostingOverview200, UserProducts200, UserProservices200, UserServers200, UserSpamexperts200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountAddonList200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountHostingListV2200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseOrder200, AccountPurchaseProducts200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysDelete200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainHealth200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, EntriJwt200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVpsSshKeySync200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicImagesV2200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, 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, UserBillingAccounts200, UserHosting200, UserHostingOverview200, UserProducts200, UserProservices200, UserServers200, UserSpamexperts200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } 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;
|
|
@@ -76,6 +76,7 @@ export declare const getDomainHealthResponseMock: (overrideResponse?: Partial<Do
|
|
|
76
76
|
export declare const getAccessLogsResponseMock: (overrideResponse?: Partial<AccessLogs200>) => AccessLogs200;
|
|
77
77
|
export declare const getDomainUnassignResponseMock: (overrideResponse?: Partial<DomainUnassign200>) => DomainUnassign200;
|
|
78
78
|
export declare const getDomainZoneeditorUrlResponseMock: (overrideResponse?: Partial<DomainZoneeditorUrl200>) => DomainZoneeditorUrl200;
|
|
79
|
+
export declare const getEntriJwtResponseMock: (overrideResponse?: Partial<EntriJwt200>) => EntriJwt200;
|
|
79
80
|
export declare const getHostingAccountResponseMock: (overrideResponse?: Partial<HostingAccount200>) => HostingAccount200;
|
|
80
81
|
export declare const getActivityLogResponseMock: (overrideResponse?: Partial<ActivityLog200>) => ActivityLog200;
|
|
81
82
|
export declare const getHostingAddonsResponseMock: (overrideResponse?: Partial<HostingAddons200>) => HostingAddons200;
|
|
@@ -207,6 +208,7 @@ export declare const getSshKeyImportResponseMock: (overrideResponse?: Partial<Ss
|
|
|
207
208
|
export declare const getSshKeyListResponseMock: (overrideResponse?: Partial<SshKeyList200>) => SshKeyList200;
|
|
208
209
|
export declare const getSshKeyResponseMock: (overrideResponse?: Partial<SshKey200>) => SshKey200;
|
|
209
210
|
export declare const getSshKeyGenerateResponseMock: (overrideResponse?: Partial<SshKeyGenerate200>) => SshKeyGenerate200;
|
|
211
|
+
export declare const getHostingVpsSshKeySyncResponseMock: (overrideResponse?: Partial<HostingVpsSshKeySync200>) => HostingVpsSshKeySync200;
|
|
210
212
|
export declare const getSsoResponseMock: (overrideResponse?: Partial<Sso200>) => Sso200;
|
|
211
213
|
export declare const getHostingVisitorsResponseMock: (overrideResponse?: Partial<HostingVisitors200>) => HostingVisitors200;
|
|
212
214
|
export declare const getPublicImagesResponseMock: (overrideResponse?: Partial<PublicImages200>) => PublicImages200;
|
|
@@ -420,6 +422,7 @@ export declare const getDomainHealthMockHandler: (overrideResponse?: DomainHealt
|
|
|
420
422
|
export declare const getAccessLogsMockHandler: (overrideResponse?: AccessLogs200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AccessLogs200> | AccessLogs200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
421
423
|
export declare const getDomainUnassignMockHandler: (overrideResponse?: DomainUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<DomainUnassign200> | DomainUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
422
424
|
export declare const getDomainZoneeditorUrlMockHandler: (overrideResponse?: DomainZoneeditorUrl200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DomainZoneeditorUrl200> | DomainZoneeditorUrl200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
425
|
+
export declare const getEntriJwtMockHandler: (overrideResponse?: EntriJwt200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EntriJwt200> | EntriJwt200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
423
426
|
export declare const getHostingAccountMockHandler: (overrideResponse?: HostingAccount200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAccount200> | HostingAccount200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
424
427
|
export declare const getActivityLogMockHandler: (overrideResponse?: ActivityLog200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ActivityLog200> | ActivityLog200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
425
428
|
export declare const getHostingAddonsMockHandler: (overrideResponse?: HostingAddons200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingAddons200> | HostingAddons200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -551,6 +554,7 @@ export declare const getSshKeyImportMockHandler: (overrideResponse?: SshKeyImpor
|
|
|
551
554
|
export declare const getSshKeyListMockHandler: (overrideResponse?: SshKeyList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyList200> | SshKeyList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
552
555
|
export declare const getSshKeyMockHandler: (overrideResponse?: SshKey200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<SshKey200> | SshKey200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
553
556
|
export declare const getSshKeyGenerateMockHandler: (overrideResponse?: SshKeyGenerate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyGenerate200> | SshKeyGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
557
|
+
export declare const getHostingVpsSshKeySyncMockHandler: (overrideResponse?: HostingVpsSshKeySync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingVpsSshKeySync200> | HostingVpsSshKeySync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
554
558
|
export declare const getSsoMockHandler: (overrideResponse?: Sso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Sso200> | Sso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
555
559
|
export declare const getHostingVisitorsMockHandler: (overrideResponse?: HostingVisitors200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingVisitors200> | HostingVisitors200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
556
560
|
export declare const getPublicImagesMockHandler: (overrideResponse?: PublicImages200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PublicImages200> | PublicImages200) | 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.2058.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -85,6 +85,7 @@ export const getDomainHealthResponseMock = (overrideResponse = {}) => (Object.as
|
|
|
85
85
|
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));
|
|
86
86
|
export const getDomainUnassignResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
87
87
|
export const getDomainZoneeditorUrlResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
88
|
+
export const getEntriJwtResponseMock = (overrideResponse = {}) => (Object.assign({ token: faker.word.sample() }, overrideResponse));
|
|
88
89
|
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]), max_domain: 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]), addon_date_added: faker.helpers.arrayElement([faker.word.sample(), 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]), site_quota: 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]), used: faker.helpers.arrayElement([{ domain: 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));
|
|
89
90
|
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));
|
|
90
91
|
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([{
|
|
@@ -218,6 +219,7 @@ export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.as
|
|
|
218
219
|
export const getSshKeyListResponseMock = (overrideResponse = {}) => (Object.assign({ keys: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), haspub: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
219
220
|
export const getSshKeyResponseMock = (overrideResponse = {}) => (Object.assign({ deleted: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
220
221
|
export const getSshKeyGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
222
|
+
export const getHostingVpsSshKeySyncResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
221
223
|
export const getSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
|
|
222
224
|
export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([{ data: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date: faker.helpers.arrayElement([faker.word.sample(), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total: faker.helpers.arrayElement([{ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, undefined]), is_linked_domain: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), linked_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
|
|
223
225
|
export const getPublicImagesResponseMock = (overrideResponse = {}) => (Object.assign({ limit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), n_rows: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), page: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ ai_key_enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_cpus: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_disk: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_ram: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), readme: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
@@ -380,7 +382,7 @@ export const getSitesListV3ResponseMock = (overrideResponse = {}) => (Object.ass
|
|
|
380
382
|
[faker.string.alphanumeric(5)]: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: 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([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }))
|
|
381
383
|
}, undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: 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([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), rows: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
382
384
|
export const getSitesInfoV3ResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: 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([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
383
|
-
export const getSshKeyListV4ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_at: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
385
|
+
export const getSshKeyListV4ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ alg_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_at: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), pubkey: faker.helpers.arrayElement([faker.word.sample(), undefined]), remote: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
384
386
|
export const getAccountEventListMockHandler = (overrideResponse) => {
|
|
385
387
|
return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
386
388
|
yield delay(0);
|
|
@@ -1141,6 +1143,16 @@ export const getDomainZoneeditorUrlMockHandler = (overrideResponse) => {
|
|
|
1141
1143
|
});
|
|
1142
1144
|
}));
|
|
1143
1145
|
};
|
|
1146
|
+
export const getEntriJwtMockHandler = (overrideResponse) => {
|
|
1147
|
+
return http.get('*/v1/entri/jwt', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1148
|
+
yield delay(0);
|
|
1149
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1150
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1151
|
+
: getEntriJwtResponseMock()), { status: 200,
|
|
1152
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1153
|
+
});
|
|
1154
|
+
}));
|
|
1155
|
+
};
|
|
1144
1156
|
export const getHostingAccountMockHandler = (overrideResponse) => {
|
|
1145
1157
|
return http.get('*/v1/hosting/:hostingId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1146
1158
|
yield delay(0);
|
|
@@ -2451,6 +2463,16 @@ export const getSshKeyGenerateMockHandler = (overrideResponse) => {
|
|
|
2451
2463
|
});
|
|
2452
2464
|
}));
|
|
2453
2465
|
};
|
|
2466
|
+
export const getHostingVpsSshKeySyncMockHandler = (overrideResponse) => {
|
|
2467
|
+
return http.post('*/v1/hosting/:hostingId/ssh/keys/:id/sync', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2468
|
+
yield delay(0);
|
|
2469
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2470
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2471
|
+
: getHostingVpsSshKeySyncResponseMock()), { status: 200,
|
|
2472
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2473
|
+
});
|
|
2474
|
+
}));
|
|
2475
|
+
};
|
|
2454
2476
|
export const getSsoMockHandler = (overrideResponse) => {
|
|
2455
2477
|
return http.get('*/v1/hosting/:hostingId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2456
2478
|
yield delay(0);
|
|
@@ -3918,6 +3940,7 @@ export const getHostingUAPIMock = () => [
|
|
|
3918
3940
|
getAccessLogsMockHandler(),
|
|
3919
3941
|
getDomainUnassignMockHandler(),
|
|
3920
3942
|
getDomainZoneeditorUrlMockHandler(),
|
|
3943
|
+
getEntriJwtMockHandler(),
|
|
3921
3944
|
getHostingAccountMockHandler(),
|
|
3922
3945
|
getActivityLogMockHandler(),
|
|
3923
3946
|
getHostingAddonsMockHandler(),
|
|
@@ -4049,6 +4072,7 @@ export const getHostingUAPIMock = () => [
|
|
|
4049
4072
|
getSshKeyListMockHandler(),
|
|
4050
4073
|
getSshKeyMockHandler(),
|
|
4051
4074
|
getSshKeyGenerateMockHandler(),
|
|
4075
|
+
getHostingVpsSshKeySyncMockHandler(),
|
|
4052
4076
|
getSsoMockHandler(),
|
|
4053
4077
|
getHostingVisitorsMockHandler(),
|
|
4054
4078
|
getPublicImagesMockHandler(),
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,17 +3,32 @@
|
|
|
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.2058.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
|
+
/** SSH key algorithm from HAL for VPS/Dedicated keys (for example rsa, ed25519) */
|
|
10
|
+
alg_type?: string;
|
|
9
11
|
authorize?: boolean;
|
|
10
12
|
created_at?: string;
|
|
13
|
+
/** server_pubkey row id for advanced hosting */
|
|
14
|
+
id?: number;
|
|
11
15
|
name?: string;
|
|
16
|
+
/** SSH public key content for advanced hosting */
|
|
17
|
+
pubkey?: string;
|
|
18
|
+
/** Present when scan=true; whether the key exists on the server only (remote) */
|
|
19
|
+
remote?: boolean;
|
|
20
|
+
/** Always public for listed keys */
|
|
12
21
|
type?: string;
|
|
13
22
|
};
|
|
14
23
|
export declare type SshKeyListV4200 = {
|
|
15
24
|
rows?: SshKeyListV4200RowsItem[];
|
|
16
25
|
};
|
|
26
|
+
export declare type SshKeyListV4Params = {
|
|
27
|
+
/**
|
|
28
|
+
* When true, calls server_pubkey_scan to compare stored keys against keys installed on the server and returns remote. VPS/Dedicated only.
|
|
29
|
+
*/
|
|
30
|
+
scan?: boolean;
|
|
31
|
+
};
|
|
17
32
|
/**
|
|
18
33
|
* @nullable
|
|
19
34
|
*/
|
|
@@ -59,12 +74,12 @@ export declare type SshKeyImportV3200 = {
|
|
|
59
74
|
public_key_name?: string | null;
|
|
60
75
|
};
|
|
61
76
|
export declare type SshKeyImportV3Body = {
|
|
62
|
-
/** The SSH key's filename */
|
|
63
|
-
name
|
|
77
|
+
/** The SSH key's filename. Required for non-advanced hosting; optional for advanced (VPS/dedicated) hosting. */
|
|
78
|
+
name?: string;
|
|
64
79
|
/** A note to log alongside the secure_action_log entry. */
|
|
65
80
|
note?: string;
|
|
66
81
|
/** A Valid SSH public key */
|
|
67
|
-
pubkey
|
|
82
|
+
pubkey: string;
|
|
68
83
|
/** The entity that initiated the GAP call */
|
|
69
84
|
source?: string;
|
|
70
85
|
};
|
|
@@ -575,17 +590,6 @@ export declare type SitesDomainsV2200DomainsItem = {
|
|
|
575
590
|
export declare type SitesDomainsV2Params = {
|
|
576
591
|
scan?: boolean;
|
|
577
592
|
};
|
|
578
|
-
export declare type SitesListV2200 = {
|
|
579
|
-
items?: SitesListV2200ItemsItem[];
|
|
580
|
-
/** page size */
|
|
581
|
-
limit?: number;
|
|
582
|
-
/** current page number */
|
|
583
|
-
page?: number;
|
|
584
|
-
/** total number of pages */
|
|
585
|
-
pages?: number;
|
|
586
|
-
/** total number of sites returned */
|
|
587
|
-
total?: number;
|
|
588
|
-
};
|
|
589
593
|
/**
|
|
590
594
|
* @nullable
|
|
591
595
|
*/
|
|
@@ -613,63 +617,6 @@ export declare type SitesListV2200ItemsItemStaging = {
|
|
|
613
617
|
/** A list of staging sites of the current site */
|
|
614
618
|
sites?: number[];
|
|
615
619
|
} | null;
|
|
616
|
-
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
617
|
-
/** @nullable */
|
|
618
|
-
available?: number | null;
|
|
619
|
-
/** @nullable */
|
|
620
|
-
total?: number | null;
|
|
621
|
-
unit?: string;
|
|
622
|
-
/** @nullable */
|
|
623
|
-
used?: number | null;
|
|
624
|
-
};
|
|
625
|
-
export declare type SitesListV2200ItemsItemResources = {
|
|
626
|
-
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
627
|
-
/** @nullable */
|
|
628
|
-
workers?: number | null;
|
|
629
|
-
};
|
|
630
|
-
/**
|
|
631
|
-
* @nullable
|
|
632
|
-
*/
|
|
633
|
-
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
634
|
-
/**
|
|
635
|
-
* The root domain name
|
|
636
|
-
* @nullable
|
|
637
|
-
*/
|
|
638
|
-
base_domain?: string | null;
|
|
639
|
-
/**
|
|
640
|
-
* The Fully Qualified Domain Name (FQDN)
|
|
641
|
-
* @nullable
|
|
642
|
-
*/
|
|
643
|
-
domain?: string | null;
|
|
644
|
-
/**
|
|
645
|
-
* The current pending_url's HAL Domain ID
|
|
646
|
-
* @nullable
|
|
647
|
-
*/
|
|
648
|
-
domain_id?: number | null;
|
|
649
|
-
/** @nullable */
|
|
650
|
-
error?: string | null;
|
|
651
|
-
/** Flag indicating whether the pending_url is temporary or not */
|
|
652
|
-
is_temp?: boolean;
|
|
653
|
-
/**
|
|
654
|
-
* Flag indicating whether the url_sync job has run out of attempts
|
|
655
|
-
* @nullable
|
|
656
|
-
*/
|
|
657
|
-
job_failed?: boolean | null;
|
|
658
|
-
/** @nullable */
|
|
659
|
-
stage?: string | null;
|
|
660
|
-
/**
|
|
661
|
-
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
662
|
-
* @nullable
|
|
663
|
-
*/
|
|
664
|
-
wp_session?: string | null;
|
|
665
|
-
} | null;
|
|
666
|
-
/**
|
|
667
|
-
* Job ids for the site
|
|
668
|
-
* @nullable
|
|
669
|
-
*/
|
|
670
|
-
export declare type SitesListV2200ItemsItemJobs = {
|
|
671
|
-
[key: string]: unknown;
|
|
672
|
-
} | null;
|
|
673
620
|
export declare type SitesListV2200ItemsItem = {
|
|
674
621
|
/** @nullable */
|
|
675
622
|
account_back_ref?: string | null;
|
|
@@ -748,16 +695,74 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
748
695
|
*/
|
|
749
696
|
version_ptr?: string | null;
|
|
750
697
|
};
|
|
751
|
-
export declare type
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
698
|
+
export declare type SitesListV2200 = {
|
|
699
|
+
items?: SitesListV2200ItemsItem[];
|
|
700
|
+
/** page size */
|
|
701
|
+
limit?: number;
|
|
702
|
+
/** current page number */
|
|
703
|
+
page?: number;
|
|
704
|
+
/** total number of pages */
|
|
705
|
+
pages?: number;
|
|
706
|
+
/** total number of sites returned */
|
|
707
|
+
total?: number;
|
|
708
|
+
};
|
|
709
|
+
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
710
|
+
/** @nullable */
|
|
711
|
+
available?: number | null;
|
|
712
|
+
/** @nullable */
|
|
713
|
+
total?: number | null;
|
|
714
|
+
unit?: string;
|
|
715
|
+
/** @nullable */
|
|
716
|
+
used?: number | null;
|
|
717
|
+
};
|
|
718
|
+
export declare type SitesListV2200ItemsItemResources = {
|
|
719
|
+
storage?: SitesListV2200ItemsItemResourcesStorage;
|
|
720
|
+
/** @nullable */
|
|
721
|
+
workers?: number | null;
|
|
760
722
|
};
|
|
723
|
+
/**
|
|
724
|
+
* @nullable
|
|
725
|
+
*/
|
|
726
|
+
export declare type SitesListV2200ItemsItemPendingUrlData = {
|
|
727
|
+
/**
|
|
728
|
+
* The root domain name
|
|
729
|
+
* @nullable
|
|
730
|
+
*/
|
|
731
|
+
base_domain?: string | null;
|
|
732
|
+
/**
|
|
733
|
+
* The Fully Qualified Domain Name (FQDN)
|
|
734
|
+
* @nullable
|
|
735
|
+
*/
|
|
736
|
+
domain?: string | null;
|
|
737
|
+
/**
|
|
738
|
+
* The current pending_url's HAL Domain ID
|
|
739
|
+
* @nullable
|
|
740
|
+
*/
|
|
741
|
+
domain_id?: number | null;
|
|
742
|
+
/** @nullable */
|
|
743
|
+
error?: string | null;
|
|
744
|
+
/** Flag indicating whether the pending_url is temporary or not */
|
|
745
|
+
is_temp?: boolean;
|
|
746
|
+
/**
|
|
747
|
+
* Flag indicating whether the url_sync job has run out of attempts
|
|
748
|
+
* @nullable
|
|
749
|
+
*/
|
|
750
|
+
job_failed?: boolean | null;
|
|
751
|
+
/** @nullable */
|
|
752
|
+
stage?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* Timestamp for when we will update the WP url, regardless of active sessions
|
|
755
|
+
* @nullable
|
|
756
|
+
*/
|
|
757
|
+
wp_session?: string | null;
|
|
758
|
+
} | null;
|
|
759
|
+
/**
|
|
760
|
+
* Job ids for the site
|
|
761
|
+
* @nullable
|
|
762
|
+
*/
|
|
763
|
+
export declare type SitesListV2200ItemsItemJobs = {
|
|
764
|
+
[key: string]: unknown;
|
|
765
|
+
} | null;
|
|
761
766
|
/**
|
|
762
767
|
* User image
|
|
763
768
|
* @nullable
|
|
@@ -918,6 +923,16 @@ export declare type PublicImagesV2200NRows = string | number;
|
|
|
918
923
|
* Limit the number of images returned
|
|
919
924
|
*/
|
|
920
925
|
export declare type PublicImagesV2200Limit = string | number;
|
|
926
|
+
export declare type PublicImagesV2200 = {
|
|
927
|
+
/** Limit the number of images returned */
|
|
928
|
+
limit?: PublicImagesV2200Limit;
|
|
929
|
+
/** Number of images returned */
|
|
930
|
+
n_rows?: PublicImagesV2200NRows;
|
|
931
|
+
/** Page number */
|
|
932
|
+
page?: PublicImagesV2200Page;
|
|
933
|
+
/** List of images */
|
|
934
|
+
rows?: PublicImagesV2200RowsItem[];
|
|
935
|
+
};
|
|
921
936
|
export declare type PublicImagesV2Params = {
|
|
922
937
|
/**
|
|
923
938
|
* Brand identifier (e.g. bluehost).
|
|
@@ -926,12 +941,25 @@ export declare type PublicImagesV2Params = {
|
|
|
926
941
|
};
|
|
927
942
|
export declare type SshKeyV2200 = {
|
|
928
943
|
deleted?: number;
|
|
944
|
+
/** Shared hosting only; key name from request or GAP */
|
|
929
945
|
key_name?: string;
|
|
930
946
|
};
|
|
947
|
+
/**
|
|
948
|
+
* VPS/dedicated optional: 1 = deauthorize + DB; omit or 0 = DB only
|
|
949
|
+
*/
|
|
950
|
+
export declare type SshKeyV2BodyRemote = typeof SshKeyV2BodyRemote[keyof typeof SshKeyV2BodyRemote];
|
|
951
|
+
export declare const SshKeyV2BodyRemote: {
|
|
952
|
+
readonly NUMBER_0: 0;
|
|
953
|
+
readonly NUMBER_1: 1;
|
|
954
|
+
};
|
|
931
955
|
export declare type SshKeyV2Body = {
|
|
932
|
-
authorize
|
|
933
|
-
|
|
956
|
+
authorize?: boolean;
|
|
957
|
+
/** server_pubkey row id (VPS/dedicated) */
|
|
958
|
+
id?: number;
|
|
959
|
+
name?: string;
|
|
934
960
|
note?: string;
|
|
961
|
+
/** VPS/dedicated optional: 1 = deauthorize + DB; omit or 0 = DB only */
|
|
962
|
+
remote?: SshKeyV2BodyRemote;
|
|
935
963
|
source?: string;
|
|
936
964
|
};
|
|
937
965
|
export declare type SshKeyListV2200RowsItem = {
|
|
@@ -1034,6 +1062,40 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
1034
1062
|
/** Count of staging sites on specified hosting account */
|
|
1035
1063
|
staging_sites?: number;
|
|
1036
1064
|
};
|
|
1065
|
+
/**
|
|
1066
|
+
* @nullable
|
|
1067
|
+
*/
|
|
1068
|
+
export declare type HostingSitesV2200ItemsItemWpMultiSite = {
|
|
1069
|
+
canonicalize_aliases?: boolean;
|
|
1070
|
+
enable?: boolean;
|
|
1071
|
+
} | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* @nullable
|
|
1074
|
+
*/
|
|
1075
|
+
export declare type HostingSitesV2200ItemsItemStaging = {
|
|
1076
|
+
/**
|
|
1077
|
+
* Applies to staging site only; The id of the current site's parent site
|
|
1078
|
+
* @nullable
|
|
1079
|
+
*/
|
|
1080
|
+
parent_site_id?: number | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* Applies to parent site only; The id of the former parent site of the current site
|
|
1083
|
+
* @nullable
|
|
1084
|
+
*/
|
|
1085
|
+
promoted_from?: number | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Applies to staging site only; The id of the parent site of the current site that is being promoted
|
|
1088
|
+
* @nullable
|
|
1089
|
+
*/
|
|
1090
|
+
promoting_from?: number | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Applies to staging site only; The derived status based on promotion ids and jobs
|
|
1093
|
+
* @nullable
|
|
1094
|
+
*/
|
|
1095
|
+
promotion_status?: string | null;
|
|
1096
|
+
/** A list of staging sites of the current site */
|
|
1097
|
+
sites?: number[];
|
|
1098
|
+
} | null;
|
|
1037
1099
|
export declare type HostingSitesV2200ItemsItem = {
|
|
1038
1100
|
/** @nullable */
|
|
1039
1101
|
account_back_ref?: string | null;
|
|
@@ -1153,40 +1215,6 @@ export declare type HostingSitesV2200 = {
|
|
|
1153
1215
|
used_sites?: number;
|
|
1154
1216
|
used_sites_details?: HostingSitesV2200UsedSitesDetails;
|
|
1155
1217
|
};
|
|
1156
|
-
/**
|
|
1157
|
-
* @nullable
|
|
1158
|
-
*/
|
|
1159
|
-
export declare type HostingSitesV2200ItemsItemWpMultiSite = {
|
|
1160
|
-
canonicalize_aliases?: boolean;
|
|
1161
|
-
enable?: boolean;
|
|
1162
|
-
} | null;
|
|
1163
|
-
/**
|
|
1164
|
-
* @nullable
|
|
1165
|
-
*/
|
|
1166
|
-
export declare type HostingSitesV2200ItemsItemStaging = {
|
|
1167
|
-
/**
|
|
1168
|
-
* Applies to staging site only; The id of the current site's parent site
|
|
1169
|
-
* @nullable
|
|
1170
|
-
*/
|
|
1171
|
-
parent_site_id?: number | null;
|
|
1172
|
-
/**
|
|
1173
|
-
* Applies to parent site only; The id of the former parent site of the current site
|
|
1174
|
-
* @nullable
|
|
1175
|
-
*/
|
|
1176
|
-
promoted_from?: number | null;
|
|
1177
|
-
/**
|
|
1178
|
-
* Applies to staging site only; The id of the parent site of the current site that is being promoted
|
|
1179
|
-
* @nullable
|
|
1180
|
-
*/
|
|
1181
|
-
promoting_from?: number | null;
|
|
1182
|
-
/**
|
|
1183
|
-
* Applies to staging site only; The derived status based on promotion ids and jobs
|
|
1184
|
-
* @nullable
|
|
1185
|
-
*/
|
|
1186
|
-
promotion_status?: string | null;
|
|
1187
|
-
/** A list of staging sites of the current site */
|
|
1188
|
-
sites?: number[];
|
|
1189
|
-
} | null;
|
|
1190
1218
|
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
1191
1219
|
/** @nullable */
|
|
1192
1220
|
available?: number | null;
|
|
@@ -2072,6 +2100,10 @@ export declare type UserHostingOverviewParams = {
|
|
|
2072
2100
|
*/
|
|
2073
2101
|
limit?: number;
|
|
2074
2102
|
};
|
|
2103
|
+
export declare type UserHosting200 = {
|
|
2104
|
+
/** Information for the paginated hosting accounts */
|
|
2105
|
+
rows?: UserHosting200RowsItem[];
|
|
2106
|
+
};
|
|
2075
2107
|
/**
|
|
2076
2108
|
* Usage statistics for staging sites
|
|
2077
2109
|
* @nullable
|
|
@@ -2301,10 +2333,6 @@ export declare type UserHosting200RowsItem = {
|
|
|
2301
2333
|
*/
|
|
2302
2334
|
used_stage?: UserHosting200RowsItemUsedStage;
|
|
2303
2335
|
};
|
|
2304
|
-
export declare type UserHosting200 = {
|
|
2305
|
-
/** Information for the paginated hosting accounts */
|
|
2306
|
-
rows?: UserHosting200RowsItem[];
|
|
2307
|
-
};
|
|
2308
2336
|
/**
|
|
2309
2337
|
* Region information for the account
|
|
2310
2338
|
* @nullable
|
|
@@ -2601,6 +2629,9 @@ export declare type SitesVersion200 = {
|
|
|
2601
2629
|
latest?: string;
|
|
2602
2630
|
update?: boolean;
|
|
2603
2631
|
};
|
|
2632
|
+
export declare type SiteUsers200 = {
|
|
2633
|
+
users: SiteUsers200UsersItem[];
|
|
2634
|
+
};
|
|
2604
2635
|
export declare type SiteUsers200UsersItemMeta = {
|
|
2605
2636
|
maestro_web_pro?: string;
|
|
2606
2637
|
maestro_wpp_identifier?: string;
|
|
@@ -2616,9 +2647,6 @@ export declare type SiteUsers200UsersItem = {
|
|
|
2616
2647
|
user_login: string;
|
|
2617
2648
|
user_nicename: string;
|
|
2618
2649
|
};
|
|
2619
|
-
export declare type SiteUsers200 = {
|
|
2620
|
-
users: SiteUsers200UsersItem[];
|
|
2621
|
-
};
|
|
2622
2650
|
export declare type SiteStatus200 = {
|
|
2623
2651
|
/** @nullable */
|
|
2624
2652
|
cloudflare_ready?: boolean | null;
|
|
@@ -2957,6 +2985,9 @@ export declare type SiteQualityMetrics200Audits = {
|
|
|
2957
2985
|
export declare type SiteQualityMetrics200AspectScores = {
|
|
2958
2986
|
performance?: number;
|
|
2959
2987
|
};
|
|
2988
|
+
export declare type SiteQualityMetrics200AspectDetails = {
|
|
2989
|
+
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
2990
|
+
};
|
|
2960
2991
|
export declare type SiteQualityMetrics200 = {
|
|
2961
2992
|
aspect_details: SiteQualityMetrics200AspectDetails;
|
|
2962
2993
|
aspect_scores: SiteQualityMetrics200AspectScores;
|
|
@@ -2987,9 +3018,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
|
|
|
2987
3018
|
'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
|
|
2988
3019
|
'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
|
|
2989
3020
|
};
|
|
2990
|
-
export declare type SiteQualityMetrics200AspectDetails = {
|
|
2991
|
-
performance?: SiteQualityMetrics200AspectDetailsPerformance;
|
|
2992
|
-
};
|
|
2993
3021
|
export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
|
|
2994
3022
|
export declare const SiteQualityMetricsStrategy: {
|
|
2995
3023
|
readonly MOBILE: "MOBILE";
|
|
@@ -4107,9 +4135,6 @@ export declare type AccountPurchaseProducts400 = {
|
|
|
4107
4135
|
/** Customer error code */
|
|
4108
4136
|
error?: string;
|
|
4109
4137
|
};
|
|
4110
|
-
export declare type AccountPurchaseProducts200 = {
|
|
4111
|
-
products?: AccountPurchaseProducts200ProductsItem[];
|
|
4112
|
-
};
|
|
4113
4138
|
export declare type AccountPurchaseProducts200ProductsItemTermsItem = {
|
|
4114
4139
|
base_price?: string;
|
|
4115
4140
|
final_price?: string;
|
|
@@ -4145,6 +4170,9 @@ export declare type AccountPurchaseProducts200ProductsItem = {
|
|
|
4145
4170
|
specs?: AccountPurchaseProducts200ProductsItemSpecs;
|
|
4146
4171
|
terms?: AccountPurchaseProducts200ProductsItemTermsItem[];
|
|
4147
4172
|
};
|
|
4173
|
+
export declare type AccountPurchaseProducts200 = {
|
|
4174
|
+
products?: AccountPurchaseProducts200ProductsItem[];
|
|
4175
|
+
};
|
|
4148
4176
|
export declare type PublicRegions200RowsItem = {
|
|
4149
4177
|
/**
|
|
4150
4178
|
* Hosting region city
|
|
@@ -4396,17 +4424,6 @@ export declare type HostingVisitors200VisitorsItem = {
|
|
|
4396
4424
|
unique_visitors?: number;
|
|
4397
4425
|
visitors?: number;
|
|
4398
4426
|
};
|
|
4399
|
-
export declare type HostingVisitors200 = {
|
|
4400
|
-
daily?: HostingVisitors200Daily;
|
|
4401
|
-
is_linked_domain?: boolean;
|
|
4402
|
-
linked_domain?: string;
|
|
4403
|
-
total_bandwidth?: number;
|
|
4404
|
-
total_hits?: number;
|
|
4405
|
-
total_pages?: number;
|
|
4406
|
-
total_unique_visitors?: number;
|
|
4407
|
-
total_visitors?: number;
|
|
4408
|
-
visitors?: HostingVisitors200VisitorsItem[];
|
|
4409
|
-
};
|
|
4410
4427
|
export declare type HostingVisitors200DailyTotal = {
|
|
4411
4428
|
total_bandwidth?: number;
|
|
4412
4429
|
total_hits?: number;
|
|
@@ -4426,6 +4443,17 @@ export declare type HostingVisitors200Daily = {
|
|
|
4426
4443
|
data?: HostingVisitors200DailyDataItem[];
|
|
4427
4444
|
total?: HostingVisitors200DailyTotal;
|
|
4428
4445
|
};
|
|
4446
|
+
export declare type HostingVisitors200 = {
|
|
4447
|
+
daily?: HostingVisitors200Daily;
|
|
4448
|
+
is_linked_domain?: boolean;
|
|
4449
|
+
linked_domain?: string;
|
|
4450
|
+
total_bandwidth?: number;
|
|
4451
|
+
total_hits?: number;
|
|
4452
|
+
total_pages?: number;
|
|
4453
|
+
total_unique_visitors?: number;
|
|
4454
|
+
total_visitors?: number;
|
|
4455
|
+
visitors?: HostingVisitors200VisitorsItem[];
|
|
4456
|
+
};
|
|
4429
4457
|
export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
|
|
4430
4458
|
export declare const HostingVisitorsSource: {
|
|
4431
4459
|
readonly http: "http";
|
|
@@ -4485,6 +4513,20 @@ export declare type SsoParams = {
|
|
|
4485
4513
|
ssl_status?: number;
|
|
4486
4514
|
bounce?: string;
|
|
4487
4515
|
};
|
|
4516
|
+
export declare type HostingVpsSshKeySync500 = {
|
|
4517
|
+
error?: string;
|
|
4518
|
+
};
|
|
4519
|
+
export declare type HostingVpsSshKeySync404 = {
|
|
4520
|
+
error?: string;
|
|
4521
|
+
};
|
|
4522
|
+
export declare type HostingVpsSshKeySync200 = {
|
|
4523
|
+
/** The server_pubkey row id */
|
|
4524
|
+
id?: number;
|
|
4525
|
+
/** The SSH public key name */
|
|
4526
|
+
name?: string;
|
|
4527
|
+
/** The server account username the key was installed for */
|
|
4528
|
+
username?: string;
|
|
4529
|
+
};
|
|
4488
4530
|
export declare type SshKeyGenerate200 = {
|
|
4489
4531
|
key_name?: string;
|
|
4490
4532
|
private_key_path?: string;
|
|
@@ -5712,6 +5754,12 @@ export declare type HostingEmailFiltersAddBody = {
|
|
|
5712
5754
|
/** list of rules to be applied to the filter */
|
|
5713
5755
|
rules?: HostingEmailFiltersAddBodyRulesItem[];
|
|
5714
5756
|
};
|
|
5757
|
+
export declare type HostingEmailFiltersList200 = {
|
|
5758
|
+
/** The number of filters */
|
|
5759
|
+
count?: number;
|
|
5760
|
+
/** List of filters */
|
|
5761
|
+
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
5762
|
+
};
|
|
5715
5763
|
export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
|
|
5716
5764
|
match?: FilterRuleMatch;
|
|
5717
5765
|
opt?: FilterRuleOpt;
|
|
@@ -5742,12 +5790,6 @@ export declare type HostingEmailFiltersList200FiltersItem = {
|
|
|
5742
5790
|
/** Whether the filter is unescaped */
|
|
5743
5791
|
unescaped?: boolean;
|
|
5744
5792
|
};
|
|
5745
|
-
export declare type HostingEmailFiltersList200 = {
|
|
5746
|
-
/** The number of filters */
|
|
5747
|
-
count?: number;
|
|
5748
|
-
/** List of filters */
|
|
5749
|
-
filters?: HostingEmailFiltersList200FiltersItem[];
|
|
5750
|
-
};
|
|
5751
5793
|
export declare type HostingEmailFiltersListParams = {
|
|
5752
5794
|
/**
|
|
5753
5795
|
* The email account address to query filters by
|
|
@@ -6983,6 +7025,9 @@ export declare const HostingAdvancedConsoleProtocol: {
|
|
|
6983
7025
|
export declare type HostingAdvancedConsoleParams = {
|
|
6984
7026
|
protocol?: HostingAdvancedConsoleProtocol;
|
|
6985
7027
|
};
|
|
7028
|
+
export declare type HostingAddons200 = {
|
|
7029
|
+
rows?: HostingAddons200RowsItem[];
|
|
7030
|
+
};
|
|
6986
7031
|
export declare type HostingAddons200RowsItemMeta = {
|
|
6987
7032
|
[key: string]: string | number | boolean;
|
|
6988
7033
|
};
|
|
@@ -6998,9 +7043,6 @@ export declare type HostingAddons200RowsItem = {
|
|
|
6998
7043
|
subtype?: string;
|
|
6999
7044
|
type?: string;
|
|
7000
7045
|
};
|
|
7001
|
-
export declare type HostingAddons200 = {
|
|
7002
|
-
rows?: HostingAddons200RowsItem[];
|
|
7003
|
-
};
|
|
7004
7046
|
export declare type HostingAddonsParams = {
|
|
7005
7047
|
status?: string;
|
|
7006
7048
|
subtype?: string;
|
|
@@ -7137,6 +7179,10 @@ export declare type HostingAccount200AccountLimits = {
|
|
|
7137
7179
|
*/
|
|
7138
7180
|
sites?: number | null;
|
|
7139
7181
|
};
|
|
7182
|
+
export declare type EntriJwt200 = {
|
|
7183
|
+
/** Entri authentication token for client-side domain setup. */
|
|
7184
|
+
token: string;
|
|
7185
|
+
};
|
|
7140
7186
|
export declare type DomainZoneeditorUrl200 = {
|
|
7141
7187
|
url: string;
|
|
7142
7188
|
};
|
|
@@ -7913,7 +7959,7 @@ export declare type AddonsLlmKeysDelete200 = {
|
|
|
7913
7959
|
[key: string]: unknown;
|
|
7914
7960
|
};
|
|
7915
7961
|
export declare type AddonsLlmKeysDeleteBody = {
|
|
7916
|
-
/** the name of the key to be deleted */
|
|
7962
|
+
/** the name of the key to be deleted - must be at least 1 character */
|
|
7917
7963
|
key_name: string;
|
|
7918
7964
|
};
|
|
7919
7965
|
export declare type AddonsLlmKeysCreate200 = {
|
|
@@ -7923,7 +7969,7 @@ export declare type AddonsLlmKeysCreate200 = {
|
|
|
7923
7969
|
virtual_key?: string;
|
|
7924
7970
|
};
|
|
7925
7971
|
export declare type AddonsLlmKeysCreateBody = {
|
|
7926
|
-
/** the name of the key to be added */
|
|
7972
|
+
/** the name of the key to be added - must be at least 1 character */
|
|
7927
7973
|
key_name: string;
|
|
7928
7974
|
};
|
|
7929
7975
|
export declare type AddonsLlmKeys200 = {
|
package/src/index.schemas.js
CHANGED
|
@@ -44,6 +44,11 @@ export const SitesSecuritySitelockV2Source = {
|
|
|
44
44
|
halfg: 'halfg',
|
|
45
45
|
};
|
|
46
46
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
47
|
+
export const SshKeyV2BodyRemote = {
|
|
48
|
+
NUMBER_0: 0,
|
|
49
|
+
NUMBER_1: 1,
|
|
50
|
+
};
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
47
52
|
export const HostingSiteAddV2BodyDatacenter = {
|
|
48
53
|
'Amsterdam,_Netherlands': 'Amsterdam, Netherlands',
|
|
49
54
|
'Ashburn,_Virginia': 'Ashburn, Virginia',
|