hostinger-api-sdk 2.13.0 → 2.13.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.
@@ -5,11 +5,12 @@ on:
5
5
  branches:
6
6
  - main
7
7
 
8
+ # npm trusted publishing trusts this whole workflow file, so only the publish jobs hold id-token: write, and
9
+ # they install and run nothing: they publish the tarballs the read-only pack job built.
8
10
  jobs:
9
11
  release:
10
12
  runs-on: ubuntu-latest
11
13
  permissions:
12
- id-token: write
13
14
  contents: write
14
15
  outputs:
15
16
  new_version: ${{ steps.version.outputs.version }}
@@ -34,61 +35,88 @@ jobs:
34
35
 
35
36
  - name: Create release
36
37
  if: steps.version.outputs.released == 'true'
37
- uses: ncipollo/release-action@v1
38
- with:
39
- tag: v${{ steps.version.outputs.version }}
40
- generateReleaseNotes: true
38
+ env:
39
+ GH_TOKEN: ${{ github.token }}
40
+ VERSION: ${{ steps.version.outputs.version }}
41
+ run: gh release create "v$VERSION" --target "$GITHUB_SHA" --generate-notes
41
42
 
42
- publish-npmjs:
43
+ pack:
43
44
  runs-on: ubuntu-latest
44
45
  needs: [release]
45
46
  if: needs.release.outputs.released == 'true'
46
47
  permissions:
47
48
  contents: read
48
- id-token: write
49
49
  steps:
50
50
  - uses: actions/checkout@v4
51
51
 
52
52
  - uses: actions/setup-node@v4
53
53
  with:
54
54
  node-version: '26.x'
55
- registry-url: 'https://registry.npmjs.org'
56
-
57
- - name: Update NPM
58
- run: npm install -g npm@latest
59
55
 
60
56
  - name: Install dependencies
61
57
  run: npm install
62
58
 
59
+ # The package was published unscoped before moving to @hostinger. Each release is republished under
60
+ # the old name so existing installs keep updating. Both names point their npm trusted publisher at this
61
+ # workflow file, which is what the config keys on — the job/step it runs in is not part of it.
62
+ # hostinger-api-sdk is substituted by scripts/post-typescript-axios.sh and is empty for an API that
63
+ # never had an unscoped package. GitHub Packages gets its own copy named after the repository.
64
+ - name: Pack
65
+ env:
66
+ LEGACY: 'hostinger-api-sdk'
67
+ run: |
68
+ mkdir -p "$RUNNER_TEMP/pkg/npmjs" "$RUNNER_TEMP/pkg/legacy" "$RUNNER_TEMP/pkg/github"
69
+ npm pack --pack-destination "$RUNNER_TEMP/pkg/npmjs"
70
+ if [ -n "$LEGACY" ]; then
71
+ jq --arg n "$LEGACY" '.name = $n' package.json > pkg.tmp && mv pkg.tmp package.json
72
+ npm pack --ignore-scripts --pack-destination "$RUNNER_TEMP/pkg/legacy"
73
+ fi
74
+ jq --arg n "@$GITHUB_REPOSITORY" '.name = $n' package.json > pkg.tmp && mv pkg.tmp package.json
75
+ npm pack --ignore-scripts --pack-destination "$RUNNER_TEMP/pkg/github"
76
+
77
+ - uses: actions/upload-artifact@v4
78
+ with:
79
+ name: packages
80
+ path: ${{ runner.temp }}/pkg/
81
+
82
+ publish-npmjs:
83
+ runs-on: ubuntu-latest
84
+ needs: [pack]
85
+ permissions:
86
+ id-token: write
87
+ steps:
88
+ - uses: actions/download-artifact@v4
89
+ with:
90
+ name: packages
91
+ path: pkg
92
+
93
+ - uses: actions/setup-node@v4
94
+ with:
95
+ node-version: '26.x'
96
+ registry-url: 'https://registry.npmjs.org'
97
+
63
98
  - name: Publish package
64
- run: npm publish --provenance --access public
65
-
66
- # The package was published unscoped before moving to @hostinger. Republish
67
- # each release under the old name so existing installs keep updating.
68
- # Both names point their npm trusted publisher at this workflow file, which
69
- # is what the config keys on — the job/step it runs in is not part of it.
70
- # hostinger-api-sdk is substituted by scripts/post-typescript-axios.sh and
71
- # is empty for an API that never had an unscoped package.
99
+ run: npm publish pkg/npmjs/*.tgz --provenance --access public --ignore-scripts
100
+
72
101
  - name: Publish legacy unscoped alias
73
102
  run: |
74
- LEGACY='hostinger-api-sdk'
75
- if [ -z "$LEGACY" ]; then
103
+ if ! ls pkg/legacy/*.tgz >/dev/null 2>&1; then
76
104
  echo "No legacy npm name configured — nothing to alias."
77
105
  exit 0
78
106
  fi
79
- jq --arg n "$LEGACY" '.name = $n' package.json > pkg.tmp && mv pkg.tmp package.json
80
- npm publish --provenance --access public
107
+ npm publish pkg/legacy/*.tgz --provenance --access public --ignore-scripts
81
108
 
82
109
  publish-github:
83
110
  runs-on: ubuntu-latest
84
- needs: [release]
85
- if: needs.release.outputs.released == 'true'
111
+ needs: [pack]
86
112
  permissions:
87
- contents: read
88
113
  id-token: write
89
114
  packages: write
90
115
  steps:
91
- - uses: actions/checkout@v4
116
+ - uses: actions/download-artifact@v4
117
+ with:
118
+ name: packages
119
+ path: pkg
92
120
 
93
121
  - uses: actions/setup-node@v4
94
122
  with:
@@ -96,23 +124,18 @@ jobs:
96
124
  registry-url: 'https://npm.pkg.github.com'
97
125
  scope: '@hostinger'
98
126
 
99
- - name: Install dependencies
100
- run: npm install
101
-
102
127
  - name: Publish package
103
- run: |
104
- sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
105
- npm publish --provenance --access public
128
+ run: npm publish pkg/github/*.tgz --provenance --access public --ignore-scripts
106
129
  env:
107
130
  NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108
131
 
109
132
  notify-failure:
110
- needs: [release, publish-npmjs, publish-github]
133
+ needs: [release, pack, publish-npmjs, publish-github]
111
134
  if: failure()
112
135
  runs-on: ubuntu-latest
113
136
  steps:
114
137
  - name: Notify Slack on release failure
115
- uses: slackapi/slack-github-action@v4.0.0
138
+ uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
116
139
  with:
117
140
  errors: true
118
141
  webhook: ${{ secrets.PLATFORM_INCIDENT_SLACK_CHANNEL_WEBHOOK }}
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.13.0
1
+ ## @hostinger/sdk@2.13.2
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.13.0 --save
8
+ npm install @hostinger/sdk@2.13.2 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -4424,13 +4424,13 @@ export interface DomainsV1WHOISStoreRequest {
4424
4424
  */
4425
4425
  'entity_type': DomainsV1WHOISStoreRequestEntityTypeEnum;
4426
4426
  /**
4427
- * TLD details
4427
+ * TLD-specific details. The required keys depend on the TLD, country and entity type.
4428
4428
  * @type {object}
4429
4429
  * @memberof DomainsV1WHOISStoreRequest
4430
4430
  */
4431
4431
  'tld_details': object;
4432
4432
  /**
4433
- * WHOIS details
4433
+ * WHOIS contact details. The required keys depend on the TLD, country and entity type, and can be country-specific (e.g. `state_lt` and `zip_lt` instead of `state` and `zip` for Lithuania).
4434
4434
  * @type {object}
4435
4435
  * @memberof DomainsV1WHOISStoreRequest
4436
4436
  */
@@ -27661,7 +27661,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
27661
27661
  };
27662
27662
  },
27663
27663
  /**
27664
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
27664
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
27665
27665
  * @summary Create WHOIS profile
27666
27666
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
27667
27667
  * @param {*} [options] Override http request option.
@@ -28002,7 +28002,7 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
28002
28002
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28003
28003
  },
28004
28004
  /**
28005
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
28005
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
28006
28006
  * @summary Create WHOIS profile
28007
28007
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
28008
28008
  * @param {*} [options] Override http request option.
@@ -28128,7 +28128,7 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
28128
28128
  return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
28129
28129
  },
28130
28130
  /**
28131
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
28131
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
28132
28132
  * @summary Create WHOIS profile
28133
28133
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
28134
28134
  * @param {*} [options] Override http request option.
@@ -28242,7 +28242,7 @@ export class DomainsWHOISApi extends BaseAPI {
28242
28242
  }
28243
28243
 
28244
28244
  /**
28245
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
28245
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
28246
28246
  * @summary Create WHOIS profile
28247
28247
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
28248
28248
  * @param {*} [options] Override http request option.
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.13.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.13.2",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4314,13 +4314,13 @@ export interface DomainsV1WHOISStoreRequest {
4314
4314
  */
4315
4315
  'entity_type': DomainsV1WHOISStoreRequestEntityTypeEnum;
4316
4316
  /**
4317
- * TLD details
4317
+ * TLD-specific details. The required keys depend on the TLD, country and entity type.
4318
4318
  * @type {object}
4319
4319
  * @memberof DomainsV1WHOISStoreRequest
4320
4320
  */
4321
4321
  'tld_details': object;
4322
4322
  /**
4323
- * WHOIS details
4323
+ * WHOIS contact details. The required keys depend on the TLD, country and entity type, and can be country-specific (e.g. `state_lt` and `zip_lt` instead of `state` and `zip` for Lithuania).
4324
4324
  * @type {object}
4325
4325
  * @memberof DomainsV1WHOISStoreRequest
4326
4326
  */
@@ -23009,7 +23009,7 @@ export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configur
23009
23009
  */
23010
23010
  changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23011
23011
  /**
23012
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23012
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23013
23013
  * @summary Create WHOIS profile
23014
23014
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23015
23015
  * @param {*} [options] Override http request option.
@@ -23095,7 +23095,7 @@ export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
23095
23095
  */
23096
23096
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
23097
23097
  /**
23098
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23098
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23099
23099
  * @summary Create WHOIS profile
23100
23100
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23101
23101
  * @param {*} [options] Override http request option.
@@ -23181,7 +23181,7 @@ export declare const DomainsWHOISApiFactory: (configuration?: Configuration, bas
23181
23181
  */
23182
23182
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
23183
23183
  /**
23184
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23184
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23185
23185
  * @summary Create WHOIS profile
23186
23186
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23187
23187
  * @param {*} [options] Override http request option.
@@ -23271,7 +23271,7 @@ export declare class DomainsWHOISApi extends BaseAPI {
23271
23271
  */
23272
23272
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
23273
23273
  /**
23274
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23274
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23275
23275
  * @summary Create WHOIS profile
23276
23276
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23277
23277
  * @param {*} [options] Override http request option.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.13.0
7
+ * API Version: 2.13.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -9019,7 +9019,7 @@ const DomainsWHOISApiAxiosParamCreator = function (configuration) {
9019
9019
  };
9020
9020
  }),
9021
9021
  /**
9022
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9022
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9023
9023
  * @summary Create WHOIS profile
9024
9024
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9025
9025
  * @param {*} [options] Override http request option.
@@ -9316,7 +9316,7 @@ const DomainsWHOISApiFp = function (configuration) {
9316
9316
  });
9317
9317
  },
9318
9318
  /**
9319
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9319
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9320
9320
  * @summary Create WHOIS profile
9321
9321
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9322
9322
  * @param {*} [options] Override http request option.
@@ -9466,7 +9466,7 @@ const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
9466
9466
  return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
9467
9467
  },
9468
9468
  /**
9469
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9469
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9470
9470
  * @summary Create WHOIS profile
9471
9471
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9472
9472
  * @param {*} [options] Override http request option.
@@ -9578,7 +9578,7 @@ class DomainsWHOISApi extends base_1.BaseAPI {
9578
9578
  return (0, exports.DomainsWHOISApiFp)(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
9579
9579
  }
9580
9580
  /**
9581
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9581
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9582
9582
  * @summary Create WHOIS profile
9583
9583
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9584
9584
  * @param {*} [options] Override http request option.
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.13.0
7
+ * API Version: 2.13.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.13.0
7
+ * API Version: 2.13.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.13.0
7
+ * API Version: 2.13.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.13.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.13.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4314,13 +4314,13 @@ export interface DomainsV1WHOISStoreRequest {
4314
4314
  */
4315
4315
  'entity_type': DomainsV1WHOISStoreRequestEntityTypeEnum;
4316
4316
  /**
4317
- * TLD details
4317
+ * TLD-specific details. The required keys depend on the TLD, country and entity type.
4318
4318
  * @type {object}
4319
4319
  * @memberof DomainsV1WHOISStoreRequest
4320
4320
  */
4321
4321
  'tld_details': object;
4322
4322
  /**
4323
- * WHOIS details
4323
+ * WHOIS contact details. The required keys depend on the TLD, country and entity type, and can be country-specific (e.g. `state_lt` and `zip_lt` instead of `state` and `zip` for Lithuania).
4324
4324
  * @type {object}
4325
4325
  * @memberof DomainsV1WHOISStoreRequest
4326
4326
  */
@@ -23009,7 +23009,7 @@ export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configur
23009
23009
  */
23010
23010
  changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23011
23011
  /**
23012
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23012
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23013
23013
  * @summary Create WHOIS profile
23014
23014
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23015
23015
  * @param {*} [options] Override http request option.
@@ -23095,7 +23095,7 @@ export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
23095
23095
  */
23096
23096
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
23097
23097
  /**
23098
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23098
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23099
23099
  * @summary Create WHOIS profile
23100
23100
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23101
23101
  * @param {*} [options] Override http request option.
@@ -23181,7 +23181,7 @@ export declare const DomainsWHOISApiFactory: (configuration?: Configuration, bas
23181
23181
  */
23182
23182
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
23183
23183
  /**
23184
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23184
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23185
23185
  * @summary Create WHOIS profile
23186
23186
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23187
23187
  * @param {*} [options] Override http request option.
@@ -23271,7 +23271,7 @@ export declare class DomainsWHOISApi extends BaseAPI {
23271
23271
  */
23272
23272
  changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
23273
23273
  /**
23274
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
23274
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
23275
23275
  * @summary Create WHOIS profile
23276
23276
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
23277
23277
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -8896,7 +8896,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
8896
8896
  };
8897
8897
  }),
8898
8898
  /**
8899
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
8899
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
8900
8900
  * @summary Create WHOIS profile
8901
8901
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
8902
8902
  * @param {*} [options] Override http request option.
@@ -9192,7 +9192,7 @@ export const DomainsWHOISApiFp = function (configuration) {
9192
9192
  });
9193
9193
  },
9194
9194
  /**
9195
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9195
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9196
9196
  * @summary Create WHOIS profile
9197
9197
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9198
9198
  * @param {*} [options] Override http request option.
@@ -9341,7 +9341,7 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
9341
9341
  return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
9342
9342
  },
9343
9343
  /**
9344
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9344
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9345
9345
  * @summary Create WHOIS profile
9346
9346
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9347
9347
  * @param {*} [options] Override http request option.
@@ -9452,7 +9452,7 @@ export class DomainsWHOISApi extends BaseAPI {
9452
9452
  return DomainsWHOISApiFp(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
9453
9453
  }
9454
9454
  /**
9455
- * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
9455
+ * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
9456
9456
  * @summary Create WHOIS profile
9457
9457
  * @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
9458
9458
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.13.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.13.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.13.0
4
+ * API Version: 2.13.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.13.0
7
+ * API Version: 2.13.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **tld** | **string** | TLD of the domain (without leading dot) | [default to undefined]
9
9
  **country** | **string** | ISO 3166 2-letter country code | [default to undefined]
10
10
  **entity_type** | **string** | Legal entity type | [default to undefined]
11
- **tld_details** | **object** | TLD details | [optional] [default to undefined]
12
- **whois_details** | **object** | WHOIS details | [default to undefined]
11
+ **tld_details** | **object** | TLD-specific details. The required keys depend on the TLD, country and entity type. | [optional] [default to undefined]
12
+ **whois_details** | **object** | WHOIS contact details. The required keys depend on the TLD, country and entity type, and can be country-specific (e.g. &#x60;state_lt&#x60; and &#x60;zip_lt&#x60; instead of &#x60;state&#x60; and &#x60;zip&#x60; for Lithuania). | [default to undefined]
13
13
 
14
14
  ## Example
15
15
 
@@ -126,7 +126,7 @@ const { status, data } = await apiInstance.changeWHOISProfileForDomainV1(
126
126
  # **createWHOISProfileV1**
127
127
  > DomainsV1WHOISProfileResource createWHOISProfileV1(domainsV1WHOISStoreRequest)
128
128
 
129
- Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
129
+ Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
130
130
 
131
131
  ### Example
132
132
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.0
6
+ * API Version: 2.13.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.13.0",
3
+ "version": "2.13.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {