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/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.15.0
6
+ * API Version: 2.16.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7011,6 +7011,114 @@ export interface EcommerceV1VariantVariantResponseResource {
7011
7011
  */
7012
7012
  'data': EcommerceV1VariantVariantResource;
7013
7013
  }
7014
+ /**
7015
+ *
7016
+ * @export
7017
+ * @interface GPUV1ExposedServiceExposedServiceResource
7018
+ */
7019
+ export interface GPUV1ExposedServiceExposedServiceResource {
7020
+ /**
7021
+ * Exposed service ID
7022
+ * @type {number}
7023
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7024
+ */
7025
+ 'id': number;
7026
+ /**
7027
+ *
7028
+ * @type {string}
7029
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7030
+ */
7031
+ 'name': string;
7032
+ /**
7033
+ * Public hostname or IP address of the service
7034
+ * @type {string}
7035
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7036
+ */
7037
+ 'hostname': string;
7038
+ /**
7039
+ * Port the service listens on inside the instance
7040
+ * @type {number}
7041
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7042
+ */
7043
+ 'internal_port': number;
7044
+ /**
7045
+ * Public port the service is reachable on
7046
+ * @type {number}
7047
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7048
+ */
7049
+ 'external_port': number;
7050
+ /**
7051
+ *
7052
+ * @type {string}
7053
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7054
+ */
7055
+ 'protocol': GPUV1ExposedServiceExposedServiceResourceProtocolEnum;
7056
+ /**
7057
+ *
7058
+ * @type {string}
7059
+ * @memberof GPUV1ExposedServiceExposedServiceResource
7060
+ */
7061
+ 'type': GPUV1ExposedServiceExposedServiceResourceTypeEnum;
7062
+ }
7063
+
7064
+ export const GPUV1ExposedServiceExposedServiceResourceProtocolEnum = {
7065
+ Tcp: 'tcp',
7066
+ Udp: 'udp'
7067
+ } as const;
7068
+
7069
+ export type GPUV1ExposedServiceExposedServiceResourceProtocolEnum = typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum];
7070
+ export const GPUV1ExposedServiceExposedServiceResourceTypeEnum = {
7071
+ Http: 'http',
7072
+ Https: 'https'
7073
+ } as const;
7074
+
7075
+ export type GPUV1ExposedServiceExposedServiceResourceTypeEnum = typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum];
7076
+
7077
+ /**
7078
+ *
7079
+ * @export
7080
+ * @interface GPUV1ExposedServiceStoreRequest
7081
+ */
7082
+ export interface GPUV1ExposedServiceStoreRequest {
7083
+ /**
7084
+ * Service name, unique within the instance
7085
+ * @type {string}
7086
+ * @memberof GPUV1ExposedServiceStoreRequest
7087
+ */
7088
+ 'name': string;
7089
+ /**
7090
+ * Port the service listens on inside the instance, unique within the instance
7091
+ * @type {number}
7092
+ * @memberof GPUV1ExposedServiceStoreRequest
7093
+ */
7094
+ 'internal_port': number;
7095
+ /**
7096
+ *
7097
+ * @type {string}
7098
+ * @memberof GPUV1ExposedServiceStoreRequest
7099
+ */
7100
+ 'protocol': GPUV1ExposedServiceStoreRequestProtocolEnum;
7101
+ /**
7102
+ *
7103
+ * @type {string}
7104
+ * @memberof GPUV1ExposedServiceStoreRequest
7105
+ */
7106
+ 'type': GPUV1ExposedServiceStoreRequestTypeEnum;
7107
+ }
7108
+
7109
+ export const GPUV1ExposedServiceStoreRequestProtocolEnum = {
7110
+ Tcp: 'tcp',
7111
+ Udp: 'udp'
7112
+ } as const;
7113
+
7114
+ export type GPUV1ExposedServiceStoreRequestProtocolEnum = typeof GPUV1ExposedServiceStoreRequestProtocolEnum[keyof typeof GPUV1ExposedServiceStoreRequestProtocolEnum];
7115
+ export const GPUV1ExposedServiceStoreRequestTypeEnum = {
7116
+ Http: 'http',
7117
+ Https: 'https'
7118
+ } as const;
7119
+
7120
+ export type GPUV1ExposedServiceStoreRequestTypeEnum = typeof GPUV1ExposedServiceStoreRequestTypeEnum[keyof typeof GPUV1ExposedServiceStoreRequestTypeEnum];
7121
+
7014
7122
  /**
7015
7123
  *
7016
7124
  * @export
@@ -14017,7 +14125,7 @@ export interface ReachV1CampaignsCreatedCampaignResource {
14017
14125
  */
