hostinger-api-sdk 1.30.0 → 1.30.2

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 (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +714 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +445 -30
  7. package/dist/api.js +500 -33
  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 +445 -30
  15. package/dist/esm/api.js +487 -24
  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/DomainsAvailabilityApi.md +113 -1
  27. package/docs/DomainsV1AvailabilityAlternativesFromDescriptionRequest.md +22 -0
  28. package/docs/DomainsV1AvailabilityAlternativesFromDomainRequest.md +22 -0
  29. package/docs/EcommerceProductsApi.md +62 -0
  30. package/docs/EcommerceV1ProductProductImageUploadResource.md +22 -0
  31. package/docs/EcommerceV1ProductUploadProductImageRequest.md +22 -0
  32. package/docs/HostingFilesApi.md +148 -0
  33. package/docs/{HostingV1WebsitesDeleteWebsiteRequest.md → HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md} +3 -5
  34. package/docs/HostingV1FilesFileContentResource.md +28 -0
  35. package/docs/HostingV1FilesFilesResource.md +28 -0
  36. package/docs/HostingV1FilesFilesResourceItemsInner.md +26 -0
  37. package/docs/HostingWebsitesApi.md +5 -9
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
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.2
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
@@ -3505,6 +3543,44 @@ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
3505
3543
 
3506
3544
  export type EcommerceV1ProductProductCreationResourceProductTypeEnum = typeof EcommerceV1ProductProductCreationResourceProductTypeEnum[keyof typeof EcommerceV1ProductProductCreationResourceProductTypeEnum];
3507
3545
 
3546
+ /**
3547
+ *
3548
+ * @export
3549
+ * @interface EcommerceV1ProductProductImageUploadResource
3550
+ */
3551
+ export interface EcommerceV1ProductProductImageUploadResource {
3552
+ /**
3553
+ * CDN URL of the uploaded image.
3554
+ * @type {string}
3555
+ * @memberof EcommerceV1ProductProductImageUploadResource
3556
+ */
3557
+ 'url': string;
3558
+ /**
3559
+ * Whether the image was set as the product\'s thumbnail (primary image).
3560
+ * @type {boolean}
3561
+ * @memberof EcommerceV1ProductProductImageUploadResource
3562
+ */
3563
+ 'is_thumbnail': boolean;
3564
+ }
3565
+ /**
3566
+ *
3567
+ * @export
3568
+ * @interface EcommerceV1ProductUploadProductImageRequest
3569
+ */
3570
+ export interface EcommerceV1ProductUploadProductImageRequest {
3571
+ /**
3572
+ * Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted.
3573
+ * @type {string}
3574
+ * @memberof EcommerceV1ProductUploadProductImageRequest
3575
+ */
3576
+ 'image': string;
3577
+ /**
3578
+ * When true, the image becomes the product\'s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.
3579
+ * @type {boolean}
3580
+ * @memberof EcommerceV1ProductUploadProductImageRequest
3581
+ */
3582
+ 'is_thumbnail': boolean | null;
3583
+ }
3508
3584
  /**
3509
3585
  *
3510
3586
  * @export
@@ -4237,6 +4313,12 @@ export interface HostingListOrdersV1200Response {
4237
4313
  */
4238
4314
  'meta': CommonSchemaPaginationMetaSchema;
4239
4315
  }
4316
+ /**
4317
+ * @type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
4318
+ * @export
4319
+ */
4320
+ export type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = Array<string> | string;
4321
+
4240
4322
  /**
4241
4323
  *
4242
4324
  * @export
@@ -4723,6 +4805,121 @@ export interface HostingV1DomainsVerifyOwnershipRequest {
4723
4805
  */
4724
4806
  'domain': string;
4725
4807
  }
4808
+ /**
4809
+ *
4810
+ * @export
4811
+ * @interface HostingV1FilesFileContentResource
4812
+ */
4813
+ export interface HostingV1FilesFileContentResource {
4814
+ /**
4815
+ * File path, relative to the document root.
4816
+ * @type {string}
4817
+ * @memberof HostingV1FilesFileContentResource
4818
+ */
4819
+ 'path': string;
4820
+ /**
4821
+ * File content for the requested line range.
4822
+ * @type {string}
4823
+ * @memberof HostingV1FilesFileContentResource
4824
+ */
4825
+ 'content': string;
4826
+ /**
4827
+ * Line offset the returned content starts from.
4828
+ * @type {number}
4829
+ * @memberof HostingV1FilesFileContentResource
4830
+ */
4831
+ 'from_line': number;
4832
+ /**
4833
+ * Total number of lines in the file.
4834
+ * @type {number}
4835
+ * @memberof HostingV1FilesFileContentResource
4836
+ */
4837
+ 'total_lines': number;
4838
+ /**
4839
+ * Total file size in bytes.
4840
+ * @type {number}
4841
+ * @memberof HostingV1FilesFileContentResource
4842
+ */
4843
+ 'size_bytes': number;
4844
+ }
4845
+ /**
4846
+ *
4847
+ * @export
4848
+ * @interface HostingV1FilesFilesResource
4849
+ */
4850
+ export interface HostingV1FilesFilesResource {
4851
+ /**
4852
+ * Listed directory, relative to the document root.
4853
+ * @type {string}
4854
+ * @memberof HostingV1FilesFilesResource
4855
+ */
4856
+ 'path': string;
4857
+ /**
4858
+ * Entries found in the listed directory.
4859
+ * @type {Array<HostingV1FilesFilesResourceItemsInner>}
4860
+ * @memberof HostingV1FilesFilesResource
4861
+ */
4862
+ 'items': Array<HostingV1FilesFilesResourceItemsInner>;
4863
+ /**
4864
+ * Total number of entries matching the listing, across all pages.
4865
+ * @type {number}
4866
+ * @memberof HostingV1FilesFilesResource
4867
+ */
4868
+ 'total_items': number;
4869
+ /**
4870
+ * Number of entries in this page.
4871
+ * @type {number}
4872
+ * @memberof HostingV1FilesFilesResource
4873
+ */
4874
+ 'total_items_current_page': number;
4875
+ /**
4876
+ * Number of entries skipped before this page.
4877
+ * @type {number}
4878
+ * @memberof HostingV1FilesFilesResource
4879
+ */
4880
+ 'offset': number;
4881
+ }
4882
+ /**
4883
+ *
4884
+ * @export
4885
+ * @interface HostingV1FilesFilesResourceItemsInner
4886
+ */
4887
+ export interface HostingV1FilesFilesResourceItemsInner {
4888
+ /**
4889
+ * Entry name.
4890
+ * @type {string}
4891
+ * @memberof HostingV1FilesFilesResourceItemsInner
4892
+ */
4893
+ 'name': string;
4894
+ /**
4895
+ * Entry path, relative to the document root.
4896
+ * @type {string}
4897
+ * @memberof HostingV1FilesFilesResourceItemsInner
4898
+ */
4899
+ 'path': string;
4900
+ /**
4901
+ * Entry type.
4902
+ * @type {string}
4903
+ * @memberof HostingV1FilesFilesResourceItemsInner
4904
+ */
4905
+ 'type': HostingV1FilesFilesResourceItemsInnerTypeEnum;
4906
+ /**
4907
+ * Entry size in bytes. Null for directories, symlinks, and other non-file entries.
4908
+ * @type {number}
4909
+ * @memberof HostingV1FilesFilesResourceItemsInner
4910
+ */
4911
+ 'size_bytes': number | null;
4912
+ }
4913
+
4914
+ export const HostingV1FilesFilesResourceItemsInnerTypeEnum = {
4915
+ File: 'file',
4916
+ Directory: 'directory',
4917
+ Symlink: 'symlink',
4918
+ Other: 'other'
4919
+ } as const;
4920
+
4921
+ export type HostingV1FilesFilesResourceItemsInnerTypeEnum = typeof HostingV1FilesFilesResourceItemsInnerTypeEnum[keyof typeof HostingV1FilesFilesResourceItemsInnerTypeEnum];
4922
+
4726
4923
  /**
4727
4924
  *
4728
4925
  * @export
@@ -5374,19 +5571,6 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
5374
5571
  */
5375
5572
  'datacenter_code': string | null;
5376
5573
  }
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
5574
  /**
5391
5575
  *
5392
5576
  * @export
@@ -15753,7 +15937,7 @@ export class DomainAccessVerifierVerificationsApi extends BaseAPI {
15753
15937
  export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
15754
15938
  return {
15755
15939
  /**
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.
15940
+ * 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
15941
  * @summary Check domain availability
15758
15942
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15759
15943
  * @param {*} [options] Override http request option.
@@ -15787,6 +15971,86 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?:
15787
15971
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15788
15972
  localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration)
15789
15973
 
15974
+ return {
15975
+ url: toPathString(localVarUrlObj),
15976
+ options: localVarRequestOptions,
15977
+ };
15978
+ },
15979
+ /**
15980
+ * 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.
15981
+ * @summary Suggest domain names from a description
15982
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
15983
+ * @param {*} [options] Override http request option.
15984
+ * @throws {RequiredError}
15985
+ */
15986
+ suggestDomainNamesFromADescriptionV1: async (domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15987
+ // verify required parameter 'domainsV1AvailabilityAlternativesFromDescriptionRequest' is not null or undefined
15988
+ assertParamExists('suggestDomainNamesFromADescriptionV1', 'domainsV1AvailabilityAlternativesFromDescriptionRequest', domainsV1AvailabilityAlternativesFromDescriptionRequest)
15989
+ const localVarPath = `/api/domains/v1/availability/alternatives-from-description`;
15990
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15991
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15992
+ let baseOptions;
15993
+ if (configuration) {
15994
+ baseOptions = configuration.baseOptions;
15995
+ }
15996
+
15997
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15998
+ const localVarHeaderParameter = {} as any;
15999
+ const localVarQueryParameter = {} as any;
16000
+
16001
+ // authentication apiToken required
16002
+ // http bearer authentication required
16003
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16004
+
16005
+
16006
+
16007
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16008
+
16009
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16010
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16011
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16012
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDescriptionRequest, localVarRequestOptions, configuration)
16013
+
16014
+ return {
16015
+ url: toPathString(localVarUrlObj),
16016
+ options: localVarRequestOptions,
16017
+ };
16018
+ },
16019
+ /**
16020
+ * 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.
16021
+ * @summary Suggest domain names from a domain
16022
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16023
+ * @param {*} [options] Override http request option.
16024
+ * @throws {RequiredError}
16025
+ */
16026
+ suggestDomainNamesFromADomainV1: async (domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16027
+ // verify required parameter 'domainsV1AvailabilityAlternativesFromDomainRequest' is not null or undefined
16028
+ assertParamExists('suggestDomainNamesFromADomainV1', 'domainsV1AvailabilityAlternativesFromDomainRequest', domainsV1AvailabilityAlternativesFromDomainRequest)
16029
+ const localVarPath = `/api/domains/v1/availability/alternatives-from-domain`;
16030
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16031
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16032
+ let baseOptions;
16033
+ if (configuration) {
16034
+ baseOptions = configuration.baseOptions;
16035
+ }
16036
+
16037
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16038
+ const localVarHeaderParameter = {} as any;
16039
+ const localVarQueryParameter = {} as any;
16040
+
16041
+ // authentication apiToken required
16042
+ // http bearer authentication required
16043
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16044
+
16045
+
16046
+
16047
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16048
+
16049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16051
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16052
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAlternativesFromDomainRequest, localVarRequestOptions, configuration)
16053
+
15790
16054
  return {
15791
16055
  url: toPathString(localVarUrlObj),
15792
16056
  options: localVarRequestOptions,
@@ -15803,7 +16067,7 @@ export const DomainsAvailabilityApiFp = function(configuration?: Configuration)
15803
16067
  const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
15804
16068
  return {
15805
16069
  /**
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.
16070
+ * 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
16071
  * @summary Check domain availability
15808
16072
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15809
16073
  * @param {*} [options] Override http request option.
@@ -15814,6 +16078,30 @@ export const DomainsAvailabilityApiFp = function(configuration?: Configuration)
15814
16078
  const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']?.[0]?.url;
15815
16079
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15816
16080
  },
16081
+ /**
16082
+ * 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.
16083
+ * @summary Suggest domain names from a description
16084
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16085
+ * @param {*} [options] Override http request option.
16086
+ * @throws {RequiredError}
16087
+ */
16088
+ async suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
16089
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options);
16090
+ const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADescriptionV1']?.[0]?.url;
16091
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16092
+ },
16093
+ /**
16094
+ * 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.
16095
+ * @summary Suggest domain names from a domain
16096
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16097
+ * @param {*} [options] Override http request option.
16098
+ * @throws {RequiredError}
16099
+ */
16100
+ async suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
16101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options);
16102
+ const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.suggestDomainNamesFromADomainV1']?.[0]?.url;
16103
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16104
+ },
15817
16105
  }
15818
16106
  };
15819
16107
 
@@ -15825,7 +16113,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15825
16113
  const localVarFp = DomainsAvailabilityApiFp(configuration)
15826
16114
  return {
15827
16115
  /**
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.
16116
+ * 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
16117
  * @summary Check domain availability
15830
16118
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15831
16119
  * @param {*} [options] Override http request option.
@@ -15834,6 +16122,26 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15834
16122
  checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>> {
15835
16123
  return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
15836
16124
  },
16125
+ /**
16126
+ * 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.
16127
+ * @summary Suggest domain names from a description
16128
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16129
+ * @param {*} [options] Override http request option.
16130
+ * @throws {RequiredError}
16131
+ */
16132
+ suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16133
+ return localVarFp.suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(axios, basePath));
16134
+ },
16135
+ /**
16136
+ * 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.
16137
+ * @summary Suggest domain names from a domain
16138
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16139
+ * @param {*} [options] Override http request option.
16140
+ * @throws {RequiredError}
16141
+ */
16142
+ suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
16143
+ return localVarFp.suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(axios, basePath));
16144
+ },
15837
16145
  };
15838
16146
  };
15839
16147
 
@@ -15845,7 +16153,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
15845
16153
  */
15846
16154
  export class DomainsAvailabilityApi extends BaseAPI {
15847
16155
  /**
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.
16156
+ * 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
16157
  * @summary Check domain availability
15850
16158
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
15851
16159
  * @param {*} [options] Override http request option.
@@ -15855,6 +16163,30 @@ export class DomainsAvailabilityApi extends BaseAPI {
15855
16163
  public checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig) {
15856
16164
  return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
15857
16165
  }
16166
+
16167
+ /**
16168
+ * 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.
16169
+ * @summary Suggest domain names from a description
16170
+ * @param {DomainsV1AvailabilityAlternativesFromDescriptionRequest} domainsV1AvailabilityAlternativesFromDescriptionRequest
16171
+ * @param {*} [options] Override http request option.
16172
+ * @throws {RequiredError}
16173
+ * @memberof DomainsAvailabilityApi
16174
+ */
16175
+ public suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest: DomainsV1AvailabilityAlternativesFromDescriptionRequest, options?: RawAxiosRequestConfig) {
16176
+ return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADescriptionV1(domainsV1AvailabilityAlternativesFromDescriptionRequest, options).then((request) => request(this.axios, this.basePath));
16177
+ }
16178
+
16179
+ /**
16180
+ * 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.
16181
+ * @summary Suggest domain names from a domain
16182
+ * @param {DomainsV1AvailabilityAlternativesFromDomainRequest} domainsV1AvailabilityAlternativesFromDomainRequest
16183
+ * @param {*} [options] Override http request option.
16184
+ * @throws {RequiredError}
16185
+ * @memberof DomainsAvailabilityApi
16186
+ */
16187
+ public suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest: DomainsV1AvailabilityAlternativesFromDomainRequest, options?: RawAxiosRequestConfig) {
16188
+ return DomainsAvailabilityApiFp(this.configuration).suggestDomainNamesFromADomainV1(domainsV1AvailabilityAlternativesFromDomainRequest, options).then((request) => request(this.axios, this.basePath));
16189
+ }
15858
16190
  }
15859
16191
 
15860
16192
 
@@ -18988,6 +19320,54 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
18988
19320
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18989
19321
  localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration)
18990
19322
 
19323
+ return {
19324
+ url: toPathString(localVarUrlObj),
19325
+ options: localVarRequestOptions,
19326
+ };
19327
+ },
19328
+ /**
19329
+ * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19330
+ * @summary Upload and attach a product image
19331
+ * @param {string} storeId The ID of the store the product belongs to.
19332
+ * @param {string} productId The ID of the product to attach the image to.
19333
+ * @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
19334
+ * @param {*} [options] Override http request option.
19335
+ * @throws {RequiredError}
19336
+ */
19337
+ uploadAndAttachAProductImageV1: async (storeId: string, productId: string, ecommerceV1ProductUploadProductImageRequest: EcommerceV1ProductUploadProductImageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19338
+ // verify required parameter 'storeId' is not null or undefined
19339
+ assertParamExists('uploadAndAttachAProductImageV1', 'storeId', storeId)
19340
+ // verify required parameter 'productId' is not null or undefined
19341
+ assertParamExists('uploadAndAttachAProductImageV1', 'productId', productId)
19342
+ // verify required parameter 'ecommerceV1ProductUploadProductImageRequest' is not null or undefined
19343
+ assertParamExists('uploadAndAttachAProductImageV1', 'ecommerceV1ProductUploadProductImageRequest', ecommerceV1ProductUploadProductImageRequest)
19344
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/{product_id}/images`
19345
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)))
19346
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
19347
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19348
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19349
+ let baseOptions;
19350
+ if (configuration) {
19351
+ baseOptions = configuration.baseOptions;
19352
+ }
19353
+
19354
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19355
+ const localVarHeaderParameter = {} as any;
19356
+ const localVarQueryParameter = {} as any;
19357
+
19358
+ // authentication apiToken required
19359
+ // http bearer authentication required
19360
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19361
+
19362
+
19363
+
19364
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19365
+
19366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19368
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19369
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductUploadProductImageRequest, localVarRequestOptions, configuration)
19370
+
18991
19371
  return {
18992
19372
  url: toPathString(localVarUrlObj),
18993
19373
  options: localVarRequestOptions,
@@ -19029,6 +19409,20 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
19029
19409
  const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.createPhysicalProductV1']?.[0]?.url;
19030
19410
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19031
19411
  },
19412
+ /**
19413
+ * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19414
+ * @summary Upload and attach a product image
19415
+ * @param {string} storeId The ID of the store the product belongs to.
19416
+ * @param {string} productId The ID of the product to attach the image to.
19417
+ * @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
19418
+ * @param {*} [options] Override http request option.
19419
+ * @throws {RequiredError}
19420
+ */
19421
+ async uploadAndAttachAProductImageV1(storeId: string, productId: string, ecommerceV1ProductUploadProductImageRequest: EcommerceV1ProductUploadProductImageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductImageUploadResource>> {
19422
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options);
19423
+ const localVarOperationServerBasePath = operationServerMap['EcommerceProductsApi.uploadAndAttachAProductImageV1']?.[0]?.url;
19424
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19425
+ },
19032
19426
  }
19033
19427
  };
19034
19428
 
@@ -19061,6 +19455,18 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
19061
19455
  createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductCreationResource> {
19062
19456
  return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
19063
19457
  },
19458
+ /**
19459
+ * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19460
+ * @summary Upload and attach a product image
19461
+ * @param {string} storeId The ID of the store the product belongs to.
19462
+ * @param {string} productId The ID of the product to attach the image to.
19463
+ * @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
19464
+ * @param {*} [options] Override http request option.
19465
+ * @throws {RequiredError}
19466
+ */
19467
+ uploadAndAttachAProductImageV1(storeId: string, productId: string, ecommerceV1ProductUploadProductImageRequest: EcommerceV1ProductUploadProductImageRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductImageUploadResource> {
19468
+ return localVarFp.uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options).then((request) => request(axios, basePath));
19469
+ },
19064
19470
  };
19065
19471
  };
19066
19472
 
@@ -19096,6 +19502,20 @@ export class EcommerceProductsApi extends BaseAPI {
19096
19502
  public createPhysicalProductV1(storeId: string, ecommerceV1ProductCreatePhysicalProductRequest: EcommerceV1ProductCreatePhysicalProductRequest, options?: RawAxiosRequestConfig) {
19097
19503
  return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
19098
19504
  }
19505
+
19506
+ /**
19507
+ * Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
19508
+ * @summary Upload and attach a product image
19509
+ * @param {string} storeId The ID of the store the product belongs to.
19510
+ * @param {string} productId The ID of the product to attach the image to.
19511
+ * @param {EcommerceV1ProductUploadProductImageRequest} ecommerceV1ProductUploadProductImageRequest
19512
+ * @param {*} [options] Override http request option.
19513
+ * @throws {RequiredError}
19514
+ * @memberof EcommerceProductsApi
19515
+ */
19516
+ public uploadAndAttachAProductImageV1(storeId: string, productId: string, ecommerceV1ProductUploadProductImageRequest: EcommerceV1ProductUploadProductImageRequest, options?: RawAxiosRequestConfig) {
19517
+ return EcommerceProductsApiFp(this.configuration).uploadAndAttachAProductImageV1(storeId, productId, ecommerceV1ProductUploadProductImageRequest, options).then((request) => request(this.axios, this.basePath));
19518
+ }
19099
19519
  }
19100
19520
 
19101
19521
 
@@ -22279,6 +22699,271 @@ export class HostingDomainsApi extends BaseAPI {
22279
22699
 
22280
22700
 
22281
22701
 
22702
+ /**
22703
+ * HostingFilesApi - axios parameter creator
22704
+ * @export
22705
+ */
22706
+ export const HostingFilesApiAxiosParamCreator = function (configuration?: Configuration) {
22707
+ return {
22708
+ /**
22709
+ * 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.
22710
+ * @summary Get website file content
22711
+ * @param {string} username
22712
+ * @param {string} domain Domain name
22713
+ * @param {string} path File path, relative to the document root.
22714
+ * @param {number | null} [fromLine] Line offset to start reading from.
22715
+ * @param {number | null} [maxLines] Max number of lines to return.
22716
+ * @param {*} [options] Override http request option.
22717
+ * @throws {RequiredError}
22718
+ */
22719
+ getWebsiteFileContentV1: async (username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22720
+ // verify required parameter 'username' is not null or undefined
22721
+ assertParamExists('getWebsiteFileContentV1', 'username', username)
22722
+ // verify required parameter 'domain' is not null or undefined
22723
+ assertParamExists('getWebsiteFileContentV1', 'domain', domain)
22724
+ // verify required parameter 'path' is not null or undefined
22725
+ assertParamExists('getWebsiteFileContentV1', 'path', path)
22726
+ const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files/content`
22727
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22728
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22731
+ let baseOptions;
22732
+ if (configuration) {
22733
+ baseOptions = configuration.baseOptions;
22734
+ }
22735
+
22736
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22737
+ const localVarHeaderParameter = {} as any;
22738
+ const localVarQueryParameter = {} as any;
22739
+
22740
+ // authentication apiToken required
22741
+ // http bearer authentication required
22742
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22743
+
22744
+ if (path !== undefined) {
22745
+ localVarQueryParameter['path'] = path;
22746
+ }
22747
+
22748
+ if (fromLine !== undefined) {
22749
+ localVarQueryParameter['from_line'] = fromLine;
22750
+ }
22751
+
22752
+ if (maxLines !== undefined) {
22753
+ localVarQueryParameter['max_lines'] = maxLines;
22754
+ }
22755
+
22756
+
22757
+
22758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22760
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22761
+
22762
+ return {
22763
+ url: toPathString(localVarUrlObj),
22764
+ options: localVarRequestOptions,
22765
+ };
22766
+ },
22767
+ /**
22768
+ * 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.
22769
+ * @summary List website files and directories
22770
+ * @param {string} username
22771
+ * @param {string} domain Domain name
22772
+ * @param {string} [directory] Directory path to check
22773
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22774
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22775
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22776
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22777
+ * @param {*} [options] Override http request option.
22778
+ * @throws {RequiredError}
22779
+ */
22780
+ listWebsiteFilesAndDirectoriesV1: async (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22781
+ // verify required parameter 'username' is not null or undefined
22782
+ assertParamExists('listWebsiteFilesAndDirectoriesV1', 'username', username)
22783
+ // verify required parameter 'domain' is not null or undefined
22784
+ assertParamExists('listWebsiteFilesAndDirectoriesV1', 'domain', domain)
22785
+ const localVarPath = `/api/hosting/v1/accounts/{username}/domains/{domain}/files`
22786
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
22787
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22788
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22789
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22790
+ let baseOptions;
22791
+ if (configuration) {
22792
+ baseOptions = configuration.baseOptions;
22793
+ }
22794
+
22795
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22796
+ const localVarHeaderParameter = {} as any;
22797
+ const localVarQueryParameter = {} as any;
22798
+
22799
+ // authentication apiToken required
22800
+ // http bearer authentication required
22801
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22802
+
22803
+ if (directory !== undefined) {
22804
+ localVarQueryParameter['directory'] = directory;
22805
+ }
22806
+
22807
+ if (maxDepth !== undefined) {
22808
+ localVarQueryParameter['max_depth'] = maxDepth;
22809
+ }
22810
+
22811
+ if (maxItems !== undefined) {
22812
+ localVarQueryParameter['max_items'] = maxItems;
22813
+ }
22814
+
22815
+ if (offset !== undefined) {
22816
+ localVarQueryParameter['offset'] = offset;
22817
+ }
22818
+
22819
+ if (fileTypes !== undefined) {
22820
+ for (const [key, value] of Object.entries(fileTypes)) {
22821
+ localVarQueryParameter[key] = value;
22822
+ }
22823
+ }
22824
+
22825
+
22826
+
22827
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22828
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22829
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22830
+
22831
+ return {
22832
+ url: toPathString(localVarUrlObj),
22833
+ options: localVarRequestOptions,
22834
+ };
22835
+ },
22836
+ }
22837
+ };
22838
+
22839
+ /**
22840
+ * HostingFilesApi - functional programming interface
22841
+ * @export
22842
+ */
22843
+ export const HostingFilesApiFp = function(configuration?: Configuration) {
22844
+ const localVarAxiosParamCreator = HostingFilesApiAxiosParamCreator(configuration)
22845
+ return {
22846
+ /**
22847
+ * 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.
22848
+ * @summary Get website file content
22849
+ * @param {string} username
22850
+ * @param {string} domain Domain name
22851
+ * @param {string} path File path, relative to the document root.
22852
+ * @param {number | null} [fromLine] Line offset to start reading from.
22853
+ * @param {number | null} [maxLines] Max number of lines to return.
22854
+ * @param {*} [options] Override http request option.
22855
+ * @throws {RequiredError}
22856
+ */
22857
+ async getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFileContentResource>> {
22858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options);
22859
+ const localVarOperationServerBasePath = operationServerMap['HostingFilesApi.getWebsiteFileContentV1']?.[0]?.url;
22860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22861
+ },
22862
+ /**
22863
+ * 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.
22864
+ * @summary List website files and directories
22865
+ * @param {string} username
22866
+ * @param {string} domain Domain name
22867
+ * @param {string} [directory] Directory path to check
22868
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22869
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22870
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22871
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22872
+ * @param {*} [options] Override http request option.
22873
+ * @throws {RequiredError}
22874
+ */
22875
+ 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>> {
22876
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options);
22877
+ const localVarOperationServerBasePath = operationServerMap['HostingFilesApi.listWebsiteFilesAndDirectoriesV1']?.[0]?.url;
22878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22879
+ },
22880
+ }
22881
+ };
22882
+
22883
+ /**
22884
+ * HostingFilesApi - factory interface
22885
+ * @export
22886
+ */
22887
+ export const HostingFilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22888
+ const localVarFp = HostingFilesApiFp(configuration)
22889
+ return {
22890
+ /**
22891
+ * 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.
22892
+ * @summary Get website file content
22893
+ * @param {string} username
22894
+ * @param {string} domain Domain name
22895
+ * @param {string} path File path, relative to the document root.
22896
+ * @param {number | null} [fromLine] Line offset to start reading from.
22897
+ * @param {number | null} [maxLines] Max number of lines to return.
22898
+ * @param {*} [options] Override http request option.
22899
+ * @throws {RequiredError}
22900
+ */
22901
+ getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFileContentResource> {
22902
+ return localVarFp.getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(axios, basePath));
22903
+ },
22904
+ /**
22905
+ * 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.
22906
+ * @summary List website files and directories
22907
+ * @param {string} username
22908
+ * @param {string} domain Domain name
22909
+ * @param {string} [directory] Directory path to check
22910
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22911
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22912
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22913
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22914
+ * @param {*} [options] Override http request option.
22915
+ * @throws {RequiredError}
22916
+ */
22917
+ listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFilesResource> {
22918
+ return localVarFp.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(axios, basePath));
22919
+ },
22920
+ };
22921
+ };
22922
+
22923
+ /**
22924
+ * HostingFilesApi - object-oriented interface
22925
+ * @export
22926
+ * @class HostingFilesApi
22927
+ * @extends {BaseAPI}
22928
+ */
22929
+ export class HostingFilesApi extends BaseAPI {
22930
+ /**
22931
+ * 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.
22932
+ * @summary Get website file content
22933
+ * @param {string} username
22934
+ * @param {string} domain Domain name
22935
+ * @param {string} path File path, relative to the document root.
22936
+ * @param {number | null} [fromLine] Line offset to start reading from.
22937
+ * @param {number | null} [maxLines] Max number of lines to return.
22938
+ * @param {*} [options] Override http request option.
22939
+ * @throws {RequiredError}
22940
+ * @memberof HostingFilesApi
22941
+ */
22942
+ public getWebsiteFileContentV1(username: string, domain: string, path: string, fromLine?: number | null, maxLines?: number | null, options?: RawAxiosRequestConfig) {
22943
+ return HostingFilesApiFp(this.configuration).getWebsiteFileContentV1(username, domain, path, fromLine, maxLines, options).then((request) => request(this.axios, this.basePath));
22944
+ }
22945
+
22946
+ /**
22947
+ * 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.
22948
+ * @summary List website files and directories
22949
+ * @param {string} username
22950
+ * @param {string} domain Domain name
22951
+ * @param {string} [directory] Directory path to check
22952
+ * @param {number | null} [maxDepth] How many directory levels deep to recurse.
22953
+ * @param {number | null} [maxItems] Max number of entries to return in this page.
22954
+ * @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
22955
+ * @param {HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter} [fileTypes] Filter by entry type, e.g. file,directory. Array or comma-separated. Omit for all types.
22956
+ * @param {*} [options] Override http request option.
22957
+ * @throws {RequiredError}
22958
+ * @memberof HostingFilesApi
22959
+ */
22960
+ public listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter, options?: RawAxiosRequestConfig) {
22961
+ return HostingFilesApiFp(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
22962
+ }
22963
+ }
22964
+
22965
+
22966
+
22282
22967
  /**
22283
22968
  * HostingNodeJSApi - axios parameter creator
22284
22969
  * @export
@@ -23611,18 +24296,15 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
23611
24296
  };
23612
24297
  },
23613
24298
  /**
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.
24299
+ * 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
24300
  * @summary Delete website
23616
24301
  * @param {string} domain Domain name
23617
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23618
24302
  * @param {*} [options] Override http request option.
23619
24303
  * @throws {RequiredError}
23620
24304
  */
23621
- deleteWebsiteV1: async (domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24305
+ deleteWebsiteV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23622
24306
  // verify required parameter 'domain' is not null or undefined
23623
24307
  assertParamExists('deleteWebsiteV1', 'domain', domain)
23624
- // verify required parameter 'hostingV1WebsitesDeleteWebsiteRequest' is not null or undefined
23625
- assertParamExists('deleteWebsiteV1', 'hostingV1WebsitesDeleteWebsiteRequest', hostingV1WebsitesDeleteWebsiteRequest)
23626
24308
  const localVarPath = `/api/hosting/v1/websites/{domain}`
23627
24309
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
23628
24310
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -23642,12 +24324,9 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
23642
24324
 
23643
24325
 
23644
24326
 
23645
- localVarHeaderParameter['Content-Type'] = 'application/json';
23646
-
23647
24327
  setSearchParams(localVarUrlObj, localVarQueryParameter);
23648
24328
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23649
24329
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23650
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WebsitesDeleteWebsiteRequest, localVarRequestOptions, configuration)
23651
24330
 
23652
24331
  return {
23653
24332
  url: toPathString(localVarUrlObj),
@@ -23741,15 +24420,14 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
23741
24420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23742
24421
  },
23743
24422
  /**
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.
24423
+ * 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
24424
  * @summary Delete website
23746
24425
  * @param {string} domain Domain name
23747
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23748
24426
  * @param {*} [options] Override http request option.
23749
24427
  * @throws {RequiredError}
23750
24428
  */
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);
24429
+ async deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
24430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebsiteV1(domain, options);
23753
24431
  const localVarOperationServerBasePath = operationServerMap['HostingWebsitesApi.deleteWebsiteV1']?.[0]?.url;
23754
24432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23755
24433
  },
@@ -23791,15 +24469,14 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
23791
24469
  return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
23792
24470
  },
23793
24471
  /**
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.
24472
+ * 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
24473
  * @summary Delete website
23796
24474
  * @param {string} domain Domain name
23797
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23798
24475
  * @param {*} [options] Override http request option.
23799
24476
  * @throws {RequiredError}
23800
24477
  */
23801
- deleteWebsiteV1(domain: string, hostingV1WebsitesDeleteWebsiteRequest: HostingV1WebsitesDeleteWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
23802
- return localVarFp.deleteWebsiteV1(domain, hostingV1WebsitesDeleteWebsiteRequest, options).then((request) => request(axios, basePath));
24478
+ deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
24479
+ return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
23803
24480
  },
23804
24481
  /**
23805
24482
  * 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 +24516,15 @@ export class HostingWebsitesApi extends BaseAPI {
23839
24516
  }
23840
24517
 
23841
24518
  /**
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.
24519
+ * 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
24520
  * @summary Delete website
23844
24521
  * @param {string} domain Domain name
23845
- * @param {HostingV1WebsitesDeleteWebsiteRequest} hostingV1WebsitesDeleteWebsiteRequest
23846
24522
  * @param {*} [options] Override http request option.
23847
24523
  * @throws {RequiredError}
23848
24524
  * @memberof HostingWebsitesApi
23849
24525
  */
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));
24526
+ public deleteWebsiteV1(domain: string, options?: RawAxiosRequestConfig) {
24527
+ return HostingWebsitesApiFp(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
23852
24528
  }
23853
24529
 
23854
24530
  /**