hostinger-api-sdk 0.0.15 → 0.0.19

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.
Files changed (109) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/CODEOWNERS +1 -1
  3. package/README.md +2 -2
  4. package/api.ts +7356 -2584
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +2 -2
  8. package/dist/api.d.ts +4966 -1780
  9. package/dist/api.js +3335 -325
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +2 -2
  16. package/dist/esm/api.d.ts +4966 -1780
  17. package/dist/esm/api.js +3283 -314
  18. package/dist/esm/base.d.ts +1 -1
  19. package/dist/esm/base.js +1 -1
  20. package/dist/esm/common.d.ts +1 -1
  21. package/dist/esm/common.js +1 -1
  22. package/dist/esm/configuration.d.ts +1 -1
  23. package/dist/esm/configuration.js +2 -2
  24. package/dist/esm/index.d.ts +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/docs/BillingSubscriptionsApi.md +64 -15
  29. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  38. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  39. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  40. package/docs/DomainsPortfolioApi.md +1 -1
  41. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  42. package/docs/EcommerceStoresApi.md +117 -0
  43. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  44. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  45. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  46. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  47. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  48. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  49. package/docs/HostingDatabasesApi.md +368 -0
  50. package/docs/HostingDatacentersApi.md +61 -0
  51. package/docs/HostingDomainsApi.md +468 -0
  52. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  53. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  54. package/docs/HostingListOrdersV1200Response.md +22 -0
  55. package/docs/HostingListWebsitesV1200Response.md +22 -0
  56. package/docs/HostingNodeJSApi.md +199 -0
  57. package/docs/HostingOrdersApi.md +70 -0
  58. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  59. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  60. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  61. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  62. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  63. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  64. package/docs/HostingV1DatacentersListRequest.md +20 -0
  65. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  66. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  67. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  68. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  69. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  70. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  71. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  72. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  73. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  74. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  75. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  76. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  77. package/docs/HostingV1OrdersOrderResource.md +30 -0
  78. package/docs/HostingV1OrdersPlanResource.md +20 -0
  79. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  80. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  81. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  82. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  83. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  84. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  85. package/docs/HostingWebsitesApi.md +132 -0
  86. package/docs/HostingWordpressApi.md +126 -0
  87. package/docs/ReachContactsApi.md +63 -4
  88. package/docs/ReachListSegmentContactsV1200Response.md +22 -0
  89. package/docs/ReachProfilesApi.md +54 -0
  90. package/docs/ReachSegmentsApi.md +224 -0
  91. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  92. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  93. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  94. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  95. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  96. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  97. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  98. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  99. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  100. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  101. package/docs/VPSActionsApi.md +1 -1
  102. package/docs/VPSDockerManagerApi.md +7 -7
  103. package/docs/VPSFirewallApi.md +1 -1
  104. package/docs/VPSMalwareScannerApi.md +2 -2
  105. package/docs/VPSVirtualMachineApi.md +2 -2
  106. package/index.ts +1 -1
  107. package/package.json +1 -1
  108. package/docs/BillingOrdersApi.md +0 -63
  109. package/docs/BillingV1OrderStoreRequest.md +0 -24
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 0.1.7
7
+ * API Version: 0.18.2
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,9 +19,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- 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.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = 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 = void 0;
23
- exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = void 0;
24
- 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 = void 0;
22
+ exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = 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 = void 0;
23
+ exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = void 0;
24
+ exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = void 0;
25
+ 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 = void 0;
25
26
  const axios_1 = require("axios");
26
27
  // Some imports not used depending on template conditions
27
28
  // @ts-ignore
@@ -139,6 +140,76 @@ exports.DomainsV1WHOISStoreRequestEntityTypeEnum = {
139
140
  Individual: 'individual',
140
141
  Organization: 'organization'
141
142
  };
143
+ exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
144
+ Builder: 'builder',
145
+ Horizons: 'horizons',
146
+ Tiktok: 'tiktok',
147
+ Custom: 'custom',
148
+ QuickLink: 'quick-link',
149
+ Wordpress: 'wordpress'
150
+ };
151
+ exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
152
+ Custom: 'custom'
153
+ };
154
+ exports.HostingV1DomainsParkedDomainResourceTypeEnum = {
155
+ Domain: 'domain',
156
+ Ip: 'ip'
157
+ };
158
+ exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
159
+ CreateReactApp: 'create-react-app',
160
+ Vite: 'vite',
161
+ Angular: 'angular',
162
+ React: 'react',
163
+ Vue: 'vue',
164
+ Parcel: 'parcel'
165
+ };
166
+ exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
167
+ Npm: 'npm',
168
+ Yarn: 'yarn',
169
+ Pnpm: 'pnpm'
170
+ };
171
+ exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
172
+ Archive: 'archive'
173
+ };
174
+ exports.HostingV1NodeJsBuildResourceStateEnum = {
175
+ Pending: 'pending',
176
+ Running: 'running',
177
+ Completed: 'completed',
178
+ Failed: 'failed'
179
+ };
180
+ exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
181
+ NUMBER_18: 18,
182
+ NUMBER_20: 20,
183
+ NUMBER_22: 22,
184
+ NUMBER_24: 24
185
+ };
186
+ exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = {
187
+ CreateReactApp: 'create-react-app',
188
+ Vite: 'vite',
189
+ Angular: 'angular',
190
+ React: 'react',
191
+ Vue: 'vue',
192
+ Parcel: 'parcel',
193
+ Express: 'express',
194
+ Fastify: 'fastify',
195
+ Nest: 'nest'
196
+ };
197
+ exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
198
+ Npm: 'npm',
199
+ Yarn: 'yarn',
200
+ Pnpm: 'pnpm'
201
+ };
202
+ exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
203
+ Main: 'main',
204
+ Addon: 'addon',
205
+ Parked: 'parked',
206
+ Subdomain: 'subdomain'
207
+ };
208
+ exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
209
+ All: 'all',
210
+ None: 'none',
211
+ Minor: 'minor'
212
+ };
142
213
  exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
143
214
  Subscribed: 'subscribed',
144
215
  Unsubscribed: 'unsubscribed'
@@ -148,6 +219,67 @@ exports.ReachV1ContactsContactResourceSourceEnum = {
148
219
  Import: 'import',
149
220
  Manual: 'manual'
150
221
  };
222
+ exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
223
+ Subscribed: 'subscribed',
224
+ Unsubscribed: 'unsubscribed'
225
+ };
226
+ exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
227
+ Sync: 'sync',
228
+ Import: 'import',
229
+ Manual: 'manual'
230
+ };
231
+ exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = {
232
+ And: 'AND',
233
+ Or: 'OR'
234
+ };
235
+ exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = {
236
+ Equals: 'equals',
237
+ NotEquals: 'not_equals',
238
+ Contains: 'contains',
239
+ NotContains: 'not_contains',
240
+ Gte: 'gte',
241
+ Lte: 'lte',
242
+ Exists: 'exists',
243
+ WithinLastDays: 'within_last_days',
244
+ NotWithinLastDays: 'not_within_last_days',
245
+ OlderThanDays: 'older_than_days',
246
+ Processed: 'processed',
247
+ NotProcessed: 'not_processed',
248
+ Delivered: 'delivered',
249
+ NotDelivered: 'not_delivered',
250
+ Dropped: 'dropped',
251
+ NotDropped: 'not_dropped',
252
+ Bounced: 'bounced',
253
+ NotBounced: 'not_bounced',
254
+ Opened: 'opened',
255
+ NotOpened: 'not_opened',
256
+ Clicked: 'clicked',
257
+ NotClicked: 'not_clicked',
258
+ Unsubscribed: 'unsubscribed',
259
+ NotUnsubscribed: 'not_unsubscribed'
260
+ };
261
+ exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = {
262
+ Note: 'note',
263
+ Comment: 'comment',
264
+ Domain: 'domain',
265
+ Integration: 'integration',
266
+ Source: 'source',
267
+ Name: 'name',
268
+ Surname: 'surname',
269
+ Email: 'email',
270
+ SubscribedAt: 'subscribed_at',
271
+ UnsubscribedAt: 'unsubscribed_at',
272
+ SubscriptionStatus: 'subscription_status',
273
+ Processed: 'processed',
274
+ Opened: 'opened',
275
+ Clicked: 'clicked',
276
+ Delivered: 'delivered',
277
+ Bounced: 'bounced',
278
+ Unsubscribed: 'unsubscribed',
279
+ Dropped: 'dropped',
280
+ Tag: 'tag',
281
+ Campaigns: 'campaigns'
282
+ };
151
283
  exports.VPSV1ActionActionResourceStateEnum = {
152
284
  Success: 'success',
153
285
  Error: 'error',
@@ -367,117 +499,6 @@ exports.GetCatalogItemListV1CategoryEnum = {
367
499
  Domain: 'DOMAIN',
368
500
  Vps: 'VPS'
369
501
  };
370
- /**
371
- * BillingOrdersApi - axios parameter creator
372
- * @export
373
- */
374
- const BillingOrdersApiAxiosParamCreator = function (configuration) {
375
- return {
376
- /**
377
- * Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
378
- * @summary Create service order
379
- * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
380
- * @param {*} [options] Override http request option.
381
- * @deprecated
382
- * @throws {RequiredError}
383
- */
384
- createServiceOrderV1: (billingV1OrderStoreRequest_1, ...args_1) => __awaiter(this, [billingV1OrderStoreRequest_1, ...args_1], void 0, function* (billingV1OrderStoreRequest, options = {}) {
385
- // verify required parameter 'billingV1OrderStoreRequest' is not null or undefined
386
- (0, common_1.assertParamExists)('createServiceOrderV1', 'billingV1OrderStoreRequest', billingV1OrderStoreRequest);
387
- const localVarPath = `/api/billing/v1/orders`;
388
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
389
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
390
- let baseOptions;
391
- if (configuration) {
392
- baseOptions = configuration.baseOptions;
393
- }
394
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
395
- const localVarHeaderParameter = {};
396
- const localVarQueryParameter = {};
397
- // authentication apiToken required
398
- // http bearer authentication required
399
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
400
- localVarHeaderParameter['Content-Type'] = 'application/json';
401
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
402
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
404
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(billingV1OrderStoreRequest, localVarRequestOptions, configuration);
405
- return {
406
- url: (0, common_1.toPathString)(localVarUrlObj),
407
- options: localVarRequestOptions,
408
- };
409
- }),
410
- };
411
- };
412
- exports.BillingOrdersApiAxiosParamCreator = BillingOrdersApiAxiosParamCreator;
413
- /**
414
- * BillingOrdersApi - functional programming interface
415
- * @export
416
- */
417
- const BillingOrdersApiFp = function (configuration) {
418
- const localVarAxiosParamCreator = (0, exports.BillingOrdersApiAxiosParamCreator)(configuration);
419
- return {
420
- /**
421
- * Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
422
- * @summary Create service order
423
- * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
424
- * @param {*} [options] Override http request option.
425
- * @deprecated
426
- * @throws {RequiredError}
427
- */
428
- createServiceOrderV1(billingV1OrderStoreRequest, options) {
429
- return __awaiter(this, void 0, void 0, function* () {
430
- var _a, _b;
431
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createServiceOrderV1(billingV1OrderStoreRequest, options);
432
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingOrdersApi.createServiceOrderV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
433
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
434
- });
435
- },
436
- };
437
- };
438
- exports.BillingOrdersApiFp = BillingOrdersApiFp;
439
- /**
440
- * BillingOrdersApi - factory interface
441
- * @export
442
- */
443
- const BillingOrdersApiFactory = function (configuration, basePath, axios) {
444
- const localVarFp = (0, exports.BillingOrdersApiFp)(configuration);
445
- return {
446
- /**
447
- * Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
448
- * @summary Create service order
449
- * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
450
- * @param {*} [options] Override http request option.
451
- * @deprecated
452
- * @throws {RequiredError}
453
- */
454
- createServiceOrderV1(billingV1OrderStoreRequest, options) {
455
- return localVarFp.createServiceOrderV1(billingV1OrderStoreRequest, options).then((request) => request(axios, basePath));
456
- },
457
- };
458
- };
459
- exports.BillingOrdersApiFactory = BillingOrdersApiFactory;
460
- /**
461
- * BillingOrdersApi - object-oriented interface
462
- * @export
463
- * @class BillingOrdersApi
464
- * @extends {BaseAPI}
465
- */
466
- class BillingOrdersApi extends base_1.BaseAPI {
467
- /**
468
- * Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
469
- * @summary Create service order
470
- * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
471
- * @param {*} [options] Override http request option.
472
- * @deprecated
473
- * @throws {RequiredError}
474
- * @memberof BillingOrdersApi
475
- */
476
- createServiceOrderV1(billingV1OrderStoreRequest, options) {
477
- return (0, exports.BillingOrdersApiFp)(this.configuration).createServiceOrderV1(billingV1OrderStoreRequest, options).then((request) => request(this.axios, this.basePath));
478
- }
479
- }
480
- exports.BillingOrdersApi = BillingOrdersApi;
481
502
  /**
482
503
  * BillingPaymentMethodsApi - axios parameter creator
483
504
  * @export
@@ -720,19 +741,16 @@ exports.BillingPaymentMethodsApi = BillingPaymentMethodsApi;
720
741
  const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
721
742
  return {
722
743
  /**
723
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
724
- * @summary Cancel subscription
744
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
745
+ * @summary Disable auto-renewal
725
746
  * @param {string} subscriptionId Subscription ID
726
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
727
747
  * @param {*} [options] Override http request option.
728
748
  * @throws {RequiredError}
729
749
  */
730
- cancelSubscriptionV1: (subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1) => __awaiter(this, [subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1], void 0, function* (subscriptionId, billingV1SubscriptionCancelRequest, options = {}) {
750
+ disableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
731
751
  // verify required parameter 'subscriptionId' is not null or undefined
732
- (0, common_1.assertParamExists)('cancelSubscriptionV1', 'subscriptionId', subscriptionId);
733
- // verify required parameter 'billingV1SubscriptionCancelRequest' is not null or undefined
734
- (0, common_1.assertParamExists)('cancelSubscriptionV1', 'billingV1SubscriptionCancelRequest', billingV1SubscriptionCancelRequest);
735
- const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}`
752
+ (0, common_1.assertParamExists)('disableAutoRenewalV1', 'subscriptionId', subscriptionId);
753
+ const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
736
754
  .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
737
755
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
756
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -746,11 +764,41 @@ const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
746
764
  // authentication apiToken required
747
765
  // http bearer authentication required
748
766
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
749
- localVarHeaderParameter['Content-Type'] = 'application/json';
750
767
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
751
768
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
769
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
753
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(billingV1SubscriptionCancelRequest, localVarRequestOptions, configuration);
770
+ return {
771
+ url: (0, common_1.toPathString)(localVarUrlObj),
772
+ options: localVarRequestOptions,
773
+ };
774
+ }),
775
+ /**
776
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
777
+ * @summary Enable auto-renewal
778
+ * @param {string} subscriptionId Subscription ID
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ enableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
783
+ // verify required parameter 'subscriptionId' is not null or undefined
784
+ (0, common_1.assertParamExists)('enableAutoRenewalV1', 'subscriptionId', subscriptionId);
785
+ const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
786
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
787
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
788
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
789
+ let baseOptions;
790
+ if (configuration) {
791
+ baseOptions = configuration.baseOptions;
792
+ }
793
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
794
+ const localVarHeaderParameter = {};
795
+ const localVarQueryParameter = {};
796
+ // authentication apiToken required
797
+ // http bearer authentication required
798
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
799
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
801
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
754
802
  return {
755
803
  url: (0, common_1.toPathString)(localVarUrlObj),
756
804
  options: localVarRequestOptions,
@@ -795,18 +843,32 @@ const BillingSubscriptionsApiFp = function (configuration) {
795
843
  const localVarAxiosParamCreator = (0, exports.BillingSubscriptionsApiAxiosParamCreator)(configuration);
796
844
  return {
797
845
  /**
798
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
799
- * @summary Cancel subscription
846
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
847
+ * @summary Disable auto-renewal
848
+ * @param {string} subscriptionId Subscription ID
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ disableAutoRenewalV1(subscriptionId, options) {
853
+ return __awaiter(this, void 0, void 0, function* () {
854
+ var _a, _b;
855
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
856
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
857
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
858
+ });
859
+ },
860
+ /**
861
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
862
+ * @summary Enable auto-renewal
800
863
  * @param {string} subscriptionId Subscription ID
801
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
802
864
  * @param {*} [options] Override http request option.
803
865
  * @throws {RequiredError}
804
866
  */
805
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
867
+ enableAutoRenewalV1(subscriptionId, options) {
806
868
  return __awaiter(this, void 0, void 0, function* () {
807
869
  var _a, _b;
808
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options);
809
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.cancelSubscriptionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
871
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
810
872
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
811
873
  });
812
874
  },
@@ -835,15 +897,24 @@ const BillingSubscriptionsApiFactory = function (configuration, basePath, axios)
835
897
  const localVarFp = (0, exports.BillingSubscriptionsApiFp)(configuration);
836
898
  return {
837
899
  /**
838
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
839
- * @summary Cancel subscription
900
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
901
+ * @summary Disable auto-renewal
902
+ * @param {string} subscriptionId Subscription ID
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ disableAutoRenewalV1(subscriptionId, options) {
907
+ return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
908
+ },
909
+ /**
910
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
911
+ * @summary Enable auto-renewal
840
912
  * @param {string} subscriptionId Subscription ID
841
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
842
913
  * @param {*} [options] Override http request option.
843
914
  * @throws {RequiredError}
844
915
  */
845
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
846
- return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
916
+ enableAutoRenewalV1(subscriptionId, options) {
917
+ return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
847
918
  },
848
919
  /**
849
920
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
@@ -865,16 +936,26 @@ exports.BillingSubscriptionsApiFactory = BillingSubscriptionsApiFactory;
865
936
  */
866
937
  class BillingSubscriptionsApi extends base_1.BaseAPI {
867
938
  /**
868
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
869
- * @summary Cancel subscription
939
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
940
+ * @summary Disable auto-renewal
941
+ * @param {string} subscriptionId Subscription ID
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ * @memberof BillingSubscriptionsApi
945
+ */
946
+ disableAutoRenewalV1(subscriptionId, options) {
947
+ return (0, exports.BillingSubscriptionsApiFp)(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
948
+ }
949
+ /**
950
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
951
+ * @summary Enable auto-renewal
870
952
  * @param {string} subscriptionId Subscription ID
871
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
872
953
  * @param {*} [options] Override http request option.
873
954
  * @throws {RequiredError}
874
955
  * @memberof BillingSubscriptionsApi
875
956
  */
876
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
877
- return (0, exports.BillingSubscriptionsApiFp)(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
957
+ enableAutoRenewalV1(subscriptionId, options) {
958
+ return (0, exports.BillingSubscriptionsApiFp)(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
878
959
  }
879
960
  /**
880
961
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
@@ -1554,6 +1635,113 @@ class DNSZoneApi extends base_1.BaseAPI {
1554
1635
  }
1555
1636
  }
1556
1637
  exports.DNSZoneApi = DNSZoneApi;
1638
+ /**
1639
+ * DomainAccessVerifierVerificationsApi - axios parameter creator
1640
+ * @export
1641
+ */
1642
+ const DomainAccessVerifierVerificationsApiAxiosParamCreator = function (configuration) {
1643
+ return {
1644
+ /**
1645
+ * Retrieve a list of pending and completed domain verifications.
1646
+ * @summary Get domain verifications
1647
+ * @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ */
1651
+ getDomainVerificationsDIRECT: (domainAccessVerifierV2VerificationsListRequest_1, ...args_1) => __awaiter(this, [domainAccessVerifierV2VerificationsListRequest_1, ...args_1], void 0, function* (domainAccessVerifierV2VerificationsListRequest, options = {}) {
1652
+ // verify required parameter 'domainAccessVerifierV2VerificationsListRequest' is not null or undefined
1653
+ (0, common_1.assertParamExists)('getDomainVerificationsDIRECT', 'domainAccessVerifierV2VerificationsListRequest', domainAccessVerifierV2VerificationsListRequest);
1654
+ const localVarPath = `/api/v2/direct/verifications/active`;
1655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1657
+ let baseOptions;
1658
+ if (configuration) {
1659
+ baseOptions = configuration.baseOptions;
1660
+ }
1661
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1662
+ const localVarHeaderParameter = {};
1663
+ const localVarQueryParameter = {};
1664
+ // authentication apiToken required
1665
+ // http bearer authentication required
1666
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1667
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1668
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1670
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1671
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainAccessVerifierV2VerificationsListRequest, localVarRequestOptions, configuration);
1672
+ return {
1673
+ url: (0, common_1.toPathString)(localVarUrlObj),
1674
+ options: localVarRequestOptions,
1675
+ };
1676
+ }),
1677
+ };
1678
+ };
1679
+ exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = DomainAccessVerifierVerificationsApiAxiosParamCreator;
1680
+ /**
1681
+ * DomainAccessVerifierVerificationsApi - functional programming interface
1682
+ * @export
1683
+ */
1684
+ const DomainAccessVerifierVerificationsApiFp = function (configuration) {
1685
+ const localVarAxiosParamCreator = (0, exports.DomainAccessVerifierVerificationsApiAxiosParamCreator)(configuration);
1686
+ return {
1687
+ /**
1688
+ * Retrieve a list of pending and completed domain verifications.
1689
+ * @summary Get domain verifications
1690
+ * @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
1691
+ * @param {*} [options] Override http request option.
1692
+ * @throws {RequiredError}
1693
+ */
1694
+ getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
1695
+ return __awaiter(this, void 0, void 0, function* () {
1696
+ var _a, _b;
1697
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options);
1698
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainAccessVerifierVerificationsApi.getDomainVerificationsDIRECT']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1699
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1700
+ });
1701
+ },
1702
+ };
1703
+ };
1704
+ exports.DomainAccessVerifierVerificationsApiFp = DomainAccessVerifierVerificationsApiFp;
1705
+ /**
1706
+ * DomainAccessVerifierVerificationsApi - factory interface
1707
+ * @export
1708
+ */
1709
+ const DomainAccessVerifierVerificationsApiFactory = function (configuration, basePath, axios) {
1710
+ const localVarFp = (0, exports.DomainAccessVerifierVerificationsApiFp)(configuration);
1711
+ return {
1712
+ /**
1713
+ * Retrieve a list of pending and completed domain verifications.
1714
+ * @summary Get domain verifications
1715
+ * @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ */
1719
+ getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
1720
+ return localVarFp.getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options).then((request) => request(axios, basePath));
1721
+ },
1722
+ };
1723
+ };
1724
+ exports.DomainAccessVerifierVerificationsApiFactory = DomainAccessVerifierVerificationsApiFactory;
1725
+ /**
1726
+ * DomainAccessVerifierVerificationsApi - object-oriented interface
1727
+ * @export
1728
+ * @class DomainAccessVerifierVerificationsApi
1729
+ * @extends {BaseAPI}
1730
+ */
1731
+ class DomainAccessVerifierVerificationsApi extends base_1.BaseAPI {
1732
+ /**
1733
+ * Retrieve a list of pending and completed domain verifications.
1734
+ * @summary Get domain verifications
1735
+ * @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ * @memberof DomainAccessVerifierVerificationsApi
1739
+ */
1740
+ getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
1741
+ return (0, exports.DomainAccessVerifierVerificationsApiFp)(this.configuration).getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options).then((request) => request(this.axios, this.basePath));
1742
+ }
1743
+ }
1744
+ exports.DomainAccessVerifierVerificationsApi = DomainAccessVerifierVerificationsApi;
1557
1745
  /**
1558
1746
  * DomainsAvailabilityApi - axios parameter creator
1559
1747
  * @export
@@ -2099,7 +2287,7 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
2099
2287
  };
2100
2288
  }),
2101
2289
  /**
2102
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2290
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2103
2291
  * @summary Purchase new domain
2104
2292
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2105
2293
  * @param {*} [options] Override http request option.
@@ -2268,7 +2456,7 @@ const DomainsPortfolioApiFp = function (configuration) {
2268
2456
  });
2269
2457
  },
2270
2458
  /**
2271
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2459
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2272
2460
  * @summary Purchase new domain
2273
2461
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2274
2462
  * @param {*} [options] Override http request option.
@@ -2368,7 +2556,7 @@ const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
2368
2556
  return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
2369
2557
  },
2370
2558
  /**
2371
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2559
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2372
2560
  * @summary Purchase new domain
2373
2561
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2374
2562
  * @param {*} [options] Override http request option.
@@ -2464,7 +2652,7 @@ class DomainsPortfolioApi extends base_1.BaseAPI {
2464
2652
  return (0, exports.DomainsPortfolioApiFp)(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
2465
2653
  }
2466
2654
  /**
2467
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2655
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
2468
2656
  * @summary Purchase new domain
2469
2657
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2470
2658
  * @param {*} [options] Override http request option.
@@ -2868,22 +3056,22 @@ class DomainsWHOISApi extends base_1.BaseAPI {
2868
3056
  }
2869
3057
  exports.DomainsWHOISApi = DomainsWHOISApi;
2870
3058
  /**
2871
- * ReachContactsApi - axios parameter creator
3059
+ * EcommerceStoresApi - axios parameter creator
2872
3060
  * @export
2873
3061
  */
2874
- const ReachContactsApiAxiosParamCreator = function (configuration) {
3062
+ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
2875
3063
  return {
2876
3064
  /**
2877
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
2878
- * @summary Create a new contact
2879
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
3065
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3066
+ * @summary Create store
3067
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
2880
3068
  * @param {*} [options] Override http request option.
2881
3069
  * @throws {RequiredError}
2882
3070
  */
2883
- createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
2884
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
2885
- (0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
2886
- const localVarPath = `/api/reach/v1/contacts`;
3071
+ createStoreV1: (ecommerceV1StoreStoreRequest_1, ...args_1) => __awaiter(this, [ecommerceV1StoreStoreRequest_1, ...args_1], void 0, function* (ecommerceV1StoreStoreRequest, options = {}) {
3072
+ // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
3073
+ (0, common_1.assertParamExists)('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest);
3074
+ const localVarPath = `/api/ecommerce/v1/stores`;
2887
3075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2888
3076
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2889
3077
  let baseOptions;
@@ -2900,36 +3088,36 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
2900
3088
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2901
3089
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2902
3090
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2903
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
3091
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
2904
3092
  return {
2905
3093
  url: (0, common_1.toPathString)(localVarUrlObj),
2906
3094
  options: localVarRequestOptions,
2907
3095
  };
2908
3096
  }),
2909
3097
  /**
2910
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
2911
- * @summary Delete a contact
2912
- * @param {string} uuid UUID of the contact to delete
3098
+ * Retrieve the stores associated with your account.
3099
+ * @summary Get stores
3100
+ * @param {number} [page] Page number
2913
3101
  * @param {*} [options] Override http request option.
2914
3102
  * @throws {RequiredError}
2915
3103
  */
2916
- deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
2917
- // verify required parameter 'uuid' is not null or undefined
2918
- (0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
2919
- const localVarPath = `/api/reach/v1/contacts/{uuid}`
2920
- .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
3104
+ getStoresV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
3105
+ const localVarPath = `/api/ecommerce/v1/stores`;
2921
3106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2922
3107
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2923
3108
  let baseOptions;
2924
3109
  if (configuration) {
2925
3110
  baseOptions = configuration.baseOptions;
2926
3111
  }
2927
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2928
3113
  const localVarHeaderParameter = {};
2929
3114
  const localVarQueryParameter = {};
2930
3115
  // authentication apiToken required
2931
3116
  // http bearer authentication required
2932
3117
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3118
+ if (page !== undefined) {
3119
+ localVarQueryParameter['page'] = page;
3120
+ }
2933
3121
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2934
3122
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2935
3123
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2938,20 +3126,2685 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
2938
3126
  options: localVarRequestOptions,
2939
3127
  };
2940
3128
  }),
3129
+ };
3130
+ };
3131
+ exports.EcommerceStoresApiAxiosParamCreator = EcommerceStoresApiAxiosParamCreator;
3132
+ /**
3133
+ * EcommerceStoresApi - functional programming interface
3134
+ * @export
3135
+ */
3136
+ const EcommerceStoresApiFp = function (configuration) {
3137
+ const localVarAxiosParamCreator = (0, exports.EcommerceStoresApiAxiosParamCreator)(configuration);
3138
+ return {
2941
3139
  /**
2942
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
2943
- * @summary List contact groups
3140
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3141
+ * @summary Create store
3142
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
2944
3143
  * @param {*} [options] Override http request option.
2945
3144
  * @throws {RequiredError}
2946
3145
  */
2947
- listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2948
- const localVarPath = `/api/reach/v1/contacts/groups`;
2949
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2950
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2951
- let baseOptions;
2952
- if (configuration) {
2953
- baseOptions = configuration.baseOptions;
2954
- }
3146
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3147
+ return __awaiter(this, void 0, void 0, function* () {
3148
+ var _a, _b;
3149
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
3150
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.createStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3151
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3152
+ });
3153
+ },
3154
+ /**
3155
+ * Retrieve the stores associated with your account.
3156
+ * @summary Get stores
3157
+ * @param {number} [page] Page number
3158
+ * @param {*} [options] Override http request option.
3159
+ * @throws {RequiredError}
3160
+ */
3161
+ getStoresV1(page, options) {
3162
+ return __awaiter(this, void 0, void 0, function* () {
3163
+ var _a, _b;
3164
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoresV1(page, options);
3165
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.getStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3166
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3167
+ });
3168
+ },
3169
+ };
3170
+ };
3171
+ exports.EcommerceStoresApiFp = EcommerceStoresApiFp;
3172
+ /**
3173
+ * EcommerceStoresApi - factory interface
3174
+ * @export
3175
+ */
3176
+ const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
3177
+ const localVarFp = (0, exports.EcommerceStoresApiFp)(configuration);
3178
+ return {
3179
+ /**
3180
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3181
+ * @summary Create store
3182
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3183
+ * @param {*} [options] Override http request option.
3184
+ * @throws {RequiredError}
3185
+ */
3186
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3187
+ return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
3188
+ },
3189
+ /**
3190
+ * Retrieve the stores associated with your account.
3191
+ * @summary Get stores
3192
+ * @param {number} [page] Page number
3193
+ * @param {*} [options] Override http request option.
3194
+ * @throws {RequiredError}
3195
+ */
3196
+ getStoresV1(page, options) {
3197
+ return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
3198
+ },
3199
+ };
3200
+ };
3201
+ exports.EcommerceStoresApiFactory = EcommerceStoresApiFactory;
3202
+ /**
3203
+ * EcommerceStoresApi - object-oriented interface
3204
+ * @export
3205
+ * @class EcommerceStoresApi
3206
+ * @extends {BaseAPI}
3207
+ */
3208
+ class EcommerceStoresApi extends base_1.BaseAPI {
3209
+ /**
3210
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3211
+ * @summary Create store
3212
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3213
+ * @param {*} [options] Override http request option.
3214
+ * @throws {RequiredError}
3215
+ * @memberof EcommerceStoresApi
3216
+ */
3217
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3218
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
3219
+ }
3220
+ /**
3221
+ * Retrieve the stores associated with your account.
3222
+ * @summary Get stores
3223
+ * @param {number} [page] Page number
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ * @memberof EcommerceStoresApi
3227
+ */
3228
+ getStoresV1(page, options) {
3229
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
3230
+ }
3231
+ }
3232
+ exports.EcommerceStoresApi = EcommerceStoresApi;
3233
+ /**
3234
+ * HostingDatabasesApi - axios parameter creator
3235
+ * @export
3236
+ */
3237
+ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3238
+ return {
3239
+ /**
3240
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3241
+ * @summary Change database password
3242
+ * @param {string} username
3243
+ * @param {string} name Full database name as returned by the list databases endpoint.
3244
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3245
+ * @param {*} [options] Override http request option.
3246
+ * @throws {RequiredError}
3247
+ */
3248
+ changeDatabasePasswordV1: (username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options = {}) {
3249
+ // verify required parameter 'username' is not null or undefined
3250
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'username', username);
3251
+ // verify required parameter 'name' is not null or undefined
3252
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'name', name);
3253
+ // verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
3254
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
3255
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
3256
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3257
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3259
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3260
+ let baseOptions;
3261
+ if (configuration) {
3262
+ baseOptions = configuration.baseOptions;
3263
+ }
3264
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3265
+ const localVarHeaderParameter = {};
3266
+ const localVarQueryParameter = {};
3267
+ // authentication apiToken required
3268
+ // http bearer authentication required
3269
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3270
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3274
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
3275
+ return {
3276
+ url: (0, common_1.toPathString)(localVarUrlObj),
3277
+ options: localVarRequestOptions,
3278
+ };
3279
+ }),
3280
+ /**
3281
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3282
+ * @summary Create account database
3283
+ * @param {string} username
3284
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3285
+ * @param {*} [options] Override http request option.
3286
+ * @throws {RequiredError}
3287
+ */
3288
+ createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
3289
+ // verify required parameter 'username' is not null or undefined
3290
+ (0, common_1.assertParamExists)('createAccountDatabaseV1', 'username', username);
3291
+ // verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
3292
+ (0, common_1.assertParamExists)('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
3293
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
3294
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3296
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3297
+ let baseOptions;
3298
+ if (configuration) {
3299
+ baseOptions = configuration.baseOptions;
3300
+ }
3301
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3302
+ const localVarHeaderParameter = {};
3303
+ const localVarQueryParameter = {};
3304
+ // authentication apiToken required
3305
+ // http bearer authentication required
3306
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3307
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3308
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3310
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3311
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
3312
+ return {
3313
+ url: (0, common_1.toPathString)(localVarUrlObj),
3314
+ options: localVarRequestOptions,
3315
+ };
3316
+ }),
3317
+ /**
3318
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3319
+ * @summary Delete account database
3320
+ * @param {string} username
3321
+ * @param {string} name Full database name as returned by the list databases endpoint.
3322
+ * @param {*} [options] Override http request option.
3323
+ * @throws {RequiredError}
3324
+ */
3325
+ deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3326
+ // verify required parameter 'username' is not null or undefined
3327
+ (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'username', username);
3328
+ // verify required parameter 'name' is not null or undefined
3329
+ (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'name', name);
3330
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
3331
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3332
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3334
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3335
+ let baseOptions;
3336
+ if (configuration) {
3337
+ baseOptions = configuration.baseOptions;
3338
+ }
3339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3340
+ const localVarHeaderParameter = {};
3341
+ const localVarQueryParameter = {};
3342
+ // authentication apiToken required
3343
+ // http bearer authentication required
3344
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3347
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3348
+ return {
3349
+ url: (0, common_1.toPathString)(localVarUrlObj),
3350
+ options: localVarRequestOptions,
3351
+ };
3352
+ }),
3353
+ /**
3354
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
3355
+ * @summary Get phpMyAdmin link
3356
+ * @param {string} username
3357
+ * @param {string} name Full database name as returned by the list databases endpoint.
3358
+ * @param {*} [options] Override http request option.
3359
+ * @throws {RequiredError}
3360
+ */
3361
+ getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3362
+ // verify required parameter 'username' is not null or undefined
3363
+ (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'username', username);
3364
+ // verify required parameter 'name' is not null or undefined
3365
+ (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'name', name);
3366
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
3367
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3368
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3370
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3371
+ let baseOptions;
3372
+ if (configuration) {
3373
+ baseOptions = configuration.baseOptions;
3374
+ }
3375
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3376
+ const localVarHeaderParameter = {};
3377
+ const localVarQueryParameter = {};
3378
+ // authentication apiToken required
3379
+ // http bearer authentication required
3380
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3381
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3382
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3383
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3384
+ return {
3385
+ url: (0, common_1.toPathString)(localVarUrlObj),
3386
+ options: localVarRequestOptions,
3387
+ };
3388
+ }),
3389
+ /**
3390
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
3391
+ * @summary List account databases
3392
+ * @param {string} username
3393
+ * @param {number} [page] Page number
3394
+ * @param {number} [perPage] Number of items per page
3395
+ * @param {string | null} [domain] Filter by domain name (exact match)
3396
+ * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
3397
+ * @param {string | null} [search] Search databases by name, user, or creation date.
3398
+ * @param {*} [options] Override http request option.
3399
+ * @throws {RequiredError}
3400
+ */
3401
+ listAccountDatabasesV1: (username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1) => __awaiter(this, [username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1], void 0, function* (username, page, perPage, domain, isAssigned, search, options = {}) {
3402
+ // verify required parameter 'username' is not null or undefined
3403
+ (0, common_1.assertParamExists)('listAccountDatabasesV1', 'username', username);
3404
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
3405
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3407
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3408
+ let baseOptions;
3409
+ if (configuration) {
3410
+ baseOptions = configuration.baseOptions;
3411
+ }
3412
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3413
+ const localVarHeaderParameter = {};
3414
+ const localVarQueryParameter = {};
3415
+ // authentication apiToken required
3416
+ // http bearer authentication required
3417
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3418
+ if (page !== undefined) {
3419
+ localVarQueryParameter['page'] = page;
3420
+ }
3421
+ if (perPage !== undefined) {
3422
+ localVarQueryParameter['per_page'] = perPage;
3423
+ }
3424
+ if (domain !== undefined) {
3425
+ localVarQueryParameter['domain'] = domain;
3426
+ }
3427
+ if (isAssigned !== undefined) {
3428
+ localVarQueryParameter['is_assigned'] = isAssigned;
3429
+ }
3430
+ if (search !== undefined) {
3431
+ localVarQueryParameter['search'] = search;
3432
+ }
3433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3436
+ return {
3437
+ url: (0, common_1.toPathString)(localVarUrlObj),
3438
+ options: localVarRequestOptions,
3439
+ };
3440
+ }),
3441
+ /**
3442
+ * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
3443
+ * @summary Repair database
3444
+ * @param {string} username
3445
+ * @param {string} name Full database name as returned by the list databases endpoint.
3446
+ * @param {*} [options] Override http request option.
3447
+ * @throws {RequiredError}
3448
+ */
3449
+ repairDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3450
+ // verify required parameter 'username' is not null or undefined
3451
+ (0, common_1.assertParamExists)('repairDatabaseV1', 'username', username);
3452
+ // verify required parameter 'name' is not null or undefined
3453
+ (0, common_1.assertParamExists)('repairDatabaseV1', 'name', name);
3454
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/repair`
3455
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3456
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3457
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3458
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3459
+ let baseOptions;
3460
+ if (configuration) {
3461
+ baseOptions = configuration.baseOptions;
3462
+ }
3463
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3464
+ const localVarHeaderParameter = {};
3465
+ const localVarQueryParameter = {};
3466
+ // authentication apiToken required
3467
+ // http bearer authentication required
3468
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3469
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3472
+ return {
3473
+ url: (0, common_1.toPathString)(localVarUrlObj),
3474
+ options: localVarRequestOptions,
3475
+ };
3476
+ }),
3477
+ };
3478
+ };
3479
+ exports.HostingDatabasesApiAxiosParamCreator = HostingDatabasesApiAxiosParamCreator;
3480
+ /**
3481
+ * HostingDatabasesApi - functional programming interface
3482
+ * @export
3483
+ */
3484
+ const HostingDatabasesApiFp = function (configuration) {
3485
+ const localVarAxiosParamCreator = (0, exports.HostingDatabasesApiAxiosParamCreator)(configuration);
3486
+ return {
3487
+ /**
3488
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3489
+ * @summary Change database password
3490
+ * @param {string} username
3491
+ * @param {string} name Full database name as returned by the list databases endpoint.
3492
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3493
+ * @param {*} [options] Override http request option.
3494
+ * @throws {RequiredError}
3495
+ */
3496
+ changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
3497
+ return __awaiter(this, void 0, void 0, function* () {
3498
+ var _a, _b;
3499
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options);
3500
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3501
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3502
+ });
3503
+ },
3504
+ /**
3505
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3506
+ * @summary Create account database
3507
+ * @param {string} username
3508
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3509
+ * @param {*} [options] Override http request option.
3510
+ * @throws {RequiredError}
3511
+ */
3512
+ createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
3513
+ return __awaiter(this, void 0, void 0, function* () {
3514
+ var _a, _b;
3515
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options);
3516
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.createAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3517
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3518
+ });
3519
+ },
3520
+ /**
3521
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3522
+ * @summary Delete account database
3523
+ * @param {string} username
3524
+ * @param {string} name Full database name as returned by the list databases endpoint.
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ */
3528
+ deleteAccountDatabaseV1(username, name, options) {
3529
+ return __awaiter(this, void 0, void 0, function* () {
3530
+ var _a, _b;
3531
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseV1(username, name, options);
3532
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.deleteAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3533
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3534
+ });
3535
+ },
3536
+ /**
3537
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
3538
+ * @summary Get phpMyAdmin link
3539
+ * @param {string} username
3540
+ * @param {string} name Full database name as returned by the list databases endpoint.
3541
+ * @param {*} [options] Override http request option.
3542
+ * @throws {RequiredError}
3543
+ */
3544
+ getPhpMyAdminLinkV1(username, name, options) {
3545
+ return __awaiter(this, void 0, void 0, function* () {
3546
+ var _a, _b;
3547
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPhpMyAdminLinkV1(username, name, options);
3548
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.getPhpMyAdminLinkV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3549
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3550
+ });
3551
+ },
3552
+ /**
3553
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
3554
+ * @summary List account databases
3555
+ * @param {string} username
3556
+ * @param {number} [page] Page number
3557
+ * @param {number} [perPage] Number of items per page
3558
+ * @param {string | null} [domain] Filter by domain name (exact match)
3559
+ * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
3560
+ * @param {string | null} [search] Search databases by name, user, or creation date.
3561
+ * @param {*} [options] Override http request option.
3562
+ * @throws {RequiredError}
3563
+ */
3564
+ listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
3565
+ return __awaiter(this, void 0, void 0, function* () {
3566
+ var _a, _b;
3567
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options);
3568
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.listAccountDatabasesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3569
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3570
+ });
3571
+ },
3572
+ /**
3573
+ * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
3574
+ * @summary Repair database
3575
+ * @param {string} username
3576
+ * @param {string} name Full database name as returned by the list databases endpoint.
3577
+ * @param {*} [options] Override http request option.
3578
+ * @throws {RequiredError}
3579
+ */
3580
+ repairDatabaseV1(username, name, options) {
3581
+ return __awaiter(this, void 0, void 0, function* () {
3582
+ var _a, _b;
3583
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.repairDatabaseV1(username, name, options);
3584
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.repairDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3585
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3586
+ });
3587
+ },
3588
+ };
3589
+ };
3590
+ exports.HostingDatabasesApiFp = HostingDatabasesApiFp;
3591
+ /**
3592
+ * HostingDatabasesApi - factory interface
3593
+ * @export
3594
+ */
3595
+ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
3596
+ const localVarFp = (0, exports.HostingDatabasesApiFp)(configuration);
3597
+ return {
3598
+ /**
3599
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3600
+ * @summary Change database password
3601
+ * @param {string} username
3602
+ * @param {string} name Full database name as returned by the list databases endpoint.
3603
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3604
+ * @param {*} [options] Override http request option.
3605
+ * @throws {RequiredError}
3606
+ */
3607
+ changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
3608
+ return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
3609
+ },
3610
+ /**
3611
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3612
+ * @summary Create account database
3613
+ * @param {string} username
3614
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3615
+ * @param {*} [options] Override http request option.
3616
+ * @throws {RequiredError}
3617
+ */
3618
+ createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
3619
+ return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
3620
+ },
3621
+ /**
3622
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3623
+ * @summary Delete account database
3624
+ * @param {string} username
3625
+ * @param {string} name Full database name as returned by the list databases endpoint.
3626
+ * @param {*} [options] Override http request option.
3627
+ * @throws {RequiredError}
3628
+ */
3629
+ deleteAccountDatabaseV1(username, name, options) {
3630
+ return localVarFp.deleteAccountDatabaseV1(username, name, options).then((request) => request(axios, basePath));
3631
+ },
3632
+ /**
3633
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
3634
+ * @summary Get phpMyAdmin link
3635
+ * @param {string} username
3636
+ * @param {string} name Full database name as returned by the list databases endpoint.
3637
+ * @param {*} [options] Override http request option.
3638
+ * @throws {RequiredError}
3639
+ */
3640
+ getPhpMyAdminLinkV1(username, name, options) {
3641
+ return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
3642
+ },
3643
+ /**
3644
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
3645
+ * @summary List account databases
3646
+ * @param {string} username
3647
+ * @param {number} [page] Page number
3648
+ * @param {number} [perPage] Number of items per page
3649
+ * @param {string | null} [domain] Filter by domain name (exact match)
3650
+ * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
3651
+ * @param {string | null} [search] Search databases by name, user, or creation date.
3652
+ * @param {*} [options] Override http request option.
3653
+ * @throws {RequiredError}
3654
+ */
3655
+ listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
3656
+ return localVarFp.listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options).then((request) => request(axios, basePath));
3657
+ },
3658
+ /**
3659
+ * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
3660
+ * @summary Repair database
3661
+ * @param {string} username
3662
+ * @param {string} name Full database name as returned by the list databases endpoint.
3663
+ * @param {*} [options] Override http request option.
3664
+ * @throws {RequiredError}
3665
+ */
3666
+ repairDatabaseV1(username, name, options) {
3667
+ return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
3668
+ },
3669
+ };
3670
+ };
3671
+ exports.HostingDatabasesApiFactory = HostingDatabasesApiFactory;
3672
+ /**
3673
+ * HostingDatabasesApi - object-oriented interface
3674
+ * @export
3675
+ * @class HostingDatabasesApi
3676
+ * @extends {BaseAPI}
3677
+ */
3678
+ class HostingDatabasesApi extends base_1.BaseAPI {
3679
+ /**
3680
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3681
+ * @summary Change database password
3682
+ * @param {string} username
3683
+ * @param {string} name Full database name as returned by the list databases endpoint.
3684
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3685
+ * @param {*} [options] Override http request option.
3686
+ * @throws {RequiredError}
3687
+ * @memberof HostingDatabasesApi
3688
+ */
3689
+ changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
3690
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
3691
+ }
3692
+ /**
3693
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3694
+ * @summary Create account database
3695
+ * @param {string} username
3696
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3697
+ * @param {*} [options] Override http request option.
3698
+ * @throws {RequiredError}
3699
+ * @memberof HostingDatabasesApi
3700
+ */
3701
+ createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
3702
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
3703
+ }
3704
+ /**
3705
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3706
+ * @summary Delete account database
3707
+ * @param {string} username
3708
+ * @param {string} name Full database name as returned by the list databases endpoint.
3709
+ * @param {*} [options] Override http request option.
3710
+ * @throws {RequiredError}
3711
+ * @memberof HostingDatabasesApi
3712
+ */
3713
+ deleteAccountDatabaseV1(username, name, options) {
3714
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).deleteAccountDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
3715
+ }
3716
+ /**
3717
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
3718
+ * @summary Get phpMyAdmin link
3719
+ * @param {string} username
3720
+ * @param {string} name Full database name as returned by the list databases endpoint.
3721
+ * @param {*} [options] Override http request option.
3722
+ * @throws {RequiredError}
3723
+ * @memberof HostingDatabasesApi
3724
+ */
3725
+ getPhpMyAdminLinkV1(username, name, options) {
3726
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
3727
+ }
3728
+ /**
3729
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
3730
+ * @summary List account databases
3731
+ * @param {string} username
3732
+ * @param {number} [page] Page number
3733
+ * @param {number} [perPage] Number of items per page
3734
+ * @param {string | null} [domain] Filter by domain name (exact match)
3735
+ * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
3736
+ * @param {string | null} [search] Search databases by name, user, or creation date.
3737
+ * @param {*} [options] Override http request option.
3738
+ * @throws {RequiredError}
3739
+ * @memberof HostingDatabasesApi
3740
+ */
3741
+ listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
3742
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options).then((request) => request(this.axios, this.basePath));
3743
+ }
3744
+ /**
3745
+ * Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
3746
+ * @summary Repair database
3747
+ * @param {string} username
3748
+ * @param {string} name Full database name as returned by the list databases endpoint.
3749
+ * @param {*} [options] Override http request option.
3750
+ * @throws {RequiredError}
3751
+ * @memberof HostingDatabasesApi
3752
+ */
3753
+ repairDatabaseV1(username, name, options) {
3754
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
3755
+ }
3756
+ }
3757
+ exports.HostingDatabasesApi = HostingDatabasesApi;
3758
+ /**
3759
+ * HostingDatacentersApi - axios parameter creator
3760
+ * @export
3761
+ */
3762
+ const HostingDatacentersApiAxiosParamCreator = function (configuration) {
3763
+ return {
3764
+ /**
3765
+ * Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
3766
+ * @summary List available datacenters
3767
+ * @param {number} orderId Order ID
3768
+ * @param {*} [options] Override http request option.
3769
+ * @throws {RequiredError}
3770
+ */
3771
+ listAvailableDatacentersV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
3772
+ // verify required parameter 'orderId' is not null or undefined
3773
+ (0, common_1.assertParamExists)('listAvailableDatacentersV1', 'orderId', orderId);
3774
+ const localVarPath = `/api/hosting/v1/datacenters`;
3775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3776
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3777
+ let baseOptions;
3778
+ if (configuration) {
3779
+ baseOptions = configuration.baseOptions;
3780
+ }
3781
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3782
+ const localVarHeaderParameter = {};
3783
+ const localVarQueryParameter = {};
3784
+ // authentication apiToken required
3785
+ // http bearer authentication required
3786
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3787
+ if (orderId !== undefined) {
3788
+ localVarQueryParameter['order_id'] = orderId;
3789
+ }
3790
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3793
+ return {
3794
+ url: (0, common_1.toPathString)(localVarUrlObj),
3795
+ options: localVarRequestOptions,
3796
+ };
3797
+ }),
3798
+ };
3799
+ };
3800
+ exports.HostingDatacentersApiAxiosParamCreator = HostingDatacentersApiAxiosParamCreator;
3801
+ /**
3802
+ * HostingDatacentersApi - functional programming interface
3803
+ * @export
3804
+ */
3805
+ const HostingDatacentersApiFp = function (configuration) {
3806
+ const localVarAxiosParamCreator = (0, exports.HostingDatacentersApiAxiosParamCreator)(configuration);
3807
+ return {
3808
+ /**
3809
+ * Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
3810
+ * @summary List available datacenters
3811
+ * @param {number} orderId Order ID
3812
+ * @param {*} [options] Override http request option.
3813
+ * @throws {RequiredError}
3814
+ */
3815
+ listAvailableDatacentersV1(orderId, options) {
3816
+ return __awaiter(this, void 0, void 0, function* () {
3817
+ var _a, _b;
3818
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableDatacentersV1(orderId, options);
3819
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatacentersApi.listAvailableDatacentersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3820
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3821
+ });
3822
+ },
3823
+ };
3824
+ };
3825
+ exports.HostingDatacentersApiFp = HostingDatacentersApiFp;
3826
+ /**
3827
+ * HostingDatacentersApi - factory interface
3828
+ * @export
3829
+ */
3830
+ const HostingDatacentersApiFactory = function (configuration, basePath, axios) {
3831
+ const localVarFp = (0, exports.HostingDatacentersApiFp)(configuration);
3832
+ return {
3833
+ /**
3834
+ * Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
3835
+ * @summary List available datacenters
3836
+ * @param {number} orderId Order ID
3837
+ * @param {*} [options] Override http request option.
3838
+ * @throws {RequiredError}
3839
+ */
3840
+ listAvailableDatacentersV1(orderId, options) {
3841
+ return localVarFp.listAvailableDatacentersV1(orderId, options).then((request) => request(axios, basePath));
3842
+ },
3843
+ };
3844
+ };
3845
+ exports.HostingDatacentersApiFactory = HostingDatacentersApiFactory;
3846
+ /**
3847
+ * HostingDatacentersApi - object-oriented interface
3848
+ * @export
3849
+ * @class HostingDatacentersApi
3850
+ * @extends {BaseAPI}
3851
+ */
3852
+ class HostingDatacentersApi extends base_1.BaseAPI {
3853
+ /**
3854
+ * Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
3855
+ * @summary List available datacenters
3856
+ * @param {number} orderId Order ID
3857
+ * @param {*} [options] Override http request option.
3858
+ * @throws {RequiredError}
3859
+ * @memberof HostingDatacentersApi
3860
+ */
3861
+ listAvailableDatacentersV1(orderId, options) {
3862
+ return (0, exports.HostingDatacentersApiFp)(this.configuration).listAvailableDatacentersV1(orderId, options).then((request) => request(this.axios, this.basePath));
3863
+ }
3864
+ }
3865
+ exports.HostingDatacentersApi = HostingDatacentersApi;
3866
+ /**
3867
+ * HostingDomainsApi - axios parameter creator
3868
+ * @export
3869
+ */
3870
+ const HostingDomainsApiAxiosParamCreator = function (configuration) {
3871
+ return {
3872
+ /**
3873
+ * Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
3874
+ * @summary Create website parked domain
3875
+ * @param {string} username
3876
+ * @param {string} domain Domain name
3877
+ * @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
3878
+ * @param {*} [options] Override http request option.
3879
+ * @throws {RequiredError}
3880
+ */
3881
+ createWebsiteParkedDomainV1: (username_1, domain_1, hostingV1DomainsCreateParkedDomainRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DomainsCreateParkedDomainRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DomainsCreateParkedDomainRequest, options = {}) {
3882
+ // verify required parameter 'username' is not null or undefined
3883
+ (0, common_1.assertParamExists)('createWebsiteParkedDomainV1', 'username', username);
3884
+ // verify required parameter 'domain' is not null or undefined
3885
+ (0, common_1.assertParamExists)('createWebsiteParkedDomainV1', 'domain', domain);
3886
+ // verify required parameter 'hostingV1DomainsCreateParkedDomainRequest' is not null or undefined
3887
+ (0, common_1.assertParamExists)('createWebsiteParkedDomainV1', 'hostingV1DomainsCreateParkedDomainRequest', hostingV1DomainsCreateParkedDomainRequest);
3888
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains`
3889
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3890
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3891
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3892
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3893
+ let baseOptions;
3894
+ if (configuration) {
3895
+ baseOptions = configuration.baseOptions;
3896
+ }
3897
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3898
+ const localVarHeaderParameter = {};
3899
+ const localVarQueryParameter = {};
3900
+ // authentication apiToken required
3901
+ // http bearer authentication required
3902
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3903
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3904
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3905
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3906
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3907
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DomainsCreateParkedDomainRequest, localVarRequestOptions, configuration);
3908
+ return {
3909
+ url: (0, common_1.toPathString)(localVarUrlObj),
3910
+ options: localVarRequestOptions,
3911
+ };
3912
+ }),
3913
+ /**
3914
+ * Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
3915
+ * @summary Create website subdomain
3916
+ * @param {string} username
3917
+ * @param {string} domain Domain name
3918
+ * @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
3919
+ * @param {*} [options] Override http request option.
3920
+ * @throws {RequiredError}
3921
+ */
3922
+ createWebsiteSubdomainV1: (username_1, domain_1, hostingV1DomainsCreateSubdomainRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DomainsCreateSubdomainRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DomainsCreateSubdomainRequest, options = {}) {
3923
+ // verify required parameter 'username' is not null or undefined
3924
+ (0, common_1.assertParamExists)('createWebsiteSubdomainV1', 'username', username);
3925
+ // verify required parameter 'domain' is not null or undefined
3926
+ (0, common_1.assertParamExists)('createWebsiteSubdomainV1', 'domain', domain);
3927
+ // verify required parameter 'hostingV1DomainsCreateSubdomainRequest' is not null or undefined
3928
+ (0, common_1.assertParamExists)('createWebsiteSubdomainV1', 'hostingV1DomainsCreateSubdomainRequest', hostingV1DomainsCreateSubdomainRequest);
3929
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
3930
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3931
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3933
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3934
+ let baseOptions;
3935
+ if (configuration) {
3936
+ baseOptions = configuration.baseOptions;
3937
+ }
3938
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3939
+ const localVarHeaderParameter = {};
3940
+ const localVarQueryParameter = {};
3941
+ // authentication apiToken required
3942
+ // http bearer authentication required
3943
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3944
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3945
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3946
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3947
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3948
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DomainsCreateSubdomainRequest, localVarRequestOptions, configuration);
3949
+ return {
3950
+ url: (0, common_1.toPathString)(localVarUrlObj),
3951
+ options: localVarRequestOptions,
3952
+ };
3953
+ }),
3954
+ /**
3955
+ * Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
3956
+ * @summary Delete website parked domain
3957
+ * @param {string} username
3958
+ * @param {string} domain Domain name
3959
+ * @param {string} parkedDomain
3960
+ * @param {*} [options] Override http request option.
3961
+ * @throws {RequiredError}
3962
+ */
3963
+ deleteWebsiteParkedDomainV1: (username_1, domain_1, parkedDomain_1, ...args_1) => __awaiter(this, [username_1, domain_1, parkedDomain_1, ...args_1], void 0, function* (username, domain, parkedDomain, options = {}) {
3964
+ // verify required parameter 'username' is not null or undefined
3965
+ (0, common_1.assertParamExists)('deleteWebsiteParkedDomainV1', 'username', username);
3966
+ // verify required parameter 'domain' is not null or undefined
3967
+ (0, common_1.assertParamExists)('deleteWebsiteParkedDomainV1', 'domain', domain);
3968
+ // verify required parameter 'parkedDomain' is not null or undefined
3969
+ (0, common_1.assertParamExists)('deleteWebsiteParkedDomainV1', 'parkedDomain', parkedDomain);
3970
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}`
3971
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3972
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
3973
+ .replace(`{${"parkedDomain"}}`, encodeURIComponent(String(parkedDomain)));
3974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3975
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3976
+ let baseOptions;
3977
+ if (configuration) {
3978
+ baseOptions = configuration.baseOptions;
3979
+ }
3980
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3981
+ const localVarHeaderParameter = {};
3982
+ const localVarQueryParameter = {};
3983
+ // authentication apiToken required
3984
+ // http bearer authentication required
3985
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3986
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3987
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3988
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3989
+ return {
3990
+ url: (0, common_1.toPathString)(localVarUrlObj),
3991
+ options: localVarRequestOptions,
3992
+ };
3993
+ }),
3994
+ /**
3995
+ * Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
3996
+ * @summary Delete website subdomain
3997
+ * @param {string} username
3998
+ * @param {string} domain Domain name
3999
+ * @param {string} subdomain
4000
+ * @param {*} [options] Override http request option.
4001
+ * @throws {RequiredError}
4002
+ */
4003
+ deleteWebsiteSubdomainV1: (username_1, domain_1, subdomain_1, ...args_1) => __awaiter(this, [username_1, domain_1, subdomain_1, ...args_1], void 0, function* (username, domain, subdomain, options = {}) {
4004
+ // verify required parameter 'username' is not null or undefined
4005
+ (0, common_1.assertParamExists)('deleteWebsiteSubdomainV1', 'username', username);
4006
+ // verify required parameter 'domain' is not null or undefined
4007
+ (0, common_1.assertParamExists)('deleteWebsiteSubdomainV1', 'domain', domain);
4008
+ // verify required parameter 'subdomain' is not null or undefined
4009
+ (0, common_1.assertParamExists)('deleteWebsiteSubdomainV1', 'subdomain', subdomain);
4010
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}`
4011
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4012
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
4013
+ .replace(`{${"subdomain"}}`, encodeURIComponent(String(subdomain)));
4014
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4015
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4016
+ let baseOptions;
4017
+ if (configuration) {
4018
+ baseOptions = configuration.baseOptions;
4019
+ }
4020
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4021
+ const localVarHeaderParameter = {};
4022
+ const localVarQueryParameter = {};
4023
+ // authentication apiToken required
4024
+ // http bearer authentication required
4025
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4026
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4028
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4029
+ return {
4030
+ url: (0, common_1.toPathString)(localVarUrlObj),
4031
+ options: localVarRequestOptions,
4032
+ };
4033
+ }),
4034
+ /**
4035
+ * Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
4036
+ * @summary Generate a free subdomain
4037
+ * @param {*} [options] Override http request option.
4038
+ * @throws {RequiredError}
4039
+ */
4040
+ generateAFreeSubdomainV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4041
+ const localVarPath = `/api/hosting/v1/domains/free-subdomains`;
4042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4043
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4044
+ let baseOptions;
4045
+ if (configuration) {
4046
+ baseOptions = configuration.baseOptions;
4047
+ }
4048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4049
+ const localVarHeaderParameter = {};
4050
+ const localVarQueryParameter = {};
4051
+ // authentication apiToken required
4052
+ // http bearer authentication required
4053
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4054
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4056
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4057
+ return {
4058
+ url: (0, common_1.toPathString)(localVarUrlObj),
4059
+ options: localVarRequestOptions,
4060
+ };
4061
+ }),
4062
+ /**
4063
+ * Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
4064
+ * @summary List website parked domains
4065
+ * @param {string} username
4066
+ * @param {string} domain Domain name
4067
+ * @param {*} [options] Override http request option.
4068
+ * @throws {RequiredError}
4069
+ */
4070
+ listWebsiteParkedDomainsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
4071
+ // verify required parameter 'username' is not null or undefined
4072
+ (0, common_1.assertParamExists)('listWebsiteParkedDomainsV1', 'username', username);
4073
+ // verify required parameter 'domain' is not null or undefined
4074
+ (0, common_1.assertParamExists)('listWebsiteParkedDomainsV1', 'domain', domain);
4075
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains`
4076
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4077
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4079
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4080
+ let baseOptions;
4081
+ if (configuration) {
4082
+ baseOptions = configuration.baseOptions;
4083
+ }
4084
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4085
+ const localVarHeaderParameter = {};
4086
+ const localVarQueryParameter = {};
4087
+ // authentication apiToken required
4088
+ // http bearer authentication required
4089
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4090
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4092
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4093
+ return {
4094
+ url: (0, common_1.toPathString)(localVarUrlObj),
4095
+ options: localVarRequestOptions,
4096
+ };
4097
+ }),
4098
+ /**
4099
+ * Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
4100
+ * @summary List website subdomains
4101
+ * @param {string} username
4102
+ * @param {string} domain Domain name
4103
+ * @param {*} [options] Override http request option.
4104
+ * @throws {RequiredError}
4105
+ */
4106
+ listWebsiteSubdomainsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
4107
+ // verify required parameter 'username' is not null or undefined
4108
+ (0, common_1.assertParamExists)('listWebsiteSubdomainsV1', 'username', username);
4109
+ // verify required parameter 'domain' is not null or undefined
4110
+ (0, common_1.assertParamExists)('listWebsiteSubdomainsV1', 'domain', domain);
4111
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
4112
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4113
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4116
+ let baseOptions;
4117
+ if (configuration) {
4118
+ baseOptions = configuration.baseOptions;
4119
+ }
4120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4121
+ const localVarHeaderParameter = {};
4122
+ const localVarQueryParameter = {};
4123
+ // authentication apiToken required
4124
+ // http bearer authentication required
4125
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4126
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4129
+ return {
4130
+ url: (0, common_1.toPathString)(localVarUrlObj),
4131
+ options: localVarRequestOptions,
4132
+ };
4133
+ }),
4134
+ /**
4135
+ * Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
4136
+ * @summary Verify domain ownership
4137
+ * @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
4138
+ * @param {*} [options] Override http request option.
4139
+ * @throws {RequiredError}
4140
+ */
4141
+ verifyDomainOwnershipV1: (hostingV1DomainsVerifyOwnershipRequest_1, ...args_1) => __awaiter(this, [hostingV1DomainsVerifyOwnershipRequest_1, ...args_1], void 0, function* (hostingV1DomainsVerifyOwnershipRequest, options = {}) {
4142
+ // verify required parameter 'hostingV1DomainsVerifyOwnershipRequest' is not null or undefined
4143
+ (0, common_1.assertParamExists)('verifyDomainOwnershipV1', 'hostingV1DomainsVerifyOwnershipRequest', hostingV1DomainsVerifyOwnershipRequest);
4144
+ const localVarPath = `/api/hosting/v1/domains/verify-ownership`;
4145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4146
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4147
+ let baseOptions;
4148
+ if (configuration) {
4149
+ baseOptions = configuration.baseOptions;
4150
+ }
4151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4152
+ const localVarHeaderParameter = {};
4153
+ const localVarQueryParameter = {};
4154
+ // authentication apiToken required
4155
+ // http bearer authentication required
4156
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4161
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DomainsVerifyOwnershipRequest, localVarRequestOptions, configuration);
4162
+ return {
4163
+ url: (0, common_1.toPathString)(localVarUrlObj),
4164
+ options: localVarRequestOptions,
4165
+ };
4166
+ }),
4167
+ };
4168
+ };
4169
+ exports.HostingDomainsApiAxiosParamCreator = HostingDomainsApiAxiosParamCreator;
4170
+ /**
4171
+ * HostingDomainsApi - functional programming interface
4172
+ * @export
4173
+ */
4174
+ const HostingDomainsApiFp = function (configuration) {
4175
+ const localVarAxiosParamCreator = (0, exports.HostingDomainsApiAxiosParamCreator)(configuration);
4176
+ return {
4177
+ /**
4178
+ * Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
4179
+ * @summary Create website parked domain
4180
+ * @param {string} username
4181
+ * @param {string} domain Domain name
4182
+ * @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
4183
+ * @param {*} [options] Override http request option.
4184
+ * @throws {RequiredError}
4185
+ */
4186
+ createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
4187
+ return __awaiter(this, void 0, void 0, function* () {
4188
+ var _a, _b;
4189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options);
4190
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.createWebsiteParkedDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4191
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4192
+ });
4193
+ },
4194
+ /**
4195
+ * Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
4196
+ * @summary Create website subdomain
4197
+ * @param {string} username
4198
+ * @param {string} domain Domain name
4199
+ * @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
4200
+ * @param {*} [options] Override http request option.
4201
+ * @throws {RequiredError}
4202
+ */
4203
+ createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
4204
+ return __awaiter(this, void 0, void 0, function* () {
4205
+ var _a, _b;
4206
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options);
4207
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.createWebsiteSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4208
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4209
+ });
4210
+ },
4211
+ /**
4212
+ * Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
4213
+ * @summary Delete website parked domain
4214
+ * @param {string} username
4215
+ * @param {string} domain Domain name
4216
+ * @param {string} parkedDomain
4217
+ * @param {*} [options] Override http request option.
4218
+ * @throws {RequiredError}
4219
+ */
4220
+ deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
4221
+ return __awaiter(this, void 0, void 0, function* () {
4222
+ var _a, _b;
4223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options);
4224
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.deleteWebsiteParkedDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4225
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4226
+ });
4227
+ },
4228
+ /**
4229
+ * Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
4230
+ * @summary Delete website subdomain
4231
+ * @param {string} username
4232
+ * @param {string} domain Domain name
4233
+ * @param {string} subdomain
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
4238
+ return __awaiter(this, void 0, void 0, function* () {
4239
+ var _a, _b;
4240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteSubdomainV1(username, domain, subdomain, options);
4241
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.deleteWebsiteSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4242
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4243
+ });
4244
+ },
4245
+ /**
4246
+ * Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
4247
+ * @summary Generate a free subdomain
4248
+ * @param {*} [options] Override http request option.
4249
+ * @throws {RequiredError}
4250
+ */
4251
+ generateAFreeSubdomainV1(options) {
4252
+ return __awaiter(this, void 0, void 0, function* () {
4253
+ var _a, _b;
4254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateAFreeSubdomainV1(options);
4255
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.generateAFreeSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4257
+ });
4258
+ },
4259
+ /**
4260
+ * Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
4261
+ * @summary List website parked domains
4262
+ * @param {string} username
4263
+ * @param {string} domain Domain name
4264
+ * @param {*} [options] Override http request option.
4265
+ * @throws {RequiredError}
4266
+ */
4267
+ listWebsiteParkedDomainsV1(username, domain, options) {
4268
+ return __awaiter(this, void 0, void 0, function* () {
4269
+ var _a, _b;
4270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteParkedDomainsV1(username, domain, options);
4271
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.listWebsiteParkedDomainsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4272
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4273
+ });
4274
+ },
4275
+ /**
4276
+ * Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
4277
+ * @summary List website subdomains
4278
+ * @param {string} username
4279
+ * @param {string} domain Domain name
4280
+ * @param {*} [options] Override http request option.
4281
+ * @throws {RequiredError}
4282
+ */
4283
+ listWebsiteSubdomainsV1(username, domain, options) {
4284
+ return __awaiter(this, void 0, void 0, function* () {
4285
+ var _a, _b;
4286
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteSubdomainsV1(username, domain, options);
4287
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.listWebsiteSubdomainsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4288
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4289
+ });
4290
+ },
4291
+ /**
4292
+ * Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
4293
+ * @summary Verify domain ownership
4294
+ * @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
4295
+ * @param {*} [options] Override http request option.
4296
+ * @throws {RequiredError}
4297
+ */
4298
+ verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
4299
+ return __awaiter(this, void 0, void 0, function* () {
4300
+ var _a, _b;
4301
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options);
4302
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDomainsApi.verifyDomainOwnershipV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4303
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4304
+ });
4305
+ },
4306
+ };
4307
+ };
4308
+ exports.HostingDomainsApiFp = HostingDomainsApiFp;
4309
+ /**
4310
+ * HostingDomainsApi - factory interface
4311
+ * @export
4312
+ */
4313
+ const HostingDomainsApiFactory = function (configuration, basePath, axios) {
4314
+ const localVarFp = (0, exports.HostingDomainsApiFp)(configuration);
4315
+ return {
4316
+ /**
4317
+ * Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
4318
+ * @summary Create website parked domain
4319
+ * @param {string} username
4320
+ * @param {string} domain Domain name
4321
+ * @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
4322
+ * @param {*} [options] Override http request option.
4323
+ * @throws {RequiredError}
4324
+ */
4325
+ createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
4326
+ return localVarFp.createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options).then((request) => request(axios, basePath));
4327
+ },
4328
+ /**
4329
+ * Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
4330
+ * @summary Create website subdomain
4331
+ * @param {string} username
4332
+ * @param {string} domain Domain name
4333
+ * @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
4334
+ * @param {*} [options] Override http request option.
4335
+ * @throws {RequiredError}
4336
+ */
4337
+ createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
4338
+ return localVarFp.createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options).then((request) => request(axios, basePath));
4339
+ },
4340
+ /**
4341
+ * Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
4342
+ * @summary Delete website parked domain
4343
+ * @param {string} username
4344
+ * @param {string} domain Domain name
4345
+ * @param {string} parkedDomain
4346
+ * @param {*} [options] Override http request option.
4347
+ * @throws {RequiredError}
4348
+ */
4349
+ deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
4350
+ return localVarFp.deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options).then((request) => request(axios, basePath));
4351
+ },
4352
+ /**
4353
+ * Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
4354
+ * @summary Delete website subdomain
4355
+ * @param {string} username
4356
+ * @param {string} domain Domain name
4357
+ * @param {string} subdomain
4358
+ * @param {*} [options] Override http request option.
4359
+ * @throws {RequiredError}
4360
+ */
4361
+ deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
4362
+ return localVarFp.deleteWebsiteSubdomainV1(username, domain, subdomain, options).then((request) => request(axios, basePath));
4363
+ },
4364
+ /**
4365
+ * Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
4366
+ * @summary Generate a free subdomain
4367
+ * @param {*} [options] Override http request option.
4368
+ * @throws {RequiredError}
4369
+ */
4370
+ generateAFreeSubdomainV1(options) {
4371
+ return localVarFp.generateAFreeSubdomainV1(options).then((request) => request(axios, basePath));
4372
+ },
4373
+ /**
4374
+ * Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
4375
+ * @summary List website parked domains
4376
+ * @param {string} username
4377
+ * @param {string} domain Domain name
4378
+ * @param {*} [options] Override http request option.
4379
+ * @throws {RequiredError}
4380
+ */
4381
+ listWebsiteParkedDomainsV1(username, domain, options) {
4382
+ return localVarFp.listWebsiteParkedDomainsV1(username, domain, options).then((request) => request(axios, basePath));
4383
+ },
4384
+ /**
4385
+ * Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
4386
+ * @summary List website subdomains
4387
+ * @param {string} username
4388
+ * @param {string} domain Domain name
4389
+ * @param {*} [options] Override http request option.
4390
+ * @throws {RequiredError}
4391
+ */
4392
+ listWebsiteSubdomainsV1(username, domain, options) {
4393
+ return localVarFp.listWebsiteSubdomainsV1(username, domain, options).then((request) => request(axios, basePath));
4394
+ },
4395
+ /**
4396
+ * Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
4397
+ * @summary Verify domain ownership
4398
+ * @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
4399
+ * @param {*} [options] Override http request option.
4400
+ * @throws {RequiredError}
4401
+ */
4402
+ verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
4403
+ return localVarFp.verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options).then((request) => request(axios, basePath));
4404
+ },
4405
+ };
4406
+ };
4407
+ exports.HostingDomainsApiFactory = HostingDomainsApiFactory;
4408
+ /**
4409
+ * HostingDomainsApi - object-oriented interface
4410
+ * @export
4411
+ * @class HostingDomainsApi
4412
+ * @extends {BaseAPI}
4413
+ */
4414
+ class HostingDomainsApi extends base_1.BaseAPI {
4415
+ /**
4416
+ * Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
4417
+ * @summary Create website parked domain
4418
+ * @param {string} username
4419
+ * @param {string} domain Domain name
4420
+ * @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
4421
+ * @param {*} [options] Override http request option.
4422
+ * @throws {RequiredError}
4423
+ * @memberof HostingDomainsApi
4424
+ */
4425
+ createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
4426
+ return (0, exports.HostingDomainsApiFp)(this.configuration).createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options).then((request) => request(this.axios, this.basePath));
4427
+ }
4428
+ /**
4429
+ * Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
4430
+ * @summary Create website subdomain
4431
+ * @param {string} username
4432
+ * @param {string} domain Domain name
4433
+ * @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
4434
+ * @param {*} [options] Override http request option.
4435
+ * @throws {RequiredError}
4436
+ * @memberof HostingDomainsApi
4437
+ */
4438
+ createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
4439
+ return (0, exports.HostingDomainsApiFp)(this.configuration).createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options).then((request) => request(this.axios, this.basePath));
4440
+ }
4441
+ /**
4442
+ * Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
4443
+ * @summary Delete website parked domain
4444
+ * @param {string} username
4445
+ * @param {string} domain Domain name
4446
+ * @param {string} parkedDomain
4447
+ * @param {*} [options] Override http request option.
4448
+ * @throws {RequiredError}
4449
+ * @memberof HostingDomainsApi
4450
+ */
4451
+ deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
4452
+ return (0, exports.HostingDomainsApiFp)(this.configuration).deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options).then((request) => request(this.axios, this.basePath));
4453
+ }
4454
+ /**
4455
+ * Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
4456
+ * @summary Delete website subdomain
4457
+ * @param {string} username
4458
+ * @param {string} domain Domain name
4459
+ * @param {string} subdomain
4460
+ * @param {*} [options] Override http request option.
4461
+ * @throws {RequiredError}
4462
+ * @memberof HostingDomainsApi
4463
+ */
4464
+ deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
4465
+ return (0, exports.HostingDomainsApiFp)(this.configuration).deleteWebsiteSubdomainV1(username, domain, subdomain, options).then((request) => request(this.axios, this.basePath));
4466
+ }
4467
+ /**
4468
+ * Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
4469
+ * @summary Generate a free subdomain
4470
+ * @param {*} [options] Override http request option.
4471
+ * @throws {RequiredError}
4472
+ * @memberof HostingDomainsApi
4473
+ */
4474
+ generateAFreeSubdomainV1(options) {
4475
+ return (0, exports.HostingDomainsApiFp)(this.configuration).generateAFreeSubdomainV1(options).then((request) => request(this.axios, this.basePath));
4476
+ }
4477
+ /**
4478
+ * Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
4479
+ * @summary List website parked domains
4480
+ * @param {string} username
4481
+ * @param {string} domain Domain name
4482
+ * @param {*} [options] Override http request option.
4483
+ * @throws {RequiredError}
4484
+ * @memberof HostingDomainsApi
4485
+ */
4486
+ listWebsiteParkedDomainsV1(username, domain, options) {
4487
+ return (0, exports.HostingDomainsApiFp)(this.configuration).listWebsiteParkedDomainsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
4488
+ }
4489
+ /**
4490
+ * Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
4491
+ * @summary List website subdomains
4492
+ * @param {string} username
4493
+ * @param {string} domain Domain name
4494
+ * @param {*} [options] Override http request option.
4495
+ * @throws {RequiredError}
4496
+ * @memberof HostingDomainsApi
4497
+ */
4498
+ listWebsiteSubdomainsV1(username, domain, options) {
4499
+ return (0, exports.HostingDomainsApiFp)(this.configuration).listWebsiteSubdomainsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
4500
+ }
4501
+ /**
4502
+ * Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
4503
+ * @summary Verify domain ownership
4504
+ * @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
4505
+ * @param {*} [options] Override http request option.
4506
+ * @throws {RequiredError}
4507
+ * @memberof HostingDomainsApi
4508
+ */
4509
+ verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
4510
+ return (0, exports.HostingDomainsApiFp)(this.configuration).verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
4511
+ }
4512
+ }
4513
+ exports.HostingDomainsApi = HostingDomainsApi;
4514
+ /**
4515
+ * HostingNodeJSApi - axios parameter creator
4516
+ * @export
4517
+ */
4518
+ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
4519
+ return {
4520
+ /**
4521
+ * 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.
4522
+ * @summary Create NodeJS build from archive
4523
+ * @param {string} username
4524
+ * @param {string} domain Domain name
4525
+ * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
4526
+ * @param {*} [options] Override http request option.
4527
+ * @throws {RequiredError}
4528
+ */
4529
+ createNodeJSBuildFromArchiveV1: (username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsCreateFromArchiveRequest, options = {}) {
4530
+ // verify required parameter 'username' is not null or undefined
4531
+ (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'username', username);
4532
+ // verify required parameter 'domain' is not null or undefined
4533
+ (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'domain', domain);
4534
+ // verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
4535
+ (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest);
4536
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
4537
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4538
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4540
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4541
+ let baseOptions;
4542
+ if (configuration) {
4543
+ baseOptions = configuration.baseOptions;
4544
+ }
4545
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4546
+ const localVarHeaderParameter = {};
4547
+ const localVarQueryParameter = {};
4548
+ // authentication apiToken required
4549
+ // http bearer authentication required
4550
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4551
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4552
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4554
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4555
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration);
4556
+ return {
4557
+ url: (0, common_1.toPathString)(localVarUrlObj),
4558
+ options: localVarRequestOptions,
4559
+ };
4560
+ }),
4561
+ /**
4562
+ * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
4563
+ * @summary Get NodeJS build logs
4564
+ * @param {string} username
4565
+ * @param {string} domain Domain name
4566
+ * @param {string} uuid Build UUID
4567
+ * @param {number | null} [fromLine] Line from which to start retrieving logs
4568
+ * @param {*} [options] Override http request option.
4569
+ * @throws {RequiredError}
4570
+ */
4571
+ getNodeJSBuildLogsV1: (username_1, domain_1, uuid_1, fromLine_1, ...args_1) => __awaiter(this, [username_1, domain_1, uuid_1, fromLine_1, ...args_1], void 0, function* (username, domain, uuid, fromLine, options = {}) {
4572
+ // verify required parameter 'username' is not null or undefined
4573
+ (0, common_1.assertParamExists)('getNodeJSBuildLogsV1', 'username', username);
4574
+ // verify required parameter 'domain' is not null or undefined
4575
+ (0, common_1.assertParamExists)('getNodeJSBuildLogsV1', 'domain', domain);
4576
+ // verify required parameter 'uuid' is not null or undefined
4577
+ (0, common_1.assertParamExists)('getNodeJSBuildLogsV1', 'uuid', uuid);
4578
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs`
4579
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4580
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
4581
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
4582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4583
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4584
+ let baseOptions;
4585
+ if (configuration) {
4586
+ baseOptions = configuration.baseOptions;
4587
+ }
4588
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4589
+ const localVarHeaderParameter = {};
4590
+ const localVarQueryParameter = {};
4591
+ // authentication apiToken required
4592
+ // http bearer authentication required
4593
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4594
+ if (fromLine !== undefined) {
4595
+ localVarQueryParameter['from_line'] = fromLine;
4596
+ }
4597
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4599
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4600
+ return {
4601
+ url: (0, common_1.toPathString)(localVarUrlObj),
4602
+ options: localVarRequestOptions,
4603
+ };
4604
+ }),
4605
+ /**
4606
+ * 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.
4607
+ * @summary List NodeJS builds
4608
+ * @param {string} username
4609
+ * @param {string} domain Domain name
4610
+ * @param {number} [page] Page number
4611
+ * @param {number} [perPage] Number of items per page
4612
+ * @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
4613
+ * @param {*} [options] Override http request option.
4614
+ * @throws {RequiredError}
4615
+ */
4616
+ listNodeJSBuildsV1: (username_1, domain_1, page_1, perPage_1, states_1, ...args_1) => __awaiter(this, [username_1, domain_1, page_1, perPage_1, states_1, ...args_1], void 0, function* (username, domain, page, perPage, states, options = {}) {
4617
+ // verify required parameter 'username' is not null or undefined
4618
+ (0, common_1.assertParamExists)('listNodeJSBuildsV1', 'username', username);
4619
+ // verify required parameter 'domain' is not null or undefined
4620
+ (0, common_1.assertParamExists)('listNodeJSBuildsV1', 'domain', domain);
4621
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds`
4622
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4623
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4625
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4626
+ let baseOptions;
4627
+ if (configuration) {
4628
+ baseOptions = configuration.baseOptions;
4629
+ }
4630
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4631
+ const localVarHeaderParameter = {};
4632
+ const localVarQueryParameter = {};
4633
+ // authentication apiToken required
4634
+ // http bearer authentication required
4635
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4636
+ if (page !== undefined) {
4637
+ localVarQueryParameter['page'] = page;
4638
+ }
4639
+ if (perPage !== undefined) {
4640
+ localVarQueryParameter['per_page'] = perPage;
4641
+ }
4642
+ if (states) {
4643
+ localVarQueryParameter['states'] = states;
4644
+ }
4645
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4647
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4648
+ return {
4649
+ url: (0, common_1.toPathString)(localVarUrlObj),
4650
+ options: localVarRequestOptions,
4651
+ };
4652
+ }),
4653
+ };
4654
+ };
4655
+ exports.HostingNodeJSApiAxiosParamCreator = HostingNodeJSApiAxiosParamCreator;
4656
+ /**
4657
+ * HostingNodeJSApi - functional programming interface
4658
+ * @export
4659
+ */
4660
+ const HostingNodeJSApiFp = function (configuration) {
4661
+ const localVarAxiosParamCreator = (0, exports.HostingNodeJSApiAxiosParamCreator)(configuration);
4662
+ return {
4663
+ /**
4664
+ * 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.
4665
+ * @summary Create NodeJS build from archive
4666
+ * @param {string} username
4667
+ * @param {string} domain Domain name
4668
+ * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
4669
+ * @param {*} [options] Override http request option.
4670
+ * @throws {RequiredError}
4671
+ */
4672
+ createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
4673
+ return __awaiter(this, void 0, void 0, function* () {
4674
+ var _a, _b;
4675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
4676
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4677
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4678
+ });
4679
+ },
4680
+ /**
4681
+ * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
4682
+ * @summary Get NodeJS build logs
4683
+ * @param {string} username
4684
+ * @param {string} domain Domain name
4685
+ * @param {string} uuid Build UUID
4686
+ * @param {number | null} [fromLine] Line from which to start retrieving logs
4687
+ * @param {*} [options] Override http request option.
4688
+ * @throws {RequiredError}
4689
+ */
4690
+ getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
4691
+ return __awaiter(this, void 0, void 0, function* () {
4692
+ var _a, _b;
4693
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options);
4694
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.getNodeJSBuildLogsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4695
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4696
+ });
4697
+ },
4698
+ /**
4699
+ * 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.
4700
+ * @summary List NodeJS builds
4701
+ * @param {string} username
4702
+ * @param {string} domain Domain name
4703
+ * @param {number} [page] Page number
4704
+ * @param {number} [perPage] Number of items per page
4705
+ * @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
4706
+ * @param {*} [options] Override http request option.
4707
+ * @throws {RequiredError}
4708
+ */
4709
+ listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
4710
+ return __awaiter(this, void 0, void 0, function* () {
4711
+ var _a, _b;
4712
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listNodeJSBuildsV1(username, domain, page, perPage, states, options);
4713
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.listNodeJSBuildsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4714
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4715
+ });
4716
+ },
4717
+ };
4718
+ };
4719
+ exports.HostingNodeJSApiFp = HostingNodeJSApiFp;
4720
+ /**
4721
+ * HostingNodeJSApi - factory interface
4722
+ * @export
4723
+ */
4724
+ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
4725
+ const localVarFp = (0, exports.HostingNodeJSApiFp)(configuration);
4726
+ return {
4727
+ /**
4728
+ * 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.
4729
+ * @summary Create NodeJS build from archive
4730
+ * @param {string} username
4731
+ * @param {string} domain Domain name
4732
+ * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
4733
+ * @param {*} [options] Override http request option.
4734
+ * @throws {RequiredError}
4735
+ */
4736
+ createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
4737
+ return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
4738
+ },
4739
+ /**
4740
+ * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
4741
+ * @summary Get NodeJS build logs
4742
+ * @param {string} username
4743
+ * @param {string} domain Domain name
4744
+ * @param {string} uuid Build UUID
4745
+ * @param {number | null} [fromLine] Line from which to start retrieving logs
4746
+ * @param {*} [options] Override http request option.
4747
+ * @throws {RequiredError}
4748
+ */
4749
+ getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
4750
+ return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
4751
+ },
4752
+ /**
4753
+ * 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.
4754
+ * @summary List NodeJS builds
4755
+ * @param {string} username
4756
+ * @param {string} domain Domain name
4757
+ * @param {number} [page] Page number
4758
+ * @param {number} [perPage] Number of items per page
4759
+ * @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
4760
+ * @param {*} [options] Override http request option.
4761
+ * @throws {RequiredError}
4762
+ */
4763
+ listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
4764
+ return localVarFp.listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(axios, basePath));
4765
+ },
4766
+ };
4767
+ };
4768
+ exports.HostingNodeJSApiFactory = HostingNodeJSApiFactory;
4769
+ /**
4770
+ * HostingNodeJSApi - object-oriented interface
4771
+ * @export
4772
+ * @class HostingNodeJSApi
4773
+ * @extends {BaseAPI}
4774
+ */
4775
+ class HostingNodeJSApi extends base_1.BaseAPI {
4776
+ /**
4777
+ * 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.
4778
+ * @summary Create NodeJS build from archive
4779
+ * @param {string} username
4780
+ * @param {string} domain Domain name
4781
+ * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
4782
+ * @param {*} [options] Override http request option.
4783
+ * @throws {RequiredError}
4784
+ * @memberof HostingNodeJSApi
4785
+ */
4786
+ createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
4787
+ return (0, exports.HostingNodeJSApiFp)(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
4788
+ }
4789
+ /**
4790
+ * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
4791
+ * @summary Get NodeJS build logs
4792
+ * @param {string} username
4793
+ * @param {string} domain Domain name
4794
+ * @param {string} uuid Build UUID
4795
+ * @param {number | null} [fromLine] Line from which to start retrieving logs
4796
+ * @param {*} [options] Override http request option.
4797
+ * @throws {RequiredError}
4798
+ * @memberof HostingNodeJSApi
4799
+ */
4800
+ getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
4801
+ return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
4802
+ }
4803
+ /**
4804
+ * 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.
4805
+ * @summary List NodeJS builds
4806
+ * @param {string} username
4807
+ * @param {string} domain Domain name
4808
+ * @param {number} [page] Page number
4809
+ * @param {number} [perPage] Number of items per page
4810
+ * @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
4811
+ * @param {*} [options] Override http request option.
4812
+ * @throws {RequiredError}
4813
+ * @memberof HostingNodeJSApi
4814
+ */
4815
+ listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
4816
+ return (0, exports.HostingNodeJSApiFp)(this.configuration).listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(this.axios, this.basePath));
4817
+ }
4818
+ }
4819
+ exports.HostingNodeJSApi = HostingNodeJSApi;
4820
+ /**
4821
+ * @export
4822
+ */
4823
+ exports.ListNodeJSBuildsV1StatesEnum = {
4824
+ Pending: 'pending',
4825
+ Running: 'running',
4826
+ Completed: 'completed',
4827
+ Failed: 'failed'
4828
+ };
4829
+ /**
4830
+ * HostingOrdersApi - axios parameter creator
4831
+ * @export
4832
+ */
4833
+ const HostingOrdersApiAxiosParamCreator = function (configuration) {
4834
+ return {
4835
+ /**
4836
+ * Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
4837
+ * @summary List orders
4838
+ * @param {number} [page] Page number
4839
+ * @param {number} [perPage] Number of items per page
4840
+ * @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
4841
+ * @param {Array<number> | null} [orderIds] Filter by specific order IDs
4842
+ * @param {*} [options] Override http request option.
4843
+ * @throws {RequiredError}
4844
+ */
4845
+ listOrdersV1: (page_1, perPage_1, statuses_1, orderIds_1, ...args_1) => __awaiter(this, [page_1, perPage_1, statuses_1, orderIds_1, ...args_1], void 0, function* (page, perPage, statuses, orderIds, options = {}) {
4846
+ const localVarPath = `/api/hosting/v1/orders`;
4847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4848
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4849
+ let baseOptions;
4850
+ if (configuration) {
4851
+ baseOptions = configuration.baseOptions;
4852
+ }
4853
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4854
+ const localVarHeaderParameter = {};
4855
+ const localVarQueryParameter = {};
4856
+ // authentication apiToken required
4857
+ // http bearer authentication required
4858
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4859
+ if (page !== undefined) {
4860
+ localVarQueryParameter['page'] = page;
4861
+ }
4862
+ if (perPage !== undefined) {
4863
+ localVarQueryParameter['per_page'] = perPage;
4864
+ }
4865
+ if (statuses) {
4866
+ localVarQueryParameter['statuses'] = statuses;
4867
+ }
4868
+ if (orderIds) {
4869
+ localVarQueryParameter['order_ids'] = orderIds;
4870
+ }
4871
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4873
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4874
+ return {
4875
+ url: (0, common_1.toPathString)(localVarUrlObj),
4876
+ options: localVarRequestOptions,
4877
+ };
4878
+ }),
4879
+ };
4880
+ };
4881
+ exports.HostingOrdersApiAxiosParamCreator = HostingOrdersApiAxiosParamCreator;
4882
+ /**
4883
+ * HostingOrdersApi - functional programming interface
4884
+ * @export
4885
+ */
4886
+ const HostingOrdersApiFp = function (configuration) {
4887
+ const localVarAxiosParamCreator = (0, exports.HostingOrdersApiAxiosParamCreator)(configuration);
4888
+ return {
4889
+ /**
4890
+ * Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
4891
+ * @summary List orders
4892
+ * @param {number} [page] Page number
4893
+ * @param {number} [perPage] Number of items per page
4894
+ * @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
4895
+ * @param {Array<number> | null} [orderIds] Filter by specific order IDs
4896
+ * @param {*} [options] Override http request option.
4897
+ * @throws {RequiredError}
4898
+ */
4899
+ listOrdersV1(page, perPage, statuses, orderIds, options) {
4900
+ return __awaiter(this, void 0, void 0, function* () {
4901
+ var _a, _b;
4902
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersV1(page, perPage, statuses, orderIds, options);
4903
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingOrdersApi.listOrdersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4904
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4905
+ });
4906
+ },
4907
+ };
4908
+ };
4909
+ exports.HostingOrdersApiFp = HostingOrdersApiFp;
4910
+ /**
4911
+ * HostingOrdersApi - factory interface
4912
+ * @export
4913
+ */
4914
+ const HostingOrdersApiFactory = function (configuration, basePath, axios) {
4915
+ const localVarFp = (0, exports.HostingOrdersApiFp)(configuration);
4916
+ return {
4917
+ /**
4918
+ * Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
4919
+ * @summary List orders
4920
+ * @param {number} [page] Page number
4921
+ * @param {number} [perPage] Number of items per page
4922
+ * @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
4923
+ * @param {Array<number> | null} [orderIds] Filter by specific order IDs
4924
+ * @param {*} [options] Override http request option.
4925
+ * @throws {RequiredError}
4926
+ */
4927
+ listOrdersV1(page, perPage, statuses, orderIds, options) {
4928
+ return localVarFp.listOrdersV1(page, perPage, statuses, orderIds, options).then((request) => request(axios, basePath));
4929
+ },
4930
+ };
4931
+ };
4932
+ exports.HostingOrdersApiFactory = HostingOrdersApiFactory;
4933
+ /**
4934
+ * HostingOrdersApi - object-oriented interface
4935
+ * @export
4936
+ * @class HostingOrdersApi
4937
+ * @extends {BaseAPI}
4938
+ */
4939
+ class HostingOrdersApi extends base_1.BaseAPI {
4940
+ /**
4941
+ * Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
4942
+ * @summary List orders
4943
+ * @param {number} [page] Page number
4944
+ * @param {number} [perPage] Number of items per page
4945
+ * @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
4946
+ * @param {Array<number> | null} [orderIds] Filter by specific order IDs
4947
+ * @param {*} [options] Override http request option.
4948
+ * @throws {RequiredError}
4949
+ * @memberof HostingOrdersApi
4950
+ */
4951
+ listOrdersV1(page, perPage, statuses, orderIds, options) {
4952
+ return (0, exports.HostingOrdersApiFp)(this.configuration).listOrdersV1(page, perPage, statuses, orderIds, options).then((request) => request(this.axios, this.basePath));
4953
+ }
4954
+ }
4955
+ exports.HostingOrdersApi = HostingOrdersApi;
4956
+ /**
4957
+ * @export
4958
+ */
4959
+ exports.ListOrdersV1StatusesEnum = {
4960
+ Active: 'active',
4961
+ Deleting: 'deleting',
4962
+ Deleted: 'deleted',
4963
+ Suspended: 'suspended'
4964
+ };
4965
+ /**
4966
+ * HostingWebsitesApi - axios parameter creator
4967
+ * @export
4968
+ */
4969
+ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
4970
+ return {
4971
+ /**
4972
+ * Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
4973
+ * @summary Create website
4974
+ * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
4975
+ * @param {*} [options] Override http request option.
4976
+ * @throws {RequiredError}
4977
+ */
4978
+ createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [hostingV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (hostingV1WebsitesCreateWebsiteRequest, options = {}) {
4979
+ // verify required parameter 'hostingV1WebsitesCreateWebsiteRequest' is not null or undefined
4980
+ (0, common_1.assertParamExists)('createWebsiteV1', 'hostingV1WebsitesCreateWebsiteRequest', hostingV1WebsitesCreateWebsiteRequest);
4981
+ const localVarPath = `/api/hosting/v1/websites`;
4982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4983
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4984
+ let baseOptions;
4985
+ if (configuration) {
4986
+ baseOptions = configuration.baseOptions;
4987
+ }
4988
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4989
+ const localVarHeaderParameter = {};
4990
+ const localVarQueryParameter = {};
4991
+ // authentication apiToken required
4992
+ // http bearer authentication required
4993
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4994
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4995
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4997
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4998
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration);
4999
+ return {
5000
+ url: (0, common_1.toPathString)(localVarUrlObj),
5001
+ options: localVarRequestOptions,
5002
+ };
5003
+ }),
5004
+ /**
5005
+ * Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
5006
+ * @summary List websites
5007
+ * @param {number} [page] Page number
5008
+ * @param {number} [perPage] Number of items per page
5009
+ * @param {string | null} [username] Filter by specific username
5010
+ * @param {number | null} [orderId] Order ID
5011
+ * @param {boolean | null} [isEnabled] Filter by enabled status
5012
+ * @param {string | null} [domain] Filter by domain name (exact match)
5013
+ * @param {*} [options] Override http request option.
5014
+ * @throws {RequiredError}
5015
+ */
5016
+ listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, options = {}) {
5017
+ const localVarPath = `/api/hosting/v1/websites`;
5018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5019
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5020
+ let baseOptions;
5021
+ if (configuration) {
5022
+ baseOptions = configuration.baseOptions;
5023
+ }
5024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5025
+ const localVarHeaderParameter = {};
5026
+ const localVarQueryParameter = {};
5027
+ // authentication apiToken required
5028
+ // http bearer authentication required
5029
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5030
+ if (page !== undefined) {
5031
+ localVarQueryParameter['page'] = page;
5032
+ }
5033
+ if (perPage !== undefined) {
5034
+ localVarQueryParameter['per_page'] = perPage;
5035
+ }
5036
+ if (username !== undefined) {
5037
+ localVarQueryParameter['username'] = username;
5038
+ }
5039
+ if (orderId !== undefined) {
5040
+ localVarQueryParameter['order_id'] = orderId;
5041
+ }
5042
+ if (isEnabled !== undefined) {
5043
+ localVarQueryParameter['is_enabled'] = isEnabled;
5044
+ }
5045
+ if (domain !== undefined) {
5046
+ localVarQueryParameter['domain'] = domain;
5047
+ }
5048
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5049
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5050
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5051
+ return {
5052
+ url: (0, common_1.toPathString)(localVarUrlObj),
5053
+ options: localVarRequestOptions,
5054
+ };
5055
+ }),
5056
+ };
5057
+ };
5058
+ exports.HostingWebsitesApiAxiosParamCreator = HostingWebsitesApiAxiosParamCreator;
5059
+ /**
5060
+ * HostingWebsitesApi - functional programming interface
5061
+ * @export
5062
+ */
5063
+ const HostingWebsitesApiFp = function (configuration) {
5064
+ const localVarAxiosParamCreator = (0, exports.HostingWebsitesApiAxiosParamCreator)(configuration);
5065
+ return {
5066
+ /**
5067
+ * Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
5068
+ * @summary Create website
5069
+ * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
5070
+ * @param {*} [options] Override http request option.
5071
+ * @throws {RequiredError}
5072
+ */
5073
+ createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
5074
+ return __awaiter(this, void 0, void 0, function* () {
5075
+ var _a, _b;
5076
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options);
5077
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.createWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5078
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5079
+ });
5080
+ },
5081
+ /**
5082
+ * Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
5083
+ * @summary List websites
5084
+ * @param {number} [page] Page number
5085
+ * @param {number} [perPage] Number of items per page
5086
+ * @param {string | null} [username] Filter by specific username
5087
+ * @param {number | null} [orderId] Order ID
5088
+ * @param {boolean | null} [isEnabled] Filter by enabled status
5089
+ * @param {string | null} [domain] Filter by domain name (exact match)
5090
+ * @param {*} [options] Override http request option.
5091
+ * @throws {RequiredError}
5092
+ */
5093
+ listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
5094
+ return __awaiter(this, void 0, void 0, function* () {
5095
+ var _a, _b;
5096
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options);
5097
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWebsitesApi.listWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5098
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5099
+ });
5100
+ },
5101
+ };
5102
+ };
5103
+ exports.HostingWebsitesApiFp = HostingWebsitesApiFp;
5104
+ /**
5105
+ * HostingWebsitesApi - factory interface
5106
+ * @export
5107
+ */
5108
+ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
5109
+ const localVarFp = (0, exports.HostingWebsitesApiFp)(configuration);
5110
+ return {
5111
+ /**
5112
+ * Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
5113
+ * @summary Create website
5114
+ * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
5115
+ * @param {*} [options] Override http request option.
5116
+ * @throws {RequiredError}
5117
+ */
5118
+ createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
5119
+ return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
5120
+ },
5121
+ /**
5122
+ * Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
5123
+ * @summary List websites
5124
+ * @param {number} [page] Page number
5125
+ * @param {number} [perPage] Number of items per page
5126
+ * @param {string | null} [username] Filter by specific username
5127
+ * @param {number | null} [orderId] Order ID
5128
+ * @param {boolean | null} [isEnabled] Filter by enabled status
5129
+ * @param {string | null} [domain] Filter by domain name (exact match)
5130
+ * @param {*} [options] Override http request option.
5131
+ * @throws {RequiredError}
5132
+ */
5133
+ listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
5134
+ return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(axios, basePath));
5135
+ },
5136
+ };
5137
+ };
5138
+ exports.HostingWebsitesApiFactory = HostingWebsitesApiFactory;
5139
+ /**
5140
+ * HostingWebsitesApi - object-oriented interface
5141
+ * @export
5142
+ * @class HostingWebsitesApi
5143
+ * @extends {BaseAPI}
5144
+ */
5145
+ class HostingWebsitesApi extends base_1.BaseAPI {
5146
+ /**
5147
+ * Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
5148
+ * @summary Create website
5149
+ * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
5150
+ * @param {*} [options] Override http request option.
5151
+ * @throws {RequiredError}
5152
+ * @memberof HostingWebsitesApi
5153
+ */
5154
+ createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
5155
+ return (0, exports.HostingWebsitesApiFp)(this.configuration).createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
5156
+ }
5157
+ /**
5158
+ * Retrieve a paginated list of websites (main and addon types) 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. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
5159
+ * @summary List websites
5160
+ * @param {number} [page] Page number
5161
+ * @param {number} [perPage] Number of items per page
5162
+ * @param {string | null} [username] Filter by specific username
5163
+ * @param {number | null} [orderId] Order ID
5164
+ * @param {boolean | null} [isEnabled] Filter by enabled status
5165
+ * @param {string | null} [domain] Filter by domain name (exact match)
5166
+ * @param {*} [options] Override http request option.
5167
+ * @throws {RequiredError}
5168
+ * @memberof HostingWebsitesApi
5169
+ */
5170
+ listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
5171
+ return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(this.axios, this.basePath));
5172
+ }
5173
+ }
5174
+ exports.HostingWebsitesApi = HostingWebsitesApi;
5175
+ /**
5176
+ * HostingWordpressApi - axios parameter creator
5177
+ * @export
5178
+ */
5179
+ const HostingWordpressApiAxiosParamCreator = function (configuration) {
5180
+ return {
5181
+ /**
5182
+ * 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.
5183
+ * @summary Install WordPress
5184
+ * @param {string} username
5185
+ * @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
5186
+ * @param {*} [options] Override http request option.
5187
+ * @throws {RequiredError}
5188
+ */
5189
+ installWordPressV1: (username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1], void 0, function* (username, hostingV1WordpressInstallWordpressRequest, options = {}) {
5190
+ // verify required parameter 'username' is not null or undefined
5191
+ (0, common_1.assertParamExists)('installWordPressV1', 'username', username);
5192
+ // verify required parameter 'hostingV1WordpressInstallWordpressRequest' is not null or undefined
5193
+ (0, common_1.assertParamExists)('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
5194
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
5195
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
5196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5197
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5198
+ let baseOptions;
5199
+ if (configuration) {
5200
+ baseOptions = configuration.baseOptions;
5201
+ }
5202
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5203
+ const localVarHeaderParameter = {};
5204
+ const localVarQueryParameter = {};
5205
+ // authentication apiToken required
5206
+ // http bearer authentication required
5207
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5208
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5211
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5212
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1WordpressInstallWordpressRequest, localVarRequestOptions, configuration);
5213
+ return {
5214
+ url: (0, common_1.toPathString)(localVarUrlObj),
5215
+ options: localVarRequestOptions,
5216
+ };
5217
+ }),
5218
+ /**
5219
+ * List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
5220
+ * @summary List WordPress installations
5221
+ * @param {string | null} [username] Filter by specific username
5222
+ * @param {string | null} [domain] Filter by domain name (exact match)
5223
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
5224
+ * @param {*} [options] Override http request option.
5225
+ * @throws {RequiredError}
5226
+ */
5227
+ listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
5228
+ const localVarPath = `/api/hosting/v1/wordpress/installations`;
5229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5230
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5231
+ let baseOptions;
5232
+ if (configuration) {
5233
+ baseOptions = configuration.baseOptions;
5234
+ }
5235
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5236
+ const localVarHeaderParameter = {};
5237
+ const localVarQueryParameter = {};
5238
+ // authentication apiToken required
5239
+ // http bearer authentication required
5240
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5241
+ if (username !== undefined) {
5242
+ localVarQueryParameter['username'] = username;
5243
+ }
5244
+ if (domain !== undefined) {
5245
+ localVarQueryParameter['domain'] = domain;
5246
+ }
5247
+ if (ownership !== undefined) {
5248
+ localVarQueryParameter['ownership'] = ownership;
5249
+ }
5250
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5252
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5253
+ return {
5254
+ url: (0, common_1.toPathString)(localVarUrlObj),
5255
+ options: localVarRequestOptions,
5256
+ };
5257
+ }),
5258
+ };
5259
+ };
5260
+ exports.HostingWordpressApiAxiosParamCreator = HostingWordpressApiAxiosParamCreator;
5261
+ /**
5262
+ * HostingWordpressApi - functional programming interface
5263
+ * @export
5264
+ */
5265
+ const HostingWordpressApiFp = function (configuration) {
5266
+ const localVarAxiosParamCreator = (0, exports.HostingWordpressApiAxiosParamCreator)(configuration);
5267
+ return {
5268
+ /**
5269
+ * 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.
5270
+ * @summary Install WordPress
5271
+ * @param {string} username
5272
+ * @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
5273
+ * @param {*} [options] Override http request option.
5274
+ * @throws {RequiredError}
5275
+ */
5276
+ installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
5277
+ return __awaiter(this, void 0, void 0, function* () {
5278
+ var _a, _b;
5279
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options);
5280
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWordpressApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5281
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5282
+ });
5283
+ },
5284
+ /**
5285
+ * List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
5286
+ * @summary List WordPress installations
5287
+ * @param {string | null} [username] Filter by specific username
5288
+ * @param {string | null} [domain] Filter by domain name (exact match)
5289
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
5290
+ * @param {*} [options] Override http request option.
5291
+ * @throws {RequiredError}
5292
+ */
5293
+ listWordPressInstallationsV1(username, domain, ownership, options) {
5294
+ return __awaiter(this, void 0, void 0, function* () {
5295
+ var _a, _b;
5296
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
5297
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingWordpressApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5298
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5299
+ });
5300
+ },
5301
+ };
5302
+ };
5303
+ exports.HostingWordpressApiFp = HostingWordpressApiFp;
5304
+ /**
5305
+ * HostingWordpressApi - factory interface
5306
+ * @export
5307
+ */
5308
+ const HostingWordpressApiFactory = function (configuration, basePath, axios) {
5309
+ const localVarFp = (0, exports.HostingWordpressApiFp)(configuration);
5310
+ return {
5311
+ /**
5312
+ * 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.
5313
+ * @summary Install WordPress
5314
+ * @param {string} username
5315
+ * @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
5316
+ * @param {*} [options] Override http request option.
5317
+ * @throws {RequiredError}
5318
+ */
5319
+ installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
5320
+ return localVarFp.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(axios, basePath));
5321
+ },
5322
+ /**
5323
+ * List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
5324
+ * @summary List WordPress installations
5325
+ * @param {string | null} [username] Filter by specific username
5326
+ * @param {string | null} [domain] Filter by domain name (exact match)
5327
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
5328
+ * @param {*} [options] Override http request option.
5329
+ * @throws {RequiredError}
5330
+ */
5331
+ listWordPressInstallationsV1(username, domain, ownership, options) {
5332
+ return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
5333
+ },
5334
+ };
5335
+ };
5336
+ exports.HostingWordpressApiFactory = HostingWordpressApiFactory;
5337
+ /**
5338
+ * HostingWordpressApi - object-oriented interface
5339
+ * @export
5340
+ * @class HostingWordpressApi
5341
+ * @extends {BaseAPI}
5342
+ */
5343
+ class HostingWordpressApi extends base_1.BaseAPI {
5344
+ /**
5345
+ * 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.
5346
+ * @summary Install WordPress
5347
+ * @param {string} username
5348
+ * @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
5349
+ * @param {*} [options] Override http request option.
5350
+ * @throws {RequiredError}
5351
+ * @memberof HostingWordpressApi
5352
+ */
5353
+ installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
5354
+ return (0, exports.HostingWordpressApiFp)(this.configuration).installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(this.axios, this.basePath));
5355
+ }
5356
+ /**
5357
+ * List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
5358
+ * @summary List WordPress installations
5359
+ * @param {string | null} [username] Filter by specific username
5360
+ * @param {string | null} [domain] Filter by domain name (exact match)
5361
+ * @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \&quot;owned\&quot;. Use \&quot;all\&quot; to include both owned and managed installations.
5362
+ * @param {*} [options] Override http request option.
5363
+ * @throws {RequiredError}
5364
+ * @memberof HostingWordpressApi
5365
+ */
5366
+ listWordPressInstallationsV1(username, domain, ownership, options) {
5367
+ return (0, exports.HostingWordpressApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
5368
+ }
5369
+ }
5370
+ exports.HostingWordpressApi = HostingWordpressApi;
5371
+ /**
5372
+ * @export
5373
+ */
5374
+ exports.ListWordPressInstallationsV1OwnershipEnum = {
5375
+ Owned: 'owned',
5376
+ Managed: 'managed',
5377
+ All: 'all'
5378
+ };
5379
+ /**
5380
+ * ReachContactsApi - axios parameter creator
5381
+ * @export
5382
+ */
5383
+ const ReachContactsApiAxiosParamCreator = function (configuration) {
5384
+ return {
5385
+ /**
5386
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5387
+ * @summary Create a new contact
5388
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5389
+ * @param {*} [options] Override http request option.
5390
+ * @deprecated
5391
+ * @throws {RequiredError}
5392
+ */
5393
+ createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
5394
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
5395
+ (0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
5396
+ const localVarPath = `/api/reach/v1/contacts`;
5397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5398
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5399
+ let baseOptions;
5400
+ if (configuration) {
5401
+ baseOptions = configuration.baseOptions;
5402
+ }
5403
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5404
+ const localVarHeaderParameter = {};
5405
+ const localVarQueryParameter = {};
5406
+ // authentication apiToken required
5407
+ // http bearer authentication required
5408
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5409
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5410
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5412
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5413
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
5414
+ return {
5415
+ url: (0, common_1.toPathString)(localVarUrlObj),
5416
+ options: localVarRequestOptions,
5417
+ };
5418
+ }),
5419
+ /**
5420
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5421
+ * @summary Create new contacts
5422
+ * @param {string} profileUuid Profile uuid parameter
5423
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5424
+ * @param {*} [options] Override http request option.
5425
+ * @throws {RequiredError}
5426
+ */
5427
+ createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
5428
+ // verify required parameter 'profileUuid' is not null or undefined
5429
+ (0, common_1.assertParamExists)('createNewContactsV1', 'profileUuid', profileUuid);
5430
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
5431
+ (0, common_1.assertParamExists)('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
5432
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
5433
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
5434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5435
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5436
+ let baseOptions;
5437
+ if (configuration) {
5438
+ baseOptions = configuration.baseOptions;
5439
+ }
5440
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5441
+ const localVarHeaderParameter = {};
5442
+ const localVarQueryParameter = {};
5443
+ // authentication apiToken required
5444
+ // http bearer authentication required
5445
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5446
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5447
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5449
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5450
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
5451
+ return {
5452
+ url: (0, common_1.toPathString)(localVarUrlObj),
5453
+ options: localVarRequestOptions,
5454
+ };
5455
+ }),
5456
+ /**
5457
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
5458
+ * @summary Delete a contact
5459
+ * @param {string} uuid UUID of the contact to delete
5460
+ * @param {*} [options] Override http request option.
5461
+ * @throws {RequiredError}
5462
+ */
5463
+ deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
5464
+ // verify required parameter 'uuid' is not null or undefined
5465
+ (0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
5466
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
5467
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
5468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5469
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5470
+ let baseOptions;
5471
+ if (configuration) {
5472
+ baseOptions = configuration.baseOptions;
5473
+ }
5474
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5475
+ const localVarHeaderParameter = {};
5476
+ const localVarQueryParameter = {};
5477
+ // authentication apiToken required
5478
+ // http bearer authentication required
5479
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5480
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5482
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5483
+ return {
5484
+ url: (0, common_1.toPathString)(localVarUrlObj),
5485
+ options: localVarRequestOptions,
5486
+ };
5487
+ }),
5488
+ /**
5489
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
5490
+ * @summary List contact groups
5491
+ * @param {*} [options] Override http request option.
5492
+ * @deprecated
5493
+ * @throws {RequiredError}
5494
+ */
5495
+ listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5496
+ const localVarPath = `/api/reach/v1/contacts/groups`;
5497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5498
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5499
+ let baseOptions;
5500
+ if (configuration) {
5501
+ baseOptions = configuration.baseOptions;
5502
+ }
5503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5504
+ const localVarHeaderParameter = {};
5505
+ const localVarQueryParameter = {};
5506
+ // authentication apiToken required
5507
+ // http bearer authentication required
5508
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5509
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5511
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5512
+ return {
5513
+ url: (0, common_1.toPathString)(localVarUrlObj),
5514
+ options: localVarRequestOptions,
5515
+ };
5516
+ }),
5517
+ /**
5518
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
5519
+ * @summary List contacts
5520
+ * @param {string} [groupUuid] Filter contacts by group UUID
5521
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
5522
+ * @param {number} [page] Page number
5523
+ * @param {*} [options] Override http request option.
5524
+ * @throws {RequiredError}
5525
+ */
5526
+ listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
5527
+ const localVarPath = `/api/reach/v1/contacts`;
5528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5529
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5530
+ let baseOptions;
5531
+ if (configuration) {
5532
+ baseOptions = configuration.baseOptions;
5533
+ }
5534
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5535
+ const localVarHeaderParameter = {};
5536
+ const localVarQueryParameter = {};
5537
+ // authentication apiToken required
5538
+ // http bearer authentication required
5539
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5540
+ if (groupUuid !== undefined) {
5541
+ localVarQueryParameter['group_uuid'] = groupUuid;
5542
+ }
5543
+ if (subscriptionStatus !== undefined) {
5544
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
5545
+ }
5546
+ if (page !== undefined) {
5547
+ localVarQueryParameter['page'] = page;
5548
+ }
5549
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5550
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5551
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5552
+ return {
5553
+ url: (0, common_1.toPathString)(localVarUrlObj),
5554
+ options: localVarRequestOptions,
5555
+ };
5556
+ }),
5557
+ };
5558
+ };
5559
+ exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
5560
+ /**
5561
+ * ReachContactsApi - functional programming interface
5562
+ * @export
5563
+ */
5564
+ const ReachContactsApiFp = function (configuration) {
5565
+ const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
5566
+ return {
5567
+ /**
5568
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5569
+ * @summary Create a new contact
5570
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5571
+ * @param {*} [options] Override http request option.
5572
+ * @deprecated
5573
+ * @throws {RequiredError}
5574
+ */
5575
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
5576
+ return __awaiter(this, void 0, void 0, function* () {
5577
+ var _a, _b;
5578
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
5579
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5580
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5581
+ });
5582
+ },
5583
+ /**
5584
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5585
+ * @summary Create new contacts
5586
+ * @param {string} profileUuid Profile uuid parameter
5587
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5588
+ * @param {*} [options] Override http request option.
5589
+ * @throws {RequiredError}
5590
+ */
5591
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
5592
+ return __awaiter(this, void 0, void 0, function* () {
5593
+ var _a, _b;
5594
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
5595
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5596
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5597
+ });
5598
+ },
5599
+ /**
5600
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
5601
+ * @summary Delete a contact
5602
+ * @param {string} uuid UUID of the contact to delete
5603
+ * @param {*} [options] Override http request option.
5604
+ * @throws {RequiredError}
5605
+ */
5606
+ deleteAContactV1(uuid, options) {
5607
+ return __awaiter(this, void 0, void 0, function* () {
5608
+ var _a, _b;
5609
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
5610
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5611
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5612
+ });
5613
+ },
5614
+ /**
5615
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
5616
+ * @summary List contact groups
5617
+ * @param {*} [options] Override http request option.
5618
+ * @deprecated
5619
+ * @throws {RequiredError}
5620
+ */
5621
+ listContactGroupsV1(options) {
5622
+ return __awaiter(this, void 0, void 0, function* () {
5623
+ var _a, _b;
5624
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
5625
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5626
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5627
+ });
5628
+ },
5629
+ /**
5630
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
5631
+ * @summary List contacts
5632
+ * @param {string} [groupUuid] Filter contacts by group UUID
5633
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
5634
+ * @param {number} [page] Page number
5635
+ * @param {*} [options] Override http request option.
5636
+ * @throws {RequiredError}
5637
+ */
5638
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
5639
+ return __awaiter(this, void 0, void 0, function* () {
5640
+ var _a, _b;
5641
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
5642
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5643
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5644
+ });
5645
+ },
5646
+ };
5647
+ };
5648
+ exports.ReachContactsApiFp = ReachContactsApiFp;
5649
+ /**
5650
+ * ReachContactsApi - factory interface
5651
+ * @export
5652
+ */
5653
+ const ReachContactsApiFactory = function (configuration, basePath, axios) {
5654
+ const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
5655
+ return {
5656
+ /**
5657
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5658
+ * @summary Create a new contact
5659
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5660
+ * @param {*} [options] Override http request option.
5661
+ * @deprecated
5662
+ * @throws {RequiredError}
5663
+ */
5664
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
5665
+ return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
5666
+ },
5667
+ /**
5668
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5669
+ * @summary Create new contacts
5670
+ * @param {string} profileUuid Profile uuid parameter
5671
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5672
+ * @param {*} [options] Override http request option.
5673
+ * @throws {RequiredError}
5674
+ */
5675
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
5676
+ return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
5677
+ },
5678
+ /**
5679
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
5680
+ * @summary Delete a contact
5681
+ * @param {string} uuid UUID of the contact to delete
5682
+ * @param {*} [options] Override http request option.
5683
+ * @throws {RequiredError}
5684
+ */
5685
+ deleteAContactV1(uuid, options) {
5686
+ return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
5687
+ },
5688
+ /**
5689
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
5690
+ * @summary List contact groups
5691
+ * @param {*} [options] Override http request option.
5692
+ * @deprecated
5693
+ * @throws {RequiredError}
5694
+ */
5695
+ listContactGroupsV1(options) {
5696
+ return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
5697
+ },
5698
+ /**
5699
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
5700
+ * @summary List contacts
5701
+ * @param {string} [groupUuid] Filter contacts by group UUID
5702
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
5703
+ * @param {number} [page] Page number
5704
+ * @param {*} [options] Override http request option.
5705
+ * @throws {RequiredError}
5706
+ */
5707
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
5708
+ return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
5709
+ },
5710
+ };
5711
+ };
5712
+ exports.ReachContactsApiFactory = ReachContactsApiFactory;
5713
+ /**
5714
+ * ReachContactsApi - object-oriented interface
5715
+ * @export
5716
+ * @class ReachContactsApi
5717
+ * @extends {BaseAPI}
5718
+ */
5719
+ class ReachContactsApi extends base_1.BaseAPI {
5720
+ /**
5721
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5722
+ * @summary Create a new contact
5723
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5724
+ * @param {*} [options] Override http request option.
5725
+ * @deprecated
5726
+ * @throws {RequiredError}
5727
+ * @memberof ReachContactsApi
5728
+ */
5729
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
5730
+ return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
5731
+ }
5732
+ /**
5733
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
5734
+ * @summary Create new contacts
5735
+ * @param {string} profileUuid Profile uuid parameter
5736
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5737
+ * @param {*} [options] Override http request option.
5738
+ * @throws {RequiredError}
5739
+ * @memberof ReachContactsApi
5740
+ */
5741
+ createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
5742
+ return (0, exports.ReachContactsApiFp)(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
5743
+ }
5744
+ /**
5745
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
5746
+ * @summary Delete a contact
5747
+ * @param {string} uuid UUID of the contact to delete
5748
+ * @param {*} [options] Override http request option.
5749
+ * @throws {RequiredError}
5750
+ * @memberof ReachContactsApi
5751
+ */
5752
+ deleteAContactV1(uuid, options) {
5753
+ return (0, exports.ReachContactsApiFp)(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
5754
+ }
5755
+ /**
5756
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
5757
+ * @summary List contact groups
5758
+ * @param {*} [options] Override http request option.
5759
+ * @deprecated
5760
+ * @throws {RequiredError}
5761
+ * @memberof ReachContactsApi
5762
+ */
5763
+ listContactGroupsV1(options) {
5764
+ return (0, exports.ReachContactsApiFp)(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
5765
+ }
5766
+ /**
5767
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
5768
+ * @summary List contacts
5769
+ * @param {string} [groupUuid] Filter contacts by group UUID
5770
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
5771
+ * @param {number} [page] Page number
5772
+ * @param {*} [options] Override http request option.
5773
+ * @throws {RequiredError}
5774
+ * @memberof ReachContactsApi
5775
+ */
5776
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
5777
+ return (0, exports.ReachContactsApiFp)(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
5778
+ }
5779
+ }
5780
+ exports.ReachContactsApi = ReachContactsApi;
5781
+ /**
5782
+ * @export
5783
+ */
5784
+ exports.ListContactsV1SubscriptionStatusEnum = {
5785
+ Subscribed: 'subscribed',
5786
+ Unsubscribed: 'unsubscribed'
5787
+ };
5788
+ /**
5789
+ * ReachProfilesApi - axios parameter creator
5790
+ * @export
5791
+ */
5792
+ const ReachProfilesApiAxiosParamCreator = function (configuration) {
5793
+ return {
5794
+ /**
5795
+ * This endpoint returns all profiles available to the client, including their basic information.
5796
+ * @summary List Profiles
5797
+ * @param {*} [options] Override http request option.
5798
+ * @throws {RequiredError}
5799
+ */
5800
+ listProfilesV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5801
+ const localVarPath = `/api/reach/v1/profiles`;
5802
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5803
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5804
+ let baseOptions;
5805
+ if (configuration) {
5806
+ baseOptions = configuration.baseOptions;
5807
+ }
2955
5808
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2956
5809
  const localVarHeaderParameter = {};
2957
5810
  const localVarQueryParameter = {};
@@ -2966,38 +5819,202 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
2966
5819
  options: localVarRequestOptions,
2967
5820
  };
2968
5821
  }),
5822
+ };
5823
+ };
5824
+ exports.ReachProfilesApiAxiosParamCreator = ReachProfilesApiAxiosParamCreator;
5825
+ /**
5826
+ * ReachProfilesApi - functional programming interface
5827
+ * @export
5828
+ */
5829
+ const ReachProfilesApiFp = function (configuration) {
5830
+ const localVarAxiosParamCreator = (0, exports.ReachProfilesApiAxiosParamCreator)(configuration);
5831
+ return {
2969
5832
  /**
2970
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
2971
- * @summary List contacts
2972
- * @param {string} [groupUuid] Filter contacts by group UUID
2973
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
2974
- * @param {number} [page] Page number
5833
+ * This endpoint returns all profiles available to the client, including their basic information.
5834
+ * @summary List Profiles
2975
5835
  * @param {*} [options] Override http request option.
2976
5836
  * @throws {RequiredError}
2977
5837
  */
2978
- listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
2979
- const localVarPath = `/api/reach/v1/contacts`;
5838
+ listProfilesV1(options) {
5839
+ return __awaiter(this, void 0, void 0, function* () {
5840
+ var _a, _b;
5841
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfilesV1(options);
5842
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachProfilesApi.listProfilesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5843
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5844
+ });
5845
+ },
5846
+ };
5847
+ };
5848
+ exports.ReachProfilesApiFp = ReachProfilesApiFp;
5849
+ /**
5850
+ * ReachProfilesApi - factory interface
5851
+ * @export
5852
+ */
5853
+ const ReachProfilesApiFactory = function (configuration, basePath, axios) {
5854
+ const localVarFp = (0, exports.ReachProfilesApiFp)(configuration);
5855
+ return {
5856
+ /**
5857
+ * This endpoint returns all profiles available to the client, including their basic information.
5858
+ * @summary List Profiles
5859
+ * @param {*} [options] Override http request option.
5860
+ * @throws {RequiredError}
5861
+ */
5862
+ listProfilesV1(options) {
5863
+ return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
5864
+ },
5865
+ };
5866
+ };
5867
+ exports.ReachProfilesApiFactory = ReachProfilesApiFactory;
5868
+ /**
5869
+ * ReachProfilesApi - object-oriented interface
5870
+ * @export
5871
+ * @class ReachProfilesApi
5872
+ * @extends {BaseAPI}
5873
+ */
5874
+ class ReachProfilesApi extends base_1.BaseAPI {
5875
+ /**
5876
+ * This endpoint returns all profiles available to the client, including their basic information.
5877
+ * @summary List Profiles
5878
+ * @param {*} [options] Override http request option.
5879
+ * @throws {RequiredError}
5880
+ * @memberof ReachProfilesApi
5881
+ */
5882
+ listProfilesV1(options) {
5883
+ return (0, exports.ReachProfilesApiFp)(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
5884
+ }
5885
+ }
5886
+ exports.ReachProfilesApi = ReachProfilesApi;
5887
+ /**
5888
+ * ReachSegmentsApi - axios parameter creator
5889
+ * @export
5890
+ */
5891
+ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
5892
+ return {
5893
+ /**
5894
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
5895
+ * @summary Create a new contact segment
5896
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
5897
+ * @param {*} [options] Override http request option.
5898
+ * @throws {RequiredError}
5899
+ */
5900
+ createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
5901
+ // verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
5902
+ (0, common_1.assertParamExists)('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest);
5903
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
2980
5904
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2981
5905
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2982
5906
  let baseOptions;
2983
5907
  if (configuration) {
2984
5908
  baseOptions = configuration.baseOptions;
2985
5909
  }
2986
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5910
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2987
5911
  const localVarHeaderParameter = {};
2988
5912
  const localVarQueryParameter = {};
2989
5913
  // authentication apiToken required
2990
5914
  // http bearer authentication required
2991
5915
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2992
- if (groupUuid !== undefined) {
2993
- localVarQueryParameter['group_uuid'] = groupUuid;
5916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5917
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5918
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5919
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5920
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
5921
+ return {
5922
+ url: (0, common_1.toPathString)(localVarUrlObj),
5923
+ options: localVarRequestOptions,
5924
+ };
5925
+ }),
5926
+ /**
5927
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
5928
+ * @summary Get segment details
5929
+ * @param {string} segmentUuid Segment uuid parameter
5930
+ * @param {*} [options] Override http request option.
5931
+ * @throws {RequiredError}
5932
+ */
5933
+ getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
5934
+ // verify required parameter 'segmentUuid' is not null or undefined
5935
+ (0, common_1.assertParamExists)('getSegmentDetailsV1', 'segmentUuid', segmentUuid);
5936
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
5937
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
5938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5939
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5940
+ let baseOptions;
5941
+ if (configuration) {
5942
+ baseOptions = configuration.baseOptions;
2994
5943
  }
2995
- if (subscriptionStatus !== undefined) {
2996
- localVarQueryParameter['subscription_status'] = subscriptionStatus;
5944
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5945
+ const localVarHeaderParameter = {};
5946
+ const localVarQueryParameter = {};
5947
+ // authentication apiToken required
5948
+ // http bearer authentication required
5949
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5950
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5952
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5953
+ return {
5954
+ url: (0, common_1.toPathString)(localVarUrlObj),
5955
+ options: localVarRequestOptions,
5956
+ };
5957
+ }),
5958
+ /**
5959
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
5960
+ * @summary List segment contacts
5961
+ * @param {string} segmentUuid Segment uuid parameter
5962
+ * @param {number} [page] Page number
5963
+ * @param {number} [perPage] Number of items per page
5964
+ * @param {*} [options] Override http request option.
5965
+ * @throws {RequiredError}
5966
+ */
5967
+ listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
5968
+ // verify required parameter 'segmentUuid' is not null or undefined
5969
+ (0, common_1.assertParamExists)('listSegmentContactsV1', 'segmentUuid', segmentUuid);
5970
+ const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
5971
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
5972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5973
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5974
+ let baseOptions;
5975
+ if (configuration) {
5976
+ baseOptions = configuration.baseOptions;
2997
5977
  }
5978
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5979
+ const localVarHeaderParameter = {};
5980
+ const localVarQueryParameter = {};
5981
+ // authentication apiToken required
5982
+ // http bearer authentication required
5983
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2998
5984
  if (page !== undefined) {
2999
5985
  localVarQueryParameter['page'] = page;
3000
5986
  }
5987
+ if (perPage !== undefined) {
5988
+ localVarQueryParameter['per_page'] = perPage;
5989
+ }
5990
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5991
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5992
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5993
+ return {
5994
+ url: (0, common_1.toPathString)(localVarUrlObj),
5995
+ options: localVarRequestOptions,
5996
+ };
5997
+ }),
5998
+ /**
5999
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
6000
+ * @summary List segments
6001
+ * @param {*} [options] Override http request option.
6002
+ * @throws {RequiredError}
6003
+ */
6004
+ listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6005
+ const localVarPath = `/api/reach/v1/segmentation/segments`;
6006
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6007
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6008
+ let baseOptions;
6009
+ if (configuration) {
6010
+ baseOptions = configuration.baseOptions;
6011
+ }
6012
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6013
+ const localVarHeaderParameter = {};
6014
+ const localVarQueryParameter = {};
6015
+ // authentication apiToken required
6016
+ // http bearer authentication required
6017
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3001
6018
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3002
6019
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3003
6020
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3008,190 +6025,183 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
3008
6025
  }),
3009
6026
  };
3010
6027
  };
3011
- exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
6028
+ exports.ReachSegmentsApiAxiosParamCreator = ReachSegmentsApiAxiosParamCreator;
3012
6029
  /**
3013
- * ReachContactsApi - functional programming interface
6030
+ * ReachSegmentsApi - functional programming interface
3014
6031
  * @export
3015
6032
  */
3016
- const ReachContactsApiFp = function (configuration) {
3017
- const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
6033
+ const ReachSegmentsApiFp = function (configuration) {
6034
+ const localVarAxiosParamCreator = (0, exports.ReachSegmentsApiAxiosParamCreator)(configuration);
3018
6035
  return {
3019
6036
  /**
3020
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
3021
- * @summary Create a new contact
3022
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6037
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
6038
+ * @summary Create a new contact segment
6039
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
3023
6040
  * @param {*} [options] Override http request option.
3024
6041
  * @throws {RequiredError}
3025
6042
  */
3026
- createANewContactV1(reachV1ContactsStoreRequest, options) {
6043
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
3027
6044
  return __awaiter(this, void 0, void 0, function* () {
3028
6045
  var _a, _b;
3029
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
3030
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6046
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
6047
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3031
6048
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3032
6049
  });
3033
6050
  },
3034
6051
  /**
3035
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3036
- * @summary Delete a contact
3037
- * @param {string} uuid UUID of the contact to delete
6052
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
6053
+ * @summary Get segment details
6054
+ * @param {string} segmentUuid Segment uuid parameter
3038
6055
  * @param {*} [options] Override http request option.
3039
6056
  * @throws {RequiredError}
3040
6057
  */
3041
- deleteAContactV1(uuid, options) {
6058
+ getSegmentDetailsV1(segmentUuid, options) {
3042
6059
  return __awaiter(this, void 0, void 0, function* () {
3043
6060
  var _a, _b;
3044
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
3045
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6061
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
6062
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3046
6063
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3047
6064
  });
3048
6065
  },
3049
6066
  /**
3050
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3051
- * @summary List contact groups
6067
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6068
+ * @summary List segment contacts
6069
+ * @param {string} segmentUuid Segment uuid parameter
6070
+ * @param {number} [page] Page number
6071
+ * @param {number} [perPage] Number of items per page
3052
6072
  * @param {*} [options] Override http request option.
3053
6073
  * @throws {RequiredError}
3054
6074
  */
3055
- listContactGroupsV1(options) {
6075
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
3056
6076
  return __awaiter(this, void 0, void 0, function* () {
3057
6077
  var _a, _b;
3058
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
3059
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6078
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
6079
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3060
6080
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3061
6081
  });
3062
6082
  },
3063
6083
  /**
3064
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
3065
- * @summary List contacts
3066
- * @param {string} [groupUuid] Filter contacts by group UUID
3067
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3068
- * @param {number} [page] Page number
6084
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
6085
+ * @summary List segments
3069
6086
  * @param {*} [options] Override http request option.
3070
6087
  * @throws {RequiredError}
3071
6088
  */
3072
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
6089
+ listSegmentsV1(options) {
3073
6090
  return __awaiter(this, void 0, void 0, function* () {
3074
6091
  var _a, _b;
3075
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
3076
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6092
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentsV1(options);
6093
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3077
6094
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3078
6095
  });
3079
6096
  },
3080
6097
  };
3081
6098
  };
3082
- exports.ReachContactsApiFp = ReachContactsApiFp;
6099
+ exports.ReachSegmentsApiFp = ReachSegmentsApiFp;
3083
6100
  /**
3084
- * ReachContactsApi - factory interface
6101
+ * ReachSegmentsApi - factory interface
3085
6102
  * @export
3086
6103
  */
3087
- const ReachContactsApiFactory = function (configuration, basePath, axios) {
3088
- const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
6104
+ const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
6105
+ const localVarFp = (0, exports.ReachSegmentsApiFp)(configuration);
3089
6106
  return {
3090
6107
  /**
3091
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
3092
- * @summary Create a new contact
3093
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6108
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
6109
+ * @summary Create a new contact segment
6110
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
3094
6111
  * @param {*} [options] Override http request option.
3095
6112
  * @throws {RequiredError}
3096
6113
  */
3097
- createANewContactV1(reachV1ContactsStoreRequest, options) {
3098
- return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
6114
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
6115
+ return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
3099
6116
  },
3100
6117
  /**
3101
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3102
- * @summary Delete a contact
3103
- * @param {string} uuid UUID of the contact to delete
6118
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
6119
+ * @summary Get segment details
6120
+ * @param {string} segmentUuid Segment uuid parameter
3104
6121
  * @param {*} [options] Override http request option.
3105
6122
  * @throws {RequiredError}
3106
6123
  */
3107
- deleteAContactV1(uuid, options) {
3108
- return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
6124
+ getSegmentDetailsV1(segmentUuid, options) {
6125
+ return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
3109
6126
  },
3110
6127
  /**
3111
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3112
- * @summary List contact groups
6128
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6129
+ * @summary List segment contacts
6130
+ * @param {string} segmentUuid Segment uuid parameter
6131
+ * @param {number} [page] Page number
6132
+ * @param {number} [perPage] Number of items per page
3113
6133
  * @param {*} [options] Override http request option.
3114
6134
  * @throws {RequiredError}
3115
6135
  */
3116
- listContactGroupsV1(options) {
3117
- return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
6136
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
6137
+ return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
3118
6138
  },
3119
6139
  /**
3120
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
3121
- * @summary List contacts
3122
- * @param {string} [groupUuid] Filter contacts by group UUID
3123
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3124
- * @param {number} [page] Page number
6140
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
6141
+ * @summary List segments
3125
6142
  * @param {*} [options] Override http request option.
3126
6143
  * @throws {RequiredError}
3127
6144
  */
3128
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
3129
- return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
6145
+ listSegmentsV1(options) {
6146
+ return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
3130
6147
  },
3131
6148
  };
3132
6149
  };
3133
- exports.ReachContactsApiFactory = ReachContactsApiFactory;
6150
+ exports.ReachSegmentsApiFactory = ReachSegmentsApiFactory;
3134
6151
  /**
3135
- * ReachContactsApi - object-oriented interface
6152
+ * ReachSegmentsApi - object-oriented interface
3136
6153
  * @export
3137
- * @class ReachContactsApi
6154
+ * @class ReachSegmentsApi
3138
6155
  * @extends {BaseAPI}
3139
6156
  */
3140
- class ReachContactsApi extends base_1.BaseAPI {
6157
+ class ReachSegmentsApi extends base_1.BaseAPI {
3141
6158
  /**
3142
- * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
3143
- * @summary Create a new contact
3144
- * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6159
+ * Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
6160
+ * @summary Create a new contact segment
6161
+ * @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
3145
6162
  * @param {*} [options] Override http request option.
3146
6163
  * @throws {RequiredError}
3147
- * @memberof ReachContactsApi
6164
+ * @memberof ReachSegmentsApi
3148
6165
  */
3149
- createANewContactV1(reachV1ContactsStoreRequest, options) {
3150
- return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
6166
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
6167
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
3151
6168
  }
3152
6169
  /**
3153
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3154
- * @summary Delete a contact
3155
- * @param {string} uuid UUID of the contact to delete
6170
+ * Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
6171
+ * @summary Get segment details
6172
+ * @param {string} segmentUuid Segment uuid parameter
3156
6173
  * @param {*} [options] Override http request option.
3157
6174
  * @throws {RequiredError}
3158
- * @memberof ReachContactsApi
6175
+ * @memberof ReachSegmentsApi
3159
6176
  */
3160
- deleteAContactV1(uuid, options) {
3161
- return (0, exports.ReachContactsApiFp)(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
6177
+ getSegmentDetailsV1(segmentUuid, options) {
6178
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
3162
6179
  }
3163
6180
  /**
3164
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3165
- * @summary List contact groups
6181
+ * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6182
+ * @summary List segment contacts
6183
+ * @param {string} segmentUuid Segment uuid parameter
6184
+ * @param {number} [page] Page number
6185
+ * @param {number} [perPage] Number of items per page
3166
6186
  * @param {*} [options] Override http request option.
3167
6187
  * @throws {RequiredError}
3168
- * @memberof ReachContactsApi
6188
+ * @memberof ReachSegmentsApi
3169
6189
  */
3170
- listContactGroupsV1(options) {
3171
- return (0, exports.ReachContactsApiFp)(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
6190
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
6191
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
3172
6192
  }
3173
6193
  /**
3174
- * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
3175
- * @summary List contacts
3176
- * @param {string} [groupUuid] Filter contacts by group UUID
3177
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3178
- * @param {number} [page] Page number
6194
+ * Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
6195
+ * @summary List segments
3179
6196
  * @param {*} [options] Override http request option.
3180
6197
  * @throws {RequiredError}
3181
- * @memberof ReachContactsApi
6198
+ * @memberof ReachSegmentsApi
3182
6199
  */
3183
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
3184
- return (0, exports.ReachContactsApiFp)(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
6200
+ listSegmentsV1(options) {
6201
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
3185
6202
  }
3186
6203
  }
3187
- exports.ReachContactsApi = ReachContactsApi;
3188
- /**
3189
- * @export
3190
- */
3191
- exports.ListContactsV1SubscriptionStatusEnum = {
3192
- Subscribed: 'subscribed',
3193
- Unsubscribed: 'unsubscribed'
3194
- };
6204
+ exports.ReachSegmentsApi = ReachSegmentsApi;
3195
6205
  /**
3196
6206
  * VPSActionsApi - axios parameter creator
3197
6207
  * @export
@@ -3235,7 +6245,7 @@ const VPSActionsApiAxiosParamCreator = function (configuration) {
3235
6245
  };
3236
6246
  }),
3237
6247
  /**
3238
- * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
6248
+ * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
3239
6249
  * @summary Get actions
3240
6250
  * @param {number} virtualMachineId Virtual Machine ID
3241
6251
  * @param {number} [page] Page number
@@ -3297,7 +6307,7 @@ const VPSActionsApiFp = function (configuration) {
3297
6307
  });
3298
6308
  },
3299
6309
  /**
3300
- * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
6310
+ * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
3301
6311
  * @summary Get actions
3302
6312
  * @param {number} virtualMachineId Virtual Machine ID
3303
6313
  * @param {number} [page] Page number
@@ -3334,7 +6344,7 @@ const VPSActionsApiFactory = function (configuration, basePath, axios) {
3334
6344
  return localVarFp.getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(axios, basePath));
3335
6345
  },
3336
6346
  /**
3337
- * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
6347
+ * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
3338
6348
  * @summary Get actions
3339
6349
  * @param {number} virtualMachineId Virtual Machine ID
3340
6350
  * @param {number} [page] Page number
@@ -3367,7 +6377,7 @@ class VPSActionsApi extends base_1.BaseAPI {
3367
6377
  return (0, exports.VPSActionsApiFp)(this.configuration).getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(this.axios, this.basePath));
3368
6378
  }
3369
6379
  /**
3370
- * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
6380
+ * Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
3371
6381
  * @summary Get actions
3372
6382
  * @param {number} virtualMachineId Virtual Machine ID
3373
6383
  * @param {number} [page] Page number
@@ -3674,7 +6684,7 @@ exports.VPSDataCentersApi = VPSDataCentersApi;
3674
6684
  const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3675
6685
  return {
3676
6686
  /**
3677
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
6687
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
3678
6688
  * @summary Create new project
3679
6689
  * @param {number} virtualMachineId Virtual Machine ID
3680
6690
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3747,7 +6757,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3747
6757
  };
3748
6758
  }),
3749
6759
  /**
3750
- * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
6760
+ * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
3751
6761
  * @summary Get project containers
3752
6762
  * @param {number} virtualMachineId Virtual Machine ID
3753
6763
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3783,7 +6793,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3783
6793
  };
3784
6794
  }),
3785
6795
  /**
3786
- * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
6796
+ * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
3787
6797
  * @summary Get project contents
3788
6798
  * @param {number} virtualMachineId Virtual Machine ID
3789
6799
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3819,7 +6829,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3819
6829
  };
3820
6830
  }),
3821
6831
  /**
3822
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
6832
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
3823
6833
  * @summary Get project list
3824
6834
  * @param {number} virtualMachineId Virtual Machine ID
3825
6835
  * @param {*} [options] Override http request option.
@@ -3887,7 +6897,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3887
6897
  };
3888
6898
  }),
3889
6899
  /**
3890
- * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
6900
+ * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
3891
6901
  * @summary Restart project
3892
6902
  * @param {number} virtualMachineId Virtual Machine ID
3893
6903
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3959,7 +6969,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3959
6969
  };
3960
6970
  }),
3961
6971
  /**
3962
- * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
6972
+ * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
3963
6973
  * @summary Stop project
3964
6974
  * @param {number} virtualMachineId Virtual Machine ID
3965
6975
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3995,7 +7005,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3995
7005
  };
3996
7006
  }),
3997
7007
  /**
3998
- * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
7008
+ * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
3999
7009
  * @summary Update project
4000
7010
  * @param {number} virtualMachineId Virtual Machine ID
4001
7011
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4041,7 +7051,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4041
7051
  const localVarAxiosParamCreator = (0, exports.VPSDockerManagerApiAxiosParamCreator)(configuration);
4042
7052
  return {
4043
7053
  /**
4044
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
7054
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
4045
7055
  * @summary Create new project
4046
7056
  * @param {number} virtualMachineId Virtual Machine ID
4047
7057
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4073,7 +7083,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4073
7083
  });
4074
7084
  },
4075
7085
  /**
4076
- * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
7086
+ * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
4077
7087
  * @summary Get project containers
4078
7088
  * @param {number} virtualMachineId Virtual Machine ID
4079
7089
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4089,7 +7099,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4089
7099
  });
4090
7100
  },
4091
7101
  /**
4092
- * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
7102
+ * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
4093
7103
  * @summary Get project contents
4094
7104
  * @param {number} virtualMachineId Virtual Machine ID
4095
7105
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4105,7 +7115,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4105
7115
  });
4106
7116
  },
4107
7117
  /**
4108
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
7118
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
4109
7119
  * @summary Get project list
4110
7120
  * @param {number} virtualMachineId Virtual Machine ID
4111
7121
  * @param {*} [options] Override http request option.
@@ -4136,7 +7146,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4136
7146
  });
4137
7147
  },
4138
7148
  /**
4139
- * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
7149
+ * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
4140
7150
  * @summary Restart project
4141
7151
  * @param {number} virtualMachineId Virtual Machine ID
4142
7152
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4168,7 +7178,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4168
7178
  });
4169
7179
  },
4170
7180
  /**
4171
- * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
7181
+ * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
4172
7182
  * @summary Stop project
4173
7183
  * @param {number} virtualMachineId Virtual Machine ID
4174
7184
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4184,7 +7194,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4184
7194
  });
4185
7195
  },
4186
7196
  /**
4187
- * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
7197
+ * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
4188
7198
  * @summary Update project
4189
7199
  * @param {number} virtualMachineId Virtual Machine ID
4190
7200
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4210,7 +7220,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4210
7220
  const localVarFp = (0, exports.VPSDockerManagerApiFp)(configuration);
4211
7221
  return {
4212
7222
  /**
4213
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
7223
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
4214
7224
  * @summary Create new project
4215
7225
  * @param {number} virtualMachineId Virtual Machine ID
4216
7226
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4232,7 +7242,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4232
7242
  return localVarFp.deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4233
7243
  },
4234
7244
  /**
4235
- * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
7245
+ * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
4236
7246
  * @summary Get project containers
4237
7247
  * @param {number} virtualMachineId Virtual Machine ID
4238
7248
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4243,7 +7253,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4243
7253
  return localVarFp.getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4244
7254
  },
4245
7255
  /**
4246
- * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
7256
+ * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
4247
7257
  * @summary Get project contents
4248
7258
  * @param {number} virtualMachineId Virtual Machine ID
4249
7259
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4254,7 +7264,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4254
7264
  return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4255
7265
  },
4256
7266
  /**
4257
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
7267
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
4258
7268
  * @summary Get project list
4259
7269
  * @param {number} virtualMachineId Virtual Machine ID
4260
7270
  * @param {*} [options] Override http request option.
@@ -4275,7 +7285,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4275
7285
  return localVarFp.getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4276
7286
  },
4277
7287
  /**
4278
- * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
7288
+ * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
4279
7289
  * @summary Restart project
4280
7290
  * @param {number} virtualMachineId Virtual Machine ID
4281
7291
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4297,7 +7307,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4297
7307
  return localVarFp.startProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4298
7308
  },
4299
7309
  /**
4300
- * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
7310
+ * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
4301
7311
  * @summary Stop project
4302
7312
  * @param {number} virtualMachineId Virtual Machine ID
4303
7313
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4308,7 +7318,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4308
7318
  return localVarFp.stopProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4309
7319
  },
4310
7320
  /**
4311
- * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
7321
+ * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
4312
7322
  * @summary Update project
4313
7323
  * @param {number} virtualMachineId Virtual Machine ID
4314
7324
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4329,7 +7339,7 @@ exports.VPSDockerManagerApiFactory = VPSDockerManagerApiFactory;
4329
7339
  */
4330
7340
  class VPSDockerManagerApi extends base_1.BaseAPI {
4331
7341
  /**
4332
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
7342
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
4333
7343
  * @summary Create new project
4334
7344
  * @param {number} virtualMachineId Virtual Machine ID
4335
7345
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4353,7 +7363,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4353
7363
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4354
7364
  }
4355
7365
  /**
4356
- * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
7366
+ * Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
4357
7367
  * @summary Get project containers
4358
7368
  * @param {number} virtualMachineId Virtual Machine ID
4359
7369
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4365,7 +7375,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4365
7375
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4366
7376
  }
4367
7377
  /**
4368
- * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
7378
+ * Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
4369
7379
  * @summary Get project contents
4370
7380
  * @param {number} virtualMachineId Virtual Machine ID
4371
7381
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4377,7 +7387,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4377
7387
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4378
7388
  }
4379
7389
  /**
4380
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
7390
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
4381
7391
  * @summary Get project list
4382
7392
  * @param {number} virtualMachineId Virtual Machine ID
4383
7393
  * @param {*} [options] Override http request option.
@@ -4400,7 +7410,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4400
7410
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4401
7411
  }
4402
7412
  /**
4403
- * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
7413
+ * Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
4404
7414
  * @summary Restart project
4405
7415
  * @param {number} virtualMachineId Virtual Machine ID
4406
7416
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4424,7 +7434,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4424
7434
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).startProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4425
7435
  }
4426
7436
  /**
4427
- * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
7437
+ * Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
4428
7438
  * @summary Stop project
4429
7439
  * @param {number} virtualMachineId Virtual Machine ID
4430
7440
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4436,7 +7446,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4436
7446
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).stopProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4437
7447
  }
4438
7448
  /**
4439
- * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
7449
+ * Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
4440
7450
  * @summary Update project
4441
7451
  * @param {number} virtualMachineId Virtual Machine ID
4442
7452
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4598,7 +7608,7 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
4598
7608
  };
4599
7609
  }),
4600
7610
  /**
4601
- * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
7611
+ * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
4602
7612
  * @summary Delete firewall rule
4603
7613
  * @param {number} firewallId Firewall ID
4604
7614
  * @param {number} ruleId Firewall Rule ID
@@ -4880,7 +7890,7 @@ const VPSFirewallApiFp = function (configuration) {
4880
7890
  });
4881
7891
  },
4882
7892
  /**
4883
- * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
7893
+ * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
4884
7894
  * @summary Delete firewall rule
4885
7895
  * @param {number} firewallId Firewall ID
4886
7896
  * @param {number} ruleId Firewall Rule ID
@@ -5027,7 +8037,7 @@ const VPSFirewallApiFactory = function (configuration, basePath, axios) {
5027
8037
  return localVarFp.deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(axios, basePath));
5028
8038
  },
5029
8039
  /**
5030
- * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
8040
+ * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
5031
8041
  * @summary Delete firewall rule
5032
8042
  * @param {number} firewallId Firewall ID
5033
8043
  * @param {number} ruleId Firewall Rule ID
@@ -5148,7 +8158,7 @@ class VPSFirewallApi extends base_1.BaseAPI {
5148
8158
  return (0, exports.VPSFirewallApiFp)(this.configuration).deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(this.axios, this.basePath));
5149
8159
  }
5150
8160
  /**
5151
- * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
8161
+ * Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
5152
8162
  * @summary Delete firewall rule
5153
8163
  * @param {number} firewallId Firewall ID
5154
8164
  * @param {number} ruleId Firewall Rule ID
@@ -5226,7 +8236,7 @@ exports.VPSFirewallApi = VPSFirewallApi;
5226
8236
  const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
5227
8237
  return {
5228
8238
  /**
5229
- * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
8239
+ * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
5230
8240
  * @summary Get scan metrics
5231
8241
  * @param {number} virtualMachineId Virtual Machine ID
5232
8242
  * @param {*} [options] Override http request option.
@@ -5258,7 +8268,7 @@ const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
5258
8268
  };
5259
8269
  }),
5260
8270
  /**
5261
- * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
8271
+ * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
5262
8272
  * @summary Install Monarx
5263
8273
  * @param {number} virtualMachineId Virtual Machine ID
5264
8274
  * @param {*} [options] Override http request option.
@@ -5332,7 +8342,7 @@ const VPSMalwareScannerApiFp = function (configuration) {
5332
8342
  const localVarAxiosParamCreator = (0, exports.VPSMalwareScannerApiAxiosParamCreator)(configuration);
5333
8343
  return {
5334
8344
  /**
5335
- * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
8345
+ * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
5336
8346
  * @summary Get scan metrics
5337
8347
  * @param {number} virtualMachineId Virtual Machine ID
5338
8348
  * @param {*} [options] Override http request option.
@@ -5347,7 +8357,7 @@ const VPSMalwareScannerApiFp = function (configuration) {
5347
8357
  });
5348
8358
  },
5349
8359
  /**
5350
- * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
8360
+ * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
5351
8361
  * @summary Install Monarx
5352
8362
  * @param {number} virtualMachineId Virtual Machine ID
5353
8363
  * @param {*} [options] Override http request option.
@@ -5387,7 +8397,7 @@ const VPSMalwareScannerApiFactory = function (configuration, basePath, axios) {
5387
8397
  const localVarFp = (0, exports.VPSMalwareScannerApiFp)(configuration);
5388
8398
  return {
5389
8399
  /**
5390
- * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
8400
+ * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
5391
8401
  * @summary Get scan metrics
5392
8402
  * @param {number} virtualMachineId Virtual Machine ID
5393
8403
  * @param {*} [options] Override http request option.
@@ -5397,7 +8407,7 @@ const VPSMalwareScannerApiFactory = function (configuration, basePath, axios) {
5397
8407
  return localVarFp.getScanMetricsV1(virtualMachineId, options).then((request) => request(axios, basePath));
5398
8408
  },
5399
8409
  /**
5400
- * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
8410
+ * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
5401
8411
  * @summary Install Monarx
5402
8412
  * @param {number} virtualMachineId Virtual Machine ID
5403
8413
  * @param {*} [options] Override http request option.
@@ -5427,7 +8437,7 @@ exports.VPSMalwareScannerApiFactory = VPSMalwareScannerApiFactory;
5427
8437
  */
5428
8438
  class VPSMalwareScannerApi extends base_1.BaseAPI {
5429
8439
  /**
5430
- * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
8440
+ * Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
5431
8441
  * @summary Get scan metrics
5432
8442
  * @param {number} virtualMachineId Virtual Machine ID
5433
8443
  * @param {*} [options] Override http request option.
@@ -5438,7 +8448,7 @@ class VPSMalwareScannerApi extends base_1.BaseAPI {
5438
8448
  return (0, exports.VPSMalwareScannerApiFp)(this.configuration).getScanMetricsV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
5439
8449
  }
5440
8450
  /**
5441
- * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
8451
+ * Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
5442
8452
  * @summary Install Monarx
5443
8453
  * @param {number} virtualMachineId Virtual Machine ID
5444
8454
  * @param {*} [options] Override http request option.
@@ -7206,7 +10216,7 @@ const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
7206
10216
  };
7207
10217
  }),
7208
10218
  /**
7209
- * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
10219
+ * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
7210
10220
  * @summary Recreate virtual machine
7211
10221
  * @param {number} virtualMachineId Virtual Machine ID
7212
10222
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -7643,7 +10653,7 @@ const VPSVirtualMachineApiFp = function (configuration) {
7643
10653
  });
7644
10654
  },
7645
10655
  /**
7646
- * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
10656
+ * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
7647
10657
  * @summary Recreate virtual machine
7648
10658
  * @param {number} virtualMachineId Virtual Machine ID
7649
10659
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -7861,7 +10871,7 @@ const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
7861
10871
  return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
7862
10872
  },
7863
10873
  /**
7864
- * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
10874
+ * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
7865
10875
  * @summary Recreate virtual machine
7866
10876
  * @param {number} virtualMachineId Virtual Machine ID
7867
10877
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -8034,7 +11044,7 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
8034
11044
  return (0, exports.VPSVirtualMachineApiFp)(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
8035
11045
  }
8036
11046
  /**
8037
- * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
11047
+ * Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
8038
11048
  * @summary Recreate virtual machine
8039
11049
  * @param {number} virtualMachineId Virtual Machine ID
8040
11050
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest