hostinger-api-sdk 1.68.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +324 -20
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +272 -21
- package/dist/api.js +127 -22
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +272 -21
- package/dist/esm/api.js +118 -13
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/EcommerceProductVariantsApi.md +1 -1
- package/docs/EcommerceProductsApi.md +1 -1
- package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +2 -0
- package/docs/EcommerceV1ProductCreatePhysicalProductRequestSeoSettings.md +25 -0
- package/docs/EcommerceV1ProductUpdateRequest.md +4 -0
- package/docs/EcommerceV1ProductUpdateRequestCollectionChanges.md +23 -0
- package/docs/EcommerceV1ProductUpdateRequestCollectionChangesAddInner.md +20 -0
- package/docs/EcommerceV1ProductUpdateRequestSeoSettings.md +25 -0
- package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner.md +2 -0
- package/docs/WordPressAIContentApi.md +70 -3
- package/docs/WordPressV1ContentGeneratedImageResource.md +27 -0
- package/docs/WordPressV1ContentGeneratedImagesResource.md +3 -3
- package/docs/WordPressV1ContentGenerationResource.md +27 -0
- package/docs/WordPressV1ContentGenerationResourceResult.md +23 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 2.1.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -5306,6 +5306,37 @@ export interface EcommerceV1ProductCreatePhysicalProductRequest {
|
|
|
5306
5306
|
* @memberof EcommerceV1ProductCreatePhysicalProductRequest
|
|
5307
5307
|
*/
|
|
5308
5308
|
'currency': string | null;
|
|
5309
|
+
/**
|
|
5310
|
+
*
|
|
5311
|
+
* @type {EcommerceV1ProductCreatePhysicalProductRequestSeoSettings}
|
|
5312
|
+
* @memberof EcommerceV1ProductCreatePhysicalProductRequest
|
|
5313
|
+
*/
|
|
5314
|
+
'seo_settings': EcommerceV1ProductCreatePhysicalProductRequestSeoSettings;
|
|
5315
|
+
}
|
|
5316
|
+
/**
|
|
5317
|
+
* Search-engine settings. Omitted fields are generated from the name and description; a slug already in use gets a numeric suffix. Send at least one field.
|
|
5318
|
+
* @export
|
|
5319
|
+
* @interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
|
|
5320
|
+
*/
|
|
5321
|
+
export interface EcommerceV1ProductCreatePhysicalProductRequestSeoSettings {
|
|
5322
|
+
/**
|
|
5323
|
+
* Search-engine title for the product page.
|
|
5324
|
+
* @type {string}
|
|
5325
|
+
* @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
|
|
5326
|
+
*/
|
|
5327
|
+
'title': string;
|
|
5328
|
+
/**
|
|
5329
|
+
* Search-engine description for the product page.
|
|
5330
|
+
* @type {string}
|
|
5331
|
+
* @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
|
|
5332
|
+
*/
|
|
5333
|
+
'description': string;
|
|
5334
|
+
/**
|
|
5335
|
+
* URL slug of the product page. Lowercase letters, digits and dashes.
|
|
5336
|
+
* @type {string}
|
|
5337
|
+
* @memberof EcommerceV1ProductCreatePhysicalProductRequestSeoSettings
|
|
5338
|
+
*/
|
|
5339
|
+
'slug': string;
|
|
5309
5340
|
}
|
|
5310
5341
|
/**
|
|
5311
5342
|
*
|
|
@@ -5713,6 +5744,18 @@ export interface EcommerceV1ProductUpdateRequest {
|
|
|
5713
5744
|
* @memberof EcommerceV1ProductUpdateRequest
|
|
5714
5745
|
*/
|
|
5715
5746
|
'status': EcommerceV1ProductUpdateRequestStatusEnum;
|
|
5747
|
+
/**
|
|
5748
|
+
*
|
|
5749
|
+
* @type {EcommerceV1ProductUpdateRequestSeoSettings}
|
|
5750
|
+
* @memberof EcommerceV1ProductUpdateRequest
|
|
5751
|
+
*/
|
|
5752
|
+
'seo_settings': EcommerceV1ProductUpdateRequestSeoSettings;
|
|
5753
|
+
/**
|
|
5754
|
+
*
|
|
5755
|
+
* @type {EcommerceV1ProductUpdateRequestCollectionChanges}
|
|
5756
|
+
* @memberof EcommerceV1ProductUpdateRequest
|
|
5757
|
+
*/
|
|
5758
|
+
'collection_changes': EcommerceV1ProductUpdateRequestCollectionChanges;
|
|
5716
5759
|
}
|
|
5717
5760
|
export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
|
|
5718
5761
|
readonly Draft: "draft";
|
|
@@ -5720,6 +5763,63 @@ export declare const EcommerceV1ProductUpdateRequestStatusEnum: {
|
|
|
5720
5763
|
readonly Archived: "archived";
|
|
5721
5764
|
};
|
|
5722
5765
|
export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1ProductUpdateRequestStatusEnum[keyof typeof EcommerceV1ProductUpdateRequestStatusEnum];
|
|
5766
|
+
/**
|
|
5767
|
+
* Adds the product to or removes it from collections without touching its other collections. Send at least one collection in add or remove.
|
|
5768
|
+
* @export
|
|
5769
|
+
* @interface EcommerceV1ProductUpdateRequestCollectionChanges
|
|
5770
|
+
*/
|
|
5771
|
+
export interface EcommerceV1ProductUpdateRequestCollectionChanges {
|
|
5772
|
+
/**
|
|
5773
|
+
* Collections to add the product to. Every id must exist in the store.
|
|
5774
|
+
* @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
|
|
5775
|
+
* @memberof EcommerceV1ProductUpdateRequestCollectionChanges
|
|
5776
|
+
*/
|
|
5777
|
+
'add': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
|
|
5778
|
+
/**
|
|
5779
|
+
* Collections to take the product out of. Ids the product is not in are ignored.
|
|
5780
|
+
* @type {Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>}
|
|
5781
|
+
* @memberof EcommerceV1ProductUpdateRequestCollectionChanges
|
|
5782
|
+
*/
|
|
5783
|
+
'remove': Array<EcommerceV1ProductUpdateRequestCollectionChangesAddInner>;
|
|
5784
|
+
}
|
|
5785
|
+
/**
|
|
5786
|
+
*
|
|
5787
|
+
* @export
|
|
5788
|
+
* @interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner
|
|
5789
|
+
*/
|
|
5790
|
+
export interface EcommerceV1ProductUpdateRequestCollectionChangesAddInner {
|
|
5791
|
+
/**
|
|
5792
|
+
* The collection id.
|
|
5793
|
+
* @type {string}
|
|
5794
|
+
* @memberof EcommerceV1ProductUpdateRequestCollectionChangesAddInner
|
|
5795
|
+
*/
|
|
5796
|
+
'id': string;
|
|
5797
|
+
}
|
|
5798
|
+
/**
|
|
5799
|
+
* Search-engine settings to change. Send at least one field; omitted fields keep their current values.
|
|
5800
|
+
* @export
|
|
5801
|
+
* @interface EcommerceV1ProductUpdateRequestSeoSettings
|
|
5802
|
+
*/
|
|
5803
|
+
export interface EcommerceV1ProductUpdateRequestSeoSettings {
|
|
5804
|
+
/**
|
|
5805
|
+
* Search-engine title for the product page.
|
|
5806
|
+
* @type {string}
|
|
5807
|
+
* @memberof EcommerceV1ProductUpdateRequestSeoSettings
|
|
5808
|
+
*/
|
|
5809
|
+
'title': string;
|
|
5810
|
+
/**
|
|
5811
|
+
* Search-engine description for the product page.
|
|
5812
|
+
* @type {string}
|
|
5813
|
+
* @memberof EcommerceV1ProductUpdateRequestSeoSettings
|
|
5814
|
+
*/
|
|
5815
|
+
'description': string;
|
|
5816
|
+
/**
|
|
5817
|
+
* URL slug of the product page. Lowercase letters, digits and dashes.
|
|
5818
|
+
* @type {string}
|
|
5819
|
+
* @memberof EcommerceV1ProductUpdateRequestSeoSettings
|
|
5820
|
+
*/
|
|
5821
|
+
'slug': string;
|
|
5822
|
+
}
|
|
5723
5823
|
/**
|
|
5724
5824
|
*
|
|
5725
5825
|
* @export
|
|
@@ -6366,6 +6466,12 @@ export interface EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner {
|
|
|
6366
6466
|
* @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
|
|
6367
6467
|
*/
|
|
6368
6468
|
'title': string;
|
|
6469
|
+
/**
|
|
6470
|
+
* The variant SKU.
|
|
6471
|
+
* @type {string}
|
|
6472
|
+
* @memberof EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner
|
|
6473
|
+
*/
|
|
6474
|
+
'sku': string;
|
|
6369
6475
|
/**
|
|
6370
6476
|
* Units in stock.
|
|
6371
6477
|
* @type {number}
|
|
@@ -16738,6 +16844,37 @@ export declare const WordPressV1ContentGenerateImagesRequestImageTypeEnum: {
|
|
|
16738
16844
|
readonly Logo: "logo";
|
|
16739
16845
|
};
|
|
16740
16846
|
export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
|
|
16847
|
+
/**
|
|
16848
|
+
* Single image generated by the AI image generator.
|
|
16849
|
+
* @export
|
|
16850
|
+
* @interface WordPressV1ContentGeneratedImageResource
|
|
16851
|
+
*/
|
|
16852
|
+
export interface WordPressV1ContentGeneratedImageResource {
|
|
16853
|
+
/**
|
|
16854
|
+
* Temporary URL of the generated image, valid until the `expires_at` time of the result
|
|
16855
|
+
* @type {string}
|
|
16856
|
+
* @memberof WordPressV1ContentGeneratedImageResource
|
|
16857
|
+
*/
|
|
16858
|
+
'url': string;
|
|
16859
|
+
/**
|
|
16860
|
+
* Image width in pixels
|
|
16861
|
+
* @type {number}
|
|
16862
|
+
* @memberof WordPressV1ContentGeneratedImageResource
|
|
16863
|
+
*/
|
|
16864
|
+
'width': number;
|
|
16865
|
+
/**
|
|
16866
|
+
* Image height in pixels
|
|
16867
|
+
* @type {number}
|
|
16868
|
+
* @memberof WordPressV1ContentGeneratedImageResource
|
|
16869
|
+
*/
|
|
16870
|
+
'height': number;
|
|
16871
|
+
/**
|
|
16872
|
+
* MIME type of the image
|
|
16873
|
+
* @type {string}
|
|
16874
|
+
* @memberof WordPressV1ContentGeneratedImageResource
|
|
16875
|
+
*/
|
|
16876
|
+
'content_type': string;
|
|
16877
|
+
}
|
|
16741
16878
|
/**
|
|
16742
16879
|
* Images generated by the AI image generator.
|
|
16743
16880
|
* @export
|
|
@@ -16745,17 +16882,78 @@ export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPr
|
|
|
16745
16882
|
*/
|
|
16746
16883
|
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16747
16884
|
/**
|
|
16748
|
-
* Generated images, each
|
|
16749
|
-
* @type {Array<
|
|
16885
|
+
* Generated images, each available at a temporary URL
|
|
16886
|
+
* @type {Array<WordPressV1ContentGeneratedImageResource>}
|
|
16750
16887
|
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16751
16888
|
*/
|
|
16752
|
-
'images': Array<
|
|
16889
|
+
'images': Array<WordPressV1ContentGeneratedImageResource>;
|
|
16753
16890
|
/**
|
|
16754
|
-
*
|
|
16891
|
+
* Time after which the image URLs stop working. Download the images before then.
|
|
16755
16892
|
* @type {string}
|
|
16756
16893
|
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16757
16894
|
*/
|
|
16758
|
-
'
|
|
16895
|
+
'expires_at': string;
|
|
16896
|
+
}
|
|
16897
|
+
/**
|
|
16898
|
+
* State of an AI content generation and, once completed, its result.
|
|
16899
|
+
* @export
|
|
16900
|
+
* @interface WordPressV1ContentGenerationResource
|
|
16901
|
+
*/
|
|
16902
|
+
export interface WordPressV1ContentGenerationResource {
|
|
16903
|
+
/**
|
|
16904
|
+
* Generation ID (UUID) used to poll for the result
|
|
16905
|
+
* @type {string}
|
|
16906
|
+
* @memberof WordPressV1ContentGenerationResource
|
|
16907
|
+
*/
|
|
16908
|
+
'generation_id': string;
|
|
16909
|
+
/**
|
|
16910
|
+
* Kind of generation, determines the shape of `result`
|
|
16911
|
+
* @type {string}
|
|
16912
|
+
* @memberof WordPressV1ContentGenerationResource
|
|
16913
|
+
*/
|
|
16914
|
+
'type': WordPressV1ContentGenerationResourceTypeEnum;
|
|
16915
|
+
/**
|
|
16916
|
+
* `in-progress` while the generation is still running, `completed` once `result` is available, `failed` when the generation stopped without a result.
|
|
16917
|
+
* @type {string}
|
|
16918
|
+
* @memberof WordPressV1ContentGenerationResource
|
|
16919
|
+
*/
|
|
16920
|
+
'status': WordPressV1ContentGenerationResourceStatusEnum;
|
|
16921
|
+
/**
|
|
16922
|
+
*
|
|
16923
|
+
* @type {WordPressV1ContentGenerationResourceResult}
|
|
16924
|
+
* @memberof WordPressV1ContentGenerationResource
|
|
16925
|
+
*/
|
|
16926
|
+
'result': WordPressV1ContentGenerationResourceResult | null;
|
|
16927
|
+
}
|
|
16928
|
+
export declare const WordPressV1ContentGenerationResourceTypeEnum: {
|
|
16929
|
+
readonly WebsiteGeneration: "website-generation";
|
|
16930
|
+
readonly ImageGeneration: "image-generation";
|
|
16931
|
+
};
|
|
16932
|
+
export type WordPressV1ContentGenerationResourceTypeEnum = typeof WordPressV1ContentGenerationResourceTypeEnum[keyof typeof WordPressV1ContentGenerationResourceTypeEnum];
|
|
16933
|
+
export declare const WordPressV1ContentGenerationResourceStatusEnum: {
|
|
16934
|
+
readonly InProgress: "in-progress";
|
|
16935
|
+
readonly Completed: "completed";
|
|
16936
|
+
readonly Failed: "failed";
|
|
16937
|
+
};
|
|
16938
|
+
export type WordPressV1ContentGenerationResourceStatusEnum = typeof WordPressV1ContentGenerationResourceStatusEnum[keyof typeof WordPressV1ContentGenerationResourceStatusEnum];
|
|
16939
|
+
/**
|
|
16940
|
+
* Generated content, `null` until the status is `completed`. For `image-generation` it is the generated images object; for `website-generation` it is the generated website document.
|
|
16941
|
+
* @export
|
|
16942
|
+
* @interface WordPressV1ContentGenerationResourceResult
|
|
16943
|
+
*/
|
|
16944
|
+
export interface WordPressV1ContentGenerationResourceResult {
|
|
16945
|
+
/**
|
|
16946
|
+
* Generated images, each available at a temporary URL
|
|
16947
|
+
* @type {Array<WordPressV1ContentGeneratedImageResource>}
|
|
16948
|
+
* @memberof WordPressV1ContentGenerationResourceResult
|
|
16949
|
+
*/
|
|
16950
|
+
'images': Array<WordPressV1ContentGeneratedImageResource>;
|
|
16951
|
+
/**
|
|
16952
|
+
* Time after which the image URLs stop working. Download the images before then.
|
|
16953
|
+
* @type {string}
|
|
16954
|
+
* @memberof WordPressV1ContentGenerationResourceResult
|
|
16955
|
+
*/
|
|
16956
|
+
'expires_at': string;
|
|
16759
16957
|
}
|
|
16760
16958
|
/**
|
|
16761
16959
|
*
|
|
@@ -22888,7 +23086,7 @@ export declare const EcommerceProductVariantsApiAxiosParamCreator: (configuratio
|
|
|
22888
23086
|
*/
|
|
22889
23087
|
listProductVariantsV1: (storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22890
23088
|
/**
|
|
22891
|
-
* Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
23089
|
+
* Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
22892
23090
|
* @summary Update product variants in batch
|
|
22893
23091
|
* @param {string} storeId The ID of the store that owns the product.
|
|
22894
23092
|
* @param {string} productId The ID of the product whose variants are being updated.
|
|
@@ -22934,7 +23132,7 @@ export declare const EcommerceProductVariantsApiFp: (configuration?: Configurati
|
|
|
22934
23132
|
*/
|
|
22935
23133
|
listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductVariantsV1200Response>>;
|
|
22936
23134
|
/**
|
|
22937
|
-
* Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
23135
|
+
* Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
22938
23136
|
* @summary Update product variants in batch
|
|
22939
23137
|
* @param {string} storeId The ID of the store that owns the product.
|
|
22940
23138
|
* @param {string} productId The ID of the product whose variants are being updated.
|
|
@@ -22980,7 +23178,7 @@ export declare const EcommerceProductVariantsApiFactory: (configuration?: Config
|
|
|
22980
23178
|
*/
|
|
22981
23179
|
listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductVariantsV1200Response>;
|
|
22982
23180
|
/**
|
|
22983
|
-
* Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
23181
|
+
* Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
22984
23182
|
* @summary Update product variants in batch
|
|
22985
23183
|
* @param {string} storeId The ID of the store that owns the product.
|
|
22986
23184
|
* @param {string} productId The ID of the product whose variants are being updated.
|
|
@@ -23031,7 +23229,7 @@ export declare class EcommerceProductVariantsApi extends BaseAPI {
|
|
|
23031
23229
|
*/
|
|
23032
23230
|
listProductVariantsV1(storeId: string, productId: string, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductVariantsV1200Response, any, {}, any>>;
|
|
23033
23231
|
/**
|
|
23034
|
-
* Update up to 100 existing variants in place by id — title, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
23232
|
+
* Update up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant\'s existing prices in full. Returns the updated variants.
|
|
23035
23233
|
* @summary Update product variants in batch
|
|
23036
23234
|
* @param {string} storeId The ID of the store that owns the product.
|
|
23037
23235
|
* @param {string} productId The ID of the product whose variants are being updated.
|
|
@@ -23097,7 +23295,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
|
|
|
23097
23295
|
*/
|
|
23098
23296
|
listProductsV1: (storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
23099
23297
|
/**
|
|
23100
|
-
* Update a product\'s name, description or
|
|
23298
|
+
* Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
|
|
23101
23299
|
* @summary Update a product
|
|
23102
23300
|
* @param {string} storeId The ID of the store that owns the product.
|
|
23103
23301
|
* @param {string} productId The ID of the product to update.
|
|
@@ -23172,7 +23370,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
|
|
|
23172
23370
|
*/
|
|
23173
23371
|
listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceListProductsV1200Response>>;
|
|
23174
23372
|
/**
|
|
23175
|
-
* Update a product\'s name, description or
|
|
23373
|
+
* Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
|
|
23176
23374
|
* @summary Update a product
|
|
23177
23375
|
* @param {string} storeId The ID of the store that owns the product.
|
|
23178
23376
|
* @param {string} productId The ID of the product to update.
|
|
@@ -23247,7 +23445,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
|
|
|
23247
23445
|
*/
|
|
23248
23446
|
listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceListProductsV1200Response>;
|
|
23249
23447
|
/**
|
|
23250
|
-
* Update a product\'s name, description or
|
|
23448
|
+
* Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
|
|
23251
23449
|
* @summary Update a product
|
|
23252
23450
|
* @param {string} storeId The ID of the store that owns the product.
|
|
23253
23451
|
* @param {string} productId The ID of the product to update.
|
|
@@ -23329,7 +23527,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
|
|
|
23329
23527
|
*/
|
|
23330
23528
|
listProductsV1(storeId: string, productIds?: Array<string>, status?: Array<ListProductsV1StatusEnum>, q?: string, include?: Array<ListProductsV1IncludeEnum>, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceListProductsV1200Response, any, {}, any>>;
|
|
23331
23529
|
/**
|
|
23332
|
-
* Update a product\'s name, description or
|
|
23530
|
+
* Update a product\'s name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
|
|
23333
23531
|
* @summary Update a product
|
|
23334
23532
|
* @param {string} storeId The ID of the store that owns the product.
|
|
23335
23533
|
* @param {string} productId The ID of the product to update.
|
|
@@ -34412,7 +34610,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
|
34412
34610
|
*/
|
|
34413
34611
|
export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
34414
34612
|
/**
|
|
34415
|
-
*
|
|
34613
|
+
* Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34416
34614
|
* @summary Generate images
|
|
34417
34615
|
* @param {string} username
|
|
34418
34616
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34421,6 +34619,17 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
|
|
|
34421
34619
|
* @throws {RequiredError}
|
|
34422
34620
|
*/
|
|
34423
34621
|
generateImagesV1: (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
34622
|
+
/**
|
|
34623
|
+
* Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34624
|
+
* @summary Get generation result
|
|
34625
|
+
* @param {string} username
|
|
34626
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34627
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
34628
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
34629
|
+
* @param {*} [options] Override http request option.
|
|
34630
|
+
* @throws {RequiredError}
|
|
34631
|
+
*/
|
|
34632
|
+
getGenerationResultV1: (username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
34424
34633
|
};
|
|
34425
34634
|
/**
|
|
34426
34635
|
* WordPressAIContentApi - functional programming interface
|
|
@@ -34428,7 +34637,7 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
|
|
|
34428
34637
|
*/
|
|
34429
34638
|
export declare const WordPressAIContentApiFp: (configuration?: Configuration) => {
|
|
34430
34639
|
/**
|
|
34431
|
-
*
|
|
34640
|
+
* Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34432
34641
|
* @summary Generate images
|
|
34433
34642
|
* @param {string} username
|
|
34434
34643
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34436,7 +34645,18 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
|
|
|
34436
34645
|
* @param {*} [options] Override http request option.
|
|
34437
34646
|
* @throws {RequiredError}
|
|
34438
34647
|
*/
|
|
34439
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
34648
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>>;
|
|
34649
|
+
/**
|
|
34650
|
+
* Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34651
|
+
* @summary Get generation result
|
|
34652
|
+
* @param {string} username
|
|
34653
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34654
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
34655
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
34656
|
+
* @param {*} [options] Override http request option.
|
|
34657
|
+
* @throws {RequiredError}
|
|
34658
|
+
*/
|
|
34659
|
+
getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>>;
|
|
34440
34660
|
};
|
|
34441
34661
|
/**
|
|
34442
34662
|
* WordPressAIContentApi - factory interface
|
|
@@ -34444,7 +34664,7 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
|
|
|
34444
34664
|
*/
|
|
34445
34665
|
export declare const WordPressAIContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
34446
34666
|
/**
|
|
34447
|
-
*
|
|
34667
|
+
* Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34448
34668
|
* @summary Generate images
|
|
34449
34669
|
* @param {string} username
|
|
34450
34670
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34452,7 +34672,18 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
|
|
|
34452
34672
|
* @param {*} [options] Override http request option.
|
|
34453
34673
|
* @throws {RequiredError}
|
|
34454
34674
|
*/
|
|
34455
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
34675
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource>;
|
|
34676
|
+
/**
|
|
34677
|
+
* Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34678
|
+
* @summary Get generation result
|
|
34679
|
+
* @param {string} username
|
|
34680
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34681
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
34682
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
34683
|
+
* @param {*} [options] Override http request option.
|
|
34684
|
+
* @throws {RequiredError}
|
|
34685
|
+
*/
|
|
34686
|
+
getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource>;
|
|
34456
34687
|
};
|
|
34457
34688
|
/**
|
|
34458
34689
|
* WordPressAIContentApi - object-oriented interface
|
|
@@ -34462,7 +34693,7 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
|
|
|
34462
34693
|
*/
|
|
34463
34694
|
export declare class WordPressAIContentApi extends BaseAPI {
|
|
34464
34695
|
/**
|
|
34465
|
-
*
|
|
34696
|
+
* Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34466
34697
|
* @summary Generate images
|
|
34467
34698
|
* @param {string} username
|
|
34468
34699
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34471,8 +34702,28 @@ export declare class WordPressAIContentApi extends BaseAPI {
|
|
|
34471
34702
|
* @throws {RequiredError}
|
|
34472
34703
|
* @memberof WordPressAIContentApi
|
|
34473
34704
|
*/
|
|
34474
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
34705
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGenerationResource, any, {}, any>>;
|
|
34706
|
+
/**
|
|
34707
|
+
* Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
34708
|
+
* @summary Get generation result
|
|
34709
|
+
* @param {string} username
|
|
34710
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34711
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
34712
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
34713
|
+
* @param {*} [options] Override http request option.
|
|
34714
|
+
* @throws {RequiredError}
|
|
34715
|
+
* @memberof WordPressAIContentApi
|
|
34716
|
+
*/
|
|
34717
|
+
getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGenerationResource, any, {}, any>>;
|
|
34475
34718
|
}
|
|
34719
|
+
/**
|
|
34720
|
+
* @export
|
|
34721
|
+
*/
|
|
34722
|
+
export declare const GetGenerationResultV1TypeEnum: {
|
|
34723
|
+
readonly WebsiteGeneration: "website-generation";
|
|
34724
|
+
readonly ImageGeneration: "image-generation";
|
|
34725
|
+
};
|
|
34726
|
+
export type GetGenerationResultV1TypeEnum = typeof GetGenerationResultV1TypeEnum[keyof typeof GetGenerationResultV1TypeEnum];
|
|
34476
34727
|
/**
|
|
34477
34728
|
* WordPressAIToolsApi - axios parameter creator
|
|
34478
34729
|
* @export
|