hostinger-api-sdk 1.38.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 (44) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1019 -5
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +646 -5
  7. package/dist/api.js +712 -15
  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 +646 -5
  15. package/dist/esm/api.js +702 -5
  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/HostingWebsitesApi.md +62 -0
  37. package/docs/WordPressInstallationsApi.md +62 -0
  38. package/docs/WordPressPluginsApi.md +62 -0
  39. package/docs/WordPressThemesApi.md +62 -0
  40. package/docs/WordPressV1InstallationsImportWordPressRequest.md +22 -0
  41. package/docs/WordPressV1PluginsDeployPluginRequest.md +22 -0
  42. package/docs/WordPressV1ThemesDeployThemeRequest.md +24 -0
  43. package/index.ts +1 -1
  44. 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.40.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',
@@ -2073,6 +2134,38 @@ export class AgencyHostingDomainsApi extends BaseAPI {
2073
2134
  */
2074
2135
  export const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
2075
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
+ }),
2076
2169
  /**
2077
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.
2078
2171
  * @summary Import website from archive
@@ -2119,6 +2212,21 @@ export const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
2119
2212
  export const AgencyHostingFilesApiFp = function (configuration) {
2120
2213
  const localVarAxiosParamCreator = AgencyHostingFilesApiAxiosParamCreator(configuration);
2121
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
+ },
2122
2230
  /**
2123
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.
2124
2232
  * @summary Import website from archive
@@ -2144,6 +2252,16 @@ export const AgencyHostingFilesApiFp = function (configuration) {
2144
2252
  export const AgencyHostingFilesApiFactory = function (configuration, basePath, axios) {
2145
2253
  const localVarFp = AgencyHostingFilesApiFp(configuration);
2146
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
+ },
2147
2265
  /**
2148
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.
2149
2267
  * @summary Import website from archive
@@ -2164,6 +2282,17 @@ export const AgencyHostingFilesApiFactory = function (configuration, basePath, a
2164
2282
  * @extends {BaseAPI}
2165
2283
  */
2166
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
+ }
2167
2296
  /**
2168
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.
2169
2298
  * @summary Import website from archive
@@ -11686,6 +11815,39 @@ export class HostingDomainsApi extends BaseAPI {
11686
11815
  */
11687
11816
  export const HostingFilesApiAxiosParamCreator = function (configuration) {
11688
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
+ }),
11689
11851
  /**
11690
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.
11691
11853
  * @summary Get website file content
@@ -11801,6 +11963,21 @@ export const HostingFilesApiAxiosParamCreator = function (configuration) {
11801
11963
  export const HostingFilesApiFp = function (configuration) {
11802
11964
  const localVarAxiosParamCreator = HostingFilesApiAxiosParamCreator(configuration);
11803
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
+ },
11804
11981
  /**
11805
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.
11806
11983
  * @summary Get website file content
@@ -11850,6 +12027,16 @@ export const HostingFilesApiFp = function (configuration) {
11850
12027
  export const HostingFilesApiFactory = function (configuration, basePath, axios) {
11851
12028
  const localVarFp = HostingFilesApiFp(configuration);
11852
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
+ },
11853
12040
  /**
11854
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.
11855
12042
  * @summary Get website file content
@@ -11889,6 +12076,17 @@ export const HostingFilesApiFactory = function (configuration, basePath, axios)
11889
12076
  * @extends {BaseAPI}
11890
12077
  */
11891
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
+ }
11892
12090
  /**
11893
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.
11894
12092
  * @summary Get website file content
@@ -11938,7 +12136,7 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
11938
12136
  export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
11939
12137
  return {
11940
12138
  /**
11941
- * 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.
11942
12140
  * @summary Create NodeJS build from archive
11943
12141
  * @param {string} username
11944
12142
  * @param {string} domain Domain name
@@ -12022,6 +12220,48 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12022
12220
  options: localVarRequestOptions,
12023
12221
  };
12024
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
+ }),
12025
12265
  /**
12026
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.
12027
12267
  * @summary List NodeJS builds
@@ -12187,6 +12427,47 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12187
12427
  options: localVarRequestOptions,
12188
12428
  };
12189
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
+ }),
12190
12471
  };
12191
12472
  };
12192
12473
  /**
@@ -12197,7 +12478,7 @@ export const HostingNodeJSApiFp = function (configuration) {
12197
12478
  const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration);
12198
12479
  return {
12199
12480
  /**
12200
- * 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.
12201
12482
  * @summary Create NodeJS build from archive
12202
12483
  * @param {string} username
12203
12484
  * @param {string} domain Domain name
@@ -12231,6 +12512,23 @@ export const HostingNodeJSApiFp = function (configuration) {
12231
12512
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12232
12513
  });
12233
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
+ },
12234
12532
  /**
12235
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.
12236
12534
  * @summary List NodeJS builds
@@ -12300,6 +12598,23 @@ export const HostingNodeJSApiFp = function (configuration) {
12300
12598
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12301
12599
  });
12302
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
+ },
12303
12618
  };
12304
12619
  };
12305
12620
  /**
@@ -12310,7 +12625,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12310
12625
  const localVarFp = HostingNodeJSApiFp(configuration);
12311
12626
  return {
12312
12627
  /**
12313
- * 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.
12314
12629
  * @summary Create NodeJS build from archive
12315
12630
  * @param {string} username
12316
12631
  * @param {string} domain Domain name
@@ -12334,6 +12649,18 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12334
12649
  getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
12335
12650
  return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
12336
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
+ },
12337
12664
  /**
12338
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.
12339
12666
  * @summary List NodeJS builds
@@ -12383,6 +12710,18 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12383
12710
  restartNodeJsApplicationV1(username, domain, options) {
12384
12711
  return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
12385
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
+ },
12386
12725
  };
12387
12726
  };
12388
12727
  /**
@@ -12393,7 +12732,7 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12393
12732
  */
