hostinger-api-sdk 0.0.17 → 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 (108) hide show
  1. package/.github/workflows/build-release.yaml +28 -11
  2. package/README.md +2 -2
  3. package/api.ts +7280 -2652
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +4936 -1816
  8. package/dist/api.js +3248 -374
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +4936 -1816
  16. package/dist/esm/api.js +3196 -363
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BillingSubscriptionsApi.md +0 -59
  28. package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
  29. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
  30. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
  31. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
  32. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
  33. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
  34. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
  35. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
  36. package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
  37. package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
  38. package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
  39. package/docs/DomainsPortfolioApi.md +1 -1
  40. package/docs/EcommerceGetStoresV1200Response.md +22 -0
  41. package/docs/EcommerceStoresApi.md +117 -0
  42. package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
  43. package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
  44. package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
  45. package/docs/EcommerceV1StoreStoreRequest.md +30 -0
  46. package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
  47. package/docs/EcommerceV1StoreStoreResource.md +30 -0
  48. package/docs/HostingDatabasesApi.md +368 -0
  49. package/docs/HostingDatacentersApi.md +61 -0
  50. package/docs/HostingDomainsApi.md +468 -0
  51. package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
  52. package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
  53. package/docs/HostingListOrdersV1200Response.md +22 -0
  54. package/docs/HostingListWebsitesV1200Response.md +22 -0
  55. package/docs/HostingNodeJSApi.md +199 -0
  56. package/docs/HostingOrdersApi.md +70 -0
  57. package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
  58. package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
  59. package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
  60. package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
  61. package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
  62. package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
  63. package/docs/HostingV1DatacentersListRequest.md +20 -0
  64. package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
  65. package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
  66. package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
  67. package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
  68. package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
  69. package/docs/HostingV1DomainsSubdomainResource.md +28 -0
  70. package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
  71. package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
  72. package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
  73. package/docs/HostingV1NodeJsBuildResource.md +28 -0
  74. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
  75. package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
  76. package/docs/HostingV1OrdersOrderResource.md +30 -0
  77. package/docs/HostingV1OrdersPlanResource.md +20 -0
  78. package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
  79. package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
  80. package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
  81. package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
  82. package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
  83. package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
  84. package/docs/HostingWebsitesApi.md +132 -0
  85. package/docs/HostingWordpressApi.md +126 -0
  86. package/docs/ReachContactsApi.md +63 -4
  87. package/docs/ReachListSegmentContactsV1200Response.md +22 -0
  88. package/docs/ReachProfilesApi.md +54 -0
  89. package/docs/ReachSegmentsApi.md +224 -0
  90. package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
  91. package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
  92. package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
  93. package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
  94. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
  95. package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
  96. package/docs/ReachV1ContactsStoreRequest.md +2 -2
  97. package/docs/ReachV1ProfilesProfileResource.md +30 -0
  98. package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
  99. package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
  100. package/docs/VPSActionsApi.md +1 -1
  101. package/docs/VPSDockerManagerApi.md +7 -7
  102. package/docs/VPSFirewallApi.md +1 -1
  103. package/docs/VPSMalwareScannerApi.md +2 -2
  104. package/docs/VPSVirtualMachineApi.md +2 -2
  105. package/index.ts +1 -1
  106. package/package.json +1 -1
  107. package/docs/BillingOrdersApi.md +0 -63
  108. 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.16
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
@@ -719,43 +740,6 @@ exports.BillingPaymentMethodsApi = BillingPaymentMethodsApi;
719
740
  */
720
741
  const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
