@newfold/huapi-js 1.743.0 → 1.751.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +20 -2
- package/src/index.js +16 -1
- package/src/index.msw.d.ts +2 -1
- package/src/index.msw.js +5 -2
- package/src/index.schemas.d.ts +32 -16
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.751.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
10
|
import type { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
-
import type { AccountHostingList200, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, AddonsSpamexpertsSso200, WebzaiSso200, WeeblySso200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbUsage200, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, Domains200, DomainsParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingResellerSsoWhm200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSiteAdd200, HostingSiteAddBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, BackupsJetpackBackup200, SiteAddonCloudflare200, SiteAddonCloudflare400, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainUrl200, SitesDomainUrlBody, SitesDomains200, SitesDomainsCreate200, SitesDomainsCreateBody, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, ResetSiteBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserList200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSsl200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, HostingNameserversV2200, HostingSitesV2200, SshKeyListV2200, SitesListV2200 } from './index.schemas';
|
|
11
|
+
import type { AccountHostingList200, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, AddonsSpamexpertsSso200, WebzaiSso200, WeeblySso200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, ListCrons200, AddCron200, AddCron400, AddCronBody, UpdateCron200, UpdateCronBody, Cron200, CronBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, DbUsage200, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, Domains200, DomainsParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingEcommerceInfo200, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsCheck200, HostingMigrationsCheckParams, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingResellerSsoWhm200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSiteAdd200, HostingSiteAddBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, JetpackBackupStatus200, BackupsJetpackBackup200, SiteAddonCloudflare200, SiteAddonCloudflare400, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainUrl200, SitesDomainUrlBody, SitesDomains200, SitesDomainsCreate200, SitesDomainsCreateBody, SitePendingDomainDelete200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, ResetSiteBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserList200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SiteStatus200, SiteUsers200, SitesVersion200, HostingNameserversV2200, HostingSitesV2200, SshKeyListV2200, SitesListV2200 } from './index.schemas';
|
|
12
12
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
13
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
14
|
/**
|
|
@@ -1862,6 +1862,24 @@ export declare const useSitesSshUserDelete: <TError = AxiosError<unknown, any>,
|
|
|
1862
1862
|
siteId: number;
|
|
1863
1863
|
data: SitesSshUserDeleteBody;
|
|
1864
1864
|
}, TContext>;
|
|
1865
|
+
/**
|
|
1866
|
+
* update ssh user
|
|
1867
|
+
* @summary site - ssh - update user
|
|
1868
|
+
*/
|
|
1869
|
+
export declare const sitesSshUserUpdate: (siteId: number, sitesSshUserUpdateBody: SitesSshUserUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSshUserUpdate200>>;
|
|
1870
|
+
export declare type SitesSshUserUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSshUserUpdate>>>;
|
|
1871
|
+
export declare type SitesSshUserUpdateMutationBody = SitesSshUserUpdateBody;
|
|
1872
|
+
export declare type SitesSshUserUpdateMutationError = AxiosError<unknown>;
|
|
1873
|
+
export declare const useSitesSshUserUpdate: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1874
|
+
mutation?: UseMutationOptions<AxiosResponse<SitesSshUserUpdate200, any>, TError, {
|
|
1875
|
+
siteId: number;
|
|
1876
|
+
data: SitesSshUserUpdateBody;
|
|
1877
|
+
}, TContext> | undefined;
|
|
1878
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
1879
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<SitesSshUserUpdate200, any>, TError, {
|
|
1880
|
+
siteId: number;
|
|
1881
|
+
data: SitesSshUserUpdateBody;
|
|
1882
|
+
}, TContext>;
|
|
1865
1883
|
/**
|
|
1866
1884
|
* Returns information about the site domain's SSL/TLS certificate
|
|
1867
1885
|
* @summary Site domain SSL cert info
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.751.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
@@ -1907,6 +1907,21 @@ export const useSitesSshUserDelete = (options) => {
|
|
|
1907
1907
|
};
|
|
1908
1908
|
return useMutation(mutationFn, mutationOptions);
|
|
1909
1909
|
};
|
|
1910
|
+
/**
|
|
1911
|
+
* update ssh user
|
|
1912
|
+
* @summary site - ssh - update user
|
|
1913
|
+
*/
|
|
1914
|
+
export const sitesSshUserUpdate = (siteId, sitesSshUserUpdateBody, options) => {
|
|
1915
|
+
return axios.put(`/v1/sites/${siteId}/ssh-users`, sitesSshUserUpdateBody, options);
|
|
1916
|
+
};
|
|
1917
|
+
export const useSitesSshUserUpdate = (options) => {
|
|
1918
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
1919
|
+
const mutationFn = (props) => {
|
|
1920
|
+
const { siteId, data } = props !== null && props !== void 0 ? props : {};
|
|
1921
|
+
return sitesSshUserUpdate(siteId, data, axiosOptions);
|
|
1922
|
+
};
|
|
1923
|
+
return useMutation(mutationFn, mutationOptions);
|
|
1924
|
+
};
|
|
1910
1925
|
/**
|
|
1911
1926
|
* Returns information about the site domain's SSL/TLS certificate
|
|
1912
1927
|
* @summary Site domain SSL cert info
|
package/src/index.msw.d.ts
CHANGED
|
@@ -645,7 +645,7 @@ export declare const getSitesSecuritySslAcmeMock: () => {
|
|
|
645
645
|
};
|
|
646
646
|
export declare const getSitesSecuritySslStatusMock: () => {
|
|
647
647
|
domain: string | undefined;
|
|
648
|
-
|
|
648
|
+
ssl_status: string | undefined;
|
|
649
649
|
message: string | undefined;
|
|
650
650
|
product: string | undefined;
|
|
651
651
|
provider: string | undefined;
|
|
@@ -672,6 +672,7 @@ export declare const getSitesSettingsPhpVersionsMock: () => {
|
|
|
672
672
|
export declare const getSitesSshUserListMock: () => {};
|
|
673
673
|
export declare const getSitesSshUserCreateMock: () => {};
|
|
674
674
|
export declare const getSitesSshUserDeleteMock: () => {};
|
|
675
|
+
export declare const getSitesSshUserUpdateMock: () => {};
|
|
675
676
|
export declare const getSitesSslMock: () => {
|
|
676
677
|
domain: string | undefined;
|
|
677
678
|
domain_dns_status: string | undefined;
|
package/src/index.msw.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.751.0
|
|
7
7
|
*/
|
|
8
8
|
import { rest } from 'msw';
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
@@ -115,7 +115,7 @@ export const getSitesSecurityHttpsRedirectionStatusMock = () => ({ success: fake
|
|
|
115
115
|
export const getSitesSecurityHttpsEnableDisableSslMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), redirection_status: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), message: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
116
116
|
export const getSitesSecuritySitelockMock = () => ({ addon_id: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), plan: faker.helpers.arrayElement([faker.random.word(), undefined]), billing_code: faker.helpers.arrayElement([faker.random.word(), undefined]), success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), platform_id: faker.helpers.arrayElement([faker.random.word(), undefined]), upgrade_levels: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.random.word())), undefined]), message: faker.helpers.arrayElement([faker.random.word(), undefined]), has_cdn: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), scope: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
117
117
|
export const getSitesSecuritySslAcmeMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), message: faker.helpers.arrayElement([faker.random.word(), undefined]) });
|
|
118
|
-
export const getSitesSecuritySslStatusMock = () => ({ domain: faker.helpers.arrayElement([faker.random.word(), undefined]),
|
|
118
|
+
export const getSitesSecuritySslStatusMock = () => ({ domain: faker.helpers.arrayElement([faker.random.word(), undefined]), ssl_status: faker.helpers.arrayElement([faker.random.word(), undefined]), message: faker.helpers.arrayElement([faker.random.word(), undefined]), product: faker.helpers.arrayElement([faker.random.word(), undefined]), provider: faker.helpers.arrayElement([faker.random.word(), undefined]), upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
119
119
|
export const getSitesSettingsComingSoonMock = () => ({ enable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
120
120
|
export const getSitesSettingsComingSoonToggleMock = () => ({ success: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
121
121
|
export const getSitesSettingsDebugMock = () => ({ status: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]) });
|
|
@@ -125,6 +125,7 @@ export const getSitesSettingsPhpVersionsMock = () => ({ versions: faker.helpers.
|
|
|
125
125
|
export const getSitesSshUserListMock = () => ({});
|
|
126
126
|
export const getSitesSshUserCreateMock = () => ({});
|
|
127
127
|
export const getSitesSshUserDeleteMock = () => ({});
|
|
128
|
+
export const getSitesSshUserUpdateMock = () => ({});
|
|
128
129
|
export const getSitesSslMock = () => ({ domain: faker.helpers.arrayElement([faker.random.word(), undefined]), domain_dns_status: faker.helpers.arrayElement([faker.random.word(), undefined]), expiration: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), issuer: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), product: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), provider: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), status: faker.helpers.arrayElement([faker.random.word(), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), upgradeable: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
129
130
|
export const getSitesSsoMock = () => ({ sso: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.random.word(), null]), undefined]), other: faker.helpers.arrayElement([Array.from({ length: faker.datatype.number({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ addon_id: faker.helpers.arrayElement([faker.datatype.number({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.random.word(), undefined]), subtype: faker.helpers.arrayElement([faker.random.word(), undefined]), domain: faker.helpers.arrayElement([faker.random.word(), undefined]), added: faker.helpers.arrayElement([faker.random.word(), undefined]) })), undefined]) });
|
|
130
131
|
export const getSiteStatusMock = () => ({ url: faker.helpers.arrayElement([faker.random.word(), undefined]), pending_url: faker.helpers.arrayElement([faker.random.word(), undefined]), cloudflare_ready: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) });
|
|
@@ -371,6 +372,8 @@ export const getHostingUAPIMSW = () => [
|
|
|
371
372
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesSshUserCreateMock()));
|
|
372
373
|
}), rest.delete('*/v1/sites/:siteId/ssh-users', (_req, res, ctx) => {
|
|
373
374
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesSshUserDeleteMock()));
|
|
375
|
+
}), rest.put('*/v1/sites/:siteId/ssh-users', (_req, res, ctx) => {
|
|
376
|
+
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesSshUserUpdateMock()));
|
|
374
377
|
}), rest.get('*/v1/sites/:siteId/ssl', (_req, res, ctx) => {
|
|
375
378
|
return res(ctx.delay(1000), ctx.status(200, 'Mocked status'), ctx.json(getSitesSslMock()));
|
|
376
379
|
}), rest.get('*/v1/sites/:siteId/sso', (_req, res, ctx) => {
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.751.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SitesListV2200ItemsItemResourcesStorage = {
|
|
9
9
|
available?: number | null;
|
|
@@ -70,6 +70,18 @@ export declare type SshKeyListV2200RowsItem = {
|
|
|
70
70
|
export declare type SshKeyListV2200 = {
|
|
71
71
|
rows?: SshKeyListV2200RowsItem[];
|
|
72
72
|
};
|
|
73
|
+
export declare type HostingSitesV2200 = {
|
|
74
|
+
total?: number;
|
|
75
|
+
page?: number;
|
|
76
|
+
limit?: number;
|
|
77
|
+
/** Maximum number of sites the customer can have. Null means 'unlimited'. */
|
|
78
|
+
max_sites?: number | null;
|
|
79
|
+
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
80
|
+
used_sites?: number;
|
|
81
|
+
/** Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'. */
|
|
82
|
+
available_sites?: number | null;
|
|
83
|
+
items?: HostingSitesV2200ItemsItem[];
|
|
84
|
+
};
|
|
73
85
|
export declare type HostingSitesV2200ItemsItemResourcesStorage = {
|
|
74
86
|
available?: number | null;
|
|
75
87
|
total?: number | null;
|
|
@@ -120,18 +132,6 @@ export declare type HostingSitesV2200ItemsItem = {
|
|
|
120
132
|
pending_url_data?: HostingSitesV2200ItemsItemPendingUrlData;
|
|
121
133
|
resources?: HostingSitesV2200ItemsItemResources;
|
|
122
134
|
};
|
|
123
|
-
export declare type HostingSitesV2200 = {
|
|
124
|
-
total?: number;
|
|
125
|
-
page?: number;
|
|
126
|
-
limit?: number;
|
|
127
|
-
/** Maximum number of sites the customer can have. Null means 'unlimited'. */
|
|
128
|
-
max_sites?: number | null;
|
|
129
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
130
|
-
used_sites?: number;
|
|
131
|
-
/** Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'. */
|
|
132
|
-
available_sites?: number | null;
|
|
133
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
134
|
-
};
|
|
135
135
|
export declare type HostingNameserversV2200HostsItem = {
|
|
136
136
|
host?: string;
|
|
137
137
|
ips?: string[];
|
|
@@ -212,6 +212,17 @@ export declare type SitesSsl200 = {
|
|
|
212
212
|
type?: string | null;
|
|
213
213
|
upgradeable?: boolean;
|
|
214
214
|
};
|
|
215
|
+
export declare type SitesSshUserUpdate200 = {
|
|
216
|
+
[key: string]: any;
|
|
217
|
+
};
|
|
218
|
+
export declare type SitesSshUserUpdateBody = {
|
|
219
|
+
/** username of user */
|
|
220
|
+
ssh_user: string;
|
|
221
|
+
/** optional password */
|
|
222
|
+
pass?: string;
|
|
223
|
+
/** optional public key */
|
|
224
|
+
pubkey?: string;
|
|
225
|
+
};
|
|
215
226
|
export declare type SitesSshUserDelete200 = {
|
|
216
227
|
[key: string]: any;
|
|
217
228
|
};
|
|
@@ -222,7 +233,12 @@ export declare type SitesSshUserCreate200 = {
|
|
|
222
233
|
[key: string]: any;
|
|
223
234
|
};
|
|
224
235
|
export declare type SitesSshUserCreateBody = {
|
|
225
|
-
|
|
236
|
+
/** username of user */
|
|
237
|
+
ssh_user: string;
|
|
238
|
+
/** optional password */
|
|
239
|
+
pass?: string;
|
|
240
|
+
/** optional public key */
|
|
241
|
+
pubkey?: string;
|
|
226
242
|
};
|
|
227
243
|
export declare type SitesSshUserList200 = {
|
|
228
244
|
[key: string]: any;
|
|
@@ -258,7 +274,7 @@ export declare type SitesSettingsComingSoon200 = {
|
|
|
258
274
|
};
|
|
259
275
|
export declare type SitesSecuritySslStatus200 = {
|
|
260
276
|
domain?: string;
|
|
261
|
-
|
|
277
|
+
ssl_status?: string;
|
|
262
278
|
message?: string;
|
|
263
279
|
product?: string;
|
|
264
280
|
provider?: string;
|
|
@@ -1237,7 +1253,7 @@ export declare type HostingAccount200ResourcesStorage = {
|
|
|
1237
1253
|
export declare type HostingAccount200Resources = {
|
|
1238
1254
|
storage?: HostingAccount200ResourcesStorage;
|
|
1239
1255
|
workers?: HostingAccount200ResourcesWorkers;
|
|
1240
|
-
};
|
|
1256
|
+
} | null;
|
|
1241
1257
|
export declare type HostingAccount200Billing = {
|
|
1242
1258
|
product_name?: string;
|
|
1243
1259
|
};
|