hostinger-api-sdk 1.64.1 → 1.66.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 +564 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +438 -1
- package/dist/api.js +263 -12
- 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 +438 -1
- package/dist/esm/api.js +244 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingHeadlessApi.md +63 -0
- package/docs/HostingV1HeadlessAgentReportResource.md +24 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequest.md +45 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestConsent.md +23 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestInfo.md +25 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestRun.md +27 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestTiming.md +27 -0
- package/docs/WordPressAIContentApi.md +69 -0
- package/docs/WordPressV1ContentGenerateImagesRequest.md +33 -0
- package/docs/WordPressV1ContentGeneratedImagesResource.md +23 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.66.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.66.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.66.0
|
|
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
|
|
@@ -7918,6 +7918,249 @@ export interface HostingV1GitWebsiteGitRepositoryWebhookResource {
|
|
|
7918
7918
|
*/
|
|
7919
7919
|
'tutorial_url': string | null;
|
|
7920
7920
|
}
|
|
7921
|
+
/**
|
|
7922
|
+
*
|
|
7923
|
+
* @export
|
|
7924
|
+
* @interface HostingV1HeadlessAgentReportResource
|
|
7925
|
+
*/
|
|
7926
|
+
export interface HostingV1HeadlessAgentReportResource {
|
|
7927
|
+
/**
|
|
7928
|
+
* Stored report ID
|
|
7929
|
+
* @type {number}
|
|
7930
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7931
|
+
*/
|
|
7932
|
+
'id': number;
|
|
7933
|
+
/**
|
|
7934
|
+
* ID of the run the report is for
|
|
7935
|
+
* @type {string}
|
|
7936
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7937
|
+
*/
|
|
7938
|
+
'run_id': string;
|
|
7939
|
+
/**
|
|
7940
|
+
* When the report was received
|
|
7941
|
+
* @type {string}
|
|
7942
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7943
|
+
*/
|
|
7944
|
+
'created_at': string;
|
|
7945
|
+
}
|
|
7946
|
+
/**
|
|
7947
|
+
* Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
|
|
7948
|
+
* @export
|
|
7949
|
+
* @interface HostingV1HeadlessStoreAgentReportRequest
|
|
7950
|
+
*/
|
|
7951
|
+
export interface HostingV1HeadlessStoreAgentReportRequest {
|
|
7952
|
+
/**
|
|
7953
|
+
* Report schema version
|
|
7954
|
+
* @type {string}
|
|
7955
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7956
|
+
*/
|
|
7957
|
+
'schema_version': HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum;
|
|
7958
|
+
/**
|
|
7959
|
+
* When the report was written
|
|
7960
|
+
* @type {string}
|
|
7961
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7962
|
+
*/
|
|
7963
|
+
'generated_at': string;
|
|
7964
|
+
/**
|
|
7965
|
+
*
|
|
7966
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestConsent}
|
|
7967
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7968
|
+
*/
|
|
7969
|
+
'consent': HostingV1HeadlessStoreAgentReportRequestConsent;
|
|
7970
|
+
/**
|
|
7971
|
+
*
|
|
7972
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestRun}
|
|
7973
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7974
|
+
*/
|
|
7975
|
+
'run': HostingV1HeadlessStoreAgentReportRequestRun;
|
|
7976
|
+
/**
|
|
7977
|
+
*
|
|
7978
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestInfo}
|
|
7979
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7980
|
+
*/
|
|
7981
|
+
'info': HostingV1HeadlessStoreAgentReportRequestInfo;
|
|
7982
|
+
/**
|
|
7983
|
+
*
|
|
7984
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestTiming}
|
|
7985
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7986
|
+
*/
|
|
7987
|
+
'timing': HostingV1HeadlessStoreAgentReportRequestTiming;
|
|
7988
|
+
/**
|
|
7989
|
+
* Token usage, only when the tool reports its own usage
|
|
7990
|
+
* @type {object}
|
|
7991
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7992
|
+
*/
|
|
7993
|
+
'tokens': object | null;
|
|
7994
|
+
/**
|
|
7995
|
+
* Problems hit during the run
|
|
7996
|
+
* @type {Array<object>}
|
|
7997
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7998
|
+
*/
|
|
7999
|
+
'issues': Array<object>;
|
|
8000
|
+
/**
|
|
8001
|
+
* Feedback the user gave during the run
|
|
8002
|
+
* @type {Array<object>}
|
|
8003
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8004
|
+
*/
|
|
8005
|
+
'user_feedback': Array<object>;
|
|
8006
|
+
/**
|
|
8007
|
+
* Places where the skill instructions were missing or wrong
|
|
8008
|
+
* @type {Array<object>}
|
|
8009
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8010
|
+
*/
|
|
8011
|
+
'skill_gaps': Array<object>;
|
|
8012
|
+
/**
|
|
8013
|
+
* Things that worked well during the run
|
|
8014
|
+
* @type {Array<object>}
|
|
8015
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8016
|
+
*/
|
|
8017
|
+
'what_went_well': Array<object>;
|
|
8018
|
+
/**
|
|
8019
|
+
* Where the run log is missing or unsure
|
|
8020
|
+
* @type {Array<object>}
|
|
8021
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8022
|
+
*/
|
|
8023
|
+
'logging_gaps': Array<object>;
|
|
8024
|
+
/**
|
|
8025
|
+
* Earlier runs for the same website
|
|
8026
|
+
* @type {Array<object>}
|
|
8027
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8028
|
+
*/
|
|
8029
|
+
'previous_runs': Array<object>;
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
export const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = {
|
|
8033
|
+
_1: '1'
|
|
8034
|
+
} as const;
|
|
8035
|
+
|
|
8036
|
+
export type HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum];
|
|
8037
|
+
|
|
8038
|
+
/**
|
|
8039
|
+
* Upload status of the report, as written by the headless skill
|
|
8040
|
+
* @export
|
|
8041
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8042
|
+
*/
|
|
8043
|
+
export interface HostingV1HeadlessStoreAgentReportRequestConsent {
|
|
8044
|
+
/**
|
|
8045
|
+
*
|
|
8046
|
+
* @type {boolean}
|
|
8047
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8048
|
+
*/
|
|
8049
|
+
'sent': boolean;
|
|
8050
|
+
/**
|
|
8051
|
+
*
|
|
8052
|
+
* @type {string}
|
|
8053
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8054
|
+
*/
|
|
8055
|
+
'note': string;
|
|
8056
|
+
}
|
|
8057
|
+
/**
|
|
8058
|
+
* Website, tool and outcome of the run
|
|
8059
|
+
* @export
|
|
8060
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8061
|
+
*/
|
|
8062
|
+
export interface HostingV1HeadlessStoreAgentReportRequestInfo {
|
|
8063
|
+
/**
|
|
8064
|
+
*
|
|
8065
|
+
* @type {string}
|
|
8066
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8067
|
+
*/
|
|
8068
|
+
'domain': string;
|
|
8069
|
+
/**
|
|
8070
|
+
*
|
|
8071
|
+
* @type {string}
|
|
8072
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8073
|
+
*/
|
|
8074
|
+
'tool': string | null;
|
|
8075
|
+
/**
|
|
8076
|
+
*
|
|
8077
|
+
* @type {string}
|
|
8078
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8079
|
+
*/
|
|
8080
|
+
'outcome': HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum;
|
|
8081
|
+
}
|
|
8082
|
+
|
|
8083
|
+
export const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = {
|
|
8084
|
+
Live: 'live',
|
|
8085
|
+
Stopped: 'stopped',
|
|
8086
|
+
Failed: 'failed',
|
|
8087
|
+
Abandoned: 'abandoned'
|
|
8088
|
+
} as const;
|
|
8089
|
+
|
|
8090
|
+
export type HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum];
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* The run the report is for
|
|
8094
|
+
* @export
|
|
8095
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestRun
|
|
8096
|
+
*/
|
|
8097
|
+
export interface HostingV1HeadlessStoreAgentReportRequestRun {
|
|
8098
|
+
/**
|
|
8099
|
+
*
|
|
8100
|
+
* @type {string}
|
|
8101
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8102
|
+
*/
|
|
8103
|
+
'id': string;
|
|
8104
|
+
/**
|
|
8105
|
+
*
|
|
8106
|
+
* @type {string}
|
|
8107
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8108
|
+
*/
|
|
8109
|
+
'kind': HostingV1HeadlessStoreAgentReportRequestRunKindEnum;
|
|
8110
|
+
/**
|
|
8111
|
+
*
|
|
8112
|
+
* @type {string}
|
|
8113
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8114
|
+
*/
|
|
8115
|
+
'skill': string | null;
|
|
8116
|
+
/**
|
|
8117
|
+
*
|
|
8118
|
+
* @type {Array<object>}
|
|
8119
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8120
|
+
*/
|
|
8121
|
+
'follow_ups': Array<object>;
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
export const HostingV1HeadlessStoreAgentReportRequestRunKindEnum = {
|
|
8125
|
+
Build: 'build',
|
|
8126
|
+
Resume: 'resume',
|
|
8127
|
+
Redesign: 'redesign',
|
|
8128
|
+
Iterate: 'iterate'
|
|
8129
|
+
} as const;
|
|
8130
|
+
|
|
8131
|
+
export type HostingV1HeadlessStoreAgentReportRequestRunKindEnum = typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum];
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
* Run start and end times and per-stage timings
|
|
8135
|
+
* @export
|
|
8136
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8137
|
+
*/
|
|
8138
|
+
export interface HostingV1HeadlessStoreAgentReportRequestTiming {
|
|
8139
|
+
/**
|
|
8140
|
+
*
|
|
8141
|
+
* @type {string}
|
|
8142
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8143
|
+
*/
|
|
8144
|
+
'started_at': string;
|
|
8145
|
+
/**
|
|
8146
|
+
*
|
|
8147
|
+
* @type {string}
|
|
8148
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8149
|
+
*/
|
|
8150
|
+
'ended_at': string;
|
|
8151
|
+
/**
|
|
8152
|
+
*
|
|
8153
|
+
* @type {number}
|
|
8154
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8155
|
+
*/
|
|
8156
|
+
'minutes_total': number | null;
|
|
8157
|
+
/**
|
|
8158
|
+
*
|
|
8159
|
+
* @type {Array<object>}
|
|
8160
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8161
|
+
*/
|
|
8162
|
+
'stages': Array<object>;
|
|
8163
|
+
}
|
|
7921
8164
|
/**
|
|
7922
8165
|
*
|
|
7923
8166
|
* @export
|
|
@@ -16530,6 +16773,86 @@ export interface WordPressV1CommonVulnerabilityResource {
|
|
|
16530
16773
|
*/
|
|
16531
16774
|
'direct_url': string;
|
|
16532
16775
|
}
|
|
16776
|
+
/**
|
|
16777
|
+
* Generate images from a prompt and an image type
|
|
16778
|
+
* @export
|
|
16779
|
+
* @interface WordPressV1ContentGenerateImagesRequest
|
|
16780
|
+
*/
|
|
16781
|
+
export interface WordPressV1ContentGenerateImagesRequest {
|
|
16782
|
+
/**
|
|
16783
|
+
* What the image should show. For the logo type, the wordmark and mark to render.
|
|
16784
|
+
* @type {string}
|
|
16785
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16786
|
+
*/
|
|
16787
|
+
'prompt': string;
|
|
16788
|
+
/**
|
|
16789
|
+
* Kind of image to generate. It sets the default size and cropping.
|
|
16790
|
+
* @type {string}
|
|
16791
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16792
|
+
*/
|
|
16793
|
+
'image_type': WordPressV1ContentGenerateImagesRequestImageTypeEnum;
|
|
16794
|
+
/**
|
|
16795
|
+
* How many images to generate
|
|
16796
|
+
* @type {number}
|
|
16797
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16798
|
+
*/
|
|
16799
|
+
'num_of_images': number;
|
|
16800
|
+
/**
|
|
16801
|
+
* Output width in pixels. Defaults per image type and is ignored for the logo type.
|
|
16802
|
+
* @type {number}
|
|
16803
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16804
|
+
*/
|
|
16805
|
+
'width': number | null;
|
|
16806
|
+
/**
|
|
16807
|
+
* Output height in pixels. Defaults per image type and is ignored for the logo type.
|
|
16808
|
+
* @type {number}
|
|
16809
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16810
|
+
*/
|
|
16811
|
+
'height': number | null;
|
|
16812
|
+
/**
|
|
16813
|
+
* Style tokens appended to photographic prompts. Ignored for the logo type.
|
|
16814
|
+
* @type {string}
|
|
16815
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16816
|
+
*/
|
|
16817
|
+
'style': string | null;
|
|
16818
|
+
/**
|
|
16819
|
+
* Colour direction for the logo type only. It is not rendered as text.
|
|
16820
|
+
* @type {string}
|
|
16821
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16822
|
+
*/
|
|
16823
|
+
'color_guidance': string | null;
|
|
16824
|
+
}
|
|
16825
|
+
|
|
16826
|
+
export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
|
|
16827
|
+
Hero: 'hero',
|
|
16828
|
+
Background: 'background',
|
|
16829
|
+
Inline: 'inline',
|
|
16830
|
+
Gallery: 'gallery',
|
|
16831
|
+
Product: 'product',
|
|
16832
|
+
Logo: 'logo'
|
|
16833
|
+
} as const;
|
|
16834
|
+
|
|
16835
|
+
export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
|
|
16836
|
+
|
|
16837
|
+
/**
|
|
16838
|
+
* Images generated by the AI image generator.
|
|
16839
|
+
* @export
|
|
16840
|
+
* @interface WordPressV1ContentGeneratedImagesResource
|
|
16841
|
+
*/
|
|
16842
|
+
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16843
|
+
/**
|
|
16844
|
+
* Generated images, each encoded as a base64 string
|
|
16845
|
+
* @type {Array<string>}
|
|
16846
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16847
|
+
*/
|
|
16848
|
+
'images': Array<string>;
|
|
16849
|
+
/**
|
|
16850
|
+
* MIME type shared by all returned images
|
|
16851
|
+
* @type {string}
|
|
16852
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16853
|
+
*/
|
|
16854
|
+
'content_type': string;
|
|
16855
|
+
}
|
|
16533
16856
|
/**
|
|
16534
16857
|
*
|
|
16535
16858
|
* @export
|
|
@@ -33187,6 +33510,119 @@ export const ListGitInstallationsV1StatusEnum = {
|
|
|
33187
33510
|
export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
|
|
33188
33511
|
|
|
33189
33512
|
|
|
33513
|
+
/**
|
|
33514
|
+
* HostingHeadlessApi - axios parameter creator
|
|
33515
|
+
* @export
|
|
33516
|
+
*/
|
|
33517
|
+
export const HostingHeadlessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33518
|
+
return {
|
|
33519
|
+
/**
|
|
33520
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
33521
|
+
* @summary Submit headless build report
|
|
33522
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33523
|
+
* @param {*} [options] Override http request option.
|
|
33524
|
+
* @throws {RequiredError}
|
|
33525
|
+
*/
|
|
33526
|
+
submitHeadlessBuildReportV1: async (hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33527
|
+
// verify required parameter 'hostingV1HeadlessStoreAgentReportRequest' is not null or undefined
|
|
33528
|
+
assertParamExists('submitHeadlessBuildReportV1', 'hostingV1HeadlessStoreAgentReportRequest', hostingV1HeadlessStoreAgentReportRequest)
|
|
33529
|
+
const localVarPath = `/api/hosting/v1/headless/agent-reports`;
|
|
33530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33532
|
+
let baseOptions;
|
|
33533
|
+
if (configuration) {
|
|
33534
|
+
baseOptions = configuration.baseOptions;
|
|
33535
|
+
}
|
|
33536
|
+
|
|
33537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33538
|
+
const localVarHeaderParameter = {} as any;
|
|
33539
|
+
const localVarQueryParameter = {} as any;
|
|
33540
|
+
|
|
33541
|
+
// authentication apiToken required
|
|
33542
|
+
// http bearer authentication required
|
|
33543
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33544
|
+
|
|
33545
|
+
|
|
33546
|
+
|
|
33547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33548
|
+
|
|
33549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1HeadlessStoreAgentReportRequest, localVarRequestOptions, configuration)
|
|
33553
|
+
|
|
33554
|
+
return {
|
|
33555
|
+
url: toPathString(localVarUrlObj),
|
|
33556
|
+
options: localVarRequestOptions,
|
|
33557
|
+
};
|
|
33558
|
+
},
|
|
33559
|
+
}
|
|
33560
|
+
};
|
|
33561
|
+
|
|
33562
|
+
/**
|
|
33563
|
+
* HostingHeadlessApi - functional programming interface
|
|
33564
|
+
* @export
|
|
33565
|
+
*/
|
|
33566
|
+
export const HostingHeadlessApiFp = function(configuration?: Configuration) {
|
|
33567
|
+
const localVarAxiosParamCreator = HostingHeadlessApiAxiosParamCreator(configuration)
|
|
33568
|
+
return {
|
|
33569
|
+
/**
|
|
33570
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
33571
|
+
* @summary Submit headless build report
|
|
33572
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33573
|
+
* @param {*} [options] Override http request option.
|
|
33574
|
+
* @throws {RequiredError}
|
|
33575
|
+
*/
|
|
33576
|
+
async submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1HeadlessAgentReportResource>> {
|
|
33577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options);
|
|
33578
|
+
const localVarOperationServerBasePath = operationServerMap['HostingHeadlessApi.submitHeadlessBuildReportV1']?.[0]?.url;
|
|
33579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33580
|
+
},
|
|
33581
|
+
}
|
|
33582
|
+
};
|
|
33583
|
+
|
|
33584
|
+
/**
|
|
33585
|
+
* HostingHeadlessApi - factory interface
|
|
33586
|
+
* @export
|
|
33587
|
+
*/
|
|
33588
|
+
export const HostingHeadlessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33589
|
+
const localVarFp = HostingHeadlessApiFp(configuration)
|
|
33590
|
+
return {
|
|
33591
|
+
/**
|
|
33592
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
33593
|
+
* @summary Submit headless build report
|
|
33594
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33595
|
+
* @param {*} [options] Override http request option.
|
|
33596
|
+
* @throws {RequiredError}
|
|
33597
|
+
*/
|
|
33598
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1HeadlessAgentReportResource> {
|
|
33599
|
+
return localVarFp.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(axios, basePath));
|
|
33600
|
+
},
|
|
33601
|
+
};
|
|
33602
|
+
};
|
|
33603
|
+
|
|
33604
|
+
/**
|
|
33605
|
+
* HostingHeadlessApi - object-oriented interface
|
|
33606
|
+
* @export
|
|
33607
|
+
* @class HostingHeadlessApi
|
|
33608
|
+
* @extends {BaseAPI}
|
|
33609
|
+
*/
|
|
33610
|
+
export class HostingHeadlessApi extends BaseAPI {
|
|
33611
|
+
/**
|
|
33612
|
+
* Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
|
|
33613
|
+
* @summary Submit headless build report
|
|
33614
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33615
|
+
* @param {*} [options] Override http request option.
|
|
33616
|
+
* @throws {RequiredError}
|
|
33617
|
+
* @memberof HostingHeadlessApi
|
|
33618
|
+
*/
|
|
33619
|
+
public submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig) {
|
|
33620
|
+
return HostingHeadlessApiFp(this.configuration).submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33621
|
+
}
|
|
33622
|
+
}
|
|
33623
|
+
|
|
33624
|
+
|
|
33625
|
+
|
|
33190
33626
|
/**
|
|
33191
33627
|
* HostingNodeJSApi - axios parameter creator
|
|
33192
33628
|
* @export
|
|
@@ -51054,6 +51490,133 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
51054
51490
|
|
|
51055
51491
|
|
|
51056
51492
|
|
|
51493
|
+
/**
|
|
51494
|
+
* WordPressAIContentApi - axios parameter creator
|
|
51495
|
+
* @export
|
|
51496
|
+
*/
|
|
51497
|
+
export const WordPressAIContentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
51498
|
+
return {
|
|
51499
|
+
/**
|
|
51500
|
+
* Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. 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).
|
|
51501
|
+
* @summary Generate images
|
|
51502
|
+
* @param {string} username
|
|
51503
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51504
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51505
|
+
* @param {*} [options] Override http request option.
|
|
51506
|
+
* @throws {RequiredError}
|
|
51507
|
+
*/
|
|
51508
|
+
generateImagesV1: async (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51509
|
+
// verify required parameter 'username' is not null or undefined
|
|
51510
|
+
assertParamExists('generateImagesV1', 'username', username)
|
|
51511
|
+
// verify required parameter 'software' is not null or undefined
|
|
51512
|
+
assertParamExists('generateImagesV1', 'software', software)
|
|
51513
|
+
// verify required parameter 'wordPressV1ContentGenerateImagesRequest' is not null or undefined
|
|
51514
|
+
assertParamExists('generateImagesV1', 'wordPressV1ContentGenerateImagesRequest', wordPressV1ContentGenerateImagesRequest)
|
|
51515
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate`
|
|
51516
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
51517
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
51518
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51519
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51520
|
+
let baseOptions;
|
|
51521
|
+
if (configuration) {
|
|
51522
|
+
baseOptions = configuration.baseOptions;
|
|
51523
|
+
}
|
|
51524
|
+
|
|
51525
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
51526
|
+
const localVarHeaderParameter = {} as any;
|
|
51527
|
+
const localVarQueryParameter = {} as any;
|
|
51528
|
+
|
|
51529
|
+
// authentication apiToken required
|
|
51530
|
+
// http bearer authentication required
|
|
51531
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
51532
|
+
|
|
51533
|
+
|
|
51534
|
+
|
|
51535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51536
|
+
|
|
51537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51539
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51540
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration)
|
|
51541
|
+
|
|
51542
|
+
return {
|
|
51543
|
+
url: toPathString(localVarUrlObj),
|
|
51544
|
+
options: localVarRequestOptions,
|
|
51545
|
+
};
|
|
51546
|
+
},
|
|
51547
|
+
}
|
|
51548
|
+
};
|
|
51549
|
+
|
|
51550
|
+
/**
|
|
51551
|
+
* WordPressAIContentApi - functional programming interface
|
|
51552
|
+
* @export
|
|
51553
|
+
*/
|
|
51554
|
+
export const WordPressAIContentApiFp = function(configuration?: Configuration) {
|
|
51555
|
+
const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration)
|
|
51556
|
+
return {
|
|
51557
|
+
/**
|
|
51558
|
+
* Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. 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).
|
|
51559
|
+
* @summary Generate images
|
|
51560
|
+
* @param {string} username
|
|
51561
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51562
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51563
|
+
* @param {*} [options] Override http request option.
|
|
51564
|
+
* @throws {RequiredError}
|
|
51565
|
+
*/
|
|
51566
|
+
async generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>> {
|
|
51567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
|
|
51568
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressAIContentApi.generateImagesV1']?.[0]?.url;
|
|
51569
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51570
|
+
},
|
|
51571
|
+
}
|
|
51572
|
+
};
|
|
51573
|
+
|
|
51574
|
+
/**
|
|
51575
|
+
* WordPressAIContentApi - factory interface
|
|
51576
|
+
* @export
|
|
51577
|
+
*/
|
|
51578
|
+
export const WordPressAIContentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
51579
|
+
const localVarFp = WordPressAIContentApiFp(configuration)
|
|
51580
|
+
return {
|
|
51581
|
+
/**
|
|
51582
|
+
* Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. 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).
|
|
51583
|
+
* @summary Generate images
|
|
51584
|
+
* @param {string} username
|
|
51585
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51586
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51587
|
+
* @param {*} [options] Override http request option.
|
|
51588
|
+
* @throws {RequiredError}
|
|
51589
|
+
*/
|
|
51590
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource> {
|
|
51591
|
+
return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
|
|
51592
|
+
},
|
|
51593
|
+
};
|
|
51594
|
+
};
|
|
51595
|
+
|
|
51596
|
+
/**
|
|
51597
|
+
* WordPressAIContentApi - object-oriented interface
|
|
51598
|
+
* @export
|
|
51599
|
+
* @class WordPressAIContentApi
|
|
51600
|
+
* @extends {BaseAPI}
|
|
51601
|
+
*/
|
|
51602
|
+
export class WordPressAIContentApi extends BaseAPI {
|
|
51603
|
+
/**
|
|
51604
|
+
* Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. 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).
|
|
51605
|
+
* @summary Generate images
|
|
51606
|
+
* @param {string} username
|
|
51607
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51608
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51609
|
+
* @param {*} [options] Override http request option.
|
|
51610
|
+
* @throws {RequiredError}
|
|
51611
|
+
* @memberof WordPressAIContentApi
|
|
51612
|
+
*/
|
|
51613
|
+
public generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) {
|
|
51614
|
+
return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51615
|
+
}
|
|
51616
|
+
}
|
|
51617
|
+
|
|
51618
|
+
|
|
51619
|
+
|
|
51057
51620
|
/**
|
|
51058
51621
|
* WordPressAIToolsApi - axios parameter creator
|
|
51059
51622
|
* @export
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.66.0
|
|
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
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.66.0
|
|
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
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.66.0
|
|
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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.66.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|