hostinger-api-sdk 1.37.0 → 1.39.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.
Files changed (45) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1052 -17
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +678 -17
  7. package/dist/api.js +723 -19
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +678 -17
  15. package/dist/esm/api.js +713 -9
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/AgencyHostingFilesApi.md +54 -0
  27. package/docs/HostingFilesApi.md +56 -0
  28. package/docs/HostingNodeJSApi.md +124 -1
  29. package/docs/HostingV1FilesGenerateUploadUrlRequest.md +22 -0
  30. package/docs/HostingV1FilesUploadUrlResource.md +24 -0
  31. package/docs/HostingV1NodeJsBuildSettingsResource.md +34 -0
  32. package/docs/HostingV1NodeJsGetBuildSettingsRequest.md +20 -0
  33. package/docs/HostingV1NodeJsStartBuildRequest.md +36 -0
  34. package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +21 -0
  35. package/docs/HostingV1WebsitesDeployArchiveRequest.md +20 -0
  36. package/docs/HostingV1WebsitesWebsiteResource.md +8 -4
  37. package/docs/HostingWebsitesApi.md +63 -1
  38. package/docs/WordPressInstallationsApi.md +62 -0
  39. package/docs/WordPressPluginsApi.md +62 -0
  40. package/docs/WordPressThemesApi.md +62 -0
  41. package/docs/WordPressV1InstallationsImportWordPressRequest.md +22 -0
  42. package/docs/WordPressV1PluginsDeployPluginRequest.md +22 -0
  43. package/docs/WordPressV1ThemesDeployThemeRequest.md +24 -0
  44. package/index.ts +1 -1
  45. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.39.0
6
+ * API Version: 1.41.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -272,6 +272,32 @@ export const HostingV1NodeJsBuildResourceStateEnum = {
272
272
  Completed: 'completed',
273
273
  Failed: 'failed'
274
274
  };
275
+ export const HostingV1NodeJsBuildSettingsResourceAppTypeEnum = {
276
+ CreateReactApp: 'create-react-app',
277
+ Gatsby: 'gatsby',
278
+ Vite: 'vite',
279
+ Angular: 'angular',
280
+ React: 'react',
281
+ Vue: 'vue',
282
+ Parcel: 'parcel',
283
+ Next: 'next',
284
+ Nuxt: 'nuxt',
285
+ Nest: 'nest',
286
+ Express: 'express',
287
+ Fastify: 'fastify',
288
+ Astro: 'astro',
289
+ Svelte: 'svelte',
290
+ SvelteKit: 'svelte-kit',
291
+ Hono: 'hono',
292
+ ReactRouter: 'react-router',
293
+ Nitro: 'nitro',
294
+ Other: 'other'
295
+ };
296
+ export const HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = {
297
+ Npm: 'npm',
298
+ Yarn: 'yarn',
299
+ Pnpm: 'pnpm'
300
+ };
275
301
  export const HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
276
302
  NUMBER_18: 18,
277
303
  NUMBER_20: 20,
@@ -304,6 +330,41 @@ export const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
304
330
  Yarn: 'yarn',
305
331
  Pnpm: 'pnpm'
306
332
  };
333
+ export const HostingV1NodeJsStartBuildRequestNodeVersionEnum = {
334
+ NUMBER_18: 18,
335
+ NUMBER_20: 20,
336
+ NUMBER_22: 22,
337
+ NUMBER_24: 24
338
+ };
339
+ export const HostingV1NodeJsStartBuildRequestAppTypeEnum = {
340
+ CreateReactApp: 'create-react-app',
341
+ Gatsby: 'gatsby',
342
+ Vite: 'vite',
343
+ Angular: 'angular',
344
+ React: 'react',
345
+ Vue: 'vue',
346
+ Parcel: 'parcel',
347
+ Next: 'next',
348
+ Nuxt: 'nuxt',
349
+ Nest: 'nest',
350
+ Express: 'express',
351
+ Fastify: 'fastify',
352
+ Astro: 'astro',
353
+ Svelte: 'svelte',
354
+ SvelteKit: 'svelte-kit',
355
+ Hono: 'hono',
356
+ ReactRouter: 'react-router',
357
+ Nitro: 'nitro',
358
+ Other: 'other'
359
+ };
360
+ export const HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
361
+ Npm: 'npm',
362
+ Yarn: 'yarn',
363
+ Pnpm: 'pnpm'
364
+ };
365
+ export const HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
366
+ Archive: 'archive'
367
+ };
307
368
  export const HostingV1NodeJsVulnerabilityResourceSeverityEnum = {
308
369
  Low: 'low',
309
370
  Moderate: 'moderate',
@@ -317,6 +378,13 @@ export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
317
378
  Parked: 'parked',
318
379
  Subdomain: 'subdomain'
319
380
  };
381
+ export const HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = {
382
+ Wordpress: 'wordpress',
383
+ Builder: 'builder',
384
+ Horizons: 'horizons',
385
+ Nodejs: 'nodejs',
386
+ Other: 'other'
387
+ };
320
388
  export const MailV1ApiTokensApiTokenCreatedResourceTypeEnum = {
321
389
  ApiToken: 'api_token',
322
390
  Oauth: 'oauth'
@@ -2066,6 +2134,38 @@ export class AgencyHostingDomainsApi extends BaseAPI {
2066
2134
  */
2067
2135
  export const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
2068
2136
  return {
2137
+ /**
2138
+ * Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
2139
+ * @summary Generate upload URL
2140
+ * @param {string} websiteUid Agency Plan website UID
2141
+ * @param {*} [options] Override http request option.
2142
+ * @throws {RequiredError}
2143
+ */
2144
+ generateUploadURLV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
2145
+ // verify required parameter 'websiteUid' is not null or undefined
2146
+ assertParamExists('generateUploadURLV1', 'websiteUid', websiteUid);
2147
+ const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/files/upload-urls`
2148
+ .replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
2149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2151
+ let baseOptions;
2152
+ if (configuration) {
2153
+ baseOptions = configuration.baseOptions;
2154
+ }
2155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2156
+ const localVarHeaderParameter = {};
2157
+ const localVarQueryParameter = {};
2158
+ // authentication apiToken required
2159
+ // http bearer authentication required
2160
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2163
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2164
+ return {
2165
+ url: toPathString(localVarUrlObj),
2166
+ options: localVarRequestOptions,
2167
+ };
2168
+ }),
2069
2169
  /**
2070
2170
  * Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
2071
2171
  * @summary Import website from archive
@@ -2112,6 +2212,21 @@ export const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
2112
2212
  export const AgencyHostingFilesApiFp = function (configuration) {
2113
2213
  const localVarAxiosParamCreator = AgencyHostingFilesApiAxiosParamCreator(configuration);
2114
2214
  return {
2215
+ /**
2216
+ * Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
2217
+ * @summary Generate upload URL
2218
+ * @param {string} websiteUid Agency Plan website UID
2219
+ * @param {*} [options] Override http request option.
2220
+ * @throws {RequiredError}
2221
+ */
2222
+ generateUploadURLV1(websiteUid, options) {
2223
+ return __awaiter(this, void 0, void 0, function* () {
2224
+ var _a, _b;
2225
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(websiteUid, options);
2226
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
2227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2228
+ });
2229
+ },
2115
2230
  /**
2116
2231
  * Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
2117
2232
  * @summary Import website from archive
@@ -2137,6 +2252,16 @@ export const AgencyHostingFilesApiFp = function (configuration) {
2137
2252
  export const AgencyHostingFilesApiFactory = function (configuration, basePath, axios) {
2138
2253
  const localVarFp = AgencyHostingFilesApiFp(configuration);
2139
2254
  return {
2255
+ /**
2256
+ * Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
2257
+ * @summary Generate upload URL
2258
+ * @param {string} websiteUid Agency Plan website UID
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ generateUploadURLV1(websiteUid, options) {
2263
+ return localVarFp.generateUploadURLV1(websiteUid, options).then((request) => request(axios, basePath));
2264
+ },
2140
2265
  /**
2141
2266
  * Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
2142
2267
  * @summary Import website from archive
@@ -2157,6 +2282,17 @@ export const AgencyHostingFilesApiFactory = function (configuration, basePath, a
2157
2282
  * @extends {BaseAPI}
2158
2283
  */
2159
2284
  export class AgencyHostingFilesApi extends BaseAPI {
2285
+ /**
2286
+ * Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
2287
+ * @summary Generate upload URL
2288
+ * @param {string} websiteUid Agency Plan website UID
2289
+ * @param {*} [options] Override http request option.
2290
+ * @throws {RequiredError}
2291
+ * @memberof AgencyHostingFilesApi
2292
+ */
2293
+ generateUploadURLV1(websiteUid, options) {
2294
+ return AgencyHostingFilesApiFp(this.configuration).generateUploadURLV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
2295
+ }
2160
2296
  /**
2161
2297
  * Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
2162
2298
  * @summary Import website from archive
@@ -11679,6 +11815,39 @@ export class HostingDomainsApi extends BaseAPI {
11679
11815
  */
11680
11816
  export const HostingFilesApiAxiosParamCreator = function (configuration) {
11681
11817
  return {
11818
+ /**
11819
+ * Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
11820
+ * @summary Generate upload URL
11821
+ * @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
11822
+ * @param {*} [options] Override http request option.
11823
+ * @throws {RequiredError}
11824
+ */
11825
+ generateUploadURLV1: (hostingV1FilesGenerateUploadUrlRequest_1, ...args_1) => __awaiter(this, [hostingV1FilesGenerateUploadUrlRequest_1, ...args_1], void 0, function* (hostingV1FilesGenerateUploadUrlRequest, options = {}) {
11826
+ // verify required parameter 'hostingV1FilesGenerateUploadUrlRequest' is not null or undefined
11827
+ assertParamExists('generateUploadURLV1', 'hostingV1FilesGenerateUploadUrlRequest', hostingV1FilesGenerateUploadUrlRequest);
11828
+ const localVarPath = `/api/hosting/v1/files/upload-urls`;
11829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11831
+ let baseOptions;
11832
+ if (configuration) {
11833
+ baseOptions = configuration.baseOptions;
11834
+ }
11835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11836
+ const localVarHeaderParameter = {};
11837
+ const localVarQueryParameter = {};
11838
+ // authentication apiToken required
11839
+ // http bearer authentication required
11840
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11842
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11843
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11844
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11845
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1FilesGenerateUploadUrlRequest, localVarRequestOptions, configuration);
11846
+ return {
11847
+ url: toPathString(localVarUrlObj),
11848
+ options: localVarRequestOptions,
11849
+ };
11850
+ }),
11682
11851
  /**
11683
11852
  * Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
11684
11853
  * @summary Get website file content
@@ -11794,6 +11963,21 @@ export const HostingFilesApiAxiosParamCreator = function (configuration) {
11794
11963
  export const HostingFilesApiFp = function (configuration) {
11795
11964
  const localVarAxiosParamCreator = HostingFilesApiAxiosParamCreator(configuration);
11796
11965
  return {
11966
+ /**
11967
+ * Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
11968
+ * @summary Generate upload URL
11969
+ * @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
11970
+ * @param {*} [options] Override http request option.
11971
+ * @throws {RequiredError}
11972
+ */
11973
+ generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
11974
+ return __awaiter(this, void 0, void 0, function* () {
11975
+ var _a, _b;
11976
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options);
11977
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
11978
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11979
+ });
11980
+ },
11797
11981
  /**
11798
11982
  * Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
11799
11983
  * @summary Get website file content
@@ -11843,6 +12027,16 @@ export const HostingFilesApiFp = function (configuration) {
11843
12027
  export const HostingFilesApiFactory = function (configuration, basePath, axios) {
11844
12028
  const localVarFp = HostingFilesApiFp(configuration);
11845
12029
  return {
12030
+ /**
12031
+ * Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
12032
+ * @summary Generate upload URL
12033
+ * @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
12034
+ * @param {*} [options] Override http request option.
12035
+ * @throws {RequiredError}
12036
+ */
12037
+ generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
12038
+ return localVarFp.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(axios, basePath));
12039
+ },
11846
12040
  /**
11847
12041
  * Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
11848
12042
  * @summary Get website file content
@@ -11882,6 +12076,17 @@ export const HostingFilesApiFactory = function (configuration, basePath, axios)
11882
12076
  * @extends {BaseAPI}
11883
12077
  */
11884
12078
  export class HostingFilesApi extends BaseAPI {
12079
+ /**
12080
+ * Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
12081
+ * @summary Generate upload URL
12082
+ * @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
12083
+ * @param {*} [options] Override http request option.
12084
+ * @throws {RequiredError}
12085
+ * @memberof HostingFilesApi
12086
+ */
12087
+ generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
12088
+ return HostingFilesApiFp(this.configuration).generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(this.axios, this.basePath));
12089
+ }
11885
12090
  /**
11886
12091
  * Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
11887
12092
  * @summary Get website file content
@@ -11931,7 +12136,7 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
11931
12136
  export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
11932
12137
  return {
11933
12138
  /**
11934
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12139
+ * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
11935
12140
  * @summary Create NodeJS build from archive
11936
12141
  * @param {string} username
11937
12142
  * @param {string} domain Domain name
@@ -12015,6 +12220,48 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12015
12220
  options: localVarRequestOptions,
12016
12221
  };
12017
12222
  }),
12223
+ /**
12224
+ * Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
12225
+ * @summary Get Node.js build settings from archive
12226
+ * @param {string} username
12227
+ * @param {string} domain Domain name
12228
+ * @param {string} archivePath The path to the archive file relative to the document root of the vhost
12229
+ * @param {*} [options] Override http request option.
12230
+ * @throws {RequiredError}
12231
+ */
12232
+ getNodeJsBuildSettingsFromArchiveV1: (username_1, domain_1, archivePath_1, ...args_1) => __awaiter(this, [username_1, domain_1, archivePath_1, ...args_1], void 0, function* (username, domain, archivePath, options = {}) {
12233
+ // verify required parameter 'username' is not null or undefined
12234
+ assertParamExists('getNodeJsBuildSettingsFromArchiveV1', 'username', username);
12235
+ // verify required parameter 'domain' is not null or undefined
12236
+ assertParamExists('getNodeJsBuildSettingsFromArchiveV1', 'domain', domain);
12237
+ // verify required parameter 'archivePath' is not null or undefined
12238
+ assertParamExists('getNodeJsBuildSettingsFromArchiveV1', 'archivePath', archivePath);
12239
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive`
12240
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12241
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12244
+ let baseOptions;
12245
+ if (configuration) {
12246
+ baseOptions = configuration.baseOptions;
12247
+ }
12248
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12249
+ const localVarHeaderParameter = {};
12250
+ const localVarQueryParameter = {};
12251
+ // authentication apiToken required
12252
+ // http bearer authentication required
12253
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12254
+ if (archivePath !== undefined) {
12255
+ localVarQueryParameter['archive_path'] = archivePath;
12256
+ }
12257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12259
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12260
+ return {
12261
+ url: toPathString(localVarUrlObj),
12262
+ options: localVarRequestOptions,
12263
+ };
12264
+ }),
12018
12265
  /**
12019
12266
  * Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
12020
12267
  * @summary List NodeJS builds
@@ -12180,6 +12427,47 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12180
12427
  options: localVarRequestOptions,
12181
12428
  };
12182
12429
  }),
12430
+ /**
12431
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12432
+ * @summary Start Node.js build
12433
+ * @param {string} username
12434
+ * @param {string} domain Domain name
12435
+ * @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
12436
+ * @param {*} [options] Override http request option.
12437
+ * @throws {RequiredError}
12438
+ */
12439
+ startNodeJsBuildV1: (username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsStartBuildRequest, options = {}) {
12440
+ // verify required parameter 'username' is not null or undefined
12441
+ assertParamExists('startNodeJsBuildV1', 'username', username);
12442
+ // verify required parameter 'domain' is not null or undefined
12443
+ assertParamExists('startNodeJsBuildV1', 'domain', domain);
12444
+ // verify required parameter 'hostingV1NodeJsStartBuildRequest' is not null or undefined
12445
+ assertParamExists('startNodeJsBuildV1', 'hostingV1NodeJsStartBuildRequest', hostingV1NodeJsStartBuildRequest);
12446
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds`
12447
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12448
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12451
+ let baseOptions;
12452
+ if (configuration) {
12453
+ baseOptions = configuration.baseOptions;
12454
+ }
12455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12456
+ const localVarHeaderParameter = {};
12457
+ const localVarQueryParameter = {};
12458
+ // authentication apiToken required
12459
+ // http bearer authentication required
12460
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12465
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsStartBuildRequest, localVarRequestOptions, configuration);
12466
+ return {
12467
+ url: toPathString(localVarUrlObj),
12468
+ options: localVarRequestOptions,
12469
+ };
12470
+ }),
12183
12471
  };
12184
12472
  };
12185
12473
  /**
@@ -12190,7 +12478,7 @@ export const HostingNodeJSApiFp = function (configuration) {
12190
12478
  const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration);
12191
12479
  return {
12192
12480
  /**
12193
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12481
+ * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12194
12482
  * @summary Create NodeJS build from archive
12195
12483
  * @param {string} username
12196
12484
  * @param {string} domain Domain name
@@ -12224,6 +12512,23 @@ export const HostingNodeJSApiFp = function (configuration) {
12224
12512
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12225
12513
  });
12226
12514
  },
12515
+ /**
12516
+ * Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
12517
+ * @summary Get Node.js build settings from archive
12518
+ * @param {string} username
12519
+ * @param {string} domain Domain name
12520
+ * @param {string} archivePath The path to the archive file relative to the document root of the vhost
12521
+ * @param {*} [options] Override http request option.
12522
+ * @throws {RequiredError}
12523
+ */
12524
+ getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
12525
+ return __awaiter(this, void 0, void 0, function* () {
12526
+ var _a, _b;
12527
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options);
12528
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12529
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12530
+ });
12531
+ },
12227
12532
  /**
12228
12533
  * Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
12229
12534
  * @summary List NodeJS builds
@@ -12293,6 +12598,23 @@ export const HostingNodeJSApiFp = function (configuration) {
12293
12598
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12294
12599
  });
12295
12600
  },
12601
+ /**
12602
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12603
+ * @summary Start Node.js build
12604
+ * @param {string} username
12605
+ * @param {string} domain Domain name
12606
+ * @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
12607
+ * @param {*} [options] Override http request option.
12608
+ * @throws {RequiredError}
12609
+ */
12610
+ startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
12611
+ return __awaiter(this, void 0, void 0, function* () {
12612
+ var _a, _b;
12613
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options);
12614
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.startNodeJsBuildV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12616
+ });
12617
+ },
12296
12618
  };
12297
12619
  };
12298
12620
  /**
@@ -12303,7 +12625,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12303
12625
  const localVarFp = HostingNodeJSApiFp(configuration);
12304
12626
  return {
12305
12627
  /**
12306
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12628
+ * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12307
12629
  * @summary Create NodeJS build from archive
12308
12630
  * @param {string} username
12309
12631
  * @param {string} domain Domain name
@@ -12327,6 +12649,18 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12327
12649
  getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
12328
12650
  return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
12329
12651
  },
12652
+ /**
12653
+ * Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
12654
+ * @summary Get Node.js build settings from archive
12655
+ * @param {string} username
12656
+ * @param {string} domain Domain name
12657
+ * @param {string} archivePath The path to the archive file relative to the document root of the vhost
12658
+ * @param {*} [options] Override http request option.
12659
+ * @throws {RequiredError}
12660
+ */
12661
+ getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
12662
+ return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
12663
+ },
12330
12664
  /**
12331
12665
  * Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
12332
12666
  * @summary List NodeJS builds
@@ -12376,6 +12710,18 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12376
12710
  restartNodeJsApplicationV1(username, domain, options) {
12377
12711
  return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
12378
12712
  },
12713
+ /**
12714
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12715
+ * @summary Start Node.js build
12716
+ * @param {string} username
12717
+ * @param {string} domain Domain name
12718
+ * @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
12719
+ * @param {*} [options] Override http request option.
12720
+ * @throws {RequiredError}
12721
+ */
12722
+ startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
12723
+ return localVarFp.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(axios, basePath));
12724
+ },
12379
12725
  };
12380
12726
  };
12381
12727
  /**
@@ -12386,7 +12732,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12386
12732
  */
12387
12733
  export class HostingNodeJSApi extends BaseAPI {
12388
12734
  /**
12389
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12735
+ * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12390
12736
  * @summary Create NodeJS build from archive
12391
12737
  * @param {string} username
12392
12738
  * @param {string} domain Domain name
@@ -12412,6 +12758,19 @@ export class HostingNodeJSApi extends BaseAPI {
12412
12758
  getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
12413
12759
  return HostingNodeJSApiFp(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
12414
12760
  }
12761
+ /**
12762
+ * Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
12763
+ * @summary Get Node.js build settings from archive
12764
+ * @param {string} username
12765
+ * @param {string} domain Domain name
12766
+ * @param {string} archivePath The path to the archive file relative to the document root of the vhost
12767
+ * @param {*} [options] Override http request option.
12768
+ * @throws {RequiredError}
12769
+ * @memberof HostingNodeJSApi
12770
+ */
12771
+ getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
12772
+ return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
12773
+ }
12415
12774
  /**
12416
12775
  * Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
12417
12776
  * @summary List NodeJS builds
@@ -12465,6 +12824,19 @@ export class HostingNodeJSApi extends BaseAPI {
12465
12824
  restartNodeJsApplicationV1(username, domain, options) {
12466
12825
  return HostingNodeJSApiFp(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12467
12826
  }
12827
+ /**
12828
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12829
+ * @summary Start Node.js build
12830
+ * @param {string} username
12831
+ * @param {string} domain Domain name
12832
+ * @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
12833
+ * @param {*} [options] Override http request option.
12834
+ * @throws {RequiredError}
12835
+ * @memberof HostingNodeJSApi
12836
+ */
12837
+ startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
12838
+ return HostingNodeJSApiFp(this.configuration).startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(this.axios, this.basePath));
12839
+ }
12468
12840
  }
12469
12841
  /**
12470
12842
  * @export
@@ -13487,7 +13859,48 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
13487
13859
  };
13488
13860
  }),
13489
13861
  /**
13490
- * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13862
+ * Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
13863
+ * @summary Deploy static site archive
13864
+ * @param {string} username
13865
+ * @param {string} domain Domain name
13866
+ * @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
13867
+ * @param {*} [options] Override http request option.
13868
+ * @throws {RequiredError}
13869
+ */
13870
+ deployStaticSiteArchiveV1: (username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1WebsitesDeployArchiveRequest, options = {}) {
13871
+ // verify required parameter 'username' is not null or undefined
13872
+ assertParamExists('deployStaticSiteArchiveV1', 'username', username);
13873
+ // verify required parameter 'domain' is not null or undefined
13874
+ assertParamExists('deployStaticSiteArchiveV1', 'domain', domain);
13875
+ // verify required parameter 'hostingV1WebsitesDeployArchiveRequest' is not null or undefined
13876
+ assertParamExists('deployStaticSiteArchiveV1', 'hostingV1WebsitesDeployArchiveRequest', hostingV1WebsitesDeployArchiveRequest);
13877
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/deploy`
13878
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13879
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13882
+ let baseOptions;
13883
+ if (configuration) {
13884
+ baseOptions = configuration.baseOptions;
13885
+ }
13886
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13887
+ const localVarHeaderParameter = {};
13888
+ const localVarQueryParameter = {};
13889
+ // authentication apiToken required
13890
+ // http bearer authentication required
13891
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13892
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13893
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13894
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13895
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13896
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WebsitesDeployArchiveRequest, localVarRequestOptions, configuration);
13897
+ return {
13898
+ url: toPathString(localVarUrlObj),
13899
+ options: localVarRequestOptions,
13900
+ };
13901
+ }),
13902
+ /**
13903
+ * Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13491
13904
  * @summary List websites
13492
13905
  * @param {number} [page] Page number
13493
13906
  * @param {number} [perPage] Number of items per page
@@ -13578,7 +13991,24 @@ export const HostingWebsitesApiFp = function (configuration) {
13578
13991
  });
13579
13992
  },
13580
13993
  /**
13581
- * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13994
+ * Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
13995
+ * @summary Deploy static site archive
13996
+ * @param {string} username
13997
+ * @param {string} domain Domain name
13998
+ * @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
13999
+ * @param {*} [options] Override http request option.
14000
+ * @throws {RequiredError}
14001
+ */
14002
+ deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
14003
+ return __awaiter(this, void 0, void 0, function* () {
14004
+ var _a, _b;
14005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options);
14006
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWebsitesApi.deployStaticSiteArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14007
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14008
+ });
14009
+ },
14010
+ /**
14011
+ * Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13582
14012
  * @summary List websites
13583
14013
  * @param {number} [page] Page number
13584
14014
  * @param {number} [perPage] Number of items per page
@@ -13627,7 +14057,19 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
13627
14057
  return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
13628
14058
  },
13629
14059
  /**
13630
- * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
14060
+ * Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
14061
+ * @summary Deploy static site archive
14062
+ * @param {string} username
14063
+ * @param {string} domain Domain name
14064
+ * @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
14065
+ * @param {*} [options] Override http request option.
14066
+ * @throws {RequiredError}
14067
+ */
14068
+ deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
14069
+ return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
14070
+ },
14071
+ /**
14072
+ * Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13631
14073
  * @summary List websites
13632
14074
  * @param {number} [page] Page number
13633
14075
  * @param {number} [perPage] Number of items per page
@@ -13673,7 +14115,20 @@ export class HostingWebsitesApi extends BaseAPI {
13673
14115
  return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
13674
14116
  }
13675
14117
  /**
13676
- * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
14118
+ * Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
14119
+ * @summary Deploy static site archive
14120
+ * @param {string} username
14121
+ * @param {string} domain Domain name
14122
+ * @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
14123
+ * @param {*} [options] Override http request option.
14124
+ * @throws {RequiredError}
14125
+ * @memberof HostingWebsitesApi
14126
+ */
14127
+ deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
14128
+ return HostingWebsitesApiFp(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
14129
+ }
14130
+ /**
14131
+ * Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
13677
14132
  * @summary List websites
13678
14133
  * @param {number} [page] Page number
13679
14134
  * @param {number} [perPage] Number of items per page
@@ -26346,6 +26801,47 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
26346
26801
  options: localVarRequestOptions,
26347
26802
  };
26348
26803
  }),
26804
+ /**
26805
+ * Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
26806
+ * @summary Import WordPress website
26807
+ * @param {string} username
26808
+ * @param {string} domain Domain name
26809
+ * @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
26810
+ * @param {*} [options] Override http request option.
26811
+ * @throws {RequiredError}
26812
+ */
26813
+ importWordPressWebsiteV1: (username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1InstallationsImportWordPressRequest, options = {}) {
26814
+ // verify required parameter 'username' is not null or undefined
26815
+ assertParamExists('importWordPressWebsiteV1', 'username', username);
26816
+ // verify required parameter 'domain' is not null or undefined
26817
+ assertParamExists('importWordPressWebsiteV1', 'domain', domain);
26818
+ // verify required parameter 'wordPressV1InstallationsImportWordPressRequest' is not null or undefined
26819
+ assertParamExists('importWordPressWebsiteV1', 'wordPressV1InstallationsImportWordPressRequest', wordPressV1InstallationsImportWordPressRequest);
26820
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import`
26821
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
26822
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
26823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26825
+ let baseOptions;
26826
+ if (configuration) {
26827
+ baseOptions = configuration.baseOptions;
26828
+ }
26829
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
26830
+ const localVarHeaderParameter = {};
26831
+ const localVarQueryParameter = {};
26832
+ // authentication apiToken required
26833
+ // http bearer authentication required
26834
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
26835
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26836
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26837
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26838
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26839
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1InstallationsImportWordPressRequest, localVarRequestOptions, configuration);
26840
+ return {
26841
+ url: toPathString(localVarUrlObj),
26842
+ options: localVarRequestOptions,
26843
+ };
26844
+ }),
26349
26845
  /**
26350
26846
  * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
26351
26847
  * @summary Install WordPress
@@ -26609,6 +27105,23 @@ export const WordPressInstallationsApiFp = function (configuration) {
26609
27105
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26610
27106
  });
26611
27107
  },
27108
+ /**
27109
+ * Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
27110
+ * @summary Import WordPress website
27111
+ * @param {string} username
27112
+ * @param {string} domain Domain name
27113
+ * @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
27114
+ * @param {*} [options] Override http request option.
27115
+ * @throws {RequiredError}
27116
+ */
27117
+ importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
27118
+ return __awaiter(this, void 0, void 0, function* () {
27119
+ var _a, _b;
27120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options);
27121
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressInstallationsApi.importWordPressWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
27122
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27123
+ });
27124
+ },
26612
27125
  /**
26613
27126
  * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
26614
27127
  * @summary Install WordPress
@@ -26744,6 +27257,18 @@ export const WordPressInstallationsApiFactory = function (configuration, basePat
26744
27257
  getInstallationJWTTokenV1(username, software, options) {
26745
27258
  return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
26746
27259
  },
27260
+ /**
27261
+ * Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
27262
+ * @summary Import WordPress website
27263
+ * @param {string} username
27264
+ * @param {string} domain Domain name
27265
+ * @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
27266
+ * @param {*} [options] Override http request option.
27267
+ * @throws {RequiredError}
27268
+ */
27269
+ importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
27270
+ return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
27271
+ },
26747
27272
  /**
26748
27273
  * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
26749
27274
  * @summary Install WordPress
@@ -26858,6 +27383,19 @@ export class WordPressInstallationsApi extends BaseAPI {
26858
27383
  getInstallationJWTTokenV1(username, software, options) {
26859
27384
  return WordPressInstallationsApiFp(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
26860
27385
  }
27386
+ /**
27387
+ * Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
27388
+ * @summary Import WordPress website
27389
+ * @param {string} username
27390
+ * @param {string} domain Domain name
27391
+ * @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
27392
+ * @param {*} [options] Override http request option.
27393
+ * @throws {RequiredError}
27394
+ * @memberof WordPressInstallationsApi
27395
+ */
27396
+ importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
27397
+ return WordPressInstallationsApiFp(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
27398
+ }
26861
27399
  /**
26862
27400
  * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
26863
27401
  * @summary Install WordPress
@@ -27726,6 +28264,47 @@ export const WordPressPluginsApiAxiosParamCreator = function (configuration) {
27726
28264
  options: localVarRequestOptions,
27727
28265
  };
27728
28266
  }),
28267
+ /**
28268
+ * Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
28269
+ * @summary Deploy WordPress plugin
28270
+ * @param {string} username
28271
+ * @param {string} domain Domain name
28272
+ * @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
28273
+ * @param {*} [options] Override http request option.
28274
+ * @throws {RequiredError}
28275
+ */
28276
+ deployWordPressPluginV1: (username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1PluginsDeployPluginRequest, options = {}) {
28277
+ // verify required parameter 'username' is not null or undefined
28278
+ assertParamExists('deployWordPressPluginV1', 'username', username);
28279
+ // verify required parameter 'domain' is not null or undefined
28280
+ assertParamExists('deployWordPressPluginV1', 'domain', domain);
28281
+ // verify required parameter 'wordPressV1PluginsDeployPluginRequest' is not null or undefined
28282
+ assertParamExists('deployWordPressPluginV1', 'wordPressV1PluginsDeployPluginRequest', wordPressV1PluginsDeployPluginRequest);
28283
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy`
28284
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
28285
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
28286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28288
+ let baseOptions;
28289
+ if (configuration) {
28290
+ baseOptions = configuration.baseOptions;
28291
+ }
28292
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
28293
+ const localVarHeaderParameter = {};
28294
+ const localVarQueryParameter = {};
28295
+ // authentication apiToken required
28296
+ // http bearer authentication required
28297
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
28298
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28302
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1PluginsDeployPluginRequest, localVarRequestOptions, configuration);
28303
+ return {
28304
+ url: toPathString(localVarUrlObj),
28305
+ options: localVarRequestOptions,
28306
+ };
28307
+ }),
27729
28308
  /**
27730
28309
  * Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
27731
28310
  * @summary Install WordPress plugins
@@ -28090,6 +28669,23 @@ export const WordPressPluginsApiFp = function (configuration) {
28090
28669
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28091
28670
  });
28092
28671
  },
28672
+ /**
28673
+ * Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
28674
+ * @summary Deploy WordPress plugin
28675
+ * @param {string} username
28676
+ * @param {string} domain Domain name
28677
+ * @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
28678
+ * @param {*} [options] Override http request option.
28679
+ * @throws {RequiredError}
28680
+ */
28681
+ deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
28682
+ return __awaiter(this, void 0, void 0, function* () {
28683
+ var _a, _b;
28684
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options);
28685
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressPluginsApi.deployWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
28686
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28687
+ });
28688
+ },
28093
28689
  /**
28094
28690
  * Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
28095
28691
  * @summary Install WordPress plugins
@@ -28264,6 +28860,18 @@ export const WordPressPluginsApiFactory = function (configuration, basePath, axi
28264
28860
  deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
28265
28861
  return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
28266
28862
  },
28863
+ /**
28864
+ * Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
28865
+ * @summary Deploy WordPress plugin
28866
+ * @param {string} username
28867
+ * @param {string} domain Domain name
28868
+ * @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
28869
+ * @param {*} [options] Override http request option.
28870
+ * @throws {RequiredError}
28871
+ */
28872
+ deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
28873
+ return localVarFp.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(axios, basePath));
28874
+ },
28267
28875
  /**
28268
28876
  * Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
28269
28877
  * @summary Install WordPress plugins
@@ -28401,6 +29009,19 @@ export class WordPressPluginsApi extends BaseAPI {
28401
29009
  deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
28402
29010
  return WordPressPluginsApiFp(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
28403
29011
  }
29012
+ /**
29013
+ * Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
29014
+ * @summary Deploy WordPress plugin
29015
+ * @param {string} username
29016
+ * @param {string} domain Domain name
29017
+ * @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
29018
+ * @param {*} [options] Override http request option.
29019
+ * @throws {RequiredError}
29020
+ * @memberof WordPressPluginsApi
29021
+ */
29022
+ deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
29023
+ return WordPressPluginsApiFp(this.configuration).deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(this.axios, this.basePath));
29024
+ }
28404
29025
  /**
28405
29026
  * Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
28406
29027
  * @summary Install WordPress plugins
@@ -28554,6 +29175,47 @@ export const WordPressThemesApiAxiosParamCreator = function (configuration) {
28554
29175
  options: localVarRequestOptions,
28555
29176
  };
28556
29177
  }),
29178
+ /**
29179
+ * Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
29180
+ * @summary Deploy WordPress theme
29181
+ * @param {string} username
29182
+ * @param {string} domain Domain name
29183
+ * @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
29184
+ * @param {*} [options] Override http request option.
29185
+ * @throws {RequiredError}
29186
+ */
29187
+ deployWordPressThemeV1: (username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1ThemesDeployThemeRequest, options = {}) {
29188
+ // verify required parameter 'username' is not null or undefined
29189
+ assertParamExists('deployWordPressThemeV1', 'username', username);
29190
+ // verify required parameter 'domain' is not null or undefined
29191
+ assertParamExists('deployWordPressThemeV1', 'domain', domain);
29192
+ // verify required parameter 'wordPressV1ThemesDeployThemeRequest' is not null or undefined
29193
+ assertParamExists('deployWordPressThemeV1', 'wordPressV1ThemesDeployThemeRequest', wordPressV1ThemesDeployThemeRequest);
29194
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy`
29195
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
29196
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
29197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29199
+ let baseOptions;
29200
+ if (configuration) {
29201
+ baseOptions = configuration.baseOptions;
29202
+ }
29203
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29204
+ const localVarHeaderParameter = {};
29205
+ const localVarQueryParameter = {};
29206
+ // authentication apiToken required
29207
+ // http bearer authentication required
29208
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
29209
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29210
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29212
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29213
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ThemesDeployThemeRequest, localVarRequestOptions, configuration);
29214
+ return {
29215
+ url: toPathString(localVarUrlObj),
29216
+ options: localVarRequestOptions,
29217
+ };
29218
+ }),
28557
29219
  /**
28558
29220
  * Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
28559
29221
  * @summary Install WordPress theme
@@ -28775,6 +29437,23 @@ export const WordPressThemesApiFp = function (configuration) {
28775
29437
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28776
29438
  });
28777
29439
  },
29440
+ /**
29441
+ * Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
29442
+ * @summary Deploy WordPress theme
29443
+ * @param {string} username
29444
+ * @param {string} domain Domain name
29445
+ * @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
29446
+ * @param {*} [options] Override http request option.
29447
+ * @throws {RequiredError}
29448
+ */
29449
+ deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
29450
+ return __awaiter(this, void 0, void 0, function* () {
29451
+ var _a, _b;
29452
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options);
29453
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressThemesApi.deployWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
29454
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29455
+ });
29456
+ },
28778
29457
  /**
28779
29458
  * Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
28780
29459
  * @summary Install WordPress theme
@@ -28879,6 +29558,18 @@ export const WordPressThemesApiFactory = function (configuration, basePath, axio
28879
29558
  activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
28880
29559
  return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
28881
29560
  },
29561
+ /**
29562
+ * Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
29563
+ * @summary Deploy WordPress theme
29564
+ * @param {string} username
29565
+ * @param {string} domain Domain name
29566
+ * @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
29567
+ * @param {*} [options] Override http request option.
29568
+ * @throws {RequiredError}
29569
+ */
29570
+ deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
29571
+ return localVarFp.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(axios, basePath));
29572
+ },
28882
29573
  /**
28883
29574
  * Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
28884
29575
  * @summary Install WordPress theme
@@ -28959,6 +29650,19 @@ export class WordPressThemesApi extends BaseAPI {
28959
29650
  activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
28960
29651
  return WordPressThemesApiFp(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
28961
29652
  }
29653
+ /**
29654
+ * Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
29655
+ * @summary Deploy WordPress theme
29656
+ * @param {string} username
29657
+ * @param {string} domain Domain name
29658
+ * @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
29659
+ * @param {*} [options] Override http request option.
29660
+ * @throws {RequiredError}
29661
+ * @memberof WordPressThemesApi
29662
+ */
29663
+ deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
29664
+ return WordPressThemesApiFp(this.configuration).deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(this.axios, this.basePath));
29665
+ }
28962
29666
  /**
28963
29667
  * Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
28964
29668
  * @summary Install WordPress theme