12394
12733
  export class HostingNodeJSApi extends BaseAPI {
12395
12734
  /**
12396
- * 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.
12397
12736
  * @summary Create NodeJS build from archive
12398
12737
  * @param {string} username
12399
12738
  * @param {string} domain Domain name
@@ -12419,6 +12758,19 @@ export class HostingNodeJSApi extends BaseAPI {
12419
12758
  getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
12420
12759
  return HostingNodeJSApiFp(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
12421
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
+ }
12422
12774
  /**
12423
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.
12424
12776
  * @summary List NodeJS builds
@@ -12472,6 +12824,19 @@ export class HostingNodeJSApi extends BaseAPI {
12472
12824
  restartNodeJsApplicationV1(username, domain, options) {
12473
12825
  return HostingNodeJSApiFp(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12474
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
+ }
12475
12840
  }
12476
12841
  /**
12477
12842
  * @export
@@ -13493,6 +13858,47 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
13493
13858
  options: localVarRequestOptions,
13494
13859
  };
13495
13860
  }),
13861
+ /**
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
+ }),
13496
13902
  /**
13497
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.
13498
13904
  * @summary List websites
@@ -13584,6 +13990,23 @@ export const HostingWebsitesApiFp = function (configuration) {
13584
13990
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13585
13991
  });
13586
13992
  },
13993
+ /**
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
+ },
13587
14010
  /**
13588
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.
13589
14012
  * @summary List websites
@@ -13633,6 +14056,18 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
13633
14056
  deleteWebsiteV1(domain, options) {
13634
14057
  return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
13635
14058
  },
14059
+ /**
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
+ },
13636
14071
  /**
13637
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.
13638
14073
  * @summary List websites
@@ -13679,6 +14114,19 @@ export class HostingWebsitesApi extends BaseAPI {
13679
14114
  deleteWebsiteV1(domain, options) {
13680
14115
  return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
13681
14116
  }
14117
+ /**
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
+ }
13682
14130
  /**
13683
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.
13684
14132
  * @summary List websites
@@ -26353,6 +26801,47 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
26353
26801
  options: localVarRequestOptions,
26354
26802
  };
26355
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
+ }),
26356
26845
  /**
26357
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.
26358
26847
  * @summary Install WordPress
@@ -26616,6 +27105,23 @@ export const WordPressInstallationsApiFp = function (configuration) {
26616
27105
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26617
27106
  });
26618
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
+ },
26619
27125
  /**
26620
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.
26621
27127
  * @summary Install WordPress
@@ -26751,6 +27257,18 @@ export const WordPressInstallationsApiFactory = function (configuration, basePat
26751
27257
  getInstallationJWTTokenV1(username, software, options) {
26752
27258
  return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
26753
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
+ },
26754
27272
  /**
26755
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.
26756
27274
  * @summary Install WordPress
@@ -26865,6 +27383,19 @@ export class WordPressInstallationsApi extends BaseAPI {
26865
27383
  getInstallationJWTTokenV1(username, software, options) {
26866
27384
  return WordPressInstallationsApiFp(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
26867
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
+ }
26868
27399
  /**
26869
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.
26870
27401
  * @summary Install WordPress
@@ -27733,6 +28264,47 @@ export const WordPressPluginsApiAxiosParamCreator = function (configuration) {
27733
28264
  options: localVarRequestOptions,
27734
28265
  };
27735
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
+ }),
27736
28308
  /**
27737
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.
27738
28310
  * @summary Install WordPress plugins
@@ -28097,6 +28669,23 @@ export const WordPressPluginsApiFp = function (configuration) {
28097
28669
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28098
28670
  });
28099
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
+ },
28100
28689
  /**
28101
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.
28102
28691
  * @summary Install WordPress plugins
@@ -28271,6 +28860,18 @@ export const WordPressPluginsApiFactory = function (configuration, basePath, axi
28271
28860
  deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
28272
28861
  return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
28273
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
+ },
28274
28875
  /**
28275
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.
28276
28877
  * @summary Install WordPress plugins
@@ -28408,6 +29009,19 @@ export class WordPressPluginsApi extends BaseAPI {
28408
29009
  deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
28409
29010
  return WordPressPluginsApiFp(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
28410
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
+ }
28411
29025
  /**
28412
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.
28413
29027
  * @summary Install WordPress plugins
@@ -28561,6 +29175,47 @@ export const WordPressThemesApiAxiosParamCreator = function (configuration) {
28561
29175
  options: localVarRequestOptions,
28562
29176
  };
28563
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
+ }),
28564
29219
  /**
28565
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.
28566
29221
  * @summary Install WordPress theme
@@ -28782,6 +29437,23 @@ export const WordPressThemesApiFp = function (configuration) {
28782
29437
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28783
29438
  });
28784
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
+ },
28785
29457
  /**
28786
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.
28787
29459
  * @summary Install WordPress theme
@@ -28886,6 +29558,18 @@ export const WordPressThemesApiFactory = function (configuration, basePath, axio
28886
29558
  activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
28887
29559
  return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
28888
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
+ },
28889
29573
  /**
28890
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.
28891
29575
  * @summary Install WordPress theme
@@ -28966,6 +29650,19 @@ export class WordPressThemesApi extends BaseAPI {
28966
29650
  activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
28967
29651
  return WordPressThemesApiFp(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
28968
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
+ }
28969
29666
  /**
28970
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.
28971
29668
  * @summary Install WordPress theme