hostinger-api-sdk 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@0.0.20
1
+ ## hostinger-api-sdk@0.0.21
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-api-sdk@0.0.20 --save
8
+ npm install hostinger-api-sdk@0.0.21 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.19.2
6
+ * API Version: 0.19.3
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
@@ -3585,6 +3585,112 @@ export interface ReachV1ContactsStoreRequest {
3585
3585
  */
3586
3586
  'note': string | null;
3587
3587
  }
3588
+ /**
3589
+ *
3590
+ * @export
3591
+ * @interface ReachV1ProfilesDomainsDnsRecordStatus
3592
+ */
3593
+ export interface ReachV1ProfilesDomainsDnsRecordStatus {
3594
+ /**
3595
+ *
3596
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
3597
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3598
+ */
3599
+ 'actual': Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>;
3600
+ /**
3601
+ *
3602
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>}
3603
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3604
+ */
3605
+ 'suggested': Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>;
3606
+ /**
3607
+ *
3608
+ * @type {boolean}
3609
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3610
+ */
3611
+ 'is_valid': boolean;
3612
+ }
3613
+ /**
3614
+ *
3615
+ * @export
3616
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusActualInner
3617
+ */
3618
+ export interface ReachV1ProfilesDomainsDnsRecordStatusActualInner {
3619
+ /**
3620
+ *
3621
+ * @type {string}
3622
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3623
+ */
3624
+ 'type': string;
3625
+ /**
3626
+ *
3627
+ * @type {string}
3628
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3629
+ */
3630
+ 'value': string;
3631
+ }
3632
+ /**
3633
+ *
3634
+ * @export
3635
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3636
+ */
3637
+ export interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner {
3638
+ /**
3639
+ *
3640
+ * @type {string}
3641
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3642
+ */
3643
+ 'name': string;
3644
+ /**
3645
+ *
3646
+ * @type {string}
3647
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3648
+ */
3649
+ 'type': string;
3650
+ /**
3651
+ *
3652
+ * @type {string}
3653
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3654
+ */
3655
+ 'value': string;
3656
+ }
3657
+ /**
3658
+ *
3659
+ * @export
3660
+ * @interface ReachV1ProfilesDomainsDnsStatusResource
3661
+ */
3662
+ export interface ReachV1ProfilesDomainsDnsStatusResource {
3663
+ /**
3664
+ *
3665
+ * @type {string}
3666
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3667
+ */
3668
+ 'domain': string;
3669
+ /**
3670
+ *
3671
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3672
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3673
+ */
3674
+ 'mx': ReachV1ProfilesDomainsDnsRecordStatus;
3675
+ /**
3676
+ *
3677
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3678
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3679
+ */
3680
+ 'spf': ReachV1ProfilesDomainsDnsRecordStatus;
3681
+ /**
3682
+ *
3683
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3684
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3685
+ */
3686
+ 'dkim': ReachV1ProfilesDomainsDnsRecordStatus;
3687
+ /**
3688
+ *
3689
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3690
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3691
+ */
3692
+ 'dmarc': ReachV1ProfilesDomainsDnsRecordStatus;
3693
+ }
3588
3694
  /**
3589
3695
  *
3590
3696
  * @export
@@ -11562,6 +11668,44 @@ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1Subscrip
11562
11668
  */
11563
11669
  export const ReachProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
11564
11670
  return {
11671
+ /**
11672
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11673
+ * @summary Get profile domain DNS status
11674
+ * @param {string} profileUuid Profile uuid parameter
11675
+ * @param {*} [options] Override http request option.
11676
+ * @throws {RequiredError}
11677
+ */
11678
+ getProfileDomainDNSStatusV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11679
+ // verify required parameter 'profileUuid' is not null or undefined
11680
+ assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid)
11681
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
11682
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
11683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11685
+ let baseOptions;
11686
+ if (configuration) {
11687
+ baseOptions = configuration.baseOptions;
11688
+ }
11689
+
11690
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11691
+ const localVarHeaderParameter = {} as any;
11692
+ const localVarQueryParameter = {} as any;
11693
+
11694
+ // authentication apiToken required
11695
+ // http bearer authentication required
11696
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11697
+
11698
+
11699
+
11700
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11701
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11702
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11703
+
11704
+ return {
11705
+ url: toPathString(localVarUrlObj),
11706
+ options: localVarRequestOptions,
11707
+ };
11708
+ },
11565
11709
  /**
11566
11710
  * This endpoint returns all profiles available to the client, including their basic information.
11567
11711
  * @summary List Profiles
@@ -11606,6 +11750,18 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration?: Confi
11606
11750
  export const ReachProfilesApiFp = function(configuration?: Configuration) {
11607
11751
  const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration)
11608
11752
  return {
11753
+ /**
11754
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11755
+ * @summary Get profile domain DNS status
11756
+ * @param {string} profileUuid Profile uuid parameter
11757
+ * @param {*} [options] Override http request option.
11758
+ * @throws {RequiredError}
11759
+ */
11760
+ async getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>> {
11761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
11762
+ const localVarOperationServerBasePath = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']?.[0]?.url;
11763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11764
+ },
11609
11765
  /**
11610
11766
  * This endpoint returns all profiles available to the client, including their basic information.
11611
11767
  * @summary List Profiles
@@ -11627,6 +11783,16 @@ export const ReachProfilesApiFp = function(configuration?: Configuration) {
11627
11783
  export const ReachProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11628
11784
  const localVarFp = ReachProfilesApiFp(configuration)
11629
11785
  return {
11786
+ /**
11787
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11788
+ * @summary Get profile domain DNS status
11789
+ * @param {string} profileUuid Profile uuid parameter
11790
+ * @param {*} [options] Override http request option.
11791
+ * @throws {RequiredError}
11792
+ */
11793
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource> {
11794
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
11795
+ },
11630
11796
  /**
11631
11797
  * This endpoint returns all profiles available to the client, including their basic information.
11632
11798
  * @summary List Profiles
@@ -11646,6 +11812,18 @@ export const ReachProfilesApiFactory = function (configuration?: Configuration,
11646
11812
  * @extends {BaseAPI}
11647
11813
  */
11648
11814
  export class ReachProfilesApi extends BaseAPI {
11815
+ /**
11816
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
11817
+ * @summary Get profile domain DNS status
11818
+ * @param {string} profileUuid Profile uuid parameter
11819
+ * @param {*} [options] Override http request option.
11820
+ * @throws {RequiredError}
11821
+ * @memberof ReachProfilesApi
11822
+ */
11823
+ public getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig) {
11824
+ return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
11825
+ }
11826
+
11649
11827
  /**
11650
11828
  * This endpoint returns all profiles available to the client, including their basic information.
11651
11829
  * @summary List Profiles
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.19.2
6
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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/0.0.20",
51
+ 'User-Agent': "hostinger-typescript-sdk/0.0.21",
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: 0.19.2
4
+ * API Version: 0.19.3
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
@@ -3484,6 +3484,112 @@ export interface ReachV1ContactsStoreRequest {
3484
3484
  */
3485
3485
  'note': string | null;
3486
3486
  }
3487
+ /**
3488
+ *
3489
+ * @export
3490
+ * @interface ReachV1ProfilesDomainsDnsRecordStatus
3491
+ */
3492
+ export interface ReachV1ProfilesDomainsDnsRecordStatus {
3493
+ /**
3494
+ *
3495
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
3496
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3497
+ */
3498
+ 'actual': Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>;
3499
+ /**
3500
+ *
3501
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>}
3502
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3503
+ */
3504
+ 'suggested': Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>;
3505
+ /**
3506
+ *
3507
+ * @type {boolean}
3508
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3509
+ */
3510
+ 'is_valid': boolean;
3511
+ }
3512
+ /**
3513
+ *
3514
+ * @export
3515
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusActualInner
3516
+ */
3517
+ export interface ReachV1ProfilesDomainsDnsRecordStatusActualInner {
3518
+ /**
3519
+ *
3520
+ * @type {string}
3521
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3522
+ */
3523
+ 'type': string;
3524
+ /**
3525
+ *
3526
+ * @type {string}
3527
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3528
+ */
3529
+ 'value': string;
3530
+ }
3531
+ /**
3532
+ *
3533
+ * @export
3534
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3535
+ */
3536
+ export interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner {
3537
+ /**
3538
+ *
3539
+ * @type {string}
3540
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3541
+ */
3542
+ 'name': string;
3543
+ /**
3544
+ *
3545
+ * @type {string}
3546
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3547
+ */
3548
+ 'type': string;
3549
+ /**
3550
+ *
3551
+ * @type {string}
3552
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3553
+ */
3554
+ 'value': string;
3555
+ }
3556
+ /**
3557
+ *
3558
+ * @export
3559
+ * @interface ReachV1ProfilesDomainsDnsStatusResource
3560
+ */
3561
+ export interface ReachV1ProfilesDomainsDnsStatusResource {
3562
+ /**
3563
+ *
3564
+ * @type {string}
3565
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3566
+ */
3567
+ 'domain': string;
3568
+ /**
3569
+ *
3570
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3571
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3572
+ */
3573
+ 'mx': ReachV1ProfilesDomainsDnsRecordStatus;
3574
+ /**
3575
+ *
3576
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3577
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3578
+ */
3579
+ 'spf': ReachV1ProfilesDomainsDnsRecordStatus;
3580
+ /**
3581
+ *
3582
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3583
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3584
+ */
3585
+ 'dkim': ReachV1ProfilesDomainsDnsRecordStatus;
3586
+ /**
3587
+ *
3588
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3589
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3590
+ */
3591
+ 'dmarc': ReachV1ProfilesDomainsDnsRecordStatus;
3592
+ }
3487
3593
  /**
3488
3594
  *
3489
3595
  * @export
@@ -8167,6 +8273,14 @@ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1Subscrip
8167
8273
  * @export
8168
8274
  */
8169
8275
  export declare const ReachProfilesApiAxiosParamCreator: (configuration?: Configuration) => {
8276
+ /**
8277
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8278
+ * @summary Get profile domain DNS status
8279
+ * @param {string} profileUuid Profile uuid parameter
8280
+ * @param {*} [options] Override http request option.
8281
+ * @throws {RequiredError}
8282
+ */
8283
+ getProfileDomainDNSStatusV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8170
8284
  /**
8171
8285
  * This endpoint returns all profiles available to the client, including their basic information.
8172
8286
  * @summary List Profiles
@@ -8180,6 +8294,14 @@ export declare const ReachProfilesApiAxiosParamCreator: (configuration?: Configu
8180
8294
  * @export
8181
8295
  */
8182
8296
  export declare const ReachProfilesApiFp: (configuration?: Configuration) => {
8297
+ /**
8298
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8299
+ * @summary Get profile domain DNS status
8300
+ * @param {string} profileUuid Profile uuid parameter
8301
+ * @param {*} [options] Override http request option.
8302
+ * @throws {RequiredError}
8303
+ */
8304
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>>;
8183
8305
  /**
8184
8306
  * This endpoint returns all profiles available to the client, including their basic information.
8185
8307
  * @summary List Profiles
@@ -8193,6 +8315,14 @@ export declare const ReachProfilesApiFp: (configuration?: Configuration) => {
8193
8315
  * @export
8194
8316
  */
8195
8317
  export declare const ReachProfilesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
8318
+ /**
8319
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8320
+ * @summary Get profile domain DNS status
8321
+ * @param {string} profileUuid Profile uuid parameter
8322
+ * @param {*} [options] Override http request option.
8323
+ * @throws {RequiredError}
8324
+ */
8325
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>;
8196
8326
  /**
8197
8327
  * This endpoint returns all profiles available to the client, including their basic information.
8198
8328
  * @summary List Profiles
@@ -8208,6 +8338,15 @@ export declare const ReachProfilesApiFactory: (configuration?: Configuration, ba
8208
8338
  * @extends {BaseAPI}
8209
8339
  */
8210
8340
  export declare class ReachProfilesApi extends BaseAPI {
8341
+ /**
8342
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8343
+ * @summary Get profile domain DNS status
8344
+ * @param {string} profileUuid Profile uuid parameter
8345
+ * @param {*} [options] Override http request option.
8346
+ * @throws {RequiredError}
8347
+ * @memberof ReachProfilesApi
8348
+ */
8349
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ProfilesDomainsDnsStatusResource, any, {}>>;
8211
8350
  /**
8212
8351
  * This endpoint returns all profiles available to the client, including their basic information.
8213
8352
  * @summary List Profiles
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 0.19.2
7
+ * API Version: 0.19.3
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
@@ -6460,6 +6460,38 @@ exports.ListContactsV1SubscriptionStatusEnum = {
6460
6460
  */
6461
6461
  const ReachProfilesApiAxiosParamCreator = function (configuration) {
6462
6462
  return {
6463
+ /**
6464
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6465
+ * @summary Get profile domain DNS status
6466
+ * @param {string} profileUuid Profile uuid parameter
6467
+ * @param {*} [options] Override http request option.
6468
+ * @throws {RequiredError}
6469
+ */
6470
+ getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
6471
+ // verify required parameter 'profileUuid' is not null or undefined
6472
+ (0, common_1.assertParamExists)('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
6473
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
6474
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
6475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6476
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6477
+ let baseOptions;
6478
+ if (configuration) {
6479
+ baseOptions = configuration.baseOptions;
6480
+ }
6481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6482
+ const localVarHeaderParameter = {};
6483
+ const localVarQueryParameter = {};
6484
+ // authentication apiToken required
6485
+ // http bearer authentication required
6486
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6487
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6490
+ return {
6491
+ url: (0, common_1.toPathString)(localVarUrlObj),
6492
+ options: localVarRequestOptions,
6493
+ };
6494
+ }),
6463
6495
  /**
6464
6496
  * This endpoint returns all profiles available to the client, including their basic information.
6465
6497
  * @summary List Profiles
@@ -6498,6 +6530,21 @@ exports.ReachProfilesApiAxiosParamCreator = ReachProfilesApiAxiosParamCreator;
6498
6530
  const ReachProfilesApiFp = function (configuration) {
6499
6531
  const localVarAxiosParamCreator = (0, exports.ReachProfilesApiAxiosParamCreator)(configuration);
6500
6532
  return {
6533
+ /**
6534
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6535
+ * @summary Get profile domain DNS status
6536
+ * @param {string} profileUuid Profile uuid parameter
6537
+ * @param {*} [options] Override http request option.
6538
+ * @throws {RequiredError}
6539
+ */
6540
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6541
+ return __awaiter(this, void 0, void 0, function* () {
6542
+ var _a, _b;
6543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
6544
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6545
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6546
+ });
6547
+ },
6501
6548
  /**
6502
6549
  * This endpoint returns all profiles available to the client, including their basic information.
6503
6550
  * @summary List Profiles
@@ -6522,6 +6569,16 @@ exports.ReachProfilesApiFp = ReachProfilesApiFp;
6522
6569
  const ReachProfilesApiFactory = function (configuration, basePath, axios) {
6523
6570
  const localVarFp = (0, exports.ReachProfilesApiFp)(configuration);
6524
6571
  return {
6572
+ /**
6573
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6574
+ * @summary Get profile domain DNS status
6575
+ * @param {string} profileUuid Profile uuid parameter
6576
+ * @param {*} [options] Override http request option.
6577
+ * @throws {RequiredError}
6578
+ */
6579
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6580
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
6581
+ },
6525
6582
  /**
6526
6583
  * This endpoint returns all profiles available to the client, including their basic information.
6527
6584
  * @summary List Profiles
@@ -6541,6 +6598,17 @@ exports.ReachProfilesApiFactory = ReachProfilesApiFactory;
6541
6598
  * @extends {BaseAPI}
6542
6599
  */
6543
6600
  class ReachProfilesApi extends base_1.BaseAPI {
6601
+ /**
6602
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6603
+ * @summary Get profile domain DNS status
6604
+ * @param {string} profileUuid Profile uuid parameter
6605
+ * @param {*} [options] Override http request option.
6606
+ * @throws {RequiredError}
6607
+ * @memberof ReachProfilesApi
6608
+ */
6609
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6610
+ return (0, exports.ReachProfilesApiFp)(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
6611
+ }
6544
6612
  /**
6545
6613
  * This endpoint returns all profiles available to the client, including their basic information.
6546
6614
  * @summary List Profiles
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
7
+ * API Version: 0.19.3
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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
7
+ * API Version: 0.19.3
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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
7
+ * API Version: 0.19.3
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/0.0.20" }, (_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/0.0.21" }, (_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: 0.19.2
4
+ * API Version: 0.19.3
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
@@ -3484,6 +3484,112 @@ export interface ReachV1ContactsStoreRequest {
3484
3484
  */
3485
3485
  'note': string | null;
3486
3486
  }
3487
+ /**
3488
+ *
3489
+ * @export
3490
+ * @interface ReachV1ProfilesDomainsDnsRecordStatus
3491
+ */
3492
+ export interface ReachV1ProfilesDomainsDnsRecordStatus {
3493
+ /**
3494
+ *
3495
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
3496
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3497
+ */
3498
+ 'actual': Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>;
3499
+ /**
3500
+ *
3501
+ * @type {Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>}
3502
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3503
+ */
3504
+ 'suggested': Array<ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner>;
3505
+ /**
3506
+ *
3507
+ * @type {boolean}
3508
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatus
3509
+ */
3510
+ 'is_valid': boolean;
3511
+ }
3512
+ /**
3513
+ *
3514
+ * @export
3515
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusActualInner
3516
+ */
3517
+ export interface ReachV1ProfilesDomainsDnsRecordStatusActualInner {
3518
+ /**
3519
+ *
3520
+ * @type {string}
3521
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3522
+ */
3523
+ 'type': string;
3524
+ /**
3525
+ *
3526
+ * @type {string}
3527
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusActualInner
3528
+ */
3529
+ 'value': string;
3530
+ }
3531
+ /**
3532
+ *
3533
+ * @export
3534
+ * @interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3535
+ */
3536
+ export interface ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner {
3537
+ /**
3538
+ *
3539
+ * @type {string}
3540
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3541
+ */
3542
+ 'name': string;
3543
+ /**
3544
+ *
3545
+ * @type {string}
3546
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3547
+ */
3548
+ 'type': string;
3549
+ /**
3550
+ *
3551
+ * @type {string}
3552
+ * @memberof ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
3553
+ */
3554
+ 'value': string;
3555
+ }
3556
+ /**
3557
+ *
3558
+ * @export
3559
+ * @interface ReachV1ProfilesDomainsDnsStatusResource
3560
+ */
3561
+ export interface ReachV1ProfilesDomainsDnsStatusResource {
3562
+ /**
3563
+ *
3564
+ * @type {string}
3565
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3566
+ */
3567
+ 'domain': string;
3568
+ /**
3569
+ *
3570
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3571
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3572
+ */
3573
+ 'mx': ReachV1ProfilesDomainsDnsRecordStatus;
3574
+ /**
3575
+ *
3576
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3577
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3578
+ */
3579
+ 'spf': ReachV1ProfilesDomainsDnsRecordStatus;
3580
+ /**
3581
+ *
3582
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3583
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3584
+ */
3585
+ 'dkim': ReachV1ProfilesDomainsDnsRecordStatus;
3586
+ /**
3587
+ *
3588
+ * @type {ReachV1ProfilesDomainsDnsRecordStatus}
3589
+ * @memberof ReachV1ProfilesDomainsDnsStatusResource
3590
+ */
3591
+ 'dmarc': ReachV1ProfilesDomainsDnsRecordStatus;
3592
+ }
3487
3593
  /**
3488
3594
  *
3489
3595
  * @export
@@ -8167,6 +8273,14 @@ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1Subscrip
8167
8273
  * @export
8168
8274
  */
8169
8275
  export declare const ReachProfilesApiAxiosParamCreator: (configuration?: Configuration) => {
8276
+ /**
8277
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8278
+ * @summary Get profile domain DNS status
8279
+ * @param {string} profileUuid Profile uuid parameter
8280
+ * @param {*} [options] Override http request option.
8281
+ * @throws {RequiredError}
8282
+ */
8283
+ getProfileDomainDNSStatusV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8170
8284
  /**
8171
8285
  * This endpoint returns all profiles available to the client, including their basic information.
8172
8286
  * @summary List Profiles
@@ -8180,6 +8294,14 @@ export declare const ReachProfilesApiAxiosParamCreator: (configuration?: Configu
8180
8294
  * @export
8181
8295
  */
8182
8296
  export declare const ReachProfilesApiFp: (configuration?: Configuration) => {
8297
+ /**
8298
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8299
+ * @summary Get profile domain DNS status
8300
+ * @param {string} profileUuid Profile uuid parameter
8301
+ * @param {*} [options] Override http request option.
8302
+ * @throws {RequiredError}
8303
+ */
8304
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>>;
8183
8305
  /**
8184
8306
  * This endpoint returns all profiles available to the client, including their basic information.
8185
8307
  * @summary List Profiles
@@ -8193,6 +8315,14 @@ export declare const ReachProfilesApiFp: (configuration?: Configuration) => {
8193
8315
  * @export
8194
8316
  */
8195
8317
  export declare const ReachProfilesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
8318
+ /**
8319
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8320
+ * @summary Get profile domain DNS status
8321
+ * @param {string} profileUuid Profile uuid parameter
8322
+ * @param {*} [options] Override http request option.
8323
+ * @throws {RequiredError}
8324
+ */
8325
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ProfilesDomainsDnsStatusResource>;
8196
8326
  /**
8197
8327
  * This endpoint returns all profiles available to the client, including their basic information.
8198
8328
  * @summary List Profiles
@@ -8208,6 +8338,15 @@ export declare const ReachProfilesApiFactory: (configuration?: Configuration, ba
8208
8338
  * @extends {BaseAPI}
8209
8339
  */
8210
8340
  export declare class ReachProfilesApi extends BaseAPI {
8341
+ /**
8342
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
8343
+ * @summary Get profile domain DNS status
8344
+ * @param {string} profileUuid Profile uuid parameter
8345
+ * @param {*} [options] Override http request option.
8346
+ * @throws {RequiredError}
8347
+ * @memberof ReachProfilesApi
8348
+ */
8349
+ getProfileDomainDNSStatusV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ProfilesDomainsDnsStatusResource, any, {}>>;
8211
8350
  /**
8212
8351
  * This endpoint returns all profiles available to the client, including their basic information.
8213
8352
  * @summary List Profiles
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.19.2
6
+ * API Version: 0.19.3
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
@@ -6361,6 +6361,38 @@ export const ListContactsV1SubscriptionStatusEnum = {
6361
6361
  */
6362
6362
  export const ReachProfilesApiAxiosParamCreator = function (configuration) {
6363
6363
  return {
6364
+ /**
6365
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6366
+ * @summary Get profile domain DNS status
6367
+ * @param {string} profileUuid Profile uuid parameter
6368
+ * @param {*} [options] Override http request option.
6369
+ * @throws {RequiredError}
6370
+ */
6371
+ getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
6372
+ // verify required parameter 'profileUuid' is not null or undefined
6373
+ assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
6374
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
6375
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
6376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6378
+ let baseOptions;
6379
+ if (configuration) {
6380
+ baseOptions = configuration.baseOptions;
6381
+ }
6382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6383
+ const localVarHeaderParameter = {};
6384
+ const localVarQueryParameter = {};
6385
+ // authentication apiToken required
6386
+ // http bearer authentication required
6387
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6390
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6391
+ return {
6392
+ url: toPathString(localVarUrlObj),
6393
+ options: localVarRequestOptions,
6394
+ };
6395
+ }),
6364
6396
  /**
6365
6397
  * This endpoint returns all profiles available to the client, including their basic information.
6366
6398
  * @summary List Profiles
@@ -6398,6 +6430,21 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration) {
6398
6430
  export const ReachProfilesApiFp = function (configuration) {
6399
6431
  const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration);
6400
6432
  return {
6433
+ /**
6434
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6435
+ * @summary Get profile domain DNS status
6436
+ * @param {string} profileUuid Profile uuid parameter
6437
+ * @param {*} [options] Override http request option.
6438
+ * @throws {RequiredError}
6439
+ */
6440
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6441
+ return __awaiter(this, void 0, void 0, function* () {
6442
+ var _a, _b;
6443
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
6444
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6445
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6446
+ });
6447
+ },
6401
6448
  /**
6402
6449
  * This endpoint returns all profiles available to the client, including their basic information.
6403
6450
  * @summary List Profiles
@@ -6421,6 +6468,16 @@ export const ReachProfilesApiFp = function (configuration) {
6421
6468
  export const ReachProfilesApiFactory = function (configuration, basePath, axios) {
6422
6469
  const localVarFp = ReachProfilesApiFp(configuration);
6423
6470
  return {
6471
+ /**
6472
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6473
+ * @summary Get profile domain DNS status
6474
+ * @param {string} profileUuid Profile uuid parameter
6475
+ * @param {*} [options] Override http request option.
6476
+ * @throws {RequiredError}
6477
+ */
6478
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6479
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
6480
+ },
6424
6481
  /**
6425
6482
  * This endpoint returns all profiles available to the client, including their basic information.
6426
6483
  * @summary List Profiles
@@ -6439,6 +6496,17 @@ export const ReachProfilesApiFactory = function (configuration, basePath, axios)
6439
6496
  * @extends {BaseAPI}
6440
6497
  */
6441
6498
  export class ReachProfilesApi extends BaseAPI {
6499
+ /**
6500
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6501
+ * @summary Get profile domain DNS status
6502
+ * @param {string} profileUuid Profile uuid parameter
6503
+ * @param {*} [options] Override http request option.
6504
+ * @throws {RequiredError}
6505
+ * @memberof ReachProfilesApi
6506
+ */
6507
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6508
+ return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
6509
+ }
6442
6510
  /**
6443
6511
  * This endpoint returns all profiles available to the client, including their basic information.
6444
6512
  * @summary List Profiles
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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/0.0.20" }, (_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/0.0.21" }, (_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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
6
+ * API Version: 0.19.3
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: 0.19.2
4
+ * API Version: 0.19.3
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: 0.19.2
7
+ * API Version: 0.19.3
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
@@ -4,8 +4,62 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getProfileDomainDNSStatusV1**](#getprofiledomaindnsstatusv1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status|
7
8
  |[**listProfilesV1**](#listprofilesv1) | **GET** /api/reach/v1/profiles | List Profiles|
8
9
 
10
+ # **getProfileDomainDNSStatusV1**
11
+ > ReachV1ProfilesDomainsDnsStatusResource getProfileDomainDNSStatusV1()
12
+
13
+ Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ReachProfilesApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ReachProfilesApi(configuration);
25
+
26
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getProfileDomainDNSStatusV1(
29
+ profileUuid
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **ReachV1ProfilesDomainsDnsStatusResource**
43
+
44
+ ### Authorization
45
+
46
+ [apiToken](../README.md#apiToken)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Success response | - |
58
+ |**401** | Unauthenticated response | - |
59
+ |**500** | Error response | - |
60
+
61
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
+
9
63
  # **listProfilesV1**
10
64
  > Array<ReachV1ProfilesProfileResource> listProfilesV1()
11
65
 
@@ -0,0 +1,24 @@
1
+ # ReachV1ProfilesDomainsDnsRecordStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **actual** | [**Array&lt;ReachV1ProfilesDomainsDnsRecordStatusActualInner&gt;**](ReachV1ProfilesDomainsDnsRecordStatusActualInner.md) | | [optional] [default to undefined]
9
+ **suggested** | [**Array&lt;ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner&gt;**](ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md) | | [optional] [default to undefined]
10
+ **is_valid** | **boolean** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ProfilesDomainsDnsRecordStatus } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ProfilesDomainsDnsRecordStatus = {
18
+ actual,
19
+ suggested,
20
+ is_valid,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ReachV1ProfilesDomainsDnsRecordStatusActualInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | | [optional] [default to undefined]
9
+ **value** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ProfilesDomainsDnsRecordStatusActualInner } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachV1ProfilesDomainsDnsRecordStatusActualInner = {
17
+ type,
18
+ value,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [optional] [default to undefined]
9
+ **type** | **string** | | [optional] [default to undefined]
10
+ **value** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner } from 'hostinger-api-sdk';
16
+
17
+ const instance: ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner = {
18
+ name,
19
+ type,
20
+ value,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # ReachV1ProfilesDomainsDnsStatusResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | | [optional] [default to undefined]
9
+ **mx** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
10
+ **spf** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
11
+ **dkim** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
12
+ **dmarc** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ReachV1ProfilesDomainsDnsStatusResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: ReachV1ProfilesDomainsDnsStatusResource = {
20
+ domain,
21
+ mx,
22
+ spf,
23
+ dkim,
24
+ dmarc,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.19.2
6
+ * API Version: 0.19.3
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": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {