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/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.66.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
|
|
@@ -7761,6 +7761,240 @@ export interface HostingV1GitWebsiteGitRepositoryWebhookResource {
|
|
|
7761
7761
|
*/
|
|
7762
7762
|
'tutorial_url': string | null;
|
|
7763
7763
|
}
|
|
7764
|
+
/**
|
|
7765
|
+
*
|
|
7766
|
+
* @export
|
|
7767
|
+
* @interface HostingV1HeadlessAgentReportResource
|
|
7768
|
+
*/
|
|
7769
|
+
export interface HostingV1HeadlessAgentReportResource {
|
|
7770
|
+
/**
|
|
7771
|
+
* Stored report ID
|
|
7772
|
+
* @type {number}
|
|
7773
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7774
|
+
*/
|
|
7775
|
+
'id': number;
|
|
7776
|
+
/**
|
|
7777
|
+
* ID of the run the report is for
|
|
7778
|
+
* @type {string}
|
|
7779
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7780
|
+
*/
|
|
7781
|
+
'run_id': string;
|
|
7782
|
+
/**
|
|
7783
|
+
* When the report was received
|
|
7784
|
+
* @type {string}
|
|
7785
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7786
|
+
*/
|
|
7787
|
+
'created_at': string;
|
|
7788
|
+
}
|
|
7789
|
+
/**
|
|
7790
|
+
* Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
|
|
7791
|
+
* @export
|
|
7792
|
+
* @interface HostingV1HeadlessStoreAgentReportRequest
|
|
7793
|
+
*/
|
|
7794
|
+
export interface HostingV1HeadlessStoreAgentReportRequest {
|
|
7795
|
+
/**
|
|
7796
|
+
* Report schema version
|
|
7797
|
+
* @type {string}
|
|
7798
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7799
|
+
*/
|
|
7800
|
+
'schema_version': HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum;
|
|
7801
|
+
/**
|
|
7802
|
+
* When the report was written
|
|
7803
|
+
* @type {string}
|
|
7804
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7805
|
+
*/
|
|
7806
|
+
'generated_at': string;
|
|
7807
|
+
/**
|
|
7808
|
+
*
|
|
7809
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestConsent}
|
|
7810
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7811
|
+
*/
|
|
7812
|
+
'consent': HostingV1HeadlessStoreAgentReportRequestConsent;
|
|
7813
|
+
/**
|
|
7814
|
+
*
|
|
7815
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestRun}
|
|
7816
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7817
|
+
*/
|
|
7818
|
+
'run': HostingV1HeadlessStoreAgentReportRequestRun;
|
|
7819
|
+
/**
|
|
7820
|
+
*
|
|
7821
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestInfo}
|
|
7822
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7823
|
+
*/
|
|
7824
|
+
'info': HostingV1HeadlessStoreAgentReportRequestInfo;
|
|
7825
|
+
/**
|
|
7826
|
+
*
|
|
7827
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestTiming}
|
|
7828
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7829
|
+
*/
|
|
7830
|
+
'timing': HostingV1HeadlessStoreAgentReportRequestTiming;
|
|
7831
|
+
/**
|
|
7832
|
+
* Token usage, only when the tool reports its own usage
|
|
7833
|
+
* @type {object}
|
|
7834
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7835
|
+
*/
|
|
7836
|
+
'tokens': object | null;
|
|
7837
|
+
/**
|
|
7838
|
+
* Problems hit during the run
|
|
7839
|
+
* @type {Array<object>}
|
|
7840
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7841
|
+
*/
|
|
7842
|
+
'issues': Array<object>;
|
|
7843
|
+
/**
|
|
7844
|
+
* Feedback the user gave during the run
|
|
7845
|
+
* @type {Array<object>}
|
|
7846
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7847
|
+
*/
|
|
7848
|
+
'user_feedback': Array<object>;
|
|
7849
|
+
/**
|
|
7850
|
+
* Places where the skill instructions were missing or wrong
|
|
7851
|
+
* @type {Array<object>}
|
|
7852
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7853
|
+
*/
|
|
7854
|
+
'skill_gaps': Array<object>;
|
|
7855
|
+
/**
|
|
7856
|
+
* Things that worked well during the run
|
|
7857
|
+
* @type {Array<object>}
|
|
7858
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7859
|
+
*/
|
|
7860
|
+
'what_went_well': Array<object>;
|
|
7861
|
+
/**
|
|
7862
|
+
* Where the run log is missing or unsure
|
|
7863
|
+
* @type {Array<object>}
|
|
7864
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7865
|
+
*/
|
|
7866
|
+
'logging_gaps': Array<object>;
|
|
7867
|
+
/**
|
|
7868
|
+
* Earlier runs for the same website
|
|
7869
|
+
* @type {Array<object>}
|
|
7870
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7871
|
+
*/
|
|
7872
|
+
'previous_runs': Array<object>;
|
|
7873
|
+
}
|
|
7874
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum: {
|
|
7875
|
+
readonly _1: "1";
|
|
7876
|
+
};
|
|
7877
|
+
export type HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum];
|
|
7878
|
+
/**
|
|
7879
|
+
* Upload status of the report, as written by the headless skill
|
|
7880
|
+
* @export
|
|
7881
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7882
|
+
*/
|
|
7883
|
+
export interface HostingV1HeadlessStoreAgentReportRequestConsent {
|
|
7884
|
+
/**
|
|
7885
|
+
*
|
|
7886
|
+
* @type {boolean}
|
|
7887
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7888
|
+
*/
|
|
7889
|
+
'sent': boolean;
|
|
7890
|
+
/**
|
|
7891
|
+
*
|
|
7892
|
+
* @type {string}
|
|
7893
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7894
|
+
*/
|
|
7895
|
+
'note': string;
|
|
7896
|
+
}
|
|
7897
|
+
/**
|
|
7898
|
+
* Website, tool and outcome of the run
|
|
7899
|
+
* @export
|
|
7900
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7901
|
+
*/
|
|
7902
|
+
export interface HostingV1HeadlessStoreAgentReportRequestInfo {
|
|
7903
|
+
/**
|
|
7904
|
+
*
|
|
7905
|
+
* @type {string}
|
|
7906
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7907
|
+
*/
|
|
7908
|
+
'domain': string;
|
|
7909
|
+
/**
|
|
7910
|
+
*
|
|
7911
|
+
* @type {string}
|
|
7912
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7913
|
+
*/
|
|
7914
|
+
'tool': string | null;
|
|
7915
|
+
/**
|
|
7916
|
+
*
|
|
7917
|
+
* @type {string}
|
|
7918
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7919
|
+
*/
|
|
7920
|
+
'outcome': HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum;
|
|
7921
|
+
}
|
|
7922
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum: {
|
|
7923
|
+
readonly Live: "live";
|
|
7924
|
+
readonly Stopped: "stopped";
|
|
7925
|
+
readonly Failed: "failed";
|
|
7926
|
+
readonly Abandoned: "abandoned";
|
|
7927
|
+
};
|
|
7928
|
+
export type HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum];
|
|
7929
|
+
/**
|
|
7930
|
+
* The run the report is for
|
|
7931
|
+
* @export
|
|
7932
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestRun
|
|
7933
|
+
*/
|
|
7934
|
+
export interface HostingV1HeadlessStoreAgentReportRequestRun {
|
|
7935
|
+
/**
|
|
7936
|
+
*
|
|
7937
|
+
* @type {string}
|
|
7938
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7939
|
+
*/
|
|
7940
|
+
'id': string;
|
|
7941
|
+
/**
|
|
7942
|
+
*
|
|
7943
|
+
* @type {string}
|
|
7944
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7945
|
+
*/
|
|
7946
|
+
'kind': HostingV1HeadlessStoreAgentReportRequestRunKindEnum;
|
|
7947
|
+
/**
|
|
7948
|
+
*
|
|
7949
|
+
* @type {string}
|
|
7950
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7951
|
+
*/
|
|
7952
|
+
'skill': string | null;
|
|
7953
|
+
/**
|
|
7954
|
+
*
|
|
7955
|
+
* @type {Array<object>}
|
|
7956
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7957
|
+
*/
|
|
7958
|
+
'follow_ups': Array<object>;
|
|
7959
|
+
}
|
|
7960
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestRunKindEnum: {
|
|
7961
|
+
readonly Build: "build";
|
|
7962
|
+
readonly Resume: "resume";
|
|
7963
|
+
readonly Redesign: "redesign";
|
|
7964
|
+
readonly Iterate: "iterate";
|
|
7965
|
+
};
|
|
7966
|
+
export type HostingV1HeadlessStoreAgentReportRequestRunKindEnum = typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum];
|
|
7967
|
+
/**
|
|
7968
|
+
* Run start and end times and per-stage timings
|
|
7969
|
+
* @export
|
|
7970
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7971
|
+
*/
|
|
7972
|
+
export interface HostingV1HeadlessStoreAgentReportRequestTiming {
|
|
7973
|
+
/**
|
|
7974
|
+
*
|
|
7975
|
+
* @type {string}
|
|
7976
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7977
|
+
*/
|
|
7978
|
+
'started_at': string;
|
|
7979
|
+
/**
|
|
7980
|
+
*
|
|
7981
|
+
* @type {string}
|
|
7982
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7983
|
+
*/
|
|
7984
|
+
'ended_at': string;
|
|
7985
|
+
/**
|
|
7986
|
+
*
|
|
7987
|
+
* @type {number}
|
|
7988
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7989
|
+
*/
|
|
7990
|
+
'minutes_total': number | null;
|
|
7991
|
+
/**
|
|
7992
|
+
*
|
|
7993
|
+
* @type {Array<object>}
|
|
7994
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7995
|
+
*/
|
|
7996
|
+
'stages': Array<object>;
|
|
7997
|
+
}
|
|
7764
7998
|
/**
|
|
7765
7999
|
*
|
|
7766
8000
|
* @export
|
|
@@ -16174,6 +16408,83 @@ export interface WordPressV1CommonVulnerabilityResource {
|
|
|
16174
16408
|
*/
|
|
16175
16409
|
'direct_url': string;
|
|
16176
16410
|
}
|
|
16411
|
+
/**
|
|
16412
|
+
* Generate images from a prompt and an image type
|
|
16413
|
+
* @export
|
|
16414
|
+
* @interface WordPressV1ContentGenerateImagesRequest
|
|
16415
|
+
*/
|
|
16416
|
+
export interface WordPressV1ContentGenerateImagesRequest {
|
|
16417
|
+
/**
|
|
16418
|
+
* What the image should show. For the logo type, the wordmark and mark to render.
|
|
16419
|
+
* @type {string}
|
|
16420
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16421
|
+
*/
|
|
16422
|
+
'prompt': string;
|
|
16423
|
+
/**
|
|
16424
|
+
* Kind of image to generate. It sets the default size and cropping.
|
|
16425
|
+
* @type {string}
|
|
16426
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16427
|
+
*/
|
|
16428
|
+
'image_type': WordPressV1ContentGenerateImagesRequestImageTypeEnum;
|
|
16429
|
+
/**
|
|
16430
|
+
* How many images to generate
|
|
16431
|
+
* @type {number}
|
|
16432
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16433
|
+
*/
|
|
16434
|
+
'num_of_images': number;
|
|
16435
|
+
/**
|
|
16436
|
+
* Output width in pixels. Defaults per image type and is ignored for the logo type.
|
|
16437
|
+
* @type {number}
|
|
16438
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16439
|
+
*/
|
|
16440
|
+
'width': number | null;
|
|
16441
|
+
/**
|
|
16442
|
+
* Output height in pixels. Defaults per image type and is ignored for the logo type.
|
|
16443
|
+
* @type {number}
|
|
16444
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16445
|
+
*/
|
|
16446
|
+
'height': number | null;
|
|
16447
|
+
/**
|
|
16448
|
+
* Style tokens appended to photographic prompts. Ignored for the logo type.
|
|
16449
|
+
* @type {string}
|
|
16450
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16451
|
+
*/
|
|
16452
|
+
'style': string | null;
|
|
16453
|
+
/**
|
|
16454
|
+
* Colour direction for the logo type only. It is not rendered as text.
|
|
16455
|
+
* @type {string}
|
|
16456
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16457
|
+
*/
|
|
16458
|
+
'color_guidance': string | null;
|
|
16459
|
+
}
|
|
16460
|
+
export declare const WordPressV1ContentGenerateImagesRequestImageTypeEnum: {
|
|
16461
|
+
readonly Hero: "hero";
|
|
16462
|
+
readonly Background: "background";
|
|
16463
|
+
readonly Inline: "inline";
|
|
16464
|
+
readonly Gallery: "gallery";
|
|
16465
|
+
readonly Product: "product";
|
|
16466
|
+
readonly Logo: "logo";
|
|
16467
|
+
};
|
|
16468
|
+
export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
|
|
16469
|
+
/**
|
|
16470
|
+
* Images generated by the AI image generator.
|
|
16471
|
+
* @export
|
|
16472
|
+
* @interface WordPressV1ContentGeneratedImagesResource
|
|
16473
|
+
*/
|
|
16474
|
+
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16475
|
+
/**
|
|
16476
|
+
* Generated images, each encoded as a base64 string
|
|
16477
|
+
* @type {Array<string>}
|
|
16478
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16479
|
+
*/
|
|
16480
|
+
'images': Array<string>;
|
|
16481
|
+
/**
|
|
16482
|
+
* MIME type shared by all returned images
|
|
16483
|
+
* @type {string}
|
|
16484
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16485
|
+
*/
|
|
16486
|
+
'content_type': string;
|
|
16487
|
+
}
|
|
16177
16488
|
/**
|
|
16178
16489
|
*
|
|
16179
16490
|
* @export
|
|
@@ -24906,6 +25217,65 @@ export declare const ListGitInstallationsV1StatusEnum: {
|
|
|
24906
25217
|
readonly Suspended: "suspended";
|
|
24907
25218
|
};
|
|
24908
25219
|
export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
|
|
25220
|
+
/**
|
|
25221
|
+
* HostingHeadlessApi - axios parameter creator
|
|
25222
|
+
* @export
|
|
25223
|
+
*/
|
|
25224
|
+
export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25225
|
+
/**
|
|
25226
|
+
* 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.
|
|
25227
|
+
* @summary Submit headless build report
|
|
25228
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25229
|
+
* @param {*} [options] Override http request option.
|
|
25230
|
+
* @throws {RequiredError}
|
|
25231
|
+
*/
|
|
25232
|
+
submitHeadlessBuildReportV1: (hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25233
|
+
};
|
|
25234
|
+
/**
|
|
25235
|
+
* HostingHeadlessApi - functional programming interface
|
|
25236
|
+
* @export
|
|
25237
|
+
*/
|
|
25238
|
+
export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
|
|
25239
|
+
/**
|
|
25240
|
+
* 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.
|
|
25241
|
+
* @summary Submit headless build report
|
|
25242
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25243
|
+
* @param {*} [options] Override http request option.
|
|
25244
|
+
* @throws {RequiredError}
|
|
25245
|
+
*/
|
|
25246
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1HeadlessAgentReportResource>>;
|
|
25247
|
+
};
|
|
25248
|
+
/**
|
|
25249
|
+
* HostingHeadlessApi - factory interface
|
|
25250
|
+
* @export
|
|
25251
|
+
*/
|
|
25252
|
+
export declare const HostingHeadlessApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25253
|
+
/**
|
|
25254
|
+
* 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.
|
|
25255
|
+
* @summary Submit headless build report
|
|
25256
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25257
|
+
* @param {*} [options] Override http request option.
|
|
25258
|
+
* @throws {RequiredError}
|
|
25259
|
+
*/
|
|
25260
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1HeadlessAgentReportResource>;
|
|
25261
|
+
};
|
|
25262
|
+
/**
|
|
25263
|
+
* HostingHeadlessApi - object-oriented interface
|
|
25264
|
+
* @export
|
|
25265
|
+
* @class HostingHeadlessApi
|
|
25266
|
+
* @extends {BaseAPI}
|
|
25267
|
+
*/
|
|
25268
|
+
export declare class HostingHeadlessApi extends BaseAPI {
|
|
25269
|
+
/**
|
|
25270
|
+
* 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.
|
|
25271
|
+
* @summary Submit headless build report
|
|
25272
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25273
|
+
* @param {*} [options] Override http request option.
|
|
25274
|
+
* @throws {RequiredError}
|
|
25275
|
+
* @memberof HostingHeadlessApi
|
|
25276
|
+
*/
|
|
25277
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1HeadlessAgentReportResource, any, {}, any>>;
|
|
25278
|
+
}
|
|
24909
25279
|
/**
|
|
24910
25280
|
* HostingNodeJSApi - axios parameter creator
|
|
24911
25281
|
* @export
|
|
@@ -33613,6 +33983,73 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
|
33613
33983
|
*/
|
|
33614
33984
|
stopVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
|
|
33615
33985
|
}
|
|
33986
|
+
/**
|
|
33987
|
+
* WordPressAIContentApi - axios parameter creator
|
|
33988
|
+
* @export
|
|
33989
|
+
*/
|
|
33990
|
+
export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
33991
|
+
/**
|
|
33992
|
+
* 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).
|
|
33993
|
+
* @summary Generate images
|
|
33994
|
+
* @param {string} username
|
|
33995
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33996
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
33997
|
+
* @param {*} [options] Override http request option.
|
|
33998
|
+
* @throws {RequiredError}
|
|
33999
|
+
*/
|
|
34000
|
+
generateImagesV1: (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
34001
|
+
};
|
|
34002
|
+
/**
|
|
34003
|
+
* WordPressAIContentApi - functional programming interface
|
|
34004
|
+
* @export
|
|
34005
|
+
*/
|
|
34006
|
+
export declare const WordPressAIContentApiFp: (configuration?: Configuration) => {
|
|
34007
|
+
/**
|
|
34008
|
+
* 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).
|
|
34009
|
+
* @summary Generate images
|
|
34010
|
+
* @param {string} username
|
|
34011
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34012
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
34013
|
+
* @param {*} [options] Override http request option.
|
|
34014
|
+
* @throws {RequiredError}
|
|
34015
|
+
*/
|
|
34016
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>>;
|
|
34017
|
+
};
|
|
34018
|
+
/**
|
|
34019
|
+
* WordPressAIContentApi - factory interface
|
|
34020
|
+
* @export
|
|
34021
|
+
*/
|
|
34022
|
+
export declare const WordPressAIContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
34023
|
+
/**
|
|
34024
|
+
* 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).
|
|
34025
|
+
* @summary Generate images
|
|
34026
|
+
* @param {string} username
|
|
34027
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34028
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
34029
|
+
* @param {*} [options] Override http request option.
|
|
34030
|
+
* @throws {RequiredError}
|
|
34031
|
+
*/
|
|
34032
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource>;
|
|
34033
|
+
};
|
|
34034
|
+
/**
|
|
34035
|
+
* WordPressAIContentApi - object-oriented interface
|
|
34036
|
+
* @export
|
|
34037
|
+
* @class WordPressAIContentApi
|
|
34038
|
+
* @extends {BaseAPI}
|
|
34039
|
+
*/
|
|
34040
|
+
export declare class WordPressAIContentApi extends BaseAPI {
|
|
34041
|
+
/**
|
|
34042
|
+
* 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).
|
|
34043
|
+
* @summary Generate images
|
|
34044
|
+
* @param {string} username
|
|
34045
|
+
* @param {string} software WordPress installation (software) identifier
|
|
34046
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
34047
|
+
* @param {*} [options] Override http request option.
|
|
34048
|
+
* @throws {RequiredError}
|
|
34049
|
+
* @memberof WordPressAIContentApi
|
|
34050
|
+
*/
|
|
34051
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGeneratedImagesResource, any, {}, any>>;
|
|
34052
|
+
}
|
|
33616
34053
|
/**
|
|
33617
34054
|
* WordPressAIToolsApi - axios parameter creator
|
|
33618
34055
|
* @export
|