721
742
  return {
722
- /**
723
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
724
- * @summary Cancel subscription
725
- * @param {string} subscriptionId Subscription ID
726
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
727
- * @param {*} [options] Override http request option.
728
- * @throws {RequiredError}
729
- */
730
- cancelSubscriptionV1: (subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1) => __awaiter(this, [subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1], void 0, function* (subscriptionId, billingV1SubscriptionCancelRequest, options = {}) {
731
- // 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}`
736
- .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
737
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
739
- let baseOptions;
740
- if (configuration) {
741
- baseOptions = configuration.baseOptions;
742
- }
743
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
744
- const localVarHeaderParameter = {};
745
- const localVarQueryParameter = {};
746
- // authentication apiToken required
747
- // http bearer authentication required
748
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
749
- localVarHeaderParameter['Content-Type'] = 'application/json';
750
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
751
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
753
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(billingV1SubscriptionCancelRequest, localVarRequestOptions, configuration);
754
- return {
755
- url: (0, common_1.toPathString)(localVarUrlObj),
756
- options: localVarRequestOptions,
757
- };
758
- }),
759
743
  /**
760
744
  * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
761
745
  * @summary Disable auto-renewal
@@ -858,22 +842,6 @@ exports.BillingSubscriptionsApiAxiosParamCreator = BillingSubscriptionsApiAxiosP
858
842
  const BillingSubscriptionsApiFp = function (configuration) {
859
843
  const localVarAxiosParamCreator = (0, exports.BillingSubscriptionsApiAxiosParamCreator)(configuration);
860
844
  return {
861
- /**
862
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
863
- * @summary Cancel subscription
864
- * @param {string} subscriptionId Subscription ID
865
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
866
- * @param {*} [options] Override http request option.
867
- * @throws {RequiredError}
868
- */
869
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
870
- return __awaiter(this, void 0, void 0, function* () {
871
- var _a, _b;
872
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options);
873
- 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;
874
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
875
- });
876
- },
877
845
  /**
878
846
  * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
879
847
  * @summary Disable auto-renewal
@@ -928,17 +896,6 @@ exports.BillingSubscriptionsApiFp = BillingSubscriptionsApiFp;
928
896
  const BillingSubscriptionsApiFactory = function (configuration, basePath, axios) {
929
897
  const localVarFp = (0, exports.BillingSubscriptionsApiFp)(configuration);
930
898
  return {
931
- /**
932
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
933
- * @summary Cancel subscription
934
- * @param {string} subscriptionId Subscription ID
935
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
936
- * @param {*} [options] Override http request option.
937
- * @throws {RequiredError}
938
- */
939
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
940
- return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
941
- },
942
899
  /**
943
900
  * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
944
901
  * @summary Disable auto-renewal
@@ -978,18 +935,6 @@ exports.BillingSubscriptionsApiFactory = BillingSubscriptionsApiFactory;
978
935
  * @extends {BaseAPI}
979
936
  */
980
937
  class BillingSubscriptionsApi extends base_1.BaseAPI {
981
- /**
982
- * Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
983
- * @summary Cancel subscription
984
- * @param {string} subscriptionId Subscription ID
985
- * @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
986
- * @param {*} [options] Override http request option.
987
- * @throws {RequiredError}
988
- * @memberof BillingSubscriptionsApi
989
- */
990
- cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
991
- return (0, exports.BillingSubscriptionsApiFp)(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
992
- }
993
938
  /**
994
939
  * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
995
940
  * @summary Disable auto-renewal
@@ -1690,6 +1635,113 @@ class DNSZoneApi extends base_1.BaseAPI {
1690
1635
  }
1691
1636
  }
1692
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;
1693
1745
  /**
1694
1746
  * DomainsAvailabilityApi - axios parameter creator
1695
1747
  * @export
@@ -2235,7 +2287,7 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
2235
2287
  };
2236
2288
  }),
2237
2289
  /**
2238
- * 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.
2239
2291
  * @summary Purchase new domain
2240
2292
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2241
2293
  * @param {*} [options] Override http request option.
@@ -2404,7 +2456,7 @@ const DomainsPortfolioApiFp = function (configuration) {
2404
2456
  });
2405
2457
  },
2406
2458
  /**
2407
- * 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.
2408
2460
  * @summary Purchase new domain
2409
2461
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2410
2462
  * @param {*} [options] Override http request option.
@@ -2504,7 +2556,7 @@ const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
2504
2556
  return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
2505
2557
  },
2506
2558
  /**
2507
- * 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.
2508
2560
  * @summary Purchase new domain
2509
2561
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2510
2562
  * @param {*} [options] Override http request option.
@@ -2600,7 +2652,7 @@ class DomainsPortfolioApi extends base_1.BaseAPI {
2600
2652
  return (0, exports.DomainsPortfolioApiFp)(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
2601
2653
  }
2602
2654
  /**
2603
- * 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.
2604
2656
  * @summary Purchase new domain
2605
2657
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
2606
2658
  * @param {*} [options] Override http request option.
@@ -3004,22 +3056,22 @@ class DomainsWHOISApi extends base_1.BaseAPI {
3004
3056
  }
3005
3057
  exports.DomainsWHOISApi = DomainsWHOISApi;
3006
3058
  /**
3007
- * ReachContactsApi - axios parameter creator
3059
+ * EcommerceStoresApi - axios parameter creator
3008
3060
  * @export
3009
3061
  */
3010
- const ReachContactsApiAxiosParamCreator = function (configuration) {
3062
+ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3011
3063
  return {
3012
3064
  /**
3013
- * 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.
3014
- * @summary Create a new contact
3015
- * @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
3016
3068
  * @param {*} [options] Override http request option.
3017
3069
  * @throws {RequiredError}
3018
3070
  */
3019
- createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
3020
- // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
3021
- (0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
3022
- 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`;
3023
3075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3024
3076
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3025
3077
  let baseOptions;
@@ -3036,36 +3088,36 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
3036
3088
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3037
3089
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3038
3090
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3039
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
3091
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
3040
3092
  return {
3041
3093
  url: (0, common_1.toPathString)(localVarUrlObj),
3042
3094
  options: localVarRequestOptions,
3043
3095
  };
3044
3096
  }),
3045
3097
  /**
3046
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3047
- * @summary Delete a contact
3048
- * @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
3049
3101
  * @param {*} [options] Override http request option.
3050
3102
  * @throws {RequiredError}
3051
3103
  */
3052
- deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
3053
- // verify required parameter 'uuid' is not null or undefined
3054
- (0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
3055
- const localVarPath = `/api/reach/v1/contacts/{uuid}`
3056
- .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`;
3057
3106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3058
3107
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3059
3108
  let baseOptions;
3060
3109
  if (configuration) {
3061
3110
  baseOptions = configuration.baseOptions;
3062
3111
  }
3063
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3064
3113
  const localVarHeaderParameter = {};
3065
3114
  const localVarQueryParameter = {};
3066
3115
  // authentication apiToken required
3067
3116
  // http bearer authentication required
3068
3117
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3118
+ if (page !== undefined) {
3119
+ localVarQueryParameter['page'] = page;
3120
+ }
3069
3121
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3070
3122
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3071
3123
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3074,19 +3126,2684 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
3074
3126
  options: localVarRequestOptions,
3075
3127
  };
3076
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 {
3077
3139
  /**
3078
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3079
- * @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
3080
3143
  * @param {*} [options] Override http request option.
3081
3144
  * @throws {RequiredError}
3082
3145
  */
3083
- listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3084
- const localVarPath = `/api/reach/v1/contacts/groups`;
3085
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3086
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3087
- let baseOptions;
3088
- if (configuration) {
3089
- baseOptions = configuration.baseOptions;
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;
3090
5807
  }
3091
5808
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3092
5809
  const localVarHeaderParameter = {};
@@ -3102,38 +5819,202 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
3102
5819
  options: localVarRequestOptions,
3103
5820
  };
3104
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 {
3105
5832
  /**
3106
- * 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.
3107
- * @summary List contacts
3108
- * @param {string} [groupUuid] Filter contacts by group UUID
3109
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3110
- * @param {number} [page] Page number
5833
+ * This endpoint returns all profiles available to the client, including their basic information.
5834
+ * @summary List Profiles
3111
5835
  * @param {*} [options] Override http request option.
3112
5836
  * @throws {RequiredError}
3113
5837
  */
3114
- 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 = {}) {
3115
- 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`;
3116
5904
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3117
5905
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3118
5906
  let baseOptions;
3119
5907
  if (configuration) {
3120
5908
  baseOptions = configuration.baseOptions;
3121
5909
  }
3122
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5910
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3123
5911
  const localVarHeaderParameter = {};
3124
5912
  const localVarQueryParameter = {};
3125
5913
  // authentication apiToken required
3126
5914
  // http bearer authentication required
3127
5915
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3128
- if (groupUuid !== undefined) {
3129
- 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;
3130
5943
  }
3131
- if (subscriptionStatus !== undefined) {
3132
- 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;
3133
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);
3134
5984
  if (page !== undefined) {
3135
5985
  localVarQueryParameter['page'] = page;
3136
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);
3137
6018
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3138
6019
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3139
6020
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3144,190 +6025,183 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
3144
6025
  }),
3145
6026
  };
3146
6027
  };
3147
- exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
6028
+ exports.ReachSegmentsApiAxiosParamCreator = ReachSegmentsApiAxiosParamCreator;
3148
6029
  /**
3149
- * ReachContactsApi - functional programming interface
6030
+ * ReachSegmentsApi - functional programming interface
3150
6031
  * @export
3151
6032
  */
3152
- const ReachContactsApiFp = function (configuration) {
3153
- const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
6033
+ const ReachSegmentsApiFp = function (configuration) {
6034
+ const localVarAxiosParamCreator = (0, exports.ReachSegmentsApiAxiosParamCreator)(configuration);
3154
6035
  return {
3155
6036
  /**
3156
- * 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.
3157
- * @summary Create a new contact
3158
- * @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
3159
6040
  * @param {*} [options] Override http request option.
3160
6041
  * @throws {RequiredError}
3161
6042
  */
3162
- createANewContactV1(reachV1ContactsStoreRequest, options) {
6043
+ createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
3163
6044
  return __awaiter(this, void 0, void 0, function* () {
3164
6045
  var _a, _b;
3165
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
3166
- 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;
3167
6048
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3168
6049
  });
3169
6050
  },
3170
6051
  /**
3171
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3172
- * @summary Delete a contact
3173
- * @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
3174
6055
  * @param {*} [options] Override http request option.
3175
6056
  * @throws {RequiredError}
3176
6057
  */
3177
- deleteAContactV1(uuid, options) {
6058
+ getSegmentDetailsV1(segmentUuid, options) {
3178
6059
  return __awaiter(this, void 0, void 0, function* () {
3179
6060
  var _a, _b;
3180
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
3181
- 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;
3182
6063
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3183
6064
  });
3184
6065
  },
3185
6066
  /**
3186
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3187
- * @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
3188
6072
  * @param {*} [options] Override http request option.
3189
6073
  * @throws {RequiredError}
3190
6074
  */
3191
- listContactGroupsV1(options) {
6075
+ listSegmentContactsV1(segmentUuid, page, perPage, options) {
3192
6076
  return __awaiter(this, void 0, void 0, function* () {
3193
6077
  var _a, _b;
3194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
3195
- 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;
3196
6080
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3197
6081
  });
3198
6082
  },
3199
6083
  /**
3200
- * 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.
3201
- * @summary List contacts
3202
- * @param {string} [groupUuid] Filter contacts by group UUID
3203
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3204
- * @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
3205
6086
  * @param {*} [options] Override http request option.
3206
6087
  * @throws {RequiredError}
3207
6088
  */
3208
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
6089
+ listSegmentsV1(options) {
3209
6090
  return __awaiter(this, void 0, void 0, function* () {
3210
6091
  var _a, _b;
3211
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
3212
- 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;
3213
6094
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3214
6095
  });
3215
6096
  },
3216
6097
  };
3217
6098
  };
3218
- exports.ReachContactsApiFp = ReachContactsApiFp;
6099
+ exports.ReachSegmentsApiFp = ReachSegmentsApiFp;
3219
6100
  /**
3220
- * ReachContactsApi - factory interface
6101
+ * ReachSegmentsApi - factory interface
3221
6102
  * @export
3222
6103
  */
3223
- const ReachContactsApiFactory = function (configuration, basePath, axios) {
3224
- const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
6104
+ const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
6105
+ const localVarFp = (0, exports.ReachSegmentsApiFp)(configuration);
3225
6106
  return {
3226
6107
  /**
3227
- * 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.
3228
- * @summary Create a new contact
3229
- * @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
3230
6111
  * @param {*} [options] Override http request option.
3231
6112
  * @throws {RequiredError}
3232
6113
  */
3233
- createANewContactV1(reachV1ContactsStoreRequest, options) {
3234
- 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));
3235
6116
  },
3236
6117
  /**
3237
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3238
- * @summary Delete a contact
3239
- * @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
3240
6121
  * @param {*} [options] Override http request option.
3241
6122
  * @throws {RequiredError}
3242
6123
  */
3243
- deleteAContactV1(uuid, options) {
3244
- 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));
3245
6126
  },
3246
6127
  /**
3247
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3248
- * @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
3249
6133
  * @param {*} [options] Override http request option.
3250
6134
  * @throws {RequiredError}
3251
6135
  */
3252
- listContactGroupsV1(options) {
3253
- 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));
3254
6138
  },
3255
6139
  /**
3256
- * 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.
3257
- * @summary List contacts
3258
- * @param {string} [groupUuid] Filter contacts by group UUID
3259
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3260
- * @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
3261
6142
  * @param {*} [options] Override http request option.
3262
6143
  * @throws {RequiredError}
3263
6144
  */
3264
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
3265
- 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));
3266
6147
  },
3267
6148
  };
3268
6149
  };
3269
- exports.ReachContactsApiFactory = ReachContactsApiFactory;
6150
+ exports.ReachSegmentsApiFactory = ReachSegmentsApiFactory;
3270
6151
  /**
3271
- * ReachContactsApi - object-oriented interface
6152
+ * ReachSegmentsApi - object-oriented interface
3272
6153
  * @export
3273
- * @class ReachContactsApi
6154
+ * @class ReachSegmentsApi
3274
6155
  * @extends {BaseAPI}
3275
6156
  */
3276
- class ReachContactsApi extends base_1.BaseAPI {
6157
+ class ReachSegmentsApi extends base_1.BaseAPI {
3277
6158
  /**
3278
- * 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.
3279
- * @summary Create a new contact
3280
- * @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
3281
6162
  * @param {*} [options] Override http request option.
3282
6163
  * @throws {RequiredError}
3283
- * @memberof ReachContactsApi
6164
+ * @memberof ReachSegmentsApi
3284
6165
  */
3285
- createANewContactV1(reachV1ContactsStoreRequest, options) {
3286
- 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));
3287
6168
  }
3288
6169
  /**
3289
- * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3290
- * @summary Delete a contact
3291
- * @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
3292
6173
  * @param {*} [options] Override http request option.
3293
6174
  * @throws {RequiredError}
3294
- * @memberof ReachContactsApi
6175
+ * @memberof ReachSegmentsApi
3295
6176
  */
3296
- deleteAContactV1(uuid, options) {
3297
- 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));
3298
6179
  }
3299
6180
  /**
3300
- * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3301
- * @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
3302
6186
  * @param {*} [options] Override http request option.
3303
6187
  * @throws {RequiredError}
3304
- * @memberof ReachContactsApi
6188
+ * @memberof ReachSegmentsApi
3305
6189
  */
3306
- listContactGroupsV1(options) {
3307
- 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));
3308
6192
  }
3309
6193
  /**
3310
- * 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.
3311
- * @summary List contacts
3312
- * @param {string} [groupUuid] Filter contacts by group UUID
3313
- * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3314
- * @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
3315
6196
  * @param {*} [options] Override http request option.
3316
6197
  * @throws {RequiredError}
3317
- * @memberof ReachContactsApi
6198
+ * @memberof ReachSegmentsApi
3318
6199
  */
3319
- listContactsV1(groupUuid, subscriptionStatus, page, options) {
3320
- 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));
3321
6202
  }
3322
6203
  }
3323
- exports.ReachContactsApi = ReachContactsApi;
3324
- /**
3325
- * @export
3326
- */
3327
- exports.ListContactsV1SubscriptionStatusEnum = {
3328
- Subscribed: 'subscribed',
3329
- Unsubscribed: 'unsubscribed'
3330
- };
6204
+ exports.ReachSegmentsApi = ReachSegmentsApi;
3331
6205
  /**
3332
6206
  * VPSActionsApi - axios parameter creator
3333
6207
  * @export
@@ -3371,7 +6245,7 @@ const VPSActionsApiAxiosParamCreator = function (configuration) {
3371
6245
  };
3372
6246
  }),
3373
6247
  /**
3374
- * 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.
3375
6249
  * @summary Get actions
3376
6250
  * @param {number} virtualMachineId Virtual Machine ID
3377
6251
  * @param {number} [page] Page number
@@ -3433,7 +6307,7 @@ const VPSActionsApiFp = function (configuration) {
3433
6307
  });
3434
6308
  },
3435
6309
  /**
3436
- * 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.
3437
6311
  * @summary Get actions
3438
6312
  * @param {number} virtualMachineId Virtual Machine ID
3439
6313
  * @param {number} [page] Page number
@@ -3470,7 +6344,7 @@ const VPSActionsApiFactory = function (configuration, basePath, axios) {
3470
6344
  return localVarFp.getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(axios, basePath));
3471
6345
  },
3472
6346
  /**
3473
- * 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.
3474
6348
  * @summary Get actions
3475
6349
  * @param {number} virtualMachineId Virtual Machine ID
3476
6350
  * @param {number} [page] Page number
@@ -3503,7 +6377,7 @@ class VPSActionsApi extends base_1.BaseAPI {
3503
6377
  return (0, exports.VPSActionsApiFp)(this.configuration).getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(this.axios, this.basePath));
3504
6378
  }
3505
6379
  /**
3506
- * 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.
3507
6381
  * @summary Get actions
3508
6382
  * @param {number} virtualMachineId Virtual Machine ID
3509
6383
  * @param {number} [page] Page number
@@ -3810,7 +6684,7 @@ exports.VPSDataCentersApi = VPSDataCentersApi;
3810
6684
  const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3811
6685
  return {
3812
6686
  /**
3813
- * 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.
3814
6688
  * @summary Create new project
3815
6689
  * @param {number} virtualMachineId Virtual Machine ID
3816
6690
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3883,7 +6757,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3883
6757
  };
3884
6758
  }),
3885
6759
  /**
3886
- * 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.
3887
6761
  * @summary Get project containers
3888
6762
  * @param {number} virtualMachineId Virtual Machine ID
3889
6763
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3919,7 +6793,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3919
6793
  };
3920
6794
  }),
3921
6795
  /**
3922
- * 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.
3923
6797
  * @summary Get project contents
3924
6798
  * @param {number} virtualMachineId Virtual Machine ID
3925
6799
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -3955,7 +6829,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3955
6829
  };
3956
6830
  }),
3957
6831
  /**
3958
- * 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.
3959
6833
  * @summary Get project list
3960
6834
  * @param {number} virtualMachineId Virtual Machine ID
3961
6835
  * @param {*} [options] Override http request option.
@@ -4023,7 +6897,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
4023
6897
  };
4024
6898
  }),
4025
6899
  /**
4026
- * 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.
4027
6901
  * @summary Restart project
4028
6902
  * @param {number} virtualMachineId Virtual Machine ID
4029
6903
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4095,7 +6969,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
4095
6969
  };
4096
6970
  }),
4097
6971
  /**
4098
- * 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.
4099
6973
  * @summary Stop project
4100
6974
  * @param {number} virtualMachineId Virtual Machine ID
4101
6975
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4131,7 +7005,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
4131
7005
  };
4132
7006
  }),
4133
7007
  /**
4134
- * 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.
4135
7009
  * @summary Update project
4136
7010
  * @param {number} virtualMachineId Virtual Machine ID
4137
7011
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4177,7 +7051,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4177
7051
  const localVarAxiosParamCreator = (0, exports.VPSDockerManagerApiAxiosParamCreator)(configuration);
4178
7052
  return {
4179
7053
  /**
4180
- * 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.
4181
7055
  * @summary Create new project
4182
7056
  * @param {number} virtualMachineId Virtual Machine ID
4183
7057
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4209,7 +7083,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4209
7083
  });
4210
7084
  },
4211
7085
  /**
4212
- * 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.
4213
7087
  * @summary Get project containers
4214
7088
  * @param {number} virtualMachineId Virtual Machine ID
4215
7089
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4225,7 +7099,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4225
7099
  });
4226
7100
  },
4227
7101
  /**
4228
- * 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.
4229
7103
  * @summary Get project contents
4230
7104
  * @param {number} virtualMachineId Virtual Machine ID
4231
7105
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4241,7 +7115,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4241
7115
  });
4242
7116
  },
4243
7117
  /**
4244
- * 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.
4245
7119
  * @summary Get project list
4246
7120
  * @param {number} virtualMachineId Virtual Machine ID
4247
7121
  * @param {*} [options] Override http request option.
@@ -4272,7 +7146,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4272
7146
  });
4273
7147
  },
4274
7148
  /**
4275
- * 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.
4276
7150
  * @summary Restart project
4277
7151
  * @param {number} virtualMachineId Virtual Machine ID
4278
7152
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4304,7 +7178,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4304
7178
  });
4305
7179
  },
4306
7180
  /**
4307
- * 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.
4308
7182
  * @summary Stop project
4309
7183
  * @param {number} virtualMachineId Virtual Machine ID
4310
7184
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4320,7 +7194,7 @@ const VPSDockerManagerApiFp = function (configuration) {
4320
7194
  });
4321
7195
  },
4322
7196
  /**
4323
- * 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.
4324
7198
  * @summary Update project
4325
7199
  * @param {number} virtualMachineId Virtual Machine ID
4326
7200
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4346,7 +7220,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4346
7220
  const localVarFp = (0, exports.VPSDockerManagerApiFp)(configuration);
4347
7221
  return {
4348
7222
  /**
4349
- * 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.
4350
7224
  * @summary Create new project
4351
7225
  * @param {number} virtualMachineId Virtual Machine ID
4352
7226
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4368,7 +7242,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4368
7242
  return localVarFp.deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4369
7243
  },
4370
7244
  /**
4371
- * 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.
4372
7246
  * @summary Get project containers
4373
7247
  * @param {number} virtualMachineId Virtual Machine ID
4374
7248
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4379,7 +7253,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4379
7253
  return localVarFp.getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4380
7254
  },
4381
7255
  /**
4382
- * 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.
4383
7257
  * @summary Get project contents
4384
7258
  * @param {number} virtualMachineId Virtual Machine ID
4385
7259
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4390,7 +7264,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4390
7264
  return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4391
7265
  },
4392
7266
  /**
4393
- * 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.
4394
7268
  * @summary Get project list
4395
7269
  * @param {number} virtualMachineId Virtual Machine ID
4396
7270
  * @param {*} [options] Override http request option.
@@ -4411,7 +7285,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4411
7285
  return localVarFp.getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4412
7286
  },
4413
7287
  /**
4414
- * 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.
4415
7289
  * @summary Restart project
4416
7290
  * @param {number} virtualMachineId Virtual Machine ID
4417
7291
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4433,7 +7307,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4433
7307
  return localVarFp.startProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4434
7308
  },
4435
7309
  /**
4436
- * 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.
4437
7311
  * @summary Stop project
4438
7312
  * @param {number} virtualMachineId Virtual Machine ID
4439
7313
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4444,7 +7318,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
4444
7318
  return localVarFp.stopProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
4445
7319
  },
4446
7320
  /**
4447
- * 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.
4448
7322
  * @summary Update project
4449
7323
  * @param {number} virtualMachineId Virtual Machine ID
4450
7324
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4465,7 +7339,7 @@ exports.VPSDockerManagerApiFactory = VPSDockerManagerApiFactory;
4465
7339
  */
4466
7340
  class VPSDockerManagerApi extends base_1.BaseAPI {
4467
7341
  /**
4468
- * 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.
4469
7343
  * @summary Create new project
4470
7344
  * @param {number} virtualMachineId Virtual Machine ID
4471
7345
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -4489,7 +7363,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4489
7363
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4490
7364
  }
4491
7365
  /**
4492
- * 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.
4493
7367
  * @summary Get project containers
4494
7368
  * @param {number} virtualMachineId Virtual Machine ID
4495
7369
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4501,7 +7375,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4501
7375
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4502
7376
  }
4503
7377
  /**
4504
- * 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.
4505
7379
  * @summary Get project contents
4506
7380
  * @param {number} virtualMachineId Virtual Machine ID
4507
7381
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4513,7 +7387,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4513
7387
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4514
7388
  }
4515
7389
  /**
4516
- * 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.
4517
7391
  * @summary Get project list
4518
7392
  * @param {number} virtualMachineId Virtual Machine ID
4519
7393
  * @param {*} [options] Override http request option.
@@ -4536,7 +7410,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4536
7410
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4537
7411
  }
4538
7412
  /**
4539
- * 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.
4540
7414
  * @summary Restart project
4541
7415
  * @param {number} virtualMachineId Virtual Machine ID
4542
7416
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4560,7 +7434,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4560
7434
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).startProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4561
7435
  }
4562
7436
  /**
4563
- * 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.
4564
7438
  * @summary Stop project
4565
7439
  * @param {number} virtualMachineId Virtual Machine ID
4566
7440
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4572,7 +7446,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
4572
7446
  return (0, exports.VPSDockerManagerApiFp)(this.configuration).stopProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
4573
7447
  }
4574
7448
  /**
4575
- * 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.
4576
7450
  * @summary Update project
4577
7451
  * @param {number} virtualMachineId Virtual Machine ID
4578
7452
  * @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
@@ -4734,7 +7608,7 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
4734
7608
  };
4735
7609
  }),
4736
7610
  /**
4737
- * 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.
4738
7612
  * @summary Delete firewall rule
4739
7613
  * @param {number} firewallId Firewall ID
4740
7614
  * @param {number} ruleId Firewall Rule ID
@@ -5016,7 +7890,7 @@ const VPSFirewallApiFp = function (configuration) {
5016
7890
  });
5017
7891
  },
5018
7892
  /**
5019
- * 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.
5020
7894
  * @summary Delete firewall rule
5021
7895
  * @param {number} firewallId Firewall ID
5022
7896
  * @param {number} ruleId Firewall Rule ID
@@ -5163,7 +8037,7 @@ const VPSFirewallApiFactory = function (configuration, basePath, axios) {
5163
8037
  return localVarFp.deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(axios, basePath));
5164
8038
  },
5165
8039
  /**
5166
- * 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.
5167
8041
  * @summary Delete firewall rule
5168
8042
  * @param {number} firewallId Firewall ID
5169
8043
  * @param {number} ruleId Firewall Rule ID
@@ -5284,7 +8158,7 @@ class VPSFirewallApi extends base_1.BaseAPI {
5284
8158
  return (0, exports.VPSFirewallApiFp)(this.configuration).deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(this.axios, this.basePath));
5285
8159
  }
5286
8160
  /**
5287
- * 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.
5288
8162
  * @summary Delete firewall rule
5289
8163
  * @param {number} firewallId Firewall ID
5290
8164
  * @param {number} ruleId Firewall Rule ID
@@ -5362,7 +8236,7 @@ exports.VPSFirewallApi = VPSFirewallApi;
5362
8236
  const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
5363
8237
  return {
5364
8238
  /**
5365
- * 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.
5366
8240
  * @summary Get scan metrics
5367
8241
  * @param {number} virtualMachineId Virtual Machine ID
5368
8242
  * @param {*} [options] Override http request option.
@@ -5394,7 +8268,7 @@ const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
5394
8268
  };
5395
8269
  }),
5396
8270
  /**
5397
- * 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.
5398
8272
  * @summary Install Monarx
5399
8273
  * @param {number} virtualMachineId Virtual Machine ID
5400
8274
  * @param {*} [options] Override http request option.
@@ -5468,7 +8342,7 @@ const VPSMalwareScannerApiFp = function (configuration) {
5468
8342
  const localVarAxiosParamCreator = (0, exports.VPSMalwareScannerApiAxiosParamCreator)(configuration);
5469
8343
  return {
5470
8344
  /**
5471
- * 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.
5472
8346
  * @summary Get scan metrics
5473
8347
  * @param {number} virtualMachineId Virtual Machine ID
5474
8348
  * @param {*} [options] Override http request option.
@@ -5483,7 +8357,7 @@ const VPSMalwareScannerApiFp = function (configuration) {
5483
8357
  });
5484
8358
  },
5485
8359
  /**
5486
- * 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.
5487
8361
  * @summary Install Monarx
5488
8362
  * @param {number} virtualMachineId Virtual Machine ID
5489
8363
  * @param {*} [options] Override http request option.
@@ -5523,7 +8397,7 @@ const VPSMalwareScannerApiFactory = function (configuration, basePath, axios) {
5523
8397
  const localVarFp = (0, exports.VPSMalwareScannerApiFp)(configuration);
5524
8398
  return {
5525
8399
  /**
5526
- * 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.
5527
8401
  * @summary Get scan metrics
5528
8402
  * @param {number} virtualMachineId Virtual Machine ID
5529
8403
  * @param {*} [options] Override http request option.
@@ -5533,7 +8407,7 @@ const VPSMalwareScannerApiFactory = function (configuration, basePath, axios) {
5533
8407
  return localVarFp.getScanMetricsV1(virtualMachineId, options).then((request) => request(axios, basePath));
5534
8408
  },
5535
8409
  /**
5536
- * 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.
5537
8411
  * @summary Install Monarx
5538
8412
  * @param {number} virtualMachineId Virtual Machine ID
5539
8413
  * @param {*} [options] Override http request option.
@@ -5563,7 +8437,7 @@ exports.VPSMalwareScannerApiFactory = VPSMalwareScannerApiFactory;
5563
8437
  */
5564
8438
  class VPSMalwareScannerApi extends base_1.BaseAPI {
5565
8439
  /**
5566
- * 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.
5567
8441
  * @summary Get scan metrics
5568
8442
  * @param {number} virtualMachineId Virtual Machine ID
5569
8443
  * @param {*} [options] Override http request option.
@@ -5574,7 +8448,7 @@ class VPSMalwareScannerApi extends base_1.BaseAPI {
5574
8448
  return (0, exports.VPSMalwareScannerApiFp)(this.configuration).getScanMetricsV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
5575
8449
  }
5576
8450
  /**
5577
- * 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.
5578
8452
  * @summary Install Monarx
5579
8453
  * @param {number} virtualMachineId Virtual Machine ID
5580
8454
  * @param {*} [options] Override http request option.
@@ -7342,7 +10216,7 @@ const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
7342
10216
  };
7343
10217
  }),
7344
10218
  /**
7345
- * 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.
7346
10220
  * @summary Recreate virtual machine
7347
10221
  * @param {number} virtualMachineId Virtual Machine ID
7348
10222
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -7779,7 +10653,7 @@ const VPSVirtualMachineApiFp = function (configuration) {
7779
10653
  });
7780
10654
  },
7781
10655
  /**
7782
- * 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.
7783
10657
  * @summary Recreate virtual machine
7784
10658
  * @param {number} virtualMachineId Virtual Machine ID
7785
10659
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -7997,7 +10871,7 @@ const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
7997
10871
  return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
7998
10872
  },
7999
10873
  /**
8000
- * 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.
8001
10875
  * @summary Recreate virtual machine
8002
10876
  * @param {number} virtualMachineId Virtual Machine ID
8003
10877
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
@@ -8170,7 +11044,7 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
8170
11044
  return (0, exports.VPSVirtualMachineApiFp)(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
8171
11045
  }
8172
11046
  /**
8173
- * 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.
8174
11048
  * @summary Recreate virtual machine
8175
11049
  * @param {number} virtualMachineId Virtual Machine ID
8176
11050
  * @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest