@newfold/huapi-js 1.746.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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.4.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "1.746.0",
13
+ "version": "1.751.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
package/src/index.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.746.0
6
+ * OpenAPI spec version: 1.751.0
7
7
  */
8
8
  import axios from 'axios';
9
9
  import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
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.746.0
6
+ * OpenAPI spec version: 1.751.0
7
7
  */
8
8
  import axios from 'axios';
9
9
  import { useQuery, useMutation } from '@tanstack/react-query';
@@ -645,7 +645,7 @@ export declare const getSitesSecuritySslAcmeMock: () => {
645
645
  };
646
646
  export declare const getSitesSecuritySslStatusMock: () => {
647
647
  domain: string | undefined;
648
- status: string | undefined;
648
+ ssl_status: string | undefined;
649
649
  message: string | undefined;
650
650
  product: string | undefined;
651
651
  provider: 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.746.0
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]), 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]) });
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]) });
@@ -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.746.0
6
+ * OpenAPI spec version: 1.751.0
7
7
  */
8
8
  export declare type SitesListV2200ItemsItemResourcesStorage = {
9
9
  available?: number | null;
@@ -216,8 +216,12 @@ export declare type SitesSshUserUpdate200 = {
216
216
  [key: string]: any;
217
217
  };
218
218
  export declare type SitesSshUserUpdateBody = {
219
- ssh_user?: string;
219
+ /** username of user */
220
+ ssh_user: string;
221
+ /** optional password */
220
222
  pass?: string;
223
+ /** optional public key */
224
+ pubkey?: string;
221
225
  };
222
226
  export declare type SitesSshUserDelete200 = {
223
227
  [key: string]: any;
@@ -229,8 +233,12 @@ export declare type SitesSshUserCreate200 = {
229
233
  [key: string]: any;
230
234
  };
231
235
  export declare type SitesSshUserCreateBody = {
232
- ssh_user?: string;
236
+ /** username of user */
237
+ ssh_user: string;
238
+ /** optional password */
233
239
  pass?: string;
240
+ /** optional public key */
241
+ pubkey?: string;
234
242
  };
235
243
  export declare type SitesSshUserList200 = {
236
244
  [key: string]: any;
@@ -266,7 +274,7 @@ export declare type SitesSettingsComingSoon200 = {
266
274
  };
267
275
  export declare type SitesSecuritySslStatus200 = {
268
276
  domain?: string;
269
- status?: string;
277
+ ssl_status?: string;
270
278
  message?: string;
271
279
  product?: string;
272
280
  provider?: string;
@@ -1245,7 +1253,7 @@ export declare type HostingAccount200ResourcesStorage = {
1245
1253
  export declare type HostingAccount200Resources = {
1246
1254
  storage?: HostingAccount200ResourcesStorage;
1247
1255
  workers?: HostingAccount200ResourcesWorkers;
1248
- };
1256
+ } | null;
1249
1257
  export declare type HostingAccount200Billing = {
1250
1258
  product_name?: string;
1251
1259
  };