hostinger-api-sdk 1.29.2 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.30.1
6
+ * API Version: 1.32.1
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
@@ -2318,6 +2318,44 @@ export interface DomainAccessVerifierV2VerificationsListRequest {
2318
2318
  */
2319
2319
  'domains': Array<string>;
2320
2320
  }
2321
+ /**
2322
+ *
2323
+ * @export
2324
+ * @interface DomainsV1AvailabilityAlternativesFromDescriptionRequest
2325
+ */
2326
+ export interface DomainsV1AvailabilityAlternativesFromDescriptionRequest {
2327
+ /**
2328
+ * Free-text description of the project the domain is needed for
2329
+ * @type {string}
2330
+ * @memberof DomainsV1AvailabilityAlternativesFromDescriptionRequest
2331
+ */
2332
+ 'description': string;
2333
+ /**
2334
+ * Amount of domain names to suggest
2335
+ * @type {number}
2336
+ * @memberof DomainsV1AvailabilityAlternativesFromDescriptionRequest
2337
+ */
2338
+ 'limit': number;
2339
+ }
2340
+ /**
2341
+ *
2342
+ * @export
2343
+ * @interface DomainsV1AvailabilityAlternativesFromDomainRequest
2344
+ */
2345
+ export interface DomainsV1AvailabilityAlternativesFromDomainRequest {
2346
+ /**
2347
+ * Domain name to base the suggestions on
2348
+ * @type {string}
2349
+ * @memberof DomainsV1AvailabilityAlternativesFromDomainRequest
2350
+ */
2351
+ 'domain': string;
2352
+ /**
2353
+ * Amount of domain names to suggest
2354
+ * @type {number}
2355
+ * @memberof DomainsV1AvailabilityAlternativesFromDomainRequest
2356
+ */
2357
+ 'limit': number;
2358
+ }
2321
2359
  /**
2322
2360
  *
2323
2361
  * @export
@@ -4237,6 +4275,12 @@ export interface HostingListOrdersV1200Response {
4237
4275
  */
4238
4276
  'meta': CommonSchemaPaginationMetaSchema;
4239
4277
  }
4278
+ /**
4279
+ * @type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
4280
+ * @export
4281
+ */
4282
+ export type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = Array<string> | string;
4283
+
4240
4284
  /**
4241
4285
  *
4242
4286
  * @export
@@ -4723,6 +4767,121 @@ export interface HostingV1DomainsVerifyOwnershipRequest {
4723
4767
  */
4724
4768
  'domain': string;
4725
4769
  }
4770
+ /**
4771
+ *
4772
+ * @export
4773
+ * @interface HostingV1FilesFileContentResource
4774
+ */
4775
+ export interface HostingV1FilesFileContentResource {
4776
+ /**
4777
+ * File path, relative to the document root.
4778
+ * @type {string}
4779
+ * @memberof HostingV1FilesFileContentResource
4780
+ */
4781
+ 'path': string;
4782
+ /**
4783
+ * File content for the requested line range.
4784
+ * @type {string}
4785
+ * @memberof HostingV1FilesFileContentResource
4786
+ */
4787
+ 'content': string;
4788
+ /**
4789
+ * Line offset the returned content starts from.
4790
+ * @type {number}
4791
+ * @memberof HostingV1FilesFileContentResource
4792
+ */
4793
+ 'from_line': number;
4794
+ /**
4795
+ * Total number of lines in the file.
4796
+ * @type {number}
4797
+ * @memberof HostingV1FilesFileContentResource
4798
+ */
4799
+ 'total_lines': number;
4800
+ /**
4801
+ * Total file size in bytes.
4802
+ * @type {number}
4803
+ * @memberof HostingV1FilesFileContentResource
4804
+ */
4805
+ 'size_bytes': number;
4806
+ }
4807
+ /**
4808
+ *
4809
+ * @export
4810
+ * @interface HostingV1FilesFilesResource
4811
+ */
4812
+ export interface HostingV1FilesFilesResource {
4813
+ /**
4814
+ * Listed directory, relative to the document root.
4815
+ * @type {string}
4816
+ * @memberof HostingV1FilesFilesResource
4817
+ */
4818
+ 'path': string;
4819
+ /**
4820
+ * Entries found in the listed directory.
4821
+ * @type {Array<HostingV1FilesFilesResourceItemsInner>}
4822
+ * @memberof HostingV1FilesFilesResource
4823
+ */
4824
+ 'items': Array<HostingV1FilesFilesResourceItemsInner>;
4825
+ /**
4826
+ * Total number of entries matching the listing, across all pages.
4827
+ * @type {number}
4828
+ * @memberof HostingV1FilesFilesResource
4829
+ */
4830
+ 'total_items': number;
4831
+ /**
4832
+ * Number of entries in this page.
4833
+ * @type {number}
4834
+ * @memberof HostingV1FilesFilesResource
4835
+ */
4836
+ 'total_items_current_page': number;
4837
+ /**
4838
+ * Number of entries skipped before this page.
4839
+ * @type {number}
4840
+ * @memberof HostingV1FilesFilesResource
4841
+ */
4842
+ 'offset': number;
4843
+ }
4844
+ /**
4845
+ *
4846
+ * @export
4847
+ * @interface HostingV1FilesFilesResourceItemsInner
4848
+ */
4849
+ export interface HostingV1FilesFilesResourceItemsInner {
4850
+ /**
4851
+ * Entry name.
4852
+ * @type {string}
4853
+ * @memberof HostingV1FilesFilesResourceItemsInner
4854
+ */
4855
+ 'name': string;
4856
+ /**
4857
+ * Entry path, relative to the document root.
4858
+ * @type {string}
4859
+ * @memberof HostingV1FilesFilesResourceItemsInner
4860
+ */
4861
+ 'path': string;
4862
+ /**
4863
+ * Entry type.
4864
+ * @type {string}
4865
+ * @memberof HostingV1FilesFilesResourceItemsInner
4866
+ */
4867
+ 'type': HostingV1FilesFilesResourceItemsInnerTypeEnum;
4868
+ /**
4869
+ * Entry size in bytes. Null for directories, symlinks, and other non-file entries.
4870
+ * @type {number}
4871
+ * @memberof HostingV1FilesFilesResourceItemsInner
4872
+ */
4873
+ 'size_bytes': number | null;
4874
+ }
4875
+
4876
+ export const HostingV1FilesFilesResourceItemsInnerTypeEnum = {
4877
+ File: 'file',
4878
+ Directory: 'directory',
4879
+ Symlink: 'symlink',
4880
+ Other: 'other'
4881
+ } as const;
4882
+
4883
+ export type HostingV1FilesFilesResourceItemsInnerTypeEnum = typeof HostingV1FilesFilesResourceItemsInnerTypeEnum[keyof typeof HostingV1FilesFilesResourceItemsInnerTypeEnum];
4884
+
4726
4885
  /**
4727
4886
  *
4728
4887
  * @export
@@ -5374,19 +5533,6 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
5374
5533
  */
5375
5534
  'datacenter_code': string | null;
5376
5535
  }
5377
- /**
5378
- *
5379
- * @export
5380
- * @interface HostingV1WebsitesDeleteWebsiteRequest
5381
- */
5382
- export interface HostingV1WebsitesDeleteWebsiteRequest {
5383
- /**
5384
- * Must be boolean true to confirm the permanent deletion of the website.
5385
- * @type {boolean}
5386
- * @memberof HostingV1WebsitesDeleteWebsiteRequest
5387
- */
5388
- 'confirm': boolean;
5389
- }
5390
5536
  /**
5391
5537
  *
5392
5538
  * @export
@@ -15753,7 +15899,7 @@ export class DomainAccessVerifierVerificationsApi extends BaseAPI {
15753
15899
  export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
15754
15900
  return {
15755
15901
  /**
15756
- * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
15902
+ * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
15757
15903
  * @summary Check domain availability
15758
15904
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15759
15905
  * @param {*} [options] Override http request option.
@@ -15787,6 +15933,86 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?:
15787
15933
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15788
15934
  localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration)
15789
15935
 
15936
+ return {
15937
+ url: toPathString(localVarUrlObj),
15938
+ options: localVarRequestOptions,
15939
+ };
15940
+ },
15941
+ /**
15942
+ * Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
15943
+ * @summary Suggest domain names from a description
15944
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
15945
+ * @param {*} [options] Override http request option.
15946
+ * @throws {RequiredError}
15947
+ */
15948
+ suggestDomainNamesFromADescriptionV1: async (domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15949
+ // verify required parameter 'domainsV1AvailabilityAlternativesFromDescriptionRequest' is not null or undefined
15950
+ assertParamExists('suggestDomainNamesFromADescriptionV1', 'domainsV1AvailabilityAlternativesFromDescriptionRequest', domainsV1AvailabilityAlternativesFromDescriptionRequest)
15951
+ const localVarPath = `/api/domains/v1/availability/alternatives-from-description`;
15952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15954
+ let baseOptions;
15955
+ if (configuration) {
15956
+ baseOptions = configuration.baseOptions;
15957
+ }
15958
+
15959
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15960
+ const localVarHeaderParameter = {} as any;
15961
+ const localVarQueryParameter = {} as any;
15962
+
15963
+ // authentication apiToken required
15964
+ // http bearer authentication required
15965
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15966
+
15967
+
15968
+
15969
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15970
+
15971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15973
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15974
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDescriptionRequest, localVarRequestOptions, configuration)
15975
+
15976
+ return {
15977
+ url: toPathString(localVarUrlObj),
15978
+ options: localVarRequestOptions,
15979
+ };
15980
+ },
15981
+ /**
15982
+ * Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
15983
+ * @summary Suggest domain names from a domain
15984
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
15985
+ * @param {*} [options] Override http request option.
15986
+ * @throws {RequiredError}
15987
+ */
15988
+ suggestDomainNamesFromADomainV1: async (domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15989
+ // verify required parameter 'domainsV1AvailabilityAlternativesFromDomainRequest' is not null or undefined
15990
+ assertParamExists('suggestDomainNamesFromADomainV1', 'domainsV1AvailabilityAlternativesFromDomainRequest', domainsV1AvailabilityAlternativesFromDomainRequest)
15991
+ const localVarPath = `/api/domains/v1/availability/alternatives-from-domain`;
15992
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15993
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15994
+ let baseOptions;
15995
+ if (configuration) {
15996
+ baseOptions = configuration.baseOptions;
15997
+ }
15998
+
15999
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16000
+ const localVarHeaderParameter = {} as any;
16001
+ const localVarQueryParameter = {} as any;
16002
+
16003
+ // authentication apiToken required
16004
+ // http bearer authentication required
16005
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16006
+
16007
+
16008
+
16009
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16010
+
16011
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16013
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16014
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDomainRequest, localVarRequestOptions, configuration)
16015
+
15790
16016
  return {
15791
16017
  url: toPathString(localVarUrlObj),
15792
16018
  options: localVarRequestOptions,
@@ -15803,7 +16029,7 @@ export const DomainsAvailabilityApiFp = function(configuration?: Configuration)
15803
16029
  const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
15804
16030
  return {
15805
16031
  /**
15806
- * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
16032
+ * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
15807
16033
  * @summary Check domain availability
15808
16034
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15809
16035
  * @param {*} [options] Override http request option.
@@ -15814,6 +16040,30 @@ export const DomainsAvailabilityApiFp = function(configuration?: Configuration)
15814
16040
  const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']?.[0]?.url;
15815
16041
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15816
16042
  },
16043
+ /**
16044
+ * Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
16045
+ * @summary Suggest domain names from a description
16046
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16047
+ * @param {*} [options] Override http request option.
16048
+ * @throws {RequiredError}
16049
+ */
16050
+ async suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
16051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options);
16052
+ const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADescriptionV1']?.[0]?.url;
16053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16054
+ },
16055
+ /**
16056
+ * Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
16057
+ * @summary Suggest domain names from a domain
16058
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16059
+ * @param {*} [options] Override http request option.
16060
+ * @throws {RequiredError}
16061
+ */
16062
+ async suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
16063
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options);
16064
+ const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADomainV1']?.[0]?.url;
16065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16066
+ },
15817
16067
  }
15818
16068
  };
15819
16069
 
@@ -15825,7 +16075,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15825
16075
  const localVarFp = DomainsAvailabilityApiFp(configuration)
15826
16076
  return {
15827
16077
  /**
15828
- * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
16078
+ * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
15829
16079
  * @summary Check domain availability
15830
16080
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15831
16081
  * @param {*} [options] Override http request option.
@@ -15834,6 +16084,26 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15834
16084
  checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>> {
15835
16085
  return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
15836
16086
  },
16087
+ /**
16088
+ * Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
16089
+ * @summary Suggest domain names from a description
16090
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16091
+ * @param {*} [options] Override http request option.
16092
+ * @throws {RequiredError}
16093
+ */
16094
+ suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16095
+ return localVarFp.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(axios, basePath));
16096
+ },
16097
+ /**
16098
+ * Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
16099
+ * @summary Suggest domain names from a domain
16100
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16101
+ * @param {*} [options] Override http request option.
16102
+ * @throws {RequiredError}
16103
+ */
16104
+ suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16105
+ return localVarFp.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(axios, basePath));
16106
+ },
15837
16107
  };
15838
16108
  };
15839
16109
 
@@ -15845,7 +16115,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15845
16115
  */
15846
16116
  export class DomainsAvailabilityApi extends BaseAPI {
15847
16117
  /**
15848
- * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
16118
+ * Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 90 requests per minute. Use this endpoint to verify domain availability before purchase.
15849
16119
  * @summary Check domain availability
15850
16120
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15851
16121
  * @param {*} [options] Override http request option.
@@ -15855,6 +16125,30 @@ export class DomainsAvailabilityApi extends BaseAPI {
15855
16125
  public checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig) {
15856
16126
  return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
15857
16127
  }
16128
+
16129
+ /**
16130
+ * Suggest available domain names based on a free-text description of your project. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint to find a domain name when you only know what the website is about.
16131
+ * @summary Suggest domain names from a description
16132
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16133
+ * @param {*} [options] Override http request option.
16134
+ * @throws {RequiredError}
16135
+ * @memberof DomainsAvailabilityApi
16136
+ */
16137
+ public suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig) {
16138
+ return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(this.axios, this.basePath));
16139
+ }
16140
+
16141
+ /**
16142
+ * Suggest available domain names based on a domain name you already have in mind. Suggestions are generated by an AI model, so they differ between calls. Endpoint has rate limit of 90 requests per minute. Use this endpoint when the domain you wanted is taken and you need close alternatives.
16143
+ * @summary Suggest domain names from a domain
16144
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16145
+ * @param {*} [options] Override http request option.
16146
+ * @throws {RequiredError}
16147
+ * @memberof DomainsAvailabilityApi
16148
+ */
16149
+ public suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig) {
16150
+ return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(this.axios, this.basePath));
16151
+ }
15858
16152
  }
15859
16153
 
15860
16154
 
@@ -22279,6 +22573,271 @@ export class HostingDomainsApi extends BaseAPI {
22279
22573
 
22280
22574
 
22281
22575
 
22576
+ /**
22577
+ * HostingFilesApi - axios parameter creator
22578
+ * @export
22579
+ */
22580
+ export const HostingFilesApiAxiosParamCreator = function (configuration?: Configuration) {
22581
+ return {
22582
+ /**
22583
+ * 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.
22584
+ * @summary Get website file content
22585
+ * @param {string} username
22586
+ * @param {string} domain Domain name
22587
+ * @param {string} path File path, relative to the document root.
22588
+ * @param {number | null} [fromLine] Line offset to start reading from.
22589
+ * @param {number | null} [maxLines] Max number of lines to return.
22590
+ * @param {*} [options] Override http request option.
22591
+ * @throws {RequiredError}
22592
+ */
22593
+ getWebsiteFileContentV1: async (username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22594
+ // verify required parameter 'username' is not null or undefined
22595
+ assertParamExists('getWebsiteFileContentV1', 'username', username)
22596
+ // verify required parameter 'domain' is not null or undefined
22597
+ assertParamExists('getWebsiteFileContentV1', 'domain', domain)
22598
+ // verify required parameter 'path' is not null or undefined
22599
+ assertParamExists('getWebsiteFileContentV1', 'path', path)
22600
+ const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files/content`
22601
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22602
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22605
+ let baseOptions;
22606
+ if (configuration) {
22607
+ baseOptions = configuration.baseOptions;
22608
+ }
22609
+
22610
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22611
+ const localVarHeaderParameter = {} as any;
22612
+ const localVarQueryParameter = {} as any;
22613
+
22614
+ // authentication apiToken required
22615
+ // http bearer authentication required
22616
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22617
+
22618
+ if (path !== undefined) {
22619
+ localVarQueryParameter['path'] = path;
22620
+ }
22621
+
22622
+ if (fromLine !== undefined) {
22623
+ localVarQueryParameter['from_line'] = fromLine;
22624
+ }
22625
+
22626
+ if (maxLines !== undefined) {
22627
+ localVarQueryParameter['max_lines'] = maxLines;
22628
+ }
22629
+
22630
+
22631
+
22632
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22634
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22635
+
22636
+ return {
22637
+ url: toPathString(localVarUrlObj),
22638
+ options: localVarRequestOptions,
22639
+ };
22640
+ },
22641
+ /**
22642
+ * List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
22643
+ * @summary List website files and directories
22644
+ * @param {string} username
22645
+ * @param {string} domain Domain name
22646
+ * @param {string} [directory] Directory path to check
22647
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22648
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22649
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22650
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22651
+ * @param {*} [options] Override http request option.
22652
+ * @throws {RequiredError}
22653
+ */
22654
+ listWebsiteFilesAndDirectoriesV1: async (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22655
+ // verify required parameter 'username' is not null or undefined
22656
+ assertParamExists('listWebsiteFilesAndDirectoriesV1', 'username', username)
22657
+ // verify required parameter 'domain' is not null or undefined
22658
+ assertParamExists('listWebsiteFilesAndDirectoriesV1', 'domain', domain)
22659
+ const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files`
22660
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22661
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22664
+ let baseOptions;
22665
+ if (configuration) {
22666
+ baseOptions = configuration.baseOptions;
22667
+ }
22668
+
22669
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22670
+ const localVarHeaderParameter = {} as any;
22671
+ const localVarQueryParameter = {} as any;
22672
+
22673
+ // authentication apiToken required
22674
+ // http bearer authentication required
22675
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22676
+
22677
+ if (directory !== undefined) {
22678
+ localVarQueryParameter['directory'] = directory;
22679
+ }
22680
+
22681
+ if (maxDepth !== undefined) {
22682
+ localVarQueryParameter['max_depth'] = maxDepth;
22683
+ }
22684
+
22685
+ if (maxItems !== undefined) {
22686
+ localVarQueryParameter['max_items'] = maxItems;
22687
+ }
22688
+
22689
+ if (offset !== undefined) {
22690
+ localVarQueryParameter['offset'] = offset;
22691
+ }
22692
+
22693
+ if (fileTypes !== undefined) {
22694
+ for (const [key, value] of Object.entries(fileTypes)) {
22695
+ localVarQueryParameter[key] = value;
22696
+ }
22697
+ }
22698
+
22699
+
22700
+
22701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22703
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22704
+
22705
+ return {
22706
+ url: toPathString(localVarUrlObj),
22707
+ options: localVarRequestOptions,
22708
+ };
22709
+ },
22710
+ }
22711
+ };
22712
+
22713
+ /**
22714
+ * HostingFilesApi - functional programming interface
22715
+ * @export
22716
+ */
22717
+ export const HostingFilesApiFp = function(configuration?: Configuration) {
22718
+ const localVarAxiosParamCreator = HostingFilesApiAxiosParamCreator(configuration)
22719
+ return {
22720
+ /**
22721
+ * 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.
22722
+ * @summary Get website file content
22723
+ * @param {string} username
22724
+ * @param {string} domain Domain name
22725
+ * @param {string} path File path, relative to the document root.
22726
+ * @param {number | null} [fromLine] Line offset to start reading from.
22727
+ * @param {number | null} [maxLines] Max number of lines to return.
22728
+ * @param {*} [options] Override http request option.
22729
+ * @throws {RequiredError}
22730
+ */
22731
+ async getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFileContentResource>> {
22732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options);
22733
+ const localVarOperationServerBasePath = operationServerMap['HostingFilesApi.getWebsiteFileContentV1']?.[0]?.url;
22734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22735
+ },
22736
+ /**
22737
+ * List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
22738
+ * @summary List website files and directories
22739
+ * @param {string} username
22740
+ * @param {string} domain Domain name
22741
+ * @param {string} [directory] Directory path to check
22742
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22743
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22744
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22745
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22746
+ * @param {*} [options] Override http request option.
22747
+ * @throws {RequiredError}
22748
+ */
22749
+ async listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFilesResource>> {
22750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options);
22751
+ const localVarOperationServerBasePath = operationServerMap['HostingFilesApi.listWebsiteFilesAndDirectoriesV1']?.[0]?.url;
22752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22753
+ },
22754
+ }
22755
+ };
22756
+
22757
+ /**
22758
+ * HostingFilesApi - factory interface
22759
+ * @export
22760
+ */
22761
+ export const HostingFilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22762
+ const localVarFp = HostingFilesApiFp(configuration)
22763
+ return {
22764
+ /**
22765
+ * 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.
22766
+ * @summary Get website file content
22767
+ * @param {string} username
22768
+ * @param {string} domain Domain name
22769
+ * @param {string} path File path, relative to the document root.
22770
+ * @param {number | null} [fromLine] Line offset to start reading from.
22771
+ * @param {number | null} [maxLines] Max number of lines to return.
22772
+ * @param {*} [options] Override http request option.
22773
+ * @throws {RequiredError}
22774
+ */
22775
+ getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFileContentResource> {
22776
+ return localVarFp.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(axios, basePath));
22777
+ },
22778
+ /**
22779
+ * List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
22780
+ * @summary List website files and directories
22781
+ * @param {string} username
22782
+ * @param {string} domain Domain name
22783
+ * @param {string} [directory] Directory path to check
22784
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22785
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22786
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22787
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22788
+ * @param {*} [options] Override http request option.
22789
+ * @throws {RequiredError}
22790
+ */
22791
+ listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFilesResource> {
22792
+ return localVarFp.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(axios, basePath));
22793
+ },
22794
+ };
22795
+ };
22796
+
22797
+ /**
22798
+ * HostingFilesApi - object-oriented interface
22799
+ * @export
22800
+ * @class HostingFilesApi
22801
+ * @extends {BaseAPI}
22802
+ */
22803
+ export class HostingFilesApi extends BaseAPI {
22804
+ /**
22805
+ * 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.
22806
+ * @summary Get website file content
22807
+ * @param {string} username
22808
+ * @param {string} domain Domain name
22809
+ * @param {string} path File path, relative to the document root.
22810
+ * @param {number | null} [fromLine] Line offset to start reading from.
22811
+ * @param {number | null} [maxLines] Max number of lines to return.
22812
+ * @param {*} [options] Override http request option.
22813
+ * @throws {RequiredError}
22814
+ * @memberof HostingFilesApi
22815
+ */
22816
+ public getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig) {
22817
+ return HostingFilesApiFp(this.configuration).getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(this.axios, this.basePath));
22818
+ }
22819
+
22820
+ /**
22821
+ * List files and directories under a website\'s document root. Use `directory` to browse a subdirectory relative to the document root. Symlinked entries are listed but never traversed into or resolved.
22822
+ * @summary List website files and directories
22823
+ * @param {string} username
22824
+ * @param {string} domain Domain name
22825
+ * @param {string} [directory] Directory path to check
22826
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22827
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22828
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22829
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22830
+ * @param {*} [options] Override http request option.
22831
+ * @throws {RequiredError}
22832
+ * @memberof HostingFilesApi
22833
+ */
22834
+ public listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options?: RawAxiosRequestConfig) {
22835
+ return HostingFilesApiFp(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
22836
+ }
22837
+ }
22838
+
22839
+
22840
+
22282
22841
  /**
22283
22842
  * HostingNodeJSApi - axios parameter creator
22284
22843
  * @export
@@ -23611,18 +24170,15 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
23611
24170
  };
23612
24171
  },
23613
24172
  /**
23614
- * Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
24173
+ * This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
23615
24174
  * @summary Delete website
23616
24175
  * @param {string} domain Domain name
23617
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23618
24176
  * @param {*} [options] Override http request option.
23619
24177
  * @throws {RequiredError}
23620
24178
  */
23621
- deleteWebsiteV1: async (domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24179
+ deleteWebsiteV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23622
24180
  // verify required parameter 'domain' is not null or undefined
23623
24181
  assertParamExists('deleteWebsiteV1', 'domain', domain)
23624
- // verify required parameter 'hostingV1WebsitesDeleteWebsiteRequest' is not null or undefined
23625
- assertParamExists('deleteWebsiteV1', 'hostingV1WebsitesDeleteWebsiteRequest', hostingV1WebsitesDeleteWebsiteRequest)
23626
24182
  const localVarPath = `/api/hosting/v1/websites/{domain}`
23627
24183
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
23628
24184
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -23642,12 +24198,9 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
23642
24198
 
23643
24199
 
23644
24200
 
23645
- localVarHeaderParameter['Content-Type'] = 'application/json';
23646
-
23647
24201
  setSearchParams(localVarUrlObj, localVarQueryParameter);
23648
24202
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23649
24203
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23650
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WebsitesDeleteWebsiteRequest, localVarRequestOptions, configuration)
23651
24204
 
23652
24205
  return {
23653
24206
  url: toPathString(localVarUrlObj),
@@ -23741,15 +24294,14 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
23741
24294
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23742
24295
  },
23743
24296
  /**
23744
- * Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
24297
+ * This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
23745
24298
  * @summary Delete website
23746
24299
  * @param {string} domain Domain name
23747
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23748
24300
  * @param {*} [options] Override http request option.
23749
24301
  * @throws {RequiredError}
23750
24302
  */
23751
- async deleteWebsiteV1(domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
23752
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebsiteV1(domain, hostingV1WebsitesDeleteWebsiteRequest, options);
24303
+ async deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
24304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebsiteV1(domain, options);
23753
24305
  const localVarOperationServerBasePath = operationServerMap['HostingWebsitesApi.deleteWebsiteV1']?.[0]?.url;
23754
24306
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23755
24307
  },
@@ -23791,15 +24343,14 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
23791
24343
  return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
23792
24344
  },
23793
24345
  /**
23794
- * Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
24346
+ * This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
23795
24347
  * @summary Delete website
23796
24348
  * @param {string} domain Domain name
23797
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23798
24349
  * @param {*} [options] Override http request option.
23799
24350
  * @throws {RequiredError}
23800
24351
  */
23801
- deleteWebsiteV1(domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
23802
- return localVarFp.deleteWebsiteV1(domain, hostingV1WebsitesDeleteWebsiteRequest, options).then((request) => request(axios, basePath));
24352
+ deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
24353
+ return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
23803
24354
  },
23804
24355
  /**
23805
24356
  * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
@@ -23839,16 +24390,15 @@ export class HostingWebsitesApi extends BaseAPI {
23839
24390
  }
23840
24391
 
23841
24392
  /**
23842
- * Permanently deletes a website and all of its data. This action is destructive and cannot be undone. Always ask the user for explicit confirmation before calling this endpoint. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. The confirm field must be boolean true, otherwise the request is rejected. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
24393
+ * This endpoint permanently removes a website and all of its data. This action cannot be undone. Before calling it, make sure the user understands the consequences and explicitly confirms that they want to proceed. All website files, databases and related configuration will be removed. The hosting plan itself is kept, so a new website can be created on it afterwards. Supported websites: main and addon domain websites on web hosting plans, and Website Builder websites. Parked domains and subdomains cannot be deleted with this endpoint. The domain must be the exact website domain, not a preview domain or an alias. Returns 404 when the domain does not exist or does not belong to the authenticated client. Website removal is processed asynchronously and can take a few minutes to complete. The response returns before the removal finishes.
23843
24394
  * @summary Delete website
23844
24395
  * @param {string} domain Domain name
23845
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23846
24396
  * @param {*} [options] Override http request option.
23847
24397
  * @throws {RequiredError}
23848
24398
  * @memberof HostingWebsitesApi
23849
24399
  */
23850
- public deleteWebsiteV1(domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options?: RawAxiosRequestConfig) {
23851
- return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, hostingV1WebsitesDeleteWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
24400
+ public deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig) {
24401
+ return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
23852
24402
  }
23853
24403
 
23854
24404
  /**