hostinger-api-sdk 0.0.2 → 0.0.3
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/.github/workflows/{publish-release.yaml → build-release.yaml} +24 -3
- package/README.md +2 -2
- package/api.ts +382 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +245 -13
- package/dist/api.js +256 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +245 -13
- package/dist/esm/api.js +254 -2
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
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
|
|
@@ -647,6 +647,51 @@ export interface DNSV1SnapshotSnapshotWithContentResource {
|
|
|
647
647
|
*/
|
|
648
648
|
'created_at'?: string;
|
|
649
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @export
|
|
653
|
+
* @interface DNSV1ZoneDestroyRequest
|
|
654
|
+
*/
|
|
655
|
+
export interface DNSV1ZoneDestroyRequest {
|
|
656
|
+
/**
|
|
657
|
+
* Filter records for deletion
|
|
658
|
+
* @type {Array<DNSV1ZoneDestroyRequestFiltersInner>}
|
|
659
|
+
* @memberof DNSV1ZoneDestroyRequest
|
|
660
|
+
*/
|
|
661
|
+
'filters': Array<DNSV1ZoneDestroyRequestFiltersInner>;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @export
|
|
666
|
+
* @interface DNSV1ZoneDestroyRequestFiltersInner
|
|
667
|
+
*/
|
|
668
|
+
export interface DNSV1ZoneDestroyRequestFiltersInner {
|
|
669
|
+
/**
|
|
670
|
+
* Name of the record
|
|
671
|
+
* @type {string}
|
|
672
|
+
* @memberof DNSV1ZoneDestroyRequestFiltersInner
|
|
673
|
+
*/
|
|
674
|
+
'name'?: string;
|
|
675
|
+
/**
|
|
676
|
+
* Type of the record
|
|
677
|
+
* @type {string}
|
|
678
|
+
* @memberof DNSV1ZoneDestroyRequestFiltersInner
|
|
679
|
+
*/
|
|
680
|
+
'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
|
|
681
|
+
}
|
|
682
|
+
export declare const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum: {
|
|
683
|
+
readonly A: "A";
|
|
684
|
+
readonly Aaaa: "AAAA";
|
|
685
|
+
readonly Cname: "CNAME";
|
|
686
|
+
readonly Alias: "ALIAS";
|
|
687
|
+
readonly Mx: "MX";
|
|
688
|
+
readonly Txt: "TXT";
|
|
689
|
+
readonly Ns: "NS";
|
|
690
|
+
readonly Soa: "SOA";
|
|
691
|
+
readonly Srv: "SRV";
|
|
692
|
+
readonly Caa: "CAA";
|
|
693
|
+
};
|
|
694
|
+
export type DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum[keyof typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum];
|
|
650
695
|
/**
|
|
651
696
|
*
|
|
652
697
|
* @export
|
|
@@ -669,35 +714,35 @@ export interface DNSV1ZoneNameRecordResource {
|
|
|
669
714
|
/**
|
|
670
715
|
*
|
|
671
716
|
* @export
|
|
672
|
-
* @interface
|
|
717
|
+
* @interface DNSV1ZoneRecordResource
|
|
673
718
|
*/
|
|
674
|
-
export interface
|
|
719
|
+
export interface DNSV1ZoneRecordResource {
|
|
675
720
|
/**
|
|
676
721
|
* Name of the record (use `@` for wildcard name)
|
|
677
722
|
* @type {string}
|
|
678
|
-
* @memberof
|
|
723
|
+
* @memberof DNSV1ZoneRecordResource
|
|
679
724
|
*/
|
|
680
725
|
'name'?: string;
|
|
681
726
|
/**
|
|
682
727
|
* Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource)
|
|
683
728
|
* @type {Array<DNSV1ZoneNameRecordResource>}
|
|
684
|
-
* @memberof
|
|
729
|
+
* @memberof DNSV1ZoneRecordResource
|
|
685
730
|
*/
|
|
686
731
|
'records'?: Array<DNSV1ZoneNameRecordResource>;
|
|
687
732
|
/**
|
|
688
733
|
* TTL (Time-To-Live) of the record
|
|
689
734
|
* @type {number}
|
|
690
|
-
* @memberof
|
|
735
|
+
* @memberof DNSV1ZoneRecordResource
|
|
691
736
|
*/
|
|
692
737
|
'ttl'?: number;
|
|
693
738
|
/**
|
|
694
739
|
* Type of the record
|
|
695
740
|
* @type {string}
|
|
696
|
-
* @memberof
|
|
741
|
+
* @memberof DNSV1ZoneRecordResource
|
|
697
742
|
*/
|
|
698
|
-
'type'?:
|
|
743
|
+
'type'?: DNSV1ZoneRecordResourceTypeEnum;
|
|
699
744
|
}
|
|
700
|
-
export declare const
|
|
745
|
+
export declare const DNSV1ZoneRecordResourceTypeEnum: {
|
|
701
746
|
readonly A: "A";
|
|
702
747
|
readonly Aaaa: "AAAA";
|
|
703
748
|
readonly Cname: "CNAME";
|
|
@@ -709,7 +754,7 @@ export declare const DNSV1ZoneNameResourceTypeEnum: {
|
|
|
709
754
|
readonly Srv: "SRV";
|
|
710
755
|
readonly Caa: "CAA";
|
|
711
756
|
};
|
|
712
|
-
export type
|
|
757
|
+
export type DNSV1ZoneRecordResourceTypeEnum = typeof DNSV1ZoneRecordResourceTypeEnum[keyof typeof DNSV1ZoneRecordResourceTypeEnum];
|
|
713
758
|
/**
|
|
714
759
|
*
|
|
715
760
|
* @export
|
|
@@ -735,6 +780,82 @@ export interface DNSV1ZoneResetRequest {
|
|
|
735
780
|
*/
|
|
736
781
|
'whitelisted_record_types'?: Array<string>;
|
|
737
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @export
|
|
786
|
+
* @interface DNSV1ZoneUpdateRequest
|
|
787
|
+
*/
|
|
788
|
+
export interface DNSV1ZoneUpdateRequest {
|
|
789
|
+
/**
|
|
790
|
+
* If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records\' ttl\'s are updated and new records are appended. If no matching RRs are found, they are created.
|
|
791
|
+
* @type {boolean}
|
|
792
|
+
* @memberof DNSV1ZoneUpdateRequest
|
|
793
|
+
*/
|
|
794
|
+
'overwrite'?: boolean;
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @type {Array<DNSV1ZoneUpdateRequestZoneInner>}
|
|
798
|
+
* @memberof DNSV1ZoneUpdateRequest
|
|
799
|
+
*/
|
|
800
|
+
'zone': Array<DNSV1ZoneUpdateRequestZoneInner>;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @export
|
|
805
|
+
* @interface DNSV1ZoneUpdateRequestZoneInner
|
|
806
|
+
*/
|
|
807
|
+
export interface DNSV1ZoneUpdateRequestZoneInner {
|
|
808
|
+
/**
|
|
809
|
+
* Name of the record (use `@` for wildcard name)
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof DNSV1ZoneUpdateRequestZoneInner
|
|
812
|
+
*/
|
|
813
|
+
'name': string;
|
|
814
|
+
/**
|
|
815
|
+
* Records assigned to the name
|
|
816
|
+
* @type {Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>}
|
|
817
|
+
* @memberof DNSV1ZoneUpdateRequestZoneInner
|
|
818
|
+
*/
|
|
819
|
+
'records'?: Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>;
|
|
820
|
+
/**
|
|
821
|
+
* TTL (Time-To-Live) of the record
|
|
822
|
+
* @type {number}
|
|
823
|
+
* @memberof DNSV1ZoneUpdateRequestZoneInner
|
|
824
|
+
*/
|
|
825
|
+
'ttl'?: number;
|
|
826
|
+
/**
|
|
827
|
+
* Type of the record
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof DNSV1ZoneUpdateRequestZoneInner
|
|
830
|
+
*/
|
|
831
|
+
'type': DNSV1ZoneUpdateRequestZoneInnerTypeEnum;
|
|
832
|
+
}
|
|
833
|
+
export declare const DNSV1ZoneUpdateRequestZoneInnerTypeEnum: {
|
|
834
|
+
readonly A: "A";
|
|
835
|
+
readonly Aaaa: "AAAA";
|
|
836
|
+
readonly Cname: "CNAME";
|
|
837
|
+
readonly Alias: "ALIAS";
|
|
838
|
+
readonly Mx: "MX";
|
|
839
|
+
readonly Txt: "TXT";
|
|
840
|
+
readonly Ns: "NS";
|
|
841
|
+
readonly Soa: "SOA";
|
|
842
|
+
readonly Srv: "SRV";
|
|
843
|
+
readonly Caa: "CAA";
|
|
844
|
+
};
|
|
845
|
+
export type DNSV1ZoneUpdateRequestZoneInnerTypeEnum = typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum[keyof typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum];
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @export
|
|
849
|
+
* @interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner
|
|
850
|
+
*/
|
|
851
|
+
export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
|
|
852
|
+
/**
|
|
853
|
+
* Content of the name record
|
|
854
|
+
* @type {string}
|
|
855
|
+
* @memberof DNSV1ZoneUpdateRequestZoneInnerRecordsInner
|
|
856
|
+
*/
|
|
857
|
+
'content': string;
|
|
858
|
+
}
|
|
738
859
|
/**
|
|
739
860
|
*
|
|
740
861
|
* @export
|
|
@@ -2284,6 +2405,15 @@ export declare class DNSSnapshotApi extends BaseAPI {
|
|
|
2284
2405
|
* @export
|
|
2285
2406
|
*/
|
|
2286
2407
|
export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2408
|
+
/**
|
|
2409
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
2410
|
+
* @summary Delete zone records
|
|
2411
|
+
* @param {string} domain Domain name
|
|
2412
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
2413
|
+
* @param {*} [options] Override http request option.
|
|
2414
|
+
* @throws {RequiredError}
|
|
2415
|
+
*/
|
|
2416
|
+
deleteZoneRecordsV1: (domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2287
2417
|
/**
|
|
2288
2418
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
2289
2419
|
* @summary Get records
|
|
@@ -2301,12 +2431,39 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2301
2431
|
* @throws {RequiredError}
|
|
2302
2432
|
*/
|
|
2303
2433
|
resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2434
|
+
/**
|
|
2435
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
2436
|
+
* @summary Update zone records
|
|
2437
|
+
* @param {string} domain Domain name
|
|
2438
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2439
|
+
* @param {*} [options] Override http request option.
|
|
2440
|
+
* @throws {RequiredError}
|
|
2441
|
+
*/
|
|
2442
|
+
updateZoneRecordsV1: (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2443
|
+
/**
|
|
2444
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
2445
|
+
* @summary Validate zone records
|
|
2446
|
+
* @param {string} domain Domain name
|
|
2447
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
validateZoneRecordsV1: (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2304
2452
|
};
|
|
2305
2453
|
/**
|
|
2306
2454
|
* DNSZoneApi - functional programming interface
|
|
2307
2455
|
* @export
|
|
2308
2456
|
*/
|
|
2309
2457
|
export declare const DNSZoneApiFp: (configuration?: Configuration) => {
|
|
2458
|
+
/**
|
|
2459
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
2460
|
+
* @summary Delete zone records
|
|
2461
|
+
* @param {string} domain Domain name
|
|
2462
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
2310
2467
|
/**
|
|
2311
2468
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
2312
2469
|
* @summary Get records
|
|
@@ -2314,7 +2471,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
|
|
|
2314
2471
|
* @param {*} [options] Override http request option.
|
|
2315
2472
|
* @throws {RequiredError}
|
|
2316
2473
|
*/
|
|
2317
|
-
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
2474
|
+
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DNSV1ZoneRecordResource>>>;
|
|
2318
2475
|
/**
|
|
2319
2476
|
* This endpoint resets DNS zone to the default records.
|
|
2320
2477
|
* @summary Reset zone records
|
|
@@ -2324,12 +2481,39 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
|
|
|
2324
2481
|
* @throws {RequiredError}
|
|
2325
2482
|
*/
|
|
2326
2483
|
resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
2484
|
+
/**
|
|
2485
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
2486
|
+
* @summary Update zone records
|
|
2487
|
+
* @param {string} domain Domain name
|
|
2488
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
*/
|
|
2492
|
+
updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
2493
|
+
/**
|
|
2494
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
2495
|
+
* @summary Validate zone records
|
|
2496
|
+
* @param {string} domain Domain name
|
|
2497
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2498
|
+
* @param {*} [options] Override http request option.
|
|
2499
|
+
* @throws {RequiredError}
|
|
2500
|
+
*/
|
|
2501
|
+
validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
2327
2502
|
};
|
|
2328
2503
|
/**
|
|
2329
2504
|
* DNSZoneApi - factory interface
|
|
2330
2505
|
* @export
|
|
2331
2506
|
*/
|
|
2332
2507
|
export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2508
|
+
/**
|
|
2509
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
2510
|
+
* @summary Delete zone records
|
|
2511
|
+
* @param {string} domain Domain name
|
|
2512
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
2513
|
+
* @param {*} [options] Override http request option.
|
|
2514
|
+
* @throws {RequiredError}
|
|
2515
|
+
*/
|
|
2516
|
+
deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
2333
2517
|
/**
|
|
2334
2518
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
2335
2519
|
* @summary Get records
|
|
@@ -2337,7 +2521,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
|
|
|
2337
2521
|
* @param {*} [options] Override http request option.
|
|
2338
2522
|
* @throws {RequiredError}
|
|
2339
2523
|
*/
|
|
2340
|
-
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
2524
|
+
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DNSV1ZoneRecordResource>>;
|
|
2341
2525
|
/**
|
|
2342
2526
|
* This endpoint resets DNS zone to the default records.
|
|
2343
2527
|
* @summary Reset zone records
|
|
@@ -2347,6 +2531,24 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
|
|
|
2347
2531
|
* @throws {RequiredError}
|
|
2348
2532
|
*/
|
|
2349
2533
|
resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
2534
|
+
/**
|
|
2535
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
2536
|
+
* @summary Update zone records
|
|
2537
|
+
* @param {string} domain Domain name
|
|
2538
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2539
|
+
* @param {*} [options] Override http request option.
|
|
2540
|
+
* @throws {RequiredError}
|
|
2541
|
+
*/
|
|
2542
|
+
updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
2543
|
+
/**
|
|
2544
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
2545
|
+
* @summary Validate zone records
|
|
2546
|
+
* @param {string} domain Domain name
|
|
2547
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
*/
|
|
2551
|
+
validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
2350
2552
|
};
|
|
2351
2553
|
/**
|
|
2352
2554
|
* DNSZoneApi - object-oriented interface
|
|
@@ -2355,6 +2557,16 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
|
|
|
2355
2557
|
* @extends {BaseAPI}
|
|
2356
2558
|
*/
|
|
2357
2559
|
export declare class DNSZoneApi extends BaseAPI {
|
|
2560
|
+
/**
|
|
2561
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
2562
|
+
* @summary Delete zone records
|
|
2563
|
+
* @param {string} domain Domain name
|
|
2564
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
2565
|
+
* @param {*} [options] Override http request option.
|
|
2566
|
+
* @throws {RequiredError}
|
|
2567
|
+
* @memberof DNSZoneApi
|
|
2568
|
+
*/
|
|
2569
|
+
deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
|
|
2358
2570
|
/**
|
|
2359
2571
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
2360
2572
|
* @summary Get records
|
|
@@ -2363,7 +2575,7 @@ export declare class DNSZoneApi extends BaseAPI {
|
|
|
2363
2575
|
* @throws {RequiredError}
|
|
2364
2576
|
* @memberof DNSZoneApi
|
|
2365
2577
|
*/
|
|
2366
|
-
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2578
|
+
getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DNSV1ZoneRecordResource[], any>>;
|
|
2367
2579
|
/**
|
|
2368
2580
|
* This endpoint resets DNS zone to the default records.
|
|
2369
2581
|
* @summary Reset zone records
|
|
@@ -2374,6 +2586,26 @@ export declare class DNSZoneApi extends BaseAPI {
|
|
|
2374
2586
|
* @memberof DNSZoneApi
|
|
2375
2587
|
*/
|
|
2376
2588
|
resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
|
|
2589
|
+
/**
|
|
2590
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
2591
|
+
* @summary Update zone records
|
|
2592
|
+
* @param {string} domain Domain name
|
|
2593
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2594
|
+
* @param {*} [options] Override http request option.
|
|
2595
|
+
* @throws {RequiredError}
|
|
2596
|
+
* @memberof DNSZoneApi
|
|
2597
|
+
*/
|
|
2598
|
+
updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
|
|
2599
|
+
/**
|
|
2600
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
2601
|
+
* @summary Validate zone records
|
|
2602
|
+
* @param {string} domain Domain name
|
|
2603
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
2604
|
+
* @param {*} [options] Override http request option.
|
|
2605
|
+
* @throws {RequiredError}
|
|
2606
|
+
* @memberof DNSZoneApi
|
|
2607
|
+
*/
|
|
2608
|
+
validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
|
|
2377
2609
|
}
|
|
2378
2610
|
/**
|
|
2379
2611
|
* DomainsPortfolioApi - axios parameter creator
|