hostinger-api-sdk 2.15.0 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +609 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +374 -2
- package/dist/api.js +445 -14
- 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 +374 -2
- package/dist/esm/api.js +428 -1
- 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/docs/GPUExposedServicesApi.md +177 -0
- package/docs/GPUV1ExposedServiceExposedServiceResource.md +32 -0
- package/docs/GPUV1ExposedServiceStoreRequest.md +26 -0
- package/docs/ReachCampaignsApi.md +119 -0
- package/docs/ReachV1CampaignsCreatedCampaignResource.md +1 -1
- package/docs/ReachV1CampaignsUpdateRequest.md +37 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.16.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.
|
|
7
|
+
* API Version: 2.16.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.
|
|
4
|
+
* API Version: 2.16.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.
|
|
7
|
+
* API Version: 2.16.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/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.16.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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.16.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.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.16.1" }, (_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.
|
|
4
|
+
* API Version: 2.16.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
|
|
@@ -6867,6 +6867,106 @@ export interface EcommerceV1VariantVariantResponseResource {
|
|
|
6867
6867
|
*/
|
|
6868
6868
|
'data': EcommerceV1VariantVariantResource;
|
|
6869
6869
|
}
|
|
6870
|
+
/**
|
|
6871
|
+
*
|
|
6872
|
+
* @export
|
|
6873
|
+
* @interface GPUV1ExposedServiceExposedServiceResource
|
|
6874
|
+
*/
|
|
6875
|
+
export interface GPUV1ExposedServiceExposedServiceResource {
|
|
6876
|
+
/**
|
|
6877
|
+
* Exposed service ID
|
|
6878
|
+
* @type {number}
|
|
6879
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6880
|
+
*/
|
|
6881
|
+
'id': number;
|
|
6882
|
+
/**
|
|
6883
|
+
*
|
|
6884
|
+
* @type {string}
|
|
6885
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6886
|
+
*/
|
|
6887
|
+
'name': string;
|
|
6888
|
+
/**
|
|
6889
|
+
* Public hostname or IP address of the service
|
|
6890
|
+
* @type {string}
|
|
6891
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6892
|
+
*/
|
|
6893
|
+
'hostname': string;
|
|
6894
|
+
/**
|
|
6895
|
+
* Port the service listens on inside the instance
|
|
6896
|
+
* @type {number}
|
|
6897
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6898
|
+
*/
|
|
6899
|
+
'internal_port': number;
|
|
6900
|
+
/**
|
|
6901
|
+
* Public port the service is reachable on
|
|
6902
|
+
* @type {number}
|
|
6903
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6904
|
+
*/
|
|
6905
|
+
'external_port': number;
|
|
6906
|
+
/**
|
|
6907
|
+
*
|
|
6908
|
+
* @type {string}
|
|
6909
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6910
|
+
*/
|
|
6911
|
+
'protocol': GPUV1ExposedServiceExposedServiceResourceProtocolEnum;
|
|
6912
|
+
/**
|
|
6913
|
+
*
|
|
6914
|
+
* @type {string}
|
|
6915
|
+
* @memberof GPUV1ExposedServiceExposedServiceResource
|
|
6916
|
+
*/
|
|
6917
|
+
'type': GPUV1ExposedServiceExposedServiceResourceTypeEnum;
|
|
6918
|
+
}
|
|
6919
|
+
export declare const GPUV1ExposedServiceExposedServiceResourceProtocolEnum: {
|
|
6920
|
+
readonly Tcp: "tcp";
|
|
6921
|
+
readonly Udp: "udp";
|
|
6922
|
+
};
|
|
6923
|
+
export type GPUV1ExposedServiceExposedServiceResourceProtocolEnum = typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum];
|
|
6924
|
+
export declare const GPUV1ExposedServiceExposedServiceResourceTypeEnum: {
|
|
6925
|
+
readonly Http: "http";
|
|
6926
|
+
readonly Https: "https";
|
|
6927
|
+
};
|
|
6928
|
+
export type GPUV1ExposedServiceExposedServiceResourceTypeEnum = typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum];
|
|
6929
|
+
/**
|
|
6930
|
+
*
|
|
6931
|
+
* @export
|
|
6932
|
+
* @interface GPUV1ExposedServiceStoreRequest
|
|
6933
|
+
*/
|
|
6934
|
+
export interface GPUV1ExposedServiceStoreRequest {
|
|
6935
|
+
/**
|
|
6936
|
+
* Service name, unique within the instance
|
|
6937
|
+
* @type {string}
|
|
6938
|
+
* @memberof GPUV1ExposedServiceStoreRequest
|
|
6939
|
+
*/
|
|
6940
|
+
'name': string;
|
|
6941
|
+
/**
|
|
6942
|
+
* Port the service listens on inside the instance, unique within the instance
|
|
6943
|
+
* @type {number}
|
|
6944
|
+
* @memberof GPUV1ExposedServiceStoreRequest
|
|
6945
|
+
*/
|
|
6946
|
+
'internal_port': number;
|
|
6947
|
+
/**
|
|
6948
|
+
*
|
|
6949
|
+
* @type {string}
|
|
6950
|
+
* @memberof GPUV1ExposedServiceStoreRequest
|
|
6951
|
+
*/
|
|
6952
|
+
'protocol': GPUV1ExposedServiceStoreRequestProtocolEnum;
|
|
6953
|
+
/**
|
|
6954
|
+
*
|
|
6955
|
+
* @type {string}
|
|
6956
|
+
* @memberof GPUV1ExposedServiceStoreRequest
|
|
6957
|
+
*/
|
|
6958
|
+
'type': GPUV1ExposedServiceStoreRequestTypeEnum;
|
|
6959
|
+
}
|
|
6960
|
+
export declare const GPUV1ExposedServiceStoreRequestProtocolEnum: {
|
|
6961
|
+
readonly Tcp: "tcp";
|
|
6962
|
+
readonly Udp: "udp";
|
|
6963
|
+
};
|
|
6964
|
+
export type GPUV1ExposedServiceStoreRequestProtocolEnum = typeof GPUV1ExposedServiceStoreRequestProtocolEnum[keyof typeof GPUV1ExposedServiceStoreRequestProtocolEnum];
|
|
6965
|
+
export declare const GPUV1ExposedServiceStoreRequestTypeEnum: {
|
|
6966
|
+
readonly Http: "http";
|
|
6967
|
+
readonly Https: "https";
|
|
6968
|
+
};
|
|
6969
|
+
export type GPUV1ExposedServiceStoreRequestTypeEnum = typeof GPUV1ExposedServiceStoreRequestTypeEnum[keyof typeof GPUV1ExposedServiceStoreRequestTypeEnum];
|
|
6870
6970
|
/**
|
|
6871
6971
|
*
|
|
6872
6972
|
* @export
|
|
@@ -13719,7 +13819,7 @@ export interface ReachV1CampaignsCreatedCampaignResource {
|
|
|
13719
13819
|
*/
|
|
13720
13820
|
'template_uuid': string | null;
|
|
13721
13821
|
/**
|
|
13722
|
-
* Always `draft` for a campaign that was just created.
|
|
13822
|
+
* Always `draft` for a campaign that was just created; the current status after an update.
|
|
13723
13823
|
* @type {string}
|
|
13724
13824
|
* @memberof ReachV1CampaignsCreatedCampaignResource
|
|
13725
13825
|
*/
|
|
@@ -13833,6 +13933,67 @@ export interface ReachV1CampaignsStoreRequestMetadata {
|
|
|
13833
13933
|
*/
|
|
13834
13934
|
'source': string;
|
|
13835
13935
|
}
|
|
13936
|
+
/**
|
|
13937
|
+
* Update a campaign. Send at least one field; fields left out keep their current value.
|
|
13938
|
+
* @export
|
|
13939
|
+
* @interface ReachV1CampaignsUpdateRequest
|
|
13940
|
+
*/
|
|
13941
|
+
export interface ReachV1CampaignsUpdateRequest {
|
|
13942
|
+
/**
|
|
13943
|
+
* Name the campaign is listed under. Not shown to the recipients.
|
|
13944
|
+
* @type {string}
|
|
13945
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13946
|
+
*/
|
|
13947
|
+
'title': string;
|
|
13948
|
+
/**
|
|
13949
|
+
* Subject line of the email.
|
|
13950
|
+
* @type {string}
|
|
13951
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13952
|
+
*/
|
|
13953
|
+
'subject': string;
|
|
13954
|
+
/**
|
|
13955
|
+
* From name shown to the recipients.
|
|
13956
|
+
* @type {string}
|
|
13957
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13958
|
+
*/
|
|
13959
|
+
'sender_name': string;
|
|
13960
|
+
/**
|
|
13961
|
+
* From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent.
|
|
13962
|
+
* @type {string}
|
|
13963
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13964
|
+
*/
|
|
13965
|
+
'sender_email': string;
|
|
13966
|
+
/**
|
|
13967
|
+
* Template to send, as returned by the template endpoints.
|
|
13968
|
+
* @type {string}
|
|
13969
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13970
|
+
*/
|
|
13971
|
+
'template_uuid': string;
|
|
13972
|
+
/**
|
|
13973
|
+
* `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent.
|
|
13974
|
+
* @type {boolean}
|
|
13975
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13976
|
+
*/
|
|
13977
|
+
'all_contacts': boolean;
|
|
13978
|
+
/**
|
|
13979
|
+
* Segments to target. Replaces the segments currently targeted.
|
|
13980
|
+
* @type {Array<string>}
|
|
13981
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13982
|
+
*/
|
|
13983
|
+
'segment_uuids': Array<string>;
|
|
13984
|
+
/**
|
|
13985
|
+
* Segments to leave out. Only allowed together with `all_contacts: true`.
|
|
13986
|
+
* @type {Array<string>}
|
|
13987
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13988
|
+
*/
|
|
13989
|
+
'excluded_segment_uuids': Array<string>;
|
|
13990
|
+
/**
|
|
13991
|
+
*
|
|
13992
|
+
* @type {ReachV1CampaignsStoreRequestMetadata}
|
|
13993
|
+
* @memberof ReachV1CampaignsUpdateRequest
|
|
13994
|
+
*/
|
|
13995
|
+
'metadata': ReachV1CampaignsStoreRequestMetadata | null;
|
|
13996
|
+
}
|
|
13836
13997
|
/**
|
|
13837
13998
|
* Create many contacts in one call
|
|
13838
13999
|
* @export
|
|
@@ -25520,6 +25681,139 @@ export declare const GetPoolGroupsV1CurrencyEnum: {
|
|
|
25520
25681
|
readonly Zar: "ZAR";
|
|
25521
25682
|
};
|
|
25522
25683
|
export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
|
|
25684
|
+
/**
|
|
25685
|
+
* GPUExposedServicesApi - axios parameter creator
|
|
25686
|
+
* @export
|
|
25687
|
+
*/
|
|
25688
|
+
export declare const GPUExposedServicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25689
|
+
/**
|
|
25690
|
+
* Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
|
|
25691
|
+
* @summary Create exposed service
|
|
25692
|
+
* @param {number} instanceId GPU instance ID
|
|
25693
|
+
* @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
|
|
25694
|
+
* @param {*} [options] Override http request option.
|
|
25695
|
+
* @throws {RequiredError}
|
|
25696
|
+
*/
|
|
25697
|
+
createExposedServiceV1: (instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25698
|
+
/**
|
|
25699
|
+
* Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
|
|
25700
|
+
* @summary Delete exposed service
|
|
25701
|
+
* @param {number} instanceId GPU instance ID
|
|
25702
|
+
* @param {number} exposedServiceId Exposed service ID
|
|
25703
|
+
* @param {*} [options] Override http request option.
|
|
25704
|
+
* @throws {RequiredError}
|
|
25705
|
+
*/
|
|
25706
|
+
deleteExposedServiceV1: (instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25707
|
+
/**
|
|
25708
|
+
* Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
|
|
25709
|
+
* @summary Get exposed services
|
|
25710
|
+
* @param {number} instanceId GPU instance ID
|
|
25711
|
+
* @param {*} [options] Override http request option.
|
|
25712
|
+
* @throws {RequiredError}
|
|
25713
|
+
*/
|
|
25714
|
+
getExposedServicesV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25715
|
+
};
|
|
25716
|
+
/**
|
|
25717
|
+
* GPUExposedServicesApi - functional programming interface
|
|
25718
|
+
* @export
|
|
25719
|
+
*/
|
|
25720
|
+
export declare const GPUExposedServicesApiFp: (configuration?: Configuration) => {
|
|
25721
|
+
/**
|
|
25722
|
+
* Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
|
|
25723
|
+
* @summary Create exposed service
|
|
25724
|
+
* @param {number} instanceId GPU instance ID
|
|
25725
|
+
* @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
|
|
25726
|
+
* @param {*} [options] Override http request option.
|
|
25727
|
+
* @throws {RequiredError}
|
|
25728
|
+
*/
|
|
25729
|
+
createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
25730
|
+
/**
|
|
25731
|
+
* Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
|
|
25732
|
+
* @summary Delete exposed service
|
|
25733
|
+
* @param {number} instanceId GPU instance ID
|
|
25734
|
+
* @param {number} exposedServiceId Exposed service ID
|
|
25735
|
+
* @param {*} [options] Override http request option.
|
|
25736
|
+
* @throws {RequiredError}
|
|
25737
|
+
*/
|
|
25738
|
+
deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
25739
|
+
/**
|
|
25740
|
+
* Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
|
|
25741
|
+
* @summary Get exposed services
|
|
25742
|
+
* @param {number} instanceId GPU instance ID
|
|
25743
|
+
* @param {*} [options] Override http request option.
|
|
25744
|
+
* @throws {RequiredError}
|
|
25745
|
+
*/
|
|
25746
|
+
getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>>>;
|
|
25747
|
+
};
|
|
25748
|
+
/**
|
|
25749
|
+
* GPUExposedServicesApi - factory interface
|
|
25750
|
+
* @export
|
|
25751
|
+
*/
|
|
25752
|
+
export declare const GPUExposedServicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25753
|
+
/**
|
|
25754
|
+
* Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
|
|
25755
|
+
* @summary Create exposed service
|
|
25756
|
+
* @param {number} instanceId GPU instance ID
|
|
25757
|
+
* @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
|
|
25758
|
+
* @param {*} [options] Override http request option.
|
|
25759
|
+
* @throws {RequiredError}
|
|
25760
|
+
*/
|
|
25761
|
+
createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
25762
|
+
/**
|
|
25763
|
+
* Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
|
|
25764
|
+
* @summary Delete exposed service
|
|
25765
|
+
* @param {number} instanceId GPU instance ID
|
|
25766
|
+
* @param {number} exposedServiceId Exposed service ID
|
|
25767
|
+
* @param {*} [options] Override http request option.
|
|
25768
|
+
* @throws {RequiredError}
|
|
25769
|
+
*/
|
|
25770
|
+
deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
25771
|
+
/**
|
|
25772
|
+
* Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
|
|
25773
|
+
* @summary Get exposed services
|
|
25774
|
+
* @param {number} instanceId GPU instance ID
|
|
25775
|
+
* @param {*} [options] Override http request option.
|
|
25776
|
+
* @throws {RequiredError}
|
|
25777
|
+
*/
|
|
25778
|
+
getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>>;
|
|
25779
|
+
};
|
|
25780
|
+
/**
|
|
25781
|
+
* GPUExposedServicesApi - object-oriented interface
|
|
25782
|
+
* @export
|
|
25783
|
+
* @class GPUExposedServicesApi
|
|
25784
|
+
* @extends {BaseAPI}
|
|
25785
|
+
*/
|
|
25786
|
+
export declare class GPUExposedServicesApi extends BaseAPI {
|
|
25787
|
+
/**
|
|
25788
|
+
* Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
|
|
25789
|
+
* @summary Create exposed service
|
|
25790
|
+
* @param {number} instanceId GPU instance ID
|
|
25791
|
+
* @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
|
|
25792
|
+
* @param {*} [options] Override http request option.
|
|
25793
|
+
* @throws {RequiredError}
|
|
25794
|
+
* @memberof GPUExposedServicesApi
|
|
25795
|
+
*/
|
|
25796
|
+
createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
25797
|
+
/**
|
|
25798
|
+
* Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
|
|
25799
|
+
* @summary Delete exposed service
|
|
25800
|
+
* @param {number} instanceId GPU instance ID
|
|
25801
|
+
* @param {number} exposedServiceId Exposed service ID
|
|
25802
|
+
* @param {*} [options] Override http request option.
|
|
25803
|
+
* @throws {RequiredError}
|
|
25804
|
+
* @memberof GPUExposedServicesApi
|
|
25805
|
+
*/
|
|
25806
|
+
deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
25807
|
+
/**
|
|
25808
|
+
* Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
|
|
25809
|
+
* @summary Get exposed services
|
|
25810
|
+
* @param {number} instanceId GPU instance ID
|
|
25811
|
+
* @param {*} [options] Override http request option.
|
|
25812
|
+
* @throws {RequiredError}
|
|
25813
|
+
* @memberof GPUExposedServicesApi
|
|
25814
|
+
*/
|
|
25815
|
+
getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1ExposedServiceExposedServiceResource[], any, {}, any>>;
|
|
25816
|
+
}
|
|
25523
25817
|
/**
|
|
25524
25818
|
* GPUInstancesApi - axios parameter creator
|
|
25525
25819
|
* @export
|
|
@@ -31897,6 +32191,25 @@ export declare const ReachCampaignsApiAxiosParamCreator: (configuration?: Config
|
|
|
31897
32191
|
* @throws {RequiredError}
|
|
31898
32192
|
*/
|
|
31899
32193
|
listCampaignsV1: (profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32194
|
+
/**
|
|
32195
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
32196
|
+
* @summary Send campaign
|
|
32197
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32198
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32199
|
+
* @param {*} [options] Override http request option.
|
|
32200
|
+
* @throws {RequiredError}
|
|
32201
|
+
*/
|
|
32202
|
+
sendCampaignV1: (profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32203
|
+
/**
|
|
32204
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
32205
|
+
* @summary Update campaign
|
|
32206
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32207
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32208
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
32209
|
+
* @param {*} [options] Override http request option.
|
|
32210
|
+
* @throws {RequiredError}
|
|
32211
|
+
*/
|
|
32212
|
+
updateCampaignV1: (profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31900
32213
|
};
|
|
31901
32214
|
/**
|
|
31902
32215
|
* ReachCampaignsApi - functional programming interface
|
|
@@ -31943,6 +32256,25 @@ export declare const ReachCampaignsApiFp: (configuration?: Configuration) => {
|
|
|
31943
32256
|
* @throws {RequiredError}
|
|
31944
32257
|
*/
|
|
31945
32258
|
listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListCampaignsV1200Response>>;
|
|
32259
|
+
/**
|
|
32260
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
32261
|
+
* @summary Send campaign
|
|
32262
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32263
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32264
|
+
* @param {*} [options] Override http request option.
|
|
32265
|
+
* @throws {RequiredError}
|
|
32266
|
+
*/
|
|
32267
|
+
sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
32268
|
+
/**
|
|
32269
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
32270
|
+
* @summary Update campaign
|
|
32271
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32272
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32273
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
32274
|
+
* @param {*} [options] Override http request option.
|
|
32275
|
+
* @throws {RequiredError}
|
|
32276
|
+
*/
|
|
32277
|
+
updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1CampaignsCreatedCampaignResource>>;
|
|
31946
32278
|
};
|
|
31947
32279
|
/**
|
|
31948
32280
|
* ReachCampaignsApi - factory interface
|
|
@@ -31989,6 +32321,25 @@ export declare const ReachCampaignsApiFactory: (configuration?: Configuration, b
|
|
|
31989
32321
|
* @throws {RequiredError}
|
|
31990
32322
|
*/
|
|
31991
32323
|
listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListCampaignsV1200Response>;
|
|
32324
|
+
/**
|
|
32325
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
32326
|
+
* @summary Send campaign
|
|
32327
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32328
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32329
|
+
* @param {*} [options] Override http request option.
|
|
32330
|
+
* @throws {RequiredError}
|
|
32331
|
+
*/
|
|
32332
|
+
sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
32333
|
+
/**
|
|
32334
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
32335
|
+
* @summary Update campaign
|
|
32336
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32337
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32338
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
32339
|
+
* @param {*} [options] Override http request option.
|
|
32340
|
+
* @throws {RequiredError}
|
|
32341
|
+
*/
|
|
32342
|
+
updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1CampaignsCreatedCampaignResource>;
|
|
31992
32343
|
};
|
|
31993
32344
|
/**
|
|
31994
32345
|
* ReachCampaignsApi - object-oriented interface
|
|
@@ -32041,6 +32392,27 @@ export declare class ReachCampaignsApi extends BaseAPI {
|
|
|
32041
32392
|
* @memberof ReachCampaignsApi
|
|
32042
32393
|
*/
|
|
32043
32394
|
listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListCampaignsV1200Response, any, {}, any>>;
|
|
32395
|
+
/**
|
|
32396
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
32397
|
+
* @summary Send campaign
|
|
32398
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32399
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32400
|
+
* @param {*} [options] Override http request option.
|
|
32401
|
+
* @throws {RequiredError}
|
|
32402
|
+
* @memberof ReachCampaignsApi
|
|
32403
|
+
*/
|
|
32404
|
+
sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
32405
|
+
/**
|
|
32406
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
32407
|
+
* @summary Update campaign
|
|
32408
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
32409
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
32410
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
32411
|
+
* @param {*} [options] Override http request option.
|
|
32412
|
+
* @throws {RequiredError}
|
|
32413
|
+
* @memberof ReachCampaignsApi
|
|
32414
|
+
*/
|
|
32415
|
+
updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1CampaignsCreatedCampaignResource, any, {}, any>>;
|
|
32044
32416
|
}
|
|
32045
32417
|
/**
|
|
32046
32418
|
* @export
|