@hostinger/sdk 1.53.2 → 1.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +547 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +318 -1
- package/dist/api.js +439 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +318 -1
- package/dist/esm/api.js +423 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingSSLApi.md +238 -0
- package/docs/AgencyHostingV1SslSslStatusResource.md +24 -0
- package/docs/HostingDatabasesApi.md +62 -0
- package/docs/HostingV1DatabasesSetupDatabaseRequest.md +22 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseConnectionResource.md +26 -0
- package/docs/HostingV1DatabasesWebsiteDatabaseResource.md +22 -0
- 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: 1.
|
|
7
|
+
* API Version: 1.54.1
|
|
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
|
|
@@ -19,17 +19,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
22
|
+
exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = 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.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = 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.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 = 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.HostingV1SslSslStatusResourceProviderEnum = exports.HostingV1SslSslStatusResourceStatusEnum = 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.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = void 0;
|
|
24
|
+
exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = 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.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = 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 = void 0;
|
|
25
|
+
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 = 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.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = void 0;
|
|
26
|
+
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 = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = 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 = void 0;
|
|
27
|
+
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 = 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 = void 0;
|
|
28
|
+
exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = 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.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = void 0;
|
|
29
|
+
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.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = void 0;
|
|
30
|
+
exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = 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 = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = void 0;
|
|
31
|
+
exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = 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 = void 0;
|
|
32
|
+
exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = 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.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = void 0;
|
|
33
34
|
const axios_1 = require("axios");
|
|
34
35
|
// Some imports not used depending on template conditions
|
|
35
36
|
// @ts-ignore
|
|
@@ -52,6 +53,13 @@ exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = {
|
|
|
52
53
|
Running: 'running',
|
|
53
54
|
Completed: 'completed'
|
|
54
55
|
};
|
|
56
|
+
exports.AgencyHostingV1SslSslStatusResourceStatusEnum = {
|
|
57
|
+
NotInstalled: 'not_installed',
|
|
58
|
+
Installing: 'installing',
|
|
59
|
+
Failed: 'failed',
|
|
60
|
+
Active: 'active',
|
|
61
|
+
Expired: 'expired'
|
|
62
|
+
};
|
|
55
63
|
exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = {
|
|
56
64
|
Wordpress: 'wordpress',
|
|
57
65
|
Builder: 'builder',
|
|
@@ -3476,6 +3484,344 @@ class AgencyHostingPHPApi extends base_1.BaseAPI {
|
|
|
3476
3484
|
}
|
|
3477
3485
|
}
|
|
3478
3486
|
exports.AgencyHostingPHPApi = AgencyHostingPHPApi;
|
|
3487
|
+
/**
|
|
3488
|
+
* AgencyHostingSSLApi - axios parameter creator
|
|
3489
|
+
* @export
|
|
3490
|
+
*/
|
|
3491
|
+
const AgencyHostingSSLApiAxiosParamCreator = function (configuration) {
|
|
3492
|
+
return {
|
|
3493
|
+
/**
|
|
3494
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3495
|
+
* @summary Get website SSL status
|
|
3496
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3497
|
+
* @param {string} domain Domain name
|
|
3498
|
+
* @param {*} [options] Override http request option.
|
|
3499
|
+
* @throws {RequiredError}
|
|
3500
|
+
*/
|
|
3501
|
+
getWebsiteSSLStatusV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3502
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3503
|
+
(0, common_1.assertParamExists)('getWebsiteSSLStatusV1', 'websiteUid', websiteUid);
|
|
3504
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3505
|
+
(0, common_1.assertParamExists)('getWebsiteSSLStatusV1', 'domain', domain);
|
|
3506
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/status`
|
|
3507
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3508
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3509
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3510
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3511
|
+
let baseOptions;
|
|
3512
|
+
if (configuration) {
|
|
3513
|
+
baseOptions = configuration.baseOptions;
|
|
3514
|
+
}
|
|
3515
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3516
|
+
const localVarHeaderParameter = {};
|
|
3517
|
+
const localVarQueryParameter = {};
|
|
3518
|
+
// authentication apiToken required
|
|
3519
|
+
// http bearer authentication required
|
|
3520
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3521
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3523
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3524
|
+
return {
|
|
3525
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3526
|
+
options: localVarRequestOptions,
|
|
3527
|
+
};
|
|
3528
|
+
}),
|
|
3529
|
+
/**
|
|
3530
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3531
|
+
* @summary Install website SSL
|
|
3532
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3533
|
+
* @param {string} domain Domain name
|
|
3534
|
+
* @param {*} [options] Override http request option.
|
|
3535
|
+
* @throws {RequiredError}
|
|
3536
|
+
*/
|
|
3537
|
+
installWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3538
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3539
|
+
(0, common_1.assertParamExists)('installWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3540
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3541
|
+
(0, common_1.assertParamExists)('installWebsiteSSLV1', 'domain', domain);
|
|
3542
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/setup`
|
|
3543
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3544
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3546
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3547
|
+
let baseOptions;
|
|
3548
|
+
if (configuration) {
|
|
3549
|
+
baseOptions = configuration.baseOptions;
|
|
3550
|
+
}
|
|
3551
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3552
|
+
const localVarHeaderParameter = {};
|
|
3553
|
+
const localVarQueryParameter = {};
|
|
3554
|
+
// authentication apiToken required
|
|
3555
|
+
// http bearer authentication required
|
|
3556
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3560
|
+
return {
|
|
3561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3562
|
+
options: localVarRequestOptions,
|
|
3563
|
+
};
|
|
3564
|
+
}),
|
|
3565
|
+
/**
|
|
3566
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3567
|
+
* @summary Reinstall website SSL
|
|
3568
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3569
|
+
* @param {string} domain Domain name
|
|
3570
|
+
* @param {*} [options] Override http request option.
|
|
3571
|
+
* @throws {RequiredError}
|
|
3572
|
+
*/
|
|
3573
|
+
reinstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3574
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3575
|
+
(0, common_1.assertParamExists)('reinstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3576
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3577
|
+
(0, common_1.assertParamExists)('reinstallWebsiteSSLV1', 'domain', domain);
|
|
3578
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/reinstall`
|
|
3579
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3580
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3581
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3582
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3583
|
+
let baseOptions;
|
|
3584
|
+
if (configuration) {
|
|
3585
|
+
baseOptions = configuration.baseOptions;
|
|
3586
|
+
}
|
|
3587
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3588
|
+
const localVarHeaderParameter = {};
|
|
3589
|
+
const localVarQueryParameter = {};
|
|
3590
|
+
// authentication apiToken required
|
|
3591
|
+
// http bearer authentication required
|
|
3592
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3593
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3595
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3596
|
+
return {
|
|
3597
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3598
|
+
options: localVarRequestOptions,
|
|
3599
|
+
};
|
|
3600
|
+
}),
|
|
3601
|
+
/**
|
|
3602
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3603
|
+
* @summary Uninstall website SSL
|
|
3604
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3605
|
+
* @param {string} domain Domain name
|
|
3606
|
+
* @param {*} [options] Override http request option.
|
|
3607
|
+
* @throws {RequiredError}
|
|
3608
|
+
*/
|
|
3609
|
+
uninstallWebsiteSSLV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
3610
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
3611
|
+
(0, common_1.assertParamExists)('uninstallWebsiteSSLV1', 'websiteUid', websiteUid);
|
|
3612
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3613
|
+
(0, common_1.assertParamExists)('uninstallWebsiteSSLV1', 'domain', domain);
|
|
3614
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl`
|
|
3615
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
3616
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3618
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3619
|
+
let baseOptions;
|
|
3620
|
+
if (configuration) {
|
|
3621
|
+
baseOptions = configuration.baseOptions;
|
|
3622
|
+
}
|
|
3623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3624
|
+
const localVarHeaderParameter = {};
|
|
3625
|
+
const localVarQueryParameter = {};
|
|
3626
|
+
// authentication apiToken required
|
|
3627
|
+
// http bearer authentication required
|
|
3628
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3629
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3631
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3632
|
+
return {
|
|
3633
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3634
|
+
options: localVarRequestOptions,
|
|
3635
|
+
};
|
|
3636
|
+
}),
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3639
|
+
exports.AgencyHostingSSLApiAxiosParamCreator = AgencyHostingSSLApiAxiosParamCreator;
|
|
3640
|
+
/**
|
|
3641
|
+
* AgencyHostingSSLApi - functional programming interface
|
|
3642
|
+
* @export
|
|
3643
|
+
*/
|
|
3644
|
+
const AgencyHostingSSLApiFp = function (configuration) {
|
|
3645
|
+
const localVarAxiosParamCreator = (0, exports.AgencyHostingSSLApiAxiosParamCreator)(configuration);
|
|
3646
|
+
return {
|
|
3647
|
+
/**
|
|
3648
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3649
|
+
* @summary Get website SSL status
|
|
3650
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3651
|
+
* @param {string} domain Domain name
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
*/
|
|
3655
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3657
|
+
var _a, _b;
|
|
3658
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteSSLStatusV1(websiteUid, domain, options);
|
|
3659
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingSSLApi.getWebsiteSSLStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3660
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3661
|
+
});
|
|
3662
|
+
},
|
|
3663
|
+
/**
|
|
3664
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3665
|
+
* @summary Install website SSL
|
|
3666
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3667
|
+
* @param {string} domain Domain name
|
|
3668
|
+
* @param {*} [options] Override http request option.
|
|
3669
|
+
* @throws {RequiredError}
|
|
3670
|
+
*/
|
|
3671
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3673
|
+
var _a, _b;
|
|
3674
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWebsiteSSLV1(websiteUid, domain, options);
|
|
3675
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingSSLApi.installWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3677
|
+
});
|
|
3678
|
+
},
|
|
3679
|
+
/**
|
|
3680
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3681
|
+
* @summary Reinstall website SSL
|
|
3682
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3683
|
+
* @param {string} domain Domain name
|
|
3684
|
+
* @param {*} [options] Override http request option.
|
|
3685
|
+
* @throws {RequiredError}
|
|
3686
|
+
*/
|
|
3687
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3689
|
+
var _a, _b;
|
|
3690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reinstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3691
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingSSLApi.reinstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3693
|
+
});
|
|
3694
|
+
},
|
|
3695
|
+
/**
|
|
3696
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3697
|
+
* @summary Uninstall website SSL
|
|
3698
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3699
|
+
* @param {string} domain Domain name
|
|
3700
|
+
* @param {*} [options] Override http request option.
|
|
3701
|
+
* @throws {RequiredError}
|
|
3702
|
+
*/
|
|
3703
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3705
|
+
var _a, _b;
|
|
3706
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallWebsiteSSLV1(websiteUid, domain, options);
|
|
3707
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingSSLApi.uninstallWebsiteSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3708
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3709
|
+
});
|
|
3710
|
+
},
|
|
3711
|
+
};
|
|
3712
|
+
};
|
|
3713
|
+
exports.AgencyHostingSSLApiFp = AgencyHostingSSLApiFp;
|
|
3714
|
+
/**
|
|
3715
|
+
* AgencyHostingSSLApi - factory interface
|
|
3716
|
+
* @export
|
|
3717
|
+
*/
|
|
3718
|
+
const AgencyHostingSSLApiFactory = function (configuration, basePath, axios) {
|
|
3719
|
+
const localVarFp = (0, exports.AgencyHostingSSLApiFp)(configuration);
|
|
3720
|
+
return {
|
|
3721
|
+
/**
|
|
3722
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3723
|
+
* @summary Get website SSL status
|
|
3724
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3725
|
+
* @param {string} domain Domain name
|
|
3726
|
+
* @param {*} [options] Override http request option.
|
|
3727
|
+
* @throws {RequiredError}
|
|
3728
|
+
*/
|
|
3729
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3730
|
+
return localVarFp.getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3731
|
+
},
|
|
3732
|
+
/**
|
|
3733
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3734
|
+
* @summary Install website SSL
|
|
3735
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3736
|
+
* @param {string} domain Domain name
|
|
3737
|
+
* @param {*} [options] Override http request option.
|
|
3738
|
+
* @throws {RequiredError}
|
|
3739
|
+
*/
|
|
3740
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3741
|
+
return localVarFp.installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3742
|
+
},
|
|
3743
|
+
/**
|
|
3744
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3745
|
+
* @summary Reinstall website SSL
|
|
3746
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3747
|
+
* @param {string} domain Domain name
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
*/
|
|
3751
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3752
|
+
return localVarFp.reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3753
|
+
},
|
|
3754
|
+
/**
|
|
3755
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3756
|
+
* @summary Uninstall website SSL
|
|
3757
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3758
|
+
* @param {string} domain Domain name
|
|
3759
|
+
* @param {*} [options] Override http request option.
|
|
3760
|
+
* @throws {RequiredError}
|
|
3761
|
+
*/
|
|
3762
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3763
|
+
return localVarFp.uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
3764
|
+
},
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
exports.AgencyHostingSSLApiFactory = AgencyHostingSSLApiFactory;
|
|
3768
|
+
/**
|
|
3769
|
+
* AgencyHostingSSLApi - object-oriented interface
|
|
3770
|
+
* @export
|
|
3771
|
+
* @class AgencyHostingSSLApi
|
|
3772
|
+
* @extends {BaseAPI}
|
|
3773
|
+
*/
|
|
3774
|
+
class AgencyHostingSSLApi extends base_1.BaseAPI {
|
|
3775
|
+
/**
|
|
3776
|
+
* Returns the SSL state of one domain of an Agency Plan website: the certificate `status`, whether the certificate was uploaded by the customer, and when it stops being valid. `installing` means a certificate setup is running or retrying; the `ssl_setup` entry of `List website processes` shows the same progress. `active` means a valid certificate is in place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for the domain. `failed` means the last setup gave up and no valid certificate is in place. `expired` means the certificate has run out. `not_installed` means the domain has no certificate and no setup process. Returns 404 when the website or the domain does not exist.
|
|
3777
|
+
* @summary Get website SSL status
|
|
3778
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3779
|
+
* @param {string} domain Domain name
|
|
3780
|
+
* @param {*} [options] Override http request option.
|
|
3781
|
+
* @throws {RequiredError}
|
|
3782
|
+
* @memberof AgencyHostingSSLApi
|
|
3783
|
+
*/
|
|
3784
|
+
getWebsiteSSLStatusV1(websiteUid, domain, options) {
|
|
3785
|
+
return (0, exports.AgencyHostingSSLApiFp)(this.configuration).getWebsiteSSLStatusV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3786
|
+
}
|
|
3787
|
+
/**
|
|
3788
|
+
* Starts a Let\'s Encrypt certificate setup for the domain and returns at once; the setup runs in the background. `Get website SSL status` reports `installing` while it runs, then `active` or `failed`; the `ssl_setup` entry of `List website processes` shows the same progress. Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3789
|
+
* @summary Install website SSL
|
|
3790
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3791
|
+
* @param {string} domain Domain name
|
|
3792
|
+
* @param {*} [options] Override http request option.
|
|
3793
|
+
* @throws {RequiredError}
|
|
3794
|
+
* @memberof AgencyHostingSSLApi
|
|
3795
|
+
*/
|
|
3796
|
+
installWebsiteSSLV1(websiteUid, domain, options) {
|
|
3797
|
+
return (0, exports.AgencyHostingSSLApiFp)(this.configuration).installWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3798
|
+
}
|
|
3799
|
+
/**
|
|
3800
|
+
* Replaces the Let\'s Encrypt certificate of the domain: the current platform certificate, when one is recorded, is revoked and removed, then a new setup starts in the background. Returns at once; `Get website SSL status` reports `installing` while it runs, then `active` or `failed`. Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3801
|
+
* @summary Reinstall website SSL
|
|
3802
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3803
|
+
* @param {string} domain Domain name
|
|
3804
|
+
* @param {*} [options] Override http request option.
|
|
3805
|
+
* @throws {RequiredError}
|
|
3806
|
+
* @memberof AgencyHostingSSLApi
|
|
3807
|
+
*/
|
|
3808
|
+
reinstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3809
|
+
return (0, exports.AgencyHostingSSLApiFp)(this.configuration).reinstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
* Removes the platform-issued Let\'s Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected. Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
|
|
3813
|
+
* @summary Uninstall website SSL
|
|
3814
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
3815
|
+
* @param {string} domain Domain name
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
* @memberof AgencyHostingSSLApi
|
|
3819
|
+
*/
|
|
3820
|
+
uninstallWebsiteSSLV1(websiteUid, domain, options) {
|
|
3821
|
+
return (0, exports.AgencyHostingSSLApiFp)(this.configuration).uninstallWebsiteSSLV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
exports.AgencyHostingSSLApi = AgencyHostingSSLApi;
|
|
3479
3825
|
/**
|
|
3480
3826
|
* AgencyHostingWebsiteSetupsApi - axios parameter creator
|
|
3481
3827
|
* @export
|
|
@@ -13010,6 +13356,45 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
13010
13356
|
options: localVarRequestOptions,
|
|
13011
13357
|
};
|
|
13012
13358
|
}),
|
|
13359
|
+
/**
|
|
13360
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13361
|
+
* @summary Setup website database
|
|
13362
|
+
* @param {string} username
|
|
13363
|
+
* @param {string} domain Domain name
|
|
13364
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13365
|
+
* @param {*} [options] Override http request option.
|
|
13366
|
+
* @throws {RequiredError}
|
|
13367
|
+
*/
|
|
13368
|
+
setupWebsiteDatabaseV1: (username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DatabasesSetupDatabaseRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DatabasesSetupDatabaseRequest, options = {}) {
|
|
13369
|
+
// verify required parameter 'username' is not null or undefined
|
|
13370
|
+
(0, common_1.assertParamExists)('setupWebsiteDatabaseV1', 'username', username);
|
|
13371
|
+
// verify required parameter 'domain' is not null or undefined
|
|
13372
|
+
(0, common_1.assertParamExists)('setupWebsiteDatabaseV1', 'domain', domain);
|
|
13373
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
13374
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13375
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
13376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13378
|
+
let baseOptions;
|
|
13379
|
+
if (configuration) {
|
|
13380
|
+
baseOptions = configuration.baseOptions;
|
|
13381
|
+
}
|
|
13382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13383
|
+
const localVarHeaderParameter = {};
|
|
13384
|
+
const localVarQueryParameter = {};
|
|
13385
|
+
// authentication apiToken required
|
|
13386
|
+
// http bearer authentication required
|
|
13387
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13389
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13391
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13392
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesSetupDatabaseRequest, localVarRequestOptions, configuration);
|
|
13393
|
+
return {
|
|
13394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13395
|
+
options: localVarRequestOptions,
|
|
13396
|
+
};
|
|
13397
|
+
}),
|
|
13013
13398
|
};
|
|
13014
13399
|
};
|
|
13015
13400
|
exports.HostingDatabasesApiAxiosParamCreator = HostingDatabasesApiAxiosParamCreator;
|
|
@@ -13171,6 +13556,23 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
13171
13556
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13172
13557
|
});
|
|
13173
13558
|
},
|
|
13559
|
+
/**
|
|
13560
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13561
|
+
* @summary Setup website database
|
|
13562
|
+
* @param {string} username
|
|
13563
|
+
* @param {string} domain Domain name
|
|
13564
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13565
|
+
* @param {*} [options] Override http request option.
|
|
13566
|
+
* @throws {RequiredError}
|
|
13567
|
+
*/
|
|
13568
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13570
|
+
var _a, _b;
|
|
13571
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options);
|
|
13572
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.setupWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13573
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13574
|
+
});
|
|
13575
|
+
},
|
|
13174
13576
|
};
|
|
13175
13577
|
};
|
|
13176
13578
|
exports.HostingDatabasesApiFp = HostingDatabasesApiFp;
|
|
@@ -13287,6 +13689,18 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
13287
13689
|
repairDatabaseV1(username, name, options) {
|
|
13288
13690
|
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
13289
13691
|
},
|
|
13692
|
+
/**
|
|
13693
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13694
|
+
* @summary Setup website database
|
|
13695
|
+
* @param {string} username
|
|
13696
|
+
* @param {string} domain Domain name
|
|
13697
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13698
|
+
* @param {*} [options] Override http request option.
|
|
13699
|
+
* @throws {RequiredError}
|
|
13700
|
+
*/
|
|
13701
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13702
|
+
return localVarFp.setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13703
|
+
},
|
|
13290
13704
|
};
|
|
13291
13705
|
};
|
|
13292
13706
|
exports.HostingDatabasesApiFactory = HostingDatabasesApiFactory;
|
|
@@ -13412,6 +13826,19 @@ class HostingDatabasesApi extends base_1.BaseAPI {
|
|
|
13412
13826
|
repairDatabaseV1(username, name, options) {
|
|
13413
13827
|
return (0, exports.HostingDatabasesApiFp)(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
13414
13828
|
}
|
|
13829
|
+
/**
|
|
13830
|
+
* Creates a new MySQL database for the website and writes its connection details into the website\'s environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment. Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and `DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded). Existing variables are kept. If the website already has any variable with one of these names the call fails with 422 and nothing is created; the `Replace Node.js environment variables` endpoint removes them. After this call the variables are ordinary environment variables: the `Replace Node.js environment variables` endpoint changes or removes them like any other. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. Frameworks that bake variables into the build output (Next.js, `NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint). A password in the request is ignored; the platform always generates it. The optional `name` and `user` are identifiers, not secrets.
|
|
13831
|
+
* @summary Setup website database
|
|
13832
|
+
* @param {string} username
|
|
13833
|
+
* @param {string} domain Domain name
|
|
13834
|
+
* @param {HostingV1DatabasesSetupDatabaseRequest} [hostingV1DatabasesSetupDatabaseRequest]
|
|
13835
|
+
* @param {*} [options] Override http request option.
|
|
13836
|
+
* @throws {RequiredError}
|
|
13837
|
+
* @memberof HostingDatabasesApi
|
|
13838
|
+
*/
|
|
13839
|
+
setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options) {
|
|
13840
|
+
return (0, exports.HostingDatabasesApiFp)(this.configuration).setupWebsiteDatabaseV1(username, domain, hostingV1DatabasesSetupDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13841
|
+
}
|
|
13415
13842
|
}
|
|
13416
13843
|
exports.HostingDatabasesApi = HostingDatabasesApi;
|
|
13417
13844
|
/**
|