@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,2110 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
7
+ import { ScalewayServiceErrors } from "../errors.ts";
8
+ import { paginateByTotalCount } from "../pagination.ts";
9
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+ import * as T from "../traits.ts";
12
+ // Schema table, filled on first reach (see __S at the end).
13
+ const __s: any[] = [];
14
+
15
+ export type { ScalewayOpError, ScalewayOpContext };
16
+
17
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
18
+ const TELEMETRY = {
19
+ system: "scaleway-api",
20
+ responseHeaders: [
21
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
22
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
23
+ ],
24
+ prefix: "Scaleway",
25
+ service: "ContainersV1",
26
+ labels: "scaleway",
27
+ propagate: "w3c",
28
+ } as const;
29
+
30
+ export type CreateContainerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
31
+ /** Environment variables of the container. */
32
+ export type CreateContainerRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
33
+ /** Secret environment variables of the container. */
34
+ export type CreateContainerRequestSecretEnvironmentVariablesMap = {
35
+ [key: string]: string | Redacted.Redacted<string> | undefined;
36
+ };
37
+ export type ContainerPrivacy = "unknown_privacy" | "public" | "private";
38
+ export type ContainerProtocol = "unknown_protocol" | "http1" | "h2c";
39
+ export type ContainerSandbox = "unknown_sandbox" | "v1" | "v2";
40
+ /** Tags of the Serverless Container. */
41
+ export type CreateContainerRequestTagsList = Array<string>;
42
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
43
+ export type CreateContainerRequestCommandList = Array<string>;
44
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
45
+ export type CreateContainerRequestArgsList = Array<string>;
46
+ export interface CreateContainerRequest {
47
+ /** The region you want to target */
48
+ region?: CreateContainerRequestRegion | (string & {}) | undefined;
49
+ /** Unique ID of the namespace the container belongs to. */
50
+ namespace_id: string;
51
+ /** Container name. */
52
+ name: string;
53
+ /** Environment variables of the container. */
54
+ environment_variables?: CreateContainerRequestEnvironmentVariablesMap | undefined;
55
+ /** Secret environment variables of the container. */
56
+ secret_environment_variables?: CreateContainerRequestSecretEnvironmentVariablesMap | undefined;
57
+ /** Minimum number of instances to scale the container to. */
58
+ min_scale?: number | null | undefined;
59
+ /** Maximum number of instances to scale the container to. */
60
+ max_scale?: number | null | undefined;
61
+ /** Memory limit of the container in bytes. (in bytes) */
62
+ memory_limit_bytes?: number | null | undefined;
63
+ /** CPU limit of the container in mvCPU. */
64
+ mvcpu_limit?: number | null | undefined;
65
+ /** Processing time limit for the container. (in seconds) */
66
+ timeout?: string | null | undefined;
67
+ /** Privacy policy of the container. */
68
+ privacy?: ContainerPrivacy | (string & {}) | undefined;
69
+ /** Container description. */
70
+ description?: string | null | undefined;
71
+ /** Image reference (e.g. with sample image: "rg.fr-par.scw.cloud/serverless-catalog/sample-website:latest"). */
72
+ image: string;
73
+ /** Protocol the container uses. */
74
+ protocol?: ContainerProtocol | (string & {}) | undefined;
75
+ /** Port the container listens on. */
76
+ port?: number | null | undefined;
77
+ /** If true, it will allow only HTTPS connections to access your container to prevent it from being triggered by insecure connections (HTTP). */
78
+ https_connections_only?: boolean | null | undefined;
79
+ /** Execution environment of the container. */
80
+ sandbox?: ContainerSandbox | (string & {}) | undefined;
81
+ /** Local storage limit of the container (in bytes). (in bytes) */
82
+ local_storage_limit_bytes?: number | null | undefined;
83
+ /** Parameter used to decide when to scale up or down. */
84
+ scaling_option?: unknown | undefined;
85
+ /** Defines how to check if the container is running and healthy. If the liveness probe fails, the container will be marked as unhealthy, and won't receive traffic anymore. It is performed periodically during the container's lifetime. The liveness probe is not executed until the startup probe (if defined) is successful. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
86
+ liveness_probe?: unknown | undefined;
87
+ /** Defines how to check if the container has started successfully. If the startup probe fails, the container will be restarted. This check is useful for applications that might take a long time to start. It is only performed when the container is starting. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
88
+ startup_probe?: unknown | undefined;
89
+ /** Tags of the Serverless Container. */
90
+ tags?: CreateContainerRequestTagsList | undefined;
91
+ /** ID of the Private Network the container is connected to. When connected to a Private Network, the container can access other Scaleway resources in this Private Network. */
92
+ private_network_id?: string | null | undefined;
93
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
94
+ command?: CreateContainerRequestCommandList | undefined;
95
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
96
+ args?: CreateContainerRequestArgsList | undefined;
97
+ /** Whether to allow incoming traffic from the Private Networks within the VPC. When enabled, the container can receive traffic from resources connected to any Private Network within the same VPC. */
98
+ enable_private_endpoint?: boolean | null | undefined;
99
+ /** Whether default public endpoint is enabled or not. When not enabled (set to false), calling the Container through this endpoint will return a 404. Despite this, creating custom domains is still possible. */
100
+ enable_default_public_endpoint?: boolean | null | undefined;
101
+ }
102
+ export type ContainerStatus =
103
+ | "unknown_status"
104
+ | "updating"
105
+ | "deleting"
106
+ | "locking"
107
+ | "ready"
108
+ | "error"
109
+ | "locked"
110
+ | "creating"
111
+ | "upgrading";
112
+ /** Environment variables of the container. */
113
+ export type ContainerEnvironmentVariablesMap = { [key: string]: string | undefined };
114
+ /** Secret environment variables of the container. */
115
+ export type ContainerSecretEnvironmentVariablesMap = { [key: string]: string | undefined };
116
+ /** Tags of the Serverless Container. */
117
+ export type ContainerTagsList = Array<string>;
118
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
119
+ export type ContainerCommandList = Array<string>;
120
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
121
+ export type ContainerArgsList = Array<string>;
122
+ export interface Container {
123
+ /** Container unique ID. (UUID format) */
124
+ id?: string | undefined;
125
+ /** Container SRN. */
126
+ srn?: string | undefined;
127
+ /** Container name. */
128
+ name?: string | undefined;
129
+ /** Unique ID of the namespace the container belongs to. (UUID format) */
130
+ namespace_id?: string | undefined;
131
+ /** Container description. */
132
+ description?: string | undefined;
133
+ /** Container status. */
134
+ status?: ContainerStatus | undefined;
135
+ /** Container last error message. */
136
+ error_message?: string | null | undefined;
137
+ /** Container creation date. (RFC 3339 format) */
138
+ created_at?: string | null | undefined;
139
+ /** Container last update date. (RFC 3339 format) */
140
+ updated_at?: string | null | undefined;
141
+ /** Environment variables of the container. */
142
+ environment_variables?: ContainerEnvironmentVariablesMap | undefined;
143
+ /** Secret environment variables of the container. */
144
+ secret_environment_variables?: ContainerSecretEnvironmentVariablesMap | undefined;
145
+ /** Minimum number of instances to scale the container to. */
146
+ min_scale?: number | undefined;
147
+ /** Maximum number of instances to scale the container to. */
148
+ max_scale?: number | undefined;
149
+ /** Memory limit of the container in bytes. (in bytes) */
150
+ memory_limit_bytes?: number | undefined;
151
+ /** CPU limit of the container in mvCPU. */
152
+ mvcpu_limit?: number | undefined;
153
+ /** Local storage limit of the container (in bytes). (in bytes) */
154
+ local_storage_limit_bytes?: number | undefined;
155
+ /** Processing time limit for the container. (in seconds) */
156
+ timeout?: string | null | undefined;
157
+ /** Privacy policy of the container. */
158
+ privacy?: ContainerPrivacy | undefined;
159
+ /** Image reference (e.g. with sample image: "rg.fr-par.scw.cloud/serverless-catalog/sample-website:latest"). */
160
+ image?: string | undefined;
161
+ /** Protocol the container uses. */
162
+ protocol?: ContainerProtocol | undefined;
163
+ /** Port the container listens on. */
164
+ port?: number | undefined;
165
+ /** If true, it will allow only HTTPS connections to access your container to prevent it from being triggered by insecure connections (HTTP). */
166
+ https_connections_only?: boolean | undefined;
167
+ /** Execution environment of the container. */
168
+ sandbox?: ContainerSandbox | undefined;
169
+ /** Parameter used to decide when to scale up or down. */
170
+ scaling_option?: unknown | undefined;
171
+ /** Defines how to check if the container is running and healthy. If the liveness probe fails, the container will be marked as unhealthy, and won't receive traffic anymore. It is performed periodically during the container's lifetime. The liveness probe is not executed until the startup probe (if defined) is successful. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
172
+ liveness_probe?: unknown | undefined;
173
+ /** Defines how to check if the container has started successfully. If the startup probe fails, the container will be restarted. This check is useful for applications that might take a long time to start. It is only performed when the container is starting. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
174
+ startup_probe?: unknown | undefined;
175
+ /** Tags of the Serverless Container. */
176
+ tags?: ContainerTagsList | undefined;
177
+ /** ID of the Private Network the container is connected to. When connected to a Private Network, the container can access other Scaleway resources in this Private Network. (UUID format) */
178
+ private_network_id?: string | null | undefined;
179
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
180
+ command?: ContainerCommandList | undefined;
181
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
182
+ args?: ContainerArgsList | undefined;
183
+ /** Public URL of the container. This is the default endpoint generated by Scaleway to access the container from the Internet. */
184
+ public_endpoint?: string | undefined;
185
+ /** Private URL of the container. This endpoint is accessible from the Private Network the container is connected to, as well as from other Private Networks within the same VPC. */
186
+ private_endpoint?: string | null | undefined;
187
+ /** Whether default public endpoint is enabled or not. */
188
+ default_public_endpoint_enabled?: boolean | undefined;
189
+ /** Region in which the container exists. */
190
+ region?: string | undefined;
191
+ }
192
+ export type CreateDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
193
+ /** A list of arbitrary tags associated with the domain. */
194
+ export type CreateDomainRequestTagsList = Array<string>;
195
+ export interface CreateDomainRequest {
196
+ /** The region you want to target */
197
+ region?: CreateDomainRequestRegion | (string & {}) | undefined;
198
+ /** Unique ID of the container the domain will be assigned to. */
199
+ container_id: string;
200
+ /** Domain assigned to the container. */
201
+ hostname: string;
202
+ /** A list of arbitrary tags associated with the domain. */
203
+ tags?: CreateDomainRequestTagsList | undefined;
204
+ }
205
+ export type DomainStatus =
206
+ | "unknown_status"
207
+ | "creating"
208
+ | "updating"
209
+ | "deleting"
210
+ | "ready"
211
+ | "error"
212
+ | "locked"
213
+ | "locking"
214
+ | "upgrading";
215
+ /** A list of arbitrary tags associated with the domain. */
216
+ export type DomainTagsList = Array<string>;
217
+ export interface Domain {
218
+ /** Domain unique ID. (UUID format) */
219
+ id?: string | undefined;
220
+ /** Domain SRN. */
221
+ srn?: string | undefined;
222
+ /** Unique ID of the container the domain is assigned to. (UUID format) */
223
+ container_id?: string | undefined;
224
+ /** Domain assigned to the container. */
225
+ hostname?: string | undefined;
226
+ /** Domain status. */
227
+ status?: DomainStatus | undefined;
228
+ /** Domain last error message. */
229
+ error_message?: string | null | undefined;
230
+ /** Domain creation date. (RFC 3339 format) */
231
+ created_at?: string | null | undefined;
232
+ /** Domain last update date. (RFC 3339 format) */
233
+ updated_at?: string | null | undefined;
234
+ /** A list of arbitrary tags associated with the domain. */
235
+ tags?: DomainTagsList | undefined;
236
+ /** Region in which the domain exists. */
237
+ region?: string | undefined;
238
+ }
239
+ export type CreateNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
240
+ /** Namespace environment variables. */
241
+ export type CreateNamespaceRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
242
+ /** Namespace secret environment variables. */
243
+ export type CreateNamespaceRequestSecretEnvironmentVariablesMap = {
244
+ [key: string]: string | Redacted.Redacted<string> | undefined;
245
+ };
246
+ /** A list of arbitrary tags associated with the namespace. */
247
+ export type CreateNamespaceRequestTagsList = Array<string>;
248
+ export interface CreateNamespaceRequest {
249
+ /** The region you want to target */
250
+ region?: CreateNamespaceRequestRegion | (string & {}) | undefined;
251
+ /** Unique ID of the Project the namespace belongs to. */
252
+ project_id: string;
253
+ /** Namespace name. */
254
+ name: string;
255
+ /** Namespace description. */
256
+ description?: string | null | undefined;
257
+ /** Namespace environment variables. */
258
+ environment_variables?: CreateNamespaceRequestEnvironmentVariablesMap | undefined;
259
+ /** Namespace secret environment variables. */
260
+ secret_environment_variables?: CreateNamespaceRequestSecretEnvironmentVariablesMap | undefined;
261
+ /** A list of arbitrary tags associated with the namespace. */
262
+ tags?: CreateNamespaceRequestTagsList | undefined;
263
+ }
264
+ export type NamespaceStatus =
265
+ | "unknown_status"
266
+ | "updating"
267
+ | "deleting"
268
+ | "locking"
269
+ | "ready"
270
+ | "error"
271
+ | "locked"
272
+ | "creating"
273
+ | "upgrading";
274
+ /** Namespace environment variables. */
275
+ export type NamespaceEnvironmentVariablesMap = { [key: string]: string | undefined };
276
+ /** Namespace secret environment variables. */
277
+ export type NamespaceSecretEnvironmentVariablesMap = { [key: string]: string | undefined };
278
+ /** A list of arbitrary tags associated with the namespace. */
279
+ export type NamespaceTagsList = Array<string>;
280
+ export interface Namespace {
281
+ /** Namespace unique ID. (UUID format) */
282
+ id?: string | undefined;
283
+ /** Namespace SRN. */
284
+ srn?: string | undefined;
285
+ /** Namespace name. */
286
+ name?: string | undefined;
287
+ /** Unique ID of the Organization the namespace belongs to. (UUID format) */
288
+ organization_id?: string | undefined;
289
+ /** Unique ID of the Project the namespace belongs to. (UUID format) */
290
+ project_id?: string | undefined;
291
+ /** Namespace description. */
292
+ description?: string | undefined;
293
+ /** Namespace status. */
294
+ status?: NamespaceStatus | undefined;
295
+ /** Namespace last error message. */
296
+ error_message?: string | null | undefined;
297
+ /** Namespace environment variables. */
298
+ environment_variables?: NamespaceEnvironmentVariablesMap | undefined;
299
+ /** Namespace secret environment variables. */
300
+ secret_environment_variables?: NamespaceSecretEnvironmentVariablesMap | undefined;
301
+ /** A list of arbitrary tags associated with the namespace. */
302
+ tags?: NamespaceTagsList | undefined;
303
+ /** Namespace creation date. (RFC 3339 format) */
304
+ created_at?: string | null | undefined;
305
+ /** Namespace last update date. (RFC 3339 format) */
306
+ updated_at?: string | null | undefined;
307
+ /** Region in which the namespace will be created. */
308
+ region?: string | undefined;
309
+ }
310
+ export type CreateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
311
+ /** Tags of the trigger. */
312
+ export type CreateTriggerRequestTagsList = Array<string>;
313
+ export type CreateTriggerRequestDestinationConfigHttpMethod =
314
+ | "unknown_http_method"
315
+ | "get"
316
+ | "post"
317
+ | "put"
318
+ | "patch"
319
+ | "delete";
320
+ export interface CreateTriggerRequestDestinationConfig {
321
+ /** The HTTP path to send the request to (e.g., "/my-webhook-endpoint"). */
322
+ http_path: string;
323
+ /** The HTTP method to use when sending the request (e.g., get, post, put, patch, delete). Must be specified as lowercase. */
324
+ http_method: CreateTriggerRequestDestinationConfigHttpMethod | (string & {});
325
+ }
326
+ /** Additional headers to send to the container when the trigger is invoked. */
327
+ export type CreateTriggerRequestCronConfigHeadersMap = { [key: string]: string | undefined };
328
+ export interface CreateTriggerRequestCronConfig {
329
+ /** UNIX cron schedule to run job (e.g., "* * * * *"). */
330
+ schedule: string;
331
+ /** Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris"). */
332
+ timezone: string;
333
+ /** Body to send to the container when the trigger is invoked. */
334
+ body?: string | undefined;
335
+ /** Additional headers to send to the container when the trigger is invoked. */
336
+ headers?: CreateTriggerRequestCronConfigHeadersMap | undefined;
337
+ }
338
+ export interface CreateTriggerRequestSQSConfig {
339
+ /** The region where the SQS queue is hosted (e.g., "fr-par", "nl-ams"). */
340
+ region: string;
341
+ /** Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com"). */
342
+ endpoint: string;
343
+ /** The access key for accessing the SQS queue. */
344
+ access_key_id: string | Redacted.Redacted<string>;
345
+ /** The secret key for accessing the SQS queue. */
346
+ secret_access_key: string | Redacted.Redacted<string>;
347
+ /** The URL of the SQS queue to monitor for messages. */
348
+ queue_url: string;
349
+ }
350
+ /** The URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
351
+ export type CreateTriggerRequestNATSConfigServerUrlsList = Array<string>;
352
+ export interface CreateTriggerRequestNATSConfig {
353
+ /** The URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
354
+ server_urls: CreateTriggerRequestNATSConfigServerUrlsList;
355
+ /** NATS subject to subscribe to (e.g., "my-subject"). */
356
+ subject: string;
357
+ /** The content of the NATS credentials file. The credentials from this file will be used to authenticate with the NATS server and subscribe to the specified subject. */
358
+ credentials_file_content: string;
359
+ }
360
+ export interface CreateTriggerRequest {
361
+ /** The region you want to target */
362
+ region?: CreateTriggerRequestRegion | (string & {}) | undefined;
363
+ /** ID of the container to trigger. */
364
+ container_id: string;
365
+ /** Name of the trigger. */
366
+ name: string;
367
+ /** Description of the trigger. */
368
+ description?: string | null | undefined;
369
+ /** Tags of the trigger. */
370
+ tags?: CreateTriggerRequestTagsList | undefined;
371
+ /** Configuration of the destination to trigger. */
372
+ destination_config?: CreateTriggerRequestDestinationConfig | undefined;
373
+ /** Configuration for a cron source. One of cron_config, sqs_config, nats_config is required. */
374
+ cron_config?: CreateTriggerRequestCronConfig | null | undefined;
375
+ /** Configuration for an SQS queue source. One of cron_config, sqs_config, nats_config is required. */
376
+ sqs_config?: CreateTriggerRequestSQSConfig | null | undefined;
377
+ /** Configuration for a NATS source. One of cron_config, sqs_config, nats_config is required. */
378
+ nats_config?: CreateTriggerRequestNATSConfig | null | undefined;
379
+ }
380
+ /** Tags of the trigger. */
381
+ export type TriggerTagsList = Array<string>;
382
+ export type TriggerStatus =
383
+ | "unknown_status"
384
+ | "ready"
385
+ | "deleting"
386
+ | "error"
387
+ | "updating"
388
+ | "creating"
389
+ | "locking"
390
+ | "locked"
391
+ | "upgrading";
392
+ export type TriggerDestinationConfigHttpMethod =
393
+ | "unknown_http_method"
394
+ | "get"
395
+ | "post"
396
+ | "put"
397
+ | "patch"
398
+ | "delete";
399
+ export interface TriggerDestinationConfig {
400
+ /** The HTTP path to send the request to (e.g., "/my-webhook-endpoint"). */
401
+ http_path?: string | undefined;
402
+ /** The HTTP method to use when sending the request (e.g., get, post, put, patch, delete). Must be specified as lowercase. */
403
+ http_method?: TriggerDestinationConfigHttpMethod | undefined;
404
+ }
405
+ export type TriggerSourceType = "unknown_source_type" | "cron" | "sqs" | "nats";
406
+ /** Additional headers to send to the container when the trigger is invoked. */
407
+ export type TriggerCronConfigHeadersMap = { [key: string]: string | undefined };
408
+ export interface TriggerCronConfig {
409
+ /** UNIX cron schedule to run job (e.g., "* * * * *"). */
410
+ schedule?: string | undefined;
411
+ /** Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris"). */
412
+ timezone?: string | undefined;
413
+ /** Body to send to the container when the trigger is invoked. */
414
+ body?: string | undefined;
415
+ /** Additional headers to send to the container when the trigger is invoked. */
416
+ headers?: TriggerCronConfigHeadersMap | undefined;
417
+ }
418
+ export interface TriggerSQSConfig {
419
+ /** The region where the SQS queue is hosted (e.g., "fr-par", "nl-ams"). */
420
+ region?: string | undefined;
421
+ /** Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com"). */
422
+ endpoint?: string | undefined;
423
+ /** The access key for accessing the SQS queue. */
424
+ access_key_id?: string | Redacted.Redacted<string> | undefined;
425
+ /** The URL of the SQS queue to monitor for messages. */
426
+ queue_url?: string | undefined;
427
+ }
428
+ /** The URLs of the NATS servers (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
429
+ export type TriggerNATSConfigServerUrlsList = Array<string>;
430
+ export interface TriggerNATSConfig {
431
+ /** The URLs of the NATS servers (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
432
+ server_urls?: TriggerNATSConfigServerUrlsList | undefined;
433
+ /** NATS subject to subscribe to (e.g., "my-subject"). */
434
+ subject?: string | undefined;
435
+ }
436
+ export interface Trigger {
437
+ /** Trigger unique ID. (UUID format) */
438
+ id?: string | undefined;
439
+ /** Trigger SRN. */
440
+ srn?: string | undefined;
441
+ /** Name of the trigger. */
442
+ name?: string | undefined;
443
+ /** Description of the trigger. */
444
+ description?: string | undefined;
445
+ /** Tags of the trigger. */
446
+ tags?: TriggerTagsList | undefined;
447
+ /** Trigger status. */
448
+ status?: TriggerStatus | undefined;
449
+ /** Trigger last error message. */
450
+ error_message?: string | null | undefined;
451
+ /** ID of the container to trigger. (UUID format) */
452
+ container_id?: string | undefined;
453
+ /** Configuration of the destination to trigger. */
454
+ destination_config?: TriggerDestinationConfig | undefined;
455
+ /** Type of source that will trigger the container. */
456
+ source_type?: TriggerSourceType | undefined;
457
+ /** Configuration for a cron source. Precisely one of cron_config, sqs_config, nats_config can be set. */
458
+ cron_config?: TriggerCronConfig | null | undefined;
459
+ /** Configuration for an SQS queue source. Precisely one of cron_config, sqs_config, nats_config can be set. */
460
+ sqs_config?: TriggerSQSConfig | null | undefined;
461
+ /** Configuration for a NATS source. Precisely one of cron_config, sqs_config, nats_config can be set. */
462
+ nats_config?: TriggerNATSConfig | null | undefined;
463
+ /** Trigger creation date. (RFC 3339 format) */
464
+ created_at?: string | null | undefined;
465
+ /** Trigger last update date. (RFC 3339 format) */
466
+ updated_at?: string | null | undefined;
467
+ /** Region in which the trigger exists. */
468
+ region?: string | undefined;
469
+ }
470
+ export type DeleteContainerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
471
+ export interface DeleteContainerRequest {
472
+ /** The region you want to target */
473
+ region?: DeleteContainerRequestRegion | (string & {}) | undefined;
474
+ /** UUID of the container to delete. */
475
+ container_id: string;
476
+ }
477
+ export type DeleteDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
478
+ export interface DeleteDomainRequest {
479
+ /** The region you want to target */
480
+ region?: DeleteDomainRequestRegion | (string & {}) | undefined;
481
+ /** UUID of the domain to delete. */
482
+ domain_id: string;
483
+ }
484
+ export type DeleteNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
485
+ export interface DeleteNamespaceRequest {
486
+ /** The region you want to target */
487
+ region?: DeleteNamespaceRequestRegion | (string & {}) | undefined;
488
+ /** UUID of the namespace to delete. */
489
+ namespace_id: string;
490
+ }
491
+ export type DeleteTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
492
+ export interface DeleteTriggerRequest {
493
+ /** The region you want to target */
494
+ region?: DeleteTriggerRequestRegion | (string & {}) | undefined;
495
+ /** ID of the trigger to delete. */
496
+ trigger_id: string;
497
+ }
498
+ export type GetContainerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
499
+ export interface GetContainerRequest {
500
+ /** The region you want to target */
501
+ region?: GetContainerRequestRegion | (string & {}) | undefined;
502
+ /** UUID of the container to get. */
503
+ container_id: string;
504
+ }
505
+ export type GetDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
506
+ export interface GetDomainRequest {
507
+ /** The region you want to target */
508
+ region?: GetDomainRequestRegion | (string & {}) | undefined;
509
+ /** UUID of the domain to get. */
510
+ domain_id: string;
511
+ }
512
+ export type GetNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
513
+ export interface GetNamespaceRequest {
514
+ /** The region you want to target */
515
+ region?: GetNamespaceRequestRegion | (string & {}) | undefined;
516
+ /** UUID of the namespace to get. */
517
+ namespace_id: string;
518
+ }
519
+ export type GetPrivateEndpointCertificateAuthorityRequestRegion =
520
+ | "fr-par"
521
+ | "nl-ams"
522
+ | "pl-waw"
523
+ | "it-mil";
524
+ export interface GetPrivateEndpointCertificateAuthorityRequest {
525
+ /** The region you want to target */
526
+ region?: GetPrivateEndpointCertificateAuthorityRequestRegion | (string & {}) | undefined;
527
+ }
528
+ export interface ScalewayStdFile {
529
+ name?: string | undefined;
530
+ content_type?: string | undefined;
531
+ content?: string | undefined;
532
+ }
533
+ export interface GetPrivateEndpointCertificateAuthorityRawRequest {
534
+ /** The region you want to target */
535
+ region?: GetPrivateEndpointCertificateAuthorityRequestRegion | (string & {}) | undefined;
536
+ }
537
+ export interface GetPrivateEndpointCertificateAuthorityRawResponse {
538
+ body: BinaryStream;
539
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
540
+ contentType?: string | undefined;
541
+ }
542
+ export type GetTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
543
+ export interface GetTriggerRequest {
544
+ /** The region you want to target */
545
+ region?: GetTriggerRequestRegion | (string & {}) | undefined;
546
+ /** ID of the trigger to get. */
547
+ trigger_id: string;
548
+ }
549
+ export type ListContainersRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
550
+ export type ListContainersRequestOrderBy =
551
+ | "created_at_asc"
552
+ | "created_at_desc"
553
+ | "name_asc"
554
+ | "name_desc";
555
+ export interface ListContainersRequest {
556
+ /** The region you want to target */
557
+ region?: ListContainersRequestRegion | (string & {}) | undefined;
558
+ page?: number | undefined;
559
+ page_size?: number | undefined;
560
+ order_by?: ListContainersRequestOrderBy | (string & {}) | undefined;
561
+ organization_id?: string | undefined;
562
+ project_id?: string | undefined;
563
+ namespace_id?: string | undefined;
564
+ name?: string | undefined;
565
+ }
566
+ export type ListContainersResponseContainersList = Array<Container>;
567
+ export interface ListContainersResponse {
568
+ containers: ListContainersResponseContainersList;
569
+ total_count?: number | undefined;
570
+ }
571
+ export type ListDomainsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
572
+ export type ListDomainsRequestOrderBy =
573
+ | "created_at_asc"
574
+ | "created_at_desc"
575
+ | "hostname_asc"
576
+ | "hostname_desc";
577
+ export interface ListDomainsRequest {
578
+ /** The region you want to target */
579
+ region?: ListDomainsRequestRegion | (string & {}) | undefined;
580
+ page?: number | undefined;
581
+ page_size?: number | undefined;
582
+ order_by?: ListDomainsRequestOrderBy | (string & {}) | undefined;
583
+ organization_id?: string | undefined;
584
+ project_id?: string | undefined;
585
+ namespace_id?: string | undefined;
586
+ container_id?: string | undefined;
587
+ }
588
+ export type ListDomainsResponseDomainsList = Array<Domain>;
589
+ export interface ListDomainsResponse {
590
+ domains: ListDomainsResponseDomainsList;
591
+ total_count?: number | undefined;
592
+ }
593
+ export type ListNamespacesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
594
+ export type ListNamespacesRequestOrderBy =
595
+ | "created_at_asc"
596
+ | "created_at_desc"
597
+ | "name_asc"
598
+ | "name_desc";
599
+ export interface ListNamespacesRequest {
600
+ /** The region you want to target */
601
+ region?: ListNamespacesRequestRegion | (string & {}) | undefined;
602
+ page?: number | undefined;
603
+ page_size?: number | undefined;
604
+ order_by?: ListNamespacesRequestOrderBy | (string & {}) | undefined;
605
+ organization_id?: string | undefined;
606
+ project_id?: string | undefined;
607
+ name?: string | undefined;
608
+ }
609
+ export type ListNamespacesResponseNamespacesList = Array<Namespace>;
610
+ export interface ListNamespacesResponse {
611
+ namespaces: ListNamespacesResponseNamespacesList;
612
+ total_count?: number | undefined;
613
+ }
614
+ export type ListTriggersRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
615
+ export type ListTriggersRequestOrderBy =
616
+ | "created_at_asc"
617
+ | "created_at_desc"
618
+ | "name_asc"
619
+ | "name_desc";
620
+ export interface ListTriggersRequest {
621
+ /** The region you want to target */
622
+ region?: ListTriggersRequestRegion | (string & {}) | undefined;
623
+ page?: number | undefined;
624
+ page_size?: number | undefined;
625
+ order_by?: ListTriggersRequestOrderBy | (string & {}) | undefined;
626
+ organization_id?: string | undefined;
627
+ project_id?: string | undefined;
628
+ namespace_id?: string | undefined;
629
+ container_id?: string | undefined;
630
+ trigger_type?: TriggerSourceType | (string & {}) | undefined;
631
+ }
632
+ export type ListTriggersResponseTriggersList = Array<Trigger>;
633
+ export interface ListTriggersResponse {
634
+ triggers: ListTriggersResponseTriggersList;
635
+ total_count?: number | undefined;
636
+ }
637
+ export type RedeployContainerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
638
+ export interface RedeployContainerRequest {
639
+ /** The region you want to target */
640
+ region?: RedeployContainerRequestRegion | (string & {}) | undefined;
641
+ /** ID of the container to redeploy. */
642
+ container_id: string;
643
+ }
644
+ export type UpdateContainerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
645
+ /** Environment variables of the container. */
646
+ export type UpdateContainerRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
647
+ /** Secret environment variables of the container. */
648
+ export type UpdateContainerRequestSecretEnvironmentVariablesMap = {
649
+ [key: string]: string | Redacted.Redacted<string> | undefined;
650
+ };
651
+ export interface UpdateContainerRequestProbeHTTPProbe {
652
+ path?: string | null | undefined;
653
+ }
654
+ export interface UpdateContainerRequestProbe {
655
+ failure_threshold?: number | null | undefined;
656
+ /** (in seconds) */
657
+ interval?: string | null | undefined;
658
+ /** (in seconds) */
659
+ timeout?: string | null | undefined;
660
+ /** Precisely one of http, tcp can be set. */
661
+ http?: UpdateContainerRequestProbeHTTPProbe | null | undefined;
662
+ /** Precisely one of http, tcp can be set. */
663
+ tcp?: unknown | null | undefined;
664
+ }
665
+ /** Tags of the Serverless Container. */
666
+ export type UpdateContainerRequestTagsList = Array<unknown>;
667
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
668
+ export type UpdateContainerRequestCommandList = Array<unknown>;
669
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
670
+ export type UpdateContainerRequestArgsList = Array<unknown>;
671
+ export interface UpdateContainerRequest {
672
+ /** The region you want to target */
673
+ region?: UpdateContainerRequestRegion | (string & {}) | undefined;
674
+ /** UUID of the container to update. */
675
+ container_id: string;
676
+ /** Environment variables of the container. */
677
+ environment_variables?: UpdateContainerRequestEnvironmentVariablesMap | null | undefined;
678
+ /** Secret environment variables of the container. */
679
+ secret_environment_variables?:
680
+ | UpdateContainerRequestSecretEnvironmentVariablesMap
681
+ | null
682
+ | undefined;
683
+ /** Minimum number of instances to scale the container to. */
684
+ min_scale?: number | null | undefined;
685
+ /** Maximum number of instances to scale the container to. */
686
+ max_scale?: number | null | undefined;
687
+ /** Memory limit of the container in bytes. (in bytes) */
688
+ memory_limit_bytes?: number | null | undefined;
689
+ /** CPU limit of the container in mvCPU. */
690
+ mvcpu_limit?: number | null | undefined;
691
+ /** Processing time limit for the container. (in seconds) */
692
+ timeout?: string | null | undefined;
693
+ /** Privacy policy of the container. */
694
+ privacy?: ContainerPrivacy | (string & {}) | undefined;
695
+ /** Container description. */
696
+ description?: string | null | undefined;
697
+ /** Image reference (e.g. with sample image: "rg.fr-par.scw.cloud/serverless-catalog/sample-website:latest"). */
698
+ image?: string | null | undefined;
699
+ /** Protocol the container uses. */
700
+ protocol?: ContainerProtocol | (string & {}) | undefined;
701
+ /** Port the container listens on. */
702
+ port?: number | null | undefined;
703
+ /** If true, it will allow only HTTPS connections to access your container to prevent it from being triggered by insecure connections (HTTP). */
704
+ https_connection_only?: boolean | null | undefined;
705
+ /** Execution environment of the container. */
706
+ sandbox?: ContainerSandbox | (string & {}) | undefined;
707
+ /** Local storage limit of the container (in bytes). (in bytes) */
708
+ local_storage_limit_bytes?: number | null | undefined;
709
+ /** Parameter used to decide when to scale up or down. */
710
+ scaling_option?: unknown | undefined;
711
+ /** Defines how to check if the container is running and healthy. If the liveness probe fails, the container will be marked as unhealthy, and won't receive traffic anymore. It is performed periodically during the container's lifetime. The liveness probe is not executed until the startup probe (if defined) is successful. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
712
+ liveness_probe?: unknown | undefined;
713
+ /** Defines how to check if the container has started successfully. If the startup probe fails, the container will be restarted. This check is useful for applications that might take a long time to start. It is only performed when the container is starting. Possible check types: - http: Perform HTTP check on the container with the specified path. - tcp: Perform TCP check on the container. */
714
+ startup_probe?: UpdateContainerRequestProbe | undefined;
715
+ /** Tags of the Serverless Container. */
716
+ tags?: UpdateContainerRequestTagsList | null | undefined;
717
+ /** ID of the Private Network the container is connected to. When connected to a Private Network, the container can access other Scaleway resources in this Private Network. */
718
+ private_network_id?: string | null | undefined;
719
+ /** Container command. Command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or ENTRYPOINT script to run. */
720
+ command?: UpdateContainerRequestCommandList | null | undefined;
721
+ /** Container arguments. Arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters. */
722
+ args?: UpdateContainerRequestArgsList | null | undefined;
723
+ /** Whether to allow incoming traffic from the Private Networks within the VPC. When enabled, the container can receive traffic from resources connected to any Private Network within the same VPC. */
724
+ enable_private_endpoint?: boolean | null | undefined;
725
+ /** Whether default public endpoint is enabled or not. When not enabled (set to false), calling the Container through this endpoint will return a 404. Despite this, creating custom domains is still possible. */
726
+ enable_default_public_endpoint?: boolean | null | undefined;
727
+ }
728
+ export type UpdateDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
729
+ /** A list of arbitrary tags associated with the domain. */
730
+ export type UpdateDomainRequestTagsList = Array<unknown>;
731
+ export interface UpdateDomainRequest {
732
+ /** The region you want to target */
733
+ region?: UpdateDomainRequestRegion | (string & {}) | undefined;
734
+ /** UUID of the domain to update. */
735
+ domain_id: string;
736
+ /** A list of arbitrary tags associated with the domain. */
737
+ tags?: UpdateDomainRequestTagsList | null | undefined;
738
+ }
739
+ export type UpdateNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
740
+ /** Namespace environment variables. */
741
+ export type UpdateNamespaceRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
742
+ /** Namespace secret environment variables. */
743
+ export type UpdateNamespaceRequestSecretEnvironmentVariablesMap = {
744
+ [key: string]: string | Redacted.Redacted<string> | undefined;
745
+ };
746
+ /** A list of arbitrary tags associated with the namespace. */
747
+ export type UpdateNamespaceRequestTagsList = Array<unknown>;
748
+ export interface UpdateNamespaceRequest {
749
+ /** The region you want to target */
750
+ region?: UpdateNamespaceRequestRegion | (string & {}) | undefined;
751
+ /** UUID of the namespace to update. */
752
+ namespace_id: string;
753
+ /** Namespace description. */
754
+ description?: string | null | undefined;
755
+ /** Namespace environment variables. */
756
+ environment_variables?: UpdateNamespaceRequestEnvironmentVariablesMap | null | undefined;
757
+ /** Namespace secret environment variables. */
758
+ secret_environment_variables?:
759
+ | UpdateNamespaceRequestSecretEnvironmentVariablesMap
760
+ | null
761
+ | undefined;
762
+ /** A list of arbitrary tags associated with the namespace. */
763
+ tags?: UpdateNamespaceRequestTagsList | null | undefined;
764
+ }
765
+ export type UpdateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
766
+ /** Tags of the trigger. */
767
+ export type UpdateTriggerRequestTagsList = Array<unknown>;
768
+ export type UpdateTriggerRequestDestinationConfigHttpMethod =
769
+ | "unknown_http_method"
770
+ | "get"
771
+ | "post"
772
+ | "put"
773
+ | "patch"
774
+ | "delete";
775
+ export interface UpdateTriggerRequestDestinationConfig {
776
+ /** The HTTP path to send the request to (e.g., "/my-webhook-endpoint"). */
777
+ http_path?: string | null | undefined;
778
+ /** The HTTP method to use when sending the request (e.g., get, post, put, patch, delete). Must be specified as lowercase. */
779
+ http_method?: UpdateTriggerRequestDestinationConfigHttpMethod | (string & {}) | undefined;
780
+ }
781
+ /** Additional headers to send to the container when the trigger is invoked. */
782
+ export type UpdateTriggerRequestCronConfigHeadersMap = { [key: string]: string | undefined };
783
+ export interface UpdateTriggerRequestCronConfig {
784
+ /** UNIX cron schedule to run job (e.g., "* * * * *"). */
785
+ schedule?: string | null | undefined;
786
+ /** Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris"). */
787
+ timezone?: string | null | undefined;
788
+ /** Body to send to the container when the trigger is invoked. */
789
+ body?: string | null | undefined;
790
+ /** Additional headers to send to the container when the trigger is invoked. */
791
+ headers?: UpdateTriggerRequestCronConfigHeadersMap | null | undefined;
792
+ }
793
+ export interface UpdateTriggerRequestSQSConfig {
794
+ /** The region where the SQS queue is hosted (e.g., "fr-par", "nl-ams"). */
795
+ region?: string | null | undefined;
796
+ /** Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com"). */
797
+ endpoint?: string | null | undefined;
798
+ /** The access key for accessing the SQS queue. */
799
+ access_key_id?: string | Redacted.Redacted<string> | null | undefined;
800
+ /** The secret key for accessing the SQS queue. */
801
+ secret_access_key?: string | Redacted.Redacted<string> | null | undefined;
802
+ /** The URL of the SQS queue to monitor for messages. */
803
+ queue_url?: string | null | undefined;
804
+ }
805
+ /** The URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
806
+ export type UpdateTriggerRequestNATSConfigServerUrlsList = Array<unknown>;
807
+ export interface UpdateTriggerRequestNATSConfig {
808
+ /** The URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222"). */
809
+ server_urls?: UpdateTriggerRequestNATSConfigServerUrlsList | null | undefined;
810
+ /** NATS subject to subscribe to (e.g., "my-subject"). */
811
+ subject?: string | null | undefined;
812
+ /** The content of the NATS credentials file. The credentials from this file will be used to authenticate with the NATS server and subscribe to the specified subject. */
813
+ credentials_file_content?: string | null | undefined;
814
+ }
815
+ export interface UpdateTriggerRequest {
816
+ /** The region you want to target */
817
+ region?: UpdateTriggerRequestRegion | (string & {}) | undefined;
818
+ /** ID of the trigger to update. */
819
+ trigger_id: string;
820
+ /** Name of the trigger. */
821
+ name?: string | null | undefined;
822
+ /** Description of the trigger. */
823
+ description?: string | null | undefined;
824
+ /** Tags of the trigger. */
825
+ tags?: UpdateTriggerRequestTagsList | null | undefined;
826
+ /** Configuration of the destination to trigger. */
827
+ destination_config?: UpdateTriggerRequestDestinationConfig | undefined;
828
+ /** Configuration for a cron source. Precisely one of cron_config, sqs_config, nats_config can be set. */
829
+ cron_config?: UpdateTriggerRequestCronConfig | null | undefined;
830
+ /** Configuration for an SQS queue source. Precisely one of cron_config, sqs_config, nats_config can be set. */
831
+ sqs_config?: UpdateTriggerRequestSQSConfig | null | undefined;
832
+ /** Configuration for a NATS source. Precisely one of cron_config, sqs_config, nats_config can be set. */
833
+ nats_config?: UpdateTriggerRequestNATSConfig | null | undefined;
834
+ }
835
+ export type CreateContainerError = ScalewayOpError;
836
+ /** Create a new container in a namespace. Name must be unique inside the given namespace. */
837
+ export const createContainer: API.OperationMethod<
838
+ CreateContainerRequest,
839
+ Container,
840
+ CreateContainerError,
841
+ ScalewayOpContext
842
+ > = /*@__PURE__*/ API.make(() => ({
843
+ input: __S(0, __c0, 0) as any as S.Schema<CreateContainerRequest>,
844
+ output: __S(32, __c4, 0) as any as S.Schema<Container>,
845
+ errors: [],
846
+ serviceErrors: ScalewayServiceErrors,
847
+ protocol: ScalewayProtocol,
848
+ retry: Retry.Retry,
849
+ telemetry: TELEMETRY,
850
+ span: "CreateContainer",
851
+ }));
852
+
853
+ export type CreateDomainError = ScalewayOpError;
854
+ /** Create a new custom domain for the container with the specified ID. */
855
+ export const createDomain: API.OperationMethod<
856
+ CreateDomainRequest,
857
+ Domain,
858
+ CreateDomainError,
859
+ ScalewayOpContext
860
+ > = /*@__PURE__*/ API.make(() => ({
861
+ input: __S(40, __c5, 0) as any as S.Schema<CreateDomainRequest>,
862
+ output: __S(48, __c6, 0) as any as S.Schema<Domain>,
863
+ errors: [],
864
+ serviceErrors: ScalewayServiceErrors,
865
+ protocol: ScalewayProtocol,
866
+ retry: Retry.Retry,
867
+ telemetry: TELEMETRY,
868
+ span: "CreateDomain",
869
+ }));
870
+
871
+ export type CreateNamespaceError = ScalewayOpError;
872
+ /** Create a new namespace. Namespace name must be unique inside a project. */
873
+ export const createNamespace: API.OperationMethod<
874
+ CreateNamespaceRequest,
875
+ Namespace,
876
+ CreateNamespaceError,
877
+ ScalewayOpContext
878
+ > = /*@__PURE__*/ API.make(() => ({
879
+ input: __S(144, __c18, 0) as any as S.Schema<CreateNamespaceRequest>,
880
+ output: __S(152, __c19, 0) as any as S.Schema<Namespace>,
881
+ errors: [],
882
+ serviceErrors: ScalewayServiceErrors,
883
+ protocol: ScalewayProtocol,
884
+ retry: Retry.Retry,
885
+ telemetry: TELEMETRY,
886
+ span: "CreateNamespace",
887
+ }));
888
+
889
+ export type CreateTriggerError = ScalewayOpError;
890
+ /** Create a new trigger for the container with the specified ID. */
891
+ export const createTrigger: API.OperationMethod<
892
+ CreateTriggerRequest,
893
+ Trigger,
894
+ CreateTriggerError,
895
+ ScalewayOpContext
896
+ > = /*@__PURE__*/ API.make(() => ({
897
+ input: __S(188, __c23, 4) as any as S.Schema<CreateTriggerRequest>,
898
+ output: __S(196, __c24, 4) as any as S.Schema<Trigger>,
899
+ errors: [],
900
+ serviceErrors: ScalewayServiceErrors,
901
+ protocol: ScalewayProtocol,
902
+ retry: Retry.Retry,
903
+ telemetry: TELEMETRY,
904
+ span: "CreateTrigger",
905
+ }));
906
+
907
+ export type DeleteContainerError = ScalewayOpError;
908
+ /** Delete the container associated with the specified ID. It also deletes in cascade any resource linked to the container (crons, tokens, etc.). This action **cannot** be undone. */
909
+ export const deleteContainer: API.OperationMethod<
910
+ DeleteContainerRequest,
911
+ Container,
912
+ DeleteContainerError,
913
+ ScalewayOpContext
914
+ > = /*@__PURE__*/ API.make(() => ({
915
+ input: __S(200, __c25, 0) as any as S.Schema<DeleteContainerRequest>,
916
+ output: __S(32, __c4, 0) as any as S.Schema<Container>,
917
+ errors: [],
918
+ serviceErrors: ScalewayServiceErrors,
919
+ protocol: ScalewayProtocol,
920
+ retry: Retry.Retry,
921
+ telemetry: TELEMETRY,
922
+ span: "DeleteContainer",
923
+ }));
924
+
925
+ export type DeleteDomainError = ScalewayOpError;
926
+ /** Delete the custom domain associated with the specified ID. */
927
+ export const deleteDomain: API.OperationMethod<
928
+ DeleteDomainRequest,
929
+ Domain,
930
+ DeleteDomainError,
931
+ ScalewayOpContext
932
+ > = /*@__PURE__*/ API.make(() => ({
933
+ input: __S(208, __c26, 0) as any as S.Schema<DeleteDomainRequest>,
934
+ output: __S(48, __c6, 0) as any as S.Schema<Domain>,
935
+ errors: [],
936
+ serviceErrors: ScalewayServiceErrors,
937
+ protocol: ScalewayProtocol,
938
+ retry: Retry.Retry,
939
+ telemetry: TELEMETRY,
940
+ span: "DeleteDomain",
941
+ }));
942
+
943
+ export type DeleteNamespaceError = ScalewayOpError;
944
+ /** Delete the namespace associated with the specified ID. It also deletes in cascade any resource inside the namespace. This action **cannot** be undone. */
945
+ export const deleteNamespace: API.OperationMethod<
946
+ DeleteNamespaceRequest,
947
+ Namespace,
948
+ DeleteNamespaceError,
949
+ ScalewayOpContext
950
+ > = /*@__PURE__*/ API.make(() => ({
951
+ input: __S(216, __c27, 0) as any as S.Schema<DeleteNamespaceRequest>,
952
+ output: __S(152, __c19, 0) as any as S.Schema<Namespace>,
953
+ errors: [],
954
+ serviceErrors: ScalewayServiceErrors,
955
+ protocol: ScalewayProtocol,
956
+ retry: Retry.Retry,
957
+ telemetry: TELEMETRY,
958
+ span: "DeleteNamespace",
959
+ }));
960
+
961
+ export type DeleteTriggerError = ScalewayOpError;
962
+ /** Delete the trigger associated with the specified ID. This action **cannot** be undone. */
963
+ export const deleteTrigger: API.OperationMethod<
964
+ DeleteTriggerRequest,
965
+ Trigger,
966
+ DeleteTriggerError,
967
+ ScalewayOpContext
968
+ > = /*@__PURE__*/ API.make(() => ({
969
+ input: __S(224, __c28, 0) as any as S.Schema<DeleteTriggerRequest>,
970
+ output: __S(196, __c24, 4) as any as S.Schema<Trigger>,
971
+ errors: [],
972
+ serviceErrors: ScalewayServiceErrors,
973
+ protocol: ScalewayProtocol,
974
+ retry: Retry.Retry,
975
+ telemetry: TELEMETRY,
976
+ span: "DeleteTrigger",
977
+ }));
978
+
979
+ export type GetContainerError = ScalewayOpError;
980
+ /** Get the container associated with the specified ID. */
981
+ export const getContainer: API.OperationMethod<
982
+ GetContainerRequest,
983
+ Container,
984
+ GetContainerError,
985
+ ScalewayOpContext
986
+ > = /*@__PURE__*/ API.make(() => ({
987
+ input: __S(232, __c29, 0) as any as S.Schema<GetContainerRequest>,
988
+ output: __S(32, __c4, 0) as any as S.Schema<Container>,
989
+ errors: [],
990
+ serviceErrors: ScalewayServiceErrors,
991
+ protocol: ScalewayProtocol,
992
+ retry: Retry.Retry,
993
+ telemetry: TELEMETRY,
994
+ span: "GetContainer",
995
+ }));
996
+
997
+ export type GetDomainError = ScalewayOpError;
998
+ /** Get the custom domain associated with the specified ID. */
999
+ export const getDomain: API.OperationMethod<
1000
+ GetDomainRequest,
1001
+ Domain,
1002
+ GetDomainError,
1003
+ ScalewayOpContext
1004
+ > = /*@__PURE__*/ API.make(() => ({
1005
+ input: __S(240, __c30, 0) as any as S.Schema<GetDomainRequest>,
1006
+ output: __S(48, __c6, 0) as any as S.Schema<Domain>,
1007
+ errors: [],
1008
+ serviceErrors: ScalewayServiceErrors,
1009
+ protocol: ScalewayProtocol,
1010
+ retry: Retry.Retry,
1011
+ telemetry: TELEMETRY,
1012
+ span: "GetDomain",
1013
+ }));
1014
+
1015
+ export type GetNamespaceError = ScalewayOpError;
1016
+ /** Get the namespace associated with the specified ID. */
1017
+ export const getNamespace: API.OperationMethod<
1018
+ GetNamespaceRequest,
1019
+ Namespace,
1020
+ GetNamespaceError,
1021
+ ScalewayOpContext
1022
+ > = /*@__PURE__*/ API.make(() => ({
1023
+ input: __S(56, __c7, 0) as any as S.Schema<GetNamespaceRequest>,
1024
+ output: __S(152, __c19, 0) as any as S.Schema<Namespace>,
1025
+ errors: [],
1026
+ serviceErrors: ScalewayServiceErrors,
1027
+ protocol: ScalewayProtocol,
1028
+ retry: Retry.Retry,
1029
+ telemetry: TELEMETRY,
1030
+ span: "GetNamespace",
1031
+ }));
1032
+
1033
+ export type GetPrivateEndpointCertificateAuthorityError = ScalewayOpError;
1034
+ /** Get the private endpoint certificate authority. When enabling private endpoints for your containers, you need to trust this CA to establish HTTPS connections to them. */
1035
+ export const getPrivateEndpointCertificateAuthority: API.OperationMethod<
1036
+ GetPrivateEndpointCertificateAuthorityRequest,
1037
+ ScalewayStdFile,
1038
+ GetPrivateEndpointCertificateAuthorityError,
1039
+ ScalewayOpContext
1040
+ > = /*@__PURE__*/ API.make(() => ({
1041
+ input: __S(64, __c8, 0) as any as S.Schema<GetPrivateEndpointCertificateAuthorityRequest>,
1042
+ output: __S(65, __c8, 1) as any as S.Schema<ScalewayStdFile>,
1043
+ errors: [],
1044
+ serviceErrors: ScalewayServiceErrors,
1045
+ protocol: ScalewayProtocol,
1046
+ retry: Retry.Retry,
1047
+ telemetry: TELEMETRY,
1048
+ span: "GetPrivateEndpointCertificateAuthority",
1049
+ }));
1050
+
1051
+ export type GetPrivateEndpointCertificateAuthorityRawError = ScalewayOpError;
1052
+ /** The file `getPrivateEndpointCertificateAuthority` returns, as bytes (`?dl=1`), rather than the JSON file object. */
1053
+ export const getPrivateEndpointCertificateAuthorityRaw: API.OperationMethod<
1054
+ GetPrivateEndpointCertificateAuthorityRawRequest,
1055
+ GetPrivateEndpointCertificateAuthorityRawResponse,
1056
+ GetPrivateEndpointCertificateAuthorityRawError,
1057
+ ScalewayOpContext
1058
+ > = /*@__PURE__*/ API.make(() => ({
1059
+ input: __S(72, __c9, 0) as any as S.Schema<GetPrivateEndpointCertificateAuthorityRawRequest>,
1060
+ output: __S(73, __c9, 1) as any as S.Schema<GetPrivateEndpointCertificateAuthorityRawResponse>,
1061
+ errors: [],
1062
+ serviceErrors: ScalewayServiceErrors,
1063
+ protocol: ScalewayProtocol,
1064
+ retry: Retry.Retry,
1065
+ telemetry: TELEMETRY,
1066
+ span: "GetPrivateEndpointCertificateAuthorityRaw",
1067
+ }));
1068
+
1069
+ export type GetTriggerError = ScalewayOpError;
1070
+ /** Get the trigger associated with the specified ID. */
1071
+ export const getTrigger: API.OperationMethod<
1072
+ GetTriggerRequest,
1073
+ Trigger,
1074
+ GetTriggerError,
1075
+ ScalewayOpContext
1076
+ > = /*@__PURE__*/ API.make(() => ({
1077
+ input: __S(80, __c10, 0) as any as S.Schema<GetTriggerRequest>,
1078
+ output: __S(196, __c24, 4) as any as S.Schema<Trigger>,
1079
+ errors: [],
1080
+ serviceErrors: ScalewayServiceErrors,
1081
+ protocol: ScalewayProtocol,
1082
+ retry: Retry.Retry,
1083
+ telemetry: TELEMETRY,
1084
+ span: "GetTrigger",
1085
+ }));
1086
+
1087
+ export type ListContainersError = ScalewayOpError;
1088
+ /** List all containers the caller can access (read permission). By default, the containers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, and `name`. */
1089
+ export const listContainers: API.PaginatedOperationMethod<
1090
+ ListContainersRequest,
1091
+ ListContainersResponse,
1092
+ ListContainersError,
1093
+ ScalewayOpContext,
1094
+ Container
1095
+ > = /*@__PURE__*/ API.makePaginated(
1096
+ () => ({
1097
+ input: __S(88, __c11, 0) as any as S.Schema<ListContainersRequest>,
1098
+ output: __S(90, __c11, 2) as any as S.Schema<ListContainersResponse>,
1099
+ errors: [],
1100
+ serviceErrors: ScalewayServiceErrors,
1101
+ protocol: ScalewayProtocol,
1102
+ retry: Retry.Retry,
1103
+ telemetry: TELEMETRY,
1104
+ span: "ListContainers",
1105
+ pagination: {
1106
+ mode: "page",
1107
+ inputToken: "page",
1108
+ outputToken: "total_count",
1109
+ items: "containers",
1110
+ pageSize: "page_size",
1111
+ } as const,
1112
+ }),
1113
+ paginateByTotalCount,
1114
+ ) as any;
1115
+
1116
+ export type ListDomainsError = ScalewayOpError;
1117
+ /** List all custom domains the caller can access (read permission). By default, the custom domains listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. Additional parameters can be set in the query to filter the output, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`. */
1118
+ export const listDomains: API.PaginatedOperationMethod<
1119
+ ListDomainsRequest,
1120
+ ListDomainsResponse,
1121
+ ListDomainsError,
1122
+ ScalewayOpContext,
1123
+ Domain
1124
+ > = /*@__PURE__*/ API.makePaginated(
1125
+ () => ({
1126
+ input: __S(96, __c12, 0) as any as S.Schema<ListDomainsRequest>,
1127
+ output: __S(98, __c12, 2) as any as S.Schema<ListDomainsResponse>,
1128
+ errors: [],
1129
+ serviceErrors: ScalewayServiceErrors,
1130
+ protocol: ScalewayProtocol,
1131
+ retry: Retry.Retry,
1132
+ telemetry: TELEMETRY,
1133
+ span: "ListDomains",
1134
+ pagination: {
1135
+ mode: "page",
1136
+ inputToken: "page",
1137
+ outputToken: "total_count",
1138
+ items: "domains",
1139
+ pageSize: "page_size",
1140
+ } as const,
1141
+ }),
1142
+ paginateByTotalCount,
1143
+ ) as any;
1144
+
1145
+ export type ListNamespacesError = ScalewayOpError;
1146
+ /** List all namespaces the caller can access (read permission). By default, the namespaces listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, and `name`. */
1147
+ export const listNamespaces: API.PaginatedOperationMethod<
1148
+ ListNamespacesRequest,
1149
+ ListNamespacesResponse,
1150
+ ListNamespacesError,
1151
+ ScalewayOpContext,
1152
+ Namespace
1153
+ > = /*@__PURE__*/ API.makePaginated(
1154
+ () => ({
1155
+ input: __S(104, __c13, 0) as any as S.Schema<ListNamespacesRequest>,
1156
+ output: __S(106, __c13, 2) as any as S.Schema<ListNamespacesResponse>,
1157
+ errors: [],
1158
+ serviceErrors: ScalewayServiceErrors,
1159
+ protocol: ScalewayProtocol,
1160
+ retry: Retry.Retry,
1161
+ telemetry: TELEMETRY,
1162
+ span: "ListNamespaces",
1163
+ pagination: {
1164
+ mode: "page",
1165
+ inputToken: "page",
1166
+ outputToken: "total_count",
1167
+ items: "namespaces",
1168
+ pageSize: "page_size",
1169
+ } as const,
1170
+ }),
1171
+ paginateByTotalCount,
1172
+ ) as any;
1173
+
1174
+ export type ListTriggersError = ScalewayOpError;
1175
+ /** List all triggers the caller can access (read permission). By default, the triggers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, `container_id` or `trigger_type`. */
1176
+ export const listTriggers: API.PaginatedOperationMethod<
1177
+ ListTriggersRequest,
1178
+ ListTriggersResponse,
1179
+ ListTriggersError,
1180
+ ScalewayOpContext,
1181
+ Trigger
1182
+ > = /*@__PURE__*/ API.makePaginated(
1183
+ () => ({
1184
+ input: __S(112, __c14, 0) as any as S.Schema<ListTriggersRequest>,
1185
+ output: __S(114, __c14, 2) as any as S.Schema<ListTriggersResponse>,
1186
+ errors: [],
1187
+ serviceErrors: ScalewayServiceErrors,
1188
+ protocol: ScalewayProtocol,
1189
+ retry: Retry.Retry,
1190
+ telemetry: TELEMETRY,
1191
+ span: "ListTriggers",
1192
+ pagination: {
1193
+ mode: "page",
1194
+ inputToken: "page",
1195
+ outputToken: "total_count",
1196
+ items: "triggers",
1197
+ pageSize: "page_size",
1198
+ } as const,
1199
+ }),
1200
+ paginateByTotalCount,
1201
+ ) as any;
1202
+
1203
+ export type RedeployContainerError = ScalewayOpError;
1204
+ /** Redeploy a container Performs a rollout of the container by creating new instances with the latest image version and terminating the old instances. When using mutable registry image references (e.g. `my-registry-namespace/image:tag`), this endpoint can be used to force the container to use the most recent image version available in the registry. */
1205
+ export const redeployContainer: API.OperationMethod<
1206
+ RedeployContainerRequest,
1207
+ Container,
1208
+ RedeployContainerError,
1209
+ ScalewayOpContext
1210
+ > = /*@__PURE__*/ API.make(() => ({
1211
+ input: __S(120, __c15, 0) as any as S.Schema<RedeployContainerRequest>,
1212
+ output: __S(32, __c4, 0) as any as S.Schema<Container>,
1213
+ errors: [],
1214
+ serviceErrors: ScalewayServiceErrors,
1215
+ protocol: ScalewayProtocol,
1216
+ retry: Retry.Retry,
1217
+ telemetry: TELEMETRY,
1218
+ span: "RedeployContainer",
1219
+ }));
1220
+
1221
+ export type UpdateContainerError = ScalewayOpError;
1222
+ /** Update the container associated with the specified ID. Only fields present in the request are updated; others are left untouched. */
1223
+ export const updateContainer: API.OperationMethod<
1224
+ UpdateContainerRequest,
1225
+ Container,
1226
+ UpdateContainerError,
1227
+ ScalewayOpContext
1228
+ > = /*@__PURE__*/ API.make(() => ({
1229
+ input: __S(130, __c16, 2) as any as S.Schema<UpdateContainerRequest>,
1230
+ output: __S(32, __c4, 0) as any as S.Schema<Container>,
1231
+ errors: [],
1232
+ serviceErrors: ScalewayServiceErrors,
1233
+ protocol: ScalewayProtocol,
1234
+ retry: Retry.Retry,
1235
+ telemetry: TELEMETRY,
1236
+ span: "UpdateContainer",
1237
+ }));
1238
+
1239
+ export type UpdateDomainError = ScalewayOpError;
1240
+ /** Update the domain associated with the specified ID. Only fields present in the request are updated; others are left untouched. */
1241
+ export const updateDomain: API.OperationMethod<
1242
+ UpdateDomainRequest,
1243
+ Domain,
1244
+ UpdateDomainError,
1245
+ ScalewayOpContext
1246
+ > = /*@__PURE__*/ API.make(() => ({
1247
+ input: __S(160, __c20, 0) as any as S.Schema<UpdateDomainRequest>,
1248
+ output: __S(48, __c6, 0) as any as S.Schema<Domain>,
1249
+ errors: [],
1250
+ serviceErrors: ScalewayServiceErrors,
1251
+ protocol: ScalewayProtocol,
1252
+ retry: Retry.Retry,
1253
+ telemetry: TELEMETRY,
1254
+ span: "UpdateDomain",
1255
+ }));
1256
+
1257
+ export type UpdateNamespaceError = ScalewayOpError;
1258
+ /** Update the namespace associated with the specified ID. Only fields present in the request are updated; others are left untouched. */
1259
+ export const updateNamespace: API.OperationMethod<
1260
+ UpdateNamespaceRequest,
1261
+ Namespace,
1262
+ UpdateNamespaceError,
1263
+ ScalewayOpContext
1264
+ > = /*@__PURE__*/ API.make(() => ({
1265
+ input: __S(168, __c21, 0) as any as S.Schema<UpdateNamespaceRequest>,
1266
+ output: __S(152, __c19, 0) as any as S.Schema<Namespace>,
1267
+ errors: [],
1268
+ serviceErrors: ScalewayServiceErrors,
1269
+ protocol: ScalewayProtocol,
1270
+ retry: Retry.Retry,
1271
+ telemetry: TELEMETRY,
1272
+ span: "UpdateNamespace",
1273
+ }));
1274
+
1275
+ export type UpdateTriggerError = ScalewayOpError;
1276
+ /** Update the trigger associated with the specified ID. When updating a trigger, you cannot specify a different source type than the one already set. Only fields present in the request are updated; others are left untouched. */
1277
+ export const updateTrigger: API.OperationMethod<
1278
+ UpdateTriggerRequest,
1279
+ Trigger,
1280
+ UpdateTriggerError,
1281
+ ScalewayOpContext
1282
+ > = /*@__PURE__*/ API.make(() => ({
1283
+ input: __S(180, __c22, 4) as any as S.Schema<UpdateTriggerRequest>,
1284
+ output: __S(196, __c24, 4) as any as S.Schema<Trigger>,
1285
+ errors: [],
1286
+ serviceErrors: ScalewayServiceErrors,
1287
+ protocol: ScalewayProtocol,
1288
+ retry: Retry.Retry,
1289
+ telemetry: TELEMETRY,
1290
+ span: "UpdateTrigger",
1291
+ }));
1292
+
1293
+ // Schema builders: each runs one schema initializer, on that schema's first use.
1294
+ function __c0(j: number): any {
1295
+ switch (j) {
1296
+ case 0:
1297
+ return S.suspend(() =>
1298
+ S.Struct({
1299
+ region: S.optional(S.String.pipe(T.Label())),
1300
+ namespace_id: S.String,
1301
+ name: S.String,
1302
+ environment_variables: S.optional(__S(24, __c3, 0)),
1303
+ secret_environment_variables: S.optional(__S(16, __c2, 0)),
1304
+ min_scale: S.optional(S.NullOr(S.Number)),
1305
+ max_scale: S.optional(S.NullOr(S.Number)),
1306
+ memory_limit_bytes: S.optional(S.NullOr(S.Number)),
1307
+ mvcpu_limit: S.optional(S.NullOr(S.Number)),
1308
+ timeout: S.optional(S.NullOr(S.String)),
1309
+ privacy: S.optional(S.String),
1310
+ description: S.optional(S.NullOr(S.String)),
1311
+ image: S.String,
1312
+ protocol: S.optional(S.String),
1313
+ port: S.optional(S.NullOr(S.Number)),
1314
+ https_connections_only: S.optional(S.NullOr(S.Boolean)),
1315
+ sandbox: S.optional(S.String),
1316
+ local_storage_limit_bytes: S.optional(S.NullOr(S.Number)),
1317
+ scaling_option: S.optional(S.Unknown),
1318
+ liveness_probe: S.optional(S.Unknown),
1319
+ startup_probe: S.optional(S.Unknown),
1320
+ tags: S.optional(__S(8, __c1, 0)),
1321
+ private_network_id: S.optional(S.NullOr(S.String)),
1322
+ command: S.optional(__S(8, __c1, 0)),
1323
+ args: S.optional(__S(8, __c1, 0)),
1324
+ enable_private_endpoint: S.optional(S.NullOr(S.Boolean)),
1325
+ enable_default_public_endpoint: S.optional(S.NullOr(S.Boolean)),
1326
+ }).pipe(
1327
+ T.Http({
1328
+ method: "POST",
1329
+ uri: "/containers/v1/regions/{region}/containers",
1330
+ code: 200,
1331
+ baseUrl: "https://api.scaleway.com",
1332
+ }),
1333
+ ),
1334
+ ).annotate({ identifier: "CreateContainerRequest" });
1335
+ }
1336
+ }
1337
+ function __c1(j: number): any {
1338
+ switch (j) {
1339
+ case 0:
1340
+ return S.Array(S.String);
1341
+ }
1342
+ }
1343
+ function __c2(j: number): any {
1344
+ switch (j) {
1345
+ case 0:
1346
+ return S.Record(S.String, /*@__PURE__*/ S.String.pipe(/*@__PURE__*/ T.SensitiveValue({})));
1347
+ }
1348
+ }
1349
+ function __c3(j: number): any {
1350
+ switch (j) {
1351
+ case 0:
1352
+ return S.Record(S.String, S.String);
1353
+ }
1354
+ }
1355
+ function __c4(j: number): any {
1356
+ switch (j) {
1357
+ case 0:
1358
+ return S.suspend(() =>
1359
+ S.Struct({
1360
+ id: S.optional(S.String),
1361
+ srn: S.optional(S.String),
1362
+ name: S.optional(S.String),
1363
+ namespace_id: S.optional(S.String),
1364
+ description: S.optional(S.String),
1365
+ status: S.optional(S.String),
1366
+ error_message: S.optional(S.NullOr(S.String)),
1367
+ created_at: S.optional(S.NullOr(S.String)),
1368
+ updated_at: S.optional(S.NullOr(S.String)),
1369
+ environment_variables: S.optional(__S(24, __c3, 0)),
1370
+ secret_environment_variables: S.optional(__S(24, __c3, 0)),
1371
+ min_scale: S.optional(S.Number),
1372
+ max_scale: S.optional(S.Number),
1373
+ memory_limit_bytes: S.optional(S.Number),
1374
+ mvcpu_limit: S.optional(S.Number),
1375
+ local_storage_limit_bytes: S.optional(S.Number),
1376
+ timeout: S.optional(S.NullOr(S.String)),
1377
+ privacy: S.optional(S.String),
1378
+ image: S.optional(S.String),
1379
+ protocol: S.optional(S.String),
1380
+ port: S.optional(S.Number),
1381
+ https_connections_only: S.optional(S.Boolean),
1382
+ sandbox: S.optional(S.String),
1383
+ scaling_option: S.optional(S.Unknown),
1384
+ liveness_probe: S.optional(S.Unknown),
1385
+ startup_probe: S.optional(S.Unknown),
1386
+ tags: S.optional(__S(8, __c1, 0)),
1387
+ private_network_id: S.optional(S.NullOr(S.String)),
1388
+ command: S.optional(__S(8, __c1, 0)),
1389
+ args: S.optional(__S(8, __c1, 0)),
1390
+ public_endpoint: S.optional(S.String),
1391
+ private_endpoint: S.optional(S.NullOr(S.String)),
1392
+ default_public_endpoint_enabled: S.optional(S.Boolean),
1393
+ region: S.optional(S.String),
1394
+ }),
1395
+ ).annotate({ identifier: "Container" });
1396
+ }
1397
+ }
1398
+ function __c5(j: number): any {
1399
+ switch (j) {
1400
+ case 0:
1401
+ return S.suspend(() =>
1402
+ S.Struct({
1403
+ region: S.optional(S.String.pipe(T.Label())),
1404
+ container_id: S.String,
1405
+ hostname: S.String,
1406
+ tags: S.optional(__S(8, __c1, 0)),
1407
+ }).pipe(
1408
+ T.Http({
1409
+ method: "POST",
1410
+ uri: "/containers/v1/regions/{region}/domains",
1411
+ code: 200,
1412
+ baseUrl: "https://api.scaleway.com",
1413
+ }),
1414
+ ),
1415
+ ).annotate({ identifier: "CreateDomainRequest" });
1416
+ }
1417
+ }
1418
+ function __c6(j: number): any {
1419
+ switch (j) {
1420
+ case 0:
1421
+ return S.suspend(() =>
1422
+ S.Struct({
1423
+ id: S.optional(S.String),
1424
+ srn: S.optional(S.String),
1425
+ container_id: S.optional(S.String),
1426
+ hostname: S.optional(S.String),
1427
+ status: S.optional(S.String),
1428
+ error_message: S.optional(S.NullOr(S.String)),
1429
+ created_at: S.optional(S.NullOr(S.String)),
1430
+ updated_at: S.optional(S.NullOr(S.String)),
1431
+ tags: S.optional(__S(8, __c1, 0)),
1432
+ region: S.optional(S.String),
1433
+ }),
1434
+ ).annotate({ identifier: "Domain" });
1435
+ }
1436
+ }
1437
+ function __c7(j: number): any {
1438
+ switch (j) {
1439
+ case 0:
1440
+ return S.suspend(() =>
1441
+ S.Struct({
1442
+ region: S.optional(S.String.pipe(T.Label())),
1443
+ namespace_id: S.String.pipe(T.Label()),
1444
+ }).pipe(
1445
+ T.Http({
1446
+ method: "GET",
1447
+ uri: "/containers/v1/regions/{region}/namespaces/{namespace_id}",
1448
+ code: 200,
1449
+ baseUrl: "https://api.scaleway.com",
1450
+ }),
1451
+ ),
1452
+ ).annotate({ identifier: "GetNamespaceRequest" });
1453
+ }
1454
+ }
1455
+ function __c8(j: number): any {
1456
+ switch (j) {
1457
+ case 0:
1458
+ return S.suspend(() =>
1459
+ S.Struct({
1460
+ region: S.optional(S.String.pipe(T.Label())),
1461
+ }).pipe(
1462
+ T.Http({
1463
+ method: "GET",
1464
+ uri: "/containers/v1/regions/{region}/private-endpoint-ca",
1465
+ code: 200,
1466
+ baseUrl: "https://api.scaleway.com",
1467
+ }),
1468
+ ),
1469
+ ).annotate({ identifier: "GetPrivateEndpointCertificateAuthorityRequest" });
1470
+ case 1:
1471
+ return S.suspend(() =>
1472
+ S.Struct({
1473
+ name: S.optional(S.String),
1474
+ content_type: S.optional(S.String),
1475
+ content: S.optional(S.String),
1476
+ }),
1477
+ ).annotate({ identifier: "ScalewayStdFile" });
1478
+ }
1479
+ }
1480
+ function __c9(j: number): any {
1481
+ switch (j) {
1482
+ case 0:
1483
+ return S.suspend(() =>
1484
+ S.Struct({
1485
+ region: S.optional(S.String.pipe(T.Label())),
1486
+ }).pipe(
1487
+ T.Http({
1488
+ method: "GET",
1489
+ uri: "/containers/v1/regions/{region}/private-endpoint-ca",
1490
+ code: 200,
1491
+ baseUrl: "https://api.scaleway.com",
1492
+ rawDownload: true,
1493
+ }),
1494
+ ),
1495
+ ).annotate({ identifier: "GetPrivateEndpointCertificateAuthorityRawRequest" });
1496
+ case 1:
1497
+ return S.suspend(() =>
1498
+ S.Struct({
1499
+ body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
1500
+ contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
1501
+ }),
1502
+ ).annotate({ identifier: "GetPrivateEndpointCertificateAuthorityRawResponse" });
1503
+ }
1504
+ }
1505
+ function __c10(j: number): any {
1506
+ switch (j) {
1507
+ case 0:
1508
+ return S.suspend(() =>
1509
+ S.Struct({
1510
+ region: S.optional(S.String.pipe(T.Label())),
1511
+ trigger_id: S.String.pipe(T.Label()),
1512
+ }).pipe(
1513
+ T.Http({
1514
+ method: "GET",
1515
+ uri: "/containers/v1/regions/{region}/triggers/{trigger_id}",
1516
+ code: 200,
1517
+ baseUrl: "https://api.scaleway.com",
1518
+ }),
1519
+ ),
1520
+ ).annotate({ identifier: "GetTriggerRequest" });
1521
+ }
1522
+ }
1523
+ function __c11(j: number): any {
1524
+ switch (j) {
1525
+ case 0:
1526
+ return S.suspend(() =>
1527
+ S.Struct({
1528
+ region: S.optional(S.String.pipe(T.Label())),
1529
+ page: S.optional(S.Number.pipe(T.Query())),
1530
+ page_size: S.optional(S.Number.pipe(T.Query())),
1531
+ order_by: S.optional(S.String.pipe(T.Query())),
1532
+ organization_id: S.optional(S.String.pipe(T.Query())),
1533
+ project_id: S.optional(S.String.pipe(T.Query())),
1534
+ namespace_id: S.optional(S.String.pipe(T.Query())),
1535
+ name: S.optional(S.String.pipe(T.Query())),
1536
+ }).pipe(
1537
+ T.Http({
1538
+ method: "GET",
1539
+ uri: "/containers/v1/regions/{region}/containers",
1540
+ code: 200,
1541
+ baseUrl: "https://api.scaleway.com",
1542
+ }),
1543
+ ),
1544
+ ).annotate({ identifier: "ListContainersRequest" });
1545
+ case 1:
1546
+ return S.Array(__S(32, __c4, 0));
1547
+ case 2:
1548
+ return S.suspend(() =>
1549
+ S.Struct({
1550
+ containers: __S(89, __c11, 1),
1551
+ total_count: S.optional(S.Number),
1552
+ }),
1553
+ ).annotate({ identifier: "ListContainersResponse" });
1554
+ }
1555
+ }
1556
+ function __c12(j: number): any {
1557
+ switch (j) {
1558
+ case 0:
1559
+ return S.suspend(() =>
1560
+ S.Struct({
1561
+ region: S.optional(S.String.pipe(T.Label())),
1562
+ page: S.optional(S.Number.pipe(T.Query())),
1563
+ page_size: S.optional(S.Number.pipe(T.Query())),
1564
+ order_by: S.optional(S.String.pipe(T.Query())),
1565
+ organization_id: S.optional(S.String.pipe(T.Query())),
1566
+ project_id: S.optional(S.String.pipe(T.Query())),
1567
+ namespace_id: S.optional(S.String.pipe(T.Query())),
1568
+ container_id: S.optional(S.String.pipe(T.Query())),
1569
+ }).pipe(
1570
+ T.Http({
1571
+ method: "GET",
1572
+ uri: "/containers/v1/regions/{region}/domains",
1573
+ code: 200,
1574
+ baseUrl: "https://api.scaleway.com",
1575
+ }),
1576
+ ),
1577
+ ).annotate({ identifier: "ListDomainsRequest" });
1578
+ case 1:
1579
+ return S.Array(__S(48, __c6, 0));
1580
+ case 2:
1581
+ return S.suspend(() =>
1582
+ S.Struct({
1583
+ domains: __S(97, __c12, 1),
1584
+ total_count: S.optional(S.Number),
1585
+ }),
1586
+ ).annotate({ identifier: "ListDomainsResponse" });
1587
+ }
1588
+ }
1589
+ function __c13(j: number): any {
1590
+ switch (j) {
1591
+ case 0:
1592
+ return S.suspend(() =>
1593
+ S.Struct({
1594
+ region: S.optional(S.String.pipe(T.Label())),
1595
+ page: S.optional(S.Number.pipe(T.Query())),
1596
+ page_size: S.optional(S.Number.pipe(T.Query())),
1597
+ order_by: S.optional(S.String.pipe(T.Query())),
1598
+ organization_id: S.optional(S.String.pipe(T.Query())),
1599
+ project_id: S.optional(S.String.pipe(T.Query())),
1600
+ name: S.optional(S.String.pipe(T.Query())),
1601
+ }).pipe(
1602
+ T.Http({
1603
+ method: "GET",
1604
+ uri: "/containers/v1/regions/{region}/namespaces",
1605
+ code: 200,
1606
+ baseUrl: "https://api.scaleway.com",
1607
+ }),
1608
+ ),
1609
+ ).annotate({ identifier: "ListNamespacesRequest" });
1610
+ case 1:
1611
+ return S.Array(__S(152, __c19, 0));
1612
+ case 2:
1613
+ return S.suspend(() =>
1614
+ S.Struct({
1615
+ namespaces: __S(105, __c13, 1),
1616
+ total_count: S.optional(S.Number),
1617
+ }),
1618
+ ).annotate({ identifier: "ListNamespacesResponse" });
1619
+ }
1620
+ }
1621
+ function __c14(j: number): any {
1622
+ switch (j) {
1623
+ case 0:
1624
+ return S.suspend(() =>
1625
+ S.Struct({
1626
+ region: S.optional(S.String.pipe(T.Label())),
1627
+ page: S.optional(S.Number.pipe(T.Query())),
1628
+ page_size: S.optional(S.Number.pipe(T.Query())),
1629
+ order_by: S.optional(S.String.pipe(T.Query())),
1630
+ organization_id: S.optional(S.String.pipe(T.Query())),
1631
+ project_id: S.optional(S.String.pipe(T.Query())),
1632
+ namespace_id: S.optional(S.String.pipe(T.Query())),
1633
+ container_id: S.optional(S.String.pipe(T.Query())),
1634
+ trigger_type: S.optional(S.String.pipe(T.Query())),
1635
+ }).pipe(
1636
+ T.Http({
1637
+ method: "GET",
1638
+ uri: "/containers/v1/regions/{region}/triggers",
1639
+ code: 200,
1640
+ baseUrl: "https://api.scaleway.com",
1641
+ }),
1642
+ ),
1643
+ ).annotate({ identifier: "ListTriggersRequest" });
1644
+ case 1:
1645
+ return S.Array(__S(196, __c24, 4));
1646
+ case 2:
1647
+ return S.suspend(() =>
1648
+ S.Struct({
1649
+ triggers: __S(113, __c14, 1),
1650
+ total_count: S.optional(S.Number),
1651
+ }),
1652
+ ).annotate({ identifier: "ListTriggersResponse" });
1653
+ }
1654
+ }
1655
+ function __c15(j: number): any {
1656
+ switch (j) {
1657
+ case 0:
1658
+ return S.suspend(() =>
1659
+ S.Struct({
1660
+ region: S.optional(S.String.pipe(T.Label())),
1661
+ container_id: S.String.pipe(T.Label()),
1662
+ }).pipe(
1663
+ T.Http({
1664
+ method: "POST",
1665
+ uri: "/containers/v1/regions/{region}/containers/{container_id}/redeploy",
1666
+ code: 200,
1667
+ baseUrl: "https://api.scaleway.com",
1668
+ }),
1669
+ ),
1670
+ ).annotate({ identifier: "RedeployContainerRequest" });
1671
+ }
1672
+ }
1673
+ function __c16(j: number): any {
1674
+ switch (j) {
1675
+ case 0:
1676
+ return S.suspend(() =>
1677
+ S.Struct({
1678
+ path: S.optional(S.NullOr(S.String)),
1679
+ }),
1680
+ ).annotate({ identifier: "UpdateContainerRequestProbeHTTPProbe" });
1681
+ case 1:
1682
+ return S.suspend(() =>
1683
+ S.Struct({
1684
+ failure_threshold: S.optional(S.NullOr(S.Number)),
1685
+ interval: S.optional(S.NullOr(S.String)),
1686
+ timeout: S.optional(S.NullOr(S.String)),
1687
+ http: S.optional(S.NullOr(__S(128, __c16, 0))),
1688
+ tcp: S.optional(S.NullOr(S.Unknown)),
1689
+ }),
1690
+ ).annotate({ identifier: "UpdateContainerRequestProbe" });
1691
+ case 2:
1692
+ return S.suspend(() =>
1693
+ S.Struct({
1694
+ region: S.optional(S.String.pipe(T.Label())),
1695
+ container_id: S.String.pipe(T.Label()),
1696
+ environment_variables: S.optional(S.NullOr(__S(24, __c3, 0))),
1697
+ secret_environment_variables: S.optional(S.NullOr(__S(16, __c2, 0))),
1698
+ min_scale: S.optional(S.NullOr(S.Number)),
1699
+ max_scale: S.optional(S.NullOr(S.Number)),
1700
+ memory_limit_bytes: S.optional(S.NullOr(S.Number)),
1701
+ mvcpu_limit: S.optional(S.NullOr(S.Number)),
1702
+ timeout: S.optional(S.NullOr(S.String)),
1703
+ privacy: S.optional(S.String),
1704
+ description: S.optional(S.NullOr(S.String)),
1705
+ image: S.optional(S.NullOr(S.String)),
1706
+ protocol: S.optional(S.String),
1707
+ port: S.optional(S.NullOr(S.Number)),
1708
+ https_connection_only: S.optional(S.NullOr(S.Boolean)),
1709
+ sandbox: S.optional(S.String),
1710
+ local_storage_limit_bytes: S.optional(S.NullOr(S.Number)),
1711
+ scaling_option: S.optional(S.Unknown),
1712
+ liveness_probe: S.optional(S.Unknown),
1713
+ startup_probe: S.optional(__S(129, __c16, 1)),
1714
+ tags: S.optional(S.NullOr(__S(136, __c17, 0))),
1715
+ private_network_id: S.optional(S.NullOr(S.String)),
1716
+ command: S.optional(S.NullOr(__S(136, __c17, 0))),
1717
+ args: S.optional(S.NullOr(__S(136, __c17, 0))),
1718
+ enable_private_endpoint: S.optional(S.NullOr(S.Boolean)),
1719
+ enable_default_public_endpoint: S.optional(S.NullOr(S.Boolean)),
1720
+ }).pipe(
1721
+ T.Http({
1722
+ method: "PATCH",
1723
+ uri: "/containers/v1/regions/{region}/containers/{container_id}",
1724
+ code: 200,
1725
+ baseUrl: "https://api.scaleway.com",
1726
+ }),
1727
+ ),
1728
+ ).annotate({ identifier: "UpdateContainerRequest" });
1729
+ }
1730
+ }
1731
+ function __c17(j: number): any {
1732
+ switch (j) {
1733
+ case 0:
1734
+ return S.Array(S.Unknown);
1735
+ }
1736
+ }
1737
+ function __c18(j: number): any {
1738
+ switch (j) {
1739
+ case 0:
1740
+ return S.suspend(() =>
1741
+ S.Struct({
1742
+ region: S.optional(S.String.pipe(T.Label())),
1743
+ project_id: S.String,
1744
+ name: S.String,
1745
+ description: S.optional(S.NullOr(S.String)),
1746
+ environment_variables: S.optional(__S(24, __c3, 0)),
1747
+ secret_environment_variables: S.optional(__S(16, __c2, 0)),
1748
+ tags: S.optional(__S(8, __c1, 0)),
1749
+ }).pipe(
1750
+ T.Http({
1751
+ method: "POST",
1752
+ uri: "/containers/v1/regions/{region}/namespaces",
1753
+ code: 200,
1754
+ baseUrl: "https://api.scaleway.com",
1755
+ }),
1756
+ ),
1757
+ ).annotate({ identifier: "CreateNamespaceRequest" });
1758
+ }
1759
+ }
1760
+ function __c19(j: number): any {
1761
+ switch (j) {
1762
+ case 0:
1763
+ return S.suspend(() =>
1764
+ S.Struct({
1765
+ id: S.optional(S.String),
1766
+ srn: S.optional(S.String),
1767
+ name: S.optional(S.String),
1768
+ organization_id: S.optional(S.String),
1769
+ project_id: S.optional(S.String),
1770
+ description: S.optional(S.String),
1771
+ status: S.optional(S.String),
1772
+ error_message: S.optional(S.NullOr(S.String)),
1773
+ environment_variables: S.optional(__S(24, __c3, 0)),
1774
+ secret_environment_variables: S.optional(__S(24, __c3, 0)),
1775
+ tags: S.optional(__S(8, __c1, 0)),
1776
+ created_at: S.optional(S.NullOr(S.String)),
1777
+ updated_at: S.optional(S.NullOr(S.String)),
1778
+ region: S.optional(S.String),
1779
+ }),
1780
+ ).annotate({ identifier: "Namespace" });
1781
+ }
1782
+ }
1783
+ function __c20(j: number): any {
1784
+ switch (j) {
1785
+ case 0:
1786
+ return S.suspend(() =>
1787
+ S.Struct({
1788
+ region: S.optional(S.String.pipe(T.Label())),
1789
+ domain_id: S.String.pipe(T.Label()),
1790
+ tags: S.optional(S.NullOr(__S(136, __c17, 0))),
1791
+ }).pipe(
1792
+ T.Http({
1793
+ method: "PATCH",
1794
+ uri: "/containers/v1/regions/{region}/domains/{domain_id}",
1795
+ code: 200,
1796
+ baseUrl: "https://api.scaleway.com",
1797
+ }),
1798
+ ),
1799
+ ).annotate({ identifier: "UpdateDomainRequest" });
1800
+ }
1801
+ }
1802
+ function __c21(j: number): any {
1803
+ switch (j) {
1804
+ case 0:
1805
+ return S.suspend(() =>
1806
+ S.Struct({
1807
+ region: S.optional(S.String.pipe(T.Label())),
1808
+ namespace_id: S.String.pipe(T.Label()),
1809
+ description: S.optional(S.NullOr(S.String)),
1810
+ environment_variables: S.optional(S.NullOr(__S(24, __c3, 0))),
1811
+ secret_environment_variables: S.optional(S.NullOr(__S(16, __c2, 0))),
1812
+ tags: S.optional(S.NullOr(__S(136, __c17, 0))),
1813
+ }).pipe(
1814
+ T.Http({
1815
+ method: "PATCH",
1816
+ uri: "/containers/v1/regions/{region}/namespaces/{namespace_id}",
1817
+ code: 200,
1818
+ baseUrl: "https://api.scaleway.com",
1819
+ }),
1820
+ ),
1821
+ ).annotate({ identifier: "UpdateNamespaceRequest" });
1822
+ }
1823
+ }
1824
+ function __c22(j: number): any {
1825
+ switch (j) {
1826
+ case 0:
1827
+ return S.suspend(() =>
1828
+ S.Struct({
1829
+ http_path: S.optional(S.NullOr(S.String)),
1830
+ http_method: S.optional(S.String),
1831
+ }),
1832
+ ).annotate({ identifier: "UpdateTriggerRequestDestinationConfig" });
1833
+ case 1:
1834
+ return S.suspend(() =>
1835
+ S.Struct({
1836
+ schedule: S.optional(S.NullOr(S.String)),
1837
+ timezone: S.optional(S.NullOr(S.String)),
1838
+ body: S.optional(S.NullOr(S.String)),
1839
+ headers: S.optional(S.NullOr(__S(24, __c3, 0))),
1840
+ }),
1841
+ ).annotate({ identifier: "UpdateTriggerRequestCronConfig" });
1842
+ case 2:
1843
+ return S.suspend(() =>
1844
+ S.Struct({
1845
+ region: S.optional(S.NullOr(S.String)),
1846
+ endpoint: S.optional(S.NullOr(S.String)),
1847
+ access_key_id: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1848
+ secret_access_key: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1849
+ queue_url: S.optional(S.NullOr(S.String)),
1850
+ }),
1851
+ ).annotate({ identifier: "UpdateTriggerRequestSQSConfig" });
1852
+ case 3:
1853
+ return S.suspend(() =>
1854
+ S.Struct({
1855
+ server_urls: S.optional(S.NullOr(__S(136, __c17, 0))),
1856
+ subject: S.optional(S.NullOr(S.String)),
1857
+ credentials_file_content: S.optional(S.NullOr(S.String)),
1858
+ }),
1859
+ ).annotate({ identifier: "UpdateTriggerRequestNATSConfig" });
1860
+ case 4:
1861
+ return S.suspend(() =>
1862
+ S.Struct({
1863
+ region: S.optional(S.String.pipe(T.Label())),
1864
+ trigger_id: S.String.pipe(T.Label()),
1865
+ name: S.optional(S.NullOr(S.String)),
1866
+ description: S.optional(S.NullOr(S.String)),
1867
+ tags: S.optional(S.NullOr(__S(136, __c17, 0))),
1868
+ destination_config: S.optional(__S(176, __c22, 0)),
1869
+ cron_config: S.optional(S.NullOr(__S(177, __c22, 1))),
1870
+ sqs_config: S.optional(S.NullOr(__S(178, __c22, 2))),
1871
+ nats_config: S.optional(S.NullOr(__S(179, __c22, 3))),
1872
+ }).pipe(
1873
+ T.Http({
1874
+ method: "PATCH",
1875
+ uri: "/containers/v1/regions/{region}/triggers/{trigger_id}",
1876
+ code: 200,
1877
+ baseUrl: "https://api.scaleway.com",
1878
+ }),
1879
+ ),
1880
+ ).annotate({ identifier: "UpdateTriggerRequest" });
1881
+ }
1882
+ }
1883
+ function __c23(j: number): any {
1884
+ switch (j) {
1885
+ case 0:
1886
+ return S.suspend(() =>
1887
+ S.Struct({
1888
+ http_path: S.String,
1889
+ http_method: S.String,
1890
+ }),
1891
+ ).annotate({ identifier: "CreateTriggerRequestDestinationConfig" });
1892
+ case 1:
1893
+ return S.suspend(() =>
1894
+ S.Struct({
1895
+ schedule: S.String,
1896
+ timezone: S.String,
1897
+ body: S.optional(S.String),
1898
+ headers: S.optional(__S(24, __c3, 0)),
1899
+ }),
1900
+ ).annotate({ identifier: "CreateTriggerRequestCronConfig" });
1901
+ case 2:
1902
+ return S.suspend(() =>
1903
+ S.Struct({
1904
+ region: S.String,
1905
+ endpoint: S.String,
1906
+ access_key_id: S.String.pipe(T.SensitiveValue({})),
1907
+ secret_access_key: S.String.pipe(T.SensitiveValue({})),
1908
+ queue_url: S.String,
1909
+ }),
1910
+ ).annotate({ identifier: "CreateTriggerRequestSQSConfig" });
1911
+ case 3:
1912
+ return S.suspend(() =>
1913
+ S.Struct({
1914
+ server_urls: __S(8, __c1, 0),
1915
+ subject: S.String,
1916
+ credentials_file_content: S.String,
1917
+ }),
1918
+ ).annotate({ identifier: "CreateTriggerRequestNATSConfig" });
1919
+ case 4:
1920
+ return S.suspend(() =>
1921
+ S.Struct({
1922
+ region: S.optional(S.String.pipe(T.Label())),
1923
+ container_id: S.String,
1924
+ name: S.String,
1925
+ description: S.optional(S.NullOr(S.String)),
1926
+ tags: S.optional(__S(8, __c1, 0)),
1927
+ destination_config: S.optional(__S(184, __c23, 0)),
1928
+ cron_config: S.optional(S.NullOr(__S(185, __c23, 1))),
1929
+ sqs_config: S.optional(S.NullOr(__S(186, __c23, 2))),
1930
+ nats_config: S.optional(S.NullOr(__S(187, __c23, 3))),
1931
+ }).pipe(
1932
+ T.Http({
1933
+ method: "POST",
1934
+ uri: "/containers/v1/regions/{region}/triggers",
1935
+ code: 200,
1936
+ baseUrl: "https://api.scaleway.com",
1937
+ }),
1938
+ ),
1939
+ ).annotate({ identifier: "CreateTriggerRequest" });
1940
+ }
1941
+ }
1942
+ function __c24(j: number): any {
1943
+ switch (j) {
1944
+ case 0:
1945
+ return S.suspend(() =>
1946
+ S.Struct({
1947
+ http_path: S.optional(S.String),
1948
+ http_method: S.optional(S.String),
1949
+ }),
1950
+ ).annotate({ identifier: "TriggerDestinationConfig" });
1951
+ case 1:
1952
+ return S.suspend(() =>
1953
+ S.Struct({
1954
+ schedule: S.optional(S.String),
1955
+ timezone: S.optional(S.String),
1956
+ body: S.optional(S.String),
1957
+ headers: S.optional(__S(24, __c3, 0)),
1958
+ }),
1959
+ ).annotate({ identifier: "TriggerCronConfig" });
1960
+ case 2:
1961
+ return S.suspend(() =>
1962
+ S.Struct({
1963
+ region: S.optional(S.String),
1964
+ endpoint: S.optional(S.String),
1965
+ access_key_id: S.optional(S.String.pipe(T.SensitiveValue({}))),
1966
+ queue_url: S.optional(S.String),
1967
+ }),
1968
+ ).annotate({ identifier: "TriggerSQSConfig" });
1969
+ case 3:
1970
+ return S.suspend(() =>
1971
+ S.Struct({
1972
+ server_urls: S.optional(__S(8, __c1, 0)),
1973
+ subject: S.optional(S.String),
1974
+ }),
1975
+ ).annotate({ identifier: "TriggerNATSConfig" });
1976
+ case 4:
1977
+ return S.suspend(() =>
1978
+ S.Struct({
1979
+ id: S.optional(S.String),
1980
+ srn: S.optional(S.String),
1981
+ name: S.optional(S.String),
1982
+ description: S.optional(S.String),
1983
+ tags: S.optional(__S(8, __c1, 0)),
1984
+ status: S.optional(S.String),
1985
+ error_message: S.optional(S.NullOr(S.String)),
1986
+ container_id: S.optional(S.String),
1987
+ destination_config: S.optional(__S(192, __c24, 0)),
1988
+ source_type: S.optional(S.String),
1989
+ cron_config: S.optional(S.NullOr(__S(193, __c24, 1))),
1990
+ sqs_config: S.optional(S.NullOr(__S(194, __c24, 2))),
1991
+ nats_config: S.optional(S.NullOr(__S(195, __c24, 3))),
1992
+ created_at: S.optional(S.NullOr(S.String)),
1993
+ updated_at: S.optional(S.NullOr(S.String)),
1994
+ region: S.optional(S.String),
1995
+ }),
1996
+ ).annotate({ identifier: "Trigger" });
1997
+ }
1998
+ }
1999
+ function __c25(j: number): any {
2000
+ switch (j) {
2001
+ case 0:
2002
+ return S.suspend(() =>
2003
+ S.Struct({
2004
+ region: S.optional(S.String.pipe(T.Label())),
2005
+ container_id: S.String.pipe(T.Label()),
2006
+ }).pipe(
2007
+ T.Http({
2008
+ method: "DELETE",
2009
+ uri: "/containers/v1/regions/{region}/containers/{container_id}",
2010
+ code: 200,
2011
+ baseUrl: "https://api.scaleway.com",
2012
+ }),
2013
+ ),
2014
+ ).annotate({ identifier: "DeleteContainerRequest" });
2015
+ }
2016
+ }
2017
+ function __c26(j: number): any {
2018
+ switch (j) {
2019
+ case 0:
2020
+ return S.suspend(() =>
2021
+ S.Struct({
2022
+ region: S.optional(S.String.pipe(T.Label())),
2023
+ domain_id: S.String.pipe(T.Label()),
2024
+ }).pipe(
2025
+ T.Http({
2026
+ method: "DELETE",
2027
+ uri: "/containers/v1/regions/{region}/domains/{domain_id}",
2028
+ code: 200,
2029
+ baseUrl: "https://api.scaleway.com",
2030
+ }),
2031
+ ),
2032
+ ).annotate({ identifier: "DeleteDomainRequest" });
2033
+ }
2034
+ }
2035
+ function __c27(j: number): any {
2036
+ switch (j) {
2037
+ case 0:
2038
+ return S.suspend(() =>
2039
+ S.Struct({
2040
+ region: S.optional(S.String.pipe(T.Label())),
2041
+ namespace_id: S.String.pipe(T.Label()),
2042
+ }).pipe(
2043
+ T.Http({
2044
+ method: "DELETE",
2045
+ uri: "/containers/v1/regions/{region}/namespaces/{namespace_id}",
2046
+ code: 200,
2047
+ baseUrl: "https://api.scaleway.com",
2048
+ }),
2049
+ ),
2050
+ ).annotate({ identifier: "DeleteNamespaceRequest" });
2051
+ }
2052
+ }
2053
+ function __c28(j: number): any {
2054
+ switch (j) {
2055
+ case 0:
2056
+ return S.suspend(() =>
2057
+ S.Struct({
2058
+ region: S.optional(S.String.pipe(T.Label())),
2059
+ trigger_id: S.String.pipe(T.Label()),
2060
+ }).pipe(
2061
+ T.Http({
2062
+ method: "DELETE",
2063
+ uri: "/containers/v1/regions/{region}/triggers/{trigger_id}",
2064
+ code: 200,
2065
+ baseUrl: "https://api.scaleway.com",
2066
+ }),
2067
+ ),
2068
+ ).annotate({ identifier: "DeleteTriggerRequest" });
2069
+ }
2070
+ }
2071
+ function __c29(j: number): any {
2072
+ switch (j) {
2073
+ case 0:
2074
+ return S.suspend(() =>
2075
+ S.Struct({
2076
+ region: S.optional(S.String.pipe(T.Label())),
2077
+ container_id: S.String.pipe(T.Label()),
2078
+ }).pipe(
2079
+ T.Http({
2080
+ method: "GET",
2081
+ uri: "/containers/v1/regions/{region}/containers/{container_id}",
2082
+ code: 200,
2083
+ baseUrl: "https://api.scaleway.com",
2084
+ }),
2085
+ ),
2086
+ ).annotate({ identifier: "GetContainerRequest" });
2087
+ }
2088
+ }
2089
+ function __c30(j: number): any {
2090
+ switch (j) {
2091
+ case 0:
2092
+ return S.suspend(() =>
2093
+ S.Struct({
2094
+ region: S.optional(S.String.pipe(T.Label())),
2095
+ domain_id: S.String.pipe(T.Label()),
2096
+ }).pipe(
2097
+ T.Http({
2098
+ method: "GET",
2099
+ uri: "/containers/v1/regions/{region}/domains/{domain_id}",
2100
+ code: 200,
2101
+ baseUrl: "https://api.scaleway.com",
2102
+ }),
2103
+ ),
2104
+ ).annotate({ identifier: "GetDomainRequest" });
2105
+ }
2106
+ }
2107
+ // Schema table: entry i is schema j of builder f, made on first reach.
2108
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
2109
+ return (__s[i] ??= __L.at(f, j));
2110
+ }