@newfold/huapi-js 2.1076.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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1076.0",
13
+ "version": "2.1092.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, 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, JetpackBackupStatus200, ListCrons200, 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
  /**
@@ -2126,6 +2126,38 @@ export declare function useHostingEcommerceInfo<TData = Awaited<ReturnType<typeo
2126
2126
  }): UseQueryResult<TData, TError> & {
2127
2127
  queryKey: QueryKey;
2128
2128
  };
2129
+ /**
2130
+ * List files under the given directory
2131
+ * @summary List files
2132
+ */
2133
+ export declare const listFiles: (hostingId: string, params?: ListFilesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ListFiles200>>;
2134
+ export declare const getListFilesQueryKey: (hostingId: string, params?: ListFilesParams) => readonly [`/v1/hosting/${string}/files`, ...ListFilesParams[]];
2135
+ export declare const getListFilesQueryOptions: <TData = AxiosResponse<ListFiles200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: ListFilesParams, options?: {
2136
+ query?: Partial<UseQueryOptions<AxiosResponse<ListFiles200, any>, TError, TData, QueryKey>> | undefined;
2137
+ axios?: AxiosRequestConfig<any> | undefined;
2138
+ } | undefined) => UseQueryOptions<AxiosResponse<ListFiles200, any>, TError, TData, QueryKey> & {
2139
+ queryKey: QueryKey;
2140
+ };
2141
+ export declare type ListFilesQueryResult = NonNullable<Awaited<ReturnType<typeof listFiles>>>;
2142
+ export declare type ListFilesQueryError = AxiosError<unknown>;
2143
+ export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | ListFilesParams, options: {
2144
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>, 'initialData'>;
2145
+ axios?: AxiosRequestConfig;
2146
+ }): DefinedUseQueryResult<TData, TError> & {
2147
+ queryKey: QueryKey;
2148
+ };
2149
+ export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params?: ListFilesParams, options?: {
2150
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>, 'initialData'>;
2151
+ axios?: AxiosRequestConfig;
2152
+ }): UseQueryResult<TData, TError> & {
2153
+ queryKey: QueryKey;
2154
+ };
2155
+ export declare function useListFiles<TData = Awaited<ReturnType<typeof listFiles>>, TError = AxiosError<unknown>>(hostingId: string, params?: ListFilesParams, options?: {
2156
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listFiles>>, TError, TData>>;
2157
+ axios?: AxiosRequestConfig;
2158
+ }): UseQueryResult<TData, TError> & {
2159
+ queryKey: QueryKey;
2160
+ };
2129
2161
  /**
2130
2162
  * Re-enforces correct ownership on user dirs and files
2131
2163
  * @summary Fix file ownership
@@ -2277,6 +2309,68 @@ export declare const useHostingFtp: <TError = AxiosError<unknown, any>, TContext
2277
2309
  hostingId: number;
2278
2310
  data: HostingFtpBody;
2279
2311
  }, TContext>;
2312
+ /**
2313
+ * Add index to given file/folder
2314
+ * @summary Add index to file/folder
2315
+ */
2316
+ export declare const addIndex: (hostingId: string, addIndexBody: AddIndexBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddIndex200>>;
2317
+ export declare const getAddIndexMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2318
+ mutation?: UseMutationOptions<AxiosResponse<AddIndex200, any>, TError, {
2319
+ hostingId: string;
2320
+ data: AddIndexBody;
2321
+ }, TContext> | undefined;
2322
+ axios?: AxiosRequestConfig<any> | undefined;
2323
+ } | undefined) => UseMutationOptions<AxiosResponse<AddIndex200, any>, TError, {
2324
+ hostingId: string;
2325
+ data: AddIndexBody;
2326
+ }, TContext>;
2327
+ export declare type AddIndexMutationResult = NonNullable<Awaited<ReturnType<typeof addIndex>>>;
2328
+ export declare type AddIndexMutationBody = AddIndexBody;
2329
+ export declare type AddIndexMutationError = AxiosError<unknown>;
2330
+ /**
2331
+ * @summary Add index to file/folder
2332
+ */
2333
+ export declare const useAddIndex: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2334
+ mutation?: UseMutationOptions<AxiosResponse<AddIndex200, any>, TError, {
2335
+ hostingId: string;
2336
+ data: AddIndexBody;
2337
+ }, TContext> | undefined;
2338
+ axios?: AxiosRequestConfig<any> | undefined;
2339
+ } | undefined) => UseMutationResult<AxiosResponse<AddIndex200, any>, TError, {
2340
+ hostingId: string;
2341
+ data: AddIndexBody;
2342
+ }, TContext>;
2343
+ /**
2344
+ * Delete index to given file/folder
2345
+ * @summary Delete index to file/folder
2346
+ */
2347
+ export declare const index: (hostingId: string, indexBody: IndexBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<Index200>>;
2348
+ export declare const getIndexMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2349
+ mutation?: UseMutationOptions<AxiosResponse<Index200, any>, TError, {
2350
+ hostingId: string;
2351
+ data: IndexBody;
2352
+ }, TContext> | undefined;
2353
+ axios?: AxiosRequestConfig<any> | undefined;
2354
+ } | undefined) => UseMutationOptions<AxiosResponse<Index200, any>, TError, {
2355
+ hostingId: string;
2356
+ data: IndexBody;
2357
+ }, TContext>;
2358
+ export declare type IndexMutationResult = NonNullable<Awaited<ReturnType<typeof index>>>;
2359
+ export declare type IndexMutationBody = IndexBody;
2360
+ export declare type IndexMutationError = AxiosError<unknown>;
2361
+ /**
2362
+ * @summary Delete index to file/folder
2363
+ */
2364
+ export declare const useIndex: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
2365
+ mutation?: UseMutationOptions<AxiosResponse<Index200, any>, TError, {
2366
+ hostingId: string;
2367
+ data: IndexBody;
2368
+ }, TContext> | undefined;
2369
+ axios?: AxiosRequestConfig<any> | undefined;
2370
+ } | undefined) => UseMutationResult<AxiosResponse<Index200, any>, TError, {
2371
+ hostingId: string;
2372
+ data: IndexBody;
2373
+ }, TContext>;
2280
2374
  /**
2281
2375
  * Returns hosting account info
2282
2376
  * @summary Hosting info
@@ -2941,7 +3035,7 @@ export declare function useHostingSshInfo<TData = Awaited<ReturnType<typeof host
2941
3035
  queryKey: QueryKey;
2942
3036
  };
2943
3037
  /**
2944
- * Fetches an SSH public (or optionally private) key.
3038
+ * Fetches an SSH public key.
2945
3039
  * @summary ssh key fetch
2946
3040
  */
2947
3041
  export declare const sshKeyFetch: (hostingId: string, params: SshKeyFetchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyFetch200>>;
@@ -5320,7 +5414,8 @@ export declare function useHostingSitesV2<TData = Awaited<ReturnType<typeof host
5320
5414
  };
5321
5415
  /**
5322
5416
  * Import public/private ssh key
5323
- * @summary Import ssh key
5417
+ * @deprecated
5418
+ * @summary Deprecated -Import ssh key
5324
5419
  */
5325
5420
  export declare const sshKeyImportV2: (hostingId: string, sshKeyImportV2Body: SshKeyImportV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImportV2200>>;
5326
5421
  export declare const getSshKeyImportV2MutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
@@ -5337,7 +5432,8 @@ export declare type SshKeyImportV2MutationResult = NonNullable<Awaited<ReturnTyp
5337
5432
  export declare type SshKeyImportV2MutationBody = SshKeyImportV2Body;
5338
5433
  export declare type SshKeyImportV2MutationError = AxiosError<unknown>;
5339
5434
  /**
5340
- * @summary Import ssh key
5435
+ * @deprecated
5436
+ * @summary Deprecated -Import ssh key
5341
5437
  */
5342
5438
  export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
5343
5439
  mutation?: UseMutationOptions<AxiosResponse<SshKeyImportV2200, any>, TError, {
@@ -5351,7 +5447,8 @@ export declare const useSshKeyImportV2: <TError = AxiosError<unknown, any>, TCon
5351
5447
  }, TContext>;
5352
5448
  /**
5353
5449
  * List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
5354
- * @summary ssh keys list
5450
+ * @deprecated
5451
+ * @summary Deprecated - ssh keys list
5355
5452
  */
5356
5453
  export declare const sshKeyListV2: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV2200>>;
5357
5454
  export declare const getSshKeyListV2QueryKey: (hostingId: string) => readonly [`/v2/hosting/${string}/ssh/keys`];
@@ -5542,6 +5639,69 @@ export declare function useSitesSshUserListV2<TData = Awaited<ReturnType<typeof
5542
5639
  }): UseQueryResult<TData, TError> & {
5543
5640
  queryKey: QueryKey;
5544
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
+ };
5545
5705
  /**
5546
5706
  * Returns a list of sites. (Compatible platforms: jarvis, hal)
5547
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.1076.0
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';
@@ -1649,6 +1649,32 @@ export function useHostingEcommerceInfo(hostingId, options) {
1649
1649
  query.queryKey = queryOptions.queryKey;
1650
1650
  return query;
1651
1651
  }
1652
+ /**
1653
+ * List files under the given directory
1654
+ * @summary List files
1655
+ */
1656
+ export const listFiles = (hostingId, params, options) => {
1657
+ return axios.get(`/v1/hosting/${hostingId}/files`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
1658
+ };
1659
+ export const getListFilesQueryKey = (hostingId, params) => {
1660
+ return [`/v1/hosting/${hostingId}/files`, ...(params ? [params] : [])];
1661
+ };
1662
+ export const getListFilesQueryOptions = (hostingId, params, options) => {
1663
+ var _a;
1664
+ const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1665
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getListFilesQueryKey(hostingId, params);
1666
+ const queryFn = ({ signal }) => listFiles(hostingId, params, Object.assign({ signal }, axiosOptions));
1667
+ return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
1668
+ };
1669
+ /**
1670
+ * @summary List files
1671
+ */
1672
+ export function useListFiles(hostingId, params, options) {
1673
+ const queryOptions = getListFilesQueryOptions(hostingId, params, options);
1674
+ const query = useQuery(queryOptions);
1675
+ query.queryKey = queryOptions.queryKey;
1676
+ return query;
1677
+ }
1652
1678
  /**
1653
1679
  * Re-enforces correct ownership on user dirs and files
1654
1680
  * @summary Fix file ownership
@@ -1763,6 +1789,50 @@ export const useHostingFtp = (options) => {
1763
1789
  const mutationOptions = getHostingFtpMutationOptions(options);
1764
1790
  return useMutation(mutationOptions);
1765
1791
  };
1792
+ /**
1793
+ * Add index to given file/folder
1794
+ * @summary Add index to file/folder
1795
+ */
1796
+ export const addIndex = (hostingId, addIndexBody, options) => {
1797
+ return axios.post(`/v1/hosting/${hostingId}/index`, addIndexBody, options);
1798
+ };
1799
+ export const getAddIndexMutationOptions = (options) => {
1800
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1801
+ const mutationFn = (props) => {
1802
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
1803
+ return addIndex(hostingId, data, axiosOptions);
1804
+ };
1805
+ return Object.assign({ mutationFn }, mutationOptions);
1806
+ };
1807
+ /**
1808
+ * @summary Add index to file/folder
1809
+ */
1810
+ export const useAddIndex = (options) => {
1811
+ const mutationOptions = getAddIndexMutationOptions(options);
1812
+ return useMutation(mutationOptions);
1813
+ };
1814
+ /**
1815
+ * Delete index to given file/folder
1816
+ * @summary Delete index to file/folder
1817
+ */
1818
+ export const index = (hostingId, indexBody, options) => {
1819
+ return axios.delete(`/v1/hosting/${hostingId}/index`, Object.assign({ data: indexBody }, options));
1820
+ };
1821
+ export const getIndexMutationOptions = (options) => {
1822
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
1823
+ const mutationFn = (props) => {
1824
+ const { hostingId, data } = props !== null && props !== void 0 ? props : {};
1825
+ return index(hostingId, data, axiosOptions);
1826
+ };
1827
+ return Object.assign({ mutationFn }, mutationOptions);
1828
+ };
1829
+ /**
1830
+ * @summary Delete index to file/folder
1831
+ */
1832
+ export const useIndex = (options) => {
1833
+ const mutationOptions = getIndexMutationOptions(options);
1834
+ return useMutation(mutationOptions);
1835
+ };
1766
1836
  /**
1767
1837
  * Returns hosting account info
1768
1838
  * @summary Hosting info
@@ -2277,7 +2347,7 @@ export function useHostingSshInfo(hostingId, options) {
2277
2347
  return query;
2278
2348
  }
2279
2349
  /**
2280
- * Fetches an SSH public (or optionally private) key.
2350
+ * Fetches an SSH public key.
2281
2351
  * @summary ssh key fetch
2282
2352
  */
2283
2353
  export const sshKeyFetch = (hostingId, params, options) => {
@@ -4139,7 +4209,8 @@ export function useHostingSitesV2(hostingId, params, options) {
4139
4209
  }
4140
4210
  /**
4141
4211
  * Import public/private ssh key
4142
- * @summary Import ssh key
4212
+ * @deprecated
4213
+ * @summary Deprecated -Import ssh key
4143
4214
  */
4144
4215
  export const sshKeyImportV2 = (hostingId, sshKeyImportV2Body, options) => {
4145
4216
  return axios.post(`/v2/hosting/${hostingId}/ssh/import`, sshKeyImportV2Body, options);
@@ -4153,7 +4224,8 @@ export const getSshKeyImportV2MutationOptions = (options) => {
4153
4224
  return Object.assign({ mutationFn }, mutationOptions);
4154
4225
  };
4155
4226
  /**
4156
- * @summary Import ssh key
4227
+ * @deprecated
4228
+ * @summary Deprecated -Import ssh key
4157
4229
  */
4158
4230
  export const useSshKeyImportV2 = (options) => {
4159
4231
  const mutationOptions = getSshKeyImportV2MutationOptions(options);
@@ -4161,7 +4233,8 @@ export const useSshKeyImportV2 = (options) => {
4161
4233
  };
4162
4234
  /**
4163
4235
  * List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
4164
- * @summary ssh keys list
4236
+ * @deprecated
4237
+ * @summary Deprecated - ssh keys list
4165
4238
  */
4166
4239
  export const sshKeyListV2 = (hostingId, options) => {
4167
4240
  return axios.get(`/v2/hosting/${hostingId}/ssh/keys`, options);
@@ -4177,7 +4250,8 @@ export const getSshKeyListV2QueryOptions = (hostingId, options) => {
4177
4250
  return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
4178
4251
  };
4179
4252
  /**
4180
- * @summary ssh keys list
4253
+ * @deprecated
4254
+ * @summary Deprecated - ssh keys list
4181
4255
  */
4182
4256
  export function useSshKeyListV2(hostingId, options) {
4183
4257
  const queryOptions = getSshKeyListV2QueryOptions(hostingId, options);
@@ -4317,6 +4391,54 @@ export function useSitesSshUserListV2(siteId, options) {
4317
4391
  query.queryKey = queryOptions.queryKey;
4318
4392
  return query;
4319
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
+ }
4320
4442
  /**
4321
4443
  * Returns a list of sites. (Compatible platforms: jarvis, hal)
4322
4444
  * @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, 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, JetpackBackupStatus200, ListCrons200, 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;
@@ -68,11 +68,14 @@ export declare const getDbUserRenameResponseMock: (overrideResponse?: Partial<Db
68
68
  export declare const getDomainsResponseMock: (overrideResponse?: Partial<Domains200>) => Domains200;
69
69
  export declare const getHostingDomainsUnassignResponseMock: (overrideResponse?: Partial<HostingDomainsUnassign200>) => HostingDomainsUnassign200;
70
70
  export declare const getHostingEcommerceInfoResponseMock: (overrideResponse?: Partial<HostingEcommerceInfo200>) => HostingEcommerceInfo200;
71
+ export declare const getListFilesResponseMock: (overrideResponse?: Partial<ListFiles200>) => ListFiles200;
71
72
  export declare const getHostingFixownershipResponseMock: (overrideResponse?: Partial<HostingFixownership200>) => HostingFixownership200;
72
73
  export declare const getHostingFtpListResponseMock: (overrideResponse?: Partial<HostingFtpList200>) => HostingFtpList200;
73
74
  export declare const getHostingFtpAddResponseMock: (overrideResponse?: Partial<HostingFtpAdd200>) => HostingFtpAdd200;
74
75
  export declare const getHostingFtpUpdateResponseMock: (overrideResponse?: Partial<HostingFtpUpdate200>) => HostingFtpUpdate200;
75
76
  export declare const getHostingFtpResponseMock: (overrideResponse?: Partial<HostingFtp200>) => HostingFtp200;
77
+ export declare const getAddIndexResponseMock: (overrideResponse?: Partial<AddIndex200>) => AddIndex200;
78
+ export declare const getIndexResponseMock: (overrideResponse?: Partial<Index200>) => Index200;
76
79
  export declare const getHostingInfoResponseMock: (overrideResponse?: Partial<HostingInfo200>) => HostingInfo200;
77
80
  export declare const getHostingInfoDiskUsageResponseMock: (overrideResponse?: Partial<HostingInfoDiskUsage200>) => HostingInfoDiskUsage200;
78
81
  export declare const getHostingLeadResponseMock: (overrideResponse?: Partial<HostingLead200>) => HostingLead200;
@@ -174,6 +177,8 @@ export declare const getSitesInfoV2ResponseMock: (overrideResponse?: Partial<Sit
174
177
  export declare const getSitesDomainsV2ResponseMock: (overrideResponse?: Partial<SitesDomainsV2200>) => SitesDomainsV2200;
175
178
  export declare const getSitesSecuritySitelockV2ResponseMock: (overrideResponse?: Partial<SitesSecuritySitelockV2200>) => SitesSecuritySitelockV2200;
176
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;
177
182
  export declare const getSitesListV3ResponseMock: (overrideResponse?: Partial<SitesListV3200>) => SitesListV3200;
178
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;
179
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;
@@ -243,11 +248,14 @@ export declare const getDbUserRenameMockHandler: (overrideResponse?: DbUserRenam
243
248
  export declare const getDomainsMockHandler: (overrideResponse?: Domains200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Domains200> | Domains200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
244
249
  export declare const getHostingDomainsUnassignMockHandler: (overrideResponse?: HostingDomainsUnassign200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingDomainsUnassign200> | HostingDomainsUnassign200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
245
250
  export declare const getHostingEcommerceInfoMockHandler: (overrideResponse?: HostingEcommerceInfo200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEcommerceInfo200> | HostingEcommerceInfo200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
251
+ export declare const getListFilesMockHandler: (overrideResponse?: ListFiles200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListFiles200> | ListFiles200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
246
252
  export declare const getHostingFixownershipMockHandler: (overrideResponse?: HostingFixownership200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingFixownership200> | HostingFixownership200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
247
253
  export declare const getHostingFtpListMockHandler: (overrideResponse?: HostingFtpList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingFtpList200> | HostingFtpList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
248
254
  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;
249
255
  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;
250
256
  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;
257
+ 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;
258
+ 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;
251
259
  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;
252
260
  export declare const getHostingInfoDiskUsageMockHandler: (overrideResponse?: HostingInfoDiskUsage200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingInfoDiskUsage200> | HostingInfoDiskUsage200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
253
261
  export declare const getHostingLeadMockHandler: (overrideResponse?: HostingLead200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingLead200> | HostingLead200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
@@ -351,5 +359,7 @@ export declare const getSitesInfoV2MockHandler: (overrideResponse?: SiteInfoResp
351
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;
352
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;
353
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;
354
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;
355
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.1076.0
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';
@@ -78,11 +78,14 @@ export const getDbUserRenameResponseMock = (overrideResponse = {}) => (Object.as
78
78
  export const getDomainsResponseMock = (overrideResponse = {}) => (Object.assign({ domains: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ date_ssl_exp: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.word.sample(), domain: faker.word.sample(), id: faker.number.int({ min: undefined, max: undefined }), ssl_issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssl_status: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.word.sample() })) }, overrideResponse));
79
79
  export const getHostingDomainsUnassignResponseMock = (overrideResponse = {}) => (Object.assign({ queued: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
80
80
  export const getHostingEcommerceInfoResponseMock = (overrideResponse = {}) => (Object.assign({ addon_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), back_ref: faker.helpers.arrayElement([faker.word.sample(), undefined]), level: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), 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]) }, overrideResponse));
81
+ export const getListFilesResponseMock = (overrideResponse = {}) => (Object.assign({ files: 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]), fullpath: faker.helpers.arrayElement([faker.word.sample(), undefined]), path: faker.helpers.arrayElement([faker.word.sample(), undefined]), size: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
81
82
  export const getHostingFixownershipResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
82
83
  export const getHostingFtpListResponseMock = (overrideResponse = {}) => (Object.assign({ ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), server_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), special_ftp_accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), homedir: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
83
84
  export const getHostingFtpAddResponseMock = (overrideResponse = {}) => (Object.assign({ pass: faker.helpers.arrayElement([faker.word.sample(), undefined]), user: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
84
85
  export const getHostingFtpUpdateResponseMock = (overrideResponse = {}) => (Object.assign({ status: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
85
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 getAddIndexResponseMock = (overrideResponse = {}) => (Object.assign({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
88
+ 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));
86
89
  export const getHostingInfoResponseMock = (overrideResponse = {}) => (Object.assign({ ip: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
87
90
  export const getHostingInfoDiskUsageResponseMock = (overrideResponse = {}) => (Object.assign({ disklastupdated: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), disklimit: faker.helpers.arrayElement([faker.word.sample(), undefined]), diskused: faker.helpers.arrayElement([faker.word.sample(), undefined]), fileslimit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), filesused: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
88
91
  export const getHostingLeadResponseMock = (overrideResponse = {}) => (Object.assign({ response: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ clientRequestId: faker.helpers.arrayElement([faker.word.sample(), undefined]), data: faker.helpers.arrayElement([{ leadId: faker.helpers.arrayElement([faker.word.sample(), undefined]), message: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), errors: faker.helpers.arrayElement([faker.word.sample(), undefined]), messageId: faker.helpers.arrayElement([faker.word.sample(), undefined]), providerApplicationName: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
@@ -103,7 +106,7 @@ export const getHostingShellToggleResponseMock = (overrideResponse = {}) => (Obj
103
106
  export const getHostingShellInfoResponseMock = (overrideResponse = {}) => (Object.assign({ enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
104
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));
105
108
  export const getSitesBatchResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
106
- 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));
107
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));
108
111
  export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
109
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));
@@ -126,7 +129,7 @@ export const getSiteAddonCloudflareResponseMock = (overrideResponse = {}) => (Ob
126
129
  export const getSitesDatabaseInfoResponseMock = (overrideResponse = {}) => (Object.assign({ charset: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), collation: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
127
130
  export const getSitesDatabasePasswordsyncResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
128
131
  export const getSitesDnsResponseMock = (overrideResponse = {}) => (Object.assign({ records: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), value: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), source: faker.helpers.arrayElement([faker.word.sample(), undefined]), success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
129
- export const getSitesDomainResponseMock = (overrideResponse = {}) => (Object.assign({ a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), detected: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]), nameserver_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), wanted: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]) }, overrideResponse));
132
+ export const getSitesDomainResponseMock = (overrideResponse = {}) => (Object.assign({ a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), detected: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameserver_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), wanted: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]) }, overrideResponse));
130
133
  export const getSitesDomainUrlResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
131
134
  export const getSitesDomainsCreateResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
132
135
  export const getSiteIpaddressListResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ beginning_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), ending_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), server_setting: faker.helpers.arrayElement([faker.word.sample(), undefined]) })));
@@ -204,6 +207,8 @@ export const getSitesInfoV2ResponseMock = (overrideResponse = {}) => (Object.ass
204
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));
205
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));
206
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));
207
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));
208
213
  export const getAccountEventListMockHandler = (overrideResponse) => {
209
214
  return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
@@ -885,6 +890,16 @@ export const getHostingEcommerceInfoMockHandler = (overrideResponse) => {
885
890
  });
886
891
  }));
887
892
  };
893
+ export const getListFilesMockHandler = (overrideResponse) => {
894
+ return http.get('*/v1/hosting/:hostingId/files', (info) => __awaiter(void 0, void 0, void 0, function* () {
895
+ yield delay(1000);
896
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
897
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
898
+ : getListFilesResponseMock()), { status: 200,
899
+ headers: { 'Content-Type': 'application/json' }
900
+ });
901
+ }));
902
+ };
888
903
  export const getHostingFixownershipMockHandler = (overrideResponse) => {
889
904
  return http.post('*/v1/hosting/:hostingId/fixownership', (info) => __awaiter(void 0, void 0, void 0, function* () {
890
905
  yield delay(1000);
@@ -935,6 +950,26 @@ export const getHostingFtpMockHandler = (overrideResponse) => {
935
950
  });
936
951
  }));
937
952
  };
953
+ export const getAddIndexMockHandler = (overrideResponse) => {
954
+ return http.post('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
955
+ yield delay(1000);
956
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
957
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
958
+ : getAddIndexResponseMock()), { status: 200,
959
+ headers: { 'Content-Type': 'application/json' }
960
+ });
961
+ }));
962
+ };
963
+ export const getIndexMockHandler = (overrideResponse) => {
964
+ return http.delete('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
965
+ yield delay(1000);
966
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
967
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
968
+ : getIndexResponseMock()), { status: 200,
969
+ headers: { 'Content-Type': 'application/json' }
970
+ });
971
+ }));
972
+ };
938
973
  export const getHostingInfoMockHandler = (overrideResponse) => {
939
974
  return http.get('*/v1/hosting/:hostingId/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
940
975
  yield delay(1000);
@@ -1965,6 +2000,26 @@ export const getSitesSshUserListV2MockHandler = (overrideResponse) => {
1965
2000
  });
1966
2001
  }));
1967
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
+ };
1968
2023
  export const getSitesListV3MockHandler = (overrideResponse) => {
1969
2024
  return http.get('*/v3/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
1970
2025
  yield delay(1000);
@@ -2044,11 +2099,14 @@ export const getHostingUAPIMock = () => [
2044
2099
  getDomainsMockHandler(),
2045
2100
  getHostingDomainsUnassignMockHandler(),
2046
2101
  getHostingEcommerceInfoMockHandler(),
2102
+ getListFilesMockHandler(),
2047
2103
  getHostingFixownershipMockHandler(),
2048
2104
  getHostingFtpListMockHandler(),
2049
2105
  getHostingFtpAddMockHandler(),
2050
2106
  getHostingFtpUpdateMockHandler(),
2051
2107
  getHostingFtpMockHandler(),
2108
+ getAddIndexMockHandler(),
2109
+ getIndexMockHandler(),
2052
2110
  getHostingInfoMockHandler(),
2053
2111
  getHostingInfoDiskUsageMockHandler(),
2054
2112
  getHostingLeadMockHandler(),
@@ -2152,5 +2210,7 @@ export const getHostingUAPIMock = () => [
2152
2210
  getSitesDomainsV2MockHandler(),
2153
2211
  getSitesSecuritySitelockV2MockHandler(),
2154
2212
  getSitesSshUserListV2MockHandler(),
2213
+ getSshKeyImportV3MockHandler(),
2214
+ getSshKeyListV3MockHandler(),
2155
2215
  getSitesListV3MockHandler()
2156
2216
  ];
@@ -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.1076.0
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
  };
@@ -905,6 +928,18 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
905
928
  dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
906
929
  timestamp?: number;
907
930
  };
931
+ export declare type SitesMetricDimensions200Dimensions = {
932
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
933
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
934
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
935
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
936
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
937
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
938
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
939
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
940
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
941
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
942
+ };
908
943
  export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
909
944
  [key: string]: number;
910
945
  };
