hostinger-api-sdk 0.0.19 → 0.0.20

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.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1179 -38
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +746 -8
  7. package/dist/api.js +763 -5
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +746 -8
  15. package/dist/esm/api.js +742 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommercePaymentsApi.md +66 -0
  27. package/docs/EcommerceProductsApi.md +125 -0
  28. package/docs/EcommerceShippingApi.md +66 -0
  29. package/docs/EcommerceStoresApi.md +54 -0
  30. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  31. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  32. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  33. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  34. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  35. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  36. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  37. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  38. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  39. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  40. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  41. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  42. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  43. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  44. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  45. package/docs/HorizonsWebsitesApi.md +117 -0
  46. package/docs/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
  47. package/docs/ReachSegmentsApi.md +65 -2
  48. package/index.ts +1 -1
  49. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.18.2
6
+ * API Version: 0.19.2
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
@@ -134,6 +134,10 @@ export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
134
134
  Individual: 'individual',
135
135
  Organization: 'organization'
136
136
  };
137
+ export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
138
+ Physical: 'physical',
139
+ Digital: 'digital'
140
+ };
137
141
  export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
138
142
  Builder: 'builder',
139
143
  Horizons: 'horizons',
@@ -145,6 +149,9 @@ export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
145
149
  export const EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
146
150
  Custom: 'custom'
147
151
  };
152
+ export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
153
+ Text: 'text'
154
+ };
148
155
  export const HostingV1DomainsParkedDomainResourceTypeEnum = {
149
156
  Domain: 'domain',
150
157
  Ip: 'ip'
@@ -3009,6 +3016,412 @@ export class DomainsWHOISApi extends BaseAPI {
3009
3016
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
3010
3017
  }
3011
3018
  }
3019
+ /**
3020
+ * EcommercePaymentsApi - axios parameter creator
3021
+ * @export
3022
+ */
3023
+ export const EcommercePaymentsApiAxiosParamCreator = function (configuration) {
3024
+ return {
3025
+ /**
3026
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3027
+ * @summary Enable manual payment method
3028
+ * @param {string} storeId The ID of the store to enable manual payment for.
3029
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ */
3033
+ enableManualPaymentMethodV1: (storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1PaymentEnableManualPaymentRequest, options = {}) {
3034
+ // verify required parameter 'storeId' is not null or undefined
3035
+ assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId);
3036
+ // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
3037
+ assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest);
3038
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
3039
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3042
+ let baseOptions;
3043
+ if (configuration) {
3044
+ baseOptions = configuration.baseOptions;
3045
+ }
3046
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3047
+ const localVarHeaderParameter = {};
3048
+ const localVarQueryParameter = {};
3049
+ // authentication apiToken required
3050
+ // http bearer authentication required
3051
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3052
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3055
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3056
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration);
3057
+ return {
3058
+ url: toPathString(localVarUrlObj),
3059
+ options: localVarRequestOptions,
3060
+ };
3061
+ }),
3062
+ };
3063
+ };
3064
+ /**
3065
+ * EcommercePaymentsApi - functional programming interface
3066
+ * @export
3067
+ */
3068
+ export const EcommercePaymentsApiFp = function (configuration) {
3069
+ const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration);
3070
+ return {
3071
+ /**
3072
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3073
+ * @summary Enable manual payment method
3074
+ * @param {string} storeId The ID of the store to enable manual payment for.
3075
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3076
+ * @param {*} [options] Override http request option.
3077
+ * @throws {RequiredError}
3078
+ */
3079
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3080
+ return __awaiter(this, void 0, void 0, function* () {
3081
+ var _a, _b;
3082
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
3083
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3084
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3085
+ });
3086
+ },
3087
+ };
3088
+ };
3089
+ /**
3090
+ * EcommercePaymentsApi - factory interface
3091
+ * @export
3092
+ */
3093
+ export const EcommercePaymentsApiFactory = function (configuration, basePath, axios) {
3094
+ const localVarFp = EcommercePaymentsApiFp(configuration);
3095
+ return {
3096
+ /**
3097
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3098
+ * @summary Enable manual payment method
3099
+ * @param {string} storeId The ID of the store to enable manual payment for.
3100
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3101
+ * @param {*} [options] Override http request option.
3102
+ * @throws {RequiredError}
3103
+ */
3104
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3105
+ return localVarFp.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(axios, basePath));
3106
+ },
3107
+ };
3108
+ };
3109
+ /**
3110
+ * EcommercePaymentsApi - object-oriented interface
3111
+ * @export
3112
+ * @class EcommercePaymentsApi
3113
+ * @extends {BaseAPI}
3114
+ */
3115
+ export class EcommercePaymentsApi extends BaseAPI {
3116
+ /**
3117
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3118
+ * @summary Enable manual payment method
3119
+ * @param {string} storeId The ID of the store to enable manual payment for.
3120
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3121
+ * @param {*} [options] Override http request option.
3122
+ * @throws {RequiredError}
3123
+ * @memberof EcommercePaymentsApi
3124
+ */
3125
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3126
+ return EcommercePaymentsApiFp(this.configuration).enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(this.axios, this.basePath));
3127
+ }
3128
+ }
3129
+ /**
3130
+ * EcommerceProductsApi - axios parameter creator
3131
+ * @export
3132
+ */
3133
+ export const EcommerceProductsApiAxiosParamCreator = function (configuration) {
3134
+ return {
3135
+ /**
3136
+ * Create a published digital product with a single variant and an optional external download link.
3137
+ * @summary Create digital product
3138
+ * @param {string} storeId The ID of the store to create the product in.
3139
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3140
+ * @param {*} [options] Override http request option.
3141
+ * @throws {RequiredError}
3142
+ */
3143
+ createDigitalProductV1: (storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreateDigitalProductRequest, options = {}) {
3144
+ // verify required parameter 'storeId' is not null or undefined
3145
+ assertParamExists('createDigitalProductV1', 'storeId', storeId);
3146
+ // verify required parameter 'ecommerceV1ProductCreateDigitalProductRequest' is not null or undefined
3147
+ assertParamExists('createDigitalProductV1', 'ecommerceV1ProductCreateDigitalProductRequest', ecommerceV1ProductCreateDigitalProductRequest);
3148
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/digital`
3149
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3152
+ let baseOptions;
3153
+ if (configuration) {
3154
+ baseOptions = configuration.baseOptions;
3155
+ }
3156
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3157
+ const localVarHeaderParameter = {};
3158
+ const localVarQueryParameter = {};
3159
+ // authentication apiToken required
3160
+ // http bearer authentication required
3161
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3162
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3166
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreateDigitalProductRequest, localVarRequestOptions, configuration);
3167
+ return {
3168
+ url: toPathString(localVarUrlObj),
3169
+ options: localVarRequestOptions,
3170
+ };
3171
+ }),
3172
+ /**
3173
+ * Create a published physical product with a single variant priced in the store currency.
3174
+ * @summary Create physical product
3175
+ * @param {string} storeId The ID of the store to create the product in.
3176
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3177
+ * @param {*} [options] Override http request option.
3178
+ * @throws {RequiredError}
3179
+ */
3180
+ createPhysicalProductV1: (storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreatePhysicalProductRequest, options = {}) {
3181
+ // verify required parameter 'storeId' is not null or undefined
3182
+ assertParamExists('createPhysicalProductV1', 'storeId', storeId);
3183
+ // verify required parameter 'ecommerceV1ProductCreatePhysicalProductRequest' is not null or undefined
3184
+ assertParamExists('createPhysicalProductV1', 'ecommerceV1ProductCreatePhysicalProductRequest', ecommerceV1ProductCreatePhysicalProductRequest);
3185
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/physical`
3186
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3189
+ let baseOptions;
3190
+ if (configuration) {
3191
+ baseOptions = configuration.baseOptions;
3192
+ }
3193
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3194
+ const localVarHeaderParameter = {};
3195
+ const localVarQueryParameter = {};
3196
+ // authentication apiToken required
3197
+ // http bearer authentication required
3198
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3203
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration);
3204
+ return {
3205
+ url: toPathString(localVarUrlObj),
3206
+ options: localVarRequestOptions,
3207
+ };
3208
+ }),
3209
+ };
3210
+ };
3211
+ /**
3212
+ * EcommerceProductsApi - functional programming interface
3213
+ * @export
3214
+ */
3215
+ export const EcommerceProductsApiFp = function (configuration) {
3216
+ const localVarAxiosParamCreator = EcommerceProductsApiAxiosParamCreator(configuration);
3217
+ return {
3218
+ /**
3219
+ * Create a published digital product with a single variant and an optional external download link.
3220
+ * @summary Create digital product
3221
+ * @param {string} storeId The ID of the store to create the product in.
3222
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3223
+ * @param {*} [options] Override http request option.
3224
+ * @throws {RequiredError}
3225
+ */
3226
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3227
+ return __awaiter(this, void 0, void 0, function* () {
3228
+ var _a, _b;
3229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options);
3230
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceProductsApi.createDigitalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3231
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3232
+ });
3233
+ },
3234
+ /**
3235
+ * Create a published physical product with a single variant priced in the store currency.
3236
+ * @summary Create physical product
3237
+ * @param {string} storeId The ID of the store to create the product in.
3238
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ */
3242
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3243
+ return __awaiter(this, void 0, void 0, function* () {
3244
+ var _a, _b;
3245
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options);
3246
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceProductsApi.createPhysicalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3247
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3248
+ });
3249
+ },
3250
+ };
3251
+ };
3252
+ /**
3253
+ * EcommerceProductsApi - factory interface
3254
+ * @export
3255
+ */
3256
+ export const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
3257
+ const localVarFp = EcommerceProductsApiFp(configuration);
3258
+ return {
3259
+ /**
3260
+ * Create a published digital product with a single variant and an optional external download link.
3261
+ * @summary Create digital product
3262
+ * @param {string} storeId The ID of the store to create the product in.
3263
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3264
+ * @param {*} [options] Override http request option.
3265
+ * @throws {RequiredError}
3266
+ */
3267
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3268
+ return localVarFp.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(axios, basePath));
3269
+ },
3270
+ /**
3271
+ * Create a published physical product with a single variant priced in the store currency.
3272
+ * @summary Create physical product
3273
+ * @param {string} storeId The ID of the store to create the product in.
3274
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3275
+ * @param {*} [options] Override http request option.
3276
+ * @throws {RequiredError}
3277
+ */
3278
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3279
+ return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
3280
+ },
3281
+ };
3282
+ };
3283
+ /**
3284
+ * EcommerceProductsApi - object-oriented interface
3285
+ * @export
3286
+ * @class EcommerceProductsApi
3287
+ * @extends {BaseAPI}
3288
+ */
3289
+ export class EcommerceProductsApi extends BaseAPI {
3290
+ /**
3291
+ * Create a published digital product with a single variant and an optional external download link.
3292
+ * @summary Create digital product
3293
+ * @param {string} storeId The ID of the store to create the product in.
3294
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3295
+ * @param {*} [options] Override http request option.
3296
+ * @throws {RequiredError}
3297
+ * @memberof EcommerceProductsApi
3298
+ */
3299
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3300
+ return EcommerceProductsApiFp(this.configuration).createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(this.axios, this.basePath));
3301
+ }
3302
+ /**
3303
+ * Create a published physical product with a single variant priced in the store currency.
3304
+ * @summary Create physical product
3305
+ * @param {string} storeId The ID of the store to create the product in.
3306
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3307
+ * @param {*} [options] Override http request option.
3308
+ * @throws {RequiredError}
3309
+ * @memberof EcommerceProductsApi
3310
+ */
3311
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3312
+ return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
3313
+ }
3314
+ }
3315
+ /**
3316
+ * EcommerceShippingApi - axios parameter creator
3317
+ * @export
3318
+ */
3319
+ export const EcommerceShippingApiAxiosParamCreator = function (configuration) {
3320
+ return {
3321
+ /**
3322
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3323
+ * @summary Set store shipping
3324
+ * @param {string} storeId The ID of the store to configure shipping for.
3325
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3326
+ * @param {*} [options] Override http request option.
3327
+ * @throws {RequiredError}
3328
+ */
3329
+ setStoreShippingV1: (storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ShippingSetShippingRequest, options = {}) {
3330
+ // verify required parameter 'storeId' is not null or undefined
3331
+ assertParamExists('setStoreShippingV1', 'storeId', storeId);
3332
+ // verify required parameter 'ecommerceV1ShippingSetShippingRequest' is not null or undefined
3333
+ assertParamExists('setStoreShippingV1', 'ecommerceV1ShippingSetShippingRequest', ecommerceV1ShippingSetShippingRequest);
3334
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/shipping`
3335
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3337
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3338
+ let baseOptions;
3339
+ if (configuration) {
3340
+ baseOptions = configuration.baseOptions;
3341
+ }
3342
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3343
+ const localVarHeaderParameter = {};
3344
+ const localVarQueryParameter = {};
3345
+ // authentication apiToken required
3346
+ // http bearer authentication required
3347
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3351
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3352
+ localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ShippingSetShippingRequest, localVarRequestOptions, configuration);
3353
+ return {
3354
+ url: toPathString(localVarUrlObj),
3355
+ options: localVarRequestOptions,
3356
+ };
3357
+ }),
3358
+ };
3359
+ };
3360
+ /**
3361
+ * EcommerceShippingApi - functional programming interface
3362
+ * @export
3363
+ */
3364
+ export const EcommerceShippingApiFp = function (configuration) {
3365
+ const localVarAxiosParamCreator = EcommerceShippingApiAxiosParamCreator(configuration);
3366
+ return {
3367
+ /**
3368
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3369
+ * @summary Set store shipping
3370
+ * @param {string} storeId The ID of the store to configure shipping for.
3371
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3372
+ * @param {*} [options] Override http request option.
3373
+ * @throws {RequiredError}
3374
+ */
3375
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3376
+ return __awaiter(this, void 0, void 0, function* () {
3377
+ var _a, _b;
3378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options);
3379
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceShippingApi.setStoreShippingV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3380
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3381
+ });
3382
+ },
3383
+ };
3384
+ };
3385
+ /**
3386
+ * EcommerceShippingApi - factory interface
3387
+ * @export
3388
+ */
3389
+ export const EcommerceShippingApiFactory = function (configuration, basePath, axios) {
3390
+ const localVarFp = EcommerceShippingApiFp(configuration);
3391
+ return {
3392
+ /**
3393
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3394
+ * @summary Set store shipping
3395
+ * @param {string} storeId The ID of the store to configure shipping for.
3396
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3397
+ * @param {*} [options] Override http request option.
3398
+ * @throws {RequiredError}
3399
+ */
3400
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3401
+ return localVarFp.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(axios, basePath));
3402
+ },
3403
+ };
3404
+ };
3405
+ /**
3406
+ * EcommerceShippingApi - object-oriented interface
3407
+ * @export
3408
+ * @class EcommerceShippingApi
3409
+ * @extends {BaseAPI}
3410
+ */
3411
+ export class EcommerceShippingApi extends BaseAPI {
3412
+ /**
3413
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3414
+ * @summary Set store shipping
3415
+ * @param {string} storeId The ID of the store to configure shipping for.
3416
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3417
+ * @param {*} [options] Override http request option.
3418
+ * @throws {RequiredError}
3419
+ * @memberof EcommerceShippingApi
3420
+ */
3421
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3422
+ return EcommerceShippingApiFp(this.configuration).setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(this.axios, this.basePath));
3423
+ }
3424
+ }
3012
3425
  /**
3013
3426
  * EcommerceStoresApi - axios parameter creator
3014
3427
  * @export
@@ -3048,6 +3461,38 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3048
3461
  options: localVarRequestOptions,
3049
3462
  };
3050
3463
  }),
3464
+ /**
3465
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3466
+ * @summary Delete store
3467
+ * @param {string} storeId The ID of the store to delete.
3468
+ * @param {*} [options] Override http request option.
3469
+ * @throws {RequiredError}
3470
+ */
3471
+ deleteStoreV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3472
+ // verify required parameter 'storeId' is not null or undefined
3473
+ assertParamExists('deleteStoreV1', 'storeId', storeId);
3474
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}`
3475
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3478
+ let baseOptions;
3479
+ if (configuration) {
3480
+ baseOptions = configuration.baseOptions;
3481
+ }
3482
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3483
+ const localVarHeaderParameter = {};
3484
+ const localVarQueryParameter = {};
3485
+ // authentication apiToken required
3486
+ // http bearer authentication required
3487
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3488
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3489
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3490
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3491
+ return {
3492
+ url: toPathString(localVarUrlObj),
3493
+ options: localVarRequestOptions,
3494
+ };
3495
+ }),
3051
3496
  /**
3052
3497
  * Retrieve the stores associated with your account.
3053
3498
  * @summary Get stores
@@ -3104,6 +3549,21 @@ export const EcommerceStoresApiFp = function (configuration) {
3104
3549
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3105
3550
  });
3106
3551
  },
3552
+ /**
3553
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3554
+ * @summary Delete store
3555
+ * @param {string} storeId The ID of the store to delete.
3556
+ * @param {*} [options] Override http request option.
3557
+ * @throws {RequiredError}
3558
+ */
3559
+ deleteStoreV1(storeId, options) {
3560
+ return __awaiter(this, void 0, void 0, function* () {
3561
+ var _a, _b;
3562
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteStoreV1(storeId, options);
3563
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.deleteStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3565
+ });
3566
+ },
3107
3567
  /**
3108
3568
  * Retrieve the stores associated with your account.
3109
3569
  * @summary Get stores
@@ -3138,6 +3598,16 @@ export const EcommerceStoresApiFactory = function (configuration, basePath, axio
3138
3598
  createStoreV1(ecommerceV1StoreStoreRequest, options) {
3139
3599
  return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
3140
3600
  },
3601
+ /**
3602
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3603
+ * @summary Delete store
3604
+ * @param {string} storeId The ID of the store to delete.
3605
+ * @param {*} [options] Override http request option.
3606
+ * @throws {RequiredError}
3607
+ */
3608
+ deleteStoreV1(storeId, options) {
3609
+ return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
3610
+ },
3141
3611
  /**
3142
3612
  * Retrieve the stores associated with your account.
3143
3613
  * @summary Get stores
@@ -3168,6 +3638,17 @@ export class EcommerceStoresApi extends BaseAPI {
3168
3638
  createStoreV1(ecommerceV1StoreStoreRequest, options) {
3169
3639
  return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
3170
3640
  }
3641
+ /**
3642
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3643
+ * @summary Delete store
3644
+ * @param {string} storeId The ID of the store to delete.
3645
+ * @param {*} [options] Override http request option.
3646
+ * @throws {RequiredError}
3647
+ * @memberof EcommerceStoresApi
3648
+ */
3649
+ deleteStoreV1(storeId, options) {
3650
+ return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
3651
+ }
3171
3652
  /**
3172
3653
  * Retrieve the stores associated with your account.
3173
3654
  * @summary Get stores
@@ -3180,6 +3661,177 @@ export class EcommerceStoresApi extends BaseAPI {
3180
3661
  return EcommerceStoresApiFp(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
3181
3662
  }
3182
3663
  }
3664
+ /**
3665
+ * HorizonsWebsitesApi - axios parameter creator
3666
+ * @export
3667
+ */
3668
+ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
3669
+ return {
3670
+ /**
3671
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3672
+ * @summary Create website
3673
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3674
+ * @param {*} [options] Override http request option.
3675
+ * @throws {RequiredError}
3676
+ */
3677
+ createWebsiteV1: (horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (horizonsV1WebsitesCreateWebsiteRequest, options = {}) {
3678
+ // verify required parameter 'horizonsV1WebsitesCreateWebsiteRequest' is not null or undefined
3679
+ assertParamExists('createWebsiteV1', 'horizonsV1WebsitesCreateWebsiteRequest', horizonsV1WebsitesCreateWebsiteRequest);
3680
+ const localVarPath = `/api/horizons/v1/websites`;
3681
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3682
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3683
+ let baseOptions;
3684
+ if (configuration) {
3685
+ baseOptions = configuration.baseOptions;
3686
+ }
3687
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3688
+ const localVarHeaderParameter = {};
3689
+ const localVarQueryParameter = {};
3690
+ // authentication apiToken required
3691
+ // http bearer authentication required
3692
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3693
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3694
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3696
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3697
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration);
3698
+ return {
3699
+ url: toPathString(localVarUrlObj),
3700
+ options: localVarRequestOptions,
3701
+ };
3702
+ }),
3703
+ /**
3704
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3705
+ * @summary Get website
3706
+ * @param {string} websiteId The website ID
3707
+ * @param {*} [options] Override http request option.
3708
+ * @throws {RequiredError}
3709
+ */
3710
+ getWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
3711
+ // verify required parameter 'websiteId' is not null or undefined
3712
+ assertParamExists('getWebsiteV1', 'websiteId', websiteId);
3713
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}`
3714
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
3715
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3716
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3717
+ let baseOptions;
3718
+ if (configuration) {
3719
+ baseOptions = configuration.baseOptions;
3720
+ }
3721
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3722
+ const localVarHeaderParameter = {};
3723
+ const localVarQueryParameter = {};
3724
+ // authentication apiToken required
3725
+ // http bearer authentication required
3726
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3727
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3729
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3730
+ return {
3731
+ url: toPathString(localVarUrlObj),
3732
+ options: localVarRequestOptions,
3733
+ };
3734
+ }),
3735
+ };
3736
+ };
3737
+ /**
3738
+ * HorizonsWebsitesApi - functional programming interface
3739
+ * @export
3740
+ */
3741
+ export const HorizonsWebsitesApiFp = function (configuration) {
3742
+ const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration);
3743
+ return {
3744
+ /**
3745
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3746
+ * @summary Create website
3747
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3748
+ * @param {*} [options] Override http request option.
3749
+ * @throws {RequiredError}
3750
+ */
3751
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3752
+ return __awaiter(this, void 0, void 0, function* () {
3753
+ var _a, _b;
3754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options);
3755
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.createWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3757
+ });
3758
+ },
3759
+ /**
3760
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3761
+ * @summary Get website
3762
+ * @param {string} websiteId The website ID
3763
+ * @param {*} [options] Override http request option.
3764
+ * @throws {RequiredError}
3765
+ */
3766
+ getWebsiteV1(websiteId, options) {
3767
+ return __awaiter(this, void 0, void 0, function* () {
3768
+ var _a, _b;
3769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteV1(websiteId, options);
3770
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.getWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3772
+ });
3773
+ },
3774
+ };
3775
+ };
3776
+ /**
3777
+ * HorizonsWebsitesApi - factory interface
3778
+ * @export
3779
+ */
3780
+ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axios) {
3781
+ const localVarFp = HorizonsWebsitesApiFp(configuration);
3782
+ return {
3783
+ /**
3784
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3785
+ * @summary Create website
3786
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3787
+ * @param {*} [options] Override http request option.
3788
+ * @throws {RequiredError}
3789
+ */
3790
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3791
+ return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
3792
+ },
3793
+ /**
3794
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3795
+ * @summary Get website
3796
+ * @param {string} websiteId The website ID
3797
+ * @param {*} [options] Override http request option.
3798
+ * @throws {RequiredError}
3799
+ */
3800
+ getWebsiteV1(websiteId, options) {
3801
+ return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
3802
+ },
3803
+ };
3804
+ };
3805
+ /**
3806
+ * HorizonsWebsitesApi - object-oriented interface
3807
+ * @export
3808
+ * @class HorizonsWebsitesApi
3809
+ * @extends {BaseAPI}
3810
+ */
3811
+ export class HorizonsWebsitesApi extends BaseAPI {
3812
+ /**
3813
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3814
+ * @summary Create website
3815
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3816
+ * @param {*} [options] Override http request option.
3817
+ * @throws {RequiredError}
3818
+ * @memberof HorizonsWebsitesApi
3819
+ */
3820
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3821
+ return HorizonsWebsitesApiFp(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
3822
+ }
3823
+ /**
3824
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3825
+ * @summary Get website
3826
+ * @param {string} websiteId The website ID
3827
+ * @param {*} [options] Override http request option.
3828
+ * @throws {RequiredError}
3829
+ * @memberof HorizonsWebsitesApi
3830
+ */
3831
+ getWebsiteV1(websiteId, options) {
3832
+ return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
3833
+ }
3834
+ }
3183
3835
  /**
3184
3836
  * HostingDatabasesApi - axios parameter creator
3185
3837
  * @export
@@ -5869,6 +6521,50 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
5869
6521
  options: localVarRequestOptions,
5870
6522
  };
5871
6523
  }),
6524
+ /**
6525
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6526
+ * @summary List profile segment contacts
6527
+ * @param {string} profileUuid Profile uuid parameter
6528
+ * @param {string} segmentUuid Segment uuid parameter
6529
+ * @param {number} [page] Page number
6530
+ * @param {number} [perPage] Number of items per page
6531
+ * @param {*} [options] Override http request option.
6532
+ * @throws {RequiredError}
6533
+ */
6534
+ listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
6535
+ // verify required parameter 'profileUuid' is not null or undefined
6536
+ assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
6537
+ // verify required parameter 'segmentUuid' is not null or undefined
6538
+ assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
6539
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
6540
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
6541
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
6542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6544
+ let baseOptions;
6545
+ if (configuration) {
6546
+ baseOptions = configuration.baseOptions;
6547
+ }
6548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6549
+ const localVarHeaderParameter = {};
6550
+ const localVarQueryParameter = {};
6551
+ // authentication apiToken required
6552
+ // http bearer authentication required
6553
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6554
+ if (page !== undefined) {
6555
+ localVarQueryParameter['page'] = page;
6556
+ }
6557
+ if (perPage !== undefined) {
6558
+ localVarQueryParameter['per_page'] = perPage;
6559
+ }
6560
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6562
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6563
+ return {
6564
+ url: toPathString(localVarUrlObj),
6565
+ options: localVarRequestOptions,
6566
+ };
6567
+ }),
5872
6568
  /**
5873
6569
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
5874
6570
  * @summary List segment contacts
@@ -5976,6 +6672,24 @@ export const ReachSegmentsApiFp = function (configuration) {
5976
6672
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5977
6673
  });
5978
6674
  },
6675
+ /**
6676
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6677
+ * @summary List profile segment contacts
6678
+ * @param {string} profileUuid Profile uuid parameter
6679
+ * @param {string} segmentUuid Segment uuid parameter
6680
+ * @param {number} [page] Page number
6681
+ * @param {number} [perPage] Number of items per page
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
6686
+ return __awaiter(this, void 0, void 0, function* () {
6687
+ var _a, _b;
6688
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
6689
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6691
+ });
6692
+ },
5979
6693
  /**
5980
6694
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
5981
6695
  * @summary List segment contacts
@@ -6036,6 +6750,19 @@ export const ReachSegmentsApiFactory = function (configuration, basePath, axios)
6036
6750
  getSegmentDetailsV1(segmentUuid, options) {
6037
6751
  return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
6038
6752
  },
6753
+ /**
6754
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6755
+ * @summary List profile segment contacts
6756
+ * @param {string} profileUuid Profile uuid parameter
6757
+ * @param {string} segmentUuid Segment uuid parameter
6758
+ * @param {number} [page] Page number
6759
+ * @param {number} [perPage] Number of items per page
6760
+ * @param {*} [options] Override http request option.
6761
+ * @throws {RequiredError}
6762
+ */
6763
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
6764
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
6765
+ },
6039
6766
  /**
6040
6767
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6041
6768
  * @summary List segment contacts
@@ -6088,6 +6815,20 @@ export class ReachSegmentsApi extends BaseAPI {
6088
6815
  getSegmentDetailsV1(segmentUuid, options) {
6089
6816
  return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
6090
6817
  }
6818
+ /**
6819
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6820
+ * @summary List profile segment contacts
6821
+ * @param {string} profileUuid Profile uuid parameter
6822
+ * @param {string} segmentUuid Segment uuid parameter
6823
+ * @param {number} [page] Page number
6824
+ * @param {number} [perPage] Number of items per page
6825
+ * @param {*} [options] Override http request option.
6826
+ * @throws {RequiredError}
6827
+ * @memberof ReachSegmentsApi
6828
+ */
6829
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
6830
+ return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
6831
+ }
6091
6832
  /**
6092
6833
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6093
6834
  * @summary List segment contacts