@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21

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 (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +175 -2
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +94 -3
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1309 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import type * as Redacted from "effect/Redacted";
6
+ import { ScalewayServiceErrors } from "../errors.ts";
7
+ import { paginateByTotalCount } from "../pagination.ts";
8
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
9
+ import * as Retry from "../retry.ts";
10
+ import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
13
+
14
+ export type { ScalewayOpError, ScalewayOpContext };
15
+
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "scaleway-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Scaleway",
24
+ service: "WebhostingHostingV1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export type AddCustomDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
30
+ export interface AddCustomDomainRequest {
31
+ /** The region you want to target */
32
+ region?: AddCustomDomainRequestRegion | (string & {}) | undefined;
33
+ /** Hosting ID to which the custom domain is attached to. */
34
+ hosting_id: string;
35
+ /** The custom domain name to attach to the hosting. */
36
+ domain_name?: string | undefined;
37
+ }
38
+ export type HostingStatus =
39
+ | "unknown_status"
40
+ | "delivering"
41
+ | "ready"
42
+ | "deleting"
43
+ | "error"
44
+ | "locked"
45
+ | "migrating"
46
+ | "updating"
47
+ | "payment_pending"
48
+ | "payment_failed";
49
+ export type DnsRecordsStatus = "unknown_status" | "valid" | "invalid";
50
+ export type DomainStatus = "unknown_status" | "valid" | "invalid" | "validating" | "error";
51
+ export interface AutoConfigDomainDns {
52
+ /** Whether or not to synchronize domain nameservers. */
53
+ nameservers?: boolean | undefined;
54
+ /** Whether or not to synchronize web records. */
55
+ web_records?: boolean | undefined;
56
+ /** Whether or not to synchronize mail records. */
57
+ mail_records?: boolean | undefined;
58
+ /** Whether or not to synchronize all types of records. Takes priority over the other fields. */
59
+ all_records?: boolean | undefined;
60
+ /** No automatic domain configuration. Users must configure their domain for the Web Hosting to work. */
61
+ none?: boolean | undefined;
62
+ }
63
+ export interface HostingDomainCustomDomain {
64
+ /** Custom domain linked to the hosting plan. */
65
+ domain?: string | undefined;
66
+ /** Status of the custom domain verification. */
67
+ domain_status?: DomainStatus | undefined;
68
+ /** Status of the DNS configuration for the custom domain. */
69
+ dns_status?: DnsRecordsStatus | undefined;
70
+ /** Indicates whether to auto-configure DNS for this domain. */
71
+ auto_config_domain_dns?: AutoConfigDomainDns | undefined;
72
+ }
73
+ export interface HostingDomain {
74
+ /** Optional free subdomain linked to the Web Hosting plan. */
75
+ subdomain?: string | undefined;
76
+ /** Optional custom domain linked to the Web Hosting plan. */
77
+ custom_domain?: HostingDomainCustomDomain | undefined;
78
+ }
79
+ export interface HostingSummary {
80
+ /** ID of the Web Hosting plan. */
81
+ id?: string | undefined;
82
+ /** SRN of the Web Hosting plan. */
83
+ srn?: string | undefined;
84
+ /** ID of the Scaleway Project the Web Hosting plan belongs to. */
85
+ project_id?: string | undefined;
86
+ /** Date on which the Web Hosting plan was created. (RFC 3339 format) */
87
+ created_at?: string | null | undefined;
88
+ /** Date on which the Web Hosting plan was last updated. (RFC 3339 format) */
89
+ updated_at?: string | null | undefined;
90
+ /** Status of the Web Hosting plan. */
91
+ status?: HostingStatus | undefined;
92
+ /** Main domain associated with the Web Hosting plan (deprecated, use domain_info). */
93
+ domain?: string | undefined;
94
+ /** Whether the hosting is protected or not. */
95
+ protected?: boolean | undefined;
96
+ /** DNS status of the Web Hosting plan. */
97
+ dns_status?: DnsRecordsStatus | undefined;
98
+ /** Name of the active offer for the Web Hosting plan. */
99
+ offer_name?: string | undefined;
100
+ /** Main domain status of the Web Hosting plan. */
101
+ domain_status?: DomainStatus | undefined;
102
+ /** Region where the Web Hosting plan is hosted. */
103
+ region?: string | undefined;
104
+ /** Domain configuration block (subdomain, optional custom domain, and DNS settings). */
105
+ domain_info?: HostingDomain | undefined;
106
+ }
107
+ export type CreateHostingRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
108
+ /** List of tags for the Web Hosting plan. */
109
+ export type CreateHostingRequestTagsList = Array<string>;
110
+ export interface OfferOptionRequest {
111
+ /** Offer option ID. */
112
+ id?: string | undefined;
113
+ /** The option requested quantity to set for the Web Hosting plan. */
114
+ quantity?: number | undefined;
115
+ }
116
+ /** List of the Web Hosting plan options IDs with their quantities. */
117
+ export type CreateHostingRequestOfferOptionsList = Array<OfferOptionRequest>;
118
+ export type ScalewayStdLanguageCode = "unknown_language_code" | "en_US" | "fr_FR" | "de_DE";
119
+ export interface CreateHostingRequestDomainConfiguration {
120
+ update_nameservers?: boolean | undefined;
121
+ update_web_record?: boolean | undefined;
122
+ update_mail_record?: boolean | undefined;
123
+ update_all_records?: boolean | undefined;
124
+ }
125
+ export interface CreateHostingRequest {
126
+ /** The region you want to target */
127
+ region?: CreateHostingRequestRegion | (string & {}) | undefined;
128
+ /** ID of the selected offer for the Web Hosting plan. */
129
+ offer_id?: string | undefined;
130
+ /** ID of the Scaleway Project in which to create the Web Hosting plan. */
131
+ project_id?: string | undefined;
132
+ /** Contact email for the Web Hosting client. */
133
+ email?: string | undefined;
134
+ /** List of tags for the Web Hosting plan. */
135
+ tags?: CreateHostingRequestTagsList | undefined;
136
+ /** Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand. */
137
+ domain?: string | undefined;
138
+ /** The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself. */
139
+ subdomain?: string | null | undefined;
140
+ /** List of the Web Hosting plan options IDs with their quantities. */
141
+ offer_options?: CreateHostingRequestOfferOptionsList | undefined;
142
+ /** Default language for the control panel interface. */
143
+ language?: ScalewayStdLanguageCode | (string & {}) | undefined;
144
+ /** Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_config_domain_dns instead). */
145
+ domain_configuration?: CreateHostingRequestDomainConfiguration | undefined;
146
+ /** Indicates whether to skip a welcome email to the contact email containing hosting info. */
147
+ skip_welcome_email?: boolean | null | undefined;
148
+ /** Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_update_* fields instead). */
149
+ auto_config_domain_dns?: AutoConfigDomainDns | undefined;
150
+ /** Offer commitment ID to which the hosting will be engaged. */
151
+ offer_commitment_id?: string | null | undefined;
152
+ }
153
+ export type OfferOptionName =
154
+ | "unknown_name"
155
+ | "domain_count"
156
+ | "email_count"
157
+ | "storage_gb"
158
+ | "vcpu_count"
159
+ | "ram_gb"
160
+ | "backup"
161
+ | "dedicated_ip"
162
+ | "email_storage_gb"
163
+ | "database_count"
164
+ | "support"
165
+ | "additional_email";
166
+ export type OfferOptionWarning = "unknown_warning" | "quota_exceeded_warning" | "usage_low_warning";
167
+ export interface GoogleTypeMoney {
168
+ currency_code?: string | undefined;
169
+ units?: number | undefined;
170
+ nanos?: number | undefined;
171
+ }
172
+ export interface OfferOption {
173
+ /** Option ID. */
174
+ id?: string | undefined;
175
+ /** Name of the option. */
176
+ name?: OfferOptionName | undefined;
177
+ /** Unique identifier used for billing. */
178
+ billing_operation_path?: string | undefined;
179
+ /** Minimum value for the option in the offer. */
180
+ min_value?: number | undefined;
181
+ /** If a hosting_id was specified in the call, defines the current value of the option in the hosting. */
182
+ current_value?: number | undefined;
183
+ /** Maximum value for the option in the offer. */
184
+ max_value?: number | undefined;
185
+ /** Defines a warning if the maximum value for the option has been reached. */
186
+ quota_warning?: OfferOptionWarning | undefined;
187
+ /** Price of the option for 1 value. */
188
+ price?: GoogleTypeMoney | undefined;
189
+ }
190
+ /** Options available for the offer. */
191
+ export type OfferOptionsList = Array<OfferOption>;
192
+ /** List of available languages for the control panel. */
193
+ export type ControlPanelAvailableLanguagesList = Array<ScalewayStdLanguageCode>;
194
+ export interface ControlPanel {
195
+ /** Control panel name. */
196
+ name?: string | undefined;
197
+ /** Define if the control panel type is available to order. */
198
+ available?: boolean | undefined;
199
+ /** URL of the control panel's logo. */
200
+ logo_url?: string | undefined;
201
+ /** List of available languages for the control panel. */
202
+ available_languages?: ControlPanelAvailableLanguagesList | undefined;
203
+ }
204
+ /** Lists available control panels for the specified offer. */
205
+ export type OfferControlPanelsList = Array<ControlPanel>;
206
+ export type CommitmentType = "unknown_commitment_type" | "first_commitment" | "next_commitment";
207
+ export type BillingMode = "unknown_billing_mode" | "sample" | "purchase_order";
208
+ export interface OfferCommitment {
209
+ /** Offer commitment ID. */
210
+ id?: string | undefined;
211
+ /** Offer commitment type. */
212
+ type?: CommitmentType | undefined;
213
+ /** True if the commitment is the default one for that offer. */
214
+ is_default?: boolean | undefined;
215
+ /** Offer commitment name. */
216
+ billing_mode?: BillingMode | undefined;
217
+ /** Unique identifier used for billing. */
218
+ billing_operation_path?: string | undefined;
219
+ /** Price of the offer commitment. */
220
+ price?: GoogleTypeMoney | undefined;
221
+ /** Duration of the offer commitment in months. */
222
+ duration_in_month?: number | undefined;
223
+ /** Next offer commitment. */
224
+ next?: OfferCommitment | undefined;
225
+ }
226
+ /** Lists available offer commitments for the specified offer. */
227
+ export type OfferCommitmentsList = Array<OfferCommitment>;
228
+ export interface Offer {
229
+ /** Offer ID. */
230
+ id?: string | undefined;
231
+ /** Offer name. */
232
+ name?: string | undefined;
233
+ /** Unique identifier used for billing. */
234
+ billing_operation_path?: string | undefined;
235
+ /** Options available for the offer. */
236
+ options?: OfferOptionsList | undefined;
237
+ /** Price of the offer. */
238
+ price?: GoogleTypeMoney | undefined;
239
+ /** If a hosting_id was specified in the call, defines whether the offer is available for a specified hosting plan to migrate (update) to. */
240
+ available?: boolean | undefined;
241
+ /** Name of the control panel. */
242
+ control_panel_name?: string | undefined;
243
+ /** Indicates if the offer has reached its end of life. */
244
+ end_of_life?: boolean | undefined;
245
+ /** Defines a warning if the maximum value for an option in the offer is exceeded. */
246
+ quota_warning?: OfferOptionWarning | undefined;
247
+ /** Lists available control panels for the specified offer. */
248
+ control_panels?: OfferControlPanelsList | undefined;
249
+ /** Lists available offer commitments for the specified offer. */
250
+ commitments?: OfferCommitmentsList | undefined;
251
+ /** Region where the offer is hosted. */
252
+ region?: string | undefined;
253
+ }
254
+ export type PlatformPlatformGroup = "unknown_group" | "default" | "premium";
255
+ export interface PlatformControlPanelUrls {
256
+ /** URL to connect to the hosting control panel dashboard. */
257
+ dashboard?: string | undefined;
258
+ /** URL to connect to the hosting Webmail interface. */
259
+ webmail?: string | undefined;
260
+ }
261
+ export interface PlatformControlPanel {
262
+ /** Name of the control panel. */
263
+ name?: string | undefined;
264
+ /** URL to connect to control panel dashboard and to Webmail interface. */
265
+ urls?: PlatformControlPanelUrls | undefined;
266
+ }
267
+ export interface Platform {
268
+ /** Hostname of the host platform. */
269
+ hostname?: string | undefined;
270
+ /** Number of the host platform. */
271
+ number?: number | undefined;
272
+ /** Group name of the hosting's host platform. */
273
+ group_name?: PlatformPlatformGroup | undefined;
274
+ /** IPv4 address of the hosting's host platform. (IPv4 address) */
275
+ ipv4?: string | undefined;
276
+ /** IPv6 address of the hosting's host platform. (IPv6 address) */
277
+ ipv6?: string | undefined;
278
+ /** Details of the platform control panel. */
279
+ control_panel?: PlatformControlPanel | undefined;
280
+ }
281
+ /** List of tags associated with the Web Hosting plan. */
282
+ export type HostingTagsList = Array<string>;
283
+ export interface HostingUser {
284
+ /** Main Web Hosting control panel username. */
285
+ username?: string | undefined;
286
+ /** One-time-password used for the first login to the control panel, cleared after first use (deprecated, use password_b64 instead). */
287
+ one_time_password?: string | Redacted.Redacted<string> | null | undefined;
288
+ /** Contact email used for the hosting. */
289
+ contact_email?: string | undefined;
290
+ /** One-time-password used for the first login to the control panel, cleared after first use, encoded in base64. */
291
+ one_time_password_b64?: string | Redacted.Redacted<string> | null | undefined;
292
+ }
293
+ export interface HostingCommitment {
294
+ /** Offer commitment for the specified hosting. */
295
+ offer_commitment?: OfferCommitment | undefined;
296
+ /** Date and time the commitment started. (RFC 3339 format) */
297
+ start_at?: string | null | undefined;
298
+ /** Date and time the commitment ends. (RFC 3339 format) */
299
+ end_at?: string | null | undefined;
300
+ /** Determines what happens at the end of the commitment period:. The hosting may be deleted, automatically renewed, or switched to its configured post-commitment offer, which may have a different price and billing period. */
301
+ delete_hosting_at_end?: boolean | undefined;
302
+ }
303
+ export type HostingProvider = "unknown_provider" | "elements" | "dedibox";
304
+ export interface Hosting {
305
+ /** ID of the Web Hosting plan. */
306
+ id?: string | undefined;
307
+ /** SRN of the Web Hosting plan. */
308
+ srn?: string | undefined;
309
+ /** ID of the Scaleway Project the Web Hosting plan belongs to. */
310
+ project_id?: string | undefined;
311
+ /** Date on which the Web Hosting plan was last updated. (RFC 3339 format) */
312
+ updated_at?: string | null | undefined;
313
+ /** Date on which the Web Hosting plan was created. (RFC 3339 format) */
314
+ created_at?: string | null | undefined;
315
+ /** Status of the Web Hosting plan. */
316
+ status?: HostingStatus | undefined;
317
+ /** Main domain associated with the Web Hosting plan (deprecated, use domain_info). */
318
+ domain?: string | undefined;
319
+ /** Details of the Web Hosting plan offer and options. */
320
+ offer?: Offer | undefined;
321
+ /** Details of the hosting platform. */
322
+ platform?: Platform | undefined;
323
+ /** List of tags associated with the Web Hosting plan. */
324
+ tags?: HostingTagsList | undefined;
325
+ /** DNS status of the Web Hosting plan (deprecated, use domain_info). */
326
+ dns_status?: DnsRecordsStatus | undefined;
327
+ /** Current IPv4 address of the hosting. (IPv4 address) */
328
+ ipv4?: string | undefined;
329
+ /** Whether the hosting is protected or not. */
330
+ protected?: boolean | undefined;
331
+ /** Details of the hosting user. */
332
+ user?: HostingUser | undefined;
333
+ /** Main domain status of the Web Hosting plan (deprecated, use domain_info). */
334
+ domain_status?: DomainStatus | undefined;
335
+ /** Region where the Web Hosting plan is hosted. */
336
+ region?: string | undefined;
337
+ /** Domain configuration block (subdomain, optional custom domain, and DNS settings). */
338
+ domain_info?: HostingDomain | undefined;
339
+ /** Commitment details to which the hosting is engaged. */
340
+ commitment?: HostingCommitment | undefined;
341
+ /** Provider where the Web Hosting plan is managed (elements, dedibox). */
342
+ provider?: HostingProvider | undefined;
343
+ }
344
+ export type CreateSessionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
345
+ export interface CreateSessionRequest {
346
+ /** The region you want to target */
347
+ region?: CreateSessionRequestRegion | (string & {}) | undefined;
348
+ /** Hosting ID. */
349
+ hosting_id: string;
350
+ }
351
+ export interface Session {
352
+ /** Logged user's session URL. */
353
+ url?: string | undefined;
354
+ }
355
+ export type DeleteHostingRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
356
+ export interface DeleteHostingRequest {
357
+ /** The region you want to target */
358
+ region?: DeleteHostingRequestRegion | (string & {}) | undefined;
359
+ /** Hosting ID. */
360
+ hosting_id: string;
361
+ }
362
+ export type DeleteHostingDomainsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
363
+ /** List of domains to delete from the Web Hosting plan. */
364
+ export type DeleteHostingDomainsRequestDomainsList = Array<string>;
365
+ export interface DeleteHostingDomainsRequest {
366
+ /** The region you want to target */
367
+ region?: DeleteHostingDomainsRequestRegion | (string & {}) | undefined;
368
+ /** Hosting ID of the Web Hosting plan from which to delete domains. */
369
+ hosting_id: string;
370
+ /** List of domains to delete from the Web Hosting plan. */
371
+ domains?: DeleteHostingDomainsRequestDomainsList | undefined;
372
+ }
373
+ export type GetHostingRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
374
+ export interface GetHostingRequest {
375
+ /** The region you want to target */
376
+ region?: GetHostingRequestRegion | (string & {}) | undefined;
377
+ /** Hosting ID. */
378
+ hosting_id: string;
379
+ }
380
+ export type GetResourceSummaryRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
381
+ export interface GetResourceSummaryRequest {
382
+ /** The region you want to target */
383
+ region?: GetResourceSummaryRequestRegion | (string & {}) | undefined;
384
+ /** Hosting ID. */
385
+ hosting_id: string;
386
+ }
387
+ export interface ResourceSummary {
388
+ /** Total number of active databases in the Web Hosting plan. */
389
+ databases_count?: number | undefined;
390
+ /** Total number of active email accounts in the Web Hosting plan. */
391
+ mail_accounts_count?: number | undefined;
392
+ /** Total number of active FTP accounts in the Web Hosting plan. */
393
+ ftp_accounts_count?: number | undefined;
394
+ /** Total number of active domains in the Web Hosting plan. */
395
+ websites_count?: number | undefined;
396
+ }
397
+ export type ListHostingsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
398
+ export type ListHostingsRequestOrderBy = "created_at_asc" | "created_at_desc";
399
+ export type ListHostingsRequestTagsList = Array<string>;
400
+ export type ListHostingsRequestStatusesList = Array<HostingStatus | (string & {})>;
401
+ export type ListHostingsRequestControlPanelsList = Array<string>;
402
+ export interface ListHostingsRequest {
403
+ /** The region you want to target */
404
+ region?: ListHostingsRequestRegion | (string & {}) | undefined;
405
+ /** Page number to return, from the paginated results (must be a positive integer). */
406
+ page?: number | undefined;
407
+ /** Number of Web Hosting plans to return (must be a positive integer lower or equal to 100). */
408
+ page_size?: number | undefined;
409
+ /** Sort order for Web Hosting plans in the response. */
410
+ order_by?: ListHostingsRequestOrderBy | (string & {}) | undefined;
411
+ /** Tags to filter for, only Web Hosting plans with matching tags will be returned. */
412
+ tags?: ListHostingsRequestTagsList | undefined;
413
+ /** Statuses to filter for, only Web Hosting plans with matching statuses will be returned. */
414
+ statuses?: ListHostingsRequestStatusesList | undefined;
415
+ /** Domain to filter for, only Web Hosting plans associated with this domain will be returned. */
416
+ domain?: string | undefined;
417
+ /** Project ID to filter for, only Web Hosting plans from this Project will be returned. */
418
+ project_id?: string | undefined;
419
+ /** Organization ID to filter for, only Web Hosting plans from this Organization will be returned. */
420
+ organization_id?: string | undefined;
421
+ /** Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned. */
422
+ control_panels?: ListHostingsRequestControlPanelsList | undefined;
423
+ /** Optional free subdomain linked to the Web Hosting plan. */
424
+ subdomain?: string | undefined;
425
+ }
426
+ /** List of Web Hosting plans. */
427
+ export type ListHostingsResponseHostingsList = Array<HostingSummary>;
428
+ export interface ListHostingsResponse {
429
+ /** Number of Web Hosting plans returned. */
430
+ total_count?: number | undefined;
431
+ /** List of Web Hosting plans. */
432
+ hostings: ListHostingsResponseHostingsList;
433
+ }
434
+ export type MigrateControlPanelRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
435
+ export interface MigrateControlPanelRequest {
436
+ /** The region you want to target */
437
+ region?: MigrateControlPanelRequestRegion | (string & {}) | undefined;
438
+ /** Hosting ID to migrate to a new control panel. */
439
+ hosting_id: string;
440
+ /** The name of the new control panel. Using the same name as the current. Control panel will migrate the hosting to a new server. */
441
+ control_panel_name?: string | undefined;
442
+ /** ID of the new offer for the Web Hosting plan after control panel. Migration. */
443
+ offer_id?: string | undefined;
444
+ }
445
+ export type RemoveCustomDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
446
+ export interface RemoveCustomDomainRequest {
447
+ /** The region you want to target */
448
+ region?: RemoveCustomDomainRequestRegion | (string & {}) | undefined;
449
+ /** Hosting ID to which the custom domain is detached from. */
450
+ hosting_id: string;
451
+ /** The custom domain name to detach from the hosting. */
452
+ domain_name?: string | undefined;
453
+ }
454
+ export type ResetHostingRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
455
+ export interface ResetHostingRequest {
456
+ /** The region you want to target */
457
+ region?: ResetHostingRequestRegion | (string & {}) | undefined;
458
+ /** Hosting ID of the Web Hosting plan to reset. */
459
+ hosting_id: string;
460
+ }
461
+ export type ResetHostingPasswordRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
462
+ export interface ResetHostingPasswordRequest {
463
+ /** The region you want to target */
464
+ region?: ResetHostingPasswordRequestRegion | (string & {}) | undefined;
465
+ /** UUID of the hosting. */
466
+ hosting_id: string;
467
+ }
468
+ export interface ResetHostingPasswordResponse {
469
+ /** New temporary password (deprecated, use password_b64 instead). */
470
+ one_time_password?: string | Redacted.Redacted<string> | undefined;
471
+ /** New temporary password, encoded in base64. */
472
+ one_time_password_b64?: string | Redacted.Redacted<string> | undefined;
473
+ }
474
+ export type UpdateHostingRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
475
+ /** New tags for the Web Hosting plan. */
476
+ export type UpdateHostingRequestTagsList = Array<unknown>;
477
+ /** List of the Web Hosting plan options IDs with their quantities. */
478
+ export type UpdateHostingRequestOfferOptionsList = Array<OfferOptionRequest>;
479
+ export interface UpdateHostingRequest {
480
+ /** The region you want to target */
481
+ region?: UpdateHostingRequestRegion | (string & {}) | undefined;
482
+ /** Hosting ID. */
483
+ hosting_id: string;
484
+ /** New contact email for the Web Hosting plan. */
485
+ email?: string | null | undefined;
486
+ /** New tags for the Web Hosting plan. */
487
+ tags?: UpdateHostingRequestTagsList | null | undefined;
488
+ /** List of the Web Hosting plan options IDs with their quantities. */
489
+ offer_options?: UpdateHostingRequestOfferOptionsList | undefined;
490
+ /** ID of the new offer for the Web Hosting plan. */
491
+ offer_id?: string | null | undefined;
492
+ /** Whether the hosting is protected or not. */
493
+ protected?: boolean | null | undefined;
494
+ /** Whether the hosting is deleted at the end of the commitment period. */
495
+ delete_hosting_after_commitment?: boolean | null | undefined;
496
+ }
497
+ export type UpdateHostingFreeDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
498
+ export interface UpdateHostingFreeDomainRequest {
499
+ /** The region you want to target */
500
+ region?: UpdateHostingFreeDomainRequestRegion | (string & {}) | undefined;
501
+ /** Hosting ID of the Web Hosting plan to update. */
502
+ hosting_id: string;
503
+ /** New free domain to associate with the Web Hosting plan. */
504
+ free_domain?: string | undefined;
505
+ }
506
+ export type AddCustomDomainError = ScalewayOpError;
507
+ /** Attach a custom domain to a webhosting as an alias to the main domain */
508
+ export const addCustomDomain: API.OperationMethod<
509
+ AddCustomDomainRequest,
510
+ HostingSummary,
511
+ AddCustomDomainError,
512
+ ScalewayOpContext
513
+ > = /*@__PURE__*/ API.make(() => ({
514
+ input: __S(0, __c0, 0) as any as S.Schema<AddCustomDomainRequest>,
515
+ output: __S(32, __c2, 0) as any as S.Schema<HostingSummary>,
516
+ errors: [],
517
+ serviceErrors: ScalewayServiceErrors,
518
+ protocol: ScalewayProtocol,
519
+ retry: Retry.Retry,
520
+ telemetry: TELEMETRY,
521
+ span: "AddCustomDomain",
522
+ }));
523
+
524
+ export type CreateHostingError = ScalewayOpError;
525
+ /** Order a Web Hosting plan Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter. */
526
+ export const createHosting: API.OperationMethod<
527
+ CreateHostingRequest,
528
+ Hosting,
529
+ CreateHostingError,
530
+ ScalewayOpContext
531
+ > = /*@__PURE__*/ API.make(() => ({
532
+ input: __S(49, __c3, 1) as any as S.Schema<CreateHostingRequest>,
533
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
534
+ errors: [],
535
+ serviceErrors: ScalewayServiceErrors,
536
+ protocol: ScalewayProtocol,
537
+ retry: Retry.Retry,
538
+ telemetry: TELEMETRY,
539
+ span: "CreateHosting",
540
+ }));
541
+
542
+ export type CreateSessionError = ScalewayOpError;
543
+ /** Create a user session */
544
+ export const createSession: API.OperationMethod<
545
+ CreateSessionRequest,
546
+ Session,
547
+ CreateSessionError,
548
+ ScalewayOpContext
549
+ > = /*@__PURE__*/ API.make(() => ({
550
+ input: __S(176, __c11, 0) as any as S.Schema<CreateSessionRequest>,
551
+ output: __S(177, __c11, 1) as any as S.Schema<Session>,
552
+ errors: [],
553
+ serviceErrors: ScalewayServiceErrors,
554
+ protocol: ScalewayProtocol,
555
+ retry: Retry.Retry,
556
+ telemetry: TELEMETRY,
557
+ span: "CreateSession",
558
+ }));
559
+
560
+ export type DeleteHostingError = ScalewayOpError;
561
+ /** Delete a Web Hosting plan Delete a Web Hosting plan, specified by its `hosting_id`. Note that deletion is not immediate: it will take place at the end of the calendar month, after which time your Web Hosting plan and all its data (files and emails) will be irreversibly lost. */
562
+ export const deleteHosting: API.OperationMethod<
563
+ DeleteHostingRequest,
564
+ Hosting,
565
+ DeleteHostingError,
566
+ ScalewayOpContext
567
+ > = /*@__PURE__*/ API.make(() => ({
568
+ input: __S(192, __c12, 0) as any as S.Schema<DeleteHostingRequest>,
569
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
570
+ errors: [],
571
+ serviceErrors: ScalewayServiceErrors,
572
+ protocol: ScalewayProtocol,
573
+ retry: Retry.Retry,
574
+ telemetry: TELEMETRY,
575
+ span: "DeleteHosting",
576
+ }));
577
+
578
+ export type DeleteHostingDomainsError = ScalewayOpError;
579
+ /** Delete domains from a Web Hosting plan Remove one or more domains from a Web Hosting plan, specified by its `hosting_id`. This permanently deletes the domains and all services tied to them, including mailboxes, FTP accounts and DNS zones. */
580
+ export const deleteHostingDomains: API.OperationMethod<
581
+ DeleteHostingDomainsRequest,
582
+ Hosting,
583
+ DeleteHostingDomainsError,
584
+ ScalewayOpContext
585
+ > = /*@__PURE__*/ API.make(() => ({
586
+ input: __S(208, __c13, 0) as any as S.Schema<DeleteHostingDomainsRequest>,
587
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
588
+ errors: [],
589
+ serviceErrors: ScalewayServiceErrors,
590
+ protocol: ScalewayProtocol,
591
+ retry: Retry.Retry,
592
+ telemetry: TELEMETRY,
593
+ span: "DeleteHostingDomains",
594
+ }));
595
+
596
+ export type GetHostingError = ScalewayOpError;
597
+ /** Get a Web Hosting plan Get the details of one of your existing Web Hosting plans, specified by its `hosting_id`. */
598
+ export const getHosting: API.OperationMethod<
599
+ GetHostingRequest,
600
+ Hosting,
601
+ GetHostingError,
602
+ ScalewayOpContext
603
+ > = /*@__PURE__*/ API.make(() => ({
604
+ input: __S(224, __c14, 0) as any as S.Schema<GetHostingRequest>,
605
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
606
+ errors: [],
607
+ serviceErrors: ScalewayServiceErrors,
608
+ protocol: ScalewayProtocol,
609
+ retry: Retry.Retry,
610
+ telemetry: TELEMETRY,
611
+ span: "GetHosting",
612
+ }));
613
+
614
+ export type GetResourceSummaryError = ScalewayOpError;
615
+ /** Get the total counts of websites, databases, email accounts, and FTP accounts of a Web Hosting plan */
616
+ export const getResourceSummary: API.OperationMethod<
617
+ GetResourceSummaryRequest,
618
+ ResourceSummary,
619
+ GetResourceSummaryError,
620
+ ScalewayOpContext
621
+ > = /*@__PURE__*/ API.make(() => ({
622
+ input: __S(240, __c15, 0) as any as S.Schema<GetResourceSummaryRequest>,
623
+ output: __S(241, __c15, 1) as any as S.Schema<ResourceSummary>,
624
+ errors: [],
625
+ serviceErrors: ScalewayServiceErrors,
626
+ protocol: ScalewayProtocol,
627
+ retry: Retry.Retry,
628
+ telemetry: TELEMETRY,
629
+ span: "GetResourceSummary",
630
+ }));
631
+
632
+ export type ListHostingsError = ScalewayOpError;
633
+ /** List all Web Hosting plans List all of your existing Web Hosting plans. Various filters are available to limit the results, including filtering by domain, status, tag and Project ID. */
634
+ export const listHostings: API.PaginatedOperationMethod<
635
+ ListHostingsRequest,
636
+ ListHostingsResponse,
637
+ ListHostingsError,
638
+ ScalewayOpContext,
639
+ HostingSummary
640
+ > = /*@__PURE__*/ API.makePaginated(
641
+ () => ({
642
+ input: __S(256, __c16, 0) as any as S.Schema<ListHostingsRequest>,
643
+ output: __S(258, __c16, 2) as any as S.Schema<ListHostingsResponse>,
644
+ errors: [],
645
+ serviceErrors: ScalewayServiceErrors,
646
+ protocol: ScalewayProtocol,
647
+ retry: Retry.Retry,
648
+ telemetry: TELEMETRY,
649
+ span: "ListHostings",
650
+ pagination: {
651
+ mode: "page",
652
+ inputToken: "page",
653
+ outputToken: "total_count",
654
+ items: "hostings",
655
+ pageSize: "page_size",
656
+ } as const,
657
+ }),
658
+ paginateByTotalCount,
659
+ ) as any;
660
+
661
+ export type MigrateControlPanelError = ScalewayOpError;
662
+ /** Migrate a hosting to a new control panel. */
663
+ export const migrateControlPanel: API.OperationMethod<
664
+ MigrateControlPanelRequest,
665
+ HostingSummary,
666
+ MigrateControlPanelError,
667
+ ScalewayOpContext
668
+ > = /*@__PURE__*/ API.make(() => ({
669
+ input: __S(272, __c17, 0) as any as S.Schema<MigrateControlPanelRequest>,
670
+ output: __S(32, __c2, 0) as any as S.Schema<HostingSummary>,
671
+ errors: [],
672
+ serviceErrors: ScalewayServiceErrors,
673
+ protocol: ScalewayProtocol,
674
+ retry: Retry.Retry,
675
+ telemetry: TELEMETRY,
676
+ span: "MigrateControlPanel",
677
+ }));
678
+
679
+ export type RemoveCustomDomainError = ScalewayOpError;
680
+ /** Detach a custom domain from a webhosting */
681
+ export const removeCustomDomain: API.OperationMethod<
682
+ RemoveCustomDomainRequest,
683
+ HostingSummary,
684
+ RemoveCustomDomainError,
685
+ ScalewayOpContext
686
+ > = /*@__PURE__*/ API.make(() => ({
687
+ input: __S(288, __c18, 0) as any as S.Schema<RemoveCustomDomainRequest>,
688
+ output: __S(32, __c2, 0) as any as S.Schema<HostingSummary>,
689
+ errors: [],
690
+ serviceErrors: ScalewayServiceErrors,
691
+ protocol: ScalewayProtocol,
692
+ retry: Retry.Retry,
693
+ telemetry: TELEMETRY,
694
+ span: "RemoveCustomDomain",
695
+ }));
696
+
697
+ export type ResetHostingError = ScalewayOpError;
698
+ /** Reset a Web Hosting plan Reset a Web Hosting plan to its initial state, specified by its `hosting_id`. This permanently deletes all hosting data including files, databases and emails. The hosting will be re-provisioned. */
699
+ export const resetHosting: API.OperationMethod<
700
+ ResetHostingRequest,
701
+ Hosting,
702
+ ResetHostingError,
703
+ ScalewayOpContext
704
+ > = /*@__PURE__*/ API.make(() => ({
705
+ input: __S(112, __c7, 0) as any as S.Schema<ResetHostingRequest>,
706
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
707
+ errors: [],
708
+ serviceErrors: ScalewayServiceErrors,
709
+ protocol: ScalewayProtocol,
710
+ retry: Retry.Retry,
711
+ telemetry: TELEMETRY,
712
+ span: "ResetHosting",
713
+ }));
714
+
715
+ export type ResetHostingPasswordError = ScalewayOpError;
716
+ /** Reset a Web Hosting plan password */
717
+ export const resetHostingPassword: API.OperationMethod<
718
+ ResetHostingPasswordRequest,
719
+ ResetHostingPasswordResponse,
720
+ ResetHostingPasswordError,
721
+ ScalewayOpContext
722
+ > = /*@__PURE__*/ API.make(() => ({
723
+ input: __S(128, __c8, 0) as any as S.Schema<ResetHostingPasswordRequest>,
724
+ output: __S(129, __c8, 1) as any as S.Schema<ResetHostingPasswordResponse>,
725
+ errors: [],
726
+ serviceErrors: ScalewayServiceErrors,
727
+ protocol: ScalewayProtocol,
728
+ retry: Retry.Retry,
729
+ telemetry: TELEMETRY,
730
+ span: "ResetHostingPassword",
731
+ }));
732
+
733
+ export type UpdateHostingError = ScalewayOpError;
734
+ /** Update a Web Hosting plan Update the details of one of your existing Web Hosting plans, specified by its `hosting_id`. You can update parameters including the contact email address, tags, options and offer. */
735
+ export const updateHosting: API.OperationMethod<
736
+ UpdateHostingRequest,
737
+ Hosting,
738
+ UpdateHostingError,
739
+ ScalewayOpContext
740
+ > = /*@__PURE__*/ API.make(() => ({
741
+ input: __S(145, __c9, 1) as any as S.Schema<UpdateHostingRequest>,
742
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
743
+ errors: [],
744
+ serviceErrors: ScalewayServiceErrors,
745
+ protocol: ScalewayProtocol,
746
+ retry: Retry.Retry,
747
+ telemetry: TELEMETRY,
748
+ span: "UpdateHosting",
749
+ }));
750
+
751
+ export type UpdateHostingFreeDomainError = ScalewayOpError;
752
+ /** Update the free domain of a Web Hosting plan Change the free domain associated with a Web Hosting plan, specified by its `hosting_id`. */
753
+ export const updateHostingFreeDomain: API.OperationMethod<
754
+ UpdateHostingFreeDomainRequest,
755
+ Hosting,
756
+ UpdateHostingFreeDomainError,
757
+ ScalewayOpContext
758
+ > = /*@__PURE__*/ API.make(() => ({
759
+ input: __S(160, __c10, 0) as any as S.Schema<UpdateHostingFreeDomainRequest>,
760
+ output: __S(93, __c5, 13) as any as S.Schema<Hosting>,
761
+ errors: [],
762
+ serviceErrors: ScalewayServiceErrors,
763
+ protocol: ScalewayProtocol,
764
+ retry: Retry.Retry,
765
+ telemetry: TELEMETRY,
766
+ span: "UpdateHostingFreeDomain",
767
+ }));
768
+
769
+ // Schema builders: each runs one schema initializer, on that schema's first use.
770
+ function __c0(j: number): any {
771
+ switch (j) {
772
+ case 0:
773
+ return S.suspend(() =>
774
+ S.Struct({
775
+ region: S.optional(S.String.pipe(T.Label())),
776
+ hosting_id: S.String.pipe(T.Label()),
777
+ domain_name: S.optional(S.String),
778
+ }).pipe(
779
+ T.Http({
780
+ method: "POST",
781
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/add-custom-domain",
782
+ code: 200,
783
+ baseUrl: "https://api.scaleway.com",
784
+ }),
785
+ ),
786
+ ).annotate({ identifier: "AddCustomDomainRequest" });
787
+ }
788
+ }
789
+ function __c1(j: number): any {
790
+ switch (j) {
791
+ case 0:
792
+ return S.suspend(() =>
793
+ S.Struct({
794
+ nameservers: S.optional(S.Boolean),
795
+ web_records: S.optional(S.Boolean),
796
+ mail_records: S.optional(S.Boolean),
797
+ all_records: S.optional(S.Boolean),
798
+ none: S.optional(S.Boolean),
799
+ }),
800
+ ).annotate({ identifier: "AutoConfigDomainDns" });
801
+ case 1:
802
+ return S.suspend(() =>
803
+ S.Struct({
804
+ domain: S.optional(S.String),
805
+ domain_status: S.optional(S.String),
806
+ dns_status: S.optional(S.String),
807
+ auto_config_domain_dns: S.optional(__S(16, __c1, 0)),
808
+ }),
809
+ ).annotate({ identifier: "HostingDomainCustomDomain" });
810
+ case 2:
811
+ return S.suspend(() =>
812
+ S.Struct({
813
+ subdomain: S.optional(S.String),
814
+ custom_domain: S.optional(__S(17, __c1, 1)),
815
+ }),
816
+ ).annotate({ identifier: "HostingDomain" });
817
+ }
818
+ }
819
+ function __c2(j: number): any {
820
+ switch (j) {
821
+ case 0:
822
+ return S.suspend(() =>
823
+ S.Struct({
824
+ id: S.optional(S.String),
825
+ srn: S.optional(S.String),
826
+ project_id: S.optional(S.String),
827
+ created_at: S.optional(S.NullOr(S.String)),
828
+ updated_at: S.optional(S.NullOr(S.String)),
829
+ status: S.optional(S.String),
830
+ domain: S.optional(S.String),
831
+ protected: S.optional(S.Boolean),
832
+ dns_status: S.optional(S.String),
833
+ offer_name: S.optional(S.String),
834
+ domain_status: S.optional(S.String),
835
+ region: S.optional(S.String),
836
+ domain_info: S.optional(__S(18, __c1, 2)),
837
+ }),
838
+ ).annotate({ identifier: "HostingSummary" });
839
+ }
840
+ }
841
+ function __c3(j: number): any {
842
+ switch (j) {
843
+ case 0:
844
+ return S.suspend(() =>
845
+ S.Struct({
846
+ update_nameservers: S.optional(S.Boolean),
847
+ update_web_record: S.optional(S.Boolean),
848
+ update_mail_record: S.optional(S.Boolean),
849
+ update_all_records: S.optional(S.Boolean),
850
+ }),
851
+ ).annotate({ identifier: "CreateHostingRequestDomainConfiguration" });
852
+ case 1:
853
+ return S.suspend(() =>
854
+ S.Struct({
855
+ region: S.optional(S.String.pipe(T.Label())),
856
+ offer_id: S.optional(S.String),
857
+ project_id: S.optional(S.String),
858
+ email: S.optional(S.String),
859
+ tags: S.optional(__S(96, __c6, 0)),
860
+ domain: S.optional(S.String),
861
+ subdomain: S.optional(S.NullOr(S.String)),
862
+ offer_options: S.optional(__S(65, __c4, 1)),
863
+ language: S.optional(S.String),
864
+ domain_configuration: S.optional(__S(48, __c3, 0)),
865
+ skip_welcome_email: S.optional(S.NullOr(S.Boolean)),
866
+ auto_config_domain_dns: S.optional(__S(16, __c1, 0)),
867
+ offer_commitment_id: S.optional(S.NullOr(S.String)),
868
+ }).pipe(
869
+ T.Http({
870
+ method: "POST",
871
+ uri: "/webhosting/v1/regions/{region}/hostings",
872
+ code: 200,
873
+ baseUrl: "https://api.scaleway.com",
874
+ }),
875
+ ),
876
+ ).annotate({ identifier: "CreateHostingRequest" });
877
+ }
878
+ }
879
+ function __c4(j: number): any {
880
+ switch (j) {
881
+ case 0:
882
+ return S.suspend(() =>
883
+ S.Struct({
884
+ id: S.optional(S.String),
885
+ quantity: S.optional(S.Number),
886
+ }),
887
+ ).annotate({ identifier: "OfferOptionRequest" });
888
+ case 1:
889
+ return S.Array(__S(64, __c4, 0));
890
+ }
891
+ }
892
+ function __c5(j: number): any {
893
+ switch (j) {
894
+ case 0:
895
+ return S.suspend(() =>
896
+ S.Struct({
897
+ currency_code: S.optional(S.String),
898
+ units: S.optional(S.Number),
899
+ nanos: S.optional(S.Number),
900
+ }),
901
+ ).annotate({ identifier: "GoogleTypeMoney" });
902
+ case 1:
903
+ return S.suspend(() =>
904
+ S.Struct({
905
+ id: S.optional(S.String),
906
+ name: S.optional(S.String),
907
+ billing_operation_path: S.optional(S.String),
908
+ min_value: S.optional(S.Number),
909
+ current_value: S.optional(S.Number),
910
+ max_value: S.optional(S.Number),
911
+ quota_warning: S.optional(S.String),
912
+ price: S.optional(__S(80, __c5, 0)),
913
+ }),
914
+ ).annotate({ identifier: "OfferOption" });
915
+ case 2:
916
+ return S.Array(__S(81, __c5, 1));
917
+ case 3:
918
+ return S.suspend(() =>
919
+ S.Struct({
920
+ name: S.optional(S.String),
921
+ available: S.optional(S.Boolean),
922
+ logo_url: S.optional(S.String),
923
+ available_languages: S.optional(__S(97, __c6, 1)),
924
+ }),
925
+ ).annotate({ identifier: "ControlPanel" });
926
+ case 4:
927
+ return S.Array(__S(83, __c5, 3));
928
+ case 5:
929
+ return S.suspend(() =>
930
+ S.Struct({
931
+ id: S.optional(S.String),
932
+ type: S.optional(S.String),
933
+ is_default: S.optional(S.Boolean),
934
+ billing_mode: S.optional(S.String),
935
+ billing_operation_path: S.optional(S.String),
936
+ price: S.optional(__S(80, __c5, 0)),
937
+ duration_in_month: S.optional(S.Number),
938
+ next: S.optional(__S(85, __c5, 5)),
939
+ }),
940
+ ).annotate({ identifier: "OfferCommitment" });
941
+ case 6:
942
+ return S.Array(__S(85, __c5, 5));
943
+ case 7:
944
+ return S.suspend(() =>
945
+ S.Struct({
946
+ id: S.optional(S.String),
947
+ name: S.optional(S.String),
948
+ billing_operation_path: S.optional(S.String),
949
+ options: S.optional(__S(82, __c5, 2)),
950
+ price: S.optional(__S(80, __c5, 0)),
951
+ available: S.optional(S.Boolean),
952
+ control_panel_name: S.optional(S.String),
953
+ end_of_life: S.optional(S.Boolean),
954
+ quota_warning: S.optional(S.String),
955
+ control_panels: S.optional(__S(84, __c5, 4)),
956
+ commitments: S.optional(__S(86, __c5, 6)),
957
+ region: S.optional(S.String),
958
+ }),
959
+ ).annotate({ identifier: "Offer" });
960
+ case 8:
961
+ return S.suspend(() =>
962
+ S.Struct({
963
+ dashboard: S.optional(S.String),
964
+ webmail: S.optional(S.String),
965
+ }),
966
+ ).annotate({ identifier: "PlatformControlPanelUrls" });
967
+ case 9:
968
+ return S.suspend(() =>
969
+ S.Struct({
970
+ name: S.optional(S.String),
971
+ urls: S.optional(__S(88, __c5, 8)),
972
+ }),
973
+ ).annotate({ identifier: "PlatformControlPanel" });
974
+ case 10:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ hostname: S.optional(S.String),
978
+ number: S.optional(S.Number),
979
+ group_name: S.optional(S.String),
980
+ ipv4: S.optional(S.String),
981
+ ipv6: S.optional(S.String),
982
+ control_panel: S.optional(__S(89, __c5, 9)),
983
+ }),
984
+ ).annotate({ identifier: "Platform" });
985
+ case 11:
986
+ return S.suspend(() =>
987
+ S.Struct({
988
+ username: S.optional(S.String),
989
+ one_time_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
990
+ contact_email: S.optional(S.String),
991
+ one_time_password_b64: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
992
+ }),
993
+ ).annotate({ identifier: "HostingUser" });
994
+ case 12:
995
+ return S.suspend(() =>
996
+ S.Struct({
997
+ offer_commitment: S.optional(__S(85, __c5, 5)),
998
+ start_at: S.optional(S.NullOr(S.String)),
999
+ end_at: S.optional(S.NullOr(S.String)),
1000
+ delete_hosting_at_end: S.optional(S.Boolean),
1001
+ }),
1002
+ ).annotate({ identifier: "HostingCommitment" });
1003
+ case 13:
1004
+ return S.suspend(() =>
1005
+ S.Struct({
1006
+ id: S.optional(S.String),
1007
+ srn: S.optional(S.String),
1008
+ project_id: S.optional(S.String),
1009
+ updated_at: S.optional(S.NullOr(S.String)),
1010
+ created_at: S.optional(S.NullOr(S.String)),
1011
+ status: S.optional(S.String),
1012
+ domain: S.optional(S.String),
1013
+ offer: S.optional(__S(87, __c5, 7)),
1014
+ platform: S.optional(__S(90, __c5, 10)),
1015
+ tags: S.optional(__S(96, __c6, 0)),
1016
+ dns_status: S.optional(S.String),
1017
+ ipv4: S.optional(S.String),
1018
+ protected: S.optional(S.Boolean),
1019
+ user: S.optional(__S(91, __c5, 11)),
1020
+ domain_status: S.optional(S.String),
1021
+ region: S.optional(S.String),
1022
+ domain_info: S.optional(__S(18, __c1, 2)),
1023
+ commitment: S.optional(__S(92, __c5, 12)),
1024
+ provider: S.optional(S.String),
1025
+ }),
1026
+ ).annotate({ identifier: "Hosting" });
1027
+ }
1028
+ }
1029
+ function __c6(j: number): any {
1030
+ switch (j) {
1031
+ case 0:
1032
+ return S.Array(S.String);
1033
+ case 1:
1034
+ return S.Array(S.String);
1035
+ }
1036
+ }
1037
+ function __c7(j: number): any {
1038
+ switch (j) {
1039
+ case 0:
1040
+ return S.suspend(() =>
1041
+ S.Struct({
1042
+ region: S.optional(S.String.pipe(T.Label())),
1043
+ hosting_id: S.String.pipe(T.Label()),
1044
+ }).pipe(
1045
+ T.Http({
1046
+ method: "POST",
1047
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/reset",
1048
+ code: 200,
1049
+ baseUrl: "https://api.scaleway.com",
1050
+ }),
1051
+ ),
1052
+ ).annotate({ identifier: "ResetHostingRequest" });
1053
+ }
1054
+ }
1055
+ function __c8(j: number): any {
1056
+ switch (j) {
1057
+ case 0:
1058
+ return S.suspend(() =>
1059
+ S.Struct({
1060
+ region: S.optional(S.String.pipe(T.Label())),
1061
+ hosting_id: S.String.pipe(T.Label()),
1062
+ }).pipe(
1063
+ T.Http({
1064
+ method: "POST",
1065
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/reset-password",
1066
+ code: 200,
1067
+ baseUrl: "https://api.scaleway.com",
1068
+ }),
1069
+ ),
1070
+ ).annotate({ identifier: "ResetHostingPasswordRequest" });
1071
+ case 1:
1072
+ return S.suspend(() =>
1073
+ S.Struct({
1074
+ one_time_password: S.optional(S.String.pipe(T.SensitiveValue({}))),
1075
+ one_time_password_b64: S.optional(S.String.pipe(T.SensitiveValue({}))),
1076
+ }),
1077
+ ).annotate({ identifier: "ResetHostingPasswordResponse" });
1078
+ }
1079
+ }
1080
+ function __c9(j: number): any {
1081
+ switch (j) {
1082
+ case 0:
1083
+ return S.Array(S.Unknown);
1084
+ case 1:
1085
+ return S.suspend(() =>
1086
+ S.Struct({
1087
+ region: S.optional(S.String.pipe(T.Label())),
1088
+ hosting_id: S.String.pipe(T.Label()),
1089
+ email: S.optional(S.NullOr(S.String)),
1090
+ tags: S.optional(S.NullOr(__S(144, __c9, 0))),
1091
+ offer_options: S.optional(__S(65, __c4, 1)),
1092
+ offer_id: S.optional(S.NullOr(S.String)),
1093
+ protected: S.optional(S.NullOr(S.Boolean)),
1094
+ delete_hosting_after_commitment: S.optional(S.NullOr(S.Boolean)),
1095
+ }).pipe(
1096
+ T.Http({
1097
+ method: "PATCH",
1098
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}",
1099
+ code: 200,
1100
+ baseUrl: "https://api.scaleway.com",
1101
+ }),
1102
+ ),
1103
+ ).annotate({ identifier: "UpdateHostingRequest" });
1104
+ }
1105
+ }
1106
+ function __c10(j: number): any {
1107
+ switch (j) {
1108
+ case 0:
1109
+ return S.suspend(() =>
1110
+ S.Struct({
1111
+ region: S.optional(S.String.pipe(T.Label())),
1112
+ hosting_id: S.String.pipe(T.Label()),
1113
+ free_domain: S.optional(S.String),
1114
+ }).pipe(
1115
+ T.Http({
1116
+ method: "PATCH",
1117
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/update-free-domain",
1118
+ code: 200,
1119
+ baseUrl: "https://api.scaleway.com",
1120
+ }),
1121
+ ),
1122
+ ).annotate({ identifier: "UpdateHostingFreeDomainRequest" });
1123
+ }
1124
+ }
1125
+ function __c11(j: number): any {
1126
+ switch (j) {
1127
+ case 0:
1128
+ return S.suspend(() =>
1129
+ S.Struct({
1130
+ region: S.optional(S.String.pipe(T.Label())),
1131
+ hosting_id: S.String.pipe(T.Label()),
1132
+ }).pipe(
1133
+ T.Http({
1134
+ method: "POST",
1135
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/sessions",
1136
+ code: 200,
1137
+ baseUrl: "https://api.scaleway.com",
1138
+ }),
1139
+ ),
1140
+ ).annotate({ identifier: "CreateSessionRequest" });
1141
+ case 1:
1142
+ return S.suspend(() =>
1143
+ S.Struct({
1144
+ url: S.optional(S.String),
1145
+ }),
1146
+ ).annotate({ identifier: "Session" });
1147
+ }
1148
+ }
1149
+ function __c12(j: number): any {
1150
+ switch (j) {
1151
+ case 0:
1152
+ return S.suspend(() =>
1153
+ S.Struct({
1154
+ region: S.optional(S.String.pipe(T.Label())),
1155
+ hosting_id: S.String.pipe(T.Label()),
1156
+ }).pipe(
1157
+ T.Http({
1158
+ method: "DELETE",
1159
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}",
1160
+ code: 200,
1161
+ baseUrl: "https://api.scaleway.com",
1162
+ }),
1163
+ ),
1164
+ ).annotate({ identifier: "DeleteHostingRequest" });
1165
+ }
1166
+ }
1167
+ function __c13(j: number): any {
1168
+ switch (j) {
1169
+ case 0:
1170
+ return S.suspend(() =>
1171
+ S.Struct({
1172
+ region: S.optional(S.String.pipe(T.Label())),
1173
+ hosting_id: S.String.pipe(T.Label()),
1174
+ domains: S.optional(__S(96, __c6, 0)),
1175
+ }).pipe(
1176
+ T.Http({
1177
+ method: "POST",
1178
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/delete-domains",
1179
+ code: 200,
1180
+ baseUrl: "https://api.scaleway.com",
1181
+ }),
1182
+ ),
1183
+ ).annotate({ identifier: "DeleteHostingDomainsRequest" });
1184
+ }
1185
+ }
1186
+ function __c14(j: number): any {
1187
+ switch (j) {
1188
+ case 0:
1189
+ return S.suspend(() =>
1190
+ S.Struct({
1191
+ region: S.optional(S.String.pipe(T.Label())),
1192
+ hosting_id: S.String.pipe(T.Label()),
1193
+ }).pipe(
1194
+ T.Http({
1195
+ method: "GET",
1196
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}",
1197
+ code: 200,
1198
+ baseUrl: "https://api.scaleway.com",
1199
+ }),
1200
+ ),
1201
+ ).annotate({ identifier: "GetHostingRequest" });
1202
+ }
1203
+ }
1204
+ function __c15(j: number): any {
1205
+ switch (j) {
1206
+ case 0:
1207
+ return S.suspend(() =>
1208
+ S.Struct({
1209
+ region: S.optional(S.String.pipe(T.Label())),
1210
+ hosting_id: S.String.pipe(T.Label()),
1211
+ }).pipe(
1212
+ T.Http({
1213
+ method: "GET",
1214
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/resource-summary",
1215
+ code: 200,
1216
+ baseUrl: "https://api.scaleway.com",
1217
+ }),
1218
+ ),
1219
+ ).annotate({ identifier: "GetResourceSummaryRequest" });
1220
+ case 1:
1221
+ return S.suspend(() =>
1222
+ S.Struct({
1223
+ databases_count: S.optional(S.Number),
1224
+ mail_accounts_count: S.optional(S.Number),
1225
+ ftp_accounts_count: S.optional(S.Number),
1226
+ websites_count: S.optional(S.Number),
1227
+ }),
1228
+ ).annotate({ identifier: "ResourceSummary" });
1229
+ }
1230
+ }
1231
+ function __c16(j: number): any {
1232
+ switch (j) {
1233
+ case 0:
1234
+ return S.suspend(() =>
1235
+ S.Struct({
1236
+ region: S.optional(S.String.pipe(T.Label())),
1237
+ page: S.optional(S.Number.pipe(T.Query())),
1238
+ page_size: S.optional(S.Number.pipe(T.Query())),
1239
+ order_by: S.optional(S.String.pipe(T.Query())),
1240
+ tags: S.optional(__S(96, __c6, 0).pipe(T.Query())),
1241
+ statuses: S.optional(__S(97, __c6, 1).pipe(T.Query())),
1242
+ domain: S.optional(S.String.pipe(T.Query())),
1243
+ project_id: S.optional(S.String.pipe(T.Query())),
1244
+ organization_id: S.optional(S.String.pipe(T.Query())),
1245
+ control_panels: S.optional(__S(96, __c6, 0).pipe(T.Query())),
1246
+ subdomain: S.optional(S.String.pipe(T.Query())),
1247
+ }).pipe(
1248
+ T.Http({
1249
+ method: "GET",
1250
+ uri: "/webhosting/v1/regions/{region}/hostings",
1251
+ code: 200,
1252
+ baseUrl: "https://api.scaleway.com",
1253
+ }),
1254
+ ),
1255
+ ).annotate({ identifier: "ListHostingsRequest" });
1256
+ case 1:
1257
+ return S.Array(__S(32, __c2, 0));
1258
+ case 2:
1259
+ return S.suspend(() =>
1260
+ S.Struct({
1261
+ total_count: S.optional(S.Number),
1262
+ hostings: __S(257, __c16, 1),
1263
+ }),
1264
+ ).annotate({ identifier: "ListHostingsResponse" });
1265
+ }
1266
+ }
1267
+ function __c17(j: number): any {
1268
+ switch (j) {
1269
+ case 0:
1270
+ return S.suspend(() =>
1271
+ S.Struct({
1272
+ region: S.optional(S.String.pipe(T.Label())),
1273
+ hosting_id: S.String.pipe(T.Label()),
1274
+ control_panel_name: S.optional(S.String),
1275
+ offer_id: S.optional(S.String),
1276
+ }).pipe(
1277
+ T.Http({
1278
+ method: "POST",
1279
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/migrate-control-panel",
1280
+ code: 200,
1281
+ baseUrl: "https://api.scaleway.com",
1282
+ }),
1283
+ ),
1284
+ ).annotate({ identifier: "MigrateControlPanelRequest" });
1285
+ }
1286
+ }
1287
+ function __c18(j: number): any {
1288
+ switch (j) {
1289
+ case 0:
1290
+ return S.suspend(() =>
1291
+ S.Struct({
1292
+ region: S.optional(S.String.pipe(T.Label())),
1293
+ hosting_id: S.String.pipe(T.Label()),
1294
+ domain_name: S.optional(S.String),
1295
+ }).pipe(
1296
+ T.Http({
1297
+ method: "POST",
1298
+ uri: "/webhosting/v1/regions/{region}/hostings/{hosting_id}/remove-custom-domain",
1299
+ code: 200,
1300
+ baseUrl: "https://api.scaleway.com",
1301
+ }),
1302
+ ),
1303
+ ).annotate({ identifier: "RemoveCustomDomainRequest" });
1304
+ }
1305
+ }
1306
+ // Schema table: entry i is schema j of builder f, made on first reach.
1307
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1308
+ return (__s[i] ??= __L.at(f, j));
1309
+ }