hostinger-api-sdk 2.13.2 → 2.14.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/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.13.1
6
+ * API Version: 2.14.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
@@ -574,6 +574,36 @@ export const HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
574
574
  HeadlessEcommerce: 'headless_ecommerce',
575
575
  HeadlessPocketbase: 'headless_pocketbase'
576
576
  };
577
+ export const HostingV1PocketBaseBackendCreatedResourceStateEnum = {
578
+ Asleep: 'asleep',
579
+ Starting: 'starting',
580
+ Running: 'running',
581
+ Stopping: 'stopping',
582
+ Failed: 'failed',
583
+ Unregistered: 'unregistered',
584
+ Unknown: 'unknown',
585
+ Missing: 'missing'
586
+ };
587
+ export const HostingV1PocketBaseBackendResourceStateEnum = {
588
+ Asleep: 'asleep',
589
+ Starting: 'starting',
590
+ Running: 'running',
591
+ Stopping: 'stopping',
592
+ Failed: 'failed',
593
+ Unregistered: 'unregistered',
594
+ Unknown: 'unknown',
595
+ Missing: 'missing'
596
+ };
597
+ export const HostingV1PocketBaseInstanceResourceStateEnum = {
598
+ Asleep: 'asleep',
599
+ Starting: 'starting',
600
+ Running: 'running',
601
+ Stopping: 'stopping',
602
+ Failed: 'failed',
603
+ Unregistered: 'unregistered',
604
+ Unknown: 'unknown',
605
+ Missing: 'missing'
606
+ };
577
607
  export const HostingV1SslSslStatusResourceStatusEnum = {
578
608
  NotInstalled: 'not_installed',
579
609
  Installing: 'installing',
@@ -18846,6 +18876,420 @@ export class HostingPHPApi extends BaseAPI {
18846
18876
  return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
18847
18877
  }
18848
18878
  }