@@ -954,18 +989,6 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
954
989
  dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
955
990
  timestamp?: number;
956
991
  };
957
- export declare type SitesMetricDimensions200Dimensions = {
958
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
959
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
960
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
961
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
962
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
963
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
964
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
965
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
966
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
967
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
968
- };
969
992
  export declare type SitesMetricDimensionsParams = {
970
993
  start?: string;
971
994
  end?: string;
@@ -1204,6 +1227,8 @@ export declare type SitesDomain200 = {
1204
1227
  a_match?: boolean;
1205
1228
  connected?: boolean;
1206
1229
  detected?: SitesDomain200Detected;
1230
+ /** @nullable */
1231
+ is_internal?: boolean | null;
1207
1232
  nameserver_match?: boolean;
1208
1233
  wanted?: SitesDomain200Wanted;
1209
1234
  };
@@ -1531,6 +1556,7 @@ export declare type SsoParams = {
1531
1556
  app?: SsoApp;
1532
1557
  dir?: string;
1533
1558
  domain?: string;
1559
+ db_name?: string;
1534
1560
  };
1535
1561
  export declare type SshKeyGenerate200 = {
1536
1562
  key_name?: string;
@@ -1616,19 +1642,15 @@ export declare type SshKeyFetch200 = {
1616
1642
  key_name?: string;
1617
1643
  type?: string;
1618
1644
  };
1619
- export declare type SshKeyFetchPrivate = typeof SshKeyFetchPrivate[keyof typeof SshKeyFetchPrivate];
1620
- export declare const SshKeyFetchPrivate: {
1621
- readonly NUMBER_0: "0";
1622
- readonly NUMBER_1: "1";
1623
- };
1624
1645
  export declare type SshKeyFetchParams = {
1625
1646
  name: string;
1626
- private?: SshKeyFetchPrivate;
1627
1647
  };
1628
1648
  export declare type HostingSshInfo200 = {
1629
1649
  credential?: string;
1650
+ ip?: string;
1630
1651
  status?: string;
1631
1652
  success?: boolean;
1653
+ username?: string;
1632
1654
  };
1633
1655
  export declare type SitesBatch200 = {
1634
1656
  success?: boolean;
@@ -1856,6 +1878,52 @@ export declare type HostingInfoDiskUsage200 = {
1856
1878
  export declare type HostingInfo200 = {
1857
1879
  ip?: string;
1858
1880
  };
1881
+ export declare type Index200 = {
1882
+ /**
1883
+ * docroot path
1884
+ */
1885
+ file?: string;
1886
+ /** */
1887
+ success?: number;
1888
+ };
1889
+ export declare type IndexBody = {
1890
+ /** docroot path */
1891
+ docpath: string;
1892
+ };
1893
+ export declare type AddIndex200 = {
1894
+ /**
1895
+ * docroot path
1896
+ */
1897
+ file?: string;
1898
+ /** */
1899
+ status?: string;
1900
+ };
1901
+ /**
1902
+ * index type
1903
+ */
1904
+ export declare type AddIndexBodyType = typeof AddIndexBodyType[keyof typeof AddIndexBodyType];
1905
+ export declare const AddIndexBodyType: {
1906
+ readonly fancy: "fancy";
1907
+ readonly standard: "standard";
1908
+ readonly default: "default";
1909
+ };
1910
+ /**
1911
+ * action name
1912
+ */
1913
+ export declare type AddIndexBodyAction = typeof AddIndexBodyAction[keyof typeof AddIndexBodyAction];
1914
+ export declare const AddIndexBodyAction: {
1915
+ readonly view: "view";
1916
+ readonly enable: "enable";
1917
+ readonly disable: "disable";
1918
+ };
1919
+ export declare type AddIndexBody = {
1920
+ /** action name */
1921
+ action?: AddIndexBodyAction;
1922
+ /** docroot path */
1923
+ docpath: string;
1924
+ /** index type */
1925
+ type?: AddIndexBodyType;
1926
+ };
1859
1927
  export declare type HostingFtp200 = {
1860
1928
  status?: number;
1861
1929
  /** Username */
@@ -1937,6 +2005,19 @@ export declare type HostingFtpList200 = {
1937
2005
  export declare type HostingFixownership200 = {
1938
2006
  success?: boolean;
1939
2007
  };
2008
+ export declare type ListFiles200FilesItem = {
2009
+ file?: string;
2010
+ fullpath?: string;
2011
+ path?: string;
2012
+ size?: number;
2013
+ type?: string;
2014
+ };
2015
+ export declare type ListFiles200 = {
2016
+ files?: ListFiles200FilesItem[];
2017
+ };
2018
+ export declare type ListFilesParams = {
2019
+ directory?: string;
2020
+ };
1940
2021
  /**
1941
2022
  * @nullable
1942
2023
  */
@@ -2629,9 +2710,6 @@ export declare type CodeguardWebsiteBackupList200 = {
2629
2710
  export declare type CodeguardWebsiteBackupListParams = {
2630
2711
  website_id?: number;
2631
2712
  };
2632
- export declare type CodeguardWebsiteList200 = {
2633
- website_list?: CodeguardWebsiteList200WebsiteListItem[];
2634
- };
2635
2713
  export declare type CodeguardWebsiteList200WebsiteListItemWebsite = {
2636
2714
  activated?: boolean;
2637
2715
  id?: number;
@@ -2640,6 +2718,9 @@ export declare type CodeguardWebsiteList200WebsiteListItemWebsite = {
2640
2718
  export declare type CodeguardWebsiteList200WebsiteListItem = {
2641
2719
  website?: CodeguardWebsiteList200WebsiteListItemWebsite;
2642
2720
  };
2721
+ export declare type CodeguardWebsiteList200 = {
2722
+ website_list?: CodeguardWebsiteList200WebsiteListItem[];
2723
+ };
2643
2724
  export declare type CodeguardPlanInfo200SeatsItem = {
2644
2725
  activated?: boolean;
2645
2726
  url?: string;
@@ -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',
@@ -119,6 +114,18 @@ export const HostingMigrationsEventBodyEventName = {
119
114
  failedCreate: 'failedCreate',
120
115
  };
121
116
  // eslint-disable-next-line @typescript-eslint/no-redeclare
117
+ export const AddIndexBodyType = {
118
+ fancy: 'fancy',
119
+ standard: 'standard',
120
+ default: 'default',
121
+ };
122
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
123
+ export const AddIndexBodyAction = {
124
+ view: 'view',
125
+ enable: 'enable',
126
+ disable: 'disable',
127
+ };
128
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
122
129
  export const HostingFtpUpdateBodyUserTypeSet = {
123
130
  password: 'password',
124
131
  quota: 'quota',