@hostinger/sdk 1.52.1 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +891 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +568 -16
- package/dist/api.js +621 -25
- 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 +568 -16
- package/dist/esm/api.js +607 -15
- 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/HostingGitApi.md +178 -2
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingSSLApi.md +242 -0
- package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
- package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
- package/docs/HostingV1GitGitCommitResource.md +24 -0
- package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
- package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
- package/docs/HostingV1SslSslStatusResource.md +30 -0
- package/docs/HostingV1SslToggleHttpsRedirectRequest.md +20 -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.53.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,16 +20,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = 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.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.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 = 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 = void 0;
|
|
23
|
+
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 = 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 = void 0;
|
|
24
|
+
exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = 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 = void 0;
|
|
25
|
+
exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = 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 = void 0;
|
|
26
|
+
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 = 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 = void 0;
|
|
27
|
+
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 = 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 = void 0;
|
|
28
|
+
exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = 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 = void 0;
|
|
29
|
+
exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = 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.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = void 0;
|
|
30
|
+
exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = 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 = void 0;
|
|
31
|
+
exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = 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 = void 0;
|
|
32
|
+
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 = 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 = void 0;
|
|
33
33
|
const axios_1 = require("axios");
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -363,7 +363,8 @@ exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
|
|
|
363
363
|
Pnpm: 'pnpm'
|
|
364
364
|
};
|
|
365
365
|
exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
|
|
366
|
-
Archive: 'archive'
|
|
366
|
+
Archive: 'archive',
|
|
367
|
+
Git: 'git'
|
|
367
368
|
};
|
|
368
369
|
exports.HostingV1NodeJsBuildResourceStateEnum = {
|
|
369
370
|
Pending: 'pending',
|
|
@@ -462,7 +463,8 @@ exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
|
462
463
|
Pnpm: 'pnpm'
|
|
463
464
|
};
|
|
464
465
|
exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
465
|
-
Archive: 'archive'
|
|
466
|
+
Archive: 'archive',
|
|
467
|
+
Git: 'git'
|
|
466
468
|
};
|
|
467
469
|
exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = {
|
|
468
470
|
CreateReactApp: 'create-react-app',
|
|
@@ -529,6 +531,21 @@ exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = {
|
|
|
529
531
|
Critical: 'critical',
|
|
530
532
|
Unknown: 'unknown'
|
|
531
533
|
};
|
|
534
|
+
exports.HostingV1SslSslStatusResourceStatusEnum = {
|
|
535
|
+
NotInstalled: 'not_installed',
|
|
536
|
+
Installing: 'installing',
|
|
537
|
+
WaitingForRetry: 'waiting_for_retry',
|
|
538
|
+
Active: 'active',
|
|
539
|
+
Expired: 'expired',
|
|
540
|
+
Failed: 'failed'
|
|
541
|
+
};
|
|
542
|
+
exports.HostingV1SslSslStatusResourceProviderEnum = {
|
|
543
|
+
Custom: 'custom',
|
|
544
|
+
Letsencrypt: 'letsencrypt',
|
|
545
|
+
Zerossl: 'zerossl',
|
|
546
|
+
Googlessl: 'googlessl',
|
|
547
|
+
Hssl: 'hssl'
|
|
548
|
+
};
|
|
532
549
|
exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
533
550
|
Main: 'main',
|
|
534
551
|
Addon: 'addon',
|
|
@@ -14484,7 +14501,79 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
14484
14501
|
const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
14485
14502
|
return {
|
|
14486
14503
|
/**
|
|
14487
|
-
*
|
|
14504
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14505
|
+
* @summary Delete Git auto-deployment settings
|
|
14506
|
+
* @param {string} username
|
|
14507
|
+
* @param {string} domain Domain name
|
|
14508
|
+
* @param {*} [options] Override http request option.
|
|
14509
|
+
* @throws {RequiredError}
|
|
14510
|
+
*/
|
|
14511
|
+
deleteGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14512
|
+
// verify required parameter 'username' is not null or undefined
|
|
14513
|
+
(0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'username', username);
|
|
14514
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14515
|
+
(0, common_1.assertParamExists)('deleteGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14516
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14517
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14518
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14519
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14520
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14521
|
+
let baseOptions;
|
|
14522
|
+
if (configuration) {
|
|
14523
|
+
baseOptions = configuration.baseOptions;
|
|
14524
|
+
}
|
|
14525
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14526
|
+
const localVarHeaderParameter = {};
|
|
14527
|
+
const localVarQueryParameter = {};
|
|
14528
|
+
// authentication apiToken required
|
|
14529
|
+
// http bearer authentication required
|
|
14530
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14531
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14532
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14533
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14534
|
+
return {
|
|
14535
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14536
|
+
options: localVarRequestOptions,
|
|
14537
|
+
};
|
|
14538
|
+
}),
|
|
14539
|
+
/**
|
|
14540
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14541
|
+
* @summary Get Git auto-deployment settings
|
|
14542
|
+
* @param {string} username
|
|
14543
|
+
* @param {string} domain Domain name
|
|
14544
|
+
* @param {*} [options] Override http request option.
|
|
14545
|
+
* @throws {RequiredError}
|
|
14546
|
+
*/
|
|
14547
|
+
getGitAutoDeploymentSettingsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14548
|
+
// verify required parameter 'username' is not null or undefined
|
|
14549
|
+
(0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'username', username);
|
|
14550
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14551
|
+
(0, common_1.assertParamExists)('getGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14552
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14553
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14554
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14555
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14556
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14557
|
+
let baseOptions;
|
|
14558
|
+
if (configuration) {
|
|
14559
|
+
baseOptions = configuration.baseOptions;
|
|
14560
|
+
}
|
|
14561
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14562
|
+
const localVarHeaderParameter = {};
|
|
14563
|
+
const localVarQueryParameter = {};
|
|
14564
|
+
// authentication apiToken required
|
|
14565
|
+
// http bearer authentication required
|
|
14566
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14567
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14568
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14569
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14570
|
+
return {
|
|
14571
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14572
|
+
options: localVarRequestOptions,
|
|
14573
|
+
};
|
|
14574
|
+
}),
|
|
14575
|
+
/**
|
|
14576
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14488
14577
|
* @summary List Git installation repositories
|
|
14489
14578
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14490
14579
|
* @param {*} [options] Override http request option.
|
|
@@ -14516,7 +14605,7 @@ const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
|
14516
14605
|
};
|
|
14517
14606
|
}),
|
|
14518
14607
|
/**
|
|
14519
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
14608
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14520
14609
|
* @summary List Git installations
|
|
14521
14610
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14522
14611
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -14551,6 +14640,47 @@ const HostingGitApiAxiosParamCreator = function (configuration) {
|
|
|
14551
14640
|
options: localVarRequestOptions,
|
|
14552
14641
|
};
|
|
14553
14642
|
}),
|
|
14643
|
+
/**
|
|
14644
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14645
|
+
* @summary Update Git auto-deployment settings
|
|
14646
|
+
* @param {string} username
|
|
14647
|
+
* @param {string} domain Domain name
|
|
14648
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14649
|
+
* @param {*} [options] Override http request option.
|
|
14650
|
+
* @throws {RequiredError}
|
|
14651
|
+
*/
|
|
14652
|
+
updateGitAutoDeploymentSettingsV1: (username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1GitUpdateGitAutoDeploymentSettingsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options = {}) {
|
|
14653
|
+
// verify required parameter 'username' is not null or undefined
|
|
14654
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'username', username);
|
|
14655
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14656
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'domain', domain);
|
|
14657
|
+
// verify required parameter 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest' is not null or undefined
|
|
14658
|
+
(0, common_1.assertParamExists)('updateGitAutoDeploymentSettingsV1', 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest', hostingV1GitUpdateGitAutoDeploymentSettingsRequest);
|
|
14659
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
14660
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14661
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14662
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14663
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14664
|
+
let baseOptions;
|
|
14665
|
+
if (configuration) {
|
|
14666
|
+
baseOptions = configuration.baseOptions;
|
|
14667
|
+
}
|
|
14668
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
14669
|
+
const localVarHeaderParameter = {};
|
|
14670
|
+
const localVarQueryParameter = {};
|
|
14671
|
+
// authentication apiToken required
|
|
14672
|
+
// http bearer authentication required
|
|
14673
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14674
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14675
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14678
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1GitUpdateGitAutoDeploymentSettingsRequest, localVarRequestOptions, configuration);
|
|
14679
|
+
return {
|
|
14680
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14681
|
+
options: localVarRequestOptions,
|
|
14682
|
+
};
|
|
14683
|
+
}),
|
|
14554
14684
|
};
|
|
14555
14685
|
};
|
|
14556
14686
|
exports.HostingGitApiAxiosParamCreator = HostingGitApiAxiosParamCreator;
|
|
@@ -14562,7 +14692,39 @@ const HostingGitApiFp = function (configuration) {
|
|
|
14562
14692
|
const localVarAxiosParamCreator = (0, exports.HostingGitApiAxiosParamCreator)(configuration);
|
|
14563
14693
|
return {
|
|
14564
14694
|
/**
|
|
14565
|
-
*
|
|
14695
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14696
|
+
* @summary Delete Git auto-deployment settings
|
|
14697
|
+
* @param {string} username
|
|
14698
|
+
* @param {string} domain Domain name
|
|
14699
|
+
* @param {*} [options] Override http request option.
|
|
14700
|
+
* @throws {RequiredError}
|
|
14701
|
+
*/
|
|
14702
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14703
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14704
|
+
var _a, _b;
|
|
14705
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14706
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14707
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14708
|
+
});
|
|
14709
|
+
},
|
|
14710
|
+
/**
|
|
14711
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14712
|
+
* @summary Get Git auto-deployment settings
|
|
14713
|
+
* @param {string} username
|
|
14714
|
+
* @param {string} domain Domain name
|
|
14715
|
+
* @param {*} [options] Override http request option.
|
|
14716
|
+
* @throws {RequiredError}
|
|
14717
|
+
*/
|
|
14718
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14720
|
+
var _a, _b;
|
|
14721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGitAutoDeploymentSettingsV1(username, domain, options);
|
|
14722
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14723
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14724
|
+
});
|
|
14725
|
+
},
|
|
14726
|
+
/**
|
|
14727
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14566
14728
|
* @summary List Git installation repositories
|
|
14567
14729
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14568
14730
|
* @param {*} [options] Override http request option.
|
|
@@ -14577,7 +14739,7 @@ const HostingGitApiFp = function (configuration) {
|
|
|
14577
14739
|
});
|
|
14578
14740
|
},
|
|
14579
14741
|
/**
|
|
14580
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
14742
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14581
14743
|
* @summary List Git installations
|
|
14582
14744
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14583
14745
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -14592,6 +14754,23 @@ const HostingGitApiFp = function (configuration) {
|
|
|
14592
14754
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14593
14755
|
});
|
|
14594
14756
|
},
|
|
14757
|
+
/**
|
|
14758
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14759
|
+
* @summary Update Git auto-deployment settings
|
|
14760
|
+
* @param {string} username
|
|
14761
|
+
* @param {string} domain Domain name
|
|
14762
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14763
|
+
* @param {*} [options] Override http request option.
|
|
14764
|
+
* @throws {RequiredError}
|
|
14765
|
+
*/
|
|
14766
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14768
|
+
var _a, _b;
|
|
14769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options);
|
|
14770
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingGitApi.updateGitAutoDeploymentSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14771
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14772
|
+
});
|
|
14773
|
+
},
|
|
14595
14774
|
};
|
|
14596
14775
|
};
|
|
14597
14776
|
exports.HostingGitApiFp = HostingGitApiFp;
|
|
@@ -14603,7 +14782,29 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
14603
14782
|
const localVarFp = (0, exports.HostingGitApiFp)(configuration);
|
|
14604
14783
|
return {
|
|
14605
14784
|
/**
|
|
14606
|
-
*
|
|
14785
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14786
|
+
* @summary Delete Git auto-deployment settings
|
|
14787
|
+
* @param {string} username
|
|
14788
|
+
* @param {string} domain Domain name
|
|
14789
|
+
* @param {*} [options] Override http request option.
|
|
14790
|
+
* @throws {RequiredError}
|
|
14791
|
+
*/
|
|
14792
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14793
|
+
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14794
|
+
},
|
|
14795
|
+
/**
|
|
14796
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14797
|
+
* @summary Get Git auto-deployment settings
|
|
14798
|
+
* @param {string} username
|
|
14799
|
+
* @param {string} domain Domain name
|
|
14800
|
+
* @param {*} [options] Override http request option.
|
|
14801
|
+
* @throws {RequiredError}
|
|
14802
|
+
*/
|
|
14803
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14804
|
+
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14805
|
+
},
|
|
14806
|
+
/**
|
|
14807
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14607
14808
|
* @summary List Git installation repositories
|
|
14608
14809
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14609
14810
|
* @param {*} [options] Override http request option.
|
|
@@ -14613,7 +14814,7 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
14613
14814
|
return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
|
|
14614
14815
|
},
|
|
14615
14816
|
/**
|
|
14616
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
14817
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14617
14818
|
* @summary List Git installations
|
|
14618
14819
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14619
14820
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -14623,6 +14824,18 @@ const HostingGitApiFactory = function (configuration, basePath, axios) {
|
|
|
14623
14824
|
listGitInstallationsV1(provider, status, options) {
|
|
14624
14825
|
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
14625
14826
|
},
|
|
14827
|
+
/**
|
|
14828
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14829
|
+
* @summary Update Git auto-deployment settings
|
|
14830
|
+
* @param {string} username
|
|
14831
|
+
* @param {string} domain Domain name
|
|
14832
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14833
|
+
* @param {*} [options] Override http request option.
|
|
14834
|
+
* @throws {RequiredError}
|
|
14835
|
+
*/
|
|
14836
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14837
|
+
return localVarFp.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(axios, basePath));
|
|
14838
|
+
},
|
|
14626
14839
|
};
|
|
14627
14840
|
};
|
|
14628
14841
|
exports.HostingGitApiFactory = HostingGitApiFactory;
|
|
@@ -14634,7 +14847,31 @@ exports.HostingGitApiFactory = HostingGitApiFactory;
|
|
|
14634
14847
|
*/
|
|
14635
14848
|
class HostingGitApi extends base_1.BaseAPI {
|
|
14636
14849
|
/**
|
|
14637
|
-
*
|
|
14850
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
14851
|
+
* @summary Delete Git auto-deployment settings
|
|
14852
|
+
* @param {string} username
|
|
14853
|
+
* @param {string} domain Domain name
|
|
14854
|
+
* @param {*} [options] Override http request option.
|
|
14855
|
+
* @throws {RequiredError}
|
|
14856
|
+
* @memberof HostingGitApi
|
|
14857
|
+
*/
|
|
14858
|
+
deleteGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14859
|
+
return (0, exports.HostingGitApiFp)(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14860
|
+
}
|
|
14861
|
+
/**
|
|
14862
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
14863
|
+
* @summary Get Git auto-deployment settings
|
|
14864
|
+
* @param {string} username
|
|
14865
|
+
* @param {string} domain Domain name
|
|
14866
|
+
* @param {*} [options] Override http request option.
|
|
14867
|
+
* @throws {RequiredError}
|
|
14868
|
+
* @memberof HostingGitApi
|
|
14869
|
+
*/
|
|
14870
|
+
getGitAutoDeploymentSettingsV1(username, domain, options) {
|
|
14871
|
+
return (0, exports.HostingGitApiFp)(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14872
|
+
}
|
|
14873
|
+
/**
|
|
14874
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
14638
14875
|
* @summary List Git installation repositories
|
|
14639
14876
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
14640
14877
|
* @param {*} [options] Override http request option.
|
|
@@ -14645,7 +14882,7 @@ class HostingGitApi extends base_1.BaseAPI {
|
|
|
14645
14882
|
return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationRepositoriesV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
14646
14883
|
}
|
|
14647
14884
|
/**
|
|
14648
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
14885
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
14649
14886
|
* @summary List Git installations
|
|
14650
14887
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
14651
14888
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -14656,6 +14893,19 @@ class HostingGitApi extends base_1.BaseAPI {
|
|
|
14656
14893
|
listGitInstallationsV1(provider, status, options) {
|
|
14657
14894
|
return (0, exports.HostingGitApiFp)(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
14658
14895
|
}
|
|
14896
|
+
/**
|
|
14897
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
14898
|
+
* @summary Update Git auto-deployment settings
|
|
14899
|
+
* @param {string} username
|
|
14900
|
+
* @param {string} domain Domain name
|
|
14901
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
14902
|
+
* @param {*} [options] Override http request option.
|
|
14903
|
+
* @throws {RequiredError}
|
|
14904
|
+
* @memberof HostingGitApi
|
|
14905
|
+
*/
|
|
14906
|
+
updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options) {
|
|
14907
|
+
return (0, exports.HostingGitApiFp)(this.configuration).updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14908
|
+
}
|
|
14659
14909
|
}
|
|
14660
14910
|
exports.HostingGitApi = HostingGitApi;
|
|
14661
14911
|
/**
|
|
@@ -15213,7 +15463,7 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
15213
15463
|
};
|
|
15214
15464
|
}),
|
|
15215
15465
|
/**
|
|
15216
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
15466
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15217
15467
|
* @summary Start Node.js build
|
|
15218
15468
|
* @param {string} username
|
|
15219
15469
|
* @param {string} domain Domain name
|
|
@@ -15528,7 +15778,7 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
15528
15778
|
});
|
|
15529
15779
|
},
|
|
15530
15780
|
/**
|
|
15531
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
15781
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15532
15782
|
* @summary Start Node.js build
|
|
15533
15783
|
* @param {string} username
|
|
15534
15784
|
* @param {string} domain Domain name
|
|
@@ -15730,7 +15980,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
15730
15980
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
15731
15981
|
},
|
|
15732
15982
|
/**
|
|
15733
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
15983
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15734
15984
|
* @summary Start Node.js build
|
|
15735
15985
|
* @param {string} username
|
|
15736
15986
|
* @param {string} domain Domain name
|
|
@@ -15935,7 +16185,7 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
15935
16185
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
15936
16186
|
}
|
|
15937
16187
|
/**
|
|
15938
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
16188
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
15939
16189
|
* @summary Start Node.js build
|
|
15940
16190
|
* @param {string} username
|
|
15941
16191
|
* @param {string} domain Domain name
|
|
@@ -16943,6 +17193,352 @@ class HostingRedirectsApi extends base_1.BaseAPI {
|
|
|
16943
17193
|
}
|
|
16944
17194
|
}
|
|
16945
17195
|
exports.HostingRedirectsApi = HostingRedirectsApi;
|
|
17196
|
+
/**
|
|
17197
|
+
* HostingSSLApi - axios parameter creator
|
|
17198
|
+
* @export
|
|
17199
|
+
*/
|
|
17200
|
+
const HostingSSLApiAxiosParamCreator = function (configuration) {
|
|
17201
|
+
return {
|
|
17202
|
+
/**
|
|
17203
|
+
* Returns the SSL state of the website: the certificate `status` and `provider`, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error. `installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the last installation gave up, or the website was not updated for 60 minutes while `installing`; `last_error` holds the reason when it is a known message, otherwise it is null. `expired` means the assigned certificate\'s validity has ended. `not_installed` means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report `active` with `provider` and `expires_at` null.
|
|
17204
|
+
* @summary Get SSL status
|
|
17205
|
+
* @param {string} username
|
|
17206
|
+
* @param {string} domain Domain name
|
|
17207
|
+
* @param {*} [options] Override http request option.
|
|
17208
|
+
* @throws {RequiredError}
|
|
17209
|
+
*/
|
|
17210
|
+
getSSLStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
17211
|
+
// verify required parameter 'username' is not null or undefined
|
|
17212
|
+
(0, common_1.assertParamExists)('getSSLStatusV1', 'username', username);
|
|
17213
|
+
// verify required parameter 'domain' is not null or undefined
|
|
17214
|
+
(0, common_1.assertParamExists)('getSSLStatusV1', 'domain', domain);
|
|
17215
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/ssl/status`
|
|
17216
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
17217
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
17218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17220
|
+
let baseOptions;
|
|
17221
|
+
if (configuration) {
|
|
17222
|
+
baseOptions = configuration.baseOptions;
|
|
17223
|
+
}
|
|
17224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17225
|
+
const localVarHeaderParameter = {};
|
|
17226
|
+
const localVarQueryParameter = {};
|
|
17227
|
+
// authentication apiToken required
|
|
17228
|
+
// http bearer authentication required
|
|
17229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17233
|
+
return {
|
|
17234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17235
|
+
options: localVarRequestOptions,
|
|
17236
|
+
};
|
|
17237
|
+
}),
|
|
17238
|
+
/**
|
|
17239
|
+
* Requests a lifetime SSL certificate for the website. The installation runs in the background; `Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate does not block the request: a new installation is requested, which is how a certificate is reinstalled. Returns 422 for free subdomains (their certificate is managed by the platform), while an installation is `installing` or `waiting_for_retry`, when the website\'s certificate was revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that one has to be uninstalled first.
|
|
17240
|
+
* @summary Install SSL
|
|
17241
|
+
* @param {string} username
|
|
17242
|
+
* @param {string} domain Domain name
|
|
17243
|
+
* @param {*} [options] Override http request option.
|
|
17244
|
+
* @throws {RequiredError}
|
|
17245
|
+
*/
|
|
17246
|
+
installSSLV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
17247
|
+
// verify required parameter 'username' is not null or undefined
|
|
17248
|
+
(0, common_1.assertParamExists)('installSSLV1', 'username', username);
|
|
17249
|
+
// verify required parameter 'domain' is not null or undefined
|
|
17250
|
+
(0, common_1.assertParamExists)('installSSLV1', 'domain', domain);
|
|
17251
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/ssl/setup`
|
|
17252
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
17253
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
17254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17256
|
+
let baseOptions;
|
|
17257
|
+
if (configuration) {
|
|
17258
|
+
baseOptions = configuration.baseOptions;
|
|
17259
|
+
}
|
|
17260
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17261
|
+
const localVarHeaderParameter = {};
|
|
17262
|
+
const localVarQueryParameter = {};
|
|
17263
|
+
// authentication apiToken required
|
|
17264
|
+
// http bearer authentication required
|
|
17265
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17266
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17267
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17268
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17269
|
+
return {
|
|
17270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17271
|
+
options: localVarRequestOptions,
|
|
17272
|
+
};
|
|
17273
|
+
}),
|
|
17274
|
+
/**
|
|
17275
|
+
* Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does nothing when the redirect is already in the requested state. Turning it on requires an installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422 when there is none; turning it off is always accepted.
|
|
17276
|
+
* @summary Toggle HTTPS redirect
|
|
17277
|
+
* @param {string} username
|
|
17278
|
+
* @param {string} domain Domain name
|
|
17279
|
+
* @param {HostingV1SslToggleHttpsRedirectRequest} hostingV1SslToggleHttpsRedirectRequest
|
|
17280
|
+
* @param {*} [options] Override http request option.
|
|
17281
|
+
* @throws {RequiredError}
|
|
17282
|
+
*/
|
|
17283
|
+
toggleHTTPSRedirectV1: (username_1, domain_1, hostingV1SslToggleHttpsRedirectRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1SslToggleHttpsRedirectRequest_1, ...args_1], void 0, function* (username, domain, hostingV1SslToggleHttpsRedirectRequest, options = {}) {
|
|
17284
|
+
// verify required parameter 'username' is not null or undefined
|
|
17285
|
+
(0, common_1.assertParamExists)('toggleHTTPSRedirectV1', 'username', username);
|
|
17286
|
+
// verify required parameter 'domain' is not null or undefined
|
|
17287
|
+
(0, common_1.assertParamExists)('toggleHTTPSRedirectV1', 'domain', domain);
|
|
17288
|
+
// verify required parameter 'hostingV1SslToggleHttpsRedirectRequest' is not null or undefined
|
|
17289
|
+
(0, common_1.assertParamExists)('toggleHTTPSRedirectV1', 'hostingV1SslToggleHttpsRedirectRequest', hostingV1SslToggleHttpsRedirectRequest);
|
|
17290
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/ssl/https-redirect/toggle`
|
|
17291
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
17292
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
17293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17294
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17295
|
+
let baseOptions;
|
|
17296
|
+
if (configuration) {
|
|
17297
|
+
baseOptions = configuration.baseOptions;
|
|
17298
|
+
}
|
|
17299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
17300
|
+
const localVarHeaderParameter = {};
|
|
17301
|
+
const localVarQueryParameter = {};
|
|
17302
|
+
// authentication apiToken required
|
|
17303
|
+
// http bearer authentication required
|
|
17304
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17305
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17306
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17308
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17309
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1SslToggleHttpsRedirectRequest, localVarRequestOptions, configuration);
|
|
17310
|
+
return {
|
|
17311
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17312
|
+
options: localVarRequestOptions,
|
|
17313
|
+
};
|
|
17314
|
+
}),
|
|
17315
|
+
/**
|
|
17316
|
+
* Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels a pending installation retry. The website serves plain HTTP until a new installation completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also succeeds when no certificate is assigned, so repeating it is safe. Returns 422 for free subdomains (their certificate is managed by the platform) and while an installation is `installing`.
|
|
17317
|
+
* @summary Uninstall SSL
|
|
17318
|
+
* @param {string} username
|
|
17319
|
+
* @param {string} domain Domain name
|
|
17320
|
+
* @param {*} [options] Override http request option.
|
|
17321
|
+
* @throws {RequiredError}
|
|
17322
|
+
*/
|
|
17323
|
+
uninstallSSLV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
17324
|
+
// verify required parameter 'username' is not null or undefined
|
|
17325
|
+
(0, common_1.assertParamExists)('uninstallSSLV1', 'username', username);
|
|
17326
|
+
// verify required parameter 'domain' is not null or undefined
|
|
17327
|
+
(0, common_1.assertParamExists)('uninstallSSLV1', 'domain', domain);
|
|
17328
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/ssl`
|
|
17329
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
17330
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
17331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17332
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17333
|
+
let baseOptions;
|
|
17334
|
+
if (configuration) {
|
|
17335
|
+
baseOptions = configuration.baseOptions;
|
|
17336
|
+
}
|
|
17337
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
17338
|
+
const localVarHeaderParameter = {};
|
|
17339
|
+
const localVarQueryParameter = {};
|
|
17340
|
+
// authentication apiToken required
|
|
17341
|
+
// http bearer authentication required
|
|
17342
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17343
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17344
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17345
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17346
|
+
return {
|
|
17347
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17348
|
+
options: localVarRequestOptions,
|
|
17349
|
+
};
|
|
17350
|
+
}),
|
|
17351
|
+
};
|
|
17352
|
+
};
|
|
17353
|
+
exports.HostingSSLApiAxiosParamCreator = HostingSSLApiAxiosParamCreator;
|
|
17354
|
+
/**
|
|
17355
|
+
* HostingSSLApi - functional programming interface
|
|
17356
|
+
* @export
|
|
17357
|
+
*/
|
|
17358
|
+
const HostingSSLApiFp = function (configuration) {
|
|
17359
|
+
const localVarAxiosParamCreator = (0, exports.HostingSSLApiAxiosParamCreator)(configuration);
|
|
17360
|
+
return {
|
|
17361
|
+
/**
|
|
17362
|
+
* Returns the SSL state of the website: the certificate `status` and `provider`, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error. `installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the last installation gave up, or the website was not updated for 60 minutes while `installing`; `last_error` holds the reason when it is a known message, otherwise it is null. `expired` means the assigned certificate\'s validity has ended. `not_installed` means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report `active` with `provider` and `expires_at` null.
|
|
17363
|
+
* @summary Get SSL status
|
|
17364
|
+
* @param {string} username
|
|
17365
|
+
* @param {string} domain Domain name
|
|
17366
|
+
* @param {*} [options] Override http request option.
|
|
17367
|
+
* @throws {RequiredError}
|
|
17368
|
+
*/
|
|
17369
|
+
getSSLStatusV1(username, domain, options) {
|
|
17370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17371
|
+
var _a, _b;
|
|
17372
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSSLStatusV1(username, domain, options);
|
|
17373
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingSSLApi.getSSLStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17374
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17375
|
+
});
|
|
17376
|
+
},
|
|
17377
|
+
/**
|
|
17378
|
+
* Requests a lifetime SSL certificate for the website. The installation runs in the background; `Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate does not block the request: a new installation is requested, which is how a certificate is reinstalled. Returns 422 for free subdomains (their certificate is managed by the platform), while an installation is `installing` or `waiting_for_retry`, when the website\'s certificate was revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that one has to be uninstalled first.
|
|
17379
|
+
* @summary Install SSL
|
|
17380
|
+
* @param {string} username
|
|
17381
|
+
* @param {string} domain Domain name
|
|
17382
|
+
* @param {*} [options] Override http request option.
|
|
17383
|
+
* @throws {RequiredError}
|
|
17384
|
+
*/
|
|
17385
|
+
installSSLV1(username, domain, options) {
|
|
17386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17387
|
+
var _a, _b;
|
|
17388
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installSSLV1(username, domain, options);
|
|
17389
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingSSLApi.installSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17390
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17391
|
+
});
|
|
17392
|
+
},
|
|
17393
|
+
/**
|
|
17394
|
+
* Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does nothing when the redirect is already in the requested state. Turning it on requires an installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422 when there is none; turning it off is always accepted.
|
|
17395
|
+
* @summary Toggle HTTPS redirect
|
|
17396
|
+
* @param {string} username
|
|
17397
|
+
* @param {string} domain Domain name
|
|
17398
|
+
* @param {HostingV1SslToggleHttpsRedirectRequest} hostingV1SslToggleHttpsRedirectRequest
|
|
17399
|
+
* @param {*} [options] Override http request option.
|
|
17400
|
+
* @throws {RequiredError}
|
|
17401
|
+
*/
|
|
17402
|
+
toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options) {
|
|
17403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17404
|
+
var _a, _b;
|
|
17405
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options);
|
|
17406
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingSSLApi.toggleHTTPSRedirectV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17408
|
+
});
|
|
17409
|
+
},
|
|
17410
|
+
/**
|
|
17411
|
+
* Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels a pending installation retry. The website serves plain HTTP until a new installation completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also succeeds when no certificate is assigned, so repeating it is safe. Returns 422 for free subdomains (their certificate is managed by the platform) and while an installation is `installing`.
|
|
17412
|
+
* @summary Uninstall SSL
|
|
17413
|
+
* @param {string} username
|
|
17414
|
+
* @param {string} domain Domain name
|
|
17415
|
+
* @param {*} [options] Override http request option.
|
|
17416
|
+
* @throws {RequiredError}
|
|
17417
|
+
*/
|
|
17418
|
+
uninstallSSLV1(username, domain, options) {
|
|
17419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17420
|
+
var _a, _b;
|
|
17421
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uninstallSSLV1(username, domain, options);
|
|
17422
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingSSLApi.uninstallSSLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17424
|
+
});
|
|
17425
|
+
},
|
|
17426
|
+
};
|
|
17427
|
+
};
|
|
17428
|
+
exports.HostingSSLApiFp = HostingSSLApiFp;
|
|
17429
|
+
/**
|
|
17430
|
+
* HostingSSLApi - factory interface
|
|
17431
|
+
* @export
|
|
17432
|
+
*/
|
|
17433
|
+
const HostingSSLApiFactory = function (configuration, basePath, axios) {
|
|
17434
|
+
const localVarFp = (0, exports.HostingSSLApiFp)(configuration);
|
|
17435
|
+
return {
|
|
17436
|
+
/**
|
|
17437
|
+
* Returns the SSL state of the website: the certificate `status` and `provider`, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error. `installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the last installation gave up, or the website was not updated for 60 minutes while `installing`; `last_error` holds the reason when it is a known message, otherwise it is null. `expired` means the assigned certificate\'s validity has ended. `not_installed` means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report `active` with `provider` and `expires_at` null.
|
|
17438
|
+
* @summary Get SSL status
|
|
17439
|
+
* @param {string} username
|
|
17440
|
+
* @param {string} domain Domain name
|
|
17441
|
+
* @param {*} [options] Override http request option.
|
|
17442
|
+
* @throws {RequiredError}
|
|
17443
|
+
*/
|
|
17444
|
+
getSSLStatusV1(username, domain, options) {
|
|
17445
|
+
return localVarFp.getSSLStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
17446
|
+
},
|
|
17447
|
+
/**
|
|
17448
|
+
* Requests a lifetime SSL certificate for the website. The installation runs in the background; `Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate does not block the request: a new installation is requested, which is how a certificate is reinstalled. Returns 422 for free subdomains (their certificate is managed by the platform), while an installation is `installing` or `waiting_for_retry`, when the website\'s certificate was revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that one has to be uninstalled first.
|
|
17449
|
+
* @summary Install SSL
|
|
17450
|
+
* @param {string} username
|
|
17451
|
+
* @param {string} domain Domain name
|
|
17452
|
+
* @param {*} [options] Override http request option.
|
|
17453
|
+
* @throws {RequiredError}
|
|
17454
|
+
*/
|
|
17455
|
+
installSSLV1(username, domain, options) {
|
|
17456
|
+
return localVarFp.installSSLV1(username, domain, options).then((request) => request(axios, basePath));
|
|
17457
|
+
},
|
|
17458
|
+
/**
|
|
17459
|
+
* Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does nothing when the redirect is already in the requested state. Turning it on requires an installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422 when there is none; turning it off is always accepted.
|
|
17460
|
+
* @summary Toggle HTTPS redirect
|
|
17461
|
+
* @param {string} username
|
|
17462
|
+
* @param {string} domain Domain name
|
|
17463
|
+
* @param {HostingV1SslToggleHttpsRedirectRequest} hostingV1SslToggleHttpsRedirectRequest
|
|
17464
|
+
* @param {*} [options] Override http request option.
|
|
17465
|
+
* @throws {RequiredError}
|
|
17466
|
+
*/
|
|
17467
|
+
toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options) {
|
|
17468
|
+
return localVarFp.toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options).then((request) => request(axios, basePath));
|
|
17469
|
+
},
|
|
17470
|
+
/**
|
|
17471
|
+
* Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels a pending installation retry. The website serves plain HTTP until a new installation completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also succeeds when no certificate is assigned, so repeating it is safe. Returns 422 for free subdomains (their certificate is managed by the platform) and while an installation is `installing`.
|
|
17472
|
+
* @summary Uninstall SSL
|
|
17473
|
+
* @param {string} username
|
|
17474
|
+
* @param {string} domain Domain name
|
|
17475
|
+
* @param {*} [options] Override http request option.
|
|
17476
|
+
* @throws {RequiredError}
|
|
17477
|
+
*/
|
|
17478
|
+
uninstallSSLV1(username, domain, options) {
|
|
17479
|
+
return localVarFp.uninstallSSLV1(username, domain, options).then((request) => request(axios, basePath));
|
|
17480
|
+
},
|
|
17481
|
+
};
|
|
17482
|
+
};
|
|
17483
|
+
exports.HostingSSLApiFactory = HostingSSLApiFactory;
|
|
17484
|
+
/**
|
|
17485
|
+
* HostingSSLApi - object-oriented interface
|
|
17486
|
+
* @export
|
|
17487
|
+
* @class HostingSSLApi
|
|
17488
|
+
* @extends {BaseAPI}
|
|
17489
|
+
*/
|
|
17490
|
+
class HostingSSLApi extends base_1.BaseAPI {
|
|
17491
|
+
/**
|
|
17492
|
+
* Returns the SSL state of the website: the certificate `status` and `provider`, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error. `installing` and `waiting_for_retry` mean an installation is in progress. `failed` means the last installation gave up, or the website was not updated for 60 minutes while `installing`; `last_error` holds the reason when it is a known message, otherwise it is null. `expired` means the assigned certificate\'s validity has ended. `not_installed` means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report `active` with `provider` and `expires_at` null.
|
|
17493
|
+
* @summary Get SSL status
|
|
17494
|
+
* @param {string} username
|
|
17495
|
+
* @param {string} domain Domain name
|
|
17496
|
+
* @param {*} [options] Override http request option.
|
|
17497
|
+
* @throws {RequiredError}
|
|
17498
|
+
* @memberof HostingSSLApi
|
|
17499
|
+
*/
|
|
17500
|
+
getSSLStatusV1(username, domain, options) {
|
|
17501
|
+
return (0, exports.HostingSSLApiFp)(this.configuration).getSSLStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
17502
|
+
}
|
|
17503
|
+
/**
|
|
17504
|
+
* Requests a lifetime SSL certificate for the website. The installation runs in the background; `Get SSL status` reports `active` or `failed` when it ends. An `active` lifetime certificate does not block the request: a new installation is requested, which is how a certificate is reinstalled. Returns 422 for free subdomains (their certificate is managed by the platform), while an installation is `installing` or `waiting_for_retry`, when the website\'s certificate was revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that one has to be uninstalled first.
|
|
17505
|
+
* @summary Install SSL
|
|
17506
|
+
* @param {string} username
|
|
17507
|
+
* @param {string} domain Domain name
|
|
17508
|
+
* @param {*} [options] Override http request option.
|
|
17509
|
+
* @throws {RequiredError}
|
|
17510
|
+
* @memberof HostingSSLApi
|
|
17511
|
+
*/
|
|
17512
|
+
installSSLV1(username, domain, options) {
|
|
17513
|
+
return (0, exports.HostingSSLApiFp)(this.configuration).installSSLV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
17514
|
+
}
|
|
17515
|
+
/**
|
|
17516
|
+
* Turns the HTTP to HTTPS redirect of the website on or off, based on `is_enabled`. Does nothing when the redirect is already in the requested state. Turning it on requires an installed certificate (`status` `active` or `expired` on `Get SSL status`) and returns 422 when there is none; turning it off is always accepted.
|
|
17517
|
+
* @summary Toggle HTTPS redirect
|
|
17518
|
+
* @param {string} username
|
|
17519
|
+
* @param {string} domain Domain name
|
|
17520
|
+
* @param {HostingV1SslToggleHttpsRedirectRequest} hostingV1SslToggleHttpsRedirectRequest
|
|
17521
|
+
* @param {*} [options] Override http request option.
|
|
17522
|
+
* @throws {RequiredError}
|
|
17523
|
+
* @memberof HostingSSLApi
|
|
17524
|
+
*/
|
|
17525
|
+
toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options) {
|
|
17526
|
+
return (0, exports.HostingSSLApiFp)(this.configuration).toggleHTTPSRedirectV1(username, domain, hostingV1SslToggleHttpsRedirectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17527
|
+
}
|
|
17528
|
+
/**
|
|
17529
|
+
* Removes the SSL certificate assigned to the website, turns the HTTPS redirect off and cancels a pending installation retry. The website serves plain HTTP until a new installation completes. `Get SSL status` reports `not_installed` as soon as the call returns; the call also succeeds when no certificate is assigned, so repeating it is safe. Returns 422 for free subdomains (their certificate is managed by the platform) and while an installation is `installing`.
|
|
17530
|
+
* @summary Uninstall SSL
|
|
17531
|
+
* @param {string} username
|
|
17532
|
+
* @param {string} domain Domain name
|
|
17533
|
+
* @param {*} [options] Override http request option.
|
|
17534
|
+
* @throws {RequiredError}
|
|
17535
|
+
* @memberof HostingSSLApi
|
|
17536
|
+
*/
|
|
17537
|
+
uninstallSSLV1(username, domain, options) {
|
|
17538
|
+
return (0, exports.HostingSSLApiFp)(this.configuration).uninstallSSLV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
17539
|
+
}
|
|
17540
|
+
}
|
|
17541
|
+
exports.HostingSSLApi = HostingSSLApi;
|
|
16946
17542
|
/**
|
|
16947
17543
|
* HostingWebsitesApi - axios parameter creator
|
|
16948
17544
|
* @export
|