@newfold/huapi-js 2.1084.0 → 2.1092.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 -5
- package/src/index.js +58 -6
- package/src/index.msw.d.ts +5 -1
- package/src/index.msw.js +26 -2
- package/src/index.schemas.d.ts +38 -18
- package/src/index.schemas.js +0 -5
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 { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupStatus200, BackupStatusParams, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, 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, SshKeyList200, SshKeyListV2200, Sso200, SsoParams, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccountEventList200, AccountEventListParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonCloudflare200, AddonCloudflareBody, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupStatus200, BackupStatusParams, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbList200, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFiles200, ListFilesParams, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, 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, Sso200, SsoParams, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -3035,7 +3035,7 @@ export declare function useHostingSshInfo<TData = Awaited<ReturnType<typeof host
|
|
|
3035
3035
|
queryKey: QueryKey;
|
|
3036
3036
|
};
|
|
3037
3037
|
/**
|
|
3038
|
-
* Fetches an SSH public
|
|
3038
|
+
* Fetches an SSH public key.
|
|
3039
3039
|
* @summary ssh key fetch
|
|
3040
3040
|
*/
|
|
3041
3041
|
export declare const sshKeyFetch: (hostingId: string, params: SshKeyFetchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyFetch200>>;
|
|
@@ -5414,7 +5414,8 @@ export declare function useHostingSitesV2<TData = Awaited<ReturnType<typeof host
|
|
|
5414
5414
|
};
|
|
5415
5415
|
/**
|
|
5416
5416
|
* Import public/private ssh key
|
|
5417
|
-
* @
|
|
5417
|
+
* @deprecated
|
|
5418
|
+
* @summary Deprecated -Import ssh key
|
|
5418
5419
|
*/
|
|
5419
5420
|
export declare const sshKeyImportV2: (hostingId: string, sshKeyImportV2Body: SshKeyImportV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImportV2200>>;
|
|
5420
5421
|
export declare const getSshKeyImportV2MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
@@ -5431,7 +5432,8 @@ export declare type SshKeyImportV2MutationResult = NonNullable<Awaited<ReturnTyp
|
|
|
5431
5432
|
export declare type SshKeyImportV2MutationBody = SshKeyImportV2Body;
|
|
5432
5433
|
export declare type SshKeyImportV2MutationError = AxiosError<unknown>;
|
|
5433
5434
|
/**
|
|
5434
|
-
* @
|
|
5435
|
+
* @deprecated
|
|
5436
|
+
* @summary Deprecated -Import ssh key
|
|
5435
5437
|
*/
|
|
5436
5438
|
export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
5437
5439
|
mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV2200, any>, TError, {
|
|
@@ -5445,7 +5447,8 @@ export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TCon
|
|
|
5445
5447
|
}, TContext>;
|
|
5446
5448
|
/**
|
|
5447
5449
|
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
5448
|
-
* @
|
|
5450
|
+
* @deprecated
|
|
5451
|
+
* @summary Deprecated - ssh keys list
|
|
5449
5452
|
*/
|
|
5450
5453
|
export declare const sshKeyListV2: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV2200>>;
|
|
5451
5454
|
export declare const getSshKeyListV2QueryKey: (hostingId: string) => readonly [`/v2/hosting/${string}/ssh/keys`];
|
|
@@ -5636,6 +5639,69 @@ export declare function useSitesSshUserListV2<TData = Awaited<ReturnType<typeof
|
|
|
5636
5639
|
}): UseQueryResult<TData, TError> & {
|
|
5637
5640
|
queryKey: QueryKey;
|
|
5638
5641
|
};
|
|
5642
|
+
/**
|
|
5643
|
+
* Import public ssh key
|
|
5644
|
+
* @summary Import ssh key
|
|
5645
|
+
*/
|
|
5646
|
+
export declare const sshKeyImportV3: (hostingId: string, sshKeyImportV3Body: SshKeyImportV3Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImportV3200>>;
|
|
5647
|
+
export declare const getSshKeyImportV3MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
5648
|
+
mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
|
|
5649
|
+
hostingId: string;
|
|
5650
|
+
data: SshKeyImportV3Body;
|
|
5651
|
+
}, TContext> | undefined;
|
|
5652
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
5653
|
+
} | undefined) => UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
|
|
5654
|
+
hostingId: string;
|
|
5655
|
+
data: SshKeyImportV3Body;
|
|
5656
|
+
}, TContext>;
|
|
5657
|
+
export declare type SshKeyImportV3MutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyImportV3>>>;
|
|
5658
|
+
export declare type SshKeyImportV3MutationBody = SshKeyImportV3Body;
|
|
5659
|
+
export declare type SshKeyImportV3MutationError = AxiosError<unknown>;
|
|
5660
|
+
/**
|
|
5661
|
+
* @summary Import ssh key
|
|
5662
|
+
*/
|
|
5663
|
+
export declare const useSshKeyImportV3: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
5664
|
+
mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
|
|
5665
|
+
hostingId: string;
|
|
5666
|
+
data: SshKeyImportV3Body;
|
|
5667
|
+
}, TContext> | undefined;
|
|
5668
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
5669
|
+
} | undefined) => UseMutationResult<AxiosResponse<SshKeyImportV3200, any>, TError, {
|
|
5670
|
+
hostingId: string;
|
|
5671
|
+
data: SshKeyImportV3Body;
|
|
5672
|
+
}, TContext>;
|
|
5673
|
+
/**
|
|
5674
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
|
|
5675
|
+
* @summary ssh keys list
|
|
5676
|
+
*/
|
|
5677
|
+
export declare const sshKeyListV3: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV3200>>;
|
|
5678
|
+
export declare const getSshKeyListV3QueryKey: (hostingId: string) => readonly [`/v3/hosting/${string}/ssh/keys`];
|
|
5679
|
+
export declare const getSshKeyListV3QueryOptions: <TData = AxiosResponse<SshKeyListV3200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
5680
|
+
query?: Partial<UseQueryOptions<AxiosResponse<SshKeyListV3200, any>, TError, TData, QueryKey>> | undefined;
|
|
5681
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
5682
|
+
} | undefined) => UseQueryOptions<AxiosResponse<SshKeyListV3200, any>, TError, TData, QueryKey> & {
|
|
5683
|
+
queryKey: QueryKey;
|
|
5684
|
+
};
|
|
5685
|
+
export declare type SshKeyListV3QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV3>>>;
|
|
5686
|
+
export declare type SshKeyListV3QueryError = AxiosError<unknown>;
|
|
5687
|
+
export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options: {
|
|
5688
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>, 'initialData'>;
|
|
5689
|
+
axios?: AxiosRequestConfig;
|
|
5690
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
5691
|
+
queryKey: QueryKey;
|
|
5692
|
+
};
|
|
5693
|
+
export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
5694
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>, 'initialData'>;
|
|
5695
|
+
axios?: AxiosRequestConfig;
|
|
5696
|
+
}): UseQueryResult<TData, TError> & {
|
|
5697
|
+
queryKey: QueryKey;
|
|
5698
|
+
};
|
|
5699
|
+
export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
5700
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>>;
|
|
5701
|
+
axios?: AxiosRequestConfig;
|
|
5702
|
+
}): UseQueryResult<TData, TError> & {
|
|
5703
|
+
queryKey: QueryKey;
|
|
5704
|
+
};
|
|
5639
5705
|
/**
|
|
5640
5706
|
* Returns a list of sites. (Compatible platforms: jarvis, hal)
|
|
5641
5707
|
* @summary Site list for an account v3
|
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.1092.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -2347,7 +2347,7 @@ export function useHostingSshInfo(hostingId, options) {
|
|
|
2347
2347
|
return query;
|
|
2348
2348
|
}
|
|
2349
2349
|
/**
|
|
2350
|
-
* Fetches an SSH public
|
|
2350
|
+
* Fetches an SSH public key.
|
|
2351
2351
|
* @summary ssh key fetch
|
|
2352
2352
|
*/
|
|
2353
2353
|
export const sshKeyFetch = (hostingId, params, options) => {
|
|
@@ -4209,7 +4209,8 @@ export function useHostingSitesV2(hostingId, params, options) {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
/**
|
|
4211
4211
|
* Import public/private ssh key
|
|
4212
|
-
* @
|
|
4212
|
+
* @deprecated
|
|
4213
|
+
* @summary Deprecated -Import ssh key
|
|
4213
4214
|
*/
|
|
4214
4215
|
export const sshKeyImportV2 = (hostingId, sshKeyImportV2Body, options) => {
|
|
4215
4216
|
return axios.post(`/v2/hosting/${hostingId}/ssh/import`, sshKeyImportV2Body, options);
|
|
@@ -4223,7 +4224,8 @@ export const getSshKeyImportV2MutationOptions = (options) => {
|
|
|
4223
4224
|
return Object.assign({ mutationFn }, mutationOptions);
|
|
4224
4225
|
};
|
|
4225
4226
|
/**
|
|
4226
|
-
* @
|
|
4227
|
+
* @deprecated
|
|
4228
|
+
* @summary Deprecated -Import ssh key
|
|
4227
4229
|
*/
|
|
4228
4230
|
export const useSshKeyImportV2 = (options) => {
|
|
4229
4231
|
const mutationOptions = getSshKeyImportV2MutationOptions(options);
|
|
@@ -4231,7 +4233,8 @@ export const useSshKeyImportV2 = (options) => {
|
|
|
4231
4233
|
};
|
|
4232
4234
|
/**
|
|
4233
4235
|
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
4234
|
-
* @
|
|
4236
|
+
* @deprecated
|
|
4237
|
+
* @summary Deprecated - ssh keys list
|
|
4235
4238
|
*/
|
|
4236
4239
|
export const sshKeyListV2 = (hostingId, options) => {
|
|
4237
4240
|
return axios.get(`/v2/hosting/${hostingId}/ssh/keys`, options);
|
|
@@ -4247,7 +4250,8 @@ export const getSshKeyListV2QueryOptions = (hostingId, options) => {
|
|
|
4247
4250
|
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
4248
4251
|
};
|
|
4249
4252
|
/**
|
|
4250
|
-
* @
|
|
4253
|
+
* @deprecated
|
|
4254
|
+
* @summary Deprecated - ssh keys list
|
|
4251
4255
|
*/
|
|
4252
4256
|
export function useSshKeyListV2(hostingId, options) {
|
|
4253
4257
|
const queryOptions = getSshKeyListV2QueryOptions(hostingId, options);
|
|
@@ -4387,6 +4391,54 @@ export function useSitesSshUserListV2(siteId, options) {
|
|
|
4387
4391
|
query.queryKey = queryOptions.queryKey;
|
|
4388
4392
|
return query;
|
|
4389
4393
|
}
|
|
4394
|
+
/**
|
|
4395
|
+
* Import public ssh key
|
|
4396
|
+
* @summary Import ssh key
|
|
4397
|
+
*/
|
|
4398
|
+
export const sshKeyImportV3 = (hostingId, sshKeyImportV3Body, options) => {
|
|
4399
|
+
return axios.post(`/v3/hosting/${hostingId}/ssh/import`, sshKeyImportV3Body, options);
|
|
4400
|
+
};
|
|
4401
|
+
export const getSshKeyImportV3MutationOptions = (options) => {
|
|
4402
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
4403
|
+
const mutationFn = (props) => {
|
|
4404
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
4405
|
+
return sshKeyImportV3(hostingId, data, axiosOptions);
|
|
4406
|
+
};
|
|
4407
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
4408
|
+
};
|
|
4409
|
+
/**
|
|
4410
|
+
* @summary Import ssh key
|
|
4411
|
+
*/
|
|
4412
|
+
export const useSshKeyImportV3 = (options) => {
|
|
4413
|
+
const mutationOptions = getSshKeyImportV3MutationOptions(options);
|
|
4414
|
+
return useMutation(mutationOptions);
|
|
4415
|
+
};
|
|
4416
|
+
/**
|
|
4417
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
|
|
4418
|
+
* @summary ssh keys list
|
|
4419
|
+
*/
|
|
4420
|
+
export const sshKeyListV3 = (hostingId, options) => {
|
|
4421
|
+
return axios.get(`/v3/hosting/${hostingId}/ssh/keys`, options);
|
|
4422
|
+
};
|
|
4423
|
+
export const getSshKeyListV3QueryKey = (hostingId) => {
|
|
4424
|
+
return [`/v3/hosting/${hostingId}/ssh/keys`];
|
|
4425
|
+
};
|
|
4426
|
+
export const getSshKeyListV3QueryOptions = (hostingId, options) => {
|
|
4427
|
+
var _a;
|
|
4428
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
4429
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV3QueryKey(hostingId);
|
|
4430
|
+
const queryFn = ({ signal }) => sshKeyListV3(hostingId, Object.assign({ signal }, axiosOptions));
|
|
4431
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
4432
|
+
};
|
|
4433
|
+
/**
|
|
4434
|
+
* @summary ssh keys list
|
|
4435
|
+
*/
|
|
4436
|
+
export function useSshKeyListV3(hostingId, options) {
|
|
4437
|
+
const queryOptions = getSshKeyListV3QueryOptions(hostingId, options);
|
|
4438
|
+
const query = useQuery(queryOptions);
|
|
4439
|
+
query.queryKey = queryOptions.queryKey;
|
|
4440
|
+
return query;
|
|
4441
|
+
}
|
|
4390
4442
|
/**
|
|
4391
4443
|
* Returns a list of sites. (Compatible platforms: jarvis, hal)
|
|
4392
4444
|
* @summary Site list for an account v3
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupInitiate200, BackupList200, BackupStatus200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDomainsUnassign200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSitesV2200, HostingSshInfo200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyList200, SshKeyListV2200, Sso200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccountEventList200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddSiteIpaddress200, AddonCloudflare200, AddonsCloudflare200, AddonsInfo200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupInitiate200, BackupList200, BackupStatus200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, Db200, DbAdd200, DbCheckDatabase200, DbList200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, HostingAccount200, HostingAddons200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDomainsUnassign200, HostingEcommerceInfo200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsCheck200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingResellerSsoWhm200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSitesV2200, HostingSshInfo200, Index200, JetpackBackupStatus200, ListCrons200, ListFiles200, ResetSite200, Site200, SiteAddonCloudflare200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteStatus200, SiteUpdate200, SiteUsers200, SitesAccessLogs200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesList200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, Sso200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
5
5
|
export declare const getAccountPublicKeysResponseMock: (overrideResponse?: Partial<AccountPublicKeys200>) => AccountPublicKeys200;
|
|
@@ -177,6 +177,8 @@ export declare const getSitesInfoV2ResponseMock: (overrideResponse?: Partial<Sit
|
|
|
177
177
|
export declare const getSitesDomainsV2ResponseMock: (overrideResponse?: Partial<SitesDomainsV2200>) => SitesDomainsV2200;
|
|
178
178
|
export declare const getSitesSecuritySitelockV2ResponseMock: (overrideResponse?: Partial<SitesSecuritySitelockV2200>) => SitesSecuritySitelockV2200;
|
|
179
179
|
export declare const getSitesSshUserListV2ResponseMock: (overrideResponse?: Partial<SitesSshUserListV2200>) => SitesSshUserListV2200;
|
|
180
|
+
export declare const getSshKeyImportV3ResponseMock: (overrideResponse?: Partial<SshKeyImportV3200>) => SshKeyImportV3200;
|
|
181
|
+
export declare const getSshKeyListV3ResponseMock: (overrideResponse?: Partial<SshKeyListV3200>) => SshKeyListV3200;
|
|
180
182
|
export declare const getSitesListV3ResponseMock: (overrideResponse?: Partial<SitesListV3200>) => SitesListV3200;
|
|
181
183
|
export declare const getAccountEventListMockHandler: (overrideResponse?: AccountEventList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AccountEventList200> | AccountEventList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
182
184
|
export declare const getAccountHostingListMockHandler: (overrideResponse?: AccountHostingList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<AccountHostingList200> | AccountHostingList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
@@ -357,5 +359,7 @@ export declare const getSitesInfoV2MockHandler: (overrideResponse?: SiteInfoResp
|
|
|
357
359
|
export declare const getSitesDomainsV2MockHandler: (overrideResponse?: SitesDomainsV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesDomainsV2200> | SitesDomainsV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
358
360
|
export declare const getSitesSecuritySitelockV2MockHandler: (overrideResponse?: SitesSecuritySitelockV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSecuritySitelockV2200> | SitesSecuritySitelockV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
359
361
|
export declare const getSitesSshUserListV2MockHandler: (overrideResponse?: SitesSshUserListV2200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesSshUserListV2200> | SitesSshUserListV2200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
362
|
+
export declare const getSshKeyImportV3MockHandler: (overrideResponse?: SshKeyImportV3200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyImportV3200> | SshKeyImportV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
363
|
+
export declare const getSshKeyListV3MockHandler: (overrideResponse?: SshKeyListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyListV3200> | SshKeyListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
360
364
|
export declare const getSitesListV3MockHandler: (overrideResponse?: SitesListV3200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SitesListV3200> | SitesListV3200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
361
365
|
export declare const getHostingUAPIMock: () => 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.1092.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -106,7 +106,7 @@ export const getHostingShellToggleResponseMock = (overrideResponse = {}) => (Obj
|
|
|
106
106
|
export const getHostingShellInfoResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
107
107
|
export const getHostingSiteAddResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.datatype.boolean() }, overrideResponse));
|
|
108
108
|
export const getSitesBatchResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
109
|
-
export const getHostingSshInfoResponseMock = (overrideResponse = {}) => (Object.assign({ credential: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
109
|
+
export const getHostingSshInfoResponseMock = (overrideResponse = {}) => (Object.assign({ credential: faker.helpers.arrayElement([faker.word.sample(), undefined]), ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
110
110
|
export const getSshKeyFetchResponseMock = (overrideResponse = {}) => (Object.assign({ key: faker.helpers.arrayElement([faker.word.sample(), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
111
111
|
export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
112
112
|
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));
|
|
@@ -207,6 +207,8 @@ export const getSitesInfoV2ResponseMock = (overrideResponse = {}) => (Object.ass
|
|
|
207
207
|
export const getSitesDomainsV2ResponseMock = (overrideResponse = {}) => (Object.assign({ domains: 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]), authoritative: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), autogen_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), back_reference: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), billing_account_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), billing_status: 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]), date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), dns_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), hosting_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameservers: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), product_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), setup_progress: faker.helpers.arrayElement([{ validate_cdn: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_cdn_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_dns: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_auto_repair: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_dns_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), validate_ssl: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), validate_ssl_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), third_party_dns: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), 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]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
208
208
|
export const getSitesSecuritySitelockV2ResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), billing_code: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domains: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), has_cdn: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_migrated: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), message: faker.helpers.arrayElement([faker.word.sample(), undefined]), plan: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), scope: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), source: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), upgrade_levels: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, overrideResponse));
|
|
209
209
|
export const getSitesSshUserListV2ResponseMock = (overrideResponse = {}) => (Object.assign({ users: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ installed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), is_active: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), public_key_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
210
|
+
export const getSshKeyImportV3ResponseMock = (overrideResponse = {}) => (Object.assign({ public_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
211
|
+
export const getSshKeyListV3ResponseMock = (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]), mtime: 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));
|
|
210
212
|
export const getSitesListV3ResponseMock = (overrideResponse = {}) => (Object.assign({ 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]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), 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]), 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]), id: faker.helpers.arrayElement([faker.word.sample(), 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]), 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]), 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]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: 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]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
211
213
|
export const getAccountEventListMockHandler = (overrideResponse) => {
|
|
212
214
|
return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1998,6 +2000,26 @@ export const getSitesSshUserListV2MockHandler = (overrideResponse) => {
|
|
|
1998
2000
|
});
|
|
1999
2001
|
}));
|
|
2000
2002
|
};
|
|
2003
|
+
export const getSshKeyImportV3MockHandler = (overrideResponse) => {
|
|
2004
|
+
return http.post('*/v3/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2005
|
+
yield delay(1000);
|
|
2006
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2007
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2008
|
+
: getSshKeyImportV3ResponseMock()), { status: 200,
|
|
2009
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2010
|
+
});
|
|
2011
|
+
}));
|
|
2012
|
+
};
|
|
2013
|
+
export const getSshKeyListV3MockHandler = (overrideResponse) => {
|
|
2014
|
+
return http.get('*/v3/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2015
|
+
yield delay(1000);
|
|
2016
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2017
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2018
|
+
: getSshKeyListV3ResponseMock()), { status: 200,
|
|
2019
|
+
headers: { 'Content-Type': 'application/json' }
|
|
2020
|
+
});
|
|
2021
|
+
}));
|
|
2022
|
+
};
|
|
2001
2023
|
export const getSitesListV3MockHandler = (overrideResponse) => {
|
|
2002
2024
|
return http.get('*/v3/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2003
2025
|
yield delay(1000);
|
|
@@ -2188,5 +2210,7 @@ export const getHostingUAPIMock = () => [
|
|
|
2188
2210
|
getSitesDomainsV2MockHandler(),
|
|
2189
2211
|
getSitesSecuritySitelockV2MockHandler(),
|
|
2190
2212
|
getSitesSshUserListV2MockHandler(),
|
|
2213
|
+
getSshKeyImportV3MockHandler(),
|
|
2214
|
+
getSshKeyListV3MockHandler(),
|
|
2191
2215
|
getSitesListV3MockHandler()
|
|
2192
2216
|
];
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1092.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SitesListV3200 = {
|
|
9
9
|
items?: SiteInfoResponseModelV2[];
|
|
@@ -21,6 +21,29 @@ export declare type SitesListV3Params = {
|
|
|
21
21
|
page?: number;
|
|
22
22
|
search?: string;
|
|
23
23
|
};
|
|
24
|
+
export declare type SshKeyListV3200RowsItem = {
|
|
25
|
+
authorize?: boolean;
|
|
26
|
+
mtime?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
type?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type SshKeyListV3200 = {
|
|
31
|
+
rows?: SshKeyListV3200RowsItem[];
|
|
32
|
+
};
|
|
33
|
+
export declare type SshKeyImportV3200 = {
|
|
34
|
+
/** @nullable */
|
|
35
|
+
public_key_name?: string | null;
|
|
36
|
+
};
|
|
37
|
+
export declare type SshKeyImportV3Body = {
|
|
38
|
+
/** The SSH key's filename */
|
|
39
|
+
name: string;
|
|
40
|
+
/** A note to log alongside the secure_action_log entry. */
|
|
41
|
+
note?: string;
|
|
42
|
+
/** A Valid SSH public key */
|
|
43
|
+
pubkey?: string;
|
|
44
|
+
/** The entity that initiated the GAP call */
|
|
45
|
+
source?: string;
|
|
46
|
+
};
|
|
24
47
|
export declare type SitesSshUserListV2200 = {
|
|
25
48
|
users?: SSHUsersV2Response[];
|
|
26
49
|
};
|
|
@@ -169,17 +192,6 @@ export declare type SitesDomainsV2200 = {
|
|
|
169
192
|
export declare type SitesDomainsV2Params = {
|
|
170
193
|
scan?: boolean;
|
|
171
194
|
};
|
|
172
|
-
export declare type SitesListV2200 = {
|
|
173
|
-
items?: SitesListV2200ItemsItem[];
|
|
174
|
-
/** page size */
|
|
175
|
-
limit?: number;
|
|
176
|
-
/** current page number */
|
|
177
|
-
page?: number;
|
|
178
|
-
/** total number of pages */
|
|
179
|
-
pages?: number;
|
|
180
|
-
/** total number of sites returned */
|
|
181
|
-
total?: number;
|
|
182
|
-
};
|
|
183
195
|
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
184
196
|
/** @nullable */
|
|
185
197
|
available?: number | null;
|
|
@@ -306,6 +318,17 @@ export declare type SitesListV2200ItemsItem = {
|
|
|
306
318
|
*/
|
|
307
319
|
version_ptr?: string | null;
|
|
308
320
|
};
|
|
321
|
+
export declare type SitesListV2200 = {
|
|
322
|
+
items?: SitesListV2200ItemsItem[];
|
|
323
|
+
/** page size */
|
|
324
|
+
limit?: number;
|
|
325
|
+
/** current page number */
|
|
326
|
+
page?: number;
|
|
327
|
+
/** total number of pages */
|
|
328
|
+
pages?: number;
|
|
329
|
+
/** total number of sites returned */
|
|
330
|
+
total?: number;
|
|
331
|
+
};
|
|
309
332
|
export declare type SshKeyListV2200RowsItem = {
|
|
310
333
|
key?: string;
|
|
311
334
|
mtime?: string;
|
|
@@ -1533,6 +1556,7 @@ export declare type SsoParams = {
|
|
|
1533
1556
|
app?: SsoApp;
|
|
1534
1557
|
dir?: string;
|
|
1535
1558
|
domain?: string;
|
|
1559
|
+
db_name?: string;
|
|
1536
1560
|
};
|
|
1537
1561
|
export declare type SshKeyGenerate200 = {
|
|
1538
1562
|
key_name?: string;
|
|
@@ -1618,19 +1642,15 @@ export declare type SshKeyFetch200 = {
|
|
|
1618
1642
|
key_name?: string;
|
|
1619
1643
|
type?: string;
|
|
1620
1644
|
};
|
|
1621
|
-
export declare type SshKeyFetchPrivate = typeof SshKeyFetchPrivate[keyof typeof SshKeyFetchPrivate];
|
|
1622
|
-
export declare const SshKeyFetchPrivate: {
|
|
1623
|
-
readonly NUMBER_0: "0";
|
|
1624
|
-
readonly NUMBER_1: "1";
|
|
1625
|
-
};
|
|
1626
1645
|
export declare type SshKeyFetchParams = {
|
|
1627
1646
|
name: string;
|
|
1628
|
-
private?: SshKeyFetchPrivate;
|
|
1629
1647
|
};
|
|
1630
1648
|
export declare type HostingSshInfo200 = {
|
|
1631
1649
|
credential?: string;
|
|
1650
|
+
ip?: string;
|
|
1632
1651
|
status?: string;
|
|
1633
1652
|
success?: boolean;
|
|
1653
|
+
username?: string;
|
|
1634
1654
|
};
|
|
1635
1655
|
export declare type SitesBatch200 = {
|
|
1636
1656
|
success?: boolean;
|
package/src/index.schemas.js
CHANGED
|
@@ -97,11 +97,6 @@ export const SshKeyGenerateBodyBits = {
|
|
|
97
97
|
NUMBER_4096: 4096,
|
|
98
98
|
};
|
|
99
99
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
100
|
-
export const SshKeyFetchPrivate = {
|
|
101
|
-
NUMBER_0: '0',
|
|
102
|
-
NUMBER_1: '1',
|
|
103
|
-
};
|
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
105
100
|
export const HostingSiteAddBodyDatacenter = {
|
|
106
101
|
'Amsterdam,_Netherlands': 'Amsterdam, Netherlands',
|
|
107
102
|
'Ashburn,_Virginia': 'Ashburn, Virginia',
|