hostinger-api-sdk 0.0.10 → 0.0.11

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 (119) hide show
  1. package/README.md +2 -2
  2. package/api.ts +386 -148
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +319 -143
  7. package/dist/api.js +139 -41
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +319 -143
  15. package/dist/esm/api.js +136 -38
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/index.ts +1 -1
  27. package/package.json +1 -1
  28. package/docs/BillingCatalogApi.md +0 -54
  29. package/docs/BillingOrdersApi.md +0 -63
  30. package/docs/BillingPaymentMethodsApi.md +0 -162
  31. package/docs/BillingSubscriptionsApi.md +0 -113
  32. package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
  33. package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
  34. package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
  35. package/docs/BillingV1OrderOrderResource.md +0 -36
  36. package/docs/BillingV1OrderStoreRequest.md +0 -24
  37. package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
  38. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
  39. package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
  40. package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
  41. package/docs/CommonSchemaErrorResponseSchema.md +0 -22
  42. package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
  43. package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
  44. package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
  45. package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
  46. package/docs/CommonSuccessEmptyResource.md +0 -20
  47. package/docs/DNSSnapshotApi.md +0 -175
  48. package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
  49. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
  50. package/docs/DNSV1ZoneDestroyRequest.md +0 -20
  51. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
  52. package/docs/DNSV1ZoneNameRecordResource.md +0 -22
  53. package/docs/DNSV1ZoneRecordResource.md +0 -26
  54. package/docs/DNSV1ZoneResetRequest.md +0 -24
  55. package/docs/DNSV1ZoneUpdateRequest.md +0 -22
  56. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
  57. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
  58. package/docs/DNSZoneApi.md +0 -297
  59. package/docs/DomainsAvailabilityApi.md +0 -63
  60. package/docs/DomainsForwardingApi.md +0 -171
  61. package/docs/DomainsPortfolioApi.md +0 -439
  62. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
  63. package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
  64. package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
  65. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
  66. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
  67. package/docs/DomainsV1DomainDomainResource.md +0 -30
  68. package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
  69. package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
  70. package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
  71. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
  72. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
  73. package/docs/DomainsV1WHOISProfileResource.md +0 -34
  74. package/docs/DomainsV1WHOISStoreRequest.md +0 -28
  75. package/docs/DomainsWHOISApi.md +0 -279
  76. package/docs/VPSActionsApi.md +0 -121
  77. package/docs/VPSBackupsApi.md +0 -178
  78. package/docs/VPSDataCentersApi.md +0 -54
  79. package/docs/VPSFirewallApi.md +0 -577
  80. package/docs/VPSGetActionListV1200Response.md +0 -22
  81. package/docs/VPSGetBackupListV1200Response.md +0 -22
  82. package/docs/VPSGetFirewallListV1200Response.md +0 -22
  83. package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
  84. package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
  85. package/docs/VPSMalwareScannerApi.md +0 -172
  86. package/docs/VPSOSTemplatesApi.md +0 -108
  87. package/docs/VPSPTRRecordsApi.md +0 -115
  88. package/docs/VPSPostInstallScriptsApi.md +0 -284
  89. package/docs/VPSPublicKeysApi.md +0 -230
  90. package/docs/VPSRecoveryApi.md +0 -120
  91. package/docs/VPSSnapshotsApi.md +0 -223
  92. package/docs/VPSV1ActionActionResource.md +0 -28
  93. package/docs/VPSV1BackupBackupResource.md +0 -24
  94. package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
  95. package/docs/VPSV1FirewallFirewallResource.md +0 -30
  96. package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
  97. package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
  98. package/docs/VPSV1FirewallStoreRequest.md +0 -20
  99. package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
  100. package/docs/VPSV1MalwareMetricsResource.md +0 -30
  101. package/docs/VPSV1MetricsMetricsCollection.md +0 -30
  102. package/docs/VPSV1MetricsMetricsResource.md +0 -22
  103. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
  104. package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
  105. package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
  106. package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
  107. package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
  108. package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
  109. package/docs/VPSV1TemplateTemplateResource.md +0 -26
  110. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
  111. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
  112. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
  113. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
  114. package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
  115. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
  116. package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
  117. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
  118. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
  119. package/docs/VPSVirtualMachineApi.md +0 -796
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.37
6
+ * API Version: 0.0.68
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -20,6 +20,88 @@ import type { RequestArgs } from './base';
20
20
  // @ts-ignore
21
21
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
22
22
 
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface BillingCreateNewServiceOrderV1422Response
27
+ */
28
+ export interface BillingCreateNewServiceOrderV1422Response {
29
+ /**
30
+ * Validation error message
31
+ * @type {string}
32
+ * @memberof BillingCreateNewServiceOrderV1422Response
33
+ */
34
+ 'message': string;
35
+ /**
36
+ *
37
+ * @type {BillingCreateNewServiceOrderV1422ResponseErrors}
38
+ * @memberof BillingCreateNewServiceOrderV1422Response
39
+ */
40
+ 'errors': BillingCreateNewServiceOrderV1422ResponseErrors;
41
+ /**
42
+ * Request correlation ID
43
+ * @type {string}
44
+ * @memberof BillingCreateNewServiceOrderV1422Response
45
+ */
46
+ 'correlation_id': string;
47
+ }
48
+ /**
49
+ * Object of detailed errors for each field
50
+ * @export
51
+ * @interface BillingCreateNewServiceOrderV1422ResponseErrors
52
+ */
53
+ export interface BillingCreateNewServiceOrderV1422ResponseErrors {
54
+ /**
55
+ *
56
+ * @type {Array<any>}
57
+ * @memberof BillingCreateNewServiceOrderV1422ResponseErrors
58
+ */
59
+ 'field_1': Array<any>;
60
+ /**
61
+ *
62
+ * @type {Array<any>}
63
+ * @memberof BillingCreateNewServiceOrderV1422ResponseErrors
64
+ */
65
+ 'field_2': Array<any>;
66
+ }
67
+ /**
68
+ *
69
+ * @export
70
+ * @interface BillingGetCatalogItemListV1401Response
71
+ */
72
+ export interface BillingGetCatalogItemListV1401Response {
73
+ /**
74
+ * Message of the error
75
+ * @type {string}
76
+ * @memberof BillingGetCatalogItemListV1401Response
77
+ */
78
+ 'message': string;
79
+ /**
80
+ * Request correlation ID
81
+ * @type {string}
82
+ * @memberof BillingGetCatalogItemListV1401Response
83
+ */
84
+ 'correlation_id': string;
85
+ }
86
+ /**
87
+ *
88
+ * @export
89
+ * @interface BillingGetCatalogItemListV1500Response
90
+ */
91
+ export interface BillingGetCatalogItemListV1500Response {
92
+ /**
93
+ * Message of the error
94
+ * @type {string}
95
+ * @memberof BillingGetCatalogItemListV1500Response
96
+ */
97
+ 'message': string;
98
+ /**
99
+ * Request correlation ID
100
+ * @type {string}
101
+ * @memberof BillingGetCatalogItemListV1500Response
102
+ */
103
+ 'correlation_id': string;
104
+ }
23
105
  /**
24
106
  *
25
107
  * @export
@@ -304,6 +386,25 @@ export interface BillingV1OrderStoreRequestItemsInner {
304
386
  */
305
387
  'quantity': number;
306
388
  }
389
+ /**
390
+ *
391
+ * @export
392
+ * @interface BillingV1OrderVirtualMachineOrderResource
393
+ */
394
+ export interface BillingV1OrderVirtualMachineOrderResource {
395
+ /**
396
+ *
397
+ * @type {BillingV1OrderOrderResource}
398
+ * @memberof BillingV1OrderVirtualMachineOrderResource
399
+ */
400
+ 'order': BillingV1OrderOrderResource;
401
+ /**
402
+ *
403
+ * @type {VPSV1VirtualMachineVirtualMachineResource}
404
+ * @memberof BillingV1OrderVirtualMachineOrderResource
405
+ */
406
+ 'virtual_machine': VPSV1VirtualMachineVirtualMachineResource;
407
+ }
307
408
  /**
308
409
  *
309
410
  * @export
@@ -488,25 +589,6 @@ export const BillingV1SubscriptionSubscriptionResourceStatusEnum = {
488
589
 
489
590
  export type BillingV1SubscriptionSubscriptionResourceStatusEnum = typeof BillingV1SubscriptionSubscriptionResourceStatusEnum[keyof typeof BillingV1SubscriptionSubscriptionResourceStatusEnum];
490
591
 
491
- /**
492
- *
493
- * @export
494
- * @interface CommonSchemaErrorResponseSchema
495
- */
496
- export interface CommonSchemaErrorResponseSchema {
497
- /**
498
- *
499
- * @type {string}
500
- * @memberof CommonSchemaErrorResponseSchema
501
- */
502
- 'message': string;
503
- /**
504
- *
505
- * @type {string}
506
- * @memberof CommonSchemaErrorResponseSchema
507
- */
508
- 'correlation_id': string;
509
- }
510
592
  /**
511
593
  *
512
594
  * @export
@@ -532,69 +614,6 @@ export interface CommonSchemaPaginationMetaSchema {
532
614
  */
533
615
  'total': number;
534
616
  }
535
- /**
536
- *
537
- * @export
538
- * @interface CommonSchemaUnauthorizedResponseSchema
539
- */
540
- export interface CommonSchemaUnauthorizedResponseSchema {
541
- /**
542
- *
543
- * @type {string}
544
- * @memberof CommonSchemaUnauthorizedResponseSchema
545
- */
546
- 'message': string;
547
- /**
548
- *
549
- * @type {string}
550
- * @memberof CommonSchemaUnauthorizedResponseSchema
551
- */
552
- 'correlation_id': string;
553
- }
554
- /**
555
- *
556
- * @export
557
- * @interface CommonSchemaUnprocessableContentResponseSchema
558
- */
559
- export interface CommonSchemaUnprocessableContentResponseSchema {
560
- /**
561
- * Validation error message
562
- * @type {string}
563
- * @memberof CommonSchemaUnprocessableContentResponseSchema
564
- */
565
- 'message': string;
566
- /**
567
- *
568
- * @type {CommonSchemaUnprocessableContentResponseSchemaErrors}
569
- * @memberof CommonSchemaUnprocessableContentResponseSchema
570
- */
571
- 'errors': CommonSchemaUnprocessableContentResponseSchemaErrors;
572
- /**
573
- *
574
- * @type {string}
575
- * @memberof CommonSchemaUnprocessableContentResponseSchema
576
- */
577
- 'correlation_id': string;
578
- }
579
- /**
580
- *
581
- * @export
582
- * @interface CommonSchemaUnprocessableContentResponseSchemaErrors
583
- */
584
- export interface CommonSchemaUnprocessableContentResponseSchemaErrors {
585
- /**
586
- *
587
- * @type {Array<any>}
588
- * @memberof CommonSchemaUnprocessableContentResponseSchemaErrors
589
- */
590
- 'field_1': Array<any>;
591
- /**
592
- *
593
- * @type {Array<any>}
594
- * @memberof CommonSchemaUnprocessableContentResponseSchemaErrors
595
- */
596
- 'field_2': Array<any>;
597
- }
598
617
  /**
599
618
  *
600
619
  * @export
@@ -889,13 +908,13 @@ export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
889
908
  */
890
909
  export interface DomainsV1AvailabilityAvailabilityRequest {
891
910
  /**
892
- * Domain name without TLD
911
+ * Domain name (without TLD)
893
912
  * @type {string}
894
913
  * @memberof DomainsV1AvailabilityAvailabilityRequest
895
914
  */
896
915
  'domain': string;
897
916
  /**
898
- * TLDs to check (without trailing dot)
917
+ * TLDs list
899
918
  * @type {Array<string>}
900
919
  * @memberof DomainsV1AvailabilityAvailabilityRequest
901
920
  */
@@ -1253,7 +1272,7 @@ export interface DomainsV1PortfolioPurchaseRequest {
1253
1272
  */
1254
1273
  'item_id': string;
1255
1274
  /**
1256
- * Payment method ID
1275
+ * Payment method ID, default will be used if not provided
1257
1276
  * @type {number}
1258
1277
  * @memberof DomainsV1PortfolioPurchaseRequest
1259
1278
  */
@@ -1409,7 +1428,7 @@ export type DomainsV1WHOISProfileResourceEntityTypeEnum = typeof DomainsV1WHOISP
1409
1428
  */
1410
1429
  export interface DomainsV1WHOISStoreRequest {
1411
1430
  /**
1412
- * TLD of the domain (without trailing dot)
1431
+ * TLD of the domain (without leading dot)
1413
1432
  * @type {string}
1414
1433
  * @memberof DomainsV1WHOISStoreRequest
1415
1434
  */
@@ -1908,41 +1927,83 @@ export interface VPSV1MalwareMetricsResource {
1908
1927
  export interface VPSV1MetricsMetricsCollection {
1909
1928
  /**
1910
1929
  *
1911
- * @type {VPSV1MetricsMetricsResource}
1930
+ * @type {VPSV1MetricsMetricsCollectionCpuUsage}
1912
1931
  * @memberof VPSV1MetricsMetricsCollection
1913
1932
  */
1914
- 'cpu_usage': VPSV1MetricsMetricsResource | null;
1933
+ 'cpu_usage': VPSV1MetricsMetricsCollectionCpuUsage | null;
1915
1934
  /**
1916
1935
  *
1917
- * @type {VPSV1MetricsMetricsResource}
1936
+ * @type {VPSV1MetricsMetricsCollectionRamUsage}
1918
1937
  * @memberof VPSV1MetricsMetricsCollection
1919
1938
  */
1920
- 'ram_usage': VPSV1MetricsMetricsResource | null;
1939
+ 'ram_usage': VPSV1MetricsMetricsCollectionRamUsage | null;
1921
1940
  /**
1922
1941
  *
1923
- * @type {VPSV1MetricsMetricsResource}
1942
+ * @type {VPSV1MetricsMetricsCollectionDiskSpace}
1924
1943
  * @memberof VPSV1MetricsMetricsCollection
1925
1944
  */
1926
- 'disk_space': VPSV1MetricsMetricsResource | null;
1945
+ 'disk_space': VPSV1MetricsMetricsCollectionDiskSpace | null;
1927
1946
  /**
1928
1947
  *
1929
- * @type {VPSV1MetricsMetricsResource}
1948
+ * @type {VPSV1MetricsMetricsCollectionOutgoingTraffic}
1930
1949
  * @memberof VPSV1MetricsMetricsCollection
1931
1950
  */
1932
- 'outgoing_traffic': VPSV1MetricsMetricsResource | null;
1951
+ 'outgoing_traffic': VPSV1MetricsMetricsCollectionOutgoingTraffic | null;
1933
1952
  /**
1934
1953
  *
1935
- * @type {VPSV1MetricsMetricsResource}
1954
+ * @type {VPSV1MetricsMetricsCollectionIncomingTraffic}
1936
1955
  * @memberof VPSV1MetricsMetricsCollection
1937
1956
  */
1938
- 'incoming_traffic': VPSV1MetricsMetricsResource | null;
1957
+ 'incoming_traffic': VPSV1MetricsMetricsCollectionIncomingTraffic | null;
1939
1958
  /**
1940
1959
  *
1941
- * @type {VPSV1MetricsMetricsResource}
1960
+ * @type {VPSV1MetricsMetricsCollectionUptime}
1942
1961
  * @memberof VPSV1MetricsMetricsCollection
1943
1962
  */
1944
- 'uptime': VPSV1MetricsMetricsResource | null;
1963
+ 'uptime': VPSV1MetricsMetricsCollectionUptime | null;
1945
1964
  }
1965
+ /**
1966
+ * @type VPSV1MetricsMetricsCollectionCpuUsage
1967
+ * CPU usage in percentage, 0 - 100%
1968
+ * @export
1969
+ */
1970
+ export type VPSV1MetricsMetricsCollectionCpuUsage = VPSV1MetricsMetricsResource;
1971
+
1972
+ /**
1973
+ * @type VPSV1MetricsMetricsCollectionDiskSpace
1974
+ * Disk space usage in bytes
1975
+ * @export
1976
+ */
1977
+ export type VPSV1MetricsMetricsCollectionDiskSpace = VPSV1MetricsMetricsResource;
1978
+
1979
+ /**
1980
+ * @type VPSV1MetricsMetricsCollectionIncomingTraffic
1981
+ * Incoming traffic in bytes
1982
+ * @export
1983
+ */
1984
+ export type VPSV1MetricsMetricsCollectionIncomingTraffic = VPSV1MetricsMetricsResource;
1985
+
1986
+ /**
1987
+ * @type VPSV1MetricsMetricsCollectionOutgoingTraffic
1988
+ * Outgoing traffic in bytes
1989
+ * @export
1990
+ */
1991
+ export type VPSV1MetricsMetricsCollectionOutgoingTraffic = VPSV1MetricsMetricsResource;
1992
+
1993
+ /**
1994
+ * @type VPSV1MetricsMetricsCollectionRamUsage
1995
+ * RAM usage in bytes
1996
+ * @export
1997
+ */
1998
+ export type VPSV1MetricsMetricsCollectionRamUsage = VPSV1MetricsMetricsResource;
1999
+
2000
+ /**
2001
+ * @type VPSV1MetricsMetricsCollectionUptime
2002
+ * Uptime in milliseconds
2003
+ * @export
2004
+ */
2005
+ export type VPSV1MetricsMetricsCollectionUptime = VPSV1MetricsMetricsResource;
2006
+
1946
2007
  /**
1947
2008
  *
1948
2009
  * @export
@@ -2144,6 +2205,25 @@ export interface VPSV1VirtualMachineHostnameUpdateRequest {
2144
2205
  */
2145
2206
  'hostname': string;
2146
2207
  }
2208
+ /**
2209
+ *
2210
+ * @export
2211
+ * @interface VPSV1VirtualMachineMetricGetRequest
2212
+ */
2213
+ export interface VPSV1VirtualMachineMetricGetRequest {
2214
+ /**
2215
+ *
2216
+ * @type {string}
2217
+ * @memberof VPSV1VirtualMachineMetricGetRequest
2218
+ */
2219
+ 'date_from': string;
2220
+ /**
2221
+ *
2222
+ * @type {string}
2223
+ * @memberof VPSV1VirtualMachineMetricGetRequest
2224
+ */
2225
+ 'date_to': string;
2226
+ }
2147
2227
  /**
2148
2228
  *
2149
2229
  * @export
@@ -2176,6 +2256,37 @@ export interface VPSV1VirtualMachinePanelPasswordUpdateRequest {
2176
2256
  */
2177
2257
  'password': string;
2178
2258
  }
2259
+ /**
2260
+ *
2261
+ * @export
2262
+ * @interface VPSV1VirtualMachinePurchaseRequest
2263
+ */
2264
+ export interface VPSV1VirtualMachinePurchaseRequest {
2265
+ /**
2266
+ * Catalog price item ID
2267
+ * @type {string}
2268
+ * @memberof VPSV1VirtualMachinePurchaseRequest
2269
+ */
2270
+ 'item_id': string;
2271
+ /**
2272
+ * Payment method ID, default will be used if not provided
2273
+ * @type {number}
2274
+ * @memberof VPSV1VirtualMachinePurchaseRequest
2275
+ */
2276
+ 'payment_method_id': number;
2277
+ /**
2278
+ *
2279
+ * @type {VPSV1VirtualMachineSetupRequest}
2280
+ * @memberof VPSV1VirtualMachinePurchaseRequest
2281
+ */
2282
+ 'setup': VPSV1VirtualMachineSetupRequest;
2283
+ /**
2284
+ * Discount coupon codes
2285
+ * @type {Array<any>}
2286
+ * @memberof VPSV1VirtualMachinePurchaseRequest
2287
+ */
2288
+ 'coupons': Array<any>;
2289
+ }
2179
2290
  /**
2180
2291
  *
2181
2292
  * @export
@@ -2276,13 +2387,13 @@ export interface VPSV1VirtualMachineSetupRequest {
2276
2387
  */
2277
2388
  'enable_backups': boolean;
2278
2389
  /**
2279
- *
2390
+ * Name server 1
2280
2391
  * @type {string}
2281
2392
  * @memberof VPSV1VirtualMachineSetupRequest
2282
2393
  */
2283
2394
  'ns1': string;
2284
2395
  /**
2285
- *
2396
+ * Name server 2
2286
2397
  * @type {string}
2287
2398
  * @memberof VPSV1VirtualMachineSetupRequest
2288
2399
  */
@@ -2295,7 +2406,7 @@ export interface VPSV1VirtualMachineSetupRequest {
2295
2406
  'public_key': VPSV1VirtualMachineSetupRequestPublicKey;
2296
2407
  }
2297
2408
  /**
2298
- *
2409
+ * Use SSH key
2299
2410
  * @export
2300
2411
  * @interface VPSV1VirtualMachineSetupRequestPublicKey
2301
2412
  */
@@ -2307,7 +2418,7 @@ export interface VPSV1VirtualMachineSetupRequestPublicKey {
2307
2418
  */
2308
2419
  'name': string;
2309
2420
  /**
2310
- * SSH public key
2421
+ * Contents of the SSH key
2311
2422
  * @type {string}
2312
2423
  * @memberof VPSV1VirtualMachineSetupRequestPublicKey
2313
2424
  */
@@ -2398,23 +2509,23 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
2398
2509
  */
2399
2510
  'ns2': string | null;
2400
2511
  /**
2401
- * Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource)
2402
- * @type {Array<VPSV1IPAddressIPAddressResource>}
2512
+ *
2513
+ * @type {VPSV1VirtualMachineVirtualMachineResourceIpv4}
2403
2514
  * @memberof VPSV1VirtualMachineVirtualMachineResource
2404
2515
  */
2405
- 'ipv4': Array<VPSV1IPAddressIPAddressResource>;
2516
+ 'ipv4': VPSV1VirtualMachineVirtualMachineResourceIpv4 | null;
2406
2517
  /**
2407
- * Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource)
2408
- * @type {Array<VPSV1IPAddressIPAddressResource>}
2518
+ *
2519
+ * @type {VPSV1VirtualMachineVirtualMachineResourceIpv6}
2409
2520
  * @memberof VPSV1VirtualMachineVirtualMachineResource
2410
2521
  */
2411
- 'ipv6': Array<VPSV1IPAddressIPAddressResource>;
2522
+ 'ipv6': VPSV1VirtualMachineVirtualMachineResourceIpv6 | null;
2412
2523
  /**
2413
2524
  *
2414
- * @type {VPSV1TemplateTemplateResource}
2525
+ * @type {VPSV1VirtualMachineVirtualMachineResourceTemplate}
2415
2526
  * @memberof VPSV1VirtualMachineVirtualMachineResource
2416
2527
  */
2417
- 'template': VPSV1TemplateTemplateResource | null;
2528
+ 'template': VPSV1VirtualMachineVirtualMachineResourceTemplate | null;
2418
2529
  /**
2419
2530
  *
2420
2531
  * @type {string}
@@ -2450,6 +2561,27 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
2450
2561
 
2451
2562
  export type VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = typeof VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum];
2452
2563
 
2564
+ /**
2565
+ * @type VPSV1VirtualMachineVirtualMachineResourceIpv4
2566
+ * IPv4 address of virtual machine
2567
+ * @export
2568
+ */
2569
+ export type VPSV1VirtualMachineVirtualMachineResourceIpv4 = Array<VPSV1IPAddressIPAddressResource>;
2570
+
2571
+ /**
2572
+ * @type VPSV1VirtualMachineVirtualMachineResourceIpv6
2573
+ * IPv6 address of virtual machine, `null` if not assigned
2574
+ * @export
2575
+ */
2576
+ export type VPSV1VirtualMachineVirtualMachineResourceIpv6 = Array<VPSV1IPAddressIPAddressResource>;
2577
+
2578
+ /**
2579
+ * @type VPSV1VirtualMachineVirtualMachineResourceTemplate
2580
+ * OS template installed in virtual machine
2581
+ * @export
2582
+ */
2583
+ export type VPSV1VirtualMachineVirtualMachineResourceTemplate = VPSV1TemplateTemplateResource;
2584
+
2453
2585
 
2454
2586
  /**
2455
2587
  * BillingCatalogApi - axios parameter creator
@@ -2460,10 +2592,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration?: Conf
2460
2592
  /**
2461
2593
  * This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
2462
2594
  * @summary Get catalog item list
2595
+ * @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
2596
+ * @param {string} [name] Filter catalog items by name. Use &#x60;*&#x60; for wildcard search, e.g. &#x60;.COM*&#x60; to find .com domain
2463
2597
  * @param {*} [options] Override http request option.
2464
2598
  * @throws {RequiredError}
2465
2599
  */
2466
- getCatalogItemListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2600
+ getCatalogItemListV1: async (category?: GetCatalogItemListV1CategoryEnum, name?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2467
2601
  const localVarPath = `/api/billing/v1/catalog`;
2468
2602
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2469
2603
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2480,6 +2614,14 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration?: Conf
2480
2614
  // http bearer authentication required
2481
2615
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
2482
2616
 
2617
+ if (category !== undefined) {
2618
+ localVarQueryParameter['category'] = category;
2619
+ }
2620
+
2621
+ if (name !== undefined) {
2622
+ localVarQueryParameter['name'] = name;
2623
+ }
2624
+
2483
2625
 
2484
2626
 
2485
2627
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2504,11 +2646,13 @@ export const BillingCatalogApiFp = function(configuration?: Configuration) {
2504
2646
  /**
2505
2647
  * This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
2506
2648
  * @summary Get catalog item list
2649
+ * @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
2650
+ * @param {string} [name] Filter catalog items by name. Use &#x60;*&#x60; for wildcard search, e.g. &#x60;.COM*&#x60; to find .com domain
2507
2651
  * @param {*} [options] Override http request option.
2508
2652
  * @throws {RequiredError}
2509
2653
  */
2510
- async getCatalogItemListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1CatalogCatalogItemResource>>> {
2511
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItemListV1(options);
2654
+ async getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1CatalogCatalogItemResource>>> {
2655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItemListV1(category, name, options);
2512
2656
  const localVarOperationServerBasePath = operationServerMap['BillingCatalogApi.getCatalogItemListV1']?.[0]?.url;
2513
2657
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2514
2658
  },
@@ -2525,11 +2669,13 @@ export const BillingCatalogApiFactory = function (configuration?: Configuration,
2525
2669
  /**
2526
2670
  * This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
2527
2671
  * @summary Get catalog item list
2672
+ * @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
2673
+ * @param {string} [name] Filter catalog items by name. Use &#x60;*&#x60; for wildcard search, e.g. &#x60;.COM*&#x60; to find .com domain
2528
2674
  * @param {*} [options] Override http request option.
2529
2675
  * @throws {RequiredError}
2530
2676
  */
2531
- getCatalogItemListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1CatalogCatalogItemResource>> {
2532
- return localVarFp.getCatalogItemListV1(options).then((request) => request(axios, basePath));
2677
+ getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1CatalogCatalogItemResource>> {
2678
+ return localVarFp.getCatalogItemListV1(category, name, options).then((request) => request(axios, basePath));
2533
2679
  },
2534
2680
  };
2535
2681
  };
@@ -2544,15 +2690,25 @@ export class BillingCatalogApi extends BaseAPI {
2544
2690
  /**
2545
2691
  * This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
2546
2692
  * @summary Get catalog item list
2693
+ * @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
2694
+ * @param {string} [name] Filter catalog items by name. Use &#x60;*&#x60; for wildcard search, e.g. &#x60;.COM*&#x60; to find .com domain
2547
2695
  * @param {*} [options] Override http request option.
2548
2696
  * @throws {RequiredError}
2549
2697
  * @memberof BillingCatalogApi
2550
2698
  */
2551
- public getCatalogItemListV1(options?: RawAxiosRequestConfig) {
2552
- return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(options).then((request) => request(this.axios, this.basePath));
2699
+ public getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig) {
2700
+ return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(category, name, options).then((request) => request(this.axios, this.basePath));
2553
2701
  }
2554
2702
  }
2555
2703
 
2704
+ /**
2705
+ * @export
2706
+ */
2707
+ export const GetCatalogItemListV1CategoryEnum = {
2708
+ Domain: 'DOMAIN',
2709
+ Vps: 'VPS'
2710
+ } as const;
2711
+ export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1CategoryEnum[keyof typeof GetCatalogItemListV1CategoryEnum];
2556
2712
 
2557
2713
 
2558
2714
  /**
@@ -2562,10 +2718,11 @@ export class BillingCatalogApi extends BaseAPI {
2562
2718
  export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
2563
2719
  return {
2564
2720
  /**
2565
- * This endpoint creates a new service order. 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.
2721
+ * This endpoint creates 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.
2566
2722
  * @summary Create new service order
2567
2723
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2568
2724
  * @param {*} [options] Override http request option.
2725
+ * @deprecated
2569
2726
  * @throws {RequiredError}
2570
2727
  */
2571
2728
  createNewServiceOrderV1: async (billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -2612,10 +2769,11 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
2612
2769
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
2613
2770
  return {
2614
2771
  /**
2615
- * This endpoint creates a new service order. 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.
2772
+ * This endpoint creates 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.
2616
2773
  * @summary Create new service order
2617
2774
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2618
2775
  * @param {*} [options] Override http request option.
2776
+ * @deprecated
2619
2777
  * @throws {RequiredError}
2620
2778
  */
2621
2779
  async createNewServiceOrderV1(billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
@@ -2634,10 +2792,11 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2634
2792
  const localVarFp = BillingOrdersApiFp(configuration)
2635
2793
  return {
2636
2794
  /**
2637
- * This endpoint creates a new service order. 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.
2795
+ * This endpoint creates 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.
2638
2796
  * @summary Create new service order
2639
2797
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2640
2798
  * @param {*} [options] Override http request option.
2799
+ * @deprecated
2641
2800
  * @throws {RequiredError}
2642
2801
  */
2643
2802
  createNewServiceOrderV1(billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
@@ -2654,10 +2813,11 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
2654
2813
  */
2655
2814
  export class BillingOrdersApi extends BaseAPI {
2656
2815
  /**
2657
- * This endpoint creates a new service order. 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.
2816
+ * This endpoint creates 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.
2658
2817
  * @summary Create new service order
2659
2818
  * @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
2660
2819
  * @param {*} [options] Override http request option.
2820
+ * @deprecated
2661
2821
  * @throws {RequiredError}
2662
2822
  * @memberof BillingOrdersApi
2663
2823
  */
@@ -3812,7 +3972,7 @@ export class DNSZoneApi extends BaseAPI {
3812
3972
  export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
3813
3973
  return {
3814
3974
  /**
3815
- * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
3975
+ * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
3816
3976
  * @summary Check domain availability
3817
3977
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
3818
3978
  * @param {*} [options] Override http request option.
@@ -3862,7 +4022,7 @@ export const DomainsAvailabilityApiFp = function(configuration?: Configuration)
3862
4022
  const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
3863
4023
  return {
3864
4024
  /**
3865
- * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
4025
+ * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
3866
4026
  * @summary Check domain availability
3867
4027
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
3868
4028
  * @param {*} [options] Override http request option.
@@ -3884,7 +4044,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
3884
4044
  const localVarFp = DomainsAvailabilityApiFp(configuration)
3885
4045
  return {
3886
4046
  /**
3887
- * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
4047
+ * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
3888
4048
  * @summary Check domain availability
3889
4049
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
3890
4050
  * @param {*} [options] Override http request option.
@@ -3904,7 +4064,7 @@ export const DomainsAvailabilityApiFactory = function (configuration?: Configura
3904
4064
  */
3905
4065
  export class DomainsAvailabilityApi extends BaseAPI {
3906
4066
  /**
3907
- * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
4067
+ * This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
3908
4068
  * @summary Check domain availability
3909
4069
  * @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
3910
4070
  * @param {*} [options] Override http request option.
@@ -4406,7 +4566,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
4406
4566
  };
4407
4567
  },
4408
4568
  /**
4409
- * This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
4569
+ * This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
4410
4570
  * @summary Purchase new domain
4411
4571
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
4412
4572
  * @param {*} [options] Override http request option.
@@ -4571,7 +4731,7 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
4571
4731
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4572
4732
  },
4573
4733
  /**
4574
- * This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
4734
+ * This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
4575
4735
  * @summary Purchase new domain
4576
4736
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
4577
4737
  * @param {*} [options] Override http request option.
@@ -4665,7 +4825,7 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
4665
4825
  return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
4666
4826
  },
4667
4827
  /**
4668
- * This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
4828
+ * This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
4669
4829
  * @summary Purchase new domain
4670
4830
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
4671
4831
  * @param {*} [options] Override http request option.
@@ -4767,7 +4927,7 @@ export class DomainsPortfolioApi extends BaseAPI {
4767
4927
  }
4768
4928
 
4769
4929
  /**
4770
- * This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
4930
+ * This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
4771
4931
  * @summary Purchase new domain
4772
4932
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
4773
4933
  * @param {*} [options] Override http request option.
@@ -4881,7 +5041,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
4881
5041
  /**
4882
5042
  * This endpoint retrieves a list of WHOIS contact profiles.
4883
5043
  * @summary Get WHOIS profile list
4884
- * @param {string} [tld] Filter by TLD (without trailing dot)
5044
+ * @param {string} [tld] Filter by TLD (without leading dot)
4885
5045
  * @param {*} [options] Override http request option.
4886
5046
  * @throws {RequiredError}
4887
5047
  */
@@ -5030,7 +5190,7 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
5030
5190
  /**
5031
5191
  * This endpoint retrieves a list of WHOIS contact profiles.
5032
5192
  * @summary Get WHOIS profile list
5033
- * @param {string} [tld] Filter by TLD (without trailing dot)
5193
+ * @param {string} [tld] Filter by TLD (without leading dot)
5034
5194
  * @param {*} [options] Override http request option.
5035
5195
  * @throws {RequiredError}
5036
5196
  */
@@ -5096,7 +5256,7 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
5096
5256
  /**
5097
5257
  * This endpoint retrieves a list of WHOIS contact profiles.
5098
5258
  * @summary Get WHOIS profile list
5099
- * @param {string} [tld] Filter by TLD (without trailing dot)
5259
+ * @param {string} [tld] Filter by TLD (without leading dot)
5100
5260
  * @param {*} [options] Override http request option.
5101
5261
  * @throws {RequiredError}
5102
5262
  */
@@ -5160,7 +5320,7 @@ export class DomainsWHOISApi extends BaseAPI {
5160
5320
  /**
5161
5321
  * This endpoint retrieves a list of WHOIS contact profiles.
5162
5322
  * @summary Get WHOIS profile list
5163
- * @param {string} [tld] Filter by TLD (without trailing dot)
5323
+ * @param {string} [tld] Filter by TLD (without leading dot)
5164
5324
  * @param {*} [options] Override http request option.
5165
5325
  * @throws {RequiredError}
5166
5326
  * @memberof DomainsWHOISApi
@@ -8526,8 +8686,8 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
8526
8686
  * This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
8527
8687
  * @summary Get metrics
8528
8688
  * @param {number} virtualMachineId Virtual Machine ID
8529
- * @param {string} dateFrom the date-time notation as defined by RFC 3339, section 5.6
8530
- * @param {string} dateTo the date-time notation as defined by RFC 3339, section 5.6
8689
+ * @param {string} dateFrom
8690
+ * @param {string} dateTo
8531
8691
  * @param {*} [options] Override http request option.
8532
8692
  * @throws {RequiredError}
8533
8693
  */
@@ -8556,11 +8716,15 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
8556
8716
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
8557
8717
 
8558
8718
  if (dateFrom !== undefined) {
8559
- localVarQueryParameter['date_from'] = dateFrom;
8719
+ localVarQueryParameter['date_from'] = (dateFrom as any instanceof Date) ?
8720
+ (dateFrom as any).toISOString() :
8721
+ dateFrom;
8560
8722
  }
8561
8723
 
8562
8724
  if (dateTo !== undefined) {
8563
- localVarQueryParameter['date_to'] = dateTo;
8725
+ localVarQueryParameter['date_to'] = (dateTo as any instanceof Date) ?
8726
+ (dateTo as any).toISOString() :
8727
+ dateTo;
8564
8728
  }
8565
8729
 
8566
8730
 
@@ -8646,6 +8810,46 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
8646
8810
  options: localVarRequestOptions,
8647
8811
  };
8648
8812
  },
8813
+ /**
8814
+ * This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
8815
+ * @summary Purchase new virtual machine
8816
+ * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
8817
+ * @param {*} [options] Override http request option.
8818
+ * @throws {RequiredError}
8819
+ */
8820
+ purchaseNewVirtualMachineV1: async (vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8821
+ // verify required parameter 'vPSV1VirtualMachinePurchaseRequest' is not null or undefined
8822
+ assertParamExists('purchaseNewVirtualMachineV1', 'vPSV1VirtualMachinePurchaseRequest', vPSV1VirtualMachinePurchaseRequest)
8823
+ const localVarPath = `/api/vps/v1/virtual-machines`;
8824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8825
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8826
+ let baseOptions;
8827
+ if (configuration) {
8828
+ baseOptions = configuration.baseOptions;
8829
+ }
8830
+
8831
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8832
+ const localVarHeaderParameter = {} as any;
8833
+ const localVarQueryParameter = {} as any;
8834
+
8835
+ // authentication apiToken required
8836
+ // http bearer authentication required
8837
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8838
+
8839
+
8840
+
8841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8842
+
8843
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8845
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8846
+ localVarRequestOptions.data = serializeDataIfNeeded(vPSV1VirtualMachinePurchaseRequest, localVarRequestOptions, configuration)
8847
+
8848
+ return {
8849
+ url: toPathString(localVarUrlObj),
8850
+ options: localVarRequestOptions,
8851
+ };
8852
+ },
8649
8853
  /**
8650
8854
  * This endpoint will 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!**
8651
8855
  * @summary Recreate virtual machine
@@ -8943,7 +9147,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
8943
9147
  };
8944
9148
  },
8945
9149
  /**
8946
- * This endpoint will setup newly purchased virtual machine. Such virtual machines has `initial` state. New virtual machine can be purchased using [`/api/billing/v1/orders`](/#tag/billing-orders/POST/api/billing/v1/orders) endpoint.
9150
+ * This endpoint will setup newly purchased virtual machine with `initial` state.
8947
9151
  * @summary Setup new virtual machine
8948
9152
  * @param {number} virtualMachineId Virtual Machine ID
8949
9153
  * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
@@ -9089,8 +9293,8 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
9089
9293
  * This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
9090
9294
  * @summary Get metrics
9091
9295
  * @param {number} virtualMachineId Virtual Machine ID
9092
- * @param {string} dateFrom the date-time notation as defined by RFC 3339, section 5.6
9093
- * @param {string} dateTo the date-time notation as defined by RFC 3339, section 5.6
9296
+ * @param {string} dateFrom
9297
+ * @param {string} dateTo
9094
9298
  * @param {*} [options] Override http request option.
9095
9299
  * @throws {RequiredError}
9096
9300
  */
@@ -9122,6 +9326,18 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
9122
9326
  const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getVirtualMachineV1']?.[0]?.url;
9123
9327
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9124
9328
  },
9329
+ /**
9330
+ * This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
9331
+ * @summary Purchase new virtual machine
9332
+ * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
9333
+ * @param {*} [options] Override http request option.
9334
+ * @throws {RequiredError}
9335
+ */
9336
+ async purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
9337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options);
9338
+ const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.purchaseNewVirtualMachineV1']?.[0]?.url;
9339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9340
+ },
9125
9341
  /**
9126
9342
  * This endpoint will 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!**
9127
9343
  * @summary Recreate virtual machine
@@ -9212,7 +9428,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
9212
9428
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9213
9429
  },
9214
9430
  /**
9215
- * This endpoint will setup newly purchased virtual machine. Such virtual machines has `initial` state. New virtual machine can be purchased using [`/api/billing/v1/orders`](/#tag/billing-orders/POST/api/billing/v1/orders) endpoint.
9431
+ * This endpoint will setup newly purchased virtual machine with `initial` state.
9216
9432
  * @summary Setup new virtual machine
9217
9433
  * @param {number} virtualMachineId Virtual Machine ID
9218
9434
  * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
@@ -9273,8 +9489,8 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
9273
9489
  * This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
9274
9490
  * @summary Get metrics
9275
9491
  * @param {number} virtualMachineId Virtual Machine ID
9276
- * @param {string} dateFrom the date-time notation as defined by RFC 3339, section 5.6
9277
- * @param {string} dateTo the date-time notation as defined by RFC 3339, section 5.6
9492
+ * @param {string} dateFrom
9493
+ * @param {string} dateTo
9278
9494
  * @param {*} [options] Override http request option.
9279
9495
  * @throws {RequiredError}
9280
9496
  */
@@ -9300,6 +9516,16 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
9300
9516
  getVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1VirtualMachineVirtualMachineResource> {
9301
9517
  return localVarFp.getVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
9302
9518
  },
9519
+ /**
9520
+ * This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
9521
+ * @summary Purchase new virtual machine
9522
+ * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
9523
+ * @param {*} [options] Override http request option.
9524
+ * @throws {RequiredError}
9525
+ */
9526
+ purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
9527
+ return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
9528
+ },
9303
9529
  /**
9304
9530
  * This endpoint will 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!**
9305
9531
  * @summary Recreate virtual machine
@@ -9376,7 +9602,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
9376
9602
  return localVarFp.setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(axios, basePath));
9377
9603
  },
9378
9604
  /**
9379
- * This endpoint will setup newly purchased virtual machine. Such virtual machines has `initial` state. New virtual machine can be purchased using [`/api/billing/v1/orders`](/#tag/billing-orders/POST/api/billing/v1/orders) endpoint.
9605
+ * This endpoint will setup newly purchased virtual machine with `initial` state.
9380
9606
  * @summary Setup new virtual machine
9381
9607
  * @param {number} virtualMachineId Virtual Machine ID
9382
9608
  * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
@@ -9433,8 +9659,8 @@ export class VPSVirtualMachineApi extends BaseAPI {
9433
9659
  * This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
9434
9660
  * @summary Get metrics
9435
9661
  * @param {number} virtualMachineId Virtual Machine ID
9436
- * @param {string} dateFrom the date-time notation as defined by RFC 3339, section 5.6
9437
- * @param {string} dateTo the date-time notation as defined by RFC 3339, section 5.6
9662
+ * @param {string} dateFrom
9663
+ * @param {string} dateTo
9438
9664
  * @param {*} [options] Override http request option.
9439
9665
  * @throws {RequiredError}
9440
9666
  * @memberof VPSVirtualMachineApi
@@ -9466,6 +9692,18 @@ export class VPSVirtualMachineApi extends BaseAPI {
9466
9692
  return VPSVirtualMachineApiFp(this.configuration).getVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
9467
9693
  }
9468
9694
 
9695
+ /**
9696
+ * This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
9697
+ * @summary Purchase new virtual machine
9698
+ * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
9699
+ * @param {*} [options] Override http request option.
9700
+ * @throws {RequiredError}
9701
+ * @memberof VPSVirtualMachineApi
9702
+ */
9703
+ public purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig) {
9704
+ return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
9705
+ }
9706
+
9469
9707
  /**
9470
9708
  * This endpoint will 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!**
9471
9709
  * @summary Recreate virtual machine
@@ -9556,7 +9794,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
9556
9794
  }
9557
9795
 
9558
9796
  /**
9559
- * This endpoint will setup newly purchased virtual machine. Such virtual machines has `initial` state. New virtual machine can be purchased using [`/api/billing/v1/orders`](/#tag/billing-orders/POST/api/billing/v1/orders) endpoint.
9797
+ * This endpoint will setup newly purchased virtual machine with `initial` state.
9560
9798
  * @summary Setup new virtual machine
9561
9799
  * @param {number} virtualMachineId Virtual Machine ID
9562
9800
  * @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest