hostinger-api-sdk 1.38.0 → 1.39.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 +1019 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +646 -5
- package/dist/api.js +712 -15
- 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 +646 -5
- package/dist/esm/api.js +702 -5
- 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/AgencyHostingFilesApi.md +54 -0
- package/docs/HostingFilesApi.md +56 -0
- package/docs/HostingNodeJSApi.md +124 -1
- package/docs/HostingV1FilesGenerateUploadUrlRequest.md +22 -0
- package/docs/HostingV1FilesUploadUrlResource.md +24 -0
- package/docs/HostingV1NodeJsBuildSettingsResource.md +34 -0
- package/docs/HostingV1NodeJsGetBuildSettingsRequest.md +20 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +36 -0
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +21 -0
- package/docs/HostingV1WebsitesDeployArchiveRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +62 -0
- package/docs/WordPressInstallationsApi.md +62 -0
- package/docs/WordPressPluginsApi.md +62 -0
- package/docs/WordPressThemesApi.md +62 -0
- package/docs/WordPressV1InstallationsImportWordPressRequest.md +22 -0
- package/docs/WordPressV1PluginsDeployPluginRequest.md +22 -0
- package/docs/WordPressV1ThemesDeployThemeRequest.md +24 -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.41.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
|
|
@@ -19,16 +19,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.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 = void 0;
|
|
22
|
+
exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = 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.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = 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.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
|
+
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.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = 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 = void 0;
|
|
24
|
+
exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = 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 = void 0;
|
|
25
|
+
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.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = 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 = void 0;
|
|
26
|
+
exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = void 0;
|
|
27
|
+
exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = 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 = void 0;
|
|
28
|
+
exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = 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.HostingWebsitesApi = void 0;
|
|
29
|
+
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.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.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 = void 0;
|
|
30
|
+
exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = 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 = void 0;
|
|
31
|
+
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 = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -284,6 +284,32 @@ exports.HostingV1NodeJsBuildResourceStateEnum = {
|
|
|
284
284
|
Completed: 'completed',
|
|
285
285
|
Failed: 'failed'
|
|
286
286
|
};
|
|
287
|
+
exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = {
|
|
288
|
+
CreateReactApp: 'create-react-app',
|
|
289
|
+
Gatsby: 'gatsby',
|
|
290
|
+
Vite: 'vite',
|
|
291
|
+
Angular: 'angular',
|
|
292
|
+
React: 'react',
|
|
293
|
+
Vue: 'vue',
|
|
294
|
+
Parcel: 'parcel',
|
|
295
|
+
Next: 'next',
|
|
296
|
+
Nuxt: 'nuxt',
|
|
297
|
+
Nest: 'nest',
|
|
298
|
+
Express: 'express',
|
|
299
|
+
Fastify: 'fastify',
|
|
300
|
+
Astro: 'astro',
|
|
301
|
+
Svelte: 'svelte',
|
|
302
|
+
SvelteKit: 'svelte-kit',
|
|
303
|
+
Hono: 'hono',
|
|
304
|
+
ReactRouter: 'react-router',
|
|
305
|
+
Nitro: 'nitro',
|
|
306
|
+
Other: 'other'
|
|
307
|
+
};
|
|
308
|
+
exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = {
|
|
309
|
+
Npm: 'npm',
|
|
310
|
+
Yarn: 'yarn',
|
|
311
|
+
Pnpm: 'pnpm'
|
|
312
|
+
};
|
|
287
313
|
exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
|
|
288
314
|
NUMBER_18: 18,
|
|
289
315
|
NUMBER_20: 20,
|
|
@@ -316,6 +342,41 @@ exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
|
|
|
316
342
|
Yarn: 'yarn',
|
|
317
343
|
Pnpm: 'pnpm'
|
|
318
344
|
};
|
|
345
|
+
exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = {
|
|
346
|
+
NUMBER_18: 18,
|
|
347
|
+
NUMBER_20: 20,
|
|
348
|
+
NUMBER_22: 22,
|
|
349
|
+
NUMBER_24: 24
|
|
350
|
+
};
|
|
351
|
+
exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = {
|
|
352
|
+
CreateReactApp: 'create-react-app',
|
|
353
|
+
Gatsby: 'gatsby',
|
|
354
|
+
Vite: 'vite',
|
|
355
|
+
Angular: 'angular',
|
|
356
|
+
React: 'react',
|
|
357
|
+
Vue: 'vue',
|
|
358
|
+
Parcel: 'parcel',
|
|
359
|
+
Next: 'next',
|
|
360
|
+
Nuxt: 'nuxt',
|
|
361
|
+
Nest: 'nest',
|
|
362
|
+
Express: 'express',
|
|
363
|
+
Fastify: 'fastify',
|
|
364
|
+
Astro: 'astro',
|
|
365
|
+
Svelte: 'svelte',
|
|
366
|
+
SvelteKit: 'svelte-kit',
|
|
367
|
+
Hono: 'hono',
|
|
368
|
+
ReactRouter: 'react-router',
|
|
369
|
+
Nitro: 'nitro',
|
|
370
|
+
Other: 'other'
|
|
371
|
+
};
|
|
372
|
+
exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
373
|
+
Npm: 'npm',
|
|
374
|
+
Yarn: 'yarn',
|
|
375
|
+
Pnpm: 'pnpm'
|
|
376
|
+
};
|
|
377
|
+
exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
378
|
+
Archive: 'archive'
|
|
379
|
+
};
|
|
319
380
|
exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = {
|
|
320
381
|
Low: 'low',
|
|
321
382
|
Moderate: 'moderate',
|
|
@@ -2105,6 +2166,38 @@ exports.AgencyHostingDomainsApi = AgencyHostingDomainsApi;
|
|
|
2105
2166
|
*/
|
|
2106
2167
|
const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
|
|
2107
2168
|
return {
|
|
2169
|
+
/**
|
|
2170
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2171
|
+
* @summary Generate upload URL
|
|
2172
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2173
|
+
* @param {*} [options] Override http request option.
|
|
2174
|
+
* @throws {RequiredError}
|
|
2175
|
+
*/
|
|
2176
|
+
generateUploadURLV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2177
|
+
// verify required parameter 'websiteUid' is not null or undefined
|
|
2178
|
+
(0, common_1.assertParamExists)('generateUploadURLV1', 'websiteUid', websiteUid);
|
|
2179
|
+
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/files/upload-urls`
|
|
2180
|
+
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2182
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2183
|
+
let baseOptions;
|
|
2184
|
+
if (configuration) {
|
|
2185
|
+
baseOptions = configuration.baseOptions;
|
|
2186
|
+
}
|
|
2187
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2188
|
+
const localVarHeaderParameter = {};
|
|
2189
|
+
const localVarQueryParameter = {};
|
|
2190
|
+
// authentication apiToken required
|
|
2191
|
+
// http bearer authentication required
|
|
2192
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2196
|
+
return {
|
|
2197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2198
|
+
options: localVarRequestOptions,
|
|
2199
|
+
};
|
|
2200
|
+
}),
|
|
2108
2201
|
/**
|
|
2109
2202
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2110
2203
|
* @summary Import website from archive
|
|
@@ -2152,6 +2245,21 @@ exports.AgencyHostingFilesApiAxiosParamCreator = AgencyHostingFilesApiAxiosParam
|
|
|
2152
2245
|
const AgencyHostingFilesApiFp = function (configuration) {
|
|
2153
2246
|
const localVarAxiosParamCreator = (0, exports.AgencyHostingFilesApiAxiosParamCreator)(configuration);
|
|
2154
2247
|
return {
|
|
2248
|
+
/**
|
|
2249
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2250
|
+
* @summary Generate upload URL
|
|
2251
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2252
|
+
* @param {*} [options] Override http request option.
|
|
2253
|
+
* @throws {RequiredError}
|
|
2254
|
+
*/
|
|
2255
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2257
|
+
var _a, _b;
|
|
2258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(websiteUid, options);
|
|
2259
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2260
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2261
|
+
});
|
|
2262
|
+
},
|
|
2155
2263
|
/**
|
|
2156
2264
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2157
2265
|
* @summary Import website from archive
|
|
@@ -2178,6 +2286,16 @@ exports.AgencyHostingFilesApiFp = AgencyHostingFilesApiFp;
|
|
|
2178
2286
|
const AgencyHostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
2179
2287
|
const localVarFp = (0, exports.AgencyHostingFilesApiFp)(configuration);
|
|
2180
2288
|
return {
|
|
2289
|
+
/**
|
|
2290
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2291
|
+
* @summary Generate upload URL
|
|
2292
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2293
|
+
* @param {*} [options] Override http request option.
|
|
2294
|
+
* @throws {RequiredError}
|
|
2295
|
+
*/
|
|
2296
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2297
|
+
return localVarFp.generateUploadURLV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2298
|
+
},
|
|
2181
2299
|
/**
|
|
2182
2300
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2183
2301
|
* @summary Import website from archive
|
|
@@ -2199,6 +2317,17 @@ exports.AgencyHostingFilesApiFactory = AgencyHostingFilesApiFactory;
|
|
|
2199
2317
|
* @extends {BaseAPI}
|
|
2200
2318
|
*/
|
|
2201
2319
|
class AgencyHostingFilesApi extends base_1.BaseAPI {
|
|
2320
|
+
/**
|
|
2321
|
+
* Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s file storage via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside the website\'s file storage, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
2322
|
+
* @summary Generate upload URL
|
|
2323
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
* @memberof AgencyHostingFilesApi
|
|
2327
|
+
*/
|
|
2328
|
+
generateUploadURLV1(websiteUid, options) {
|
|
2329
|
+
return (0, exports.AgencyHostingFilesApiFp)(this.configuration).generateUploadURLV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2330
|
+
}
|
|
2202
2331
|
/**
|
|
2203
2332
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2204
2333
|
* @summary Import website from archive
|
|
@@ -11846,6 +11975,39 @@ exports.HostingDomainsApi = HostingDomainsApi;
|
|
|
11846
11975
|
*/
|
|
11847
11976
|
const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
11848
11977
|
return {
|
|
11978
|
+
/**
|
|
11979
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
11980
|
+
* @summary Generate upload URL
|
|
11981
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
11982
|
+
* @param {*} [options] Override http request option.
|
|
11983
|
+
* @throws {RequiredError}
|
|
11984
|
+
*/
|
|
11985
|
+
generateUploadURLV1: (hostingV1FilesGenerateUploadUrlRequest_1, ...args_1) => __awaiter(this, [hostingV1FilesGenerateUploadUrlRequest_1, ...args_1], void 0, function* (hostingV1FilesGenerateUploadUrlRequest, options = {}) {
|
|
11986
|
+
// verify required parameter 'hostingV1FilesGenerateUploadUrlRequest' is not null or undefined
|
|
11987
|
+
(0, common_1.assertParamExists)('generateUploadURLV1', 'hostingV1FilesGenerateUploadUrlRequest', hostingV1FilesGenerateUploadUrlRequest);
|
|
11988
|
+
const localVarPath = `/api/hosting/v1/files/upload-urls`;
|
|
11989
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11990
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11991
|
+
let baseOptions;
|
|
11992
|
+
if (configuration) {
|
|
11993
|
+
baseOptions = configuration.baseOptions;
|
|
11994
|
+
}
|
|
11995
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11996
|
+
const localVarHeaderParameter = {};
|
|
11997
|
+
const localVarQueryParameter = {};
|
|
11998
|
+
// authentication apiToken required
|
|
11999
|
+
// http bearer authentication required
|
|
12000
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12001
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12002
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12003
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12004
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12005
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1FilesGenerateUploadUrlRequest, localVarRequestOptions, configuration);
|
|
12006
|
+
return {
|
|
12007
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12008
|
+
options: localVarRequestOptions,
|
|
12009
|
+
};
|
|
12010
|
+
}),
|
|
11849
12011
|
/**
|
|
11850
12012
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
11851
12013
|
* @summary Get website file content
|
|
@@ -11962,6 +12124,21 @@ exports.HostingFilesApiAxiosParamCreator = HostingFilesApiAxiosParamCreator;
|
|
|
11962
12124
|
const HostingFilesApiFp = function (configuration) {
|
|
11963
12125
|
const localVarAxiosParamCreator = (0, exports.HostingFilesApiAxiosParamCreator)(configuration);
|
|
11964
12126
|
return {
|
|
12127
|
+
/**
|
|
12128
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12129
|
+
* @summary Generate upload URL
|
|
12130
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12131
|
+
* @param {*} [options] Override http request option.
|
|
12132
|
+
* @throws {RequiredError}
|
|
12133
|
+
*/
|
|
12134
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12136
|
+
var _a, _b;
|
|
12137
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options);
|
|
12138
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingFilesApi.generateUploadURLV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12139
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12140
|
+
});
|
|
12141
|
+
},
|
|
11965
12142
|
/**
|
|
11966
12143
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
11967
12144
|
* @summary Get website file content
|
|
@@ -12012,6 +12189,16 @@ exports.HostingFilesApiFp = HostingFilesApiFp;
|
|
|
12012
12189
|
const HostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
12013
12190
|
const localVarFp = (0, exports.HostingFilesApiFp)(configuration);
|
|
12014
12191
|
return {
|
|
12192
|
+
/**
|
|
12193
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12194
|
+
* @summary Generate upload URL
|
|
12195
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12196
|
+
* @param {*} [options] Override http request option.
|
|
12197
|
+
* @throws {RequiredError}
|
|
12198
|
+
*/
|
|
12199
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12200
|
+
return localVarFp.generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(axios, basePath));
|
|
12201
|
+
},
|
|
12015
12202
|
/**
|
|
12016
12203
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
12017
12204
|
* @summary Get website file content
|
|
@@ -12052,6 +12239,17 @@ exports.HostingFilesApiFactory = HostingFilesApiFactory;
|
|
|
12052
12239
|
* @extends {BaseAPI}
|
|
12053
12240
|
*/
|
|
12054
12241
|
class HostingFilesApi extends base_1.BaseAPI {
|
|
12242
|
+
/**
|
|
12243
|
+
* Generate a file browser upload URL with authentication credentials for uploading files directly to a website\'s file storage. Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the website\'s `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0). Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request below. 1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`. 2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or `PATCH` requests with an `upload-offset` header tracking progress) until complete. `relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`. Instead of a TUS client, plain `curl` also works: ``` FILE=app.zip SIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux curl -i -X POST \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Upload-Length: ${SIZE}\" \\ -H \"Upload-Offset: 0\" # -> 201 Created curl -i -X PATCH \"{url}/${FILE}?override=true\" \\ -H \"X-Auth: {auth_key}\" \\ -H \"X-Auth-Rest: {rest_auth_key}\" \\ -H \"Tus-Resumable: 1.0.0\" \\ -H \"Content-Type: application/offset+octet-stream\" \\ -H \"Upload-Offset: 0\" \\ --data-binary \"@${FILE}\" # -> 204 No Content, Upload-Offset response header equals SIZE when done ```
|
|
12244
|
+
* @summary Generate upload URL
|
|
12245
|
+
* @param {HostingV1FilesGenerateUploadUrlRequest} hostingV1FilesGenerateUploadUrlRequest
|
|
12246
|
+
* @param {*} [options] Override http request option.
|
|
12247
|
+
* @throws {RequiredError}
|
|
12248
|
+
* @memberof HostingFilesApi
|
|
12249
|
+
*/
|
|
12250
|
+
generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options) {
|
|
12251
|
+
return (0, exports.HostingFilesApiFp)(this.configuration).generateUploadURLV1(hostingV1FilesGenerateUploadUrlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12252
|
+
}
|
|
12055
12253
|
/**
|
|
12056
12254
|
* Get a single file\'s content, relative to a website\'s document root. Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
|
|
12057
12255
|
* @summary Get website file content
|
|
@@ -12102,7 +12300,7 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
|
12102
12300
|
const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
12103
12301
|
return {
|
|
12104
12302
|
/**
|
|
12105
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12303
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12106
12304
|
* @summary Create NodeJS build from archive
|
|
12107
12305
|
* @param {string} username
|
|
12108
12306
|
* @param {string} domain Domain name
|
|
@@ -12186,6 +12384,48 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
12186
12384
|
options: localVarRequestOptions,
|
|
12187
12385
|
};
|
|
12188
12386
|
}),
|
|
12387
|
+
/**
|
|
12388
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12389
|
+
* @summary Get Node.js build settings from archive
|
|
12390
|
+
* @param {string} username
|
|
12391
|
+
* @param {string} domain Domain name
|
|
12392
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12393
|
+
* @param {*} [options] Override http request option.
|
|
12394
|
+
* @throws {RequiredError}
|
|
12395
|
+
*/
|
|
12396
|
+
getNodeJsBuildSettingsFromArchiveV1: (username_1, domain_1, archivePath_1, ...args_1) => __awaiter(this, [username_1, domain_1, archivePath_1, ...args_1], void 0, function* (username, domain, archivePath, options = {}) {
|
|
12397
|
+
// verify required parameter 'username' is not null or undefined
|
|
12398
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'username', username);
|
|
12399
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12400
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'domain', domain);
|
|
12401
|
+
// verify required parameter 'archivePath' is not null or undefined
|
|
12402
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromArchiveV1', 'archivePath', archivePath);
|
|
12403
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive`
|
|
12404
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12405
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12407
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12408
|
+
let baseOptions;
|
|
12409
|
+
if (configuration) {
|
|
12410
|
+
baseOptions = configuration.baseOptions;
|
|
12411
|
+
}
|
|
12412
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12413
|
+
const localVarHeaderParameter = {};
|
|
12414
|
+
const localVarQueryParameter = {};
|
|
12415
|
+
// authentication apiToken required
|
|
12416
|
+
// http bearer authentication required
|
|
12417
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12418
|
+
if (archivePath !== undefined) {
|
|
12419
|
+
localVarQueryParameter['archive_path'] = archivePath;
|
|
12420
|
+
}
|
|
12421
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12423
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12424
|
+
return {
|
|
12425
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12426
|
+
options: localVarRequestOptions,
|
|
12427
|
+
};
|
|
12428
|
+
}),
|
|
12189
12429
|
/**
|
|
12190
12430
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12191
12431
|
* @summary List NodeJS builds
|
|
@@ -12351,6 +12591,47 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
12351
12591
|
options: localVarRequestOptions,
|
|
12352
12592
|
};
|
|
12353
12593
|
}),
|
|
12594
|
+
/**
|
|
12595
|
+
* 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. The `source_type` must be `archive` and `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. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12596
|
+
* @summary Start Node.js build
|
|
12597
|
+
* @param {string} username
|
|
12598
|
+
* @param {string} domain Domain name
|
|
12599
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
12600
|
+
* @param {*} [options] Override http request option.
|
|
12601
|
+
* @throws {RequiredError}
|
|
12602
|
+
*/
|
|
12603
|
+
startNodeJsBuildV1: (username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsStartBuildRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsStartBuildRequest, options = {}) {
|
|
12604
|
+
// verify required parameter 'username' is not null or undefined
|
|
12605
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'username', username);
|
|
12606
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12607
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'domain', domain);
|
|
12608
|
+
// verify required parameter 'hostingV1NodeJsStartBuildRequest' is not null or undefined
|
|
12609
|
+
(0, common_1.assertParamExists)('startNodeJsBuildV1', 'hostingV1NodeJsStartBuildRequest', hostingV1NodeJsStartBuildRequest);
|
|
12610
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds`
|
|
12611
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12612
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12614
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12615
|
+
let baseOptions;
|
|
12616
|
+
if (configuration) {
|
|
12617
|
+
baseOptions = configuration.baseOptions;
|
|
12618
|
+
}
|
|
12619
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12620
|
+
const localVarHeaderParameter = {};
|
|
12621
|
+
const localVarQueryParameter = {};
|
|
12622
|
+
// authentication apiToken required
|
|
12623
|
+
// http bearer authentication required
|
|
12624
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12629
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1NodeJsStartBuildRequest, localVarRequestOptions, configuration);
|
|
12630
|
+
return {
|
|
12631
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12632
|
+
options: localVarRequestOptions,
|
|
12633
|
+
};
|
|
12634
|
+
}),
|
|
12354
12635
|
};
|
|
12355
12636
|
};
|
|
12356
12637
|
exports.HostingNodeJSApiAxiosParamCreator = HostingNodeJSApiAxiosParamCreator;
|
|
@@ -12362,7 +12643,7 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12362
12643
|
const localVarAxiosParamCreator = (0, exports.HostingNodeJSApiAxiosParamCreator)(configuration);
|
|
12363
12644
|
return {
|
|
12364
12645
|
/**
|
|
12365
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12646
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12366
12647
|
* @summary Create NodeJS build from archive
|
|
12367
12648
|
* @param {string} username
|
|
12368
12649
|
* @param {string} domain Domain name
|
|
@@ -12396,6 +12677,23 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12396
12677
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12397
12678
|
});
|
|
12398
12679
|
},
|
|
12680
|
+
/**
|
|
12681
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12682
|
+
* @summary Get Node.js build settings from archive
|
|
12683
|
+
* @param {string} username
|
|
12684
|
+
* @param {string} domain Domain name
|
|
12685
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12686
|
+
* @param {*} [options] Override http request option.
|
|
12687
|
+
* @throws {RequiredError}
|
|
12688
|
+
*/
|
|
12689
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
12690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12691
|
+
var _a, _b;
|
|
12692
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options);
|
|
12693
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12694
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12695
|
+
});
|
|
12696
|
+
},
|
|
12399
12697
|
/**
|
|
12400
12698
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12401
12699
|
* @summary List NodeJS builds
|
|
@@ -12465,6 +12763,23 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
12465
12763
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12466
12764
|
});
|
|
12467
12765
|
},
|
|
12766
|
+
/**
|
|
12767
|
+
* 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. The `source_type` must be `archive` and `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. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12768
|
+
* @summary Start Node.js build
|
|
12769
|
+
* @param {string} username
|
|
12770
|
+
* @param {string} domain Domain name
|
|
12771
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
12772
|
+
* @param {*} [options] Override http request option.
|
|
12773
|
+
* @throws {RequiredError}
|
|
12774
|
+
*/
|
|
12775
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
12776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12777
|
+
var _a, _b;
|
|
12778
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options);
|
|
12779
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.startNodeJsBuildV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12780
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12781
|
+
});
|
|
12782
|
+
},
|
|
12468
12783
|
};
|
|
12469
12784
|
};
|
|
12470
12785
|
exports.HostingNodeJSApiFp = HostingNodeJSApiFp;
|
|
@@ -12476,7 +12791,7 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12476
12791
|
const localVarFp = (0, exports.HostingNodeJSApiFp)(configuration);
|
|
12477
12792
|
return {
|
|
12478
12793
|
/**
|
|
12479
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12794
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12480
12795
|
* @summary Create NodeJS build from archive
|
|
12481
12796
|
* @param {string} username
|
|
12482
12797
|
* @param {string} domain Domain name
|
|
@@ -12500,6 +12815,18 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12500
12815
|
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
12501
12816
|
return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
|
|
12502
12817
|
},
|
|
12818
|
+
/**
|
|
12819
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12820
|
+
* @summary Get Node.js build settings from archive
|
|
12821
|
+
* @param {string} username
|
|
12822
|
+
* @param {string} domain Domain name
|
|
12823
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12824
|
+
* @param {*} [options] Override http request option.
|
|
12825
|
+
* @throws {RequiredError}
|
|
12826
|
+
*/
|
|
12827
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
12828
|
+
return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
|
|
12829
|
+
},
|
|
12503
12830
|
/**
|
|
12504
12831
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12505
12832
|
* @summary List NodeJS builds
|
|
@@ -12549,6 +12876,18 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
12549
12876
|
restartNodeJsApplicationV1(username, domain, options) {
|
|
12550
12877
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
12551
12878
|
},
|
|
12879
|
+
/**
|
|
12880
|
+
* 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. The `source_type` must be `archive` and `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. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12881
|
+
* @summary Start Node.js build
|
|
12882
|
+
* @param {string} username
|
|
12883
|
+
* @param {string} domain Domain name
|
|
12884
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
12885
|
+
* @param {*} [options] Override http request option.
|
|
12886
|
+
* @throws {RequiredError}
|
|
12887
|
+
*/
|
|
12888
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
12889
|
+
return localVarFp.startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(axios, basePath));
|
|
12890
|
+
},
|
|
12552
12891
|
};
|
|
12553
12892
|
};
|
|
12554
12893
|
exports.HostingNodeJSApiFactory = HostingNodeJSApiFactory;
|
|
@@ -12560,7 +12899,7 @@ exports.HostingNodeJSApiFactory = HostingNodeJSApiFactory;
|
|
|
12560
12899
|
*/
|
|
12561
12900
|
class HostingNodeJSApi extends base_1.BaseAPI {
|
|
12562
12901
|
/**
|
|
12563
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12902
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12564
12903
|
* @summary Create NodeJS build from archive
|
|
12565
12904
|
* @param {string} username
|
|
12566
12905
|
* @param {string} domain Domain name
|
|
@@ -12586,6 +12925,19 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
12586
12925
|
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
12587
12926
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
|
|
12588
12927
|
}
|
|
12928
|
+
/**
|
|
12929
|
+
* Auto-detect Node.js build settings from a package.json inside an archive already on the server. Use this before calling `Start Node.js Build` to preview what settings will be used, or to let the user review and override values (framework, node version, root directory, output directory, build script) before committing to a build. The archive must already be present on the website\'s file storage. Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To upload an archive and start a build in one step without inspecting settings first, use the `Create Node.js Build from Archive` endpoint instead.
|
|
12930
|
+
* @summary Get Node.js build settings from archive
|
|
12931
|
+
* @param {string} username
|
|
12932
|
+
* @param {string} domain Domain name
|
|
12933
|
+
* @param {string} archivePath The path to the archive file relative to the document root of the vhost
|
|
12934
|
+
* @param {*} [options] Override http request option.
|
|
12935
|
+
* @throws {RequiredError}
|
|
12936
|
+
* @memberof HostingNodeJSApi
|
|
12937
|
+
*/
|
|
12938
|
+
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
12939
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
|
|
12940
|
+
}
|
|
12589
12941
|
/**
|
|
12590
12942
|
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
12591
12943
|
* @summary List NodeJS builds
|
|
@@ -12639,6 +12991,19 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
12639
12991
|
restartNodeJsApplicationV1(username, domain, options) {
|
|
12640
12992
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
12641
12993
|
}
|
|
12994
|
+
/**
|
|
12995
|
+
* 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. The `source_type` must be `archive` and `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. To upload an archive and start a build in one step, use the `Create Node.js Build from Archive` endpoint instead. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
12996
|
+
* @summary Start Node.js build
|
|
12997
|
+
* @param {string} username
|
|
12998
|
+
* @param {string} domain Domain name
|
|
12999
|
+
* @param {HostingV1NodeJsStartBuildRequest} hostingV1NodeJsStartBuildRequest
|
|
13000
|
+
* @param {*} [options] Override http request option.
|
|
13001
|
+
* @throws {RequiredError}
|
|
13002
|
+
* @memberof HostingNodeJSApi
|
|
13003
|
+
*/
|
|
13004
|
+
startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options) {
|
|
13005
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).startNodeJsBuildV1(username, domain, hostingV1NodeJsStartBuildRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13006
|
+
}
|
|
12642
13007
|
}
|
|
12643
13008
|
exports.HostingNodeJSApi = HostingNodeJSApi;
|
|
12644
13009
|
/**
|
|
@@ -13673,6 +14038,47 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
13673
14038
|
options: localVarRequestOptions,
|
|
13674
14039
|
};
|
|
13675
14040
|
}),
|
|
14041
|
+
/**
|
|
14042
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14043
|
+
* @summary Deploy static site archive
|
|
14044
|
+
* @param {string} username
|
|
14045
|
+
* @param {string} domain Domain name
|
|
14046
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14047
|
+
* @param {*} [options] Override http request option.
|
|
14048
|
+
* @throws {RequiredError}
|
|
14049
|
+
*/
|
|
14050
|
+
deployStaticSiteArchiveV1: (username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1WebsitesDeployArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1WebsitesDeployArchiveRequest, options = {}) {
|
|
14051
|
+
// verify required parameter 'username' is not null or undefined
|
|
14052
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'username', username);
|
|
14053
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14054
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'domain', domain);
|
|
14055
|
+
// verify required parameter 'hostingV1WebsitesDeployArchiveRequest' is not null or undefined
|
|
14056
|
+
(0, common_1.assertParamExists)('deployStaticSiteArchiveV1', 'hostingV1WebsitesDeployArchiveRequest', hostingV1WebsitesDeployArchiveRequest);
|
|
14057
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/deploy`
|
|
14058
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14059
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14060
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14061
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14062
|
+
let baseOptions;
|
|
14063
|
+
if (configuration) {
|
|
14064
|
+
baseOptions = configuration.baseOptions;
|
|
14065
|
+
}
|
|
14066
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14067
|
+
const localVarHeaderParameter = {};
|
|
14068
|
+
const localVarQueryParameter = {};
|
|
14069
|
+
// authentication apiToken required
|
|
14070
|
+
// http bearer authentication required
|
|
14071
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14072
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14073
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14074
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14075
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14076
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WebsitesDeployArchiveRequest, localVarRequestOptions, configuration);
|
|
14077
|
+
return {
|
|
14078
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14079
|
+
options: localVarRequestOptions,
|
|
14080
|
+
};
|
|
14081
|
+
}),
|
|
13676
14082
|
/**
|
|
13677
14083
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
13678
14084
|
* @summary List websites
|
|
@@ -13765,6 +14171,23 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
13765
14171
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13766
14172
|
});
|
|
13767
14173
|
},
|
|
14174
|
+
/**
|
|
14175
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14176
|
+
* @summary Deploy static site archive
|
|
14177
|
+
* @param {string} username
|
|
14178
|
+
* @param {string} domain Domain name
|
|
14179
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14180
|
+
* @param {*} [options] Override http request option.
|
|
14181
|
+
* @throws {RequiredError}
|
|
14182
|
+
*/
|
|
14183
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14185
|
+
var _a, _b;
|
|
14186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options);
|
|
14187
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.deployStaticSiteArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14188
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14189
|
+
});
|
|
14190
|
+
},
|
|
13768
14191
|
/**
|
|
13769
14192
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
13770
14193
|
* @summary List websites
|
|
@@ -13815,6 +14238,18 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
13815
14238
|
deleteWebsiteV1(domain, options) {
|
|
13816
14239
|
return localVarFp.deleteWebsiteV1(domain, options).then((request) => request(axios, basePath));
|
|
13817
14240
|
},
|
|
14241
|
+
/**
|
|
14242
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14243
|
+
* @summary Deploy static site archive
|
|
14244
|
+
* @param {string} username
|
|
14245
|
+
* @param {string} domain Domain name
|
|
14246
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14247
|
+
* @param {*} [options] Override http request option.
|
|
14248
|
+
* @throws {RequiredError}
|
|
14249
|
+
*/
|
|
14250
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14251
|
+
return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
|
|
14252
|
+
},
|
|
13818
14253
|
/**
|
|
13819
14254
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
13820
14255
|
* @summary List websites
|
|
@@ -13862,6 +14297,19 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
13862
14297
|
deleteWebsiteV1(domain, options) {
|
|
13863
14298
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
13864
14299
|
}
|
|
14300
|
+
/**
|
|
14301
|
+
* Deploy a static application from an archive file. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to deploy a static application from an archive file that has been uploaded to the website\'s directory. This only works for static sites (pre-built HTML/CSS/JS with no build step). For Node.js applications, use `Create NodeJS build from archive` instead, or `Start Node.js build` if the archive is already uploaded. For WordPress sites, use `Import WordPress website`.
|
|
14302
|
+
* @summary Deploy static site archive
|
|
14303
|
+
* @param {string} username
|
|
14304
|
+
* @param {string} domain Domain name
|
|
14305
|
+
* @param {HostingV1WebsitesDeployArchiveRequest} hostingV1WebsitesDeployArchiveRequest
|
|
14306
|
+
* @param {*} [options] Override http request option.
|
|
14307
|
+
* @throws {RequiredError}
|
|
14308
|
+
* @memberof HostingWebsitesApi
|
|
14309
|
+
*/
|
|
14310
|
+
deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options) {
|
|
14311
|
+
return (0, exports.HostingWebsitesApiFp)(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14312
|
+
}
|
|
13865
14313
|
/**
|
|
13866
14314
|
* Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
13867
14315
|
* @summary List websites
|
|
@@ -26661,6 +27109,47 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
26661
27109
|
options: localVarRequestOptions,
|
|
26662
27110
|
};
|
|
26663
27111
|
}),
|
|
27112
|
+
/**
|
|
27113
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27114
|
+
* @summary Import WordPress website
|
|
27115
|
+
* @param {string} username
|
|
27116
|
+
* @param {string} domain Domain name
|
|
27117
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27118
|
+
* @param {*} [options] Override http request option.
|
|
27119
|
+
* @throws {RequiredError}
|
|
27120
|
+
*/
|
|
27121
|
+
importWordPressWebsiteV1: (username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1InstallationsImportWordPressRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1InstallationsImportWordPressRequest, options = {}) {
|
|
27122
|
+
// verify required parameter 'username' is not null or undefined
|
|
27123
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'username', username);
|
|
27124
|
+
// verify required parameter 'domain' is not null or undefined
|
|
27125
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'domain', domain);
|
|
27126
|
+
// verify required parameter 'wordPressV1InstallationsImportWordPressRequest' is not null or undefined
|
|
27127
|
+
(0, common_1.assertParamExists)('importWordPressWebsiteV1', 'wordPressV1InstallationsImportWordPressRequest', wordPressV1InstallationsImportWordPressRequest);
|
|
27128
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import`
|
|
27129
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
27130
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
27131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27132
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27133
|
+
let baseOptions;
|
|
27134
|
+
if (configuration) {
|
|
27135
|
+
baseOptions = configuration.baseOptions;
|
|
27136
|
+
}
|
|
27137
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
27138
|
+
const localVarHeaderParameter = {};
|
|
27139
|
+
const localVarQueryParameter = {};
|
|
27140
|
+
// authentication apiToken required
|
|
27141
|
+
// http bearer authentication required
|
|
27142
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
27143
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27147
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsImportWordPressRequest, localVarRequestOptions, configuration);
|
|
27148
|
+
return {
|
|
27149
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27150
|
+
options: localVarRequestOptions,
|
|
27151
|
+
};
|
|
27152
|
+
}),
|
|
26664
27153
|
/**
|
|
26665
27154
|
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
26666
27155
|
* @summary Install WordPress
|
|
@@ -26925,6 +27414,23 @@ const WordPressInstallationsApiFp = function (configuration) {
|
|
|
26925
27414
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26926
27415
|
});
|
|
26927
27416
|
},
|
|
27417
|
+
/**
|
|
27418
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27419
|
+
* @summary Import WordPress website
|
|
27420
|
+
* @param {string} username
|
|
27421
|
+
* @param {string} domain Domain name
|
|
27422
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27423
|
+
* @param {*} [options] Override http request option.
|
|
27424
|
+
* @throws {RequiredError}
|
|
27425
|
+
*/
|
|
27426
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27428
|
+
var _a, _b;
|
|
27429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options);
|
|
27430
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.importWordPressWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
27431
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27432
|
+
});
|
|
27433
|
+
},
|
|
26928
27434
|
/**
|
|
26929
27435
|
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
26930
27436
|
* @summary Install WordPress
|
|
@@ -27061,6 +27567,18 @@ const WordPressInstallationsApiFactory = function (configuration, basePath, axio
|
|
|
27061
27567
|
getInstallationJWTTokenV1(username, software, options) {
|
|
27062
27568
|
return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
|
|
27063
27569
|
},
|
|
27570
|
+
/**
|
|
27571
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27572
|
+
* @summary Import WordPress website
|
|
27573
|
+
* @param {string} username
|
|
27574
|
+
* @param {string} domain Domain name
|
|
27575
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27576
|
+
* @param {*} [options] Override http request option.
|
|
27577
|
+
* @throws {RequiredError}
|
|
27578
|
+
*/
|
|
27579
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27580
|
+
return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
|
|
27581
|
+
},
|
|
27064
27582
|
/**
|
|
27065
27583
|
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
27066
27584
|
* @summary Install WordPress
|
|
@@ -27176,6 +27694,19 @@ class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
|
27176
27694
|
getInstallationJWTTokenV1(username, software, options) {
|
|
27177
27695
|
return (0, exports.WordPressInstallationsApiFp)(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
27178
27696
|
}
|
|
27697
|
+
/**
|
|
27698
|
+
* Import WordPress website to the specified domain. WARNING: this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This endpoint allows you to import a WordPress website from archive and database files that have been uploaded to the website\'s directory.
|
|
27699
|
+
* @summary Import WordPress website
|
|
27700
|
+
* @param {string} username
|
|
27701
|
+
* @param {string} domain Domain name
|
|
27702
|
+
* @param {WordPressV1InstallationsImportWordPressRequest} wordPressV1InstallationsImportWordPressRequest
|
|
27703
|
+
* @param {*} [options] Override http request option.
|
|
27704
|
+
* @throws {RequiredError}
|
|
27705
|
+
* @memberof WordPressInstallationsApi
|
|
27706
|
+
*/
|
|
27707
|
+
importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options) {
|
|
27708
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27709
|
+
}
|
|
27179
27710
|
/**
|
|
27180
27711
|
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
27181
27712
|
* @summary Install WordPress
|
|
@@ -28061,6 +28592,47 @@ const WordPressPluginsApiAxiosParamCreator = function (configuration) {
|
|
|
28061
28592
|
options: localVarRequestOptions,
|
|
28062
28593
|
};
|
|
28063
28594
|
}),
|
|
28595
|
+
/**
|
|
28596
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
28597
|
+
* @summary Deploy WordPress plugin
|
|
28598
|
+
* @param {string} username
|
|
28599
|
+
* @param {string} domain Domain name
|
|
28600
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
28601
|
+
* @param {*} [options] Override http request option.
|
|
28602
|
+
* @throws {RequiredError}
|
|
28603
|
+
*/
|
|
28604
|
+
deployWordPressPluginV1: (username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1PluginsDeployPluginRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1PluginsDeployPluginRequest, options = {}) {
|
|
28605
|
+
// verify required parameter 'username' is not null or undefined
|
|
28606
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'username', username);
|
|
28607
|
+
// verify required parameter 'domain' is not null or undefined
|
|
28608
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'domain', domain);
|
|
28609
|
+
// verify required parameter 'wordPressV1PluginsDeployPluginRequest' is not null or undefined
|
|
28610
|
+
(0, common_1.assertParamExists)('deployWordPressPluginV1', 'wordPressV1PluginsDeployPluginRequest', wordPressV1PluginsDeployPluginRequest);
|
|
28611
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy`
|
|
28612
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
28613
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
28614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
28616
|
+
let baseOptions;
|
|
28617
|
+
if (configuration) {
|
|
28618
|
+
baseOptions = configuration.baseOptions;
|
|
28619
|
+
}
|
|
28620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
28621
|
+
const localVarHeaderParameter = {};
|
|
28622
|
+
const localVarQueryParameter = {};
|
|
28623
|
+
// authentication apiToken required
|
|
28624
|
+
// http bearer authentication required
|
|
28625
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
28626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
28630
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1PluginsDeployPluginRequest, localVarRequestOptions, configuration);
|
|
28631
|
+
return {
|
|
28632
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
28633
|
+
options: localVarRequestOptions,
|
|
28634
|
+
};
|
|
28635
|
+
}),
|
|
28064
28636
|
/**
|
|
28065
28637
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28066
28638
|
* @summary Install WordPress plugins
|
|
@@ -28426,6 +28998,23 @@ const WordPressPluginsApiFp = function (configuration) {
|
|
|
28426
28998
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28427
28999
|
});
|
|
28428
29000
|
},
|
|
29001
|
+
/**
|
|
29002
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29003
|
+
* @summary Deploy WordPress plugin
|
|
29004
|
+
* @param {string} username
|
|
29005
|
+
* @param {string} domain Domain name
|
|
29006
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29007
|
+
* @param {*} [options] Override http request option.
|
|
29008
|
+
* @throws {RequiredError}
|
|
29009
|
+
*/
|
|
29010
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29012
|
+
var _a, _b;
|
|
29013
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options);
|
|
29014
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressPluginsApi.deployWordPressPluginV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
29015
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29016
|
+
});
|
|
29017
|
+
},
|
|
28429
29018
|
/**
|
|
28430
29019
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28431
29020
|
* @summary Install WordPress plugins
|
|
@@ -28601,6 +29190,18 @@ const WordPressPluginsApiFactory = function (configuration, basePath, axios) {
|
|
|
28601
29190
|
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
28602
29191
|
return localVarFp.deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(axios, basePath));
|
|
28603
29192
|
},
|
|
29193
|
+
/**
|
|
29194
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29195
|
+
* @summary Deploy WordPress plugin
|
|
29196
|
+
* @param {string} username
|
|
29197
|
+
* @param {string} domain Domain name
|
|
29198
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29199
|
+
* @param {*} [options] Override http request option.
|
|
29200
|
+
* @throws {RequiredError}
|
|
29201
|
+
*/
|
|
29202
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29203
|
+
return localVarFp.deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(axios, basePath));
|
|
29204
|
+
},
|
|
28604
29205
|
/**
|
|
28605
29206
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28606
29207
|
* @summary Install WordPress plugins
|
|
@@ -28739,6 +29340,19 @@ class WordPressPluginsApi extends base_1.BaseAPI {
|
|
|
28739
29340
|
deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options) {
|
|
28740
29341
|
return (0, exports.WordPressPluginsApiFp)(this.configuration).deactivateWordPressPluginV1(username, software, wordPressV1PluginsDeactivatePluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28741
29342
|
}
|
|
29343
|
+
/**
|
|
29344
|
+
* Deploy a WordPress plugin from an already uploaded directory. This endpoint allows you to deploy a WordPress plugin that has been uploaded to the website\'s directory. The plugin will be activated and made available in the WordPress admin panel.
|
|
29345
|
+
* @summary Deploy WordPress plugin
|
|
29346
|
+
* @param {string} username
|
|
29347
|
+
* @param {string} domain Domain name
|
|
29348
|
+
* @param {WordPressV1PluginsDeployPluginRequest} wordPressV1PluginsDeployPluginRequest
|
|
29349
|
+
* @param {*} [options] Override http request option.
|
|
29350
|
+
* @throws {RequiredError}
|
|
29351
|
+
* @memberof WordPressPluginsApi
|
|
29352
|
+
*/
|
|
29353
|
+
deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options) {
|
|
29354
|
+
return (0, exports.WordPressPluginsApiFp)(this.configuration).deployWordPressPluginV1(username, domain, wordPressV1PluginsDeployPluginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29355
|
+
}
|
|
28742
29356
|
/**
|
|
28743
29357
|
* Install one or more plugins on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation. This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
|
|
28744
29358
|
* @summary Install WordPress plugins
|
|
@@ -28893,6 +29507,47 @@ const WordPressThemesApiAxiosParamCreator = function (configuration) {
|
|
|
28893
29507
|
options: localVarRequestOptions,
|
|
28894
29508
|
};
|
|
28895
29509
|
}),
|
|
29510
|
+
/**
|
|
29511
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29512
|
+
* @summary Deploy WordPress theme
|
|
29513
|
+
* @param {string} username
|
|
29514
|
+
* @param {string} domain Domain name
|
|
29515
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29516
|
+
* @param {*} [options] Override http request option.
|
|
29517
|
+
* @throws {RequiredError}
|
|
29518
|
+
*/
|
|
29519
|
+
deployWordPressThemeV1: (username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, wordPressV1ThemesDeployThemeRequest_1, ...args_1], void 0, function* (username, domain, wordPressV1ThemesDeployThemeRequest, options = {}) {
|
|
29520
|
+
// verify required parameter 'username' is not null or undefined
|
|
29521
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'username', username);
|
|
29522
|
+
// verify required parameter 'domain' is not null or undefined
|
|
29523
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'domain', domain);
|
|
29524
|
+
// verify required parameter 'wordPressV1ThemesDeployThemeRequest' is not null or undefined
|
|
29525
|
+
(0, common_1.assertParamExists)('deployWordPressThemeV1', 'wordPressV1ThemesDeployThemeRequest', wordPressV1ThemesDeployThemeRequest);
|
|
29526
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy`
|
|
29527
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
29528
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
29529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29530
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29531
|
+
let baseOptions;
|
|
29532
|
+
if (configuration) {
|
|
29533
|
+
baseOptions = configuration.baseOptions;
|
|
29534
|
+
}
|
|
29535
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29536
|
+
const localVarHeaderParameter = {};
|
|
29537
|
+
const localVarQueryParameter = {};
|
|
29538
|
+
// authentication apiToken required
|
|
29539
|
+
// http bearer authentication required
|
|
29540
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
29541
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29544
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29545
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1ThemesDeployThemeRequest, localVarRequestOptions, configuration);
|
|
29546
|
+
return {
|
|
29547
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29548
|
+
options: localVarRequestOptions,
|
|
29549
|
+
};
|
|
29550
|
+
}),
|
|
28896
29551
|
/**
|
|
28897
29552
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
28898
29553
|
* @summary Install WordPress theme
|
|
@@ -29115,6 +29770,23 @@ const WordPressThemesApiFp = function (configuration) {
|
|
|
29115
29770
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29116
29771
|
});
|
|
29117
29772
|
},
|
|
29773
|
+
/**
|
|
29774
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29775
|
+
* @summary Deploy WordPress theme
|
|
29776
|
+
* @param {string} username
|
|
29777
|
+
* @param {string} domain Domain name
|
|
29778
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29779
|
+
* @param {*} [options] Override http request option.
|
|
29780
|
+
* @throws {RequiredError}
|
|
29781
|
+
*/
|
|
29782
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
29783
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29784
|
+
var _a, _b;
|
|
29785
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options);
|
|
29786
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressThemesApi.deployWordPressThemeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
29787
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29788
|
+
});
|
|
29789
|
+
},
|
|
29118
29790
|
/**
|
|
29119
29791
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29120
29792
|
* @summary Install WordPress theme
|
|
@@ -29220,6 +29892,18 @@ const WordPressThemesApiFactory = function (configuration, basePath, axios) {
|
|
|
29220
29892
|
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
29221
29893
|
return localVarFp.activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(axios, basePath));
|
|
29222
29894
|
},
|
|
29895
|
+
/**
|
|
29896
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29897
|
+
* @summary Deploy WordPress theme
|
|
29898
|
+
* @param {string} username
|
|
29899
|
+
* @param {string} domain Domain name
|
|
29900
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29901
|
+
* @param {*} [options] Override http request option.
|
|
29902
|
+
* @throws {RequiredError}
|
|
29903
|
+
*/
|
|
29904
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
29905
|
+
return localVarFp.deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(axios, basePath));
|
|
29906
|
+
},
|
|
29223
29907
|
/**
|
|
29224
29908
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29225
29909
|
* @summary Install WordPress theme
|
|
@@ -29301,6 +29985,19 @@ class WordPressThemesApi extends base_1.BaseAPI {
|
|
|
29301
29985
|
activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options) {
|
|
29302
29986
|
return (0, exports.WordPressThemesApiFp)(this.configuration).activateWordPressThemeV1(username, software, wordPressV1ThemesActivateThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29303
29987
|
}
|
|
29988
|
+
/**
|
|
29989
|
+
* Deploy a WordPress theme from an already uploaded directory. This endpoint allows you to deploy a WordPress theme that has been uploaded to the website\'s directory. The theme can be optionally activated after deployment.
|
|
29990
|
+
* @summary Deploy WordPress theme
|
|
29991
|
+
* @param {string} username
|
|
29992
|
+
* @param {string} domain Domain name
|
|
29993
|
+
* @param {WordPressV1ThemesDeployThemeRequest} wordPressV1ThemesDeployThemeRequest
|
|
29994
|
+
* @param {*} [options] Override http request option.
|
|
29995
|
+
* @throws {RequiredError}
|
|
29996
|
+
* @memberof WordPressThemesApi
|
|
29997
|
+
*/
|
|
29998
|
+
deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options) {
|
|
29999
|
+
return (0, exports.WordPressThemesApiFp)(this.configuration).deployWordPressThemeV1(username, domain, wordPressV1ThemesDeployThemeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30000
|
+
}
|
|
29304
30001
|
/**
|
|
29305
30002
|
* Install a theme on an existing WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
|
|
29306
30003
|
* @summary Install WordPress theme
|