@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.22

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 +171 -4
  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 +640 -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 +1755 -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 +479 -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 +89 -2
  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 +947 -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 +2137 -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 +5395 -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 +1113 -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,947 @@
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 { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "AccountOrganizationV3",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type SupportPlanLevel =
29
+ | "unknown_level"
30
+ | "basic"
31
+ | "developer"
32
+ | "bronze"
33
+ | "silver"
34
+ | "gold"
35
+ | "platinum"
36
+ | "advanced"
37
+ | "business"
38
+ | "enterprise"
39
+ | "custom_lvmh";
40
+ export interface ChangeSupportPlanRequest {
41
+ /** ID of the Organization. (UUID format) */
42
+ organization_id: string;
43
+ /** Level of support plan The level of support plan. Can only be basic, silver or gold. */
44
+ level?: SupportPlanLevel | (string & {}) | undefined;
45
+ }
46
+ export interface SupportPlan {
47
+ /** ID of the support plan. (UUID format) */
48
+ id?: string | undefined;
49
+ /** Level of the support plan. */
50
+ level?: SupportPlanLevel | undefined;
51
+ /** Creation date of the support plan. (RFC 3339 format) */
52
+ started_at?: string | null | undefined;
53
+ /** End date of the support plan. (RFC 3339 format) */
54
+ stopped_at?: string | null | undefined;
55
+ /** ID of the Organization. (UUID format) */
56
+ organization_id?: string | undefined;
57
+ /** The SRN of the support plan. */
58
+ srn?: string | undefined;
59
+ }
60
+ export type CloseOrganizationRequestReason =
61
+ | "unknown_reason"
62
+ | "no_longer_needed"
63
+ | "too_expensive"
64
+ | "missing_feature"
65
+ | "technical_issue"
66
+ | "test_only"
67
+ | "difficult_to_use"
68
+ | "using_another_account"
69
+ | "other";
70
+ /** Reasons to close the Organization. */
71
+ export type CloseOrganizationRequestReasonsList = Array<
72
+ CloseOrganizationRequestReason | (string & {})
73
+ >;
74
+ export interface CloseOrganizationRequest {
75
+ /** ID of the Organization. */
76
+ organization_id: string;
77
+ /** Reasons to close the Organization. */
78
+ reasons?: CloseOrganizationRequestReasonsList | undefined;
79
+ /** More details about why the Organization is being closed. */
80
+ details?: string | null | undefined;
81
+ }
82
+ export interface CloseOrganizationResponse {}
83
+ export interface GetActiveSupportPlanRequest {
84
+ /** ID of the Organization. (UUID format) */
85
+ organization_id: string;
86
+ }
87
+ export interface TechnicalAccountManager {
88
+ /** ID of the TAM. (UUID format) */
89
+ id?: string | undefined;
90
+ /** Last name of the TAM. */
91
+ last_name?: string | undefined;
92
+ /** First name of the TAM. */
93
+ first_name?: string | undefined;
94
+ /** Email address of the TAM. */
95
+ email?: string | undefined;
96
+ /** Phone number of the TAM. */
97
+ phone_number?: string | undefined;
98
+ /** The SRN of the TAM. */
99
+ srn?: string | undefined;
100
+ }
101
+ export interface ActiveSupportPlan {
102
+ /** Active support plan information. */
103
+ support_plan?: SupportPlan | undefined;
104
+ /** Support id of the Organization. */
105
+ support_id?: string | undefined;
106
+ /** Support pin of the Organization. */
107
+ support_pin?: string | undefined;
108
+ /** Technical account manager attached to the Organization. */
109
+ technical_account_manager?: TechnicalAccountManager | undefined;
110
+ }
111
+ export interface GetOrganizationRequest {
112
+ /** ID of the Organization. */
113
+ organization_id: string;
114
+ }
115
+ export interface OrganizationAddress {
116
+ line1?: string | undefined;
117
+ line2?: string | undefined;
118
+ city_name?: string | undefined;
119
+ zip_code?: string | undefined;
120
+ subdivision_code?: string | undefined;
121
+ country_code?: string | undefined;
122
+ }
123
+ export type OrganizationType = "unknown_type" | "individual" | "professional" | "internal";
124
+ export type OrganizationSubType =
125
+ | "unknown_sub_type"
126
+ | "standard_sub_type"
127
+ | "startup_sub_type"
128
+ | "consultant_sub_type"
129
+ | "personal_sub_type"
130
+ | "association_sub_type";
131
+ export type OrganizationCurrency = "unknown_currency" | "eur";
132
+ export type OrganizationWarningReason =
133
+ | "unknown_reason"
134
+ | "security_concerns"
135
+ | "security_issue"
136
+ | "critical_security_issue"
137
+ | "locked_for_abuse"
138
+ | "network_abuse"
139
+ | "invoice_payment_failure"
140
+ | "got_chargeback"
141
+ | "validate_tos"
142
+ | "validate_kyc"
143
+ | "payment_info_missing"
144
+ | "billing_info_missing"
145
+ | "account_closed"
146
+ | "card_expired_or_soon"
147
+ | "confirm_email_change"
148
+ | "gdpr_delete"
149
+ | "rate_limiting"
150
+ | "trusted_level_security_check"
151
+ | "online_invoice_payment_failure"
152
+ | "validate_email"
153
+ | "ultra_security_issue"
154
+ | "missing_vat_number"
155
+ | "invalid_vat_number"
156
+ | "locked_by_reseller"
157
+ | "validate_phone"
158
+ | "e_invoicing_info_missing"
159
+ | "e_invoicing_info_invalid"
160
+ | "compliance_issue";
161
+ export interface OrganizationWarning {
162
+ /** (UUID format) */
163
+ id?: string | undefined;
164
+ reason?: OrganizationWarningReason | undefined;
165
+ locking?: boolean | undefined;
166
+ closed?: boolean | undefined;
167
+ /** (RFC 3339 format) */
168
+ opened_at?: string | null | undefined;
169
+ }
170
+ /** All warnings attached to this Organization. */
171
+ export type OrganizationWarningsList = Array<OrganizationWarning>;
172
+ export type OrganizationPaymentMode = "unknown_payment_mode" | "card" | "sepa";
173
+ export interface OrganizationDediboxAccount {
174
+ id?: number | undefined;
175
+ /** (RFC 3339 format) */
176
+ linked_at?: string | null | undefined;
177
+ /** (RFC 3339 format) */
178
+ migrated_at?: string | null | undefined;
179
+ }
180
+ export type OrganizationCorporateIndustry =
181
+ | "unknown_corporate_industry"
182
+ | "consulting_services"
183
+ | "cybersecurity_software"
184
+ | "ecommerce_retail"
185
+ | "education"
186
+ | "energy"
187
+ | "financial_services_insurance"
188
+ | "gaming_entertainment"
189
+ | "hospitality_leisure"
190
+ | "lifescience_healthcare_pharmaceuticals"
191
+ | "manufacturing"
192
+ | "media_press_tv"
193
+ | "public_sector"
194
+ | "telecommunications"
195
+ | "technology"
196
+ | "other";
197
+ export type OrganizationUseCase =
198
+ | "unknown_use_case"
199
+ | "host_private_or_hybrid_cloud"
200
+ | "build_and_host_saas_application"
201
+ | "host_web_apps_and_websites"
202
+ | "manage_infrastructure"
203
+ | "store_data_and_automate_processes"
204
+ | "train_ml_models_and_run_ai_inference"
205
+ | "dont_know_yet"
206
+ | "other_use_case";
207
+ /** Use cases of the Organization. */
208
+ export type OrganizationUseCasesList = Array<OrganizationUseCase>;
209
+ export type OrganizationBadge = "unknown_badge" | "badge_hds";
210
+ /** All badges attached to this Organization. */
211
+ export type OrganizationBadgesList = Array<OrganizationBadge>;
212
+ export type OrganizationResellerCustomerConfig =
213
+ | "unknown_reseller_customer_config"
214
+ | "standard"
215
+ | "billing"
216
+ | "billing_support";
217
+ export type OrganizationOnboardingStep =
218
+ | "unknown_onboarding_step"
219
+ | "account_details"
220
+ | "phone_details"
221
+ | "address_details"
222
+ | "billing_details"
223
+ | "default_project_details"
224
+ | "default_project_qualification"
225
+ | "completed";
226
+ export type OrganizationOrigin =
227
+ | "unknown_origin"
228
+ | "direct"
229
+ | "invitation"
230
+ | "origin_internal"
231
+ | "reseller"
232
+ | "dedibox"
233
+ | "dedibox_one_account"
234
+ | "web_cloud"
235
+ | "account"
236
+ | "book_my_name_one_account"
237
+ | "book_my_name";
238
+ export interface Organization {
239
+ /** ID of the Organization. (UUID format) */
240
+ id?: string | undefined;
241
+ /** Name of the Organization. */
242
+ name?: string | undefined;
243
+ /** Creation date of the Organization. (RFC 3339 format) */
244
+ created_at?: string | null | undefined;
245
+ /** Last modification date of the Organization. (RFC 3339 format) */
246
+ updated_at?: string | null | undefined;
247
+ /** Postal address of the Organization. */
248
+ address?: OrganizationAddress | undefined;
249
+ /** VAT number for tax exemption. */
250
+ vat_number?: string | null | undefined;
251
+ /** Type of this Organization (personal or professional). */
252
+ type?: OrganizationType | undefined;
253
+ /** Subtype of this Organization. */
254
+ sub_type?: OrganizationSubType | undefined;
255
+ /** Currency defined in the signed Terms of Service. */
256
+ currency?: OrganizationCurrency | undefined;
257
+ /** All warnings attached to this Organization. */
258
+ warnings?: OrganizationWarningsList | undefined;
259
+ /** Deprecated, use payment API instead. */
260
+ payment_mode?: OrganizationPaymentMode | undefined;
261
+ /** Email on which invoices are sent Email to which invoices are sent. If empty, the Owner's email is used. Replaced by the Notification manager. */
262
+ billing_email?: string | undefined;
263
+ /** Set to true if MFA is required for the Organization. */
264
+ mfa_enforced?: boolean | undefined;
265
+ /** Contains ID and link creation date if a dedibox account is linked. */
266
+ dedibox_account?: OrganizationDediboxAccount | undefined;
267
+ /** Deprecated. Set to true if the Organization is identified as a startup. */
268
+ is_startup?: boolean | undefined;
269
+ /** Corporate industry of the Organization. */
270
+ corporate_industry?: OrganizationCorporateIndustry | undefined;
271
+ /** DUNS number. */
272
+ duns_number?: string | null | undefined;
273
+ /** Use cases of the Organization. */
274
+ use_cases?: OrganizationUseCasesList | undefined;
275
+ /** Link to the Organization's picture. */
276
+ picture_link?: string | null | undefined;
277
+ /** Reseller customer profile. */
278
+ reseller_customer_profile?: string | null | undefined;
279
+ /** All badges attached to this Organization. */
280
+ badges?: OrganizationBadgesList | undefined;
281
+ /** Reseller customer config. */
282
+ reseller_customer_config?: OrganizationResellerCustomerConfig | undefined;
283
+ /** Organization onboarding process step. */
284
+ onboarding_step?: OrganizationOnboardingStep | undefined;
285
+ /** Organization origin. */
286
+ origin?: OrganizationOrigin | undefined;
287
+ /** Tax code for if required for your country. */
288
+ tax_code?: string | null | undefined;
289
+ /** Certified email address if required for your country. */
290
+ certified_email_address?: string | null | undefined;
291
+ /** Recipient Code if required for your country (e.g SDI, PPF). */
292
+ recipient_code?: string | null | undefined;
293
+ /** Legal name of the organization. */
294
+ legal_name?: string | null | undefined;
295
+ /** The primary identification number for the legal entity. */
296
+ company_registration_number?: string | null | undefined;
297
+ /** The identification number for a specific branch, operating unit, or physical location of the company. */
298
+ establishment_registration_number?: string | null | undefined;
299
+ /** The SRN of the organization. */
300
+ srn?: string | undefined;
301
+ }
302
+ export type ListSupportPlansRequestOrderBy =
303
+ | "started_at_asc"
304
+ | "started_at_desc"
305
+ | "stopped_at_asc"
306
+ | "stopped_at_desc";
307
+ export interface ListSupportPlansRequest {
308
+ /** Filter by Organization ID. (UUID format) */
309
+ organization_id: string;
310
+ /** Sort order of support plans. */
311
+ order_by?: ListSupportPlansRequestOrderBy | (string & {}) | undefined;
312
+ /** Requested page number. Value must be greater or equals to 1. */
313
+ page?: number | undefined;
314
+ /** Number of items per page. Value must be between 1 and 1000. */
315
+ page_size?: number | undefined;
316
+ }
317
+ /** List of support plans. */
318
+ export type ListSupportPlansResponseSupportPlansList = Array<SupportPlan>;
319
+ export interface ListSupportPlansResponse {
320
+ /** List of support plans. */
321
+ support_plans: ListSupportPlansResponseSupportPlansList;
322
+ /** Total count of support plans. */
323
+ total_count?: number | undefined;
324
+ }
325
+ export interface ReopenOrganizationRequest {
326
+ /** ID of the Organization. */
327
+ organization_id: string;
328
+ }
329
+ export interface ReopenOrganizationResponse {}
330
+ export type SetOrganizationUseCasesRequestUseCasesList = Array<OrganizationUseCase | (string & {})>;
331
+ export interface SetOrganizationUseCasesRequest {
332
+ organization_id?: string | undefined;
333
+ use_cases?: SetOrganizationUseCasesRequestUseCasesList | undefined;
334
+ }
335
+ export type SetOrganizationUseCasesResponseUseCasesList = Array<OrganizationUseCase>;
336
+ export interface SetOrganizationUseCasesResponse {
337
+ use_cases?: SetOrganizationUseCasesResponseUseCasesList | undefined;
338
+ }
339
+ export interface ScalewayStdFile {
340
+ name?: string | undefined;
341
+ content_type?: string | undefined;
342
+ content?: string | undefined;
343
+ }
344
+ export interface SetPictureRequest {
345
+ /** ID of the Organization. */
346
+ organization_id: string;
347
+ /** Picture to upload. */
348
+ file?: ScalewayStdFile | undefined;
349
+ }
350
+ export interface SetPictureResponse {}
351
+ export interface SkipOnboardingBillingDetailsRequest {
352
+ /** ID of the Organization. */
353
+ organization_id: string;
354
+ }
355
+ export interface UpdateOrganizationBillingDetailsRequest {
356
+ /** ID of the Organization. */
357
+ organization_id: string;
358
+ /** VAT number for tax exemption. */
359
+ vat_number?: string | null | undefined;
360
+ /** Address object. */
361
+ address?: OrganizationAddress | undefined;
362
+ /** DUNS number. */
363
+ duns_number?: string | null | undefined;
364
+ /** Tax code for if required for your country. */
365
+ tax_code?: string | null | undefined;
366
+ /** Certified email address if required for your country. */
367
+ certified_email_address?: string | null | undefined;
368
+ /** Legal name of the organization. */
369
+ legal_name?: string | null | undefined;
370
+ /** Recipient Code if required for your country (e.g SDI, PPF). */
371
+ recipient_code?: string | null | undefined;
372
+ /** The primary identification number for the legal entity. */
373
+ company_registration_number?: string | null | undefined;
374
+ /** The identification number for a specific branch, operating unit, or physical location of the company. */
375
+ establishment_registration_number?: string | null | undefined;
376
+ }
377
+ export interface UpdateOrganizationDetailsRequest {
378
+ /** ID of the Organization. */
379
+ organization_id: string;
380
+ /** Name of the Organization. */
381
+ name?: string | null | undefined;
382
+ /** Organization type. */
383
+ type?: OrganizationType | (string & {}) | undefined;
384
+ /** Set to true to ensure MFA is required for the Organization. */
385
+ mfa_enforced?: boolean | null | undefined;
386
+ }
387
+ export type ChangeSupportPlanError = ScalewayOpError;
388
+ /** Change the support plan for the Organization Change the support plan by supplying the level of support wanted and the Organization ID. */
389
+ export const changeSupportPlan: API.OperationMethod<
390
+ ChangeSupportPlanRequest,
391
+ SupportPlan,
392
+ ChangeSupportPlanError,
393
+ ScalewayOpContext
394
+ > = /*@__PURE__*/ API.make(() => ({
395
+ input: __S(0, __c0, 0) as any as S.Schema<ChangeSupportPlanRequest>,
396
+ output: __S(8, __c1, 0) as any as S.Schema<SupportPlan>,
397
+ errors: [],
398
+ serviceErrors: ScalewayServiceErrors,
399
+ protocol: ScalewayProtocol,
400
+ retry: Retry.Retry,
401
+ telemetry: TELEMETRY,
402
+ span: "ChangeSupportPlan",
403
+ }));
404
+
405
+ export type CloseOrganizationError = ScalewayOpError;
406
+ /** Close Organization Close the Organization associated with the given ID. */
407
+ export const closeOrganization: API.OperationMethod<
408
+ CloseOrganizationRequest,
409
+ CloseOrganizationResponse,
410
+ CloseOrganizationError,
411
+ ScalewayOpContext
412
+ > = /*@__PURE__*/ API.make(() => ({
413
+ input: __S(16, __c2, 0) as any as S.Schema<CloseOrganizationRequest>,
414
+ output: __S(32, __c4, 0) as any as S.Schema<CloseOrganizationResponse>,
415
+ errors: [],
416
+ serviceErrors: ScalewayServiceErrors,
417
+ protocol: ScalewayProtocol,
418
+ retry: Retry.Retry,
419
+ telemetry: TELEMETRY,
420
+ span: "CloseOrganization",
421
+ }));
422
+
423
+ export type GetActiveSupportPlanError = ScalewayOpError;
424
+ /** Get the active support plan for the Organization Get the support plan for the Organization along with the Technical Account Manager contact information. */
425
+ export const getActiveSupportPlan: API.OperationMethod<
426
+ GetActiveSupportPlanRequest,
427
+ ActiveSupportPlan,
428
+ GetActiveSupportPlanError,
429
+ ScalewayOpContext
430
+ > = /*@__PURE__*/ API.make(() => ({
431
+ input: __S(48, __c6, 0) as any as S.Schema<GetActiveSupportPlanRequest>,
432
+ output: __S(50, __c6, 2) as any as S.Schema<ActiveSupportPlan>,
433
+ errors: [],
434
+ serviceErrors: ScalewayServiceErrors,
435
+ protocol: ScalewayProtocol,
436
+ retry: Retry.Retry,
437
+ telemetry: TELEMETRY,
438
+ span: "GetActiveSupportPlan",
439
+ }));
440
+
441
+ export type GetOrganizationError = ScalewayOpError;
442
+ /** Get the Organization with the given ID */
443
+ export const getOrganization: API.OperationMethod<
444
+ GetOrganizationRequest,
445
+ Organization,
446
+ GetOrganizationError,
447
+ ScalewayOpContext
448
+ > = /*@__PURE__*/ API.make(() => ({
449
+ input: __S(56, __c7, 0) as any as S.Schema<GetOrganizationRequest>,
450
+ output: __S(68, __c8, 4) as any as S.Schema<Organization>,
451
+ errors: [],
452
+ serviceErrors: ScalewayServiceErrors,
453
+ protocol: ScalewayProtocol,
454
+ retry: Retry.Retry,
455
+ telemetry: TELEMETRY,
456
+ span: "GetOrganization",
457
+ }));
458
+
459
+ export type ListSupportPlansError = ScalewayOpError;
460
+ /** List the support plans for the Organization */
461
+ export const listSupportPlans: API.PaginatedOperationMethod<
462
+ ListSupportPlansRequest,
463
+ ListSupportPlansResponse,
464
+ ListSupportPlansError,
465
+ ScalewayOpContext,
466
+ SupportPlan
467
+ > = /*@__PURE__*/ API.makePaginated(
468
+ () => ({
469
+ input: __S(72, __c9, 0) as any as S.Schema<ListSupportPlansRequest>,
470
+ output: __S(74, __c9, 2) as any as S.Schema<ListSupportPlansResponse>,
471
+ errors: [],
472
+ serviceErrors: ScalewayServiceErrors,
473
+ protocol: ScalewayProtocol,
474
+ retry: Retry.Retry,
475
+ telemetry: TELEMETRY,
476
+ span: "ListSupportPlans",
477
+ pagination: {
478
+ mode: "page",
479
+ inputToken: "page",
480
+ outputToken: "total_count",
481
+ items: "support_plans",
482
+ pageSize: "page_size",
483
+ } as const,
484
+ }),
485
+ paginateByTotalCount,
486
+ ) as any;
487
+
488
+ export type ReopenOrganizationError = ScalewayOpError;
489
+ /** Reopen Organization Reopen a previously closed Organization associated with the given ID. */
490
+ export const reopenOrganization: API.OperationMethod<
491
+ ReopenOrganizationRequest,
492
+ ReopenOrganizationResponse,
493
+ ReopenOrganizationError,
494
+ ScalewayOpContext
495
+ > = /*@__PURE__*/ API.make(() => ({
496
+ input: __S(80, __c10, 0) as any as S.Schema<ReopenOrganizationRequest>,
497
+ output: __S(32, __c4, 0) as any as S.Schema<ReopenOrganizationResponse>,
498
+ errors: [],
499
+ serviceErrors: ScalewayServiceErrors,
500
+ protocol: ScalewayProtocol,
501
+ retry: Retry.Retry,
502
+ telemetry: TELEMETRY,
503
+ span: "ReopenOrganization",
504
+ }));
505
+
506
+ export type SetOrganizationUseCasesError = ScalewayOpError;
507
+ export const setOrganizationUseCases: API.OperationMethod<
508
+ SetOrganizationUseCasesRequest,
509
+ SetOrganizationUseCasesResponse,
510
+ SetOrganizationUseCasesError,
511
+ ScalewayOpContext
512
+ > = /*@__PURE__*/ API.make(() => ({
513
+ input: __S(88, __c11, 0) as any as S.Schema<SetOrganizationUseCasesRequest>,
514
+ output: __S(89, __c11, 1) as any as S.Schema<SetOrganizationUseCasesResponse>,
515
+ errors: [],
516
+ serviceErrors: ScalewayServiceErrors,
517
+ protocol: ScalewayProtocol,
518
+ retry: Retry.Retry,
519
+ telemetry: TELEMETRY,
520
+ span: "SetOrganizationUseCases",
521
+ }));
522
+
523
+ export type SetPictureError = ScalewayOpError;
524
+ /** Set picture Set a picture for the Organization. */
525
+ export const setPicture: API.OperationMethod<
526
+ SetPictureRequest,
527
+ SetPictureResponse,
528
+ SetPictureError,
529
+ ScalewayOpContext
530
+ > = /*@__PURE__*/ API.make(() => ({
531
+ input: __S(97, __c12, 1) as any as S.Schema<SetPictureRequest>,
532
+ output: __S(32, __c4, 0) as any as S.Schema<SetPictureResponse>,
533
+ errors: [],
534
+ serviceErrors: ScalewayServiceErrors,
535
+ protocol: ScalewayProtocol,
536
+ retry: Retry.Retry,
537
+ telemetry: TELEMETRY,
538
+ span: "SetPicture",
539
+ }));
540
+
541
+ export type SkipOnboardingBillingDetailsError = ScalewayOpError;
542
+ /** Skip billing details during onboarding Skip the billing details step during the onboarding process. The onboarding step will be advanced to the next step. */
543
+ export const skipOnboardingBillingDetails: API.OperationMethod<
544
+ SkipOnboardingBillingDetailsRequest,
545
+ Organization,
546
+ SkipOnboardingBillingDetailsError,
547
+ ScalewayOpContext
548
+ > = /*@__PURE__*/ API.make(() => ({
549
+ input: __S(104, __c13, 0) as any as S.Schema<SkipOnboardingBillingDetailsRequest>,
550
+ output: __S(68, __c8, 4) as any as S.Schema<Organization>,
551
+ errors: [],
552
+ serviceErrors: ScalewayServiceErrors,
553
+ protocol: ScalewayProtocol,
554
+ retry: Retry.Retry,
555
+ telemetry: TELEMETRY,
556
+ span: "SkipOnboardingBillingDetails",
557
+ }));
558
+
559
+ export type UpdateOrganizationBillingDetailsError = ScalewayOpError;
560
+ /** Update the billing details of the Organization with the given ID */
561
+ export const updateOrganizationBillingDetails: API.OperationMethod<
562
+ UpdateOrganizationBillingDetailsRequest,
563
+ Organization,
564
+ UpdateOrganizationBillingDetailsError,
565
+ ScalewayOpContext
566
+ > = /*@__PURE__*/ API.make(() => ({
567
+ input: __S(112, __c14, 0) as any as S.Schema<UpdateOrganizationBillingDetailsRequest>,
568
+ output: __S(68, __c8, 4) as any as S.Schema<Organization>,
569
+ errors: [],
570
+ serviceErrors: ScalewayServiceErrors,
571
+ protocol: ScalewayProtocol,
572
+ retry: Retry.Retry,
573
+ telemetry: TELEMETRY,
574
+ span: "UpdateOrganizationBillingDetails",
575
+ }));
576
+
577
+ export type UpdateOrganizationDetailsError = ScalewayOpError;
578
+ /** Update the details of the Organization details with the given ID */
579
+ export const updateOrganizationDetails: API.OperationMethod<
580
+ UpdateOrganizationDetailsRequest,
581
+ Organization,
582
+ UpdateOrganizationDetailsError,
583
+ ScalewayOpContext
584
+ > = /*@__PURE__*/ API.make(() => ({
585
+ input: __S(40, __c5, 0) as any as S.Schema<UpdateOrganizationDetailsRequest>,
586
+ output: __S(68, __c8, 4) as any as S.Schema<Organization>,
587
+ errors: [],
588
+ serviceErrors: ScalewayServiceErrors,
589
+ protocol: ScalewayProtocol,
590
+ retry: Retry.Retry,
591
+ telemetry: TELEMETRY,
592
+ span: "UpdateOrganizationDetails",
593
+ }));
594
+
595
+ // Schema builders: each runs one schema initializer, on that schema's first use.
596
+ function __c0(j: number): any {
597
+ switch (j) {
598
+ case 0:
599
+ return S.suspend(() =>
600
+ S.Struct({
601
+ organization_id: S.String.pipe(T.Label()),
602
+ level: S.optional(S.String),
603
+ }).pipe(
604
+ T.Http({
605
+ method: "POST",
606
+ uri: "/account/v3/organizations/{organization_id}/support-plans",
607
+ code: 200,
608
+ baseUrl: "https://api.scaleway.com",
609
+ }),
610
+ ),
611
+ ).annotate({ identifier: "ChangeSupportPlanRequest" });
612
+ }
613
+ }
614
+ function __c1(j: number): any {
615
+ switch (j) {
616
+ case 0:
617
+ return S.suspend(() =>
618
+ S.Struct({
619
+ id: S.optional(S.String),
620
+ level: S.optional(S.String),
621
+ started_at: S.optional(S.NullOr(S.String)),
622
+ stopped_at: S.optional(S.NullOr(S.String)),
623
+ organization_id: S.optional(S.String),
624
+ srn: S.optional(S.String),
625
+ }),
626
+ ).annotate({ identifier: "SupportPlan" });
627
+ }
628
+ }
629
+ function __c2(j: number): any {
630
+ switch (j) {
631
+ case 0:
632
+ return S.suspend(() =>
633
+ S.Struct({
634
+ organization_id: S.String.pipe(T.Label()),
635
+ reasons: S.optional(__S(24, __c3, 0)),
636
+ details: S.optional(S.NullOr(S.String)),
637
+ }).pipe(
638
+ T.Http({
639
+ method: "POST",
640
+ uri: "/account/v3/organizations/{organization_id}/close",
641
+ code: 200,
642
+ baseUrl: "https://api.scaleway.com",
643
+ }),
644
+ ),
645
+ ).annotate({ identifier: "CloseOrganizationRequest" });
646
+ }
647
+ }
648
+ function __c3(j: number): any {
649
+ switch (j) {
650
+ case 0:
651
+ return S.Array(S.String);
652
+ }
653
+ }
654
+ function __c4(j: number): any {
655
+ switch (j) {
656
+ case 0:
657
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "CloseOrganizationResponse" });
658
+ }
659
+ }
660
+ function __c5(j: number): any {
661
+ switch (j) {
662
+ case 0:
663
+ return S.suspend(() =>
664
+ S.Struct({
665
+ organization_id: S.String.pipe(T.Label()),
666
+ name: S.optional(S.NullOr(S.String)),
667
+ type: S.optional(S.String),
668
+ mfa_enforced: S.optional(S.NullOr(S.Boolean)),
669
+ }).pipe(
670
+ T.Http({
671
+ method: "POST",
672
+ uri: "/account/v3/organizations/{organization_id}/update-details",
673
+ code: 200,
674
+ baseUrl: "https://api.scaleway.com",
675
+ }),
676
+ ),
677
+ ).annotate({ identifier: "UpdateOrganizationDetailsRequest" });
678
+ }
679
+ }
680
+ function __c6(j: number): any {
681
+ switch (j) {
682
+ case 0:
683
+ return S.suspend(() =>
684
+ S.Struct({
685
+ organization_id: S.String.pipe(T.Label()),
686
+ }).pipe(
687
+ T.Http({
688
+ method: "GET",
689
+ uri: "/account/v3/organizations/{organization_id}/active-support-plan",
690
+ code: 200,
691
+ baseUrl: "https://api.scaleway.com",
692
+ }),
693
+ ),
694
+ ).annotate({ identifier: "GetActiveSupportPlanRequest" });
695
+ case 1:
696
+ return S.suspend(() =>
697
+ S.Struct({
698
+ id: S.optional(S.String),
699
+ last_name: S.optional(S.String),
700
+ first_name: S.optional(S.String),
701
+ email: S.optional(S.String),
702
+ phone_number: S.optional(S.String),
703
+ srn: S.optional(S.String),
704
+ }),
705
+ ).annotate({ identifier: "TechnicalAccountManager" });
706
+ case 2:
707
+ return S.suspend(() =>
708
+ S.Struct({
709
+ support_plan: S.optional(__S(8, __c1, 0)),
710
+ support_id: S.optional(S.String),
711
+ support_pin: S.optional(S.String),
712
+ technical_account_manager: S.optional(__S(49, __c6, 1)),
713
+ }),
714
+ ).annotate({ identifier: "ActiveSupportPlan" });
715
+ }
716
+ }
717
+ function __c7(j: number): any {
718
+ switch (j) {
719
+ case 0:
720
+ return S.suspend(() =>
721
+ S.Struct({
722
+ organization_id: S.String.pipe(T.Label()),
723
+ }).pipe(
724
+ T.Http({
725
+ method: "GET",
726
+ uri: "/account/v3/organizations/{organization_id}",
727
+ code: 200,
728
+ baseUrl: "https://api.scaleway.com",
729
+ }),
730
+ ),
731
+ ).annotate({ identifier: "GetOrganizationRequest" });
732
+ }
733
+ }
734
+ function __c8(j: number): any {
735
+ switch (j) {
736
+ case 0:
737
+ return S.suspend(() =>
738
+ S.Struct({
739
+ line1: S.optional(S.String),
740
+ line2: S.optional(S.String),
741
+ city_name: S.optional(S.String),
742
+ zip_code: S.optional(S.String),
743
+ subdivision_code: S.optional(S.String),
744
+ country_code: S.optional(S.String),
745
+ }),
746
+ ).annotate({ identifier: "OrganizationAddress" });
747
+ case 1:
748
+ return S.suspend(() =>
749
+ S.Struct({
750
+ id: S.optional(S.String),
751
+ reason: S.optional(S.String),
752
+ locking: S.optional(S.Boolean),
753
+ closed: S.optional(S.Boolean),
754
+ opened_at: S.optional(S.NullOr(S.String)),
755
+ }),
756
+ ).annotate({ identifier: "OrganizationWarning" });
757
+ case 2:
758
+ return S.Array(__S(65, __c8, 1));
759
+ case 3:
760
+ return S.suspend(() =>
761
+ S.Struct({
762
+ id: S.optional(S.Number),
763
+ linked_at: S.optional(S.NullOr(S.String)),
764
+ migrated_at: S.optional(S.NullOr(S.String)),
765
+ }),
766
+ ).annotate({ identifier: "OrganizationDediboxAccount" });
767
+ case 4:
768
+ return S.suspend(() =>
769
+ S.Struct({
770
+ id: S.optional(S.String),
771
+ name: S.optional(S.String),
772
+ created_at: S.optional(S.NullOr(S.String)),
773
+ updated_at: S.optional(S.NullOr(S.String)),
774
+ address: S.optional(__S(64, __c8, 0)),
775
+ vat_number: S.optional(S.NullOr(S.String)),
776
+ type: S.optional(S.String),
777
+ sub_type: S.optional(S.String),
778
+ currency: S.optional(S.String),
779
+ warnings: S.optional(__S(66, __c8, 2)),
780
+ payment_mode: S.optional(S.String),
781
+ billing_email: S.optional(S.String),
782
+ mfa_enforced: S.optional(S.Boolean),
783
+ dedibox_account: S.optional(__S(67, __c8, 3)),
784
+ is_startup: S.optional(S.Boolean),
785
+ corporate_industry: S.optional(S.String),
786
+ duns_number: S.optional(S.NullOr(S.String)),
787
+ use_cases: S.optional(__S(24, __c3, 0)),
788
+ picture_link: S.optional(S.NullOr(S.String)),
789
+ reseller_customer_profile: S.optional(S.NullOr(S.String)),
790
+ badges: S.optional(__S(24, __c3, 0)),
791
+ reseller_customer_config: S.optional(S.String),
792
+ onboarding_step: S.optional(S.String),
793
+ origin: S.optional(S.String),
794
+ tax_code: S.optional(S.NullOr(S.String)),
795
+ certified_email_address: S.optional(S.NullOr(S.String)),
796
+ recipient_code: S.optional(S.NullOr(S.String)),
797
+ legal_name: S.optional(S.NullOr(S.String)),
798
+ company_registration_number: S.optional(S.NullOr(S.String)),
799
+ establishment_registration_number: S.optional(S.NullOr(S.String)),
800
+ srn: S.optional(S.String),
801
+ }),
802
+ ).annotate({ identifier: "Organization" });
803
+ }
804
+ }
805
+ function __c9(j: number): any {
806
+ switch (j) {
807
+ case 0:
808
+ return S.suspend(() =>
809
+ S.Struct({
810
+ organization_id: S.String.pipe(T.Label()),
811
+ order_by: S.optional(S.String.pipe(T.Query())),
812
+ page: S.optional(S.Number.pipe(T.Query())),
813
+ page_size: S.optional(S.Number.pipe(T.Query())),
814
+ }).pipe(
815
+ T.Http({
816
+ method: "GET",
817
+ uri: "/account/v3/organizations/{organization_id}/support-plans",
818
+ code: 200,
819
+ baseUrl: "https://api.scaleway.com",
820
+ }),
821
+ ),
822
+ ).annotate({ identifier: "ListSupportPlansRequest" });
823
+ case 1:
824
+ return S.Array(__S(8, __c1, 0));
825
+ case 2:
826
+ return S.suspend(() =>
827
+ S.Struct({
828
+ support_plans: __S(73, __c9, 1),
829
+ total_count: S.optional(S.Number),
830
+ }),
831
+ ).annotate({ identifier: "ListSupportPlansResponse" });
832
+ }
833
+ }
834
+ function __c10(j: number): any {
835
+ switch (j) {
836
+ case 0:
837
+ return S.suspend(() =>
838
+ S.Struct({
839
+ organization_id: S.String.pipe(T.Label()),
840
+ }).pipe(
841
+ T.Http({
842
+ method: "POST",
843
+ uri: "/account/v3/organizations/{organization_id}/reopen",
844
+ code: 200,
845
+ baseUrl: "https://api.scaleway.com",
846
+ }),
847
+ ),
848
+ ).annotate({ identifier: "ReopenOrganizationRequest" });
849
+ }
850
+ }
851
+ function __c11(j: number): any {
852
+ switch (j) {
853
+ case 0:
854
+ return S.suspend(() =>
855
+ S.Struct({
856
+ organization_id: S.optional(S.String),
857
+ use_cases: S.optional(__S(24, __c3, 0)),
858
+ }).pipe(
859
+ T.Http({
860
+ method: "PATCH",
861
+ uri: "/account/v3/organization-use-cases",
862
+ code: 200,
863
+ baseUrl: "https://api.scaleway.com",
864
+ }),
865
+ ),
866
+ ).annotate({ identifier: "SetOrganizationUseCasesRequest" });
867
+ case 1:
868
+ return S.suspend(() =>
869
+ S.Struct({
870
+ use_cases: S.optional(__S(24, __c3, 0)),
871
+ }),
872
+ ).annotate({ identifier: "SetOrganizationUseCasesResponse" });
873
+ }
874
+ }
875
+ function __c12(j: number): any {
876
+ switch (j) {
877
+ case 0:
878
+ return S.suspend(() =>
879
+ S.Struct({
880
+ name: S.optional(S.String),
881
+ content_type: S.optional(S.String),
882
+ content: S.optional(S.String),
883
+ }),
884
+ ).annotate({ identifier: "ScalewayStdFile" });
885
+ case 1:
886
+ return S.suspend(() =>
887
+ S.Struct({
888
+ organization_id: S.String.pipe(T.Label()),
889
+ file: S.optional(__S(96, __c12, 0)),
890
+ }).pipe(
891
+ T.Http({
892
+ method: "PUT",
893
+ uri: "/account/v3/organizations/{organization_id}/picture",
894
+ code: 200,
895
+ baseUrl: "https://api.scaleway.com",
896
+ }),
897
+ ),
898
+ ).annotate({ identifier: "SetPictureRequest" });
899
+ }
900
+ }
901
+ function __c13(j: number): any {
902
+ switch (j) {
903
+ case 0:
904
+ return S.suspend(() =>
905
+ S.Struct({
906
+ organization_id: S.String.pipe(T.Label()),
907
+ }).pipe(
908
+ T.Http({
909
+ method: "POST",
910
+ uri: "/account/v3/organizations/{organization_id}/skip-onboarding-billing-details",
911
+ code: 200,
912
+ baseUrl: "https://api.scaleway.com",
913
+ }),
914
+ ),
915
+ ).annotate({ identifier: "SkipOnboardingBillingDetailsRequest" });
916
+ }
917
+ }
918
+ function __c14(j: number): any {
919
+ switch (j) {
920
+ case 0:
921
+ return S.suspend(() =>
922
+ S.Struct({
923
+ organization_id: S.String.pipe(T.Label()),
924
+ vat_number: S.optional(S.NullOr(S.String)),
925
+ address: S.optional(__S(64, __c8, 0)),
926
+ duns_number: S.optional(S.NullOr(S.String)),
927
+ tax_code: S.optional(S.NullOr(S.String)),
928
+ certified_email_address: S.optional(S.NullOr(S.String)),
929
+ legal_name: S.optional(S.NullOr(S.String)),
930
+ recipient_code: S.optional(S.NullOr(S.String)),
931
+ company_registration_number: S.optional(S.NullOr(S.String)),
932
+ establishment_registration_number: S.optional(S.NullOr(S.String)),
933
+ }).pipe(
934
+ T.Http({
935
+ method: "POST",
936
+ uri: "/account/v3/organizations/{organization_id}/update-billing-details",
937
+ code: 200,
938
+ baseUrl: "https://api.scaleway.com",
939
+ }),
940
+ ),
941
+ ).annotate({ identifier: "UpdateOrganizationBillingDetailsRequest" });
942
+ }
943
+ }
944
+ // Schema table: entry i is schema j of builder f, made on first reach.
945
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
946
+ return (__s[i] ??= __L.at(f, j));
947
+ }