hostinger-api-sdk 2.13.1 → 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/.github/workflows/build-release.yaml +58 -35
- package/README.md +2 -2
- package/api.ts +716 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +481 -11
- package/dist/api.js +469 -21
- 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 +481 -11
- package/dist/esm/api.js +453 -9
- 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/HostingPocketBaseApi.md +311 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +1 -1
- package/docs/HostingV1PocketBaseBackendCreatedResource.md +36 -0
- package/docs/HostingV1PocketBaseBackendResource.md +32 -0
- package/docs/HostingV1PocketBaseCreateBackendRequest.md +22 -0
- package/docs/HostingV1PocketBaseInstanceResource.md +32 -0
- package/docs/HostingV1PocketBaseSuperuserResource.md +24 -0
- package/docs/HostingV1PocketBaseUpdateSuperuserRequest.md +22 -0
- package/docs/HostingWebsitesApi.md +1 -1
- package/docs/WordPressInstallationsApi.md +1 -1
- package/docs/WordPressV1InstallationsInstallWordPressRequest.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.14.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -20,18 +20,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductUpdateRequestStatusEnum = exports.EcommerceV1ProductProductResourceStatusEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInnerStatusEnum = exports.EcommerceV1DiscountDiscountResourceAllocationEnum = exports.EcommerceV1DiscountDiscountResourceTypeEnum = exports.EcommerceV1DiscountCreateDiscountRequestAllocationEnum = exports.EcommerceV1DiscountCreateDiscountRequestTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainVerificationResourceTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DomainsV1DomainDomainContactVerificationChannelResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgentReadinessV1ScansScanResourceStatusEnum = exports.AgentReadinessV1ScansCheckResultResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SslSslStatusResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = void 0;
|
|
23
|
+
exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1WebsitesTriggerEventRequestEventNameEnum = exports.HostingV1SslSslStatusResourceProviderEnum = exports.HostingV1SslSslStatusResourceStatusEnum = exports.HostingV1PocketBaseInstanceResourceStateEnum = exports.HostingV1PocketBaseBackendResourceStateEnum = exports.HostingV1PocketBaseBackendCreatedResourceStateEnum = exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = exports.HostingV1OnboardingsOnboardingResourceStatusEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestPackageManagerEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestAppTypeEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestNodeVersionEnum = exports.HostingV1NodeJsStoredBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1HeadlessStoreAgentReportRequestRunKindEnum = exports.HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = exports.HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = exports.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = void 0;
|
|
24
|
+
exports.ReachV1FormsUpdateRequestStatusEnum = exports.ReachV1FormsFormTemplateVersionResourceEditTypeEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = void 0;
|
|
25
|
+
exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1McpExecuteMcpToolRequestServerEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1InstallationsInstallWordPressRequestTypeEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.WordPressV1ContentGenerationResourceStatusEnum = exports.WordPressV1ContentGenerationResourceTypeEnum = exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1WebsitesWebsiteResourcePlatformTypeEnum = exports.ReachV1StoresStoreResourceConnectionStatusEnum = exports.ReachV1StoresStoreResourceVersionEnum = exports.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = void 0;
|
|
26
|
+
exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgentReadinessScansApi = exports.AgentReadinessScansApiFactory = exports.AgentReadinessScansApiFp = exports.AgentReadinessScansApiAxiosParamCreator = exports.AgentReadinessChecksApi = exports.AgentReadinessChecksApiFactory = exports.AgentReadinessChecksApiFp = exports.AgentReadinessChecksApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = exports.ListAgencyPlanWebsitesV1StatesEnum = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingSSLApi = exports.AgencyHostingSSLApiFactory = exports.AgencyHostingSSLApiFp = exports.AgencyHostingSSLApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = void 0;
|
|
27
|
+
exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = void 0;
|
|
28
|
+
exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.GetPoolGroupsV1CurrencyEnum = exports.GPUCatalogApi = exports.GPUCatalogApiFactory = exports.GPUCatalogApiFp = exports.GPUCatalogApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = exports.EcommerceOrdersApi = exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = void 0;
|
|
29
|
+
exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingHeadlessApi = exports.HostingHeadlessApiFactory = exports.HostingHeadlessApiFp = exports.HostingHeadlessApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HostingCDNApi = exports.HostingCDNApiFactory = exports.HostingCDNApiFp = exports.HostingCDNApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPocketBaseApi = exports.HostingPocketBaseApiFactory = exports.HostingPocketBaseApiFp = exports.HostingPocketBaseApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = void 0;
|
|
31
|
+
exports.ReachIntegrationsApiFactory = exports.ReachIntegrationsApiFp = exports.ReachIntegrationsApiAxiosParamCreator = exports.ListFormsV1StatusEnum = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = void 0;
|
|
32
|
+
exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachIntegrationsApi = void 0;
|
|
33
|
+
exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = exports.WordPressAIContentApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = void 0;
|
|
34
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -589,6 +589,36 @@ exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
|
|
|
589
589
|
HeadlessEcommerce: 'headless_ecommerce',
|
|
590
590
|
HeadlessPocketbase: 'headless_pocketbase'
|
|
591
591
|
};
|
|
592
|
+
exports.HostingV1PocketBaseBackendCreatedResourceStateEnum = {
|
|
593
|
+
Asleep: 'asleep',
|
|
594
|
+
Starting: 'starting',
|
|
595
|
+
Running: 'running',
|
|
596
|
+
Stopping: 'stopping',
|
|
597
|
+
Failed: 'failed',
|
|
598
|
+
Unregistered: 'unregistered',
|
|
599
|
+
Unknown: 'unknown',
|
|
600
|
+
Missing: 'missing'
|
|
601
|
+
};
|
|
602
|
+
exports.HostingV1PocketBaseBackendResourceStateEnum = {
|
|
603
|
+
Asleep: 'asleep',
|
|
604
|
+
Starting: 'starting',
|
|
605
|
+
Running: 'running',
|
|
606
|
+
Stopping: 'stopping',
|
|
607
|
+
Failed: 'failed',
|
|
608
|
+
Unregistered: 'unregistered',
|
|
609
|
+
Unknown: 'unknown',
|
|
610
|
+
Missing: 'missing'
|
|
611
|
+
};
|
|
612
|
+
exports.HostingV1PocketBaseInstanceResourceStateEnum = {
|
|
613
|
+
Asleep: 'asleep',
|
|
614
|
+
Starting: 'starting',
|
|
615
|
+
Running: 'running',
|
|
616
|
+
Stopping: 'stopping',
|
|
617
|
+
Failed: 'failed',
|
|
618
|
+
Unregistered: 'unregistered',
|
|
619
|
+
Unknown: 'unknown',
|
|
620
|
+
Missing: 'missing'
|
|
621
|
+
};
|
|
592
622
|
exports.HostingV1SslSslStatusResourceStatusEnum = {
|
|
593
623
|
NotInstalled: 'not_installed',
|
|
594
624
|
Installing: 'installing',
|
|
@@ -19065,6 +19095,424 @@ class HostingPHPApi extends base_1.BaseAPI {
|
|
|
19065
19095
|
}
|
|
19066
19096
|
}
|
|
19067
19097
|
exports.HostingPHPApi = HostingPHPApi;
|
|
19098
|
+
/**
|
|
19099
|
+
* HostingPocketBaseApi - axios parameter creator
|
|
19100
|
+
* @export
|
|
19101
|
+
*/
|
|
19102
|
+
const HostingPocketBaseApiAxiosParamCreator = function (configuration) {
|
|
19103
|
+
return {
|
|
19104
|
+
/**
|
|
19105
|
+
* 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.
|
|
19106
|
+
* @summary Create PocketBase backend
|
|
19107
|
+
* @param {string} username
|
|
19108
|
+
* @param {string} domain Domain name
|
|
19109
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
19110
|
+
* @param {*} [options] Override http request option.
|
|
19111
|
+
* @throws {RequiredError}
|
|
19112
|
+
*/
|
|
19113
|
+
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 = {}) {
|
|
19114
|
+
// verify required parameter 'username' is not null or undefined
|
|
19115
|
+
(0, common_1.assertParamExists)('createPocketBaseBackendV1', 'username', username);
|
|
19116
|
+
// verify required parameter 'domain' is not null or undefined
|
|
19117
|
+
(0, common_1.assertParamExists)('createPocketBaseBackendV1', 'domain', domain);
|
|
19118
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
|
|
19119
|
+
.replace(`{${"username"}}`, (0, common_1.encodePathParam)('username', username))
|
|
19120
|
+
.replace(`{${"domain"}}`, (0, common_1.encodePathParam)('domain', domain));
|
|
19121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19122
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19123
|
+
let baseOptions;
|
|
19124
|
+
if (configuration) {
|
|
19125
|
+
baseOptions = configuration.baseOptions;
|
|
19126
|
+
}
|
|
19127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19128
|
+
const localVarHeaderParameter = {};
|
|
19129
|
+
const localVarQueryParameter = {};
|
|
19130
|
+
// authentication apiToken required
|
|
19131
|
+
// http bearer authentication required
|
|
19132
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PocketBaseCreateBackendRequest, localVarRequestOptions, configuration);
|
|
19138
|
+
return {
|
|
19139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19140
|
+
options: localVarRequestOptions,
|
|
19141
|
+
};
|
|
19142
|
+
}),
|
|
19143
|
+
/**
|
|
19144
|
+
* 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.
|
|
19145
|
+
* @summary Delete PocketBase backend
|
|
19146
|
+
* @param {string} username
|
|
19147
|
+
* @param {string} domain Domain name
|
|
19148
|
+
* @param {*} [options] Override http request option.
|
|
19149
|
+
* @throws {RequiredError}
|
|
19150
|
+
*/
|
|
19151
|
+
deletePocketBaseBackendV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
19152
|
+
// verify required parameter 'username' is not null or undefined
|
|
19153
|
+
(0, common_1.assertParamExists)('deletePocketBaseBackendV1', 'username', username);
|
|
19154
|
+
// verify required parameter 'domain' is not null or undefined
|
|
19155
|
+
(0, common_1.assertParamExists)('deletePocketBaseBackendV1', 'domain', domain);
|
|
19156
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
|
|
19157
|
+
.replace(`{${"username"}}`, (0, common_1.encodePathParam)('username', username))
|
|
19158
|
+
.replace(`{${"domain"}}`, (0, common_1.encodePathParam)('domain', domain));
|
|
19159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19160
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19161
|
+
let baseOptions;
|
|
19162
|
+
if (configuration) {
|
|
19163
|
+
baseOptions = configuration.baseOptions;
|
|
19164
|
+
}
|
|
19165
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
19166
|
+
const localVarHeaderParameter = {};
|
|
19167
|
+
const localVarQueryParameter = {};
|
|
19168
|
+
// authentication apiToken required
|
|
19169
|
+
// http bearer authentication required
|
|
19170
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19173
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19174
|
+
return {
|
|
19175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19176
|
+
options: localVarRequestOptions,
|
|
19177
|
+
};
|
|
19178
|
+
}),
|
|
19179
|
+
/**
|
|
19180
|
+
* 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.
|
|
19181
|
+
* @summary Get PocketBase backend
|
|
19182
|
+
* @param {string} username
|
|
19183
|
+
* @param {string} domain Domain name
|
|
19184
|
+
* @param {*} [options] Override http request option.
|
|
19185
|
+
* @throws {RequiredError}
|
|
19186
|
+
*/
|
|
19187
|
+
getPocketBaseBackendV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
19188
|
+
// verify required parameter 'username' is not null or undefined
|
|
19189
|
+
(0, common_1.assertParamExists)('getPocketBaseBackendV1', 'username', username);
|
|
19190
|
+
// verify required parameter 'domain' is not null or undefined
|
|
19191
|
+
(0, common_1.assertParamExists)('getPocketBaseBackendV1', 'domain', domain);
|
|
19192
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase`
|
|
19193
|
+
.replace(`{${"username"}}`, (0, common_1.encodePathParam)('username', username))
|
|
19194
|
+
.replace(`{${"domain"}}`, (0, common_1.encodePathParam)('domain', domain));
|
|
19195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19196
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19197
|
+
let baseOptions;
|
|
19198
|
+
if (configuration) {
|
|
19199
|
+
baseOptions = configuration.baseOptions;
|
|
19200
|
+
}
|
|
19201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
19202
|
+
const localVarHeaderParameter = {};
|
|
19203
|
+
const localVarQueryParameter = {};
|
|
19204
|
+
// authentication apiToken required
|
|
19205
|
+
// http bearer authentication required
|
|
19206
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19210
|
+
return {
|
|
19211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19212
|
+
options: localVarRequestOptions,
|
|
19213
|
+
};
|
|
19214
|
+
}),
|
|
19215
|
+
/**
|
|
19216
|
+
* 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.
|
|
19217
|
+
* @summary List account PocketBase backends
|
|
19218
|
+
* @param {string} username
|
|
19219
|
+
* @param {*} [options] Override http request option.
|
|
19220
|
+
* @throws {RequiredError}
|
|
19221
|
+
*/
|
|
19222
|
+
listAccountPocketBaseBackendsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
19223
|
+
// verify required parameter 'username' is not null or undefined
|
|
19224
|
+
(0, common_1.assertParamExists)('listAccountPocketBaseBackendsV1', 'username', username);
|
|
19225
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/pocketbase`
|
|
19226
|
+
.replace(`{${"username"}}`, (0, common_1.encodePathParam)('username', username));
|
|
19227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19229
|
+
let baseOptions;
|
|
19230
|
+
if (configuration) {
|
|
19231
|
+
baseOptions = configuration.baseOptions;
|
|
19232
|
+
}
|
|
19233
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
19234
|
+
const localVarHeaderParameter = {};
|
|
19235
|
+
const localVarQueryParameter = {};
|
|
19236
|
+
// authentication apiToken required
|
|
19237
|
+
// http bearer authentication required
|
|
19238
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19239
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19241
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19242
|
+
return {
|
|
19243
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19244
|
+
options: localVarRequestOptions,
|
|
19245
|
+
};
|
|
19246
|
+
}),
|
|
19247
|
+
/**
|
|
19248
|
+
* 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.
|
|
19249
|
+
* @summary Set PocketBase superuser
|
|
19250
|
+
* @param {string} username
|
|
19251
|
+
* @param {string} domain Domain name
|
|
19252
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
19253
|
+
* @param {*} [options] Override http request option.
|
|
19254
|
+
* @throws {RequiredError}
|
|
19255
|
+
*/
|
|
19256
|
+
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 = {}) {
|
|
19257
|
+
// verify required parameter 'username' is not null or undefined
|
|
19258
|
+
(0, common_1.assertParamExists)('setPocketBaseSuperuserV1', 'username', username);
|
|
19259
|
+
// verify required parameter 'domain' is not null or undefined
|
|
19260
|
+
(0, common_1.assertParamExists)('setPocketBaseSuperuserV1', 'domain', domain);
|
|
19261
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/pocketbase/superuser`
|
|
19262
|
+
.replace(`{${"username"}}`, (0, common_1.encodePathParam)('username', username))
|
|
19263
|
+
.replace(`{${"domain"}}`, (0, common_1.encodePathParam)('domain', domain));
|
|
19264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19265
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19266
|
+
let baseOptions;
|
|
19267
|
+
if (configuration) {
|
|
19268
|
+
baseOptions = configuration.baseOptions;
|
|
19269
|
+
}
|
|
19270
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
19271
|
+
const localVarHeaderParameter = {};
|
|
19272
|
+
const localVarQueryParameter = {};
|
|
19273
|
+
// authentication apiToken required
|
|
19274
|
+
// http bearer authentication required
|
|
19275
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19276
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19279
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19280
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1PocketBaseUpdateSuperuserRequest, localVarRequestOptions, configuration);
|
|
19281
|
+
return {
|
|
19282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19283
|
+
options: localVarRequestOptions,
|
|
19284
|
+
};
|
|
19285
|
+
}),
|
|
19286
|
+
};
|
|
19287
|
+
};
|
|
19288
|
+
exports.HostingPocketBaseApiAxiosParamCreator = HostingPocketBaseApiAxiosParamCreator;
|
|
19289
|
+
/**
|
|
19290
|
+
* HostingPocketBaseApi - functional programming interface
|
|
19291
|
+
* @export
|
|
19292
|
+
*/
|
|
19293
|
+
const HostingPocketBaseApiFp = function (configuration) {
|
|
19294
|
+
const localVarAxiosParamCreator = (0, exports.HostingPocketBaseApiAxiosParamCreator)(configuration);
|
|
19295
|
+
return {
|
|
19296
|
+
/**
|
|
19297
|
+
* 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.
|
|
19298
|
+
* @summary Create PocketBase backend
|
|
19299
|
+
* @param {string} username
|
|
19300
|
+
* @param {string} domain Domain name
|
|
19301
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
19302
|
+
* @param {*} [options] Override http request option.
|
|
19303
|
+
* @throws {RequiredError}
|
|
19304
|
+
*/
|
|
19305
|
+
createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
|
|
19306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19307
|
+
var _a, _b;
|
|
19308
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options);
|
|
19309
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPocketBaseApi.createPocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
19310
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19311
|
+
});
|
|
19312
|
+
},
|
|
19313
|
+
/**
|
|
19314
|
+
* 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.
|
|
19315
|
+
* @summary Delete PocketBase backend
|
|
19316
|
+
* @param {string} username
|
|
19317
|
+
* @param {string} domain Domain name
|
|
19318
|
+
* @param {*} [options] Override http request option.
|
|
19319
|
+
* @throws {RequiredError}
|
|
19320
|
+
*/
|
|
19321
|
+
deletePocketBaseBackendV1(username, domain, options) {
|
|
19322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19323
|
+
var _a, _b;
|
|
19324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePocketBaseBackendV1(username, domain, options);
|
|
19325
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPocketBaseApi.deletePocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
19326
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19327
|
+
});
|
|
19328
|
+
},
|
|
19329
|
+
/**
|
|
19330
|
+
* 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.
|
|
19331
|
+
* @summary Get PocketBase backend
|
|
19332
|
+
* @param {string} username
|
|
19333
|
+
* @param {string} domain Domain name
|
|
19334
|
+
* @param {*} [options] Override http request option.
|
|
19335
|
+
* @throws {RequiredError}
|
|
19336
|
+
*/
|
|
19337
|
+
getPocketBaseBackendV1(username, domain, options) {
|
|
19338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19339
|
+
var _a, _b;
|
|
19340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPocketBaseBackendV1(username, domain, options);
|
|
19341
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPocketBaseApi.getPocketBaseBackendV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
19342
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19343
|
+
});
|
|
19344
|
+
},
|
|
19345
|
+
/**
|
|
19346
|
+
* 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.
|
|
19347
|
+
* @summary List account PocketBase backends
|
|
19348
|
+
* @param {string} username
|
|
19349
|
+
* @param {*} [options] Override http request option.
|
|
19350
|
+
* @throws {RequiredError}
|
|
19351
|
+
*/
|
|
19352
|
+
listAccountPocketBaseBackendsV1(username, options) {
|
|
19353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19354
|
+
var _a, _b;
|
|
19355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountPocketBaseBackendsV1(username, options);
|
|
19356
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPocketBaseApi.listAccountPocketBaseBackendsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
19357
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19358
|
+
});
|
|
19359
|
+
},
|
|
19360
|
+
/**
|
|
19361
|
+
* 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.
|
|
19362
|
+
* @summary Set PocketBase superuser
|
|
19363
|
+
* @param {string} username
|
|
19364
|
+
* @param {string} domain Domain name
|
|
19365
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
19366
|
+
* @param {*} [options] Override http request option.
|
|
19367
|
+
* @throws {RequiredError}
|
|
19368
|
+
*/
|
|
19369
|
+
setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
|
|
19370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19371
|
+
var _a, _b;
|
|
19372
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options);
|
|
19373
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingPocketBaseApi.setPocketBaseSuperuserV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
19374
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19375
|
+
});
|
|
19376
|
+
},
|
|
19377
|
+
};
|
|
19378
|
+
};
|
|
19379
|
+
exports.HostingPocketBaseApiFp = HostingPocketBaseApiFp;
|
|
19380
|
+
/**
|
|
19381
|
+
* HostingPocketBaseApi - factory interface
|
|
19382
|
+
* @export
|
|
19383
|
+
*/
|
|
19384
|
+
const HostingPocketBaseApiFactory = function (configuration, basePath, axios) {
|
|
19385
|
+
const localVarFp = (0, exports.HostingPocketBaseApiFp)(configuration);
|
|
19386
|
+
return {
|
|
19387
|
+
/**
|
|
19388
|
+
* 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.
|
|
19389
|
+
* @summary Create PocketBase backend
|
|
19390
|
+
* @param {string} username
|
|
19391
|
+
* @param {string} domain Domain name
|
|
19392
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
19393
|
+
* @param {*} [options] Override http request option.
|
|
19394
|
+
* @throws {RequiredError}
|
|
19395
|
+
*/
|
|
19396
|
+
createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
|
|
19397
|
+
return localVarFp.createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options).then((request) => request(axios, basePath));
|
|
19398
|
+
},
|
|
19399
|
+
/**
|
|
19400
|
+
* 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.
|
|
19401
|
+
* @summary Delete PocketBase backend
|
|
19402
|
+
* @param {string} username
|
|
19403
|
+
* @param {string} domain Domain name
|
|
19404
|
+
* @param {*} [options] Override http request option.
|
|
19405
|
+
* @throws {RequiredError}
|
|
19406
|
+
*/
|
|
19407
|
+
deletePocketBaseBackendV1(username, domain, options) {
|
|
19408
|
+
return localVarFp.deletePocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
19409
|
+
},
|
|
19410
|
+
/**
|
|
19411
|
+
* 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.
|
|
19412
|
+
* @summary Get PocketBase backend
|
|
19413
|
+
* @param {string} username
|
|
19414
|
+
* @param {string} domain Domain name
|
|
19415
|
+
* @param {*} [options] Override http request option.
|
|
19416
|
+
* @throws {RequiredError}
|
|
19417
|
+
*/
|
|
19418
|
+
getPocketBaseBackendV1(username, domain, options) {
|
|
19419
|
+
return localVarFp.getPocketBaseBackendV1(username, domain, options).then((request) => request(axios, basePath));
|
|
19420
|
+
},
|
|
19421
|
+
/**
|
|
19422
|
+
* 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.
|
|
19423
|
+
* @summary List account PocketBase backends
|
|
19424
|
+
* @param {string} username
|
|
19425
|
+
* @param {*} [options] Override http request option.
|
|
19426
|
+
* @throws {RequiredError}
|
|
19427
|
+
*/
|
|
19428
|
+
listAccountPocketBaseBackendsV1(username, options) {
|
|
19429
|
+
return localVarFp.listAccountPocketBaseBackendsV1(username, options).then((request) => request(axios, basePath));
|
|
19430
|
+
},
|
|
19431
|
+
/**
|
|
19432
|
+
* 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.
|
|
19433
|
+
* @summary Set PocketBase superuser
|
|
19434
|
+
* @param {string} username
|
|
19435
|
+
* @param {string} domain Domain name
|
|
19436
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
19437
|
+
* @param {*} [options] Override http request option.
|
|
19438
|
+
* @throws {RequiredError}
|
|
19439
|
+
*/
|
|
19440
|
+
setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
|
|
19441
|
+
return localVarFp.setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options).then((request) => request(axios, basePath));
|
|
19442
|
+
},
|
|
19443
|
+
};
|
|
19444
|
+
};
|
|
19445
|
+
exports.HostingPocketBaseApiFactory = HostingPocketBaseApiFactory;
|
|
19446
|
+
/**
|
|
19447
|
+
* HostingPocketBaseApi - object-oriented interface
|
|
19448
|
+
* @export
|
|
19449
|
+
* @class HostingPocketBaseApi
|
|
19450
|
+
* @extends {BaseAPI}
|
|
19451
|
+
*/
|
|
19452
|
+
class HostingPocketBaseApi extends base_1.BaseAPI {
|
|
19453
|
+
/**
|
|
19454
|
+
* 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.
|
|
19455
|
+
* @summary Create PocketBase backend
|
|
19456
|
+
* @param {string} username
|
|
19457
|
+
* @param {string} domain Domain name
|
|
19458
|
+
* @param {HostingV1PocketBaseCreateBackendRequest} [hostingV1PocketBaseCreateBackendRequest]
|
|
19459
|
+
* @param {*} [options] Override http request option.
|
|
19460
|
+
* @throws {RequiredError}
|
|
19461
|
+
* @memberof HostingPocketBaseApi
|
|
19462
|
+
*/
|
|
19463
|
+
createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options) {
|
|
19464
|
+
return (0, exports.HostingPocketBaseApiFp)(this.configuration).createPocketBaseBackendV1(username, domain, hostingV1PocketBaseCreateBackendRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19465
|
+
}
|
|
19466
|
+
/**
|
|
19467
|
+
* 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.
|
|
19468
|
+
* @summary Delete PocketBase backend
|
|
19469
|
+
* @param {string} username
|
|
19470
|
+
* @param {string} domain Domain name
|
|
19471
|
+
* @param {*} [options] Override http request option.
|
|
19472
|
+
* @throws {RequiredError}
|
|
19473
|
+
* @memberof HostingPocketBaseApi
|
|
19474
|
+
*/
|
|
19475
|
+
deletePocketBaseBackendV1(username, domain, options) {
|
|
19476
|
+
return (0, exports.HostingPocketBaseApiFp)(this.configuration).deletePocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
19477
|
+
}
|
|
19478
|
+
/**
|
|
19479
|
+
* 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.
|
|
19480
|
+
* @summary Get PocketBase backend
|
|
19481
|
+
* @param {string} username
|
|
19482
|
+
* @param {string} domain Domain name
|
|
19483
|
+
* @param {*} [options] Override http request option.
|
|
19484
|
+
* @throws {RequiredError}
|
|
19485
|
+
* @memberof HostingPocketBaseApi
|
|
19486
|
+
*/
|
|
19487
|
+
getPocketBaseBackendV1(username, domain, options) {
|
|
19488
|
+
return (0, exports.HostingPocketBaseApiFp)(this.configuration).getPocketBaseBackendV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
19489
|
+
}
|
|
19490
|
+
/**
|
|
19491
|
+
* 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.
|
|
19492
|
+
* @summary List account PocketBase backends
|
|
19493
|
+
* @param {string} username
|
|
19494
|
+
* @param {*} [options] Override http request option.
|
|
19495
|
+
* @throws {RequiredError}
|
|
19496
|
+
* @memberof HostingPocketBaseApi
|
|
19497
|
+
*/
|
|
19498
|
+
listAccountPocketBaseBackendsV1(username, options) {
|
|
19499
|
+
return (0, exports.HostingPocketBaseApiFp)(this.configuration).listAccountPocketBaseBackendsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
19500
|
+
}
|
|
19501
|
+
/**
|
|
19502
|
+
* 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.
|
|
19503
|
+
* @summary Set PocketBase superuser
|
|
19504
|
+
* @param {string} username
|
|
19505
|
+
* @param {string} domain Domain name
|
|
19506
|
+
* @param {HostingV1PocketBaseUpdateSuperuserRequest} [hostingV1PocketBaseUpdateSuperuserRequest]
|
|
19507
|
+
* @param {*} [options] Override http request option.
|
|
19508
|
+
* @throws {RequiredError}
|
|
19509
|
+
* @memberof HostingPocketBaseApi
|
|
19510
|
+
*/
|
|
19511
|
+
setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options) {
|
|
19512
|
+
return (0, exports.HostingPocketBaseApiFp)(this.configuration).setPocketBaseSuperuserV1(username, domain, hostingV1PocketBaseUpdateSuperuserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19513
|
+
}
|
|
19514
|
+
}
|
|
19515
|
+
exports.HostingPocketBaseApi = HostingPocketBaseApi;
|
|
19068
19516
|
/**
|
|
19069
19517
|
* HostingRedirectsApi - axios parameter creator
|
|
19070
19518
|
* @export
|
|
@@ -19915,7 +20363,7 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
19915
20363
|
};
|
|
19916
20364
|
}),
|
|
19917
20365
|
/**
|
|
19918
|
-
* 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
|
|
20366
|
+
* 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.
|
|
19919
20367
|
* @summary Start website setup
|
|
19920
20368
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19921
20369
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -20048,7 +20496,7 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
20048
20496
|
});
|
|
20049
20497
|
},
|
|
20050
20498
|
/**
|
|
20051
|
-
* 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
|
|
20499
|
+
* 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.
|
|
20052
20500
|
* @summary Start website setup
|
|
20053
20501
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
20054
20502
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -20135,7 +20583,7 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
20135
20583
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
20136
20584
|
},
|
|
20137
20585
|
/**
|
|
20138
|
-
* 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
|
|
20586
|
+
* 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.
|
|
20139
20587
|
* @summary Start website setup
|
|
20140
20588
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
20141
20589
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -20222,7 +20670,7 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
20222
20670
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
20223
20671
|
}
|
|
20224
20672
|
/**
|
|
20225
|
-
* 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
|
|
20673
|
+
* 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.
|
|
20226
20674
|
* @summary Start website setup
|
|
20227
20675
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
20228
20676
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -35670,7 +36118,7 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
35670
36118
|
};
|
|
35671
36119
|
}),
|
|
35672
36120
|
/**
|
|
35673
|
-
* 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
|
|
36121
|
+
* 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.
|
|
35674
36122
|
* @summary Install WordPress
|
|
35675
36123
|
* @param {string} username
|
|
35676
36124
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -35951,7 +36399,7 @@ const WordPressInstallationsApiFp = function (configuration) {
|
|
|
35951
36399
|
});
|
|
35952
36400
|
},
|
|
35953
36401
|
/**
|
|
35954
|
-
* 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
|
|
36402
|
+
* 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.
|
|
35955
36403
|
* @summary Install WordPress
|
|
35956
36404
|
* @param {string} username
|
|
35957
36405
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -36099,7 +36547,7 @@ const WordPressInstallationsApiFactory = function (configuration, basePath, axio
|
|
|
36099
36547
|
return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
|
|
36100
36548
|
},
|
|
36101
36549
|
/**
|
|
36102
|
-
* 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
|
|
36550
|
+
* 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.
|
|
36103
36551
|
* @summary Install WordPress
|
|
36104
36552
|
* @param {string} username
|
|
36105
36553
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -36227,7 +36675,7 @@ class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
|
36227
36675
|
return (0, exports.WordPressInstallationsApiFp)(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
36228
36676
|
}
|
|
36229
36677
|
/**
|
|
36230
|
-
* 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
|
|
36678
|
+
* 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.
|
|
36231
36679
|
* @summary Install WordPress
|
|
36232
36680
|
* @param {string} username
|
|
36233
36681
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|