14018
14126
  'template_uuid': string | null;
14019
14127
  /**
14020
- * Always `draft` for a campaign that was just created.
14128
+ * Always `draft` for a campaign that was just created; the current status after an update.
14021
14129
  * @type {string}
14022
14130
  * @memberof ReachV1CampaignsCreatedCampaignResource
14023
14131
  */
@@ -14133,6 +14241,67 @@ export interface ReachV1CampaignsStoreRequestMetadata {
14133
14241
  */
14134
14242
  'source': string;
14135
14243
  }
14244
+ /**
14245
+ * Update a campaign. Send at least one field; fields left out keep their current value.
14246
+ * @export
14247
+ * @interface ReachV1CampaignsUpdateRequest
14248
+ */
14249
+ export interface ReachV1CampaignsUpdateRequest {
14250
+ /**
14251
+ * Name the campaign is listed under. Not shown to the recipients.
14252
+ * @type {string}
14253
+ * @memberof ReachV1CampaignsUpdateRequest
14254
+ */
14255
+ 'title': string;
14256
+ /**
14257
+ * Subject line of the email.
14258
+ * @type {string}
14259
+ * @memberof ReachV1CampaignsUpdateRequest
14260
+ */
14261
+ 'subject': string;
14262
+ /**
14263
+ * From name shown to the recipients.
14264
+ * @type {string}
14265
+ * @memberof ReachV1CampaignsUpdateRequest
14266
+ */
14267
+ 'sender_name': string;
14268
+ /**
14269
+ * From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent.
14270
+ * @type {string}
14271
+ * @memberof ReachV1CampaignsUpdateRequest
14272
+ */
14273
+ 'sender_email': string;
14274
+ /**
14275
+ * Template to send, as returned by the template endpoints.
14276
+ * @type {string}
14277
+ * @memberof ReachV1CampaignsUpdateRequest
14278
+ */
14279
+ 'template_uuid': string;
14280
+ /**
14281
+ * `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent.
14282
+ * @type {boolean}
14283
+ * @memberof ReachV1CampaignsUpdateRequest
14284
+ */
14285
+ 'all_contacts': boolean;
14286
+ /**
14287
+ * Segments to target. Replaces the segments currently targeted.
14288
+ * @type {Array<string>}
14289
+ * @memberof ReachV1CampaignsUpdateRequest
14290
+ */
14291
+ 'segment_uuids': Array<string>;
14292
+ /**
14293
+ * Segments to leave out. Only allowed together with `all_contacts: true`.
14294
+ * @type {Array<string>}
14295
+ * @memberof ReachV1CampaignsUpdateRequest
14296
+ */
14297
+ 'excluded_segment_uuids': Array<string>;
14298
+ /**
14299
+ *
14300
+ * @type {ReachV1CampaignsStoreRequestMetadata}
14301
+ * @memberof ReachV1CampaignsUpdateRequest
14302
+ */
14303
+ 'metadata': ReachV1CampaignsStoreRequestMetadata | null;
14304
+ }
14136
14305
  /**
14137
14306
  * Create many contacts in one call
14138
14307
  * @export
@@ -32137,6 +32306,277 @@ export const GetPoolGroupsV1CurrencyEnum = {
32137
32306
  export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
32138
32307
 
32139
32308
 
32309
+ /**
32310
+ * GPUExposedServicesApi - axios parameter creator
32311
+ * @export
32312
+ */
32313
+ export const GPUExposedServicesApiAxiosParamCreator = function (configuration?: Configuration) {
32314
+ return {
32315
+ /**
32316
+ * 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.
32317
+ * @summary Create exposed service
32318
+ * @param {number} instanceId GPU instance ID
32319
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
32320
+ * @param {*} [options] Override http request option.
32321
+ * @throws {RequiredError}
32322
+ */
32323
+ createExposedServiceV1: async (instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32324
+ // verify required parameter 'instanceId' is not null or undefined
32325
+ assertParamExists('createExposedServiceV1', 'instanceId', instanceId)
32326
+ // verify required parameter 'gPUV1ExposedServiceStoreRequest' is not null or undefined
32327
+ assertParamExists('createExposedServiceV1', 'gPUV1ExposedServiceStoreRequest', gPUV1ExposedServiceStoreRequest)
32328
+ const localVarPath = `/api/gpu/v1/instances/{instanceId}/exposed-services`
32329
+ .replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId));
32330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32332
+ let baseOptions;
32333
+ if (configuration) {
32334
+ baseOptions = configuration.baseOptions;
32335
+ }
32336
+
32337
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32338
+ const localVarHeaderParameter = {} as any;
32339
+ const localVarQueryParameter = {} as any;
32340
+
32341
+ // authentication apiToken required
32342
+ // http bearer authentication required
32343
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32344
+
32345
+
32346
+
32347
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32348
+
32349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32351
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32352
+ localVarRequestOptions.data = serializeDataIfNeeded(gPUV1ExposedServiceStoreRequest, localVarRequestOptions, configuration)
32353
+
32354
+ return {
32355
+ url: toPathString(localVarUrlObj),
32356
+ options: localVarRequestOptions,
32357
+ };
32358
+ },
32359
+ /**
32360
+ * 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.
32361
+ * @summary Delete exposed service
32362
+ * @param {number} instanceId GPU instance ID
32363
+ * @param {number} exposedServiceId Exposed service ID
32364
+ * @param {*} [options] Override http request option.
32365
+ * @throws {RequiredError}
32366
+ */
32367
+ deleteExposedServiceV1: async (instanceId: number, exposedServiceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32368
+ // verify required parameter 'instanceId' is not null or undefined
32369
+ assertParamExists('deleteExposedServiceV1', 'instanceId', instanceId)
32370
+ // verify required parameter 'exposedServiceId' is not null or undefined
32371
+ assertParamExists('deleteExposedServiceV1', 'exposedServiceId', exposedServiceId)
32372
+ const localVarPath = `/api/gpu/v1/instances/{instanceId}/exposed-services/{exposedServiceId}`
32373
+ .replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId))
32374
+ .replace(`{${"exposedServiceId"}}`, encodePathParam('exposedServiceId', exposedServiceId));
32375
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32376
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32377
+ let baseOptions;
32378
+ if (configuration) {
32379
+ baseOptions = configuration.baseOptions;
32380
+ }
32381
+
32382
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
32383
+ const localVarHeaderParameter = {} as any;
32384
+ const localVarQueryParameter = {} as any;
32385
+
32386
+ // authentication apiToken required
32387
+ // http bearer authentication required
32388
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32389
+
32390
+
32391
+
32392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32394
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32395
+
32396
+ return {
32397
+ url: toPathString(localVarUrlObj),
32398
+ options: localVarRequestOptions,
32399
+ };
32400
+ },
32401
+ /**
32402
+ * 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.
32403
+ * @summary Get exposed services
32404
+ * @param {number} instanceId GPU instance ID
32405
+ * @param {*} [options] Override http request option.
32406
+ * @throws {RequiredError}
32407
+ */
32408
+ getExposedServicesV1: async (instanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32409
+ // verify required parameter 'instanceId' is not null or undefined
32410
+ assertParamExists('getExposedServicesV1', 'instanceId', instanceId)
32411
+ const localVarPath = `/api/gpu/v1/instances/{instanceId}/exposed-services`
32412
+ .replace(`{${"instanceId"}}`, encodePathParam('instanceId', instanceId));
32413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32414
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32415
+ let baseOptions;
32416
+ if (configuration) {
32417
+ baseOptions = configuration.baseOptions;
32418
+ }
32419
+
32420
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32421
+ const localVarHeaderParameter = {} as any;
32422
+ const localVarQueryParameter = {} as any;
32423
+
32424
+ // authentication apiToken required
32425
+ // http bearer authentication required
32426
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32427
+
32428
+
32429
+
32430
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32432
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32433
+
32434
+ return {
32435
+ url: toPathString(localVarUrlObj),
32436
+ options: localVarRequestOptions,
32437
+ };
32438
+ },
32439
+ }
32440
+ };
32441
+
32442
+ /**
32443
+ * GPUExposedServicesApi - functional programming interface
32444
+ * @export
32445
+ */
32446
+ export const GPUExposedServicesApiFp = function(configuration?: Configuration) {
32447
+ const localVarAxiosParamCreator = GPUExposedServicesApiAxiosParamCreator(configuration)
32448
+ return {
32449
+ /**
32450
+ * 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.
32451
+ * @summary Create exposed service
32452
+ * @param {number} instanceId GPU instance ID
32453
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
32454
+ * @param {*} [options] Override http request option.
32455
+ * @throws {RequiredError}
32456
+ */
32457
+ async createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
32458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createExposedServiceV1(instanceId, gPUV1ExposedServiceStoreRequest, options);
32459
+ const localVarOperationServerBasePath = operationServerMap['GPUExposedServicesApi.createExposedServiceV1']?.[0]?.url;
32460
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32461
+ },
32462
+ /**
32463
+ * 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.
32464
+ * @summary Delete exposed service
32465
+ * @param {number} instanceId GPU instance ID
32466
+ * @param {number} exposedServiceId Exposed service ID
32467
+ * @param {*} [options] Override http request option.
32468
+ * @throws {RequiredError}
32469
+ */
32470
+ async deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
32471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteExposedServiceV1(instanceId, exposedServiceId, options);
32472
+ const localVarOperationServerBasePath = operationServerMap['GPUExposedServicesApi.deleteExposedServiceV1']?.[0]?.url;
32473
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32474
+ },
32475
+ /**
32476
+ * 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.
32477
+ * @summary Get exposed services
32478
+ * @param {number} instanceId GPU instance ID
32479
+ * @param {*} [options] Override http request option.
32480
+ * @throws {RequiredError}
32481
+ */
32482
+ async getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>>> {
32483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExposedServicesV1(instanceId, options);
32484
+ const localVarOperationServerBasePath = operationServerMap['GPUExposedServicesApi.getExposedServicesV1']?.[0]?.url;
32485
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32486
+ },
32487
+ }
32488
+ };
32489
+
32490
+ /**
32491
+ * GPUExposedServicesApi - factory interface
32492
+ * @export
32493
+ */
32494
+ export const GPUExposedServicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32495
+ const localVarFp = GPUExposedServicesApiFp(configuration)
32496
+ return {
32497
+ /**
32498
+ * 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.
32499
+ * @summary Create exposed service
32500
+ * @param {number} instanceId GPU instance ID
32501
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
32502
+ * @param {*} [options] Override http request option.
32503
+ * @throws {RequiredError}
32504
+ */
32505
+ createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
32506
+ return localVarFp.createExposedServiceV1(instanceId, gPUV1ExposedServiceStoreRequest, options).then((request) => request(axios, basePath));
32507
+ },
32508
+ /**
32509
+ * 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.
32510
+ * @summary Delete exposed service
32511
+ * @param {number} instanceId GPU instance ID
32512
+ * @param {number} exposedServiceId Exposed service ID
32513
+ * @param {*} [options] Override http request option.
32514
+ * @throws {RequiredError}
32515
+ */
32516
+ deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
32517
+ return localVarFp.deleteExposedServiceV1(instanceId, exposedServiceId, options).then((request) => request(axios, basePath));
32518
+ },
32519
+ /**
32520
+ * 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.
32521
+ * @summary Get exposed services
32522
+ * @param {number} instanceId GPU instance ID
32523
+ * @param {*} [options] Override http request option.
32524
+ * @throws {RequiredError}
32525
+ */
32526
+ getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>> {
32527
+ return localVarFp.getExposedServicesV1(instanceId, options).then((request) => request(axios, basePath));
32528
+ },
32529
+ };
32530
+ };
32531
+
32532
+ /**
32533
+ * GPUExposedServicesApi - object-oriented interface
32534
+ * @export
32535
+ * @class GPUExposedServicesApi
32536
+ * @extends {BaseAPI}
32537
+ */
32538
+ export class GPUExposedServicesApi extends BaseAPI {
32539
+ /**
32540
+ * 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.
32541
+ * @summary Create exposed service
32542
+ * @param {number} instanceId GPU instance ID
32543
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
32544
+ * @param {*} [options] Override http request option.
32545
+ * @throws {RequiredError}
32546
+ * @memberof GPUExposedServicesApi
32547
+ */
32548
+ public createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig) {
32549
+ return GPUExposedServicesApiFp(this.configuration).createExposedServiceV1(instanceId, gPUV1ExposedServiceStoreRequest, options).then((request) => request(this.axios, this.basePath));
32550
+ }
32551
+
32552
+ /**
32553
+ * 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.
32554
+ * @summary Delete exposed service
32555
+ * @param {number} instanceId GPU instance ID
32556
+ * @param {number} exposedServiceId Exposed service ID
32557
+ * @param {*} [options] Override http request option.
32558
+ * @throws {RequiredError}
32559
+ * @memberof GPUExposedServicesApi
32560
+ */
32561
+ public deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig) {
32562
+ return GPUExposedServicesApiFp(this.configuration).deleteExposedServiceV1(instanceId, exposedServiceId, options).then((request) => request(this.axios, this.basePath));
32563
+ }
32564
+
32565
+ /**
32566
+ * 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.
32567
+ * @summary Get exposed services
32568
+ * @param {number} instanceId GPU instance ID
32569
+ * @param {*} [options] Override http request option.
32570
+ * @throws {RequiredError}
32571
+ * @memberof GPUExposedServicesApi
32572
+ */
32573
+ public getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig) {
32574
+ return GPUExposedServicesApiFp(this.configuration).getExposedServicesV1(instanceId, options).then((request) => request(this.axios, this.basePath));
32575
+ }
32576
+ }
32577
+
32578
+
32579
+
32140
32580
  /**
32141
32581
  * GPUInstancesApi - axios parameter creator
32142
32582
  * @export
@@ -45277,6 +45717,96 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration?: Conf
45277
45717
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45278
45718
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45279
45719
 
45720
+ return {
45721
+ url: toPathString(localVarUrlObj),
45722
+ options: localVarRequestOptions,
45723
+ };
45724
+ },
45725
+ /**
45726
+ * 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.
45727
+ * @summary Send campaign
45728
+ * @param {string} profileUuid Profile uuid parameter
45729
+ * @param {string} campaignUuid Campaign uuid parameter
45730
+ * @param {*} [options] Override http request option.
45731
+ * @throws {RequiredError}
45732
+ */
45733
+ sendCampaignV1: async (profileUuid: string, campaignUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45734
+ // verify required parameter 'profileUuid' is not null or undefined
45735
+ assertParamExists('sendCampaignV1', 'profileUuid', profileUuid)
45736
+ // verify required parameter 'campaignUuid' is not null or undefined
45737
+ assertParamExists('sendCampaignV1', 'campaignUuid', campaignUuid)
45738
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/send`
45739
+ .replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
45740
+ .replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
45741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45743
+ let baseOptions;
45744
+ if (configuration) {
45745
+ baseOptions = configuration.baseOptions;
45746
+ }
45747
+
45748
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
45749
+ const localVarHeaderParameter = {} as any;
45750
+ const localVarQueryParameter = {} as any;
45751
+
45752
+ // authentication apiToken required
45753
+ // http bearer authentication required
45754
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45755
+
45756
+
45757
+
45758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45760
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45761
+
45762
+ return {
45763
+ url: toPathString(localVarUrlObj),
45764
+ options: localVarRequestOptions,
45765
+ };
45766
+ },
45767
+ /**
45768
+ * 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.
45769
+ * @summary Update campaign
45770
+ * @param {string} profileUuid Profile uuid parameter
45771
+ * @param {string} campaignUuid Campaign uuid parameter
45772
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45773
+ * @param {*} [options] Override http request option.
45774
+ * @throws {RequiredError}
45775
+ */
45776
+ updateCampaignV1: async (profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45777
+ // verify required parameter 'profileUuid' is not null or undefined
45778
+ assertParamExists('updateCampaignV1', 'profileUuid', profileUuid)
45779
+ // verify required parameter 'campaignUuid' is not null or undefined
45780
+ assertParamExists('updateCampaignV1', 'campaignUuid', campaignUuid)
45781
+ // verify required parameter 'reachV1CampaignsUpdateRequest' is not null or undefined
45782
+ assertParamExists('updateCampaignV1', 'reachV1CampaignsUpdateRequest', reachV1CampaignsUpdateRequest)
45783
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}`
45784
+ .replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
45785
+ .replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
45786
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45787
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45788
+ let baseOptions;
45789
+ if (configuration) {
45790
+ baseOptions = configuration.baseOptions;
45791
+ }
45792
+
45793
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
45794
+ const localVarHeaderParameter = {} as any;
45795
+ const localVarQueryParameter = {} as any;
45796
+
45797
+ // authentication apiToken required
45798
+ // http bearer authentication required
45799
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45800
+
45801
+
45802
+
45803
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45804
+
45805
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45806
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45807
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45808
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1CampaignsUpdateRequest, localVarRequestOptions, configuration)
45809
+
45280
45810
  return {
45281
45811
  url: toPathString(localVarUrlObj),
45282
45812
  options: localVarRequestOptions,
@@ -45348,6 +45878,33 @@ export const ReachCampaignsApiFp = function(configuration?: Configuration) {
45348
45878
  const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.listCampaignsV1']?.[0]?.url;
45349
45879
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45350
45880
  },
45881
+ /**
45882
+ * 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.
45883
+ * @summary Send campaign
45884
+ * @param {string} profileUuid Profile uuid parameter
45885
+ * @param {string} campaignUuid Campaign uuid parameter
45886
+ * @param {*} [options] Override http request option.
45887
+ * @throws {RequiredError}
45888
+ */
45889
+ async sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
45890
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendCampaignV1(profileUuid, campaignUuid, options);
45891
+ const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.sendCampaignV1']?.[0]?.url;
45892
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45893
+ },
45894
+ /**
45895
+ * 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.
45896
+ * @summary Update campaign
45897
+ * @param {string} profileUuid Profile uuid parameter
45898
+ * @param {string} campaignUuid Campaign uuid parameter
45899
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45900
+ * @param {*} [options] Override http request option.
45901
+ * @throws {RequiredError}
45902
+ */
45903
+ async updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1CampaignsCreatedCampaignResource>> {
45904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options);
45905
+ const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.updateCampaignV1']?.[0]?.url;
45906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45907
+ },
45351
45908
  }
45352
45909
  };
45353
45910
 
@@ -45406,6 +45963,29 @@ export const ReachCampaignsApiFactory = function (configuration?: Configuration,
45406
45963
  listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListCampaignsV1200Response> {
45407
45964
  return localVarFp.listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(axios, basePath));
45408
45965
  },
45966
+ /**
45967
+ * 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.
45968
+ * @summary Send campaign
45969
+ * @param {string} profileUuid Profile uuid parameter
45970
+ * @param {string} campaignUuid Campaign uuid parameter
45971
+ * @param {*} [options] Override http request option.
45972
+ * @throws {RequiredError}
45973
+ */
45974
+ sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
45975
+ return localVarFp.sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(axios, basePath));
45976
+ },
45977
+ /**
45978
+ * 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.
45979
+ * @summary Update campaign
45980
+ * @param {string} profileUuid Profile uuid parameter
45981
+ * @param {string} campaignUuid Campaign uuid parameter
45982
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45983
+ * @param {*} [options] Override http request option.
45984
+ * @throws {RequiredError}
45985
+ */
45986
+ updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1CampaignsCreatedCampaignResource> {
45987
+ return localVarFp.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(axios, basePath));
45988
+ },
45409
45989
  };
45410
45990
  };
45411
45991
 
@@ -45471,6 +46051,33 @@ export class ReachCampaignsApi extends BaseAPI {
45471
46051
  public listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
45472
46052
  return ReachCampaignsApiFp(this.configuration).listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(this.axios, this.basePath));
45473
46053
  }
46054
+
46055
+ /**
46056
+ * 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.
46057
+ * @summary Send campaign
46058
+ * @param {string} profileUuid Profile uuid parameter
46059
+ * @param {string} campaignUuid Campaign uuid parameter
46060
+ * @param {*} [options] Override http request option.
46061
+ * @throws {RequiredError}
46062
+ * @memberof ReachCampaignsApi
46063
+ */
46064
+ public sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig) {
46065
+ return ReachCampaignsApiFp(this.configuration).sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(this.axios, this.basePath));
46066
+ }
46067
+
46068
+ /**
46069
+ * 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.
46070
+ * @summary Update campaign
46071
+ * @param {string} profileUuid Profile uuid parameter
46072
+ * @param {string} campaignUuid Campaign uuid parameter
46073
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
46074
+ * @param {*} [options] Override http request option.
46075
+ * @throws {RequiredError}
46076
+ * @memberof ReachCampaignsApi
46077
+ */
46078
+ public updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig) {
46079
+ return ReachCampaignsApiFp(this.configuration).updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
46080
+ }
45474
46081
  }
45475
46082
 
45476
46083
  /**