@newfold/huapi-js 2.1084.0 → 2.1095.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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1084.0",
13
+ "version": "2.1095.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
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, ListIndex200, ListIndexParams, 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
  /**
@@ -2309,6 +2309,38 @@ export declare const useHostingFtp: <TError = AxiosError<unknown, any>, TContext
2309
2309
  hostingId: number;
2310
2310
  data: HostingFtpBody;
2311
2311
  }, TContext>;
2312
+ /**
2313
+ * List indexed files/folders
2314
+ * @summary List indexed files/folders
2315
+ */
2316
+ export declare const listIndex: (hostingId: string, params?: ListIndexParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ListIndex200>>;
2317
+ export declare const getListIndexQueryKey: (hostingId: string, params?: ListIndexParams) => readonly [`/v1/hosting/${string}/index`, ...ListIndexParams[]];
2318
+ export declare const getListIndexQueryOptions: <TData = AxiosResponse<ListIndex200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: ListIndexParams, options?: {
2319
+ query?: Partial<UseQueryOptions<AxiosResponse<ListIndex200, any>, TError, TData, QueryKey>> | undefined;
2320
+ axios?: AxiosRequestConfig<any> | undefined;
2321
+ } | undefined) => UseQueryOptions<AxiosResponse<ListIndex200, any>, TError, TData, QueryKey> & {
2322
+ queryKey: QueryKey;
2323
+ };
2324
+ export declare type ListIndexQueryResult = NonNullable<Awaited<ReturnType<typeof listIndex>>>;
2325
+ export declare type ListIndexQueryError = AxiosError<unknown>;
2326
+ export declare function useListIndex<TData = Awaited<ReturnType<typeof listIndex>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | ListIndexParams, options: {
2327
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listIndex>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listIndex>>, TError, TData>, 'initialData'>;
2328
+ axios?: AxiosRequestConfig;
2329
+ }): DefinedUseQueryResult<TData, TError> & {
2330
+ queryKey: QueryKey;
2331
+ };
2332
+ export declare function useListIndex<TData = Awaited<ReturnType<typeof listIndex>>, TError = AxiosError<unknown>>(hostingId: string, params?: ListIndexParams, options?: {
2333
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listIndex>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listIndex>>, TError, TData>, 'initialData'>;
2334
+ axios?: AxiosRequestConfig;
2335
+ }): UseQueryResult<TData, TError> & {
2336
+ queryKey: QueryKey;
2337
+ };
2338
+ export declare function useListIndex<TData = Awaited<ReturnType<typeof listIndex>>, TError = AxiosError<unknown>>(hostingId: string, params?: ListIndexParams, options?: {
2339
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listIndex>>, TError, TData>>;
2340
+ axios?: AxiosRequestConfig;
2341
+ }): UseQueryResult<TData, TError> & {
2342
+ queryKey: QueryKey;
2343
+ };
2312
2344
  /**
2313
2345
  * Add index to given file/folder
2314
2346
  * @summary Add index to file/folder
@@ -3035,7 +3067,7 @@ export declare function useHostingSshInfo<TData = Awaited<ReturnType<typeof host
3035
3067
  queryKey: QueryKey;
3036
3068
  };
3037
3069
  /**
3038
- * Fetches an SSH public (or optionally private) key.
3070
+ * Fetches an SSH public key.
3039
3071
  * @summary ssh key fetch
3040
3072
  */
3041
3073
  export declare const sshKeyFetch: (hostingId: string, params: SshKeyFetchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyFetch200>>;
@@ -5414,7 +5446,8 @@ export declare function useHostingSitesV2<TData = Awaited<ReturnType<typeof host
5414
5446
  };
5415
5447
  /**
5416
5448
  * Import public/private ssh key
5417
- * @summary Import ssh key
5449
+ * @deprecated
5450
+ * @summary Deprecated -Import ssh key
5418
5451
  */
5419
5452
  export declare const sshKeyImportV2: (hostingId: string, sshKeyImportV2Body: SshKeyImportV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImportV2200>>;
5420
5453
  export declare const getSshKeyImportV2MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
@@ -5431,7 +5464,8 @@ export declare type SshKeyImportV2MutationResult = NonNullable<Awaited<ReturnTyp
5431
5464
  export declare type SshKeyImportV2MutationBody = SshKeyImportV2Body;
5432
5465
  export declare type SshKeyImportV2MutationError = AxiosError<unknown>;
5433
5466
  /**
5434
- * @summary Import ssh key
5467
+ * @deprecated
5468
+ * @summary Deprecated -Import ssh key
5435
5469
  */
5436
5470
  export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
5437
5471
  mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV2200, any>, TError, {
@@ -5445,7 +5479,8 @@ export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TCon
5445
5479
  }, TContext>;
5446
5480
  /**
5447
5481
  * List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
5448
- * @summary ssh keys list
5482
+ * @deprecated
5483
+ * @summary Deprecated - ssh keys list
5449
5484
  */
5450
5485
  export declare const sshKeyListV2: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV2200>>;
5451
5486
  export declare const getSshKeyListV2QueryKey: (hostingId: string) => readonly [`/v2/hosting/${string}/ssh/keys`];
@@ -5636,6 +5671,69 @@ export declare function useSitesSshUserListV2<TData = Awaited<ReturnType<typeof
5636
5671
  }): UseQueryResult<TData, TError> & {
5637
5672
  queryKey: QueryKey;
5638
5673
  };
5674
+ /**
5675
+ * Import public ssh key
5676
+ * @summary Import ssh key
5677
+ */
5678
+ export declare const sshKeyImportV3: (hostingId: string, sshKeyImportV3Body: SshKeyImportV3Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImportV3200>>;
5679
+ export declare const getSshKeyImportV3MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
5680
+ mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
5681
+ hostingId: string;
5682
+ data: SshKeyImportV3Body;
5683
+ }, TContext> | undefined;
5684
+ axios?: AxiosRequestConfig<any> | undefined;
5685
+ } | undefined) => UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
5686
+ hostingId: string;
5687
+ data: SshKeyImportV3Body;
5688
+ }, TContext>;
5689
+ export declare type SshKeyImportV3MutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyImportV3>>>;
5690
+ export declare type SshKeyImportV3MutationBody = SshKeyImportV3Body;
5691
+ export declare type SshKeyImportV3MutationError = AxiosError<unknown>;
5692
+ /**
5693
+ * @summary Import ssh key
5694
+ */
5695
+ export declare const useSshKeyImportV3: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
5696
+ mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV3200, any>, TError, {
5697
+ hostingId: string;
5698
+ data: SshKeyImportV3Body;
5699
+ }, TContext> | undefined;
5700
+ axios?: AxiosRequestConfig<any> | undefined;
5701
+ } | undefined) => UseMutationResult<AxiosResponse<SshKeyImportV3200, any>, TError, {
5702
+ hostingId: string;
5703
+ data: SshKeyImportV3Body;
5704
+ }, TContext>;
5705
+ /**
5706
+ * List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
5707
+ * @summary ssh keys list
5708
+ */
5709
+ export declare const sshKeyListV3: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV3200>>;
5710
+ export declare const getSshKeyListV3QueryKey: (hostingId: string) => readonly [`/v3/hosting/${string}/ssh/keys`];
5711
+ export declare const getSshKeyListV3QueryOptions: <TData = AxiosResponse<SshKeyListV3200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
5712
+ query?: Partial<UseQueryOptions<AxiosResponse<SshKeyListV3200, any>, TError, TData, QueryKey>> | undefined;
5713
+ axios?: AxiosRequestConfig<any> | undefined;
5714
+ } | undefined) => UseQueryOptions<AxiosResponse<SshKeyListV3200, any>, TError, TData, QueryKey> & {
5715
+ queryKey: QueryKey;
5716
+ };
5717
+ export declare type SshKeyListV3QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV3>>>;
5718
+ export declare type SshKeyListV3QueryError = AxiosError<unknown>;
5719
+ export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options: {
5720
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>, 'initialData'>;
5721
+ axios?: AxiosRequestConfig;
5722
+ }): DefinedUseQueryResult<TData, TError> & {
5723
+ queryKey: QueryKey;
5724
+ };
5725
+ export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
5726
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>, 'initialData'>;
5727
+ axios?: AxiosRequestConfig;
5728
+ }): UseQueryResult<TData, TError> & {
5729
+ queryKey: QueryKey;
5730
+ };
5731
+ export declare function useSshKeyListV3<TData = Awaited<ReturnType<typeof sshKeyListV3>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
5732
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV3>>, TError, TData>>;
5733
+ axios?: AxiosRequestConfig;
5734
+ }): UseQueryResult<TData, TError> & {
5735
+ queryKey: QueryKey;
5736
+ };
5639
5737
  /**
5640
5738
  * Returns a list of sites. (Compatible platforms: jarvis, hal)
5641
5739
  * @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.1084.0
6
+ * OpenAPI spec version: 1.1095.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -1789,6 +1789,32 @@ export const useHostingFtp = (options) => {
1789
1789
  const mutationOptions = getHostingFtpMutationOptions(options);
1790
1790
  return useMutation(mutationOptions);
1791
1791
  };
1792
+ /**
1793
+ * List indexed files/folders
1794
+ * @summary List indexed files/folders
1795
+ */
1796
+ export const listIndex = (hostingId, params, options) => {
1797
+ return axios.get(`/v1/hosting/${hostingId}/index`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
1798
+ };
1799
+ export const getListIndexQueryKey = (hostingId, params) => {
1800
+ return [`/v1/hosting/${hostingId}/index`, ...(params ? [params] : [])];
1801
+ };
1802
+ export const getListIndexQueryOptions = (hostingId, params, options) => {
1803
+ var _a;
1804
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1805
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getListIndexQueryKey(hostingId, params);
1806
+ const queryFn = ({ signal }) => listIndex(hostingId, params, Object.assign({ signal }, axiosOptions));
1807
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
1808
+ };
1809
+ /**
1810
+ * @summary List indexed files/folders
1811
+ */
1812
+ export function useListIndex(hostingId, params, options) {
1813
+ const queryOptions = getListIndexQueryOptions(hostingId, params, options);
1814
+ const query = useQuery(queryOptions);
1815
+ query.queryKey = queryOptions.queryKey;
1816
+ return query;
1817
+ }
1792
1818
  /**
1793
1819
  * Add index to given file/folder
1794
1820
  * @summary Add index to file/folder
@@ -2347,7 +2373,7 @@ export function useHostingSshInfo(hostingId, options) {
2347
2373
  return query;
2348
2374
  }
2349
2375
  /**
2350
- * Fetches an SSH public (or optionally private) key.
2376
+ * Fetches an SSH public key.
2351
2377
  * @summary ssh key fetch
2352
2378
  */
2353
2379
  export const sshKeyFetch = (hostingId, params, options) => {
@@ -4209,7 +4235,8 @@ export function useHostingSitesV2(hostingId, params, options) {
4209
4235
  }
4210
4236
  /**
4211
4237
  * Import public/private ssh key
4212
- * @summary Import ssh key
4238
+ * @deprecated
4239
+ * @summary Deprecated -Import ssh key
4213
4240
  */
4214
4241
  export const sshKeyImportV2 = (hostingId, sshKeyImportV2Body, options) => {
4215
4242
  return axios.post(`/v2/hosting/${hostingId}/ssh/import`, sshKeyImportV2Body, options);
@@ -4223,7 +4250,8 @@ export const getSshKeyImportV2MutationOptions = (options) => {
4223
4250
  return Object.assign({ mutationFn }, mutationOptions);
4224
4251
  };
4225
4252
  /**
4226
- * @summary Import ssh key
4253
+ * @deprecated
4254
+ * @summary Deprecated -Import ssh key
4227
4255
  */
4228
4256
  export const useSshKeyImportV2 = (options) => {
4229
4257
  const mutationOptions = getSshKeyImportV2MutationOptions(options);
@@ -4231,7 +4259,8 @@ export const useSshKeyImportV2 = (options) => {
4231
4259
  };
4232
4260
  /**
4233
4261
  * List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
4234
- * @summary ssh keys list
4262
+ * @deprecated
4263
+ * @summary Deprecated - ssh keys list
4235
4264
  */
4236
4265
  export const sshKeyListV2 = (hostingId, options) => {
4237
4266
  return axios.get(`/v2/hosting/${hostingId}/ssh/keys`, options);
@@ -4247,7 +4276,8 @@ export const getSshKeyListV2QueryOptions = (hostingId, options) => {
4247
4276
  return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
4248
4277
  };
4249
4278
  /**
4250
- * @summary ssh keys list
4279
+ * @deprecated
4280
+ * @summary Deprecated - ssh keys list
4251
4281
  */
4252
4282
  export function useSshKeyListV2(hostingId, options) {
4253
4283
  const queryOptions = getSshKeyListV2QueryOptions(hostingId, options);
@@ -4387,6 +4417,54 @@ export function useSitesSshUserListV2(siteId, options) {
4387
4417
  query.queryKey = queryOptions.queryKey;
4388
4418
  return query;
4389
4419
  }
4420
+ /**
4421
+ * Import public ssh key
4422
+ * @summary Import ssh key
4423
+ */
4424
+ export const sshKeyImportV3 = (hostingId, sshKeyImportV3Body, options) => {
4425
+ return axios.post(`/v3/hosting/${hostingId}/ssh/import`, sshKeyImportV3Body, options);
4426
+ };
4427
+ export const getSshKeyImportV3MutationOptions = (options) => {
4428
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
4429
+ const mutationFn = (props) => {
4430
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
4431
+ return sshKeyImportV3(hostingId, data, axiosOptions);
4432
+ };
4433
+ return Object.assign({ mutationFn }, mutationOptions);
4434
+ };
4435
+ /**
4436
+ * @summary Import ssh key
4437
+ */
4438
+ export const useSshKeyImportV3 = (options) => {
4439
+ const mutationOptions = getSshKeyImportV3MutationOptions(options);
4440
+ return useMutation(mutationOptions);
4441
+ };
4442
+ /**
4443
+ * List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
4444
+ * @summary ssh keys list
4445
+ */
4446
+ export const sshKeyListV3 = (hostingId, options) => {
4447
+ return axios.get(`/v3/hosting/${hostingId}/ssh/keys`, options);
4448
+ };
4449
+ export const getSshKeyListV3QueryKey = (hostingId) => {
4450
+ return [`/v3/hosting/${hostingId}/ssh/keys`];
4451
+ };
4452
+ export const getSshKeyListV3QueryOptions = (hostingId, options) => {
4453
+ var _a;
4454
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
4455
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV3QueryKey(hostingId);
4456
+ const queryFn = ({ signal }) => sshKeyListV3(hostingId, Object.assign({ signal }, axiosOptions));
4457
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
4458
+ };
4459
+ /**
4460
+ * @summary ssh keys list
4461
+ */
4462
+ export function useSshKeyListV3(hostingId, options) {
4463
+ const queryOptions = getSshKeyListV3QueryOptions(hostingId, options);
4464
+ const query = useQuery(queryOptions);
4465
+ query.queryKey = queryOptions.queryKey;
4466
+ return query;
4467
+ }
4390
4468
  /**
4391
4469
  * Returns a list of sites. (Compatible platforms: jarvis, hal)
4392
4470
  * @summary Site list for an account v3
@@ -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, ListIndex200, 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;
@@ -74,6 +74,7 @@ export declare const getHostingFtpListResponseMock: (overrideResponse?: Partial<
74
74
  export declare const getHostingFtpAddResponseMock: (overrideResponse?: Partial<HostingFtpAdd200>) => HostingFtpAdd200;
75
75
  export declare const getHostingFtpUpdateResponseMock: (overrideResponse?: Partial<HostingFtpUpdate200>) => HostingFtpUpdate200;
76
76
  export declare const getHostingFtpResponseMock: (overrideResponse?: Partial<HostingFtp200>) => HostingFtp200;
77
+ export declare const getListIndexResponseMock: (overrideResponse?: Partial<ListIndex200>) => ListIndex200;
77
78
  export declare const getAddIndexResponseMock: (overrideResponse?: Partial<AddIndex200>) => AddIndex200;
78
79
  export declare const getIndexResponseMock: (overrideResponse?: Partial<Index200>) => Index200;
79
80
  export declare const getHostingInfoResponseMock: (overrideResponse?: Partial<HostingInfo200>) => HostingInfo200;
@@ -177,6 +178,8 @@ export declare const getSitesInfoV2ResponseMock: (overrideResponse?: Partial<Sit
177
178
  export declare const getSitesDomainsV2ResponseMock: (overrideResponse?: Partial<SitesDomainsV2200>) => SitesDomainsV2200;
178
179
  export declare const getSitesSecuritySitelockV2ResponseMock: (overrideResponse?: Partial<SitesSecuritySitelockV2200>) => SitesSecuritySitelockV2200;
179
180
  export declare const getSitesSshUserListV2ResponseMock: (overrideResponse?: Partial<SitesSshUserListV2200>) => SitesSshUserListV2200;
181
+ export declare const getSshKeyImportV3ResponseMock: (overrideResponse?: Partial<SshKeyImportV3200>) => SshKeyImportV3200;
182
+ export declare const getSshKeyListV3ResponseMock: (overrideResponse?: Partial<SshKeyListV3200>) => SshKeyListV3200;
180
183
  export declare const getSitesListV3ResponseMock: (overrideResponse?: Partial<SitesListV3200>) => SitesListV3200;
181
184
  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
185
  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;
@@ -252,6 +255,7 @@ export declare const getHostingFtpListMockHandler: (overrideResponse?: HostingFt
252
255
  export declare const getHostingFtpAddMockHandler: (overrideResponse?: HostingFtpAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingFtpAdd200> | HostingFtpAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
253
256
  export declare const getHostingFtpUpdateMockHandler: (overrideResponse?: HostingFtpUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingFtpUpdate200> | HostingFtpUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
254
257
  export declare const getHostingFtpMockHandler: (overrideResponse?: HostingFtp200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingFtp200> | HostingFtp200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
258
+ export declare const getListIndexMockHandler: (overrideResponse?: ListIndex200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListIndex200> | ListIndex200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
255
259
  export declare const getAddIndexMockHandler: (overrideResponse?: AddIndex200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddIndex200> | AddIndex200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
256
260
  export declare const getIndexMockHandler: (overrideResponse?: Index200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<Index200> | Index200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
257
261
  export declare const getHostingInfoMockHandler: (overrideResponse?: HostingInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingInfo200> | HostingInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -357,5 +361,7 @@ export declare const getSitesInfoV2MockHandler: (overrideResponse?: SiteInfoResp
357
361
  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
362
  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
363
  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;
364
+ 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;
365
+ 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
366
  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
367
  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.1084.0
7
+ * OpenAPI spec version: 1.1095.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -84,6 +84,7 @@ export const getHostingFtpListResponseMock = (overrideResponse = {}) => (Object.
84
84
  export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({ pass: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
85
85
  export const getHostingFtpUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
86
86
  export const getHostingFtpResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
87
+ export const getListIndexResponseMock = (overrideResponse = {}) => (Object.assign({ indexes: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ index_options: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
87
88
  export const getAddIndexResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
88
89
  export const getIndexResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
89
90
  export const getHostingInfoResponseMock = (overrideResponse = {}) => (Object.assign({ ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
@@ -106,7 +107,7 @@ export const getHostingShellToggleResponseMock = (overrideResponse = {}) => (Obj
106
107
  export const getHostingShellInfoResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
107
108
  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
109
  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));
110
+ 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
111
  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
112
  export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
112
113
  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 +208,8 @@ export const getSitesInfoV2ResponseMock = (overrideResponse = {}) => (Object.ass
207
208
  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
209
  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
210
  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));
211
+ export const getSshKeyImportV3ResponseMock = (overrideResponse = {}) => (Object.assign({ public_key_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
212
+ 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
213
  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
214
  export const getAccountEventListMockHandler = (overrideResponse) => {
212
215
  return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
@@ -948,6 +951,16 @@ export const getHostingFtpMockHandler = (overrideResponse) => {
948
951
  });
949
952
  }));
950
953
  };
954
+ export const getListIndexMockHandler = (overrideResponse) => {
955
+ return http.get('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
956
+ yield delay(1000);
957
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
958
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
959
+ : getListIndexResponseMock()), { status: 200,
960
+ headers: { 'Content-Type': 'application/json' }
961
+ });
962
+ }));
963
+ };
951
964
  export const getAddIndexMockHandler = (overrideResponse) => {
952
965
  return http.post('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
953
966
  yield delay(1000);
@@ -1998,6 +2011,26 @@ export const getSitesSshUserListV2MockHandler = (overrideResponse) => {
1998
2011
  });
1999
2012
  }));
2000
2013
  };
2014
+ export const getSshKeyImportV3MockHandler = (overrideResponse) => {
2015
+ return http.post('*/v3/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
2016
+ yield delay(1000);
2017
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2018
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2019
+ : getSshKeyImportV3ResponseMock()), { status: 200,
2020
+ headers: { 'Content-Type': 'application/json' }
2021
+ });
2022
+ }));
2023
+ };
2024
+ export const getSshKeyListV3MockHandler = (overrideResponse) => {
2025
+ return http.get('*/v3/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
2026
+ yield delay(1000);
2027
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2028
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2029
+ : getSshKeyListV3ResponseMock()), { status: 200,
2030
+ headers: { 'Content-Type': 'application/json' }
2031
+ });
2032
+ }));
2033
+ };
2001
2034
  export const getSitesListV3MockHandler = (overrideResponse) => {
2002
2035
  return http.get('*/v3/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
2003
2036
  yield delay(1000);
@@ -2083,6 +2116,7 @@ export const getHostingUAPIMock = () => [
2083
2116
  getHostingFtpAddMockHandler(),
2084
2117
  getHostingFtpUpdateMockHandler(),
2085
2118
  getHostingFtpMockHandler(),
2119
+ getListIndexMockHandler(),
2086
2120
  getAddIndexMockHandler(),
2087
2121
  getIndexMockHandler(),
2088
2122
  getHostingInfoMockHandler(),
@@ -2188,5 +2222,7 @@ export const getHostingUAPIMock = () => [
2188
2222
  getSitesDomainsV2MockHandler(),
2189
2223
  getSitesSecuritySitelockV2MockHandler(),
2190
2224
  getSitesSshUserListV2MockHandler(),
2225
+ getSshKeyImportV3MockHandler(),
2226
+ getSshKeyListV3MockHandler(),
2191
2227
  getSitesListV3MockHandler()
2192
2228
  ];
@@ -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.1084.0
6
+ * OpenAPI spec version: 1.1095.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;
@@ -877,13 +900,6 @@ export declare type SitesPerformanceCachepurgeBody = {
877
900
  export declare type SitePendingDomainDelete200 = {
878
901
  [key: string]: unknown;
879
902
  };
880
- export declare type SitesMetricDimensions200 = {
881
- date_end?: string;
882
- date_start?: string;
883
- dimensions?: SitesMetricDimensions200Dimensions;
884
- elapsed?: number;
885
- metric?: string;
886
- };
887
903
  export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
888
904
  [key: string]: number;
889
905
  };
@@ -891,6 +907,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
891
907
  dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
892
908
  timestamp?: number;
893
909
  };
910
+ export declare type SitesMetricDimensions200Dimensions = {
911
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
912
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
913
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
914
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
915
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
916
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
917
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
918
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
919
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
920
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
921
+ };
922
+ export declare type SitesMetricDimensions200 = {
923
+ date_end?: string;
924
+ date_start?: string;
925
+ dimensions?: SitesMetricDimensions200Dimensions;
926
+ elapsed?: number;
927
+ metric?: string;
928
+ };
894
929
  export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
895
930
  [key: string]: number;
896
931
  };
@@ -905,18 +940,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
905
940
  dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
906
941
  timestamp?: number;
907
942
  };
908
- export declare type SitesMetricDimensions200Dimensions = {
909
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
910
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
911
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
912
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
913
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
914
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
915
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
916
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
917
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
918
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
919
- };
920
943
  export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
921
944
  [key: string]: number;
922
945
  };
@@ -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;
@@ -1904,6 +1924,21 @@ export declare type AddIndexBody = {
1904
1924
  /** index type */
1905
1925
  type?: AddIndexBodyType;
1906
1926
  };
1927
+ export declare type ListIndex200IndexesItem = {
1928
+ index_options?: string[];
1929
+ /** docroot path */
1930
+ path?: string;
1931
+ /** index status */
1932
+ status?: string;
1933
+ /** index type */
1934
+ type?: string;
1935
+ };
1936
+ export declare type ListIndex200 = {
1937
+ indexes?: ListIndex200IndexesItem[];
1938
+ };
1939
+ export declare type ListIndexParams = {
1940
+ path?: string;
1941
+ };
1907
1942
  export declare type HostingFtp200 = {
1908
1943
  status?: number;
1909
1944
  /** Username */
@@ -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',