@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,2410 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import type * as Redacted from "effect/Redacted";
6
+ import { ScalewayServiceErrors } from "../errors.ts";
7
+ import { paginateByTotalCount } from "../pagination.ts";
8
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
9
+ import * as Retry from "../retry.ts";
10
+ import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
13
+
14
+ export type { ScalewayOpError, ScalewayOpContext };
15
+
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "scaleway-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Scaleway",
24
+ service: "FunctionsV1beta1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export type CreateCronRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
30
+ /** Arguments to use with the cron. */
31
+ export type CreateCronRequestArgsMap = { [key: string]: unknown | undefined };
32
+ export interface CreateCronRequest {
33
+ /** The region you want to target */
34
+ region?: CreateCronRequestRegion | (string & {}) | undefined;
35
+ /** UUID of the function to use the cron with. */
36
+ function_id?: string | undefined;
37
+ /** Schedule of the cron in UNIX cron format. */
38
+ schedule?: string | undefined;
39
+ /** Arguments to use with the cron. */
40
+ args?: CreateCronRequestArgsMap | undefined;
41
+ /** Name of the cron. */
42
+ name?: string | null | undefined;
43
+ }
44
+ /** Arguments to pass with the cron. */
45
+ export type CronArgsMap = { [key: string]: unknown | undefined };
46
+ export type CronStatus =
47
+ | "unknown"
48
+ | "ready"
49
+ | "deleting"
50
+ | "error"
51
+ | "locked"
52
+ | "creating"
53
+ | "pending";
54
+ export interface Cron {
55
+ /** UUID of the cron. */
56
+ id?: string | undefined;
57
+ /** SRN of the cron. */
58
+ srn?: string | undefined;
59
+ /** UUID of the function the cron applies to. */
60
+ function_id?: string | undefined;
61
+ /** Schedule of the cron. */
62
+ schedule?: string | undefined;
63
+ /** Arguments to pass with the cron. */
64
+ args?: CronArgsMap | undefined;
65
+ /** Status of the cron. */
66
+ status?: CronStatus | undefined;
67
+ /** Name of the cron. */
68
+ name?: string | undefined;
69
+ /** Region in which the cron is located. */
70
+ region?: string | undefined;
71
+ }
72
+ export type CreateDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
73
+ export interface CreateDomainRequest {
74
+ /** The region you want to target */
75
+ region?: CreateDomainRequestRegion | (string & {}) | undefined;
76
+ /** Hostname to create. */
77
+ hostname?: string | undefined;
78
+ /** UUID of the function to associate the domain with. */
79
+ function_id?: string | undefined;
80
+ }
81
+ export type DomainStatus = "unknown" | "ready" | "deleting" | "error" | "creating" | "pending";
82
+ export interface Domain {
83
+ /** UUID of the domain. */
84
+ id?: string | undefined;
85
+ /** SRN of the domain. */
86
+ srn?: string | undefined;
87
+ /** Hostname associated with the function. */
88
+ hostname?: string | undefined;
89
+ /** UUID of the function the domain is associated with. */
90
+ function_id?: string | undefined;
91
+ /** URL of the function. */
92
+ url?: string | undefined;
93
+ /** State of the domain. */
94
+ status?: DomainStatus | undefined;
95
+ /** Error message if the domain is in "error" state. */
96
+ error_message?: string | null | undefined;
97
+ /** Region in which the domain is located. */
98
+ region?: string | undefined;
99
+ }
100
+ export type CreateFunctionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
101
+ /** Environment variables of the function. */
102
+ export type CreateFunctionRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
103
+ export type FunctionRuntime =
104
+ | "unknown_runtime"
105
+ | "golang"
106
+ | "python"
107
+ | "python3"
108
+ | "node8"
109
+ | "node10"
110
+ | "node14"
111
+ | "node16"
112
+ | "node17"
113
+ | "python37"
114
+ | "python38"
115
+ | "python39"
116
+ | "python310"
117
+ | "go113"
118
+ | "go117"
119
+ | "go118"
120
+ | "node18"
121
+ | "rust165"
122
+ | "go119"
123
+ | "python311"
124
+ | "php82"
125
+ | "node19"
126
+ | "go120"
127
+ | "node20"
128
+ | "go121"
129
+ | "node22"
130
+ | "python312"
131
+ | "php83"
132
+ | "go122"
133
+ | "rust179"
134
+ | "go123"
135
+ | "go124"
136
+ | "python313"
137
+ | "rust185"
138
+ | "php84"
139
+ | "node24"
140
+ | "node26"
141
+ | "go125"
142
+ | "go126"
143
+ | "php85"
144
+ | "python314"
145
+ | "rust196";
146
+ export type FunctionPrivacy = "unknown_privacy" | "public" | "private";
147
+ export interface Secret {
148
+ key?: string | undefined;
149
+ value?: string | Redacted.Redacted<string> | null | undefined;
150
+ }
151
+ export type CreateFunctionRequestSecretEnvironmentVariablesList = Array<Secret>;
152
+ export type FunctionHttpOption = "unknown_http_option" | "enabled" | "redirected";
153
+ export type FunctionSandbox = "unknown_sandbox" | "v1" | "v2";
154
+ /** Tags of the Serverless Function. */
155
+ export type CreateFunctionRequestTagsList = Array<string>;
156
+ export interface CreateFunctionRequest {
157
+ /** The region you want to target */
158
+ region?: CreateFunctionRequestRegion | (string & {}) | undefined;
159
+ /** Name of the function to create. */
160
+ name?: string | undefined;
161
+ /** UUID of the namespace the function will be created in. */
162
+ namespace_id?: string | undefined;
163
+ /** Environment variables of the function. */
164
+ environment_variables?: CreateFunctionRequestEnvironmentVariablesMap | null | undefined;
165
+ /** Minimum number of instances to scale the function to. */
166
+ min_scale?: number | null | undefined;
167
+ /** Maximum number of instances to scale the function to. */
168
+ max_scale?: number | null | undefined;
169
+ /** Runtime to use with the function. */
170
+ runtime?: FunctionRuntime | (string & {}) | undefined;
171
+ /** Memory limit of the function in MB. */
172
+ memory_limit?: number | null | undefined;
173
+ /** Request processing time limit for the function. (in seconds) */
174
+ timeout?: string | null | undefined;
175
+ /** Handler to use with the function. */
176
+ handler?: string | null | undefined;
177
+ /** Privacy setting of the function. */
178
+ privacy?: FunctionPrivacy | (string & {}) | undefined;
179
+ /** Description of the function. */
180
+ description?: string | null | undefined;
181
+ secret_environment_variables?: CreateFunctionRequestSecretEnvironmentVariablesList | undefined;
182
+ /** Configure how HTTP and HTTPS requests are handled. Possible values: - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS. - enabled: Serve both HTTP and HTTPS traffic. */
183
+ http_option?: FunctionHttpOption | (string & {}) | undefined;
184
+ /** Execution environment of the function. */
185
+ sandbox?: FunctionSandbox | (string & {}) | undefined;
186
+ /** Tags of the Serverless Function. */
187
+ tags?: CreateFunctionRequestTagsList | undefined;
188
+ /** ID of the Private Network the function is connected to. When connected to a Private Network, the function can access other Scaleway resources in this Private Network. */
189
+ private_network_id?: string | null | undefined;
190
+ }
191
+ export type FunctionStatus =
192
+ | "unknown"
193
+ | "ready"
194
+ | "deleting"
195
+ | "error"
196
+ | "locked"
197
+ | "creating"
198
+ | "pending"
199
+ | "created";
200
+ /** Environment variables of the function. */
201
+ export type FunctionEnvironmentVariablesMap = { [key: string]: string | undefined };
202
+ export interface SecretHashedValue {
203
+ key?: string | undefined;
204
+ hashed_value?: string | undefined;
205
+ }
206
+ /** Secret environment variables of the function. */
207
+ export type FunctionSecretEnvironmentVariablesList = Array<SecretHashedValue>;
208
+ /** List of tags applied to the Serverless Function. */
209
+ export type FunctionTagsList = Array<string>;
210
+ export interface Function {
211
+ /** UUID of the function. */
212
+ id?: string | undefined;
213
+ /** SRN of the function. */
214
+ srn?: string | undefined;
215
+ /** Name of the function. */
216
+ name?: string | undefined;
217
+ /** UUID of the namespace the function belongs to. */
218
+ namespace_id?: string | undefined;
219
+ /** Status of the function. */
220
+ status?: FunctionStatus | undefined;
221
+ /** Environment variables of the function. */
222
+ environment_variables?: FunctionEnvironmentVariablesMap | undefined;
223
+ /** Minimum number of instances to scale the function to. */
224
+ min_scale?: number | undefined;
225
+ /** Maximum number of instances to scale the function to. */
226
+ max_scale?: number | undefined;
227
+ /** Runtime of the function. */
228
+ runtime?: FunctionRuntime | undefined;
229
+ /** Memory limit of the function in MB. */
230
+ memory_limit?: number | undefined;
231
+ /** CPU limit of the function. */
232
+ cpu_limit?: number | undefined;
233
+ /** Request processing time limit for the function. (in seconds) */
234
+ timeout?: string | null | undefined;
235
+ /** Handler to use for the function. */
236
+ handler?: string | undefined;
237
+ /** Error message if the function is in "error" state. */
238
+ error_message?: string | null | undefined;
239
+ /** Description of the current build step. */
240
+ build_message?: string | null | undefined;
241
+ /** Privacy setting of the function. */
242
+ privacy?: FunctionPrivacy | undefined;
243
+ /** Description of the function. */
244
+ description?: string | null | undefined;
245
+ /** Domain name associated with the function. */
246
+ domain_name?: string | undefined;
247
+ /** Secret environment variables of the function. */
248
+ secret_environment_variables?: FunctionSecretEnvironmentVariablesList | undefined;
249
+ /** Region in which the function is deployed. */
250
+ region?: string | undefined;
251
+ /** Configuration for handling of HTTP and HTTPS requests. Possible values: - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS. - enabled: Serve both HTTP and HTTPS traffic. */
252
+ http_option?: FunctionHttpOption | undefined;
253
+ runtime_message?: string | undefined;
254
+ /** Execution environment of the function. */
255
+ sandbox?: FunctionSandbox | undefined;
256
+ /** Creation date of the function. (RFC 3339 format) */
257
+ created_at?: string | null | undefined;
258
+ /** Last update date of the function. (RFC 3339 format) */
259
+ updated_at?: string | null | undefined;
260
+ /** Last date when the function was successfully deployed and set to ready. (RFC 3339 format) */
261
+ ready_at?: string | null | undefined;
262
+ /** List of tags applied to the Serverless Function. */
263
+ tags?: FunctionTagsList | undefined;
264
+ /** ID of the Private Network the function is connected to. When connected to a Private Network, the function can access other Scaleway resources in this Private Network. */
265
+ private_network_id?: string | null | undefined;
266
+ }
267
+ export type CreateNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
268
+ /** Environment variables of the namespace. */
269
+ export type CreateNamespaceRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
270
+ /** Secret environment variables of the namespace. */
271
+ export type CreateNamespaceRequestSecretEnvironmentVariablesList = Array<Secret>;
272
+ /** Tags of the Serverless Function Namespace. */
273
+ export type CreateNamespaceRequestTagsList = Array<string>;
274
+ export interface CreateNamespaceRequest {
275
+ /** The region you want to target */
276
+ region?: CreateNamespaceRequestRegion | (string & {}) | undefined;
277
+ name?: string | undefined;
278
+ /** Environment variables of the namespace. */
279
+ environment_variables?: CreateNamespaceRequestEnvironmentVariablesMap | null | undefined;
280
+ /** UUID of the project in which the namespace will be created. */
281
+ project_id?: string | undefined;
282
+ /** Description of the namespace. */
283
+ description?: string | null | undefined;
284
+ /** Secret environment variables of the namespace. */
285
+ secret_environment_variables?: CreateNamespaceRequestSecretEnvironmentVariablesList | undefined;
286
+ /** Tags of the Serverless Function Namespace. */
287
+ tags?: CreateNamespaceRequestTagsList | undefined;
288
+ /** [DEPRECATED] By default, as of 2025/08/20, all namespaces are now compatible with VPC. Setting this field to true doesn't matter anymore. It will be removed in a near future. */
289
+ activate_vpc_integration?: boolean | undefined;
290
+ }
291
+ /** Environment variables of the namespace. */
292
+ export type NamespaceEnvironmentVariablesMap = { [key: string]: string | undefined };
293
+ export type NamespaceStatus =
294
+ | "unknown"
295
+ | "ready"
296
+ | "deleting"
297
+ | "error"
298
+ | "locked"
299
+ | "creating"
300
+ | "pending";
301
+ /** Secret environment variables of the namespace. */
302
+ export type NamespaceSecretEnvironmentVariablesList = Array<SecretHashedValue>;
303
+ /** List of tags applied to the Serverless Function Namespace. */
304
+ export type NamespaceTagsList = Array<string>;
305
+ export interface Namespace {
306
+ /** UUID of the namespace. */
307
+ id?: string | undefined;
308
+ /** SRN of the namespace. */
309
+ srn?: string | undefined;
310
+ /** Name of the namespace. */
311
+ name?: string | undefined;
312
+ /** Environment variables of the namespace. */
313
+ environment_variables?: NamespaceEnvironmentVariablesMap | undefined;
314
+ /** UUID of the Organization the namespace belongs to. */
315
+ organization_id?: string | undefined;
316
+ /** UUID of the Project the namespace belongs to. */
317
+ project_id?: string | undefined;
318
+ /** Status of the namespace. */
319
+ status?: NamespaceStatus | undefined;
320
+ /** UUID of the registry namespace. */
321
+ registry_namespace_id?: string | undefined;
322
+ /** Error message if the namespace is in "error" state. */
323
+ error_message?: string | null | undefined;
324
+ /** Registry endpoint of the namespace. */
325
+ registry_endpoint?: string | undefined;
326
+ /** Description of the namespace. */
327
+ description?: string | null | undefined;
328
+ /** Secret environment variables of the namespace. */
329
+ secret_environment_variables?: NamespaceSecretEnvironmentVariablesList | undefined;
330
+ /** Region in which the namespace is located. */
331
+ region?: string | undefined;
332
+ /** List of tags applied to the Serverless Function Namespace. */
333
+ tags?: NamespaceTagsList | undefined;
334
+ /** Creation date of the namespace. (RFC 3339 format) */
335
+ created_at?: string | null | undefined;
336
+ /** Last update date of the namespace. (RFC 3339 format) */
337
+ updated_at?: string | null | undefined;
338
+ /** [DEPRECATED] By default, as of 2025/08/20, all namespaces are now compatible with VPC. The value of this field doesn't matter anymore, and will be removed in a near future. */
339
+ vpc_integration_activated?: boolean | undefined;
340
+ }
341
+ export type CreateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
342
+ export interface CreateTriggerRequestMnqSqsClientConfig {
343
+ /** Name of the SQS queue the trigger should listen to. */
344
+ queue: string;
345
+ /** ID of the Messaging and Queuing project. You must have activated SQS on this project. */
346
+ mnq_project_id: string;
347
+ /** Region in which the Messaging and Queuing project is activated. Currently, only the `fr-par` and `nl-ams` regions are available. */
348
+ mnq_region: string;
349
+ }
350
+ export interface CreateTriggerRequestMnqNatsClientConfig {
351
+ /** Name of the NATS subject the trigger should listen to. */
352
+ subject: string;
353
+ /** ID of the Messaging and Queuing NATS account. */
354
+ mnq_nats_account_id: string;
355
+ /** ID of the Messaging and Queuing project. */
356
+ mnq_project_id?: string | undefined;
357
+ /** Region in which the Messaging and Queuing project is activated. Currently, only the `fr-par` and `nl-ams` regions are available. */
358
+ mnq_region: string;
359
+ }
360
+ export interface CreateTriggerRequest {
361
+ /** The region you want to target */
362
+ region?: CreateTriggerRequestRegion | (string & {}) | undefined;
363
+ /** Name of the trigger. */
364
+ name: string;
365
+ /** ID of the function to trigger. */
366
+ function_id: string;
367
+ /** Description of the trigger. */
368
+ description?: string | null | undefined;
369
+ /** Configuration for a Scaleway Messaging and Queuing SQS queue. One of scw_sqs_config, scw_nats_config is required. */
370
+ scw_sqs_config?: CreateTriggerRequestMnqSqsClientConfig | null | undefined;
371
+ /** Configuration for a Scaleway Messaging and Queuing NATS subject. One of scw_sqs_config, scw_nats_config is required. */
372
+ scw_nats_config?: CreateTriggerRequestMnqNatsClientConfig | null | undefined;
373
+ }
374
+ export type TriggerInputType = "unknown_input_type" | "sqs" | "scw_sqs" | "nats" | "scw_nats";
375
+ export type TriggerStatus =
376
+ | "unknown_status"
377
+ | "ready"
378
+ | "deleting"
379
+ | "error"
380
+ | "creating"
381
+ | "pending";
382
+ export interface TriggerMnqSqsClientConfig {
383
+ /** Name of the SQS queue the trigger listens to. */
384
+ queue?: string | undefined;
385
+ /** ID of the Messaging and Queuing project. */
386
+ mnq_project_id?: string | undefined;
387
+ /** Region in which the Messaging and Queuing project is activated. Currently, only the `fr-par` and `nl-ams` regions are available. */
388
+ mnq_region?: string | undefined;
389
+ /** ID of the Messaging and Queuing credentials used to read from the SQS queue. */
390
+ mnq_credential_id?: string | null | undefined;
391
+ }
392
+ export interface TriggerMnqNatsClientConfig {
393
+ /** Name of the NATS subject the trigger listens to. */
394
+ subject?: string | undefined;
395
+ /** ID of the Messaging and Queuing NATS account. */
396
+ mnq_nats_account_id?: string | undefined;
397
+ /** ID of the Messaging and Queuing project. */
398
+ mnq_project_id?: string | undefined;
399
+ /** Region in which the Messaging and Queuing project is activated. Currently, only the `fr-par` and `nl-ams` regions are available. */
400
+ mnq_region?: string | undefined;
401
+ /** ID of the Messaging and Queuing credentials used to subscribe to the NATS subject. */
402
+ mnq_credential_id?: string | null | undefined;
403
+ }
404
+ export interface Trigger {
405
+ /** ID of the trigger. */
406
+ id?: string | undefined;
407
+ /** SRN of the trigger. */
408
+ srn?: string | undefined;
409
+ /** Name of the trigger. */
410
+ name?: string | undefined;
411
+ /** Description of the trigger. */
412
+ description?: string | undefined;
413
+ /** ID of the function to trigger. */
414
+ function_id?: string | undefined;
415
+ /** Type of the input. */
416
+ input_type?: TriggerInputType | undefined;
417
+ /** Status of the trigger. */
418
+ status?: TriggerStatus | undefined;
419
+ /** Error message of the trigger. */
420
+ error_message?: string | null | undefined;
421
+ /** Configuration for a Scaleway Messaging and Queuing SQS queue. Precisely one of scw_sqs_config, scw_nats_config can be set. */
422
+ scw_sqs_config?: TriggerMnqSqsClientConfig | null | undefined;
423
+ /** Configuration for a Scaleway Messaging and Queuing NATS subject. Precisely one of scw_sqs_config, scw_nats_config can be set. */
424
+ scw_nats_config?: TriggerMnqNatsClientConfig | null | undefined;
425
+ /** Region in which the trigger is located. */
426
+ region?: string | undefined;
427
+ }
428
+ export type DeleteCronRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
429
+ export interface DeleteCronRequest {
430
+ /** The region you want to target */
431
+ region?: DeleteCronRequestRegion | (string & {}) | undefined;
432
+ /** UUID of the cron to delete. */
433
+ cron_id: string;
434
+ }
435
+ export type DeleteDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
436
+ export interface DeleteDomainRequest {
437
+ /** The region you want to target */
438
+ region?: DeleteDomainRequestRegion | (string & {}) | undefined;
439
+ /** UUID of the domain to delete. */
440
+ domain_id: string;
441
+ }
442
+ export type DeleteFunctionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
443
+ export interface DeleteFunctionRequest {
444
+ /** The region you want to target */
445
+ region?: DeleteFunctionRequestRegion | (string & {}) | undefined;
446
+ /** UUID of the function to delete. */
447
+ function_id: string;
448
+ }
449
+ export type DeleteNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
450
+ export interface DeleteNamespaceRequest {
451
+ /** The region you want to target */
452
+ region?: DeleteNamespaceRequestRegion | (string & {}) | undefined;
453
+ /** UUID of the namespace. */
454
+ namespace_id: string;
455
+ }
456
+ export type DeleteTokenRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
457
+ export interface DeleteTokenRequest {
458
+ /** The region you want to target */
459
+ region?: DeleteTokenRequestRegion | (string & {}) | undefined;
460
+ /** UUID of the token to delete. */
461
+ token_id: string;
462
+ }
463
+ export type TokenStatus = "unknown" | "ready" | "deleting" | "error" | "creating";
464
+ export interface Token {
465
+ /** UUID of the token. */
466
+ id?: string | undefined;
467
+ /** String of the token. */
468
+ token?: string | Redacted.Redacted<string> | undefined;
469
+ /** UUID of the function the token is associated with. Precisely one of function_id, namespace_id can be set. */
470
+ function_id?: string | null | undefined;
471
+ /** UUID of the namespace the token is associated with. Precisely one of function_id, namespace_id can be set. */
472
+ namespace_id?: string | null | undefined;
473
+ /** Public key of the token. */
474
+ public_key?: string | undefined;
475
+ /** Status of the token. */
476
+ status?: TokenStatus | undefined;
477
+ /** Description of the token. */
478
+ description?: string | null | undefined;
479
+ /** Date on which the token expires. (RFC 3339 format) */
480
+ expires_at?: string | null | undefined;
481
+ }
482
+ export type DeleteTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
483
+ export interface DeleteTriggerRequest {
484
+ /** The region you want to target */
485
+ region?: DeleteTriggerRequestRegion | (string & {}) | undefined;
486
+ /** ID of the trigger to delete. */
487
+ trigger_id: string;
488
+ }
489
+ export type DeployFunctionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
490
+ export interface DeployFunctionRequest {
491
+ /** The region you want to target */
492
+ region?: DeployFunctionRequestRegion | (string & {}) | undefined;
493
+ /** UUID of the function to deploy. */
494
+ function_id: string;
495
+ }
496
+ export type GetCronRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
497
+ export interface GetCronRequest {
498
+ /** The region you want to target */
499
+ region?: GetCronRequestRegion | (string & {}) | undefined;
500
+ /** UUID of the cron to get. */
501
+ cron_id: string;
502
+ }
503
+ export type GetDomainRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
504
+ export interface GetDomainRequest {
505
+ /** The region you want to target */
506
+ region?: GetDomainRequestRegion | (string & {}) | undefined;
507
+ /** UUID of the domain to get. */
508
+ domain_id: string;
509
+ }
510
+ export type GetFunctionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
511
+ export interface GetFunctionRequest {
512
+ /** The region you want to target */
513
+ region?: GetFunctionRequestRegion | (string & {}) | undefined;
514
+ /** UUID of the function. */
515
+ function_id: string;
516
+ }
517
+ export type GetFunctionDownloadURLRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
518
+ export interface GetFunctionDownloadURLRequest {
519
+ /** The region you want to target */
520
+ region?: GetFunctionDownloadURLRequestRegion | (string & {}) | undefined;
521
+ /** UUID of the function to get the download URL for. */
522
+ function_id: string;
523
+ }
524
+ export type ScalewayStdStringsValue = Array<unknown>;
525
+ export type DownloadURLHeadersMap = { [key: string]: ScalewayStdStringsValue | null | undefined };
526
+ export interface DownloadURL {
527
+ url?: string | undefined;
528
+ headers?: DownloadURLHeadersMap | undefined;
529
+ }
530
+ export type GetFunctionUploadURLRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
531
+ export interface GetFunctionUploadURLRequest {
532
+ /** The region you want to target */
533
+ region?: GetFunctionUploadURLRequestRegion | (string & {}) | undefined;
534
+ /** UUID of the function to get the upload URL for. */
535
+ function_id: string;
536
+ /** Size of the archive to upload in bytes. */
537
+ content_length: number;
538
+ }
539
+ /** HTTP headers. */
540
+ export type UploadURLHeadersValueList = Array<unknown>;
541
+ /** HTTP headers. */
542
+ export type UploadURLHeadersMap = { [key: string]: UploadURLHeadersValueList | null | undefined };
543
+ export interface UploadURL {
544
+ /** Upload URL to upload the function to. */
545
+ url?: string | undefined;
546
+ /** HTTP headers. */
547
+ headers?: UploadURLHeadersMap | undefined;
548
+ }
549
+ export type GetNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
550
+ export interface GetNamespaceRequest {
551
+ /** The region you want to target */
552
+ region?: GetNamespaceRequestRegion | (string & {}) | undefined;
553
+ /** UUID of the namespace. */
554
+ namespace_id: string;
555
+ }
556
+ export type GetTokenRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
557
+ export interface GetTokenRequest {
558
+ /** The region you want to target */
559
+ region?: GetTokenRequestRegion | (string & {}) | undefined;
560
+ /** UUID of the token to get. */
561
+ token_id: string;
562
+ }
563
+ export type GetTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
564
+ export interface GetTriggerRequest {
565
+ /** The region you want to target */
566
+ region?: GetTriggerRequestRegion | (string & {}) | undefined;
567
+ /** ID of the trigger to get. */
568
+ trigger_id: string;
569
+ }
570
+ export type ListCronsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
571
+ export type ListCronsRequestOrderBy = "created_at_asc" | "created_at_desc";
572
+ export interface ListCronsRequest {
573
+ /** The region you want to target */
574
+ region?: ListCronsRequestRegion | (string & {}) | undefined;
575
+ /** Page number. */
576
+ page?: number | undefined;
577
+ /** Number of crons per page. */
578
+ page_size?: number | undefined;
579
+ /** Order of the crons. */
580
+ order_by?: ListCronsRequestOrderBy | (string & {}) | undefined;
581
+ /** UUID of the function. */
582
+ function_id: string;
583
+ }
584
+ /** Array of crons. */
585
+ export type ListCronsResponseCronsList = Array<Cron>;
586
+ export interface ListCronsResponse {
587
+ /** Array of crons. */
588
+ crons: ListCronsResponseCronsList;
589
+ /** Total number of crons. */
590
+ total_count?: number | undefined;
591
+ }
592
+ export type ListDomainsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
593
+ export type ListDomainsRequestOrderBy =
594
+ | "created_at_asc"
595
+ | "created_at_desc"
596
+ | "hostname_asc"
597
+ | "hostname_desc";
598
+ export interface ListDomainsRequest {
599
+ /** The region you want to target */
600
+ region?: ListDomainsRequestRegion | (string & {}) | undefined;
601
+ /** Page number. */
602
+ page?: number | undefined;
603
+ /** Number of domains per page. */
604
+ page_size?: number | undefined;
605
+ /** Order of the domains. */
606
+ order_by?: ListDomainsRequestOrderBy | (string & {}) | undefined;
607
+ /** UUID of the function the domain is associated with. */
608
+ function_id: string;
609
+ }
610
+ /** Array of domains. */
611
+ export type ListDomainsResponseDomainsList = Array<Domain>;
612
+ export interface ListDomainsResponse {
613
+ /** Array of domains. */
614
+ domains: ListDomainsResponseDomainsList;
615
+ /** Total number of domains. */
616
+ total_count?: number | undefined;
617
+ }
618
+ export type ListFunctionRuntimesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
619
+ export interface ListFunctionRuntimesRequest {
620
+ /** The region you want to target */
621
+ region?: ListFunctionRuntimesRequestRegion | (string & {}) | undefined;
622
+ }
623
+ export type RuntimeStatus =
624
+ | "unknown_status"
625
+ | "beta"
626
+ | "available"
627
+ | "deprecated"
628
+ | "end_of_support"
629
+ | "end_of_life";
630
+ export interface Runtime {
631
+ name?: string | undefined;
632
+ language?: string | undefined;
633
+ version?: string | undefined;
634
+ default_handler?: string | undefined;
635
+ code_sample?: string | undefined;
636
+ status?: RuntimeStatus | undefined;
637
+ status_message?: string | undefined;
638
+ extension?: string | undefined;
639
+ implementation?: string | undefined;
640
+ logo_url?: string | undefined;
641
+ }
642
+ /** Array of runtimes available. */
643
+ export type ListFunctionRuntimesResponseRuntimesList = Array<Runtime>;
644
+ export interface ListFunctionRuntimesResponse {
645
+ /** Array of runtimes available. */
646
+ runtimes?: ListFunctionRuntimesResponseRuntimesList | undefined;
647
+ /** Total number of runtimes. */
648
+ total_count?: number | undefined;
649
+ }
650
+ export type ListFunctionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
651
+ export type ListFunctionsRequestOrderBy =
652
+ | "created_at_asc"
653
+ | "created_at_desc"
654
+ | "name_asc"
655
+ | "name_desc";
656
+ export interface ListFunctionsRequest {
657
+ /** The region you want to target */
658
+ region?: ListFunctionsRequestRegion | (string & {}) | undefined;
659
+ /** Page number. */
660
+ page?: number | undefined;
661
+ /** Number of functions per page. */
662
+ page_size?: number | undefined;
663
+ /** Order of the functions. */
664
+ order_by?: ListFunctionsRequestOrderBy | (string & {}) | undefined;
665
+ /** UUID of the namespace the function belongs to. */
666
+ namespace_id: string;
667
+ /** Name of the function. */
668
+ name?: string | undefined;
669
+ /** UUID of the Organization the function belongs to. */
670
+ organization_id?: string | undefined;
671
+ /** UUID of the Project the function belongs to. */
672
+ project_id?: string | undefined;
673
+ }
674
+ /** Array of functions. */
675
+ export type ListFunctionsResponseFunctionsList = Array<Function>;
676
+ export interface ListFunctionsResponse {
677
+ /** Array of functions. */
678
+ functions: ListFunctionsResponseFunctionsList;
679
+ /** Total number of functions. */
680
+ total_count?: number | undefined;
681
+ }
682
+ export type ListNamespacesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
683
+ export type ListNamespacesRequestOrderBy =
684
+ | "created_at_asc"
685
+ | "created_at_desc"
686
+ | "name_asc"
687
+ | "name_desc";
688
+ export interface ListNamespacesRequest {
689
+ /** The region you want to target */
690
+ region?: ListNamespacesRequestRegion | (string & {}) | undefined;
691
+ /** Page number. */
692
+ page?: number | undefined;
693
+ /** Number of namespaces per page. */
694
+ page_size?: number | undefined;
695
+ /** Order of the namespaces. */
696
+ order_by?: ListNamespacesRequestOrderBy | (string & {}) | undefined;
697
+ /** Name of the namespace. */
698
+ name?: string | undefined;
699
+ /** UUID of the Organization the namespace belongs to. */
700
+ organization_id?: string | undefined;
701
+ /** UUID of the Project the namespace belongs to. */
702
+ project_id?: string | undefined;
703
+ }
704
+ export type ListNamespacesResponseNamespacesList = Array<Namespace>;
705
+ export interface ListNamespacesResponse {
706
+ namespaces: ListNamespacesResponseNamespacesList;
707
+ /** Total number of namespaces. */
708
+ total_count?: number | undefined;
709
+ }
710
+ export type ListTokensRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
711
+ export type ListTokensRequestOrderBy = "created_at_asc" | "created_at_desc";
712
+ export interface ListTokensRequest {
713
+ /** The region you want to target */
714
+ region?: ListTokensRequestRegion | (string & {}) | undefined;
715
+ /** Page number. */
716
+ page?: number | undefined;
717
+ /** Number of tokens per page. */
718
+ page_size?: number | undefined;
719
+ /** Sort order for the tokens. */
720
+ order_by?: ListTokensRequestOrderBy | (string & {}) | undefined;
721
+ /** UUID of the function the token is associated with. */
722
+ function_id?: string | undefined;
723
+ /** UUID of the namespace the token is associated with. */
724
+ namespace_id?: string | undefined;
725
+ }
726
+ export type ListTokensResponseTokensList = Array<Token>;
727
+ export interface ListTokensResponse {
728
+ tokens: ListTokensResponseTokensList;
729
+ total_count?: number | undefined;
730
+ }
731
+ export type ListTriggersRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
732
+ export type ListTriggersRequestOrderBy = "created_at_asc" | "created_at_desc";
733
+ export interface ListTriggersRequest {
734
+ /** The region you want to target */
735
+ region?: ListTriggersRequestRegion | (string & {}) | undefined;
736
+ /** Page number to return. */
737
+ page?: number | undefined;
738
+ /** Maximum number of triggers to return per page. */
739
+ page_size?: number | undefined;
740
+ /** Order in which to return results. */
741
+ order_by?: ListTriggersRequestOrderBy | (string & {}) | undefined;
742
+ /** ID of the function the triggers belong to. One-of `scope`: at most one of `function_id`, `namespace_id`, `project_id`. */
743
+ function_id?: string | undefined;
744
+ /** ID of the namespace the triggers belong to. One-of `scope`: at most one of `function_id`, `namespace_id`, `project_id`. */
745
+ namespace_id?: string | undefined;
746
+ /** ID of the Project the triggers belong to. One-of `scope`: at most one of `function_id`, `namespace_id`, `project_id`. */
747
+ project_id?: string | undefined;
748
+ }
749
+ /** Triggers on this page. */
750
+ export type ListTriggersResponseTriggersList = Array<Trigger>;
751
+ export interface ListTriggersResponse {
752
+ /** Total count of existing triggers (matching any filters specified). */
753
+ total_count?: number | undefined;
754
+ /** Triggers on this page. */
755
+ triggers: ListTriggersResponseTriggersList;
756
+ }
757
+ export type UpdateCronRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
758
+ /** Arguments to use with the cron. */
759
+ export type UpdateCronRequestArgsMap = { [key: string]: unknown | undefined };
760
+ export interface UpdateCronRequest {
761
+ /** The region you want to target */
762
+ region?: UpdateCronRequestRegion | (string & {}) | undefined;
763
+ /** UUID of the cron to update. */
764
+ cron_id: string;
765
+ /** UUID of the function to use the cron with. */
766
+ function_id?: string | null | undefined;
767
+ /** Schedule of the cron in UNIX cron format. */
768
+ schedule?: string | null | undefined;
769
+ /** Arguments to use with the cron. */
770
+ args?: UpdateCronRequestArgsMap | undefined;
771
+ /** Name of the cron. */
772
+ name?: string | null | undefined;
773
+ }
774
+ export type UpdateFunctionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
775
+ /** Environment variables of the function to update. */
776
+ export type UpdateFunctionRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
777
+ /** Secret environment variables of the function. During an update, secret environment variables that are not specified in this field will be kept unchanged. In order to delete a specific secret environment variable, you must reference its key, but not provide any value for it. For example, the following payload will delete the `TO_DELETE` secret environment variable: ```json { "secret_environment_variables":[ {"key":"TO_DELETE"} ] } ```. */
778
+ export type UpdateFunctionRequestSecretEnvironmentVariablesList = Array<Secret>;
779
+ /** Tags of the Serverless Function. */
780
+ export type UpdateFunctionRequestTagsList = Array<unknown>;
781
+ export interface UpdateFunctionRequest {
782
+ /** The region you want to target */
783
+ region?: UpdateFunctionRequestRegion | (string & {}) | undefined;
784
+ /** UUID of the function to update. */
785
+ function_id: string;
786
+ /** Environment variables of the function to update. */
787
+ environment_variables?: UpdateFunctionRequestEnvironmentVariablesMap | null | undefined;
788
+ /** Minimum number of instances to scale the function to. */
789
+ min_scale?: number | null | undefined;
790
+ /** Maximum number of instances to scale the function to. */
791
+ max_scale?: number | null | undefined;
792
+ /** Runtime to use with the function. */
793
+ runtime?: FunctionRuntime | (string & {}) | undefined;
794
+ /** Memory limit of the function in MB. */
795
+ memory_limit?: number | null | undefined;
796
+ /** Processing time limit for the function. (in seconds) */
797
+ timeout?: string | null | undefined;
798
+ /** Redeploy failed function. */
799
+ redeploy?: boolean | null | undefined;
800
+ /** Handler to use with the function. */
801
+ handler?: string | null | undefined;
802
+ /** Privacy setting of the function. */
803
+ privacy?: FunctionPrivacy | (string & {}) | undefined;
804
+ /** Description of the function. */
805
+ description?: string | null | undefined;
806
+ /** Secret environment variables of the function. During an update, secret environment variables that are not specified in this field will be kept unchanged. In order to delete a specific secret environment variable, you must reference its key, but not provide any value for it. For example, the following payload will delete the `TO_DELETE` secret environment variable: ```json { "secret_environment_variables":[ {"key":"TO_DELETE"} ] } ```. */
807
+ secret_environment_variables?: UpdateFunctionRequestSecretEnvironmentVariablesList | undefined;
808
+ /** Configure how HTTP and HTTPS requests are handled. Possible values: - redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS. - enabled: Serve both HTTP and HTTPS traffic. */
809
+ http_option?: FunctionHttpOption | (string & {}) | undefined;
810
+ /** Execution environment of the function. */
811
+ sandbox?: FunctionSandbox | (string & {}) | undefined;
812
+ /** Tags of the Serverless Function. */
813
+ tags?: UpdateFunctionRequestTagsList | null | undefined;
814
+ /** ID of the Private Network the function is connected to. When connected to a Private Network, the function can access other Scaleway resources in this Private Network. */
815
+ private_network_id?: string | null | undefined;
816
+ }
817
+ export type UpdateNamespaceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
818
+ /** Environment variables of the namespace. */
819
+ export type UpdateNamespaceRequestEnvironmentVariablesMap = { [key: string]: string | undefined };
820
+ /** Secret environment variables of the namespace. */
821
+ export type UpdateNamespaceRequestSecretEnvironmentVariablesList = Array<Secret>;
822
+ /** Tags of the Serverless Function Namespace. */
823
+ export type UpdateNamespaceRequestTagsList = Array<unknown>;
824
+ export interface UpdateNamespaceRequest {
825
+ /** The region you want to target */
826
+ region?: UpdateNamespaceRequestRegion | (string & {}) | undefined;
827
+ /** UUID of the namespapce. */
828
+ namespace_id: string;
829
+ /** Environment variables of the namespace. */
830
+ environment_variables?: UpdateNamespaceRequestEnvironmentVariablesMap | null | undefined;
831
+ /** Description of the namespace. */
832
+ description?: string | null | undefined;
833
+ /** Secret environment variables of the namespace. */
834
+ secret_environment_variables?: UpdateNamespaceRequestSecretEnvironmentVariablesList | undefined;
835
+ /** Tags of the Serverless Function Namespace. */
836
+ tags?: UpdateNamespaceRequestTagsList | null | undefined;
837
+ }
838
+ export type UpdateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
839
+ export interface UpdateTriggerRequest {
840
+ /** The region you want to target */
841
+ region?: UpdateTriggerRequestRegion | (string & {}) | undefined;
842
+ /** ID of the trigger to update. */
843
+ trigger_id: string;
844
+ /** Name of the trigger. */
845
+ name?: string | null | undefined;
846
+ /** Description of the trigger. */
847
+ description?: string | null | undefined;
848
+ }
849
+ export type CreateCronError = ScalewayOpError;
850
+ /** Create a new cron Create a new cronjob for a function with the specified ID. */
851
+ export const createCron: API.OperationMethod<
852
+ CreateCronRequest,
853
+ Cron,
854
+ CreateCronError,
855
+ ScalewayOpContext
856
+ > = /*@__PURE__*/ API.make(() => ({
857
+ input: __S(0, __c0, 0) as any as S.Schema<CreateCronRequest>,
858
+ output: __S(5, __c1, 1) as any as S.Schema<Cron>,
859
+ errors: [],
860
+ serviceErrors: ScalewayServiceErrors,
861
+ protocol: ScalewayProtocol,
862
+ retry: Retry.Retry,
863
+ telemetry: TELEMETRY,
864
+ span: "CreateCron",
865
+ }));
866
+
867
+ export type CreateDomainError = ScalewayOpError;
868
+ /** Create a domain name binding Create a domain name binding for the function with the specified ID. */
869
+ export const createDomain: API.OperationMethod<
870
+ CreateDomainRequest,
871
+ Domain,
872
+ CreateDomainError,
873
+ ScalewayOpContext
874
+ > = /*@__PURE__*/ API.make(() => ({
875
+ input: __S(8, __c2, 0) as any as S.Schema<CreateDomainRequest>,
876
+ output: __S(12, __c3, 0) as any as S.Schema<Domain>,
877
+ errors: [],
878
+ serviceErrors: ScalewayServiceErrors,
879
+ protocol: ScalewayProtocol,
880
+ retry: Retry.Retry,
881
+ telemetry: TELEMETRY,
882
+ span: "CreateDomain",
883
+ }));
884
+
885
+ export type CreateFunctionError = ScalewayOpError;
886
+ /** Create a new function Create a new function in the specified region for a specified Organization or Project. */
887
+ export const createFunction: API.OperationMethod<
888
+ CreateFunctionRequest,
889
+ Function,
890
+ CreateFunctionError,
891
+ ScalewayOpContext
892
+ > = /*@__PURE__*/ API.make(() => ({
893
+ input: __S(64, __c16, 0) as any as S.Schema<CreateFunctionRequest>,
894
+ output: __S(76, __c19, 0) as any as S.Schema<Function>,
895
+ errors: [],
896
+ serviceErrors: ScalewayServiceErrors,
897
+ protocol: ScalewayProtocol,
898
+ retry: Retry.Retry,
899
+ telemetry: TELEMETRY,
900
+ span: "CreateFunction",
901
+ }));
902
+
903
+ export type CreateNamespaceError = ScalewayOpError;
904
+ /** Create a new namespace Create a new namespace in a specified Organization or Project. */
905
+ export const createNamespace: API.OperationMethod<
906
+ CreateNamespaceRequest,
907
+ Namespace,
908
+ CreateNamespaceError,
909
+ ScalewayOpContext
910
+ > = /*@__PURE__*/ API.make(() => ({
911
+ input: __S(120, __c30, 0) as any as S.Schema<CreateNamespaceRequest>,
912
+ output: __S(124, __c31, 0) as any as S.Schema<Namespace>,
913
+ errors: [],
914
+ serviceErrors: ScalewayServiceErrors,
915
+ protocol: ScalewayProtocol,
916
+ retry: Retry.Retry,
917
+ telemetry: TELEMETRY,
918
+ span: "CreateNamespace",
919
+ }));
920
+
921
+ export type CreateTriggerError = ScalewayOpError;
922
+ /** Create a trigger Create a new trigger for a specified function. */
923
+ export const createTrigger: API.OperationMethod<
924
+ CreateTriggerRequest,
925
+ Trigger,
926
+ CreateTriggerError,
927
+ ScalewayOpContext
928
+ > = /*@__PURE__*/ API.make(() => ({
929
+ input: __S(134, __c33, 2) as any as S.Schema<CreateTriggerRequest>,
930
+ output: __S(138, __c34, 2) as any as S.Schema<Trigger>,
931
+ errors: [],
932
+ serviceErrors: ScalewayServiceErrors,
933
+ protocol: ScalewayProtocol,
934
+ retry: Retry.Retry,
935
+ telemetry: TELEMETRY,
936
+ span: "CreateTrigger",
937
+ }));
938
+
939
+ export type DeleteCronError = ScalewayOpError;
940
+ /** Delete an existing cron Delete the cron associated with the specified ID. */
941
+ export const deleteCron: API.OperationMethod<
942
+ DeleteCronRequest,
943
+ Cron,
944
+ DeleteCronError,
945
+ ScalewayOpContext
946
+ > = /*@__PURE__*/ API.make(() => ({
947
+ input: __S(140, __c35, 0) as any as S.Schema<DeleteCronRequest>,
948
+ output: __S(5, __c1, 1) as any as S.Schema<Cron>,
949
+ errors: [],
950
+ serviceErrors: ScalewayServiceErrors,
951
+ protocol: ScalewayProtocol,
952
+ retry: Retry.Retry,
953
+ telemetry: TELEMETRY,
954
+ span: "DeleteCron",
955
+ }));
956
+
957
+ export type DeleteDomainError = ScalewayOpError;
958
+ /** Delete a domain name binding Delete a domain name binding for the function with the specified ID. */
959
+ export const deleteDomain: API.OperationMethod<
960
+ DeleteDomainRequest,
961
+ Domain,
962
+ DeleteDomainError,
963
+ ScalewayOpContext
964
+ > = /*@__PURE__*/ API.make(() => ({
965
+ input: __S(144, __c36, 0) as any as S.Schema<DeleteDomainRequest>,
966
+ output: __S(12, __c3, 0) as any as S.Schema<Domain>,
967
+ errors: [],
968
+ serviceErrors: ScalewayServiceErrors,
969
+ protocol: ScalewayProtocol,
970
+ retry: Retry.Retry,
971
+ telemetry: TELEMETRY,
972
+ span: "DeleteDomain",
973
+ }));
974
+
975
+ export type DeleteFunctionError = ScalewayOpError;
976
+ /** Delete a function Delete the function associated with the specified ID. */
977
+ export const deleteFunction: API.OperationMethod<
978
+ DeleteFunctionRequest,
979
+ Function,
980
+ DeleteFunctionError,
981
+ ScalewayOpContext
982
+ > = /*@__PURE__*/ API.make(() => ({
983
+ input: __S(148, __c37, 0) as any as S.Schema<DeleteFunctionRequest>,
984
+ output: __S(76, __c19, 0) as any as S.Schema<Function>,
985
+ errors: [],
986
+ serviceErrors: ScalewayServiceErrors,
987
+ protocol: ScalewayProtocol,
988
+ retry: Retry.Retry,
989
+ telemetry: TELEMETRY,
990
+ span: "DeleteFunction",
991
+ }));
992
+
993
+ export type DeleteNamespaceError = ScalewayOpError;
994
+ /** Delete an existing namespace Delete the namespace associated with the specified ID. */
995
+ export const deleteNamespace: API.OperationMethod<
996
+ DeleteNamespaceRequest,
997
+ Namespace,
998
+ DeleteNamespaceError,
999
+ ScalewayOpContext
1000
+ > = /*@__PURE__*/ API.make(() => ({
1001
+ input: __S(152, __c38, 0) as any as S.Schema<DeleteNamespaceRequest>,
1002
+ output: __S(124, __c31, 0) as any as S.Schema<Namespace>,
1003
+ errors: [],
1004
+ serviceErrors: ScalewayServiceErrors,
1005
+ protocol: ScalewayProtocol,
1006
+ retry: Retry.Retry,
1007
+ telemetry: TELEMETRY,
1008
+ span: "DeleteNamespace",
1009
+ }));
1010
+
1011
+ export type DeleteTokenError = ScalewayOpError;
1012
+ /** Delete a token */
1013
+ export const deleteToken: API.OperationMethod<
1014
+ DeleteTokenRequest,
1015
+ Token,
1016
+ DeleteTokenError,
1017
+ ScalewayOpContext
1018
+ > = /*@__PURE__*/ API.make(() => ({
1019
+ input: __S(156, __c39, 0) as any as S.Schema<DeleteTokenRequest>,
1020
+ output: __S(160, __c40, 0) as any as S.Schema<Token>,
1021
+ errors: [],
1022
+ serviceErrors: ScalewayServiceErrors,
1023
+ protocol: ScalewayProtocol,
1024
+ retry: Retry.Retry,
1025
+ telemetry: TELEMETRY,
1026
+ span: "DeleteToken",
1027
+ }));
1028
+
1029
+ export type DeleteTriggerError = ScalewayOpError;
1030
+ /** Delete a trigger Delete a trigger with a specified ID. */
1031
+ export const deleteTrigger: API.OperationMethod<
1032
+ DeleteTriggerRequest,
1033
+ Trigger,
1034
+ DeleteTriggerError,
1035
+ ScalewayOpContext
1036
+ > = /*@__PURE__*/ API.make(() => ({
1037
+ input: __S(16, __c4, 0) as any as S.Schema<DeleteTriggerRequest>,
1038
+ output: __S(138, __c34, 2) as any as S.Schema<Trigger>,
1039
+ errors: [],
1040
+ serviceErrors: ScalewayServiceErrors,
1041
+ protocol: ScalewayProtocol,
1042
+ retry: Retry.Retry,
1043
+ telemetry: TELEMETRY,
1044
+ span: "DeleteTrigger",
1045
+ }));
1046
+
1047
+ export type DeployFunctionError = ScalewayOpError;
1048
+ /** Deploy a function Deploy a function associated with the specified ID. */
1049
+ export const deployFunction: API.OperationMethod<
1050
+ DeployFunctionRequest,
1051
+ Function,
1052
+ DeployFunctionError,
1053
+ ScalewayOpContext
1054
+ > = /*@__PURE__*/ API.make(() => ({
1055
+ input: __S(20, __c5, 0) as any as S.Schema<DeployFunctionRequest>,
1056
+ output: __S(76, __c19, 0) as any as S.Schema<Function>,
1057
+ errors: [],
1058
+ serviceErrors: ScalewayServiceErrors,
1059
+ protocol: ScalewayProtocol,
1060
+ retry: Retry.Retry,
1061
+ telemetry: TELEMETRY,
1062
+ span: "DeployFunction",
1063
+ }));
1064
+
1065
+ export type GetCronError = ScalewayOpError;
1066
+ /** Get a cron Get the cron associated with the specified ID. */
1067
+ export const getCron: API.OperationMethod<GetCronRequest, Cron, GetCronError, ScalewayOpContext> =
1068
+ /*@__PURE__*/ API.make(() => ({
1069
+ input: __S(24, __c6, 0) as any as S.Schema<GetCronRequest>,
1070
+ output: __S(5, __c1, 1) as any as S.Schema<Cron>,
1071
+ errors: [],
1072
+ serviceErrors: ScalewayServiceErrors,
1073
+ protocol: ScalewayProtocol,
1074
+ retry: Retry.Retry,
1075
+ telemetry: TELEMETRY,
1076
+ span: "GetCron",
1077
+ }));
1078
+
1079
+ export type GetDomainError = ScalewayOpError;
1080
+ /** Get a domain name binding Get a domain name binding for the function with the specified ID. */
1081
+ export const getDomain: API.OperationMethod<
1082
+ GetDomainRequest,
1083
+ Domain,
1084
+ GetDomainError,
1085
+ ScalewayOpContext
1086
+ > = /*@__PURE__*/ API.make(() => ({
1087
+ input: __S(28, __c7, 0) as any as S.Schema<GetDomainRequest>,
1088
+ output: __S(12, __c3, 0) as any as S.Schema<Domain>,
1089
+ errors: [],
1090
+ serviceErrors: ScalewayServiceErrors,
1091
+ protocol: ScalewayProtocol,
1092
+ retry: Retry.Retry,
1093
+ telemetry: TELEMETRY,
1094
+ span: "GetDomain",
1095
+ }));
1096
+
1097
+ export type GetFunctionError = ScalewayOpError;
1098
+ /** Get a function Get the function associated with the specified ID. */
1099
+ export const getFunction: API.OperationMethod<
1100
+ GetFunctionRequest,
1101
+ Function,
1102
+ GetFunctionError,
1103
+ ScalewayOpContext
1104
+ > = /*@__PURE__*/ API.make(() => ({
1105
+ input: __S(32, __c8, 0) as any as S.Schema<GetFunctionRequest>,
1106
+ output: __S(76, __c19, 0) as any as S.Schema<Function>,
1107
+ errors: [],
1108
+ serviceErrors: ScalewayServiceErrors,
1109
+ protocol: ScalewayProtocol,
1110
+ retry: Retry.Retry,
1111
+ telemetry: TELEMETRY,
1112
+ span: "GetFunction",
1113
+ }));
1114
+
1115
+ export type GetFunctionDownloadURLError = ScalewayOpError;
1116
+ /** Get a download URL of a function Get a download URL for a function associated with the specified ID. */
1117
+ export const getFunctionDownloadURL: API.OperationMethod<
1118
+ GetFunctionDownloadURLRequest,
1119
+ DownloadURL,
1120
+ GetFunctionDownloadURLError,
1121
+ ScalewayOpContext
1122
+ > = /*@__PURE__*/ API.make(() => ({
1123
+ input: __S(36, __c9, 0) as any as S.Schema<GetFunctionDownloadURLRequest>,
1124
+ output: __S(41, __c10, 1) as any as S.Schema<DownloadURL>,
1125
+ errors: [],
1126
+ serviceErrors: ScalewayServiceErrors,
1127
+ protocol: ScalewayProtocol,
1128
+ retry: Retry.Retry,
1129
+ telemetry: TELEMETRY,
1130
+ span: "GetFunctionDownloadURL",
1131
+ }));
1132
+
1133
+ export type GetFunctionUploadURLError = ScalewayOpError;
1134
+ /** Get an upload URL of a function Get an upload URL of a function associated with the specified ID. */
1135
+ export const getFunctionUploadURL: API.OperationMethod<
1136
+ GetFunctionUploadURLRequest,
1137
+ UploadURL,
1138
+ GetFunctionUploadURLError,
1139
+ ScalewayOpContext
1140
+ > = /*@__PURE__*/ API.make(() => ({
1141
+ input: __S(48, __c12, 0) as any as S.Schema<GetFunctionUploadURLRequest>,
1142
+ output: __S(41, __c10, 1) as any as S.Schema<UploadURL>,
1143
+ errors: [],
1144
+ serviceErrors: ScalewayServiceErrors,
1145
+ protocol: ScalewayProtocol,
1146
+ retry: Retry.Retry,
1147
+ telemetry: TELEMETRY,
1148
+ span: "GetFunctionUploadURL",
1149
+ }));
1150
+
1151
+ export type GetNamespaceError = ScalewayOpError;
1152
+ /** Get a namespace Get the namespace associated with the specified ID. */
1153
+ export const getNamespace: API.OperationMethod<
1154
+ GetNamespaceRequest,
1155
+ Namespace,
1156
+ GetNamespaceError,
1157
+ ScalewayOpContext
1158
+ > = /*@__PURE__*/ API.make(() => ({
1159
+ input: __S(52, __c13, 0) as any as S.Schema<GetNamespaceRequest>,
1160
+ output: __S(124, __c31, 0) as any as S.Schema<Namespace>,
1161
+ errors: [],
1162
+ serviceErrors: ScalewayServiceErrors,
1163
+ protocol: ScalewayProtocol,
1164
+ retry: Retry.Retry,
1165
+ telemetry: TELEMETRY,
1166
+ span: "GetNamespace",
1167
+ }));
1168
+
1169
+ export type GetTokenError = ScalewayOpError;
1170
+ /** Get a token */
1171
+ export const getToken: API.OperationMethod<
1172
+ GetTokenRequest,
1173
+ Token,
1174
+ GetTokenError,
1175
+ ScalewayOpContext
1176
+ > = /*@__PURE__*/ API.make(() => ({
1177
+ input: __S(56, __c14, 0) as any as S.Schema<GetTokenRequest>,
1178
+ output: __S(160, __c40, 0) as any as S.Schema<Token>,
1179
+ errors: [],
1180
+ serviceErrors: ScalewayServiceErrors,
1181
+ protocol: ScalewayProtocol,
1182
+ retry: Retry.Retry,
1183
+ telemetry: TELEMETRY,
1184
+ span: "GetToken",
1185
+ }));
1186
+
1187
+ export type GetTriggerError = ScalewayOpError;
1188
+ /** Get a trigger Get a trigger with a specified ID. */
1189
+ export const getTrigger: API.OperationMethod<
1190
+ GetTriggerRequest,
1191
+ Trigger,
1192
+ GetTriggerError,
1193
+ ScalewayOpContext
1194
+ > = /*@__PURE__*/ API.make(() => ({
1195
+ input: __S(60, __c15, 0) as any as S.Schema<GetTriggerRequest>,
1196
+ output: __S(138, __c34, 2) as any as S.Schema<Trigger>,
1197
+ errors: [],
1198
+ serviceErrors: ScalewayServiceErrors,
1199
+ protocol: ScalewayProtocol,
1200
+ retry: Retry.Retry,
1201
+ telemetry: TELEMETRY,
1202
+ span: "GetTrigger",
1203
+ }));
1204
+
1205
+ export type ListCronsError = ScalewayOpError;
1206
+ /** List all crons List all the cronjobs in a specified region. */
1207
+ export const listCrons: API.PaginatedOperationMethod<
1208
+ ListCronsRequest,
1209
+ ListCronsResponse,
1210
+ ListCronsError,
1211
+ ScalewayOpContext,
1212
+ Cron
1213
+ > = /*@__PURE__*/ API.makePaginated(
1214
+ () => ({
1215
+ input: __S(80, __c20, 0) as any as S.Schema<ListCronsRequest>,
1216
+ output: __S(82, __c20, 2) as any as S.Schema<ListCronsResponse>,
1217
+ errors: [],
1218
+ serviceErrors: ScalewayServiceErrors,
1219
+ protocol: ScalewayProtocol,
1220
+ retry: Retry.Retry,
1221
+ telemetry: TELEMETRY,
1222
+ span: "ListCrons",
1223
+ pagination: {
1224
+ mode: "page",
1225
+ inputToken: "page",
1226
+ outputToken: "total_count",
1227
+ items: "crons",
1228
+ pageSize: "page_size",
1229
+ } as const,
1230
+ }),
1231
+ paginateByTotalCount,
1232
+ ) as any;
1233
+
1234
+ export type ListDomainsError = ScalewayOpError;
1235
+ /** List all domain name bindings List all domain name bindings in a specified region. */
1236
+ export const listDomains: API.PaginatedOperationMethod<
1237
+ ListDomainsRequest,
1238
+ ListDomainsResponse,
1239
+ ListDomainsError,
1240
+ ScalewayOpContext,
1241
+ Domain
1242
+ > = /*@__PURE__*/ API.makePaginated(
1243
+ () => ({
1244
+ input: __S(84, __c21, 0) as any as S.Schema<ListDomainsRequest>,
1245
+ output: __S(86, __c21, 2) as any as S.Schema<ListDomainsResponse>,
1246
+ errors: [],
1247
+ serviceErrors: ScalewayServiceErrors,
1248
+ protocol: ScalewayProtocol,
1249
+ retry: Retry.Retry,
1250
+ telemetry: TELEMETRY,
1251
+ span: "ListDomains",
1252
+ pagination: {
1253
+ mode: "page",
1254
+ inputToken: "page",
1255
+ outputToken: "total_count",
1256
+ items: "domains",
1257
+ pageSize: "page_size",
1258
+ } as const,
1259
+ }),
1260
+ paginateByTotalCount,
1261
+ ) as any;
1262
+
1263
+ export type ListFunctionRuntimesError = ScalewayOpError;
1264
+ /** List function runtimes List available function runtimes. */
1265
+ export const listFunctionRuntimes: API.OperationMethod<
1266
+ ListFunctionRuntimesRequest,
1267
+ ListFunctionRuntimesResponse,
1268
+ ListFunctionRuntimesError,
1269
+ ScalewayOpContext
1270
+ > = /*@__PURE__*/ API.make(() => ({
1271
+ input: __S(88, __c22, 0) as any as S.Schema<ListFunctionRuntimesRequest>,
1272
+ output: __S(91, __c22, 3) as any as S.Schema<ListFunctionRuntimesResponse>,
1273
+ errors: [],
1274
+ serviceErrors: ScalewayServiceErrors,
1275
+ protocol: ScalewayProtocol,
1276
+ retry: Retry.Retry,
1277
+ telemetry: TELEMETRY,
1278
+ span: "ListFunctionRuntimes",
1279
+ }));
1280
+
1281
+ export type ListFunctionsError = ScalewayOpError;
1282
+ /** List all your functions */
1283
+ export const listFunctions: API.PaginatedOperationMethod<
1284
+ ListFunctionsRequest,
1285
+ ListFunctionsResponse,
1286
+ ListFunctionsError,
1287
+ ScalewayOpContext,
1288
+ Function
1289
+ > = /*@__PURE__*/ API.makePaginated(
1290
+ () => ({
1291
+ input: __S(92, __c23, 0) as any as S.Schema<ListFunctionsRequest>,
1292
+ output: __S(94, __c23, 2) as any as S.Schema<ListFunctionsResponse>,
1293
+ errors: [],
1294
+ serviceErrors: ScalewayServiceErrors,
1295
+ protocol: ScalewayProtocol,
1296
+ retry: Retry.Retry,
1297
+ telemetry: TELEMETRY,
1298
+ span: "ListFunctions",
1299
+ pagination: {
1300
+ mode: "page",
1301
+ inputToken: "page",
1302
+ outputToken: "total_count",
1303
+ items: "functions",
1304
+ pageSize: "page_size",
1305
+ } as const,
1306
+ }),
1307
+ paginateByTotalCount,
1308
+ ) as any;
1309
+
1310
+ export type ListNamespacesError = ScalewayOpError;
1311
+ /** List all your namespaces List all existing namespaces in the specified region. */
1312
+ export const listNamespaces: API.PaginatedOperationMethod<
1313
+ ListNamespacesRequest,
1314
+ ListNamespacesResponse,
1315
+ ListNamespacesError,
1316
+ ScalewayOpContext,
1317
+ Namespace
1318
+ > = /*@__PURE__*/ API.makePaginated(
1319
+ () => ({
1320
+ input: __S(96, __c24, 0) as any as S.Schema<ListNamespacesRequest>,
1321
+ output: __S(98, __c24, 2) as any as S.Schema<ListNamespacesResponse>,
1322
+ errors: [],
1323
+ serviceErrors: ScalewayServiceErrors,
1324
+ protocol: ScalewayProtocol,
1325
+ retry: Retry.Retry,
1326
+ telemetry: TELEMETRY,
1327
+ span: "ListNamespaces",
1328
+ pagination: {
1329
+ mode: "page",
1330
+ inputToken: "page",
1331
+ outputToken: "total_count",
1332
+ items: "namespaces",
1333
+ pageSize: "page_size",
1334
+ } as const,
1335
+ }),
1336
+ paginateByTotalCount,
1337
+ ) as any;
1338
+
1339
+ export type ListTokensError = ScalewayOpError;
1340
+ /** List all tokens */
1341
+ export const listTokens: API.PaginatedOperationMethod<
1342
+ ListTokensRequest,
1343
+ ListTokensResponse,
1344
+ ListTokensError,
1345
+ ScalewayOpContext,
1346
+ Token
1347
+ > = /*@__PURE__*/ API.makePaginated(
1348
+ () => ({
1349
+ input: __S(100, __c25, 0) as any as S.Schema<ListTokensRequest>,
1350
+ output: __S(102, __c25, 2) as any as S.Schema<ListTokensResponse>,
1351
+ errors: [],
1352
+ serviceErrors: ScalewayServiceErrors,
1353
+ protocol: ScalewayProtocol,
1354
+ retry: Retry.Retry,
1355
+ telemetry: TELEMETRY,
1356
+ span: "ListTokens",
1357
+ pagination: {
1358
+ mode: "page",
1359
+ inputToken: "page",
1360
+ outputToken: "total_count",
1361
+ items: "tokens",
1362
+ pageSize: "page_size",
1363
+ } as const,
1364
+ }),
1365
+ paginateByTotalCount,
1366
+ ) as any;
1367
+
1368
+ export type ListTriggersError = ScalewayOpError;
1369
+ /** List all triggers List all triggers belonging to a specified Organization or Project. */
1370
+ export const listTriggers: API.PaginatedOperationMethod<
1371
+ ListTriggersRequest,
1372
+ ListTriggersResponse,
1373
+ ListTriggersError,
1374
+ ScalewayOpContext,
1375
+ Trigger
1376
+ > = /*@__PURE__*/ API.makePaginated(
1377
+ () => ({
1378
+ input: __S(104, __c26, 0) as any as S.Schema<ListTriggersRequest>,
1379
+ output: __S(106, __c26, 2) as any as S.Schema<ListTriggersResponse>,
1380
+ errors: [],
1381
+ serviceErrors: ScalewayServiceErrors,
1382
+ protocol: ScalewayProtocol,
1383
+ retry: Retry.Retry,
1384
+ telemetry: TELEMETRY,
1385
+ span: "ListTriggers",
1386
+ pagination: {
1387
+ mode: "page",
1388
+ inputToken: "page",
1389
+ outputToken: "total_count",
1390
+ items: "triggers",
1391
+ pageSize: "page_size",
1392
+ } as const,
1393
+ }),
1394
+ paginateByTotalCount,
1395
+ ) as any;
1396
+
1397
+ export type UpdateCronError = ScalewayOpError;
1398
+ /** Update an existing cron Update the cron associated with the specified ID. */
1399
+ export const updateCron: API.OperationMethod<
1400
+ UpdateCronRequest,
1401
+ Cron,
1402
+ UpdateCronError,
1403
+ ScalewayOpContext
1404
+ > = /*@__PURE__*/ API.make(() => ({
1405
+ input: __S(108, __c27, 0) as any as S.Schema<UpdateCronRequest>,
1406
+ output: __S(5, __c1, 1) as any as S.Schema<Cron>,
1407
+ errors: [],
1408
+ serviceErrors: ScalewayServiceErrors,
1409
+ protocol: ScalewayProtocol,
1410
+ retry: Retry.Retry,
1411
+ telemetry: TELEMETRY,
1412
+ span: "UpdateCron",
1413
+ }));
1414
+
1415
+ export type UpdateFunctionError = ScalewayOpError;
1416
+ /** Update an existing function Update the function associated with the specified ID. When updating a function, the function is automatically redeployed to apply the changes. This behavior can be changed by setting the `redeploy` field to `false` in the request. */
1417
+ export const updateFunction: API.OperationMethod<
1418
+ UpdateFunctionRequest,
1419
+ Function,
1420
+ UpdateFunctionError,
1421
+ ScalewayOpContext
1422
+ > = /*@__PURE__*/ API.make(() => ({
1423
+ input: __S(112, __c28, 0) as any as S.Schema<UpdateFunctionRequest>,
1424
+ output: __S(76, __c19, 0) as any as S.Schema<Function>,
1425
+ errors: [],
1426
+ serviceErrors: ScalewayServiceErrors,
1427
+ protocol: ScalewayProtocol,
1428
+ retry: Retry.Retry,
1429
+ telemetry: TELEMETRY,
1430
+ span: "UpdateFunction",
1431
+ }));
1432
+
1433
+ export type UpdateNamespaceError = ScalewayOpError;
1434
+ /** Update an existing namespace Update the namespace associated with the specified ID. */
1435
+ export const updateNamespace: API.OperationMethod<
1436
+ UpdateNamespaceRequest,
1437
+ Namespace,
1438
+ UpdateNamespaceError,
1439
+ ScalewayOpContext
1440
+ > = /*@__PURE__*/ API.make(() => ({
1441
+ input: __S(116, __c29, 0) as any as S.Schema<UpdateNamespaceRequest>,
1442
+ output: __S(124, __c31, 0) as any as S.Schema<Namespace>,
1443
+ errors: [],
1444
+ serviceErrors: ScalewayServiceErrors,
1445
+ protocol: ScalewayProtocol,
1446
+ retry: Retry.Retry,
1447
+ telemetry: TELEMETRY,
1448
+ span: "UpdateNamespace",
1449
+ }));
1450
+
1451
+ export type UpdateTriggerError = ScalewayOpError;
1452
+ /** Update a trigger Update a trigger with a specified ID. */
1453
+ export const updateTrigger: API.OperationMethod<
1454
+ UpdateTriggerRequest,
1455
+ Trigger,
1456
+ UpdateTriggerError,
1457
+ ScalewayOpContext
1458
+ > = /*@__PURE__*/ API.make(() => ({
1459
+ input: __S(128, __c32, 0) as any as S.Schema<UpdateTriggerRequest>,
1460
+ output: __S(138, __c34, 2) as any as S.Schema<Trigger>,
1461
+ errors: [],
1462
+ serviceErrors: ScalewayServiceErrors,
1463
+ protocol: ScalewayProtocol,
1464
+ retry: Retry.Retry,
1465
+ telemetry: TELEMETRY,
1466
+ span: "UpdateTrigger",
1467
+ }));
1468
+
1469
+ // Schema builders: each runs one schema initializer, on that schema's first use.
1470
+ function __c0(j: number): any {
1471
+ switch (j) {
1472
+ case 0:
1473
+ return S.suspend(() =>
1474
+ S.Struct({
1475
+ region: S.optional(S.String.pipe(T.Label())),
1476
+ function_id: S.optional(S.String),
1477
+ schedule: S.optional(S.String),
1478
+ args: S.optional(__S(4, __c1, 0)),
1479
+ name: S.optional(S.NullOr(S.String)),
1480
+ }).pipe(
1481
+ T.Http({
1482
+ method: "POST",
1483
+ uri: "/functions/v1beta1/regions/{region}/crons",
1484
+ code: 200,
1485
+ baseUrl: "https://api.scaleway.com",
1486
+ }),
1487
+ ),
1488
+ ).annotate({ identifier: "CreateCronRequest" });
1489
+ }
1490
+ }
1491
+ function __c1(j: number): any {
1492
+ switch (j) {
1493
+ case 0:
1494
+ return S.Record(S.String, S.Unknown);
1495
+ case 1:
1496
+ return S.suspend(() =>
1497
+ S.Struct({
1498
+ id: S.optional(S.String),
1499
+ srn: S.optional(S.String),
1500
+ function_id: S.optional(S.String),
1501
+ schedule: S.optional(S.String),
1502
+ args: S.optional(__S(4, __c1, 0)),
1503
+ status: S.optional(S.String),
1504
+ name: S.optional(S.String),
1505
+ region: S.optional(S.String),
1506
+ }),
1507
+ ).annotate({ identifier: "Cron" });
1508
+ }
1509
+ }
1510
+ function __c2(j: number): any {
1511
+ switch (j) {
1512
+ case 0:
1513
+ return S.suspend(() =>
1514
+ S.Struct({
1515
+ region: S.optional(S.String.pipe(T.Label())),
1516
+ hostname: S.optional(S.String),
1517
+ function_id: S.optional(S.String),
1518
+ }).pipe(
1519
+ T.Http({
1520
+ method: "POST",
1521
+ uri: "/functions/v1beta1/regions/{region}/domains",
1522
+ code: 200,
1523
+ baseUrl: "https://api.scaleway.com",
1524
+ }),
1525
+ ),
1526
+ ).annotate({ identifier: "CreateDomainRequest" });
1527
+ }
1528
+ }
1529
+ function __c3(j: number): any {
1530
+ switch (j) {
1531
+ case 0:
1532
+ return S.suspend(() =>
1533
+ S.Struct({
1534
+ id: S.optional(S.String),
1535
+ srn: S.optional(S.String),
1536
+ hostname: S.optional(S.String),
1537
+ function_id: S.optional(S.String),
1538
+ url: S.optional(S.String),
1539
+ status: S.optional(S.String),
1540
+ error_message: S.optional(S.NullOr(S.String)),
1541
+ region: S.optional(S.String),
1542
+ }),
1543
+ ).annotate({ identifier: "Domain" });
1544
+ }
1545
+ }
1546
+ function __c4(j: number): any {
1547
+ switch (j) {
1548
+ case 0:
1549
+ return S.suspend(() =>
1550
+ S.Struct({
1551
+ region: S.optional(S.String.pipe(T.Label())),
1552
+ trigger_id: S.String.pipe(T.Label()),
1553
+ }).pipe(
1554
+ T.Http({
1555
+ method: "DELETE",
1556
+ uri: "/functions/v1beta1/regions/{region}/triggers/{trigger_id}",
1557
+ code: 200,
1558
+ baseUrl: "https://api.scaleway.com",
1559
+ }),
1560
+ ),
1561
+ ).annotate({ identifier: "DeleteTriggerRequest" });
1562
+ }
1563
+ }
1564
+ function __c5(j: number): any {
1565
+ switch (j) {
1566
+ case 0:
1567
+ return S.suspend(() =>
1568
+ S.Struct({
1569
+ region: S.optional(S.String.pipe(T.Label())),
1570
+ function_id: S.String.pipe(T.Label()),
1571
+ }).pipe(
1572
+ T.Http({
1573
+ method: "POST",
1574
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}/deploy",
1575
+ code: 200,
1576
+ baseUrl: "https://api.scaleway.com",
1577
+ }),
1578
+ ),
1579
+ ).annotate({ identifier: "DeployFunctionRequest" });
1580
+ }
1581
+ }
1582
+ function __c6(j: number): any {
1583
+ switch (j) {
1584
+ case 0:
1585
+ return S.suspend(() =>
1586
+ S.Struct({
1587
+ region: S.optional(S.String.pipe(T.Label())),
1588
+ cron_id: S.String.pipe(T.Label()),
1589
+ }).pipe(
1590
+ T.Http({
1591
+ method: "GET",
1592
+ uri: "/functions/v1beta1/regions/{region}/crons/{cron_id}",
1593
+ code: 200,
1594
+ baseUrl: "https://api.scaleway.com",
1595
+ }),
1596
+ ),
1597
+ ).annotate({ identifier: "GetCronRequest" });
1598
+ }
1599
+ }
1600
+ function __c7(j: number): any {
1601
+ switch (j) {
1602
+ case 0:
1603
+ return S.suspend(() =>
1604
+ S.Struct({
1605
+ region: S.optional(S.String.pipe(T.Label())),
1606
+ domain_id: S.String.pipe(T.Label()),
1607
+ }).pipe(
1608
+ T.Http({
1609
+ method: "GET",
1610
+ uri: "/functions/v1beta1/regions/{region}/domains/{domain_id}",
1611
+ code: 200,
1612
+ baseUrl: "https://api.scaleway.com",
1613
+ }),
1614
+ ),
1615
+ ).annotate({ identifier: "GetDomainRequest" });
1616
+ }
1617
+ }
1618
+ function __c8(j: number): any {
1619
+ switch (j) {
1620
+ case 0:
1621
+ return S.suspend(() =>
1622
+ S.Struct({
1623
+ region: S.optional(S.String.pipe(T.Label())),
1624
+ function_id: S.String.pipe(T.Label()),
1625
+ }).pipe(
1626
+ T.Http({
1627
+ method: "GET",
1628
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}",
1629
+ code: 200,
1630
+ baseUrl: "https://api.scaleway.com",
1631
+ }),
1632
+ ),
1633
+ ).annotate({ identifier: "GetFunctionRequest" });
1634
+ }
1635
+ }
1636
+ function __c9(j: number): any {
1637
+ switch (j) {
1638
+ case 0:
1639
+ return S.suspend(() =>
1640
+ S.Struct({
1641
+ region: S.optional(S.String.pipe(T.Label())),
1642
+ function_id: S.String.pipe(T.Label()),
1643
+ }).pipe(
1644
+ T.Http({
1645
+ method: "GET",
1646
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}/download-url",
1647
+ code: 200,
1648
+ baseUrl: "https://api.scaleway.com",
1649
+ }),
1650
+ ),
1651
+ ).annotate({ identifier: "GetFunctionDownloadURLRequest" });
1652
+ }
1653
+ }
1654
+ function __c10(j: number): any {
1655
+ switch (j) {
1656
+ case 0:
1657
+ return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(44, __c11, 0)));
1658
+ case 1:
1659
+ return S.suspend(() =>
1660
+ S.Struct({
1661
+ url: S.optional(S.String),
1662
+ headers: S.optional(__S(40, __c10, 0)),
1663
+ }),
1664
+ ).annotate({ identifier: "DownloadURL" });
1665
+ }
1666
+ }
1667
+ function __c11(j: number): any {
1668
+ switch (j) {
1669
+ case 0:
1670
+ return S.Array(S.Unknown);
1671
+ }
1672
+ }
1673
+ function __c12(j: number): any {
1674
+ switch (j) {
1675
+ case 0:
1676
+ return S.suspend(() =>
1677
+ S.Struct({
1678
+ region: S.optional(S.String.pipe(T.Label())),
1679
+ function_id: S.String.pipe(T.Label()),
1680
+ content_length: S.Number.pipe(T.Query()),
1681
+ }).pipe(
1682
+ T.Http({
1683
+ method: "GET",
1684
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}/upload-url",
1685
+ code: 200,
1686
+ baseUrl: "https://api.scaleway.com",
1687
+ }),
1688
+ ),
1689
+ ).annotate({ identifier: "GetFunctionUploadURLRequest" });
1690
+ }
1691
+ }
1692
+ function __c13(j: number): any {
1693
+ switch (j) {
1694
+ case 0:
1695
+ return S.suspend(() =>
1696
+ S.Struct({
1697
+ region: S.optional(S.String.pipe(T.Label())),
1698
+ namespace_id: S.String.pipe(T.Label()),
1699
+ }).pipe(
1700
+ T.Http({
1701
+ method: "GET",
1702
+ uri: "/functions/v1beta1/regions/{region}/namespaces/{namespace_id}",
1703
+ code: 200,
1704
+ baseUrl: "https://api.scaleway.com",
1705
+ }),
1706
+ ),
1707
+ ).annotate({ identifier: "GetNamespaceRequest" });
1708
+ }
1709
+ }
1710
+ function __c14(j: number): any {
1711
+ switch (j) {
1712
+ case 0:
1713
+ return S.suspend(() =>
1714
+ S.Struct({
1715
+ region: S.optional(S.String.pipe(T.Label())),
1716
+ token_id: S.String.pipe(T.Label()),
1717
+ }).pipe(
1718
+ T.Http({
1719
+ method: "GET",
1720
+ uri: "/functions/v1beta1/regions/{region}/tokens/{token_id}",
1721
+ code: 200,
1722
+ baseUrl: "https://api.scaleway.com",
1723
+ }),
1724
+ ),
1725
+ ).annotate({ identifier: "GetTokenRequest" });
1726
+ }
1727
+ }
1728
+ function __c15(j: number): any {
1729
+ switch (j) {
1730
+ case 0:
1731
+ return S.suspend(() =>
1732
+ S.Struct({
1733
+ region: S.optional(S.String.pipe(T.Label())),
1734
+ trigger_id: S.String.pipe(T.Label()),
1735
+ }).pipe(
1736
+ T.Http({
1737
+ method: "GET",
1738
+ uri: "/functions/v1beta1/regions/{region}/triggers/{trigger_id}",
1739
+ code: 200,
1740
+ baseUrl: "https://api.scaleway.com",
1741
+ }),
1742
+ ),
1743
+ ).annotate({ identifier: "GetTriggerRequest" });
1744
+ }
1745
+ }
1746
+ function __c16(j: number): any {
1747
+ switch (j) {
1748
+ case 0:
1749
+ return S.suspend(() =>
1750
+ S.Struct({
1751
+ region: S.optional(S.String.pipe(T.Label())),
1752
+ name: S.optional(S.String),
1753
+ namespace_id: S.optional(S.String),
1754
+ environment_variables: S.optional(S.NullOr(__S(72, __c18, 0))),
1755
+ min_scale: S.optional(S.NullOr(S.Number)),
1756
+ max_scale: S.optional(S.NullOr(S.Number)),
1757
+ runtime: S.optional(S.String),
1758
+ memory_limit: S.optional(S.NullOr(S.Number)),
1759
+ timeout: S.optional(S.NullOr(S.String)),
1760
+ handler: S.optional(S.NullOr(S.String)),
1761
+ privacy: S.optional(S.String),
1762
+ description: S.optional(S.NullOr(S.String)),
1763
+ secret_environment_variables: S.optional(__S(69, __c17, 1)),
1764
+ http_option: S.optional(S.String),
1765
+ sandbox: S.optional(S.String),
1766
+ tags: S.optional(__S(73, __c18, 1)),
1767
+ private_network_id: S.optional(S.NullOr(S.String)),
1768
+ }).pipe(
1769
+ T.Http({
1770
+ method: "POST",
1771
+ uri: "/functions/v1beta1/regions/{region}/functions",
1772
+ code: 200,
1773
+ baseUrl: "https://api.scaleway.com",
1774
+ }),
1775
+ ),
1776
+ ).annotate({ identifier: "CreateFunctionRequest" });
1777
+ }
1778
+ }
1779
+ function __c17(j: number): any {
1780
+ switch (j) {
1781
+ case 0:
1782
+ return S.suspend(() =>
1783
+ S.Struct({
1784
+ key: S.optional(S.String),
1785
+ value: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1786
+ }),
1787
+ ).annotate({ identifier: "Secret" });
1788
+ case 1:
1789
+ return S.Array(__S(68, __c17, 0));
1790
+ }
1791
+ }
1792
+ function __c18(j: number): any {
1793
+ switch (j) {
1794
+ case 0:
1795
+ return S.Record(S.String, S.String);
1796
+ case 1:
1797
+ return S.Array(S.String);
1798
+ case 2:
1799
+ return S.suspend(() =>
1800
+ S.Struct({
1801
+ key: S.optional(S.String),
1802
+ hashed_value: S.optional(S.String),
1803
+ }),
1804
+ ).annotate({ identifier: "SecretHashedValue" });
1805
+ case 3:
1806
+ return S.Array(__S(74, __c18, 2));
1807
+ }
1808
+ }
1809
+ function __c19(j: number): any {
1810
+ switch (j) {
1811
+ case 0:
1812
+ return S.suspend(() =>
1813
+ S.Struct({
1814
+ id: S.optional(S.String),
1815
+ srn: S.optional(S.String),
1816
+ name: S.optional(S.String),
1817
+ namespace_id: S.optional(S.String),
1818
+ status: S.optional(S.String),
1819
+ environment_variables: S.optional(__S(72, __c18, 0)),
1820
+ min_scale: S.optional(S.Number),
1821
+ max_scale: S.optional(S.Number),
1822
+ runtime: S.optional(S.String),
1823
+ memory_limit: S.optional(S.Number),
1824
+ cpu_limit: S.optional(S.Number),
1825
+ timeout: S.optional(S.NullOr(S.String)),
1826
+ handler: S.optional(S.String),
1827
+ error_message: S.optional(S.NullOr(S.String)),
1828
+ build_message: S.optional(S.NullOr(S.String)),
1829
+ privacy: S.optional(S.String),
1830
+ description: S.optional(S.NullOr(S.String)),
1831
+ domain_name: S.optional(S.String),
1832
+ secret_environment_variables: S.optional(__S(75, __c18, 3)),
1833
+ region: S.optional(S.String),
1834
+ http_option: S.optional(S.String),
1835
+ runtime_message: S.optional(S.String),
1836
+ sandbox: S.optional(S.String),
1837
+ created_at: S.optional(S.NullOr(S.String)),
1838
+ updated_at: S.optional(S.NullOr(S.String)),
1839
+ ready_at: S.optional(S.NullOr(S.String)),
1840
+ tags: S.optional(__S(73, __c18, 1)),
1841
+ private_network_id: S.optional(S.NullOr(S.String)),
1842
+ }),
1843
+ ).annotate({ identifier: "Function" });
1844
+ }
1845
+ }
1846
+ function __c20(j: number): any {
1847
+ switch (j) {
1848
+ case 0:
1849
+ return S.suspend(() =>
1850
+ S.Struct({
1851
+ region: S.optional(S.String.pipe(T.Label())),
1852
+ page: S.optional(S.Number.pipe(T.Query())),
1853
+ page_size: S.optional(S.Number.pipe(T.Query())),
1854
+ order_by: S.optional(S.String.pipe(T.Query())),
1855
+ function_id: S.String.pipe(T.Query()),
1856
+ }).pipe(
1857
+ T.Http({
1858
+ method: "GET",
1859
+ uri: "/functions/v1beta1/regions/{region}/crons",
1860
+ code: 200,
1861
+ baseUrl: "https://api.scaleway.com",
1862
+ }),
1863
+ ),
1864
+ ).annotate({ identifier: "ListCronsRequest" });
1865
+ case 1:
1866
+ return S.Array(__S(5, __c1, 1));
1867
+ case 2:
1868
+ return S.suspend(() =>
1869
+ S.Struct({
1870
+ crons: __S(81, __c20, 1),
1871
+ total_count: S.optional(S.Number),
1872
+ }),
1873
+ ).annotate({ identifier: "ListCronsResponse" });
1874
+ }
1875
+ }
1876
+ function __c21(j: number): any {
1877
+ switch (j) {
1878
+ case 0:
1879
+ return S.suspend(() =>
1880
+ S.Struct({
1881
+ region: S.optional(S.String.pipe(T.Label())),
1882
+ page: S.optional(S.Number.pipe(T.Query())),
1883
+ page_size: S.optional(S.Number.pipe(T.Query())),
1884
+ order_by: S.optional(S.String.pipe(T.Query())),
1885
+ function_id: S.String.pipe(T.Query()),
1886
+ }).pipe(
1887
+ T.Http({
1888
+ method: "GET",
1889
+ uri: "/functions/v1beta1/regions/{region}/domains",
1890
+ code: 200,
1891
+ baseUrl: "https://api.scaleway.com",
1892
+ }),
1893
+ ),
1894
+ ).annotate({ identifier: "ListDomainsRequest" });
1895
+ case 1:
1896
+ return S.Array(__S(12, __c3, 0));
1897
+ case 2:
1898
+ return S.suspend(() =>
1899
+ S.Struct({
1900
+ domains: __S(85, __c21, 1),
1901
+ total_count: S.optional(S.Number),
1902
+ }),
1903
+ ).annotate({ identifier: "ListDomainsResponse" });
1904
+ }
1905
+ }
1906
+ function __c22(j: number): any {
1907
+ switch (j) {
1908
+ case 0:
1909
+ return S.suspend(() =>
1910
+ S.Struct({
1911
+ region: S.optional(S.String.pipe(T.Label())),
1912
+ }).pipe(
1913
+ T.Http({
1914
+ method: "GET",
1915
+ uri: "/functions/v1beta1/regions/{region}/runtimes",
1916
+ code: 200,
1917
+ baseUrl: "https://api.scaleway.com",
1918
+ }),
1919
+ ),
1920
+ ).annotate({ identifier: "ListFunctionRuntimesRequest" });
1921
+ case 1:
1922
+ return S.suspend(() =>
1923
+ S.Struct({
1924
+ name: S.optional(S.String),
1925
+ language: S.optional(S.String),
1926
+ version: S.optional(S.String),
1927
+ default_handler: S.optional(S.String),
1928
+ code_sample: S.optional(S.String),
1929
+ status: S.optional(S.String),
1930
+ status_message: S.optional(S.String),
1931
+ extension: S.optional(S.String),
1932
+ implementation: S.optional(S.String),
1933
+ logo_url: S.optional(S.String),
1934
+ }),
1935
+ ).annotate({ identifier: "Runtime" });
1936
+ case 2:
1937
+ return S.Array(__S(89, __c22, 1));
1938
+ case 3:
1939
+ return S.suspend(() =>
1940
+ S.Struct({
1941
+ runtimes: S.optional(__S(90, __c22, 2)),
1942
+ total_count: S.optional(S.Number),
1943
+ }),
1944
+ ).annotate({ identifier: "ListFunctionRuntimesResponse" });
1945
+ }
1946
+ }
1947
+ function __c23(j: number): any {
1948
+ switch (j) {
1949
+ case 0:
1950
+ return S.suspend(() =>
1951
+ S.Struct({
1952
+ region: S.optional(S.String.pipe(T.Label())),
1953
+ page: S.optional(S.Number.pipe(T.Query())),
1954
+ page_size: S.optional(S.Number.pipe(T.Query())),
1955
+ order_by: S.optional(S.String.pipe(T.Query())),
1956
+ namespace_id: S.String.pipe(T.Query()),
1957
+ name: S.optional(S.String.pipe(T.Query())),
1958
+ organization_id: S.optional(S.String.pipe(T.Query())),
1959
+ project_id: S.optional(S.String.pipe(T.Query())),
1960
+ }).pipe(
1961
+ T.Http({
1962
+ method: "GET",
1963
+ uri: "/functions/v1beta1/regions/{region}/functions",
1964
+ code: 200,
1965
+ baseUrl: "https://api.scaleway.com",
1966
+ }),
1967
+ ),
1968
+ ).annotate({ identifier: "ListFunctionsRequest" });
1969
+ case 1:
1970
+ return S.Array(__S(76, __c19, 0));
1971
+ case 2:
1972
+ return S.suspend(() =>
1973
+ S.Struct({
1974
+ functions: __S(93, __c23, 1),
1975
+ total_count: S.optional(S.Number),
1976
+ }),
1977
+ ).annotate({ identifier: "ListFunctionsResponse" });
1978
+ }
1979
+ }
1980
+ function __c24(j: number): any {
1981
+ switch (j) {
1982
+ case 0:
1983
+ return S.suspend(() =>
1984
+ S.Struct({
1985
+ region: S.optional(S.String.pipe(T.Label())),
1986
+ page: S.optional(S.Number.pipe(T.Query())),
1987
+ page_size: S.optional(S.Number.pipe(T.Query())),
1988
+ order_by: S.optional(S.String.pipe(T.Query())),
1989
+ name: S.optional(S.String.pipe(T.Query())),
1990
+ organization_id: S.optional(S.String.pipe(T.Query())),
1991
+ project_id: S.optional(S.String.pipe(T.Query())),
1992
+ }).pipe(
1993
+ T.Http({
1994
+ method: "GET",
1995
+ uri: "/functions/v1beta1/regions/{region}/namespaces",
1996
+ code: 200,
1997
+ baseUrl: "https://api.scaleway.com",
1998
+ }),
1999
+ ),
2000
+ ).annotate({ identifier: "ListNamespacesRequest" });
2001
+ case 1:
2002
+ return S.Array(__S(124, __c31, 0));
2003
+ case 2:
2004
+ return S.suspend(() =>
2005
+ S.Struct({
2006
+ namespaces: __S(97, __c24, 1),
2007
+ total_count: S.optional(S.Number),
2008
+ }),
2009
+ ).annotate({ identifier: "ListNamespacesResponse" });
2010
+ }
2011
+ }
2012
+ function __c25(j: number): any {
2013
+ switch (j) {
2014
+ case 0:
2015
+ return S.suspend(() =>
2016
+ S.Struct({
2017
+ region: S.optional(S.String.pipe(T.Label())),
2018
+ page: S.optional(S.Number.pipe(T.Query())),
2019
+ page_size: S.optional(S.Number.pipe(T.Query())),
2020
+ order_by: S.optional(S.String.pipe(T.Query())),
2021
+ function_id: S.optional(S.String.pipe(T.Query())),
2022
+ namespace_id: S.optional(S.String.pipe(T.Query())),
2023
+ }).pipe(
2024
+ T.Http({
2025
+ method: "GET",
2026
+ uri: "/functions/v1beta1/regions/{region}/tokens",
2027
+ code: 200,
2028
+ baseUrl: "https://api.scaleway.com",
2029
+ }),
2030
+ ),
2031
+ ).annotate({ identifier: "ListTokensRequest" });
2032
+ case 1:
2033
+ return S.Array(__S(160, __c40, 0));
2034
+ case 2:
2035
+ return S.suspend(() =>
2036
+ S.Struct({
2037
+ tokens: __S(101, __c25, 1),
2038
+ total_count: S.optional(S.Number),
2039
+ }),
2040
+ ).annotate({ identifier: "ListTokensResponse" });
2041
+ }
2042
+ }
2043
+ function __c26(j: number): any {
2044
+ switch (j) {
2045
+ case 0:
2046
+ return S.suspend(() =>
2047
+ S.Struct({
2048
+ region: S.optional(S.String.pipe(T.Label())),
2049
+ page: S.optional(S.Number.pipe(T.Query())),
2050
+ page_size: S.optional(S.Number.pipe(T.Query())),
2051
+ order_by: S.optional(S.String.pipe(T.Query())),
2052
+ function_id: S.optional(S.String.pipe(T.Query())),
2053
+ namespace_id: S.optional(S.String.pipe(T.Query())),
2054
+ project_id: S.optional(S.String.pipe(T.Query())),
2055
+ }).pipe(
2056
+ T.Http({
2057
+ method: "GET",
2058
+ uri: "/functions/v1beta1/regions/{region}/triggers",
2059
+ code: 200,
2060
+ baseUrl: "https://api.scaleway.com",
2061
+ }),
2062
+ ),
2063
+ ).annotate({ identifier: "ListTriggersRequest" });
2064
+ case 1:
2065
+ return S.Array(__S(138, __c34, 2));
2066
+ case 2:
2067
+ return S.suspend(() =>
2068
+ S.Struct({
2069
+ total_count: S.optional(S.Number),
2070
+ triggers: __S(105, __c26, 1),
2071
+ }),
2072
+ ).annotate({ identifier: "ListTriggersResponse" });
2073
+ }
2074
+ }
2075
+ function __c27(j: number): any {
2076
+ switch (j) {
2077
+ case 0:
2078
+ return S.suspend(() =>
2079
+ S.Struct({
2080
+ region: S.optional(S.String.pipe(T.Label())),
2081
+ cron_id: S.String.pipe(T.Label()),
2082
+ function_id: S.optional(S.NullOr(S.String)),
2083
+ schedule: S.optional(S.NullOr(S.String)),
2084
+ args: S.optional(__S(4, __c1, 0)),
2085
+ name: S.optional(S.NullOr(S.String)),
2086
+ }).pipe(
2087
+ T.Http({
2088
+ method: "PATCH",
2089
+ uri: "/functions/v1beta1/regions/{region}/crons/{cron_id}",
2090
+ code: 200,
2091
+ baseUrl: "https://api.scaleway.com",
2092
+ }),
2093
+ ),
2094
+ ).annotate({ identifier: "UpdateCronRequest" });
2095
+ }
2096
+ }
2097
+ function __c28(j: number): any {
2098
+ switch (j) {
2099
+ case 0:
2100
+ return S.suspend(() =>
2101
+ S.Struct({
2102
+ region: S.optional(S.String.pipe(T.Label())),
2103
+ function_id: S.String.pipe(T.Label()),
2104
+ environment_variables: S.optional(S.NullOr(__S(72, __c18, 0))),
2105
+ min_scale: S.optional(S.NullOr(S.Number)),
2106
+ max_scale: S.optional(S.NullOr(S.Number)),
2107
+ runtime: S.optional(S.String),
2108
+ memory_limit: S.optional(S.NullOr(S.Number)),
2109
+ timeout: S.optional(S.NullOr(S.String)),
2110
+ redeploy: S.optional(S.NullOr(S.Boolean)),
2111
+ handler: S.optional(S.NullOr(S.String)),
2112
+ privacy: S.optional(S.String),
2113
+ description: S.optional(S.NullOr(S.String)),
2114
+ secret_environment_variables: S.optional(__S(69, __c17, 1)),
2115
+ http_option: S.optional(S.String),
2116
+ sandbox: S.optional(S.String),
2117
+ tags: S.optional(S.NullOr(__S(44, __c11, 0))),
2118
+ private_network_id: S.optional(S.NullOr(S.String)),
2119
+ }).pipe(
2120
+ T.Http({
2121
+ method: "PATCH",
2122
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}",
2123
+ code: 200,
2124
+ baseUrl: "https://api.scaleway.com",
2125
+ }),
2126
+ ),
2127
+ ).annotate({ identifier: "UpdateFunctionRequest" });
2128
+ }
2129
+ }
2130
+ function __c29(j: number): any {
2131
+ switch (j) {
2132
+ case 0:
2133
+ return S.suspend(() =>
2134
+ S.Struct({
2135
+ region: S.optional(S.String.pipe(T.Label())),
2136
+ namespace_id: S.String.pipe(T.Label()),
2137
+ environment_variables: S.optional(S.NullOr(__S(72, __c18, 0))),
2138
+ description: S.optional(S.NullOr(S.String)),
2139
+ secret_environment_variables: S.optional(__S(69, __c17, 1)),
2140
+ tags: S.optional(S.NullOr(__S(44, __c11, 0))),
2141
+ }).pipe(
2142
+ T.Http({
2143
+ method: "PATCH",
2144
+ uri: "/functions/v1beta1/regions/{region}/namespaces/{namespace_id}",
2145
+ code: 200,
2146
+ baseUrl: "https://api.scaleway.com",
2147
+ }),
2148
+ ),
2149
+ ).annotate({ identifier: "UpdateNamespaceRequest" });
2150
+ }
2151
+ }
2152
+ function __c30(j: number): any {
2153
+ switch (j) {
2154
+ case 0:
2155
+ return S.suspend(() =>
2156
+ S.Struct({
2157
+ region: S.optional(S.String.pipe(T.Label())),
2158
+ name: S.optional(S.String),
2159
+ environment_variables: S.optional(S.NullOr(__S(72, __c18, 0))),
2160
+ project_id: S.optional(S.String),
2161
+ description: S.optional(S.NullOr(S.String)),
2162
+ secret_environment_variables: S.optional(__S(69, __c17, 1)),
2163
+ tags: S.optional(__S(73, __c18, 1)),
2164
+ activate_vpc_integration: S.optional(S.Boolean),
2165
+ }).pipe(
2166
+ T.Http({
2167
+ method: "POST",
2168
+ uri: "/functions/v1beta1/regions/{region}/namespaces",
2169
+ code: 200,
2170
+ baseUrl: "https://api.scaleway.com",
2171
+ }),
2172
+ ),
2173
+ ).annotate({ identifier: "CreateNamespaceRequest" });
2174
+ }
2175
+ }
2176
+ function __c31(j: number): any {
2177
+ switch (j) {
2178
+ case 0:
2179
+ return S.suspend(() =>
2180
+ S.Struct({
2181
+ id: S.optional(S.String),
2182
+ srn: S.optional(S.String),
2183
+ name: S.optional(S.String),
2184
+ environment_variables: S.optional(__S(72, __c18, 0)),
2185
+ organization_id: S.optional(S.String),
2186
+ project_id: S.optional(S.String),
2187
+ status: S.optional(S.String),
2188
+ registry_namespace_id: S.optional(S.String),
2189
+ error_message: S.optional(S.NullOr(S.String)),
2190
+ registry_endpoint: S.optional(S.String),
2191
+ description: S.optional(S.NullOr(S.String)),
2192
+ secret_environment_variables: S.optional(__S(75, __c18, 3)),
2193
+ region: S.optional(S.String),
2194
+ tags: S.optional(__S(73, __c18, 1)),
2195
+ created_at: S.optional(S.NullOr(S.String)),
2196
+ updated_at: S.optional(S.NullOr(S.String)),
2197
+ vpc_integration_activated: S.optional(S.Boolean),
2198
+ }),
2199
+ ).annotate({ identifier: "Namespace" });
2200
+ }
2201
+ }
2202
+ function __c32(j: number): any {
2203
+ switch (j) {
2204
+ case 0:
2205
+ return S.suspend(() =>
2206
+ S.Struct({
2207
+ region: S.optional(S.String.pipe(T.Label())),
2208
+ trigger_id: S.String.pipe(T.Label()),
2209
+ name: S.optional(S.NullOr(S.String)),
2210
+ description: S.optional(S.NullOr(S.String)),
2211
+ }).pipe(
2212
+ T.Http({
2213
+ method: "PATCH",
2214
+ uri: "/functions/v1beta1/regions/{region}/triggers/{trigger_id}",
2215
+ code: 200,
2216
+ baseUrl: "https://api.scaleway.com",
2217
+ }),
2218
+ ),
2219
+ ).annotate({ identifier: "UpdateTriggerRequest" });
2220
+ }
2221
+ }
2222
+ function __c33(j: number): any {
2223
+ switch (j) {
2224
+ case 0:
2225
+ return S.suspend(() =>
2226
+ S.Struct({
2227
+ queue: S.String,
2228
+ mnq_project_id: S.String,
2229
+ mnq_region: S.String,
2230
+ }),
2231
+ ).annotate({ identifier: "CreateTriggerRequestMnqSqsClientConfig" });
2232
+ case 1:
2233
+ return S.suspend(() =>
2234
+ S.Struct({
2235
+ subject: S.String,
2236
+ mnq_nats_account_id: S.String,
2237
+ mnq_project_id: S.optional(S.String),
2238
+ mnq_region: S.String,
2239
+ }),
2240
+ ).annotate({ identifier: "CreateTriggerRequestMnqNatsClientConfig" });
2241
+ case 2:
2242
+ return S.suspend(() =>
2243
+ S.Struct({
2244
+ region: S.optional(S.String.pipe(T.Label())),
2245
+ name: S.String,
2246
+ function_id: S.String,
2247
+ description: S.optional(S.NullOr(S.String)),
2248
+ scw_sqs_config: S.optional(S.NullOr(__S(132, __c33, 0))),
2249
+ scw_nats_config: S.optional(S.NullOr(__S(133, __c33, 1))),
2250
+ }).pipe(
2251
+ T.Http({
2252
+ method: "POST",
2253
+ uri: "/functions/v1beta1/regions/{region}/triggers",
2254
+ code: 200,
2255
+ baseUrl: "https://api.scaleway.com",
2256
+ }),
2257
+ ),
2258
+ ).annotate({ identifier: "CreateTriggerRequest" });
2259
+ }
2260
+ }
2261
+ function __c34(j: number): any {
2262
+ switch (j) {
2263
+ case 0:
2264
+ return S.suspend(() =>
2265
+ S.Struct({
2266
+ queue: S.optional(S.String),
2267
+ mnq_project_id: S.optional(S.String),
2268
+ mnq_region: S.optional(S.String),
2269
+ mnq_credential_id: S.optional(S.NullOr(S.String)),
2270
+ }),
2271
+ ).annotate({ identifier: "TriggerMnqSqsClientConfig" });
2272
+ case 1:
2273
+ return S.suspend(() =>
2274
+ S.Struct({
2275
+ subject: S.optional(S.String),
2276
+ mnq_nats_account_id: S.optional(S.String),
2277
+ mnq_project_id: S.optional(S.String),
2278
+ mnq_region: S.optional(S.String),
2279
+ mnq_credential_id: S.optional(S.NullOr(S.String)),
2280
+ }),
2281
+ ).annotate({ identifier: "TriggerMnqNatsClientConfig" });
2282
+ case 2:
2283
+ return S.suspend(() =>
2284
+ S.Struct({
2285
+ id: S.optional(S.String),
2286
+ srn: S.optional(S.String),
2287
+ name: S.optional(S.String),
2288
+ description: S.optional(S.String),
2289
+ function_id: S.optional(S.String),
2290
+ input_type: S.optional(S.String),
2291
+ status: S.optional(S.String),
2292
+ error_message: S.optional(S.NullOr(S.String)),
2293
+ scw_sqs_config: S.optional(S.NullOr(__S(136, __c34, 0))),
2294
+ scw_nats_config: S.optional(S.NullOr(__S(137, __c34, 1))),
2295
+ region: S.optional(S.String),
2296
+ }),
2297
+ ).annotate({ identifier: "Trigger" });
2298
+ }
2299
+ }
2300
+ function __c35(j: number): any {
2301
+ switch (j) {
2302
+ case 0:
2303
+ return S.suspend(() =>
2304
+ S.Struct({
2305
+ region: S.optional(S.String.pipe(T.Label())),
2306
+ cron_id: S.String.pipe(T.Label()),
2307
+ }).pipe(
2308
+ T.Http({
2309
+ method: "DELETE",
2310
+ uri: "/functions/v1beta1/regions/{region}/crons/{cron_id}",
2311
+ code: 200,
2312
+ baseUrl: "https://api.scaleway.com",
2313
+ }),
2314
+ ),
2315
+ ).annotate({ identifier: "DeleteCronRequest" });
2316
+ }
2317
+ }
2318
+ function __c36(j: number): any {
2319
+ switch (j) {
2320
+ case 0:
2321
+ return S.suspend(() =>
2322
+ S.Struct({
2323
+ region: S.optional(S.String.pipe(T.Label())),
2324
+ domain_id: S.String.pipe(T.Label()),
2325
+ }).pipe(
2326
+ T.Http({
2327
+ method: "DELETE",
2328
+ uri: "/functions/v1beta1/regions/{region}/domains/{domain_id}",
2329
+ code: 200,
2330
+ baseUrl: "https://api.scaleway.com",
2331
+ }),
2332
+ ),
2333
+ ).annotate({ identifier: "DeleteDomainRequest" });
2334
+ }
2335
+ }
2336
+ function __c37(j: number): any {
2337
+ switch (j) {
2338
+ case 0:
2339
+ return S.suspend(() =>
2340
+ S.Struct({
2341
+ region: S.optional(S.String.pipe(T.Label())),
2342
+ function_id: S.String.pipe(T.Label()),
2343
+ }).pipe(
2344
+ T.Http({
2345
+ method: "DELETE",
2346
+ uri: "/functions/v1beta1/regions/{region}/functions/{function_id}",
2347
+ code: 200,
2348
+ baseUrl: "https://api.scaleway.com",
2349
+ }),
2350
+ ),
2351
+ ).annotate({ identifier: "DeleteFunctionRequest" });
2352
+ }
2353
+ }
2354
+ function __c38(j: number): any {
2355
+ switch (j) {
2356
+ case 0:
2357
+ return S.suspend(() =>
2358
+ S.Struct({
2359
+ region: S.optional(S.String.pipe(T.Label())),
2360
+ namespace_id: S.String.pipe(T.Label()),
2361
+ }).pipe(
2362
+ T.Http({
2363
+ method: "DELETE",
2364
+ uri: "/functions/v1beta1/regions/{region}/namespaces/{namespace_id}",
2365
+ code: 200,
2366
+ baseUrl: "https://api.scaleway.com",
2367
+ }),
2368
+ ),
2369
+ ).annotate({ identifier: "DeleteNamespaceRequest" });
2370
+ }
2371
+ }
2372
+ function __c39(j: number): any {
2373
+ switch (j) {
2374
+ case 0:
2375
+ return S.suspend(() =>
2376
+ S.Struct({
2377
+ region: S.optional(S.String.pipe(T.Label())),
2378
+ token_id: S.String.pipe(T.Label()),
2379
+ }).pipe(
2380
+ T.Http({
2381
+ method: "DELETE",
2382
+ uri: "/functions/v1beta1/regions/{region}/tokens/{token_id}",
2383
+ code: 200,
2384
+ baseUrl: "https://api.scaleway.com",
2385
+ }),
2386
+ ),
2387
+ ).annotate({ identifier: "DeleteTokenRequest" });
2388
+ }
2389
+ }
2390
+ function __c40(j: number): any {
2391
+ switch (j) {
2392
+ case 0:
2393
+ return S.suspend(() =>
2394
+ S.Struct({
2395
+ id: S.optional(S.String),
2396
+ token: S.optional(S.String.pipe(T.SensitiveValue({}))),
2397
+ function_id: S.optional(S.NullOr(S.String)),
2398
+ namespace_id: S.optional(S.NullOr(S.String)),
2399
+ public_key: S.optional(S.String),
2400
+ status: S.optional(S.String),
2401
+ description: S.optional(S.NullOr(S.String)),
2402
+ expires_at: S.optional(S.NullOr(S.String)),
2403
+ }),
2404
+ ).annotate({ identifier: "Token" });
2405
+ }
2406
+ }
2407
+ // Schema table: entry i is schema j of builder f, made on first reach.
2408
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
2409
+ return (__s[i] ??= __L.at(f, j));
2410
+ }