18879
+ /**
18880
+ * HostingPocketBaseApi - axios parameter creator
18881
+ * @export
18882
+ */
18883
+ export const HostingPocketBaseApiAxiosParamCreator = function (configuration) {
18884
+ return {
18885
+ /**
18886
+ * Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
18887
+ * @summary Create PocketBase backend
18888
+ * @param {string} username
18889
+ * @param {string} domain Domain name
18890
+ * @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
18891
+ * @param {*} [options] Override http request option.
18892
+ * @throws {RequiredError}
18893
+ */
18894
+ createPocketBaseBackendV1: (username_1, domain_1, hostingV1PocketBaseCreateBackendRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PocketBaseCreateBackendRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PocketBaseCreateBackendRequest, options = {}) {
18895
+ // verify required parameter 'username' is not null or undefined
18896
+ assertParamExists('createPocketBaseBackendV1', 'username', username);
18897
+ // verify required parameter 'domain' is not null or undefined
18898
+ assertParamExists('createPocketBaseBackendV1', 'domain', domain);
18899
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
18900
+ .replace(`{${"username"}}`, encodePathParam('username', username))
18901
+ .replace(`{${"domain"}}`, encodePathParam('domain', domain));
18902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18904
+ let baseOptions;
18905
+ if (configuration) {
18906
+ baseOptions = configuration.baseOptions;
18907
+ }
18908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
18909
+ const localVarHeaderParameter = {};
18910
+ const localVarQueryParameter = {};
18911
+ // authentication apiToken required
18912
+ // http bearer authentication required
18913
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
18914
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18917
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18918
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PocketBaseCreateBackendRequest, localVarRequestOptions, configuration);
18919
+ return {
18920
+ url: toPathString(localVarUrlObj),
18921
+ options: localVarRequestOptions,
18922
+ };
18923
+ }),
18924
+ /**
18925
+ * Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
18926
+ * @summary Delete PocketBase backend
18927
+ * @param {string} username
18928
+ * @param {string} domain Domain name
18929
+ * @param {*} [options] Override http request option.
18930
+ * @throws {RequiredError}
18931
+ */
18932
+ deletePocketBaseBackendV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
18933
+ // verify required parameter 'username' is not null or undefined
18934
+ assertParamExists('deletePocketBaseBackendV1', 'username', username);
18935
+ // verify required parameter 'domain' is not null or undefined
18936
+ assertParamExists('deletePocketBaseBackendV1', 'domain', domain);
18937
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
18938
+ .replace(`{${"username"}}`, encodePathParam('username', username))
18939
+ .replace(`{${"domain"}}`, encodePathParam('domain', domain));
18940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18942
+ let baseOptions;
18943
+ if (configuration) {
18944
+ baseOptions = configuration.baseOptions;
18945
+ }
18946
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
18947
+ const localVarHeaderParameter = {};
18948
+ const localVarQueryParameter = {};
18949
+ // authentication apiToken required
18950
+ // http bearer authentication required
18951
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
18952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18954
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18955
+ return {
18956
+ url: toPathString(localVarUrlObj),
18957
+ options: localVarRequestOptions,
18958
+ };
18959
+ }),
18960
+ /**
18961
+ * Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
18962
+ * @summary Get PocketBase backend
18963
+ * @param {string} username
18964
+ * @param {string} domain Domain name
18965
+ * @param {*} [options] Override http request option.
18966
+ * @throws {RequiredError}
18967
+ */
18968
+ getPocketBaseBackendV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
18969
+ // verify required parameter 'username' is not null or undefined
18970
+ assertParamExists('getPocketBaseBackendV1', 'username', username);
18971
+ // verify required parameter 'domain' is not null or undefined
18972
+ assertParamExists('getPocketBaseBackendV1', 'domain', domain);
18973
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
18974
+ .replace(`{${"username"}}`, encodePathParam('username', username))
18975
+ .replace(`{${"domain"}}`, encodePathParam('domain', domain));
18976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18978
+ let baseOptions;
18979
+ if (configuration) {
18980
+ baseOptions = configuration.baseOptions;
18981
+ }
18982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
18983
+ const localVarHeaderParameter = {};
18984
+ const localVarQueryParameter = {};
18985
+ // authentication apiToken required
18986
+ // http bearer authentication required
18987
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
18988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18991
+ return {
18992
+ url: toPathString(localVarUrlObj),
18993
+ options: localVarRequestOptions,
18994
+ };
18995
+ }),
18996
+ /**
18997
+ * Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
18998
+ * @summary List account PocketBase backends
18999
+ * @param {string} username
19000
+ * @param {*} [options] Override http request option.
19001
+ * @throws {RequiredError}
19002
+ */
19003
+ listAccountPocketBaseBackendsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
19004
+ // verify required parameter 'username' is not null or undefined
19005
+ assertParamExists('listAccountPocketBaseBackendsV1', 'username', username);
19006
+ const localVarPath = `/api/hosting/v1/accounts/{username}/pocketbase`
19007
+ .replace(`{${"username"}}`, encodePathParam('username', username));
19008
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19009
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19010
+ let baseOptions;
19011
+ if (configuration) {
19012
+ baseOptions = configuration.baseOptions;
19013
+ }
19014
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
19015
+ const localVarHeaderParameter = {};
19016
+ const localVarQueryParameter = {};
19017
+ // authentication apiToken required
19018
+ // http bearer authentication required
19019
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
19020
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19021
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19022
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19023
+ return {
19024
+ url: toPathString(localVarUrlObj),
19025
+ options: localVarRequestOptions,
19026
+ };
19027
+ }),
19028
+ /**
19029
+ * Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
19030
+ * @summary Set PocketBase superuser
19031
+ * @param {string} username
19032
+ * @param {string} domain Domain name
19033
+ * @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
19034
+ * @param {*} [options] Override http request option.
19035
+ * @throws {RequiredError}
19036
+ */
19037
+ setPocketBaseSuperuserV1: (username_1, domain_1, hostingV1PocketBaseUpdateSuperuserRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1PocketBaseUpdateSuperuserRequest_1, ...args_1], void 0, function* (username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options = {}) {
19038
+ // verify required parameter 'username' is not null or undefined
19039
+ assertParamExists('setPocketBaseSuperuserV1', 'username', username);
19040
+ // verify required parameter 'domain' is not null or undefined
19041
+ assertParamExists('setPocketBaseSuperuserV1', 'domain', domain);
19042
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase/superuser`
19043
+ .replace(`{${"username"}}`, encodePathParam('username', username))
19044
+ .replace(`{${"domain"}}`, encodePathParam('domain', domain));
19045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19046
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19047
+ let baseOptions;
19048
+ if (configuration) {
19049
+ baseOptions = configuration.baseOptions;
19050
+ }
19051
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
19052
+ const localVarHeaderParameter = {};
19053
+ const localVarQueryParameter = {};
19054
+ // authentication apiToken required
19055
+ // http bearer authentication required
19056
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
19057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19060
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19061
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PocketBaseUpdateSuperuserRequest, localVarRequestOptions, configuration);
19062
+ return {
19063
+ url: toPathString(localVarUrlObj),
19064
+ options: localVarRequestOptions,
19065
+ };
19066
+ }),
19067
+ };
19068
+ };
19069
+ /**
19070
+ * HostingPocketBaseApi - functional programming interface
19071
+ * @export
19072
+ */
19073
+ export const HostingPocketBaseApiFp = function (configuration) {
19074
+ const localVarAxiosParamCreator = HostingPocketBaseApiAxiosParamCreator(configuration);
19075
+ return {
19076
+ /**
19077
+ * Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
19078
+ * @summary Create PocketBase backend
19079
+ * @param {string} username
19080
+ * @param {string} domain Domain name
19081
+ * @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
19082
+ * @param {*} [options] Override http request option.
19083
+ * @throws {RequiredError}
19084
+ */
19085
+ createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
19086
+ return __awaiter(this, void 0, void 0, function* () {
19087
+ var _a, _b;
19088
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options);
19089
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPocketBaseApi.createPocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
19090
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19091
+ });
19092
+ },
19093
+ /**
19094
+ * Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
19095
+ * @summary Delete PocketBase backend
19096
+ * @param {string} username
19097
+ * @param {string} domain Domain name
19098
+ * @param {*} [options] Override http request option.
19099
+ * @throws {RequiredError}
19100
+ */
19101
+ deletePocketBaseBackendV1(username, domain, options) {
19102
+ return __awaiter(this, void 0, void 0, function* () {
19103
+ var _a, _b;
19104
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePocketBaseBackendV1(username, domain, options);
19105
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPocketBaseApi.deletePocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
19106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19107
+ });
19108
+ },
19109
+ /**
19110
+ * Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19111
+ * @summary Get PocketBase backend
19112
+ * @param {string} username
19113
+ * @param {string} domain Domain name
19114
+ * @param {*} [options] Override http request option.
19115
+ * @throws {RequiredError}
19116
+ */
19117
+ getPocketBaseBackendV1(username, domain, options) {
19118
+ return __awaiter(this, void 0, void 0, function* () {
19119
+ var _a, _b;
19120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPocketBaseBackendV1(username, domain, options);
19121
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPocketBaseApi.getPocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
19122
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19123
+ });
19124
+ },
19125
+ /**
19126
+ * Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19127
+ * @summary List account PocketBase backends
19128
+ * @param {string} username
19129
+ * @param {*} [options] Override http request option.
19130
+ * @throws {RequiredError}
19131
+ */
19132
+ listAccountPocketBaseBackendsV1(username, options) {
19133
+ return __awaiter(this, void 0, void 0, function* () {
19134
+ var _a, _b;
19135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountPocketBaseBackendsV1(username, options);
19136
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPocketBaseApi.listAccountPocketBaseBackendsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
19137
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19138
+ });
19139
+ },
19140
+ /**
19141
+ * Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
19142
+ * @summary Set PocketBase superuser
19143
+ * @param {string} username
19144
+ * @param {string} domain Domain name
19145
+ * @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
19146
+ * @param {*} [options] Override http request option.
19147
+ * @throws {RequiredError}
19148
+ */
19149
+ setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
19150
+ return __awaiter(this, void 0, void 0, function* () {
19151
+ var _a, _b;
19152
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options);
19153
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingPocketBaseApi.setPocketBaseSuperuserV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
19154
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19155
+ });
19156
+ },
19157
+ };
19158
+ };
19159
+ /**
19160
+ * HostingPocketBaseApi - factory interface
19161
+ * @export
19162
+ */
19163
+ export const HostingPocketBaseApiFactory = function (configuration, basePath, axios) {
19164
+ const localVarFp = HostingPocketBaseApiFp(configuration);
19165
+ return {
19166
+ /**
19167
+ * Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
19168
+ * @summary Create PocketBase backend
19169
+ * @param {string} username
19170
+ * @param {string} domain Domain name
19171
+ * @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
19172
+ * @param {*} [options] Override http request option.
19173
+ * @throws {RequiredError}
19174
+ */
19175
+ createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
19176
+ return localVarFp.createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options).then((request) => request(axios, basePath));
19177
+ },
19178
+ /**
19179
+ * Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
19180
+ * @summary Delete PocketBase backend
19181
+ * @param {string} username
19182
+ * @param {string} domain Domain name
19183
+ * @param {*} [options] Override http request option.
19184
+ * @throws {RequiredError}
19185
+ */
19186
+ deletePocketBaseBackendV1(username, domain, options) {
19187
+ return localVarFp.deletePocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
19188
+ },
19189
+ /**
19190
+ * Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19191
+ * @summary Get PocketBase backend
19192
+ * @param {string} username
19193
+ * @param {string} domain Domain name
19194
+ * @param {*} [options] Override http request option.
19195
+ * @throws {RequiredError}
19196
+ */
19197
+ getPocketBaseBackendV1(username, domain, options) {
19198
+ return localVarFp.getPocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
19199
+ },
19200
+ /**
19201
+ * Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19202
+ * @summary List account PocketBase backends
19203
+ * @param {string} username
19204
+ * @param {*} [options] Override http request option.
19205
+ * @throws {RequiredError}
19206
+ */
19207
+ listAccountPocketBaseBackendsV1(username, options) {
19208
+ return localVarFp.listAccountPocketBaseBackendsV1(username, options).then((request) => request(axios, basePath));
19209
+ },
19210
+ /**
19211
+ * Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
19212
+ * @summary Set PocketBase superuser
19213
+ * @param {string} username
19214
+ * @param {string} domain Domain name
19215
+ * @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
19216
+ * @param {*} [options] Override http request option.
19217
+ * @throws {RequiredError}
19218
+ */
19219
+ setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
19220
+ return localVarFp.setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options).then((request) => request(axios, basePath));
19221
+ },
19222
+ };
19223
+ };
19224
+ /**
19225
+ * HostingPocketBaseApi - object-oriented interface
19226
+ * @export
19227
+ * @class HostingPocketBaseApi
19228
+ * @extends {BaseAPI}
19229
+ */
19230
+ export class HostingPocketBaseApi extends BaseAPI {
19231
+ /**
19232
+ * Creates a PocketBase backend for a website: a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. A website has at most one PocketBase backend. Creation usually takes a few seconds. The backend takes over the `/api` and `/_` paths of the website: from then on requests to these paths and everything below them go to PocketBase, while every other path keeps serving the website. Do not create a backend for a website that serves its own `/api` or `/_` paths, because they stop working; confirm with the user before calling it. Deleting the backend gives both paths back to the website. Headless WordPress websites and parked domains are not supported; for a parked domain, use the website it is parked on. A website that already has a backend is rejected with 422, unless that backend is in state `missing`: then it is replaced with a new, empty one. A website set up with `type: headless_empty` becomes `headless_pocketbase`; any other website keeps its type. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away; you need it to manage the backend through the PocketBase REST API. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. `superuser_email` defaults to the email of the website owner. The instance sleeps when idle and wakes on the first request, so the first call after a quiet period can take a few seconds. `next_steps` in the response lists what to do next. PocketBase is rolling out gradually: an account without access yet gets 422.
19233
+ * @summary Create PocketBase backend
19234
+ * @param {string} username
19235
+ * @param {string} domain Domain name
19236
+ * @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
19237
+ * @param {*} [options] Override http request option.
19238
+ * @throws {RequiredError}
19239
+ * @memberof HostingPocketBaseApi
19240
+ */
19241
+ createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
19242
+ return HostingPocketBaseApiFp(this.configuration).createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options).then((request) => request(this.axios, this.basePath));
19243
+ }
19244
+ /**
19245
+ * Permanently deletes the PocketBase backend of a website with all its data (collections, records, users and uploaded files) and gives the `/api` and `/_` paths back to the website; a `headless_pocketbase` website becomes `headless_empty`. This cannot be undone and every app using this backend stops working, so confirm with the user before calling it and export the data you need from the dashboard (`admin_url`) first. Returns success also when the website has no PocketBase backend; then it only clears a `headless_pocketbase` mark. To regain access after losing the superuser password, use the `Set PocketBase superuser` endpoint instead of deleting the backend. PocketBase is rolling out gradually: an account without access yet gets 422; an unknown website gets 404.
19246
+ * @summary Delete PocketBase backend
19247
+ * @param {string} username
19248
+ * @param {string} domain Domain name
19249
+ * @param {*} [options] Override http request option.
19250
+ * @throws {RequiredError}
19251
+ * @memberof HostingPocketBaseApi
19252
+ */
19253
+ deletePocketBaseBackendV1(username, domain, options) {
19254
+ return HostingPocketBaseApiFp(this.configuration).deletePocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
19255
+ }
19256
+ /**
19257
+ * Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19258
+ * @summary Get PocketBase backend
19259
+ * @param {string} username
19260
+ * @param {string} domain Domain name
19261
+ * @param {*} [options] Override http request option.
19262
+ * @throws {RequiredError}
19263
+ * @memberof HostingPocketBaseApi
19264
+ */
19265
+ getPocketBaseBackendV1(username, domain, options) {
19266
+ return HostingPocketBaseApiFp(this.configuration).getPocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
19267
+ }
19268
+ /**
19269
+ * Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy; `failed` or `unregistered` mean the instance is broken; `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
19270
+ * @summary List account PocketBase backends
19271
+ * @param {string} username
19272
+ * @param {*} [options] Override http request option.
19273
+ * @throws {RequiredError}
19274
+ * @memberof HostingPocketBaseApi
19275
+ */
19276
+ listAccountPocketBaseBackendsV1(username, options) {
19277
+ return HostingPocketBaseApiFp(this.configuration).listAccountPocketBaseBackendsV1(username, options).then((request) => request(this.axios, this.basePath));
19278
+ }
19279
+ /**
19280
+ * Sets the password of a superuser of the website\'s PocketBase backend, and creates that superuser when there is none with the given email. The old password of that superuser stops working at once, so apps and scripts still using it lose superuser access; confirm with the user before calling it. Use it when the superuser password is lost (Hostinger never stores it), when it leaked and must be rotated, or to add another superuser with a different email. Returns 404 when the website has no PocketBase backend; create one first. App user accounts are managed through the PocketBase REST API, not here. `superuser_password` is optional: leave it out to get a strong generated password, or send your own (10-128 characters). The response returns it in `superuser_password` once and Hostinger never stores it, so save it in your app secrets right away, then authenticate again with `pb.collection(\'_superusers\').authWithPassword`. `superuser_email` defaults to the email of the website owner. PocketBase is rolling out gradually: an account without access yet gets 422.
19281
+ * @summary Set PocketBase superuser
19282
+ * @param {string} username
19283
+ * @param {string} domain Domain name
19284
+ * @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
19285
+ * @param {*} [options] Override http request option.
19286
+ * @throws {RequiredError}
19287
+ * @memberof HostingPocketBaseApi
19288
+ */
19289
+ setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
19290
+ return HostingPocketBaseApiFp(this.configuration).setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options).then((request) => request(this.axios, this.basePath));
19291
+ }
19292
+ }
18849
19293
  /**
18850
19294
  * HostingRedirectsApi - axios parameter creator
18851
19295
  * @export
@@ -19688,7 +20132,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
19688
20132
  };
19689
20133
  }),
19690
20134
  /**
19691
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
20135
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19692
20136
  * @summary Start website setup
19693
20137
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
19694
20138
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -19820,7 +20264,7 @@ export const HostingWebsitesApiFp = function (configuration) {
19820
20264
  });
19821
20265
  },
19822
20266
  /**
19823
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
20267
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19824
20268
  * @summary Start website setup
19825
20269
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
19826
20270
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -19906,7 +20350,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
19906
20350
  return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
19907
20351
  },
19908
20352
  /**
19909
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
20353
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19910
20354
  * @summary Start website setup
19911
20355
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
19912
20356
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -19992,7 +20436,7 @@ export class HostingWebsitesApi extends BaseAPI {
19992
20436
  return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
19993
20437
  }
19994
20438
  /**
19995
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
20439
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_pocketbase` marks the website as a headless PocketBase website but installs nothing: create its PocketBase backend with `Create PocketBase backend` (`POST /api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`) once the setup is `completed`. `headless_empty` installs nothing either: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`, or a PocketBase backend through the same PocketBase endpoint. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19996
20440
  * @summary Start website setup
19997
20441
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
19998
20442
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -35299,7 +35743,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
35299
35743
  };
35300
35744
  }),
35301
35745
  /**
35302
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
35746
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
35303
35747
  * @summary Install WordPress
35304
35748
  * @param {string} username
35305
35749
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -35579,7 +36023,7 @@ export const WordPressInstallationsApiFp = function (configuration) {
35579
36023
  });
35580
36024
  },
35581
36025
  /**
35582
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
36026
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
35583
36027
  * @summary Install WordPress
35584
36028
  * @param {string} username
35585
36029
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -35726,7 +36170,7 @@ export const WordPressInstallationsApiFactory = function (configuration, basePat
35726
36170
  return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
35727
36171
  },
35728
36172
  /**
35729
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
36173
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
35730
36174
  * @summary Install WordPress
35731
36175
  * @param {string} username
35732
36176
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -35853,7 +36297,7 @@ export class WordPressInstallationsApi extends BaseAPI {
35853
36297
  return WordPressInstallationsApiFp(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
35854
36298
  }
35855
36299
  /**
35856
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
36300
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must be an empty headless website (`headless_empty`): the headless install rewrites the root `.htaccess`, so any other website, including a headless website that already has WordPress or a PocketBase backend, is rejected with 422. To replace a PocketBase backend with WordPress, delete it first with `Delete PocketBase backend`. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
35857
36301
  * @summary Install WordPress
35858
36302
  * @param {string} username
35859
36303
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest