alchemy 0.67.0 → 0.68.0

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 (750) hide show
  1. package/bin/alchemy.js +25563 -26265
  2. package/bin/alchemy.ts +6 -2
  3. package/bin/commands/configure.ts +194 -0
  4. package/bin/commands/login.ts +99 -55
  5. package/bin/commands/logout.ts +66 -0
  6. package/bin/trpc.ts +27 -2
  7. package/lib/apply.d.ts +2 -2
  8. package/lib/apply.d.ts.map +1 -1
  9. package/lib/apply.js +18 -15
  10. package/lib/apply.js.map +1 -1
  11. package/lib/auth.d.ts +72 -0
  12. package/lib/auth.d.ts.map +1 -0
  13. package/lib/auth.js +163 -0
  14. package/lib/auth.js.map +1 -0
  15. package/lib/aws/bucket.d.ts +12 -3
  16. package/lib/aws/bucket.d.ts.map +1 -1
  17. package/lib/aws/bucket.js +2 -2
  18. package/lib/aws/bucket.js.map +1 -1
  19. package/lib/aws/control/resource.d.ts +34 -3
  20. package/lib/aws/control/resource.d.ts.map +1 -1
  21. package/lib/aws/control/resource.js +3 -3
  22. package/lib/aws/control/resource.js.map +1 -1
  23. package/lib/aws/ec2/internet-gateway-attachment.d.ts +1 -2
  24. package/lib/aws/ec2/internet-gateway-attachment.d.ts.map +1 -1
  25. package/lib/aws/ec2/internet-gateway-attachment.js +4 -4
  26. package/lib/aws/ec2/internet-gateway-attachment.js.map +1 -1
  27. package/lib/aws/ec2/internet-gateway.d.ts +1 -2
  28. package/lib/aws/ec2/internet-gateway.d.ts.map +1 -1
  29. package/lib/aws/ec2/internet-gateway.js +2 -2
  30. package/lib/aws/ec2/internet-gateway.js.map +1 -1
  31. package/lib/aws/ec2/nat-gateway.d.ts +1 -2
  32. package/lib/aws/ec2/nat-gateway.d.ts.map +1 -1
  33. package/lib/aws/ec2/nat-gateway.js +2 -2
  34. package/lib/aws/ec2/nat-gateway.js.map +1 -1
  35. package/lib/aws/ec2/route-table-association.d.ts +1 -2
  36. package/lib/aws/ec2/route-table-association.d.ts.map +1 -1
  37. package/lib/aws/ec2/route-table-association.js +2 -2
  38. package/lib/aws/ec2/route-table-association.js.map +1 -1
  39. package/lib/aws/ec2/route-table.d.ts +1 -2
  40. package/lib/aws/ec2/route-table.d.ts.map +1 -1
  41. package/lib/aws/ec2/route-table.js +2 -2
  42. package/lib/aws/ec2/route-table.js.map +1 -1
  43. package/lib/aws/ec2/route.d.ts +1 -2
  44. package/lib/aws/ec2/route.d.ts.map +1 -1
  45. package/lib/aws/ec2/route.js +2 -2
  46. package/lib/aws/ec2/route.js.map +1 -1
  47. package/lib/aws/ec2/security-group-rule.d.ts +1 -2
  48. package/lib/aws/ec2/security-group-rule.d.ts.map +1 -1
  49. package/lib/aws/ec2/security-group-rule.js +2 -2
  50. package/lib/aws/ec2/security-group-rule.js.map +1 -1
  51. package/lib/aws/ec2/security-group.d.ts +1 -2
  52. package/lib/aws/ec2/security-group.d.ts.map +1 -1
  53. package/lib/aws/ec2/security-group.js +2 -2
  54. package/lib/aws/ec2/security-group.js.map +1 -1
  55. package/lib/aws/ec2/subnet.d.ts +1 -2
  56. package/lib/aws/ec2/subnet.d.ts.map +1 -1
  57. package/lib/aws/ec2/subnet.js +2 -2
  58. package/lib/aws/ec2/subnet.js.map +1 -1
  59. package/lib/aws/ec2/vpc.d.ts +1 -2
  60. package/lib/aws/ec2/vpc.d.ts.map +1 -1
  61. package/lib/aws/ec2/vpc.js +2 -2
  62. package/lib/aws/ec2/vpc.js.map +1 -1
  63. package/lib/aws/function.d.ts +116 -3
  64. package/lib/aws/function.d.ts.map +1 -1
  65. package/lib/aws/function.js +2 -2
  66. package/lib/aws/function.js.map +1 -1
  67. package/lib/aws/oidc/github-oidc-provider.d.ts +13 -2
  68. package/lib/aws/oidc/github-oidc-provider.d.ts.map +1 -1
  69. package/lib/aws/oidc/oidc-provider.d.ts +48 -3
  70. package/lib/aws/oidc/oidc-provider.d.ts.map +1 -1
  71. package/lib/aws/oidc/oidc-provider.js +2 -2
  72. package/lib/aws/oidc/oidc-provider.js.map +1 -1
  73. package/lib/aws/policy-attachment.d.ts +2 -3
  74. package/lib/aws/policy-attachment.d.ts.map +1 -1
  75. package/lib/aws/policy-attachment.js +1 -1
  76. package/lib/aws/policy-attachment.js.map +1 -1
  77. package/lib/aws/policy.d.ts +1 -2
  78. package/lib/aws/policy.d.ts.map +1 -1
  79. package/lib/aws/policy.js +4 -4
  80. package/lib/aws/policy.js.map +1 -1
  81. package/lib/aws/queue.d.ts +1 -2
  82. package/lib/aws/queue.d.ts.map +1 -1
  83. package/lib/aws/queue.js +4 -4
  84. package/lib/aws/queue.js.map +1 -1
  85. package/lib/aws/role.d.ts +1 -2
  86. package/lib/aws/role.d.ts.map +1 -1
  87. package/lib/aws/role.js +2 -2
  88. package/lib/aws/role.js.map +1 -1
  89. package/lib/aws/ses.d.ts +1 -2
  90. package/lib/aws/ses.d.ts.map +1 -1
  91. package/lib/aws/ses.js +2 -2
  92. package/lib/aws/ses.js.map +1 -1
  93. package/lib/aws/ssm-parameter.d.ts +1 -2
  94. package/lib/aws/ssm-parameter.d.ts.map +1 -1
  95. package/lib/aws/ssm-parameter.js +2 -2
  96. package/lib/aws/ssm-parameter.js.map +1 -1
  97. package/lib/aws/table.d.ts +1 -2
  98. package/lib/aws/table.d.ts.map +1 -1
  99. package/lib/aws/table.js +2 -2
  100. package/lib/aws/table.js.map +1 -1
  101. package/lib/cloudflare/account-api-token.d.ts +1 -2
  102. package/lib/cloudflare/account-api-token.d.ts.map +1 -1
  103. package/lib/cloudflare/account-api-token.js +2 -2
  104. package/lib/cloudflare/account-api-token.js.map +1 -1
  105. package/lib/cloudflare/ai-gateway.d.ts +1 -2
  106. package/lib/cloudflare/ai-gateway.d.ts.map +1 -1
  107. package/lib/cloudflare/ai-gateway.js +2 -2
  108. package/lib/cloudflare/ai-gateway.js.map +1 -1
  109. package/lib/cloudflare/api-gateway-operation.d.ts +1 -2
  110. package/lib/cloudflare/api-gateway-operation.d.ts.map +1 -1
  111. package/lib/cloudflare/api-gateway-operation.js +2 -2
  112. package/lib/cloudflare/api-gateway-operation.js.map +1 -1
  113. package/lib/cloudflare/api-schema.d.ts +1 -2
  114. package/lib/cloudflare/api-schema.d.ts.map +1 -1
  115. package/lib/cloudflare/api-schema.js +2 -2
  116. package/lib/cloudflare/api-schema.js.map +1 -1
  117. package/lib/cloudflare/api-shield.d.ts +1 -2
  118. package/lib/cloudflare/api-shield.d.ts.map +1 -1
  119. package/lib/cloudflare/api-shield.js +2 -2
  120. package/lib/cloudflare/api-shield.js.map +1 -1
  121. package/lib/cloudflare/api.d.ts +18 -10
  122. package/lib/cloudflare/api.d.ts.map +1 -1
  123. package/lib/cloudflare/api.js +93 -38
  124. package/lib/cloudflare/api.js.map +1 -1
  125. package/lib/cloudflare/assets.d.ts +21 -43
  126. package/lib/cloudflare/assets.d.ts.map +1 -1
  127. package/lib/cloudflare/assets.js +78 -70
  128. package/lib/cloudflare/assets.js.map +1 -1
  129. package/lib/cloudflare/auth.d.ts +91 -17
  130. package/lib/cloudflare/auth.d.ts.map +1 -1
  131. package/lib/cloudflare/auth.js +141 -62
  132. package/lib/cloudflare/auth.js.map +1 -1
  133. package/lib/cloudflare/bound.d.ts +1 -1
  134. package/lib/cloudflare/bound.d.ts.map +1 -1
  135. package/lib/cloudflare/bucket.d.ts +60 -8
  136. package/lib/cloudflare/bucket.d.ts.map +1 -1
  137. package/lib/cloudflare/bucket.js +161 -18
  138. package/lib/cloudflare/bucket.js.map +1 -1
  139. package/lib/cloudflare/bundle/plugin-wasm.js +4 -2
  140. package/lib/cloudflare/bundle/plugin-wasm.js.map +1 -1
  141. package/lib/cloudflare/certificate-pack.d.ts +1 -2
  142. package/lib/cloudflare/certificate-pack.d.ts.map +1 -1
  143. package/lib/cloudflare/certificate-pack.js +4 -4
  144. package/lib/cloudflare/certificate-pack.js.map +1 -1
  145. package/lib/cloudflare/compatibility-date.gen.d.ts +1 -1
  146. package/lib/cloudflare/compatibility-date.gen.js +1 -1
  147. package/lib/cloudflare/container.d.ts +1 -2
  148. package/lib/cloudflare/container.d.ts.map +1 -1
  149. package/lib/cloudflare/container.js +6 -6
  150. package/lib/cloudflare/container.js.map +1 -1
  151. package/lib/cloudflare/custom-domain.d.ts +1 -2
  152. package/lib/cloudflare/custom-domain.d.ts.map +1 -1
  153. package/lib/cloudflare/custom-domain.js +2 -2
  154. package/lib/cloudflare/custom-domain.js.map +1 -1
  155. package/lib/cloudflare/d1-database.d.ts +2 -3
  156. package/lib/cloudflare/d1-database.d.ts.map +1 -1
  157. package/lib/cloudflare/d1-database.js +5 -5
  158. package/lib/cloudflare/d1-database.js.map +1 -1
  159. package/lib/cloudflare/dispatch-namespace.d.ts +2 -3
  160. package/lib/cloudflare/dispatch-namespace.d.ts.map +1 -1
  161. package/lib/cloudflare/dispatch-namespace.js +3 -3
  162. package/lib/cloudflare/dispatch-namespace.js.map +1 -1
  163. package/lib/cloudflare/dns-records.d.ts +1 -2
  164. package/lib/cloudflare/dns-records.d.ts.map +1 -1
  165. package/lib/cloudflare/dns-records.js +4 -4
  166. package/lib/cloudflare/dns-records.js.map +1 -1
  167. package/lib/cloudflare/email-address.d.ts +1 -2
  168. package/lib/cloudflare/email-address.d.ts.map +1 -1
  169. package/lib/cloudflare/email-address.js +6 -6
  170. package/lib/cloudflare/email-address.js.map +1 -1
  171. package/lib/cloudflare/email-catch-all.d.ts +1 -2
  172. package/lib/cloudflare/email-catch-all.d.ts.map +1 -1
  173. package/lib/cloudflare/email-catch-all.js +4 -4
  174. package/lib/cloudflare/email-catch-all.js.map +1 -1
  175. package/lib/cloudflare/email-routing.d.ts +1 -2
  176. package/lib/cloudflare/email-routing.d.ts.map +1 -1
  177. package/lib/cloudflare/email-routing.js +4 -4
  178. package/lib/cloudflare/email-routing.js.map +1 -1
  179. package/lib/cloudflare/email-rule.d.ts +1 -2
  180. package/lib/cloudflare/email-rule.d.ts.map +1 -1
  181. package/lib/cloudflare/email-rule.js +4 -4
  182. package/lib/cloudflare/email-rule.js.map +1 -1
  183. package/lib/cloudflare/hyperdrive.d.ts +1 -2
  184. package/lib/cloudflare/hyperdrive.d.ts.map +1 -1
  185. package/lib/cloudflare/hyperdrive.js +4 -4
  186. package/lib/cloudflare/hyperdrive.js.map +1 -1
  187. package/lib/cloudflare/kv-namespace.d.ts +2 -3
  188. package/lib/cloudflare/kv-namespace.d.ts.map +1 -1
  189. package/lib/cloudflare/kv-namespace.js +5 -5
  190. package/lib/cloudflare/kv-namespace.js.map +1 -1
  191. package/lib/cloudflare/miniflare/delete.js +1 -1
  192. package/lib/cloudflare/miniflare/delete.js.map +1 -1
  193. package/lib/cloudflare/miniflare/miniflare-worker-proxy.d.ts.map +1 -1
  194. package/lib/cloudflare/miniflare/miniflare-worker-proxy.js +2 -7
  195. package/lib/cloudflare/miniflare/miniflare-worker-proxy.js.map +1 -1
  196. package/lib/cloudflare/miniflare/remote-binding-proxy.d.ts.map +1 -1
  197. package/lib/cloudflare/miniflare/remote-binding-proxy.js +15 -4
  198. package/lib/cloudflare/miniflare/remote-binding-proxy.js.map +1 -1
  199. package/lib/cloudflare/permission-groups.d.ts +1 -2
  200. package/lib/cloudflare/permission-groups.d.ts.map +1 -1
  201. package/lib/cloudflare/permission-groups.js +1 -1
  202. package/lib/cloudflare/permission-groups.js.map +1 -1
  203. package/lib/cloudflare/pipeline.d.ts +2 -3
  204. package/lib/cloudflare/pipeline.d.ts.map +1 -1
  205. package/lib/cloudflare/pipeline.js +5 -5
  206. package/lib/cloudflare/pipeline.js.map +1 -1
  207. package/lib/cloudflare/queue-consumer.d.ts +1 -2
  208. package/lib/cloudflare/queue-consumer.d.ts.map +1 -1
  209. package/lib/cloudflare/queue-consumer.js +4 -4
  210. package/lib/cloudflare/queue-consumer.js.map +1 -1
  211. package/lib/cloudflare/queue.d.ts +1 -2
  212. package/lib/cloudflare/queue.d.ts.map +1 -1
  213. package/lib/cloudflare/queue.js +4 -4
  214. package/lib/cloudflare/queue.js.map +1 -1
  215. package/lib/cloudflare/react-router/plugin.d.ts.map +1 -1
  216. package/lib/cloudflare/react-router/plugin.js +13 -0
  217. package/lib/cloudflare/react-router/plugin.js.map +1 -1
  218. package/lib/cloudflare/redirect-rule.d.ts +1 -2
  219. package/lib/cloudflare/redirect-rule.d.ts.map +1 -1
  220. package/lib/cloudflare/redirect-rule.js +4 -4
  221. package/lib/cloudflare/redirect-rule.js.map +1 -1
  222. package/lib/cloudflare/route.d.ts +1 -2
  223. package/lib/cloudflare/route.d.ts.map +1 -1
  224. package/lib/cloudflare/route.js +4 -4
  225. package/lib/cloudflare/route.js.map +1 -1
  226. package/lib/cloudflare/ruleset.d.ts +1 -2
  227. package/lib/cloudflare/ruleset.d.ts.map +1 -1
  228. package/lib/cloudflare/ruleset.js +2 -2
  229. package/lib/cloudflare/ruleset.js.map +1 -1
  230. package/lib/cloudflare/secret.d.ts +2 -3
  231. package/lib/cloudflare/secret.d.ts.map +1 -1
  232. package/lib/cloudflare/secret.js +3 -3
  233. package/lib/cloudflare/secret.js.map +1 -1
  234. package/lib/cloudflare/secrets-store.d.ts +2 -3
  235. package/lib/cloudflare/secrets-store.d.ts.map +1 -1
  236. package/lib/cloudflare/secrets-store.js +3 -3
  237. package/lib/cloudflare/secrets-store.js.map +1 -1
  238. package/lib/cloudflare/tunnel.d.ts +2 -3
  239. package/lib/cloudflare/tunnel.d.ts.map +1 -1
  240. package/lib/cloudflare/tunnel.js +3 -3
  241. package/lib/cloudflare/tunnel.js.map +1 -1
  242. package/lib/cloudflare/user.d.ts +3 -2
  243. package/lib/cloudflare/user.d.ts.map +1 -1
  244. package/lib/cloudflare/user.js +7 -5
  245. package/lib/cloudflare/user.js.map +1 -1
  246. package/lib/cloudflare/vectorize-index.d.ts +2 -3
  247. package/lib/cloudflare/vectorize-index.d.ts.map +1 -1
  248. package/lib/cloudflare/vectorize-index.js +6 -6
  249. package/lib/cloudflare/vectorize-index.js.map +1 -1
  250. package/lib/cloudflare/vectorize-metadata-index.d.ts +2 -3
  251. package/lib/cloudflare/vectorize-metadata-index.d.ts.map +1 -1
  252. package/lib/cloudflare/vectorize-metadata-index.js +4 -4
  253. package/lib/cloudflare/vectorize-metadata-index.js.map +1 -1
  254. package/lib/cloudflare/website.js +1 -1
  255. package/lib/cloudflare/website.js.map +1 -1
  256. package/lib/cloudflare/worker-assets.d.ts +1 -29
  257. package/lib/cloudflare/worker-assets.d.ts.map +1 -1
  258. package/lib/cloudflare/worker-assets.js +9 -42
  259. package/lib/cloudflare/worker-assets.js.map +1 -1
  260. package/lib/cloudflare/worker-stub.d.ts +2 -3
  261. package/lib/cloudflare/worker-stub.d.ts.map +1 -1
  262. package/lib/cloudflare/worker-stub.js +3 -3
  263. package/lib/cloudflare/worker-stub.js.map +1 -1
  264. package/lib/cloudflare/worker-subdomain.d.ts +4 -3
  265. package/lib/cloudflare/worker-subdomain.d.ts.map +1 -1
  266. package/lib/cloudflare/worker-subdomain.js +5 -5
  267. package/lib/cloudflare/worker-subdomain.js.map +1 -1
  268. package/lib/cloudflare/worker.d.ts +3 -4
  269. package/lib/cloudflare/worker.d.ts.map +1 -1
  270. package/lib/cloudflare/worker.js +6 -5
  271. package/lib/cloudflare/worker.js.map +1 -1
  272. package/lib/cloudflare/zone.d.ts +1 -2
  273. package/lib/cloudflare/zone.d.ts.map +1 -1
  274. package/lib/cloudflare/zone.js +2 -2
  275. package/lib/cloudflare/zone.js.map +1 -1
  276. package/lib/context.d.ts +8 -8
  277. package/lib/context.d.ts.map +1 -1
  278. package/lib/context.js.map +1 -1
  279. package/lib/destroy.d.ts +1 -1
  280. package/lib/destroy.d.ts.map +1 -1
  281. package/lib/destroy.js.map +1 -1
  282. package/lib/dns/import-dns.d.ts +1 -2
  283. package/lib/dns/import-dns.d.ts.map +1 -1
  284. package/lib/dns/import-dns.js +2 -2
  285. package/lib/dns/import-dns.js.map +1 -1
  286. package/lib/docker/container.d.ts +1 -2
  287. package/lib/docker/container.d.ts.map +1 -1
  288. package/lib/docker/container.js +2 -3
  289. package/lib/docker/container.js.map +1 -1
  290. package/lib/docker/image.d.ts +1 -2
  291. package/lib/docker/image.d.ts.map +1 -1
  292. package/lib/docker/image.js +9 -9
  293. package/lib/docker/image.js.map +1 -1
  294. package/lib/docker/network.d.ts +1 -2
  295. package/lib/docker/network.d.ts.map +1 -1
  296. package/lib/docker/network.js +2 -3
  297. package/lib/docker/network.js.map +1 -1
  298. package/lib/docker/remote-image.d.ts +1 -2
  299. package/lib/docker/remote-image.d.ts.map +1 -1
  300. package/lib/docker/remote-image.js +2 -3
  301. package/lib/docker/remote-image.js.map +1 -1
  302. package/lib/docker/volume.d.ts +1 -2
  303. package/lib/docker/volume.d.ts.map +1 -1
  304. package/lib/docker/volume.js +2 -3
  305. package/lib/docker/volume.js.map +1 -1
  306. package/lib/esbuild/bundle.d.ts +1 -2
  307. package/lib/esbuild/bundle.d.ts.map +1 -1
  308. package/lib/esbuild/bundle.js +4 -4
  309. package/lib/esbuild/bundle.js.map +1 -1
  310. package/lib/fs/copy-file.d.ts +1 -2
  311. package/lib/fs/copy-file.d.ts.map +1 -1
  312. package/lib/fs/copy-file.js +2 -2
  313. package/lib/fs/copy-file.js.map +1 -1
  314. package/lib/fs/file.d.ts +1 -2
  315. package/lib/fs/file.d.ts.map +1 -1
  316. package/lib/fs/file.js +2 -2
  317. package/lib/fs/file.js.map +1 -1
  318. package/lib/fs/folder.d.ts +1 -2
  319. package/lib/fs/folder.d.ts.map +1 -1
  320. package/lib/fs/folder.js +2 -2
  321. package/lib/fs/folder.js.map +1 -1
  322. package/lib/github/comment.d.ts +1 -2
  323. package/lib/github/comment.d.ts.map +1 -1
  324. package/lib/github/comment.js +4 -4
  325. package/lib/github/comment.js.map +1 -1
  326. package/lib/github/repository-environment.d.ts +1 -2
  327. package/lib/github/repository-environment.d.ts.map +1 -1
  328. package/lib/github/repository-environment.js +2 -2
  329. package/lib/github/repository-environment.js.map +1 -1
  330. package/lib/github/repository-webhook.d.ts +1 -2
  331. package/lib/github/repository-webhook.d.ts.map +1 -1
  332. package/lib/github/repository-webhook.js +2 -2
  333. package/lib/github/repository-webhook.js.map +1 -1
  334. package/lib/github/secret.d.ts +1 -2
  335. package/lib/github/secret.d.ts.map +1 -1
  336. package/lib/github/secret.js +2 -2
  337. package/lib/github/secret.js.map +1 -1
  338. package/lib/neon/api/client.gen.d.ts +13 -0
  339. package/lib/neon/api/client.gen.d.ts.map +1 -0
  340. package/lib/neon/api/client.gen.js +7 -0
  341. package/lib/neon/api/client.gen.js.map +1 -0
  342. package/lib/neon/api/sdk.gen.d.ts +880 -0
  343. package/lib/neon/api/sdk.gen.d.ts.map +1 -0
  344. package/lib/neon/api/sdk.gen.js +1527 -0
  345. package/lib/neon/api/sdk.gen.js.map +1 -0
  346. package/lib/neon/api/types.gen.d.ts +7250 -0
  347. package/lib/neon/api/types.gen.d.ts.map +1 -0
  348. package/lib/neon/api/types.gen.js +2 -0
  349. package/lib/neon/api/types.gen.js.map +1 -0
  350. package/lib/neon/api.d.ts +14 -49
  351. package/lib/neon/api.d.ts.map +1 -1
  352. package/lib/neon/api.js +36 -114
  353. package/lib/neon/api.js.map +1 -1
  354. package/lib/neon/branch.d.ts +141 -0
  355. package/lib/neon/branch.d.ts.map +1 -0
  356. package/lib/neon/branch.js +112 -0
  357. package/lib/neon/branch.js.map +1 -0
  358. package/lib/neon/index.d.ts +1 -1
  359. package/lib/neon/index.d.ts.map +1 -1
  360. package/lib/neon/index.js +1 -1
  361. package/lib/neon/index.js.map +1 -1
  362. package/lib/neon/project.d.ts +32 -242
  363. package/lib/neon/project.d.ts.map +1 -1
  364. package/lib/neon/project.js +90 -269
  365. package/lib/neon/project.js.map +1 -1
  366. package/lib/neon/utils.d.ts +49 -0
  367. package/lib/neon/utils.d.ts.map +1 -0
  368. package/lib/neon/utils.js +44 -0
  369. package/lib/neon/utils.js.map +1 -0
  370. package/lib/os/exec.d.ts +1 -2
  371. package/lib/os/exec.d.ts.map +1 -1
  372. package/lib/os/exec.js +2 -2
  373. package/lib/os/exec.js.map +1 -1
  374. package/lib/planetscale/api/client.gen.d.ts +12 -1749
  375. package/lib/planetscale/api/client.gen.d.ts.map +1 -1
  376. package/lib/planetscale/api/client.gen.js +6 -2400
  377. package/lib/planetscale/api/client.gen.js.map +1 -1
  378. package/lib/planetscale/api/sdk.gen.d.ts +1582 -0
  379. package/lib/planetscale/api/sdk.gen.d.ts.map +1 -0
  380. package/lib/planetscale/api/sdk.gen.js +2219 -0
  381. package/lib/planetscale/api/sdk.gen.js.map +1 -0
  382. package/lib/planetscale/api/types.gen.d.ts +594 -449
  383. package/lib/planetscale/api/types.gen.d.ts.map +1 -1
  384. package/lib/planetscale/api.d.ts +43 -0
  385. package/lib/planetscale/api.d.ts.map +1 -0
  386. package/lib/planetscale/api.js +53 -0
  387. package/lib/planetscale/api.js.map +1 -0
  388. package/lib/planetscale/branch.d.ts +2 -3
  389. package/lib/planetscale/branch.d.ts.map +1 -1
  390. package/lib/planetscale/branch.js +17 -15
  391. package/lib/planetscale/branch.js.map +1 -1
  392. package/lib/planetscale/database.d.ts +2 -3
  393. package/lib/planetscale/database.d.ts.map +1 -1
  394. package/lib/planetscale/database.js +34 -34
  395. package/lib/planetscale/database.js.map +1 -1
  396. package/lib/planetscale/index.d.ts +1 -1
  397. package/lib/planetscale/index.d.ts.map +1 -1
  398. package/lib/planetscale/index.js +1 -1
  399. package/lib/planetscale/index.js.map +1 -1
  400. package/lib/planetscale/password.d.ts +2 -3
  401. package/lib/planetscale/password.d.ts.map +1 -1
  402. package/lib/planetscale/password.js +11 -11
  403. package/lib/planetscale/password.js.map +1 -1
  404. package/lib/planetscale/role.d.ts +2 -3
  405. package/lib/planetscale/role.d.ts.map +1 -1
  406. package/lib/planetscale/role.js +18 -18
  407. package/lib/planetscale/role.js.map +1 -1
  408. package/lib/planetscale/utils.d.ts +1 -1
  409. package/lib/planetscale/utils.d.ts.map +1 -1
  410. package/lib/planetscale/utils.js +17 -33
  411. package/lib/planetscale/utils.js.map +1 -1
  412. package/lib/random/random-string.d.ts +1 -2
  413. package/lib/random/random-string.d.ts.map +1 -1
  414. package/lib/random/random-string.js +3 -3
  415. package/lib/random/random-string.js.map +1 -1
  416. package/lib/resource.d.ts +4 -1
  417. package/lib/resource.d.ts.map +1 -1
  418. package/lib/resource.js.map +1 -1
  419. package/lib/sentry/client-key.d.ts +1 -2
  420. package/lib/sentry/client-key.d.ts.map +1 -1
  421. package/lib/sentry/client-key.js +2 -2
  422. package/lib/sentry/client-key.js.map +1 -1
  423. package/lib/sentry/project.d.ts +1 -2
  424. package/lib/sentry/project.d.ts.map +1 -1
  425. package/lib/sentry/project.js +2 -2
  426. package/lib/sentry/project.js.map +1 -1
  427. package/lib/sentry/team.d.ts +1 -2
  428. package/lib/sentry/team.d.ts.map +1 -1
  429. package/lib/sentry/team.js +2 -2
  430. package/lib/sentry/team.js.map +1 -1
  431. package/lib/state/r2-rest-state-store.d.ts +1 -0
  432. package/lib/state/r2-rest-state-store.d.ts.map +1 -1
  433. package/lib/state/r2-rest-state-store.js +15 -34
  434. package/lib/state/r2-rest-state-store.js.map +1 -1
  435. package/lib/stripe/card.d.ts +1 -2
  436. package/lib/stripe/card.d.ts.map +1 -1
  437. package/lib/stripe/card.js +2 -2
  438. package/lib/stripe/card.js.map +1 -1
  439. package/lib/stripe/coupon.d.ts +1 -2
  440. package/lib/stripe/coupon.d.ts.map +1 -1
  441. package/lib/stripe/coupon.js +2 -2
  442. package/lib/stripe/coupon.js.map +1 -1
  443. package/lib/stripe/customer.d.ts +1 -2
  444. package/lib/stripe/customer.d.ts.map +1 -1
  445. package/lib/stripe/customer.js +2 -2
  446. package/lib/stripe/customer.js.map +1 -1
  447. package/lib/stripe/entitlements-feature.d.ts +1 -2
  448. package/lib/stripe/entitlements-feature.d.ts.map +1 -1
  449. package/lib/stripe/entitlements-feature.js +2 -2
  450. package/lib/stripe/entitlements-feature.js.map +1 -1
  451. package/lib/stripe/file.d.ts +1 -2
  452. package/lib/stripe/file.d.ts.map +1 -1
  453. package/lib/stripe/file.js +2 -2
  454. package/lib/stripe/file.js.map +1 -1
  455. package/lib/stripe/meter.d.ts +1 -2
  456. package/lib/stripe/meter.d.ts.map +1 -1
  457. package/lib/stripe/meter.js +1 -1
  458. package/lib/stripe/meter.js.map +1 -1
  459. package/lib/stripe/portal-configuration.d.ts +1 -2
  460. package/lib/stripe/portal-configuration.d.ts.map +1 -1
  461. package/lib/stripe/portal-configuration.js +2 -2
  462. package/lib/stripe/portal-configuration.js.map +1 -1
  463. package/lib/stripe/price.d.ts +1 -2
  464. package/lib/stripe/price.d.ts.map +1 -1
  465. package/lib/stripe/price.js +2 -2
  466. package/lib/stripe/price.js.map +1 -1
  467. package/lib/stripe/product-feature.d.ts +1 -2
  468. package/lib/stripe/product-feature.d.ts.map +1 -1
  469. package/lib/stripe/product-feature.js +2 -2
  470. package/lib/stripe/product-feature.js.map +1 -1
  471. package/lib/stripe/product.d.ts +1 -2
  472. package/lib/stripe/product.d.ts.map +1 -1
  473. package/lib/stripe/product.js +2 -2
  474. package/lib/stripe/product.js.map +1 -1
  475. package/lib/stripe/promotion-code.d.ts +1 -2
  476. package/lib/stripe/promotion-code.d.ts.map +1 -1
  477. package/lib/stripe/promotion-code.js +2 -2
  478. package/lib/stripe/promotion-code.js.map +1 -1
  479. package/lib/stripe/shipping-rate.d.ts +1 -2
  480. package/lib/stripe/shipping-rate.d.ts.map +1 -1
  481. package/lib/stripe/shipping-rate.js +2 -2
  482. package/lib/stripe/shipping-rate.js.map +1 -1
  483. package/lib/stripe/tax-rate.d.ts +1 -2
  484. package/lib/stripe/tax-rate.d.ts.map +1 -1
  485. package/lib/stripe/tax-rate.js +2 -2
  486. package/lib/stripe/tax-rate.js.map +1 -1
  487. package/lib/stripe/webhook.d.ts +16 -3
  488. package/lib/stripe/webhook.d.ts.map +1 -1
  489. package/lib/stripe/webhook.js +2 -2
  490. package/lib/stripe/webhook.js.map +1 -1
  491. package/lib/test/bun.d.ts.map +1 -1
  492. package/lib/test/bun.js +1 -0
  493. package/lib/test/bun.js.map +1 -1
  494. package/lib/test/options.d.ts +5 -0
  495. package/lib/test/options.d.ts.map +1 -1
  496. package/lib/test/vitest.d.ts.map +1 -1
  497. package/lib/test/vitest.js +1 -0
  498. package/lib/test/vitest.js.map +1 -1
  499. package/lib/upstash/redis.d.ts +1 -2
  500. package/lib/upstash/redis.d.ts.map +1 -1
  501. package/lib/upstash/redis.js.map +1 -1
  502. package/lib/util/api/client/client.gen.d.ts +3 -0
  503. package/lib/util/api/client/client.gen.d.ts.map +1 -0
  504. package/lib/util/api/client/client.gen.js +205 -0
  505. package/lib/util/api/client/client.gen.js.map +1 -0
  506. package/lib/util/api/client/index.d.ts +8 -0
  507. package/lib/util/api/client/index.d.ts.map +1 -0
  508. package/lib/util/api/client/index.js +6 -0
  509. package/lib/util/api/client/index.js.map +1 -0
  510. package/lib/util/api/client/types.gen.d.ts +125 -0
  511. package/lib/util/api/client/types.gen.d.ts.map +1 -0
  512. package/lib/util/api/client/types.gen.js +2 -0
  513. package/lib/util/api/client/types.gen.js.map +1 -0
  514. package/lib/util/api/client/utils.gen.d.ts +34 -0
  515. package/lib/util/api/client/utils.gen.d.ts.map +1 -0
  516. package/lib/util/api/client/utils.gen.js +231 -0
  517. package/lib/util/api/client/utils.gen.js.map +1 -0
  518. package/lib/util/api/core/auth.gen.d.ts +19 -0
  519. package/lib/util/api/core/auth.gen.d.ts.map +1 -0
  520. package/lib/util/api/core/auth.gen.js +15 -0
  521. package/lib/util/api/core/auth.gen.js.map +1 -0
  522. package/lib/util/api/core/bodySerializer.gen.d.ts +18 -0
  523. package/lib/util/api/core/bodySerializer.gen.d.ts.map +1 -0
  524. package/lib/util/api/core/bodySerializer.gen.js +58 -0
  525. package/lib/util/api/core/bodySerializer.gen.js.map +1 -0
  526. package/lib/util/api/core/params.gen.d.ts +34 -0
  527. package/lib/util/api/core/params.gen.d.ts.map +1 -0
  528. package/lib/util/api/core/params.gen.js +89 -0
  529. package/lib/util/api/core/params.gen.js.map +1 -0
  530. package/lib/util/api/core/pathSerializer.gen.d.ts +34 -0
  531. package/lib/util/api/core/pathSerializer.gen.d.ts.map +1 -0
  532. package/lib/util/api/core/pathSerializer.gen.js +115 -0
  533. package/lib/util/api/core/pathSerializer.gen.js.map +1 -0
  534. package/lib/util/api/core/serverSentEvents.gen.d.ts +72 -0
  535. package/lib/util/api/core/serverSentEvents.gen.d.ts.map +1 -0
  536. package/lib/util/api/core/serverSentEvents.gen.js +136 -0
  537. package/lib/util/api/core/serverSentEvents.gen.js.map +1 -0
  538. package/lib/util/api/core/types.gen.d.ts +79 -0
  539. package/lib/util/api/core/types.gen.d.ts.map +1 -0
  540. package/lib/util/api/core/types.gen.js +2 -0
  541. package/lib/util/api/core/types.gen.js.map +1 -0
  542. package/lib/util/api/core/utils.gen.d.ts +20 -0
  543. package/lib/util/api/core/utils.gen.d.ts.map +1 -0
  544. package/lib/util/api/core/utils.gen.js +88 -0
  545. package/lib/util/api/core/utils.gen.js.map +1 -0
  546. package/lib/util/http.d.ts +7 -2
  547. package/lib/util/http.d.ts.map +1 -1
  548. package/lib/util/http.js +29 -11
  549. package/lib/util/http.js.map +1 -1
  550. package/lib/util/lock.d.ts +20 -0
  551. package/lib/util/lock.d.ts.map +1 -0
  552. package/lib/util/lock.js +45 -0
  553. package/lib/util/lock.js.map +1 -0
  554. package/lib/util/memoize.d.ts +6 -0
  555. package/lib/util/memoize.d.ts.map +1 -1
  556. package/lib/util/memoize.js +23 -0
  557. package/lib/util/memoize.js.map +1 -1
  558. package/lib/util/oauth-client.d.ts +71 -0
  559. package/lib/util/oauth-client.d.ts.map +1 -0
  560. package/lib/util/oauth-client.js +188 -0
  561. package/lib/util/oauth-client.js.map +1 -0
  562. package/lib/util/poll.d.ts +33 -0
  563. package/lib/util/poll.d.ts.map +1 -0
  564. package/lib/util/poll.js +19 -0
  565. package/lib/util/poll.js.map +1 -0
  566. package/lib/vercel/project-domain.d.ts +1 -2
  567. package/lib/vercel/project-domain.d.ts.map +1 -1
  568. package/lib/vercel/project-domain.js.map +1 -1
  569. package/lib/vercel/project.d.ts +1 -2
  570. package/lib/vercel/project.d.ts.map +1 -1
  571. package/lib/vercel/project.js +2 -2
  572. package/lib/vercel/project.js.map +1 -1
  573. package/package.json +5 -1
  574. package/src/apply.ts +32 -29
  575. package/src/auth.ts +253 -0
  576. package/src/aws/bucket.ts +3 -3
  577. package/src/aws/control/resource.ts +4 -6
  578. package/src/aws/ec2/internet-gateway-attachment.ts +5 -6
  579. package/src/aws/ec2/internet-gateway.ts +3 -5
  580. package/src/aws/ec2/nat-gateway.ts +3 -5
  581. package/src/aws/ec2/route-table-association.ts +3 -5
  582. package/src/aws/ec2/route-table.ts +3 -5
  583. package/src/aws/ec2/route.ts +3 -3
  584. package/src/aws/ec2/security-group-rule.ts +3 -5
  585. package/src/aws/ec2/security-group.ts +3 -5
  586. package/src/aws/ec2/subnet.ts +3 -3
  587. package/src/aws/ec2/vpc.ts +3 -3
  588. package/src/aws/function.ts +3 -3
  589. package/src/aws/oidc/oidc-provider.ts +3 -5
  590. package/src/aws/policy-attachment.ts +2 -4
  591. package/src/aws/policy.ts +5 -5
  592. package/src/aws/queue.ts +5 -5
  593. package/src/aws/role.ts +3 -3
  594. package/src/aws/ses.ts +3 -3
  595. package/src/aws/ssm-parameter.ts +3 -3
  596. package/src/aws/table.ts +3 -3
  597. package/src/cloudflare/account-api-token.ts +3 -4
  598. package/src/cloudflare/ai-gateway.ts +3 -5
  599. package/src/cloudflare/api-gateway-operation.ts +3 -4
  600. package/src/cloudflare/api-schema.ts +25 -26
  601. package/src/cloudflare/api-shield.ts +3 -4
  602. package/src/cloudflare/api.ts +122 -57
  603. package/src/cloudflare/assets.ts +95 -136
  604. package/src/cloudflare/auth.ts +160 -95
  605. package/src/cloudflare/bound.ts +1 -1
  606. package/src/cloudflare/bucket.ts +321 -58
  607. package/src/cloudflare/bundle/plugin-wasm.ts +5 -5
  608. package/src/cloudflare/certificate-pack.ts +5 -6
  609. package/src/cloudflare/compatibility-date.gen.ts +1 -1
  610. package/src/cloudflare/container.ts +7 -8
  611. package/src/cloudflare/custom-domain.ts +3 -5
  612. package/src/cloudflare/d1-database.ts +33 -34
  613. package/src/cloudflare/dispatch-namespace.ts +5 -6
  614. package/src/cloudflare/dns-records.ts +5 -5
  615. package/src/cloudflare/email-address.ts +7 -7
  616. package/src/cloudflare/email-catch-all.ts +6 -6
  617. package/src/cloudflare/email-routing.ts +5 -5
  618. package/src/cloudflare/email-rule.ts +5 -5
  619. package/src/cloudflare/hyperdrive.ts +35 -36
  620. package/src/cloudflare/kv-namespace.ts +31 -32
  621. package/src/cloudflare/miniflare/delete.ts +1 -1
  622. package/src/cloudflare/miniflare/miniflare-worker-proxy.ts +2 -7
  623. package/src/cloudflare/miniflare/remote-binding-proxy.ts +16 -4
  624. package/src/cloudflare/permission-groups.ts +4 -6
  625. package/src/cloudflare/pipeline.ts +29 -30
  626. package/src/cloudflare/queue-consumer.ts +5 -7
  627. package/src/cloudflare/queue.ts +42 -43
  628. package/src/cloudflare/react-router/plugin.ts +20 -0
  629. package/src/cloudflare/redirect-rule.ts +5 -5
  630. package/src/cloudflare/route.ts +5 -5
  631. package/src/cloudflare/ruleset.ts +3 -4
  632. package/src/cloudflare/secret.ts +35 -36
  633. package/src/cloudflare/secrets-store.ts +5 -8
  634. package/src/cloudflare/tunnel.ts +5 -7
  635. package/src/cloudflare/user.ts +12 -9
  636. package/src/cloudflare/vectorize-index.ts +8 -12
  637. package/src/cloudflare/vectorize-metadata-index.ts +6 -8
  638. package/src/cloudflare/website.ts +1 -1
  639. package/src/cloudflare/worker-assets.ts +10 -56
  640. package/src/cloudflare/worker-stub.ts +5 -5
  641. package/src/cloudflare/worker-subdomain.ts +6 -7
  642. package/src/cloudflare/worker.ts +91 -91
  643. package/src/cloudflare/zone.ts +3 -3
  644. package/src/context.ts +9 -7
  645. package/src/destroy.ts +2 -2
  646. package/src/dns/import-dns.ts +3 -5
  647. package/src/docker/container.ts +3 -6
  648. package/src/docker/image.ts +13 -13
  649. package/src/docker/network.ts +3 -4
  650. package/src/docker/remote-image.ts +3 -6
  651. package/src/docker/volume.ts +3 -4
  652. package/src/esbuild/bundle.ts +10 -8
  653. package/src/fs/copy-file.ts +3 -3
  654. package/src/fs/file.ts +3 -3
  655. package/src/fs/folder.ts +3 -3
  656. package/src/github/comment.ts +5 -7
  657. package/src/github/repository-environment.ts +3 -5
  658. package/src/github/repository-webhook.ts +3 -5
  659. package/src/github/secret.ts +3 -5
  660. package/src/neon/api/client.gen.ts +28 -0
  661. package/src/neon/api/sdk.gen.ts +2596 -0
  662. package/src/neon/api/types.gen.ts +8287 -0
  663. package/src/neon/api.ts +51 -147
  664. package/src/neon/branch.ts +278 -0
  665. package/src/neon/index.ts +1 -1
  666. package/src/neon/project.ts +136 -721
  667. package/src/neon/utils.ts +105 -0
  668. package/src/os/exec.ts +3 -3
  669. package/src/planetscale/api/client.gen.ts +28 -2882
  670. package/src/planetscale/api/sdk.gen.ts +3336 -0
  671. package/src/planetscale/api/types.gen.ts +778 -450
  672. package/src/planetscale/api.ts +101 -0
  673. package/src/planetscale/branch.ts +20 -19
  674. package/src/planetscale/database.ts +69 -70
  675. package/src/planetscale/index.ts +1 -1
  676. package/src/planetscale/password.ts +18 -22
  677. package/src/planetscale/role.ts +21 -21
  678. package/src/planetscale/utils.ts +20 -74
  679. package/src/random/random-string.ts +4 -4
  680. package/src/resource.ts +6 -2
  681. package/src/sentry/client-key.ts +3 -5
  682. package/src/sentry/project.ts +3 -5
  683. package/src/sentry/team.ts +3 -3
  684. package/src/state/r2-rest-state-store.ts +15 -57
  685. package/src/stripe/card.ts +3 -3
  686. package/src/stripe/coupon.ts +3 -3
  687. package/src/stripe/customer.ts +3 -3
  688. package/src/stripe/entitlements-feature.ts +3 -5
  689. package/src/stripe/file.ts +3 -3
  690. package/src/stripe/meter.ts +3 -3
  691. package/src/stripe/portal-configuration.ts +3 -5
  692. package/src/stripe/price.ts +3 -3
  693. package/src/stripe/product-feature.ts +3 -5
  694. package/src/stripe/product.ts +3 -3
  695. package/src/stripe/promotion-code.ts +3 -5
  696. package/src/stripe/shipping-rate.ts +3 -5
  697. package/src/stripe/tax-rate.ts +3 -3
  698. package/src/stripe/webhook.ts +3 -5
  699. package/src/test/bun.ts +1 -0
  700. package/src/test/options.ts +6 -0
  701. package/src/test/vitest.ts +1 -0
  702. package/src/upstash/redis.ts +1 -3
  703. package/src/util/api/client/client.gen.ts +268 -0
  704. package/src/util/api/client/index.ts +25 -0
  705. package/src/util/api/client/types.gen.ts +268 -0
  706. package/src/util/api/client/utils.gen.ts +331 -0
  707. package/src/util/api/core/auth.gen.ts +42 -0
  708. package/src/util/api/core/bodySerializer.gen.ts +92 -0
  709. package/src/util/api/core/params.gen.ts +153 -0
  710. package/src/util/api/core/pathSerializer.gen.ts +181 -0
  711. package/src/util/api/core/serverSentEvents.gen.ts +264 -0
  712. package/src/util/api/core/types.gen.ts +118 -0
  713. package/src/util/api/core/utils.gen.ts +143 -0
  714. package/src/util/http.ts +38 -11
  715. package/src/util/lock.ts +48 -0
  716. package/src/util/memoize.ts +26 -0
  717. package/src/util/oauth-client.ts +238 -0
  718. package/src/util/poll.ts +55 -0
  719. package/src/vercel/project-domain.ts +1 -3
  720. package/src/vercel/project.ts +3 -3
  721. package/workers/cloudflare-state-store.js +8 -5619
  722. package/workers/dofs-state-store.js +2 -802
  723. package/workers/remote-binding-proxy.js +3 -39
  724. package/workers/remote-binding-proxy.ts +126 -35
  725. package/workers/tunnel-proxy.js +6 -73
  726. package/lib/cloudflare/asset-manifest.d.ts +0 -15
  727. package/lib/cloudflare/asset-manifest.d.ts.map +0 -1
  728. package/lib/cloudflare/asset-manifest.js +0 -1
  729. package/lib/cloudflare/asset-manifest.js.map +0 -1
  730. package/lib/cloudflare/oauth.d.ts +0 -22
  731. package/lib/cloudflare/oauth.d.ts.map +0 -1
  732. package/lib/cloudflare/oauth.js +0 -214
  733. package/lib/cloudflare/oauth.js.map +0 -1
  734. package/lib/neon/api-error.d.ts +0 -31
  735. package/lib/neon/api-error.d.ts.map +0 -1
  736. package/lib/neon/api-error.js +0 -73
  737. package/lib/neon/api-error.js.map +0 -1
  738. package/lib/planetscale/api/index.d.ts +0 -3
  739. package/lib/planetscale/api/index.d.ts.map +0 -1
  740. package/lib/planetscale/api/index.js +0 -4
  741. package/lib/planetscale/api/index.js.map +0 -1
  742. package/lib/util/neverthrow.d.ts +0 -16
  743. package/lib/util/neverthrow.d.ts.map +0 -1
  744. package/lib/util/neverthrow.js +0 -46
  745. package/lib/util/neverthrow.js.map +0 -1
  746. package/src/cloudflare/asset-manifest.ts +0 -16
  747. package/src/cloudflare/oauth.ts +0 -301
  748. package/src/neon/api-error.ts +0 -81
  749. package/src/planetscale/api/index.ts +0 -4
  750. package/src/util/neverthrow.ts +0 -64
@@ -0,0 +1,1527 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from "./client.gen.js";
3
+ class _HeyApiClient {
4
+ _client = client;
5
+ constructor(args) {
6
+ if (args?.client) {
7
+ this._client = args.client;
8
+ }
9
+ }
10
+ }
11
+ export class NeonClient extends _HeyApiClient {
12
+ /**
13
+ * List API keys
14
+ * Retrieves the API keys for your Neon account.
15
+ * The response does not include API key tokens. A token is only provided when creating an API key.
16
+ * API keys can also be managed in the Neon Console.
17
+ * For more information, see [Manage API keys](https://neon.tech/docs/manage/api-keys/).
18
+ *
19
+ */
20
+ listApiKeys(options) {
21
+ return (options?.client ?? this._client).get({
22
+ url: "/api_keys",
23
+ ...options,
24
+ });
25
+ }
26
+ /**
27
+ * Create API key
28
+ * Creates an API key.
29
+ * The `key_name` is a user-specified name for the key.
30
+ * This method returns an `id` and `key`. The `key` is a randomly generated, 64-bit token required to access the Neon API.
31
+ * API keys can also be managed in the Neon Console.
32
+ * See [Manage API keys](https://neon.tech/docs/manage/api-keys/).
33
+ *
34
+ */
35
+ createApiKey(options) {
36
+ return (options.client ?? this._client).post({
37
+ url: "/api_keys",
38
+ ...options,
39
+ headers: {
40
+ "Content-Type": "application/json",
41
+ ...options.headers,
42
+ },
43
+ });
44
+ }
45
+ /**
46
+ * Revoke API key
47
+ * Revokes the specified API key.
48
+ * An API key that is no longer needed can be revoked.
49
+ * This action cannot be reversed.
50
+ * You can obtain `key_id` values by listing the API keys for your Neon account.
51
+ * API keys can also be managed in the Neon Console.
52
+ * See [Manage API keys](https://neon.tech/docs/manage/api-keys/).
53
+ *
54
+ */
55
+ revokeApiKey(options) {
56
+ return (options.client ?? this._client).delete({
57
+ url: "/api_keys/{key_id}",
58
+ ...options,
59
+ });
60
+ }
61
+ /**
62
+ * Retrieve operation details
63
+ * Retrieves details for the specified operation.
64
+ * An operation is an action performed on a Neon project resource.
65
+ * You can obtain a `project_id` by listing the projects for your Neon account.
66
+ * You can obtain a `operation_id` by listing operations for the project.
67
+ *
68
+ */
69
+ getProjectOperation(options) {
70
+ return (options.client ?? this._client).get({
71
+ url: "/projects/{project_id}/operations/{operation_id}",
72
+ ...options,
73
+ });
74
+ }
75
+ /**
76
+ * List projects
77
+ * Retrieves a list of projects for an organization.
78
+ * You may need to specify an org_id parameter depending on your API key type.
79
+ * For more information, see [Manage projects](https://neon.tech/docs/manage/projects/).
80
+ *
81
+ */
82
+ listProjects(options) {
83
+ return (options?.client ?? this._client).get({
84
+ url: "/projects",
85
+ ...options,
86
+ });
87
+ }
88
+ /**
89
+ * Create project
90
+ * Creates a Neon project within an organization.
91
+ * You may need to specify an org_id parameter depending on your API key type.
92
+ * Plan limits define how many projects you can create.
93
+ * For more information, see [Manage projects](https://neon.tech/docs/manage/projects/).
94
+ *
95
+ * You can specify a region and Postgres version in the request body.
96
+ * Neon currently supports PostgreSQL 14, 15, 16, and 17.
97
+ * For supported regions and `region_id` values, see [Regions](https://neon.tech/docs/introduction/regions/).
98
+ *
99
+ */
100
+ createProject(options) {
101
+ return (options.client ?? this._client).post({
102
+ url: "/projects",
103
+ ...options,
104
+ headers: {
105
+ "Content-Type": "application/json",
106
+ ...options.headers,
107
+ },
108
+ });
109
+ }
110
+ /**
111
+ * List shared projects
112
+ * Retrieves a list of projects shared with your Neon account.
113
+ * For more information, see [Manage projects](https://neon.tech/docs/manage/projects/).
114
+ *
115
+ */
116
+ listSharedProjects(options) {
117
+ return (options?.client ?? this._client).get({
118
+ url: "/projects/shared",
119
+ ...options,
120
+ });
121
+ }
122
+ /**
123
+ * Delete project
124
+ * Deletes the specified project.
125
+ * You can obtain a `project_id` by listing the projects for your Neon account.
126
+ * Deleting a project is a permanent action.
127
+ * Deleting a project also deletes endpoints, branches, databases, and users that belong to the project.
128
+ *
129
+ */
130
+ deleteProject(options) {
131
+ return (options.client ?? this._client).delete({
132
+ url: "/projects/{project_id}",
133
+ ...options,
134
+ });
135
+ }
136
+ /**
137
+ * Retrieve project details
138
+ * Retrieves information about the specified project.
139
+ * You can obtain a `project_id` by listing the projects for an organization.
140
+ *
141
+ */
142
+ getProject(options) {
143
+ return (options.client ?? this._client).get({
144
+ url: "/projects/{project_id}",
145
+ ...options,
146
+ });
147
+ }
148
+ /**
149
+ * Update project
150
+ * Updates the specified project.
151
+ * You can obtain a `project_id` by listing the projects for your Neon account.
152
+ *
153
+ */
154
+ updateProject(options) {
155
+ return (options.client ?? this._client).patch({
156
+ url: "/projects/{project_id}",
157
+ ...options,
158
+ headers: {
159
+ "Content-Type": "application/json",
160
+ ...options.headers,
161
+ },
162
+ });
163
+ }
164
+ /**
165
+ * List operations
166
+ * Retrieves a list of operations for the specified Neon project.
167
+ * You can obtain a `project_id` by listing the projects for your Neon account.
168
+ * The number of operations returned can be large.
169
+ * To paginate the response, issue an initial request with a `limit` value.
170
+ * Then, add the `cursor` value that was returned in the response to the next request.
171
+ * Operations older than 6 months may be deleted from our systems.
172
+ * If you need more history than that, you should store your own history.
173
+ *
174
+ */
175
+ listProjectOperations(options) {
176
+ return (options.client ?? this._client).get({
177
+ url: "/projects/{project_id}/operations",
178
+ ...options,
179
+ });
180
+ }
181
+ /**
182
+ * List project access
183
+ * Retrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.
184
+ */
185
+ listProjectPermissions(options) {
186
+ return (options.client ?? this._client).get({
187
+ url: "/projects/{project_id}/permissions",
188
+ ...options,
189
+ });
190
+ }
191
+ /**
192
+ * Grant project access
193
+ * Grants project access to the account associated with the specified email address
194
+ */
195
+ grantPermissionToProject(options) {
196
+ return (options.client ?? this._client).post({
197
+ url: "/projects/{project_id}/permissions",
198
+ ...options,
199
+ headers: {
200
+ "Content-Type": "application/json",
201
+ ...options.headers,
202
+ },
203
+ });
204
+ }
205
+ /**
206
+ * Revoke project access
207
+ * Revokes project access from the user associated with the specified permission `id`. You can retrieve a user's permission `id` by listing project access.
208
+ */
209
+ revokePermissionFromProject(options) {
210
+ return (options.client ?? this._client).delete({
211
+ url: "/projects/{project_id}/permissions/{permission_id}",
212
+ ...options,
213
+ });
214
+ }
215
+ /**
216
+ * Return available shared preload libraries
217
+ * Return available shared preload libraries
218
+ */
219
+ getAvailablePreloadLibraries(options) {
220
+ return (options.client ?? this._client).get({
221
+ url: "/projects/{project_id}/available_preload_libraries",
222
+ ...options,
223
+ });
224
+ }
225
+ /**
226
+ * Create a project transfer request
227
+ * Creates a transfer request for the specified project. A transfer request allows
228
+ * the project to be transferred to another account or organization. The request
229
+ * has an expiration time after which it can no longer be used. To accept/claim
230
+ * the transfer request, the recipient user/organization must call the
231
+ * `/projects/{project_id}/transfer_requests/{request_id}` API endpoint, or visit
232
+ * `https://console.neon.tech/app/claim?p={project_id}&tr={request_id}&ru={redirect_url}`
233
+ * in the Neon Console. The `ru` parameter is optional and can be used to redirect
234
+ * the user after accepting the transfer request. This feature is currently in
235
+ * private preview. Get in touch with us to get access.
236
+ *
237
+ */
238
+ createProjectTransferRequest(options) {
239
+ return (options.client ?? this._client).post({
240
+ url: "/projects/{project_id}/transfer_requests",
241
+ ...options,
242
+ headers: {
243
+ "Content-Type": "application/json",
244
+ ...options.headers,
245
+ },
246
+ });
247
+ }
248
+ /**
249
+ * Accept a project transfer request
250
+ * Accepts a transfer request for the specified project, transferring it to the specified organization
251
+ * or user. If org_id is not passed, the project will be transferred to the current user or organization account.
252
+ *
253
+ */
254
+ acceptProjectTransferRequest(options) {
255
+ return (options.client ?? this._client).put({
256
+ url: "/projects/{project_id}/transfer_requests/{request_id}",
257
+ ...options,
258
+ headers: {
259
+ "Content-Type": "application/json",
260
+ ...options.headers,
261
+ },
262
+ });
263
+ }
264
+ /**
265
+ * List JWKS URLs
266
+ * Returns the JWKS URLs available for verifying JWTs used as the authentication mechanism for the specified project.
267
+ *
268
+ */
269
+ getProjectJwks(options) {
270
+ return (options.client ?? this._client).get({
271
+ url: "/projects/{project_id}/jwks",
272
+ ...options,
273
+ });
274
+ }
275
+ /**
276
+ * Add JWKS URL
277
+ * Add a new JWKS URL to a project, such that it can be used for verifying JWTs used as the authentication mechanism for the specified project.
278
+ *
279
+ * The URL must be a valid HTTPS URL that returns a JSON Web Key Set.
280
+ *
281
+ * The `provider_name` field allows you to specify which authentication provider you're using (e.g., Clerk, Auth0, AWS Cognito, etc.).
282
+ *
283
+ * The `branch_id` can be used to specify on which branches the JWKS URL will be accepted. If not specified, then it will work on any branch.
284
+ *
285
+ * The `role_names` can be used to specify for which roles the JWKS URL will be accepted. If not specified, then default roles will be used (authenticator, authenticated and anonymous).
286
+ *
287
+ * The `jwt_audience` can be used to specify which "aud" values should be accepted by Neon in the JWTs that are used for authentication.
288
+ *
289
+ */
290
+ addProjectJwks(options) {
291
+ return (options.client ?? this._client).post({
292
+ url: "/projects/{project_id}/jwks",
293
+ ...options,
294
+ headers: {
295
+ "Content-Type": "application/json",
296
+ ...options.headers,
297
+ },
298
+ });
299
+ }
300
+ /**
301
+ * Delete JWKS URL
302
+ * Deletes a JWKS URL from the specified project
303
+ */
304
+ deleteProjectJwks(options) {
305
+ return (options.client ?? this._client).delete({
306
+ url: "/projects/{project_id}/jwks/{jwks_id}",
307
+ ...options,
308
+ });
309
+ }
310
+ /**
311
+ * Delete Neon Data API
312
+ * Deletes the Neon Data API for the specified branch.
313
+ * You can obtain the `project_id` and `branch_id` by listing the projects and branches for your Neon account.
314
+ *
315
+ */
316
+ deleteProjectBranchDataApi(options) {
317
+ return (options.client ?? this._client).delete({
318
+ url: "/projects/{project_id}/branches/{branch_id}/data-api/{database_name}",
319
+ ...options,
320
+ });
321
+ }
322
+ /**
323
+ * Get Neon Data API
324
+ * Retrieves the Neon Data API for the specified branch.
325
+ *
326
+ */
327
+ getProjectBranchDataApi(options) {
328
+ return (options.client ?? this._client).get({
329
+ url: "/projects/{project_id}/branches/{branch_id}/data-api/{database_name}",
330
+ ...options,
331
+ });
332
+ }
333
+ /**
334
+ * Refresh schema cache
335
+ * Refreshes the schema cache for the Neon Data API in the specified branch.
336
+ * You can obtain the `project_id` and `branch_id` by listing the projects and branches for your Neon account.
337
+ *
338
+ */
339
+ refreshSchemaCacheDataApi(options) {
340
+ return (options.client ?? this._client).patch({
341
+ url: "/projects/{project_id}/branches/{branch_id}/data-api/{database_name}",
342
+ ...options,
343
+ });
344
+ }
345
+ /**
346
+ * Create Neon Data API
347
+ * Creates a new instance of Neon Data API in the specified branch.
348
+ * You can obtain the `project_id` and `branch_id` by listing the projects and branches for your Neon account.
349
+ *
350
+ */
351
+ createProjectBranchDataApi(options) {
352
+ return (options.client ?? this._client).post({
353
+ url: "/projects/{project_id}/branches/{branch_id}/data-api/{database_name}",
354
+ ...options,
355
+ headers: {
356
+ "Content-Type": "application/json",
357
+ ...options.headers,
358
+ },
359
+ });
360
+ }
361
+ /**
362
+ * Create Neon Auth integration
363
+ * Creates a project on a third-party authentication provider's platform for use with Neon Auth.
364
+ * Use this endpoint if the frontend integration flow can't be used.
365
+ *
366
+ */
367
+ createNeonAuthIntegration(options) {
368
+ return (options.client ?? this._client).post({
369
+ url: "/projects/auth/create",
370
+ ...options,
371
+ headers: {
372
+ "Content-Type": "application/json",
373
+ ...options.headers,
374
+ },
375
+ });
376
+ }
377
+ /**
378
+ * Delete domain from redirect_uri whitelist
379
+ * Deletes a domain from the redirect_uri whitelist for the specified project.
380
+ *
381
+ */
382
+ deleteNeonAuthDomainFromRedirectUriWhitelist(options) {
383
+ return (options.client ?? this._client).delete({
384
+ url: "/projects/{project_id}/auth/domains",
385
+ ...options,
386
+ headers: {
387
+ "Content-Type": "application/json",
388
+ ...options.headers,
389
+ },
390
+ });
391
+ }
392
+ /**
393
+ * List domains in redirect_uri whitelist
394
+ * Lists the domains in the redirect_uri whitelist for the specified project.
395
+ *
396
+ */
397
+ listNeonAuthRedirectUriWhitelistDomains(options) {
398
+ return (options.client ?? this._client).get({
399
+ url: "/projects/{project_id}/auth/domains",
400
+ ...options,
401
+ });
402
+ }
403
+ /**
404
+ * Add domain to redirect_uri whitelist
405
+ * Adds a domain to the redirect_uri whitelist for the specified project.
406
+ *
407
+ */
408
+ addNeonAuthDomainToRedirectUriWhitelist(options) {
409
+ return (options.client ?? this._client).post({
410
+ url: "/projects/{project_id}/auth/domains",
411
+ ...options,
412
+ headers: {
413
+ "Content-Type": "application/json",
414
+ ...options.headers,
415
+ },
416
+ });
417
+ }
418
+ /**
419
+ * Create Auth Provider SDK keys
420
+ * Generates SDK or API Keys for the auth provider. These might be called different things depending
421
+ * on the auth provider you're using, but are generally used for setting up the frontend and backend SDKs.
422
+ *
423
+ */
424
+ createNeonAuthProviderSdkKeys(options) {
425
+ return (options.client ?? this._client).post({
426
+ url: "/projects/auth/keys",
427
+ ...options,
428
+ headers: {
429
+ "Content-Type": "application/json",
430
+ ...options.headers,
431
+ },
432
+ });
433
+ }
434
+ /**
435
+ * Create new auth user
436
+ * Creates a new user in Neon Auth.
437
+ * The user will be created in your neon_auth.users_sync table and automatically propagated to your auth project, whether Neon-managed or provider-owned.
438
+ *
439
+ */
440
+ createNeonAuthNewUser(options) {
441
+ return (options.client ?? this._client).post({
442
+ url: "/projects/auth/user",
443
+ ...options,
444
+ headers: {
445
+ "Content-Type": "application/json",
446
+ ...options.headers,
447
+ },
448
+ });
449
+ }
450
+ /**
451
+ * Delete auth user
452
+ * Deletes the auth user for the specified project.
453
+ *
454
+ */
455
+ deleteNeonAuthUser(options) {
456
+ return (options.client ?? this._client).delete({
457
+ url: "/projects/{project_id}/auth/users/{auth_user_id}",
458
+ ...options,
459
+ });
460
+ }
461
+ /**
462
+ * Transfer Neon-managed auth project to your own account
463
+ * Transfer ownership of your Neon-managed auth project to your own auth provider account.
464
+ *
465
+ */
466
+ transferNeonAuthProviderProject(options) {
467
+ return (options.client ?? this._client).post({
468
+ url: "/projects/auth/transfer_ownership",
469
+ ...options,
470
+ headers: {
471
+ "Content-Type": "application/json",
472
+ ...options.headers,
473
+ },
474
+ });
475
+ }
476
+ /**
477
+ * Lists active integrations with auth providers
478
+ */
479
+ listNeonAuthIntegrations(options) {
480
+ return (options.client ?? this._client).get({
481
+ url: "/projects/{project_id}/auth/integrations",
482
+ ...options,
483
+ });
484
+ }
485
+ /**
486
+ * List OAuth providers
487
+ * Lists the OAuth providers for the specified project.
488
+ *
489
+ */
490
+ listNeonAuthOauthProviders(options) {
491
+ return (options.client ?? this._client).get({
492
+ url: "/projects/{project_id}/auth/oauth_providers",
493
+ ...options,
494
+ });
495
+ }
496
+ /**
497
+ * Add a OAuth provider
498
+ * Adds a OAuth provider to the specified project.
499
+ *
500
+ */
501
+ addNeonAuthOauthProvider(options) {
502
+ return (options.client ?? this._client).post({
503
+ url: "/projects/{project_id}/auth/oauth_providers",
504
+ ...options,
505
+ headers: {
506
+ "Content-Type": "application/json",
507
+ ...options.headers,
508
+ },
509
+ });
510
+ }
511
+ /**
512
+ * Delete OAuth provider
513
+ * Deletes a OAuth provider from the specified project.
514
+ *
515
+ */
516
+ deleteNeonAuthOauthProvider(options) {
517
+ return (options.client ?? this._client).delete({
518
+ url: "/projects/{project_id}/auth/oauth_providers/{oauth_provider_id}",
519
+ ...options,
520
+ });
521
+ }
522
+ /**
523
+ * Update OAuth provider
524
+ * Updates a OAuth provider for the specified project.
525
+ *
526
+ */
527
+ updateNeonAuthOauthProvider(options) {
528
+ return (options.client ?? this._client).patch({
529
+ url: "/projects/{project_id}/auth/oauth_providers/{oauth_provider_id}",
530
+ ...options,
531
+ headers: {
532
+ "Content-Type": "application/json",
533
+ ...options.headers,
534
+ },
535
+ });
536
+ }
537
+ /**
538
+ * Get email server configuration
539
+ * Gets the email server configuration for the specified project.
540
+ *
541
+ */
542
+ getNeonAuthEmailServer(options) {
543
+ return (options.client ?? this._client).get({
544
+ url: "/projects/{project_id}/auth/email_server",
545
+ ...options,
546
+ });
547
+ }
548
+ /**
549
+ * Update email server configuration
550
+ * Updates the email server configuration for the specified project.
551
+ *
552
+ */
553
+ updateNeonAuthEmailServer(options) {
554
+ return (options.client ?? this._client).patch({
555
+ url: "/projects/{project_id}/auth/email_server",
556
+ ...options,
557
+ headers: {
558
+ "Content-Type": "application/json",
559
+ ...options.headers,
560
+ },
561
+ });
562
+ }
563
+ /**
564
+ * Delete integration with auth provider
565
+ */
566
+ deleteNeonAuthIntegration(options) {
567
+ return (options.client ?? this._client).delete({
568
+ url: "/projects/{project_id}/auth/integration/{auth_provider}",
569
+ ...options,
570
+ headers: {
571
+ "Content-Type": "application/json",
572
+ ...options.headers,
573
+ },
574
+ });
575
+ }
576
+ /**
577
+ * Retrieve connection URI
578
+ * Retrieves a connection URI for the specified database.
579
+ * You can obtain a `project_id` by listing the projects for your Neon account.
580
+ * You can obtain the `database_name` by listing the databases for a branch.
581
+ * You can obtain a `role_name` by listing the roles for a branch.
582
+ *
583
+ */
584
+ getConnectionUri(options) {
585
+ return (options.client ?? this._client).get({
586
+ url: "/projects/{project_id}/connection_uri",
587
+ ...options,
588
+ });
589
+ }
590
+ /**
591
+ * List branches
592
+ * Retrieves a list of branches for the specified project.
593
+ * You can obtain a `project_id` by listing the projects for your Neon account.
594
+ *
595
+ * Each Neon project has a root branch named `main`.
596
+ * A `branch_id` value has a `br-` prefix.
597
+ * A project may contain child branches that were branched from `main` or from another branch.
598
+ * A parent branch is identified by the `parent_id` value, which is the `id` of the parent branch.
599
+ * For related information, see [Manage branches](https://neon.tech/docs/manage/branches/).
600
+ *
601
+ */
602
+ listProjectBranches(options) {
603
+ return (options.client ?? this._client).get({
604
+ url: "/projects/{project_id}/branches",
605
+ ...options,
606
+ });
607
+ }
608
+ /**
609
+ * Create branch
610
+ * Creates a branch in the specified project.
611
+ * You can obtain a `project_id` by listing the projects for your Neon account.
612
+ * This method does not require a request body, but you can specify one to create a compute endpoint for the branch or to select a non-default parent branch.
613
+ * By default, the branch is created from the project's default branch with no compute endpoint, and the branch name is auto-generated.
614
+ * To access the branch, you must add an endpoint object. A `read_write` endpoint allows you to perform read and write operations on the branch.
615
+ * Each branch supports one read-write endpoint and multiple read-only endpoints.
616
+ * For related information, see [Manage branches](https://neon.tech/docs/manage/branches/).
617
+ *
618
+ */
619
+ createProjectBranch(options) {
620
+ return (options.client ?? this._client).post({
621
+ url: "/projects/{project_id}/branches",
622
+ ...options,
623
+ headers: {
624
+ "Content-Type": "application/json",
625
+ ...options.headers,
626
+ },
627
+ });
628
+ }
629
+ /**
630
+ * Retrieve number of branches
631
+ * Retrieves the total number of branches in the specified project.
632
+ * You can obtain a `project_id` by listing the projects for your Neon account.
633
+ *
634
+ */
635
+ countProjectBranches(options) {
636
+ return (options.client ?? this._client).get({
637
+ url: "/projects/{project_id}/branches/count",
638
+ ...options,
639
+ });
640
+ }
641
+ /**
642
+ * Delete branch
643
+ * Deletes the specified branch from a project, and places
644
+ * all compute endpoints into an idle state, breaking existing client connections.
645
+ * You can obtain a `project_id` by listing the projects for your Neon account.
646
+ * You can obtain a `branch_id` by listing the project's branches.
647
+ * For related information, see [Manage branches](https://neon.tech/docs/manage/branches/).
648
+ *
649
+ * When a successful response status is received, the compute endpoints are still active,
650
+ * and the branch is not yet deleted from storage.
651
+ * The deletion occurs after all operations finish.
652
+ * You cannot delete a project's root or default branch, and you cannot delete a branch that has a child branch.
653
+ * A project must have at least one branch.
654
+ *
655
+ */
656
+ deleteProjectBranch(options) {
657
+ return (options.client ?? this._client).delete({
658
+ url: "/projects/{project_id}/branches/{branch_id}",
659
+ ...options,
660
+ });
661
+ }
662
+ /**
663
+ * Retrieve branch details
664
+ * Retrieves information about the specified branch.
665
+ * You can obtain a `project_id` by listing the projects for your Neon account.
666
+ * You can obtain a `branch_id` by listing the project's branches.
667
+ * A `branch_id` value has a `br-` prefix.
668
+ *
669
+ * Each Neon project is initially created with a root and default branch named `main`.
670
+ * A project can contain one or more branches.
671
+ * A parent branch is identified by a `parent_id` value, which is the `id` of the parent branch.
672
+ * For related information, see [Manage branches](https://neon.tech/docs/manage/branches/).
673
+ *
674
+ */
675
+ getProjectBranch(options) {
676
+ return (options.client ?? this._client).get({
677
+ url: "/projects/{project_id}/branches/{branch_id}",
678
+ ...options,
679
+ });
680
+ }
681
+ /**
682
+ * Update branch
683
+ * Updates the specified branch.
684
+ * You can obtain a `project_id` by listing the projects for your Neon account.
685
+ * You can obtain the `branch_id` by listing the project's branches.
686
+ * For more information, see [Manage branches](https://neon.tech/docs/manage/branches/).
687
+ *
688
+ */
689
+ updateProjectBranch(options) {
690
+ return (options.client ?? this._client).patch({
691
+ url: "/projects/{project_id}/branches/{branch_id}",
692
+ ...options,
693
+ headers: {
694
+ "Content-Type": "application/json",
695
+ ...options.headers,
696
+ },
697
+ });
698
+ }
699
+ /**
700
+ * Restore branch
701
+ * Restores a branch to an earlier state in its own or another branch's history
702
+ */
703
+ restoreProjectBranch(options) {
704
+ return (options.client ?? this._client).post({
705
+ url: "/projects/{project_id}/branches/{branch_id}/restore",
706
+ ...options,
707
+ headers: {
708
+ "Content-Type": "application/json",
709
+ ...options.headers,
710
+ },
711
+ });
712
+ }
713
+ /**
714
+ * Retrieve database schema
715
+ * Retrieves the schema from the specified database. The `lsn` and `timestamp` values cannot be specified at the same time. If both are omitted, the database schema is retrieved from database's head.
716
+ */
717
+ getProjectBranchSchema(options) {
718
+ return (options.client ?? this._client).get({
719
+ url: "/projects/{project_id}/branches/{branch_id}/schema",
720
+ ...options,
721
+ });
722
+ }
723
+ /**
724
+ * Compare database schema
725
+ * Compares the schema from the specified database with another branch's schema.
726
+ */
727
+ getProjectBranchSchemaComparison(options) {
728
+ return (options.client ?? this._client).get({
729
+ url: "/projects/{project_id}/branches/{branch_id}/compare_schema",
730
+ ...options,
731
+ });
732
+ }
733
+ /**
734
+ * Set branch as default
735
+ * Sets the specified branch as the project's default branch.
736
+ * The default designation is automatically removed from the previous default branch.
737
+ * You can obtain a `project_id` by listing the projects for your Neon account.
738
+ * You can obtain the `branch_id` by listing the project's branches.
739
+ * For more information, see [Manage branches](https://neon.tech/docs/manage/branches/).
740
+ *
741
+ */
742
+ setDefaultProjectBranch(options) {
743
+ return (options.client ?? this._client).post({
744
+ url: "/projects/{project_id}/branches/{branch_id}/set_as_default",
745
+ ...options,
746
+ });
747
+ }
748
+ /**
749
+ * Finalize restore
750
+ * Finalize the restore operation for a branch created from a snapshot.
751
+ * This operation updates the branch so it functions as the original branch it replaced.
752
+ * This includes:
753
+ * - Reassigning any computes from the original branch to the restored branch (this will restart the computes)
754
+ * - Renaming the restored branch to the original branch's name
755
+ * - Renaming the original branch so it no longer uses the original name
756
+ *
757
+ * This operation only applies to branches created using the `restoreSnapshot` endpoint with `finalize_restore: false`.
758
+ *
759
+ * **Note**: This endpoint is currently in Beta.
760
+ *
761
+ */
762
+ finalizeRestoreBranch(options) {
763
+ return (options.client ?? this._client).post({
764
+ url: "/projects/{project_id}/branches/{branch_id}/finalize_restore",
765
+ ...options,
766
+ headers: {
767
+ "Content-Type": "application/json",
768
+ ...options.headers,
769
+ },
770
+ });
771
+ }
772
+ /**
773
+ * List branch endpoints
774
+ * Retrieves a list of compute endpoints for the specified branch.
775
+ * Neon permits only one read-write compute endpoint per branch.
776
+ * A branch can have multiple read-only compute endpoints.
777
+ * You can obtain a `project_id` by listing the projects for your Neon account.
778
+ * You can obtain the `branch_id` by listing the project's branches.
779
+ *
780
+ */
781
+ listProjectBranchEndpoints(options) {
782
+ return (options.client ?? this._client).get({
783
+ url: "/projects/{project_id}/branches/{branch_id}/endpoints",
784
+ ...options,
785
+ });
786
+ }
787
+ /**
788
+ * List databases
789
+ * Retrieves a list of databases for the specified branch.
790
+ * A branch can have multiple databases.
791
+ * You can obtain a `project_id` by listing the projects for your Neon account.
792
+ * You can obtain the `branch_id` by listing the project's branches.
793
+ * For related information, see [Manage databases](https://neon.tech/docs/manage/databases/).
794
+ *
795
+ */
796
+ listProjectBranchDatabases(options) {
797
+ return (options.client ?? this._client).get({
798
+ url: "/projects/{project_id}/branches/{branch_id}/databases",
799
+ ...options,
800
+ });
801
+ }
802
+ /**
803
+ * Create database
804
+ * Creates a database in the specified branch.
805
+ * A branch can have multiple databases.
806
+ * You can obtain a `project_id` by listing the projects for your Neon account.
807
+ * You can obtain the `branch_id` by listing the project's branches.
808
+ * For related information, see [Manage databases](https://neon.tech/docs/manage/databases/).
809
+ *
810
+ */
811
+ createProjectBranchDatabase(options) {
812
+ return (options.client ?? this._client).post({
813
+ url: "/projects/{project_id}/branches/{branch_id}/databases",
814
+ ...options,
815
+ headers: {
816
+ "Content-Type": "application/json",
817
+ ...options.headers,
818
+ },
819
+ });
820
+ }
821
+ /**
822
+ * Delete database
823
+ * Deletes the specified database from the branch.
824
+ * You can obtain a `project_id` by listing the projects for your Neon account.
825
+ * You can obtain the `branch_id` and `database_name` by listing the branch's databases.
826
+ * For related information, see [Manage databases](https://neon.tech/docs/manage/databases/).
827
+ *
828
+ */
829
+ deleteProjectBranchDatabase(options) {
830
+ return (options.client ?? this._client).delete({
831
+ url: "/projects/{project_id}/branches/{branch_id}/databases/{database_name}",
832
+ ...options,
833
+ });
834
+ }
835
+ /**
836
+ * Retrieve database details
837
+ * Retrieves information about the specified database.
838
+ * You can obtain a `project_id` by listing the projects for your Neon account.
839
+ * You can obtain the `branch_id` and `database_name` by listing the branch's databases.
840
+ * For related information, see [Manage databases](https://neon.tech/docs/manage/databases/).
841
+ *
842
+ */
843
+ getProjectBranchDatabase(options) {
844
+ return (options.client ?? this._client).get({
845
+ url: "/projects/{project_id}/branches/{branch_id}/databases/{database_name}",
846
+ ...options,
847
+ });
848
+ }
849
+ /**
850
+ * Update database
851
+ * Updates the specified database in the branch.
852
+ * You can obtain a `project_id` by listing the projects for your Neon account.
853
+ * You can obtain the `branch_id` and `database_name` by listing the branch's databases.
854
+ * For related information, see [Manage databases](https://neon.tech/docs/manage/databases/).
855
+ *
856
+ */
857
+ updateProjectBranchDatabase(options) {
858
+ return (options.client ?? this._client).patch({
859
+ url: "/projects/{project_id}/branches/{branch_id}/databases/{database_name}",
860
+ ...options,
861
+ headers: {
862
+ "Content-Type": "application/json",
863
+ ...options.headers,
864
+ },
865
+ });
866
+ }
867
+ /**
868
+ * List roles
869
+ * Retrieves a list of Postgres roles from the specified branch.
870
+ * You can obtain a `project_id` by listing the projects for your Neon account.
871
+ * You can obtain the `branch_id` by listing the project's branches.
872
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
873
+ *
874
+ */
875
+ listProjectBranchRoles(options) {
876
+ return (options.client ?? this._client).get({
877
+ url: "/projects/{project_id}/branches/{branch_id}/roles",
878
+ ...options,
879
+ });
880
+ }
881
+ /**
882
+ * Create role
883
+ * Creates a Postgres role in the specified branch.
884
+ * You can obtain a `project_id` by listing the projects for your Neon account.
885
+ * You can obtain the `branch_id` by listing the project's branches.
886
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
887
+ *
888
+ * Connections established to the active compute endpoint will be dropped.
889
+ * If the compute endpoint is idle, the endpoint becomes active for a short period of time and is suspended afterward.
890
+ *
891
+ */
892
+ createProjectBranchRole(options) {
893
+ return (options.client ?? this._client).post({
894
+ url: "/projects/{project_id}/branches/{branch_id}/roles",
895
+ ...options,
896
+ headers: {
897
+ "Content-Type": "application/json",
898
+ ...options.headers,
899
+ },
900
+ });
901
+ }
902
+ /**
903
+ * Delete role
904
+ * Deletes the specified Postgres role from the branch.
905
+ * You can obtain a `project_id` by listing the projects for your Neon account.
906
+ * You can obtain the `branch_id` by listing the project's branches.
907
+ * You can obtain the `role_name` by listing the roles for a branch.
908
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
909
+ *
910
+ */
911
+ deleteProjectBranchRole(options) {
912
+ return (options.client ?? this._client).delete({
913
+ url: "/projects/{project_id}/branches/{branch_id}/roles/{role_name}",
914
+ ...options,
915
+ });
916
+ }
917
+ /**
918
+ * Retrieve role details
919
+ * Retrieves details about the specified role.
920
+ * You can obtain a `project_id` by listing the projects for your Neon account.
921
+ * You can obtain the `branch_id` by listing the project's branches.
922
+ * You can obtain the `role_name` by listing the roles for a branch.
923
+ * In Neon, the terms "role" and "user" are synonymous.
924
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
925
+ *
926
+ */
927
+ getProjectBranchRole(options) {
928
+ return (options.client ?? this._client).get({
929
+ url: "/projects/{project_id}/branches/{branch_id}/roles/{role_name}",
930
+ ...options,
931
+ });
932
+ }
933
+ /**
934
+ * Retrieve role password
935
+ * Retrieves the password for the specified Postgres role, if possible.
936
+ * You can obtain a `project_id` by listing the projects for your Neon account.
937
+ * You can obtain the `branch_id` by listing the project's branches.
938
+ * You can obtain the `role_name` by listing the roles for a branch.
939
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
940
+ *
941
+ */
942
+ getProjectBranchRolePassword(options) {
943
+ return (options.client ?? this._client).get({
944
+ url: "/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reveal_password",
945
+ ...options,
946
+ });
947
+ }
948
+ /**
949
+ * Reset role password
950
+ * Resets the password for the specified Postgres role.
951
+ * Returns a new password and operations. The new password is ready to use when the last operation finishes.
952
+ * The old password remains valid until last operation finishes.
953
+ * Connections to the compute endpoint are dropped. If idle,
954
+ * the compute endpoint becomes active for a short period of time.
955
+ *
956
+ * You can obtain a `project_id` by listing the projects for your Neon account.
957
+ * You can obtain the `branch_id` by listing the project's branches.
958
+ * You can obtain the `role_name` by listing the roles for a branch.
959
+ * For related information, see [Manage roles](https://neon.tech/docs/manage/roles/).
960
+ *
961
+ */
962
+ resetProjectBranchRolePassword(options) {
963
+ return (options.client ?? this._client).post({
964
+ url: "/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reset_password",
965
+ ...options,
966
+ });
967
+ }
968
+ /**
969
+ * List VPC endpoint restrictions
970
+ * Lists VPC endpoint restrictions for the specified Neon project.
971
+ *
972
+ */
973
+ listProjectVpcEndpoints(options) {
974
+ return (options.client ?? this._client).get({
975
+ url: "/projects/{project_id}/vpc_endpoints",
976
+ ...options,
977
+ });
978
+ }
979
+ /**
980
+ * Delete VPC endpoint restriction
981
+ * Removes the specified VPC endpoint restriction from a Neon project.
982
+ *
983
+ */
984
+ deleteProjectVpcEndpoint(options) {
985
+ return (options.client ?? this._client).delete({
986
+ url: "/projects/{project_id}/vpc_endpoints/{vpc_endpoint_id}",
987
+ ...options,
988
+ });
989
+ }
990
+ /**
991
+ * Set VPC endpoint restriction
992
+ * Sets or updates a VPC endpoint restriction for a Neon project.
993
+ * When a VPC endpoint restriction is set, the project only accepts connections
994
+ * from the specified VPC.
995
+ * A VPC endpoint can be set as a restriction only after it is assigned to the
996
+ * parent organization of the Neon project.
997
+ *
998
+ */
999
+ assignProjectVpcEndpoint(options) {
1000
+ return (options.client ?? this._client).post({
1001
+ url: "/projects/{project_id}/vpc_endpoints/{vpc_endpoint_id}",
1002
+ ...options,
1003
+ headers: {
1004
+ "Content-Type": "application/json",
1005
+ ...options.headers,
1006
+ },
1007
+ });
1008
+ }
1009
+ /**
1010
+ * List compute endpoints
1011
+ * Retrieves a list of compute endpoints for the specified project.
1012
+ * A compute endpoint is a Neon compute instance.
1013
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1014
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1015
+ *
1016
+ */
1017
+ listProjectEndpoints(options) {
1018
+ return (options.client ?? this._client).get({
1019
+ url: "/projects/{project_id}/endpoints",
1020
+ ...options,
1021
+ });
1022
+ }
1023
+ /**
1024
+ * Create compute endpoint
1025
+ * Creates a compute endpoint for the specified branch.
1026
+ * An endpoint is a Neon compute instance.
1027
+ * There is a maximum of one read-write compute endpoint per branch.
1028
+ * If the specified branch already has a read-write compute endpoint, the operation fails.
1029
+ * A branch can have multiple read-only compute endpoints.
1030
+ *
1031
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1032
+ * You can obtain `branch_id` by listing the project's branches.
1033
+ * A `branch_id` has a `br-` prefix.
1034
+ * For supported regions and `region_id` values, see [Regions](https://neon.tech/docs/introduction/regions/).
1035
+ * For more information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1036
+ *
1037
+ */
1038
+ createProjectEndpoint(options) {
1039
+ return (options.client ?? this._client).post({
1040
+ url: "/projects/{project_id}/endpoints",
1041
+ ...options,
1042
+ headers: {
1043
+ "Content-Type": "application/json",
1044
+ ...options.headers,
1045
+ },
1046
+ });
1047
+ }
1048
+ /**
1049
+ * Delete compute endpoint
1050
+ * Delete the specified compute endpoint.
1051
+ * A compute endpoint is a Neon compute instance.
1052
+ * Deleting a compute endpoint drops existing network connections to the compute endpoint.
1053
+ * The deletion is completed when last operation in the chain finishes successfully.
1054
+ *
1055
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1056
+ * You can obtain an `endpoint_id` by listing your project's compute endpoints.
1057
+ * An `endpoint_id` has an `ep-` prefix.
1058
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1059
+ *
1060
+ */
1061
+ deleteProjectEndpoint(options) {
1062
+ return (options.client ?? this._client).delete({
1063
+ url: "/projects/{project_id}/endpoints/{endpoint_id}",
1064
+ ...options,
1065
+ });
1066
+ }
1067
+ /**
1068
+ * Retrieve compute endpoint details
1069
+ * Retrieves information about the specified compute endpoint.
1070
+ * A compute endpoint is a Neon compute instance.
1071
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1072
+ * You can obtain an `endpoint_id` by listing your project's compute endpoints.
1073
+ * An `endpoint_id` has an `ep-` prefix.
1074
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1075
+ *
1076
+ */
1077
+ getProjectEndpoint(options) {
1078
+ return (options.client ?? this._client).get({
1079
+ url: "/projects/{project_id}/endpoints/{endpoint_id}",
1080
+ ...options,
1081
+ });
1082
+ }
1083
+ /**
1084
+ * Update compute endpoint
1085
+ * Updates the specified compute endpoint.
1086
+ *
1087
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1088
+ * You can obtain an `endpoint_id` and `branch_id` by listing your project's compute endpoints.
1089
+ * An `endpoint_id` has an `ep-` prefix. A `branch_id` has a `br-` prefix.
1090
+ * For more information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1091
+ *
1092
+ * If the returned list of operations is not empty, the compute endpoint is not ready to use.
1093
+ * The client must wait for the last operation to finish before using the compute endpoint.
1094
+ * If the compute endpoint was idle before the update, it becomes active for a short period of time,
1095
+ * and the control plane suspends it again after the update.
1096
+ *
1097
+ */
1098
+ updateProjectEndpoint(options) {
1099
+ return (options.client ?? this._client).patch({
1100
+ url: "/projects/{project_id}/endpoints/{endpoint_id}",
1101
+ ...options,
1102
+ headers: {
1103
+ "Content-Type": "application/json",
1104
+ ...options.headers,
1105
+ },
1106
+ });
1107
+ }
1108
+ /**
1109
+ * Start compute endpoint
1110
+ * Starts a compute endpoint. The compute endpoint is ready to use
1111
+ * after the last operation in chain finishes successfully.
1112
+ *
1113
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1114
+ * You can obtain an `endpoint_id` by listing your project's compute endpoints.
1115
+ * An `endpoint_id` has an `ep-` prefix.
1116
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1117
+ *
1118
+ */
1119
+ startProjectEndpoint(options) {
1120
+ return (options.client ?? this._client).post({
1121
+ url: "/projects/{project_id}/endpoints/{endpoint_id}/start",
1122
+ ...options,
1123
+ });
1124
+ }
1125
+ /**
1126
+ * Suspend compute endpoint
1127
+ * Suspend the specified compute endpoint
1128
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1129
+ * You can obtain an `endpoint_id` by listing your project's compute endpoints.
1130
+ * An `endpoint_id` has an `ep-` prefix.
1131
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1132
+ *
1133
+ */
1134
+ suspendProjectEndpoint(options) {
1135
+ return (options.client ?? this._client).post({
1136
+ url: "/projects/{project_id}/endpoints/{endpoint_id}/suspend",
1137
+ ...options,
1138
+ });
1139
+ }
1140
+ /**
1141
+ * Restart compute endpoint
1142
+ * Restart the specified compute endpoint: suspend immediately followed by start operations.
1143
+ * You can obtain a `project_id` by listing the projects for your Neon account.
1144
+ * You can obtain an `endpoint_id` by listing your project's compute endpoints.
1145
+ * An `endpoint_id` has an `ep-` prefix.
1146
+ * For information about compute endpoints, see [Manage computes](https://neon.tech/docs/manage/endpoints/).
1147
+ *
1148
+ */
1149
+ restartProjectEndpoint(options) {
1150
+ return (options.client ?? this._client).post({
1151
+ url: "/projects/{project_id}/endpoints/{endpoint_id}/restart",
1152
+ ...options,
1153
+ });
1154
+ }
1155
+ /**
1156
+ * Retrieve account consumption metrics
1157
+ * Retrieves consumption metrics for Scale, Business, and Enterprise plan accounts. History begins at the time of upgrade.
1158
+ *
1159
+ */
1160
+ getConsumptionHistoryPerAccount(options) {
1161
+ return (options.client ?? this._client).get({
1162
+ url: "/consumption_history/account",
1163
+ ...options,
1164
+ });
1165
+ }
1166
+ /**
1167
+ * Retrieve project consumption metrics
1168
+ * Retrieves consumption metrics for Scale, Business, and Enterprise plan projects. History begins at the time of upgrade.
1169
+ * Issuing a call to this API does not wake a project's compute endpoint.
1170
+ *
1171
+ */
1172
+ getConsumptionHistoryPerProject(options) {
1173
+ return (options.client ?? this._client).get({
1174
+ url: "/consumption_history/projects",
1175
+ ...options,
1176
+ });
1177
+ }
1178
+ /**
1179
+ * Retrieve organization details
1180
+ * Retrieves information about the specified organization.
1181
+ *
1182
+ */
1183
+ getOrganization(options) {
1184
+ return (options.client ?? this._client).get({
1185
+ url: "/organizations/{org_id}",
1186
+ ...options,
1187
+ });
1188
+ }
1189
+ /**
1190
+ * List organization API keys
1191
+ * Retrieves the API keys for the specified organization.
1192
+ * The response does not include API key tokens. A token is only provided when creating an API key.
1193
+ * API keys can also be managed in the Neon Console.
1194
+ * For more information, see [Manage API keys](https://neon.tech/docs/manage/api-keys/).
1195
+ *
1196
+ */
1197
+ listOrgApiKeys(options) {
1198
+ return (options.client ?? this._client).get({
1199
+ url: "/organizations/{org_id}/api_keys",
1200
+ ...options,
1201
+ });
1202
+ }
1203
+ /**
1204
+ * Create organization API key
1205
+ * Creates an API key for the specified organization.
1206
+ * The `key_name` is a user-specified name for the key.
1207
+ * This method returns an `id` and `key`. The `key` is a randomly generated, 64-bit token required to access the Neon API.
1208
+ * API keys can also be managed in the Neon Console.
1209
+ * See [Manage API keys](https://neon.tech/docs/manage/api-keys/).
1210
+ *
1211
+ */
1212
+ createOrgApiKey(options) {
1213
+ return (options.client ?? this._client).post({
1214
+ url: "/organizations/{org_id}/api_keys",
1215
+ ...options,
1216
+ headers: {
1217
+ "Content-Type": "application/json",
1218
+ ...options.headers,
1219
+ },
1220
+ });
1221
+ }
1222
+ /**
1223
+ * Revoke organization API key
1224
+ * Revokes the specified organization API key.
1225
+ * An API key that is no longer needed can be revoked.
1226
+ * This action cannot be reversed.
1227
+ * You can obtain `key_id` values by listing the API keys for an organization.
1228
+ * API keys can also be managed in the Neon Console.
1229
+ * See [Manage API keys](https://neon.tech/docs/manage/api-keys/).
1230
+ *
1231
+ */
1232
+ revokeOrgApiKey(options) {
1233
+ return (options.client ?? this._client).delete({
1234
+ url: "/organizations/{org_id}/api_keys/{key_id}",
1235
+ ...options,
1236
+ });
1237
+ }
1238
+ /**
1239
+ * Retrieve organization members details
1240
+ * Retrieves information about the specified organization members.
1241
+ *
1242
+ */
1243
+ getOrganizationMembers(options) {
1244
+ return (options.client ?? this._client).get({
1245
+ url: "/organizations/{org_id}/members",
1246
+ ...options,
1247
+ });
1248
+ }
1249
+ /**
1250
+ * Remove member from the organization
1251
+ * Remove member from the organization.
1252
+ * Only an admin of the organization can perform this action.
1253
+ * If another admin is being removed, it will not be allows in case it is the only admin left in the organization.
1254
+ *
1255
+ */
1256
+ removeOrganizationMember(options) {
1257
+ return (options.client ?? this._client).delete({
1258
+ url: "/organizations/{org_id}/members/{member_id}",
1259
+ ...options,
1260
+ });
1261
+ }
1262
+ /**
1263
+ * Retrieve organization member details
1264
+ * Retrieves information about the specified organization member.
1265
+ *
1266
+ */
1267
+ getOrganizationMember(options) {
1268
+ return (options.client ?? this._client).get({
1269
+ url: "/organizations/{org_id}/members/{member_id}",
1270
+ ...options,
1271
+ });
1272
+ }
1273
+ /**
1274
+ * Update role for organization member
1275
+ * Only an admin can perform this action.
1276
+ *
1277
+ */
1278
+ updateOrganizationMember(options) {
1279
+ return (options.client ?? this._client).patch({
1280
+ url: "/organizations/{org_id}/members/{member_id}",
1281
+ ...options,
1282
+ headers: {
1283
+ "Content-Type": "application/json",
1284
+ ...options.headers,
1285
+ },
1286
+ });
1287
+ }
1288
+ /**
1289
+ * Retrieve organization invitation details
1290
+ * Retrieves information about extended invitations for the specified organization
1291
+ *
1292
+ */
1293
+ getOrganizationInvitations(options) {
1294
+ return (options.client ?? this._client).get({
1295
+ url: "/organizations/{org_id}/invitations",
1296
+ ...options,
1297
+ });
1298
+ }
1299
+ /**
1300
+ * Create organization invitations
1301
+ * Creates invitations for a specific organization.
1302
+ * If the invited user has an existing account, they automatically join as a member.
1303
+ * If they don't yet have an account, they are invited to create one, after which they become a member.
1304
+ * Each invited user receives an email notification.
1305
+ *
1306
+ */
1307
+ createOrganizationInvitations(options) {
1308
+ return (options.client ?? this._client).post({
1309
+ url: "/organizations/{org_id}/invitations",
1310
+ ...options,
1311
+ headers: {
1312
+ "Content-Type": "application/json",
1313
+ ...options.headers,
1314
+ },
1315
+ });
1316
+ }
1317
+ /**
1318
+ * Transfer projects between organizations
1319
+ * Transfers selected projects, identified by their IDs, from your organization to another specified organization.
1320
+ *
1321
+ */
1322
+ transferProjectsFromOrgToOrg(options) {
1323
+ return (options.client ?? this._client).post({
1324
+ url: "/organizations/{source_org_id}/projects/transfer",
1325
+ ...options,
1326
+ headers: {
1327
+ "Content-Type": "application/json",
1328
+ ...options.headers,
1329
+ },
1330
+ });
1331
+ }
1332
+ /**
1333
+ * List VPC endpoints across all regions
1334
+ * Retrieves the list of VPC endpoints for the specified Neon organization across all regions.
1335
+ *
1336
+ */
1337
+ listOrganizationVpcEndpointsAllRegions(options) {
1338
+ return (options.client ?? this._client).get({
1339
+ url: "/organizations/{org_id}/vpc/vpc_endpoints",
1340
+ ...options,
1341
+ });
1342
+ }
1343
+ /**
1344
+ * List VPC endpoints
1345
+ * Retrieves the list of VPC endpoints for the specified Neon organization.
1346
+ *
1347
+ */
1348
+ listOrganizationVpcEndpoints(options) {
1349
+ return (options.client ?? this._client).get({
1350
+ url: "/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints",
1351
+ ...options,
1352
+ });
1353
+ }
1354
+ /**
1355
+ * Delete VPC endpoint
1356
+ * Deletes the VPC endpoint from the specified Neon organization.
1357
+ * If you delete a VPC endpoint from a Neon organization, that VPC endpoint cannot
1358
+ * be added back to the Neon organization.
1359
+ *
1360
+ */
1361
+ deleteOrganizationVpcEndpoint(options) {
1362
+ return (options.client ?? this._client).delete({
1363
+ url: "/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}",
1364
+ ...options,
1365
+ });
1366
+ }
1367
+ /**
1368
+ * Retrieve VPC endpoint details
1369
+ * Retrieves the current state and configuration details of a specified VPC endpoint.
1370
+ *
1371
+ */
1372
+ getOrganizationVpcEndpointDetails(options) {
1373
+ return (options.client ?? this._client).get({
1374
+ url: "/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}",
1375
+ ...options,
1376
+ });
1377
+ }
1378
+ /**
1379
+ * Assign or update VPC endpoint
1380
+ * Assigns a VPC endpoint to a Neon organization or updates its existing assignment.
1381
+ *
1382
+ */
1383
+ assignOrganizationVpcEndpoint(options) {
1384
+ return (options.client ?? this._client).post({
1385
+ url: "/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}",
1386
+ ...options,
1387
+ headers: {
1388
+ "Content-Type": "application/json",
1389
+ ...options.headers,
1390
+ },
1391
+ });
1392
+ }
1393
+ /**
1394
+ * List supported regions
1395
+ * Lists supported Neon regions
1396
+ *
1397
+ */
1398
+ getActiveRegions(options) {
1399
+ return (options?.client ?? this._client).get({
1400
+ url: "/regions",
1401
+ ...options,
1402
+ });
1403
+ }
1404
+ /**
1405
+ * Retrieve current user details
1406
+ * Retrieves information about the current Neon user account.
1407
+ *
1408
+ */
1409
+ getCurrentUserInfo(options) {
1410
+ return (options?.client ?? this._client).get({
1411
+ url: "/users/me",
1412
+ ...options,
1413
+ });
1414
+ }
1415
+ /**
1416
+ * Retrieve current user organizations list
1417
+ * Retrieves information about the current Neon user's organizations
1418
+ *
1419
+ */
1420
+ getCurrentUserOrganizations(options) {
1421
+ return (options?.client ?? this._client).get({
1422
+ url: "/users/me/organizations",
1423
+ ...options,
1424
+ });
1425
+ }
1426
+ /**
1427
+ * Transfer projects from personal account to organization
1428
+ * Transfers selected projects, identified by their IDs, from your personal account to a specified organization.
1429
+ *
1430
+ */
1431
+ transferProjectsFromUserToOrg(options) {
1432
+ return (options.client ?? this._client).post({
1433
+ url: "/users/me/projects/transfer",
1434
+ ...options,
1435
+ headers: {
1436
+ "Content-Type": "application/json",
1437
+ ...options.headers,
1438
+ },
1439
+ });
1440
+ }
1441
+ /**
1442
+ * Get request authentication details
1443
+ * Returns auth information about the passed credentials. It can refer to an API key, Bearer token or OAuth session.
1444
+ *
1445
+ */
1446
+ getAuthDetails(options) {
1447
+ return (options?.client ?? this._client).get({
1448
+ url: "/auth",
1449
+ ...options,
1450
+ });
1451
+ }
1452
+ /**
1453
+ * Create snapshot
1454
+ * Create a snapshot from the specified branch using the provided parameters.
1455
+ * This endpoint may initiate an asynchronous operation.
1456
+ *
1457
+ * **Note**: This endpoint is currently in Beta.
1458
+ *
1459
+ */
1460
+ createSnapshot(options) {
1461
+ return (options.client ?? this._client).post({
1462
+ url: "/projects/{project_id}/branches/{branch_id}/snapshot",
1463
+ ...options,
1464
+ });
1465
+ }
1466
+ /**
1467
+ * List project snapshots
1468
+ * List the snapshots for the specified project.
1469
+ *
1470
+ * **Note**: This endpoint is currently in Beta.
1471
+ *
1472
+ */
1473
+ listSnapshots(options) {
1474
+ return (options.client ?? this._client).get({
1475
+ url: "/projects/{project_id}/snapshots",
1476
+ ...options,
1477
+ });
1478
+ }
1479
+ /**
1480
+ * Delete snapshot
1481
+ * Delete the specified snapshot.
1482
+ *
1483
+ * **Note**: This endpoint is currently in Beta.
1484
+ *
1485
+ */
1486
+ deleteSnapshot(options) {
1487
+ return (options.client ?? this._client).delete({
1488
+ url: "/projects/{project_id}/snapshots/{snapshot_id}",
1489
+ ...options,
1490
+ });
1491
+ }
1492
+ /**
1493
+ * Update snapshot
1494
+ * Update the specified snapshot.
1495
+ *
1496
+ * **Note**: This endpoint is currently in Beta.
1497
+ *
1498
+ */
1499
+ updateSnapshot(options) {
1500
+ return (options.client ?? this._client).patch({
1501
+ url: "/projects/{project_id}/snapshots/{snapshot_id}",
1502
+ ...options,
1503
+ headers: {
1504
+ "Content-Type": "application/json",
1505
+ ...options.headers,
1506
+ },
1507
+ });
1508
+ }
1509
+ /**
1510
+ * Restore snapshot
1511
+ * Restore the specified snapshot to a new branch and optionally finalize the restore operation.
1512
+ *
1513
+ * **Note**: This endpoint is currently in Beta.
1514
+ *
1515
+ */
1516
+ restoreSnapshot(options) {
1517
+ return (options.client ?? this._client).post({
1518
+ url: "/projects/{project_id}/snapshots/{snapshot_id}/restore",
1519
+ ...options,
1520
+ headers: {
1521
+ "Content-Type": "application/json",
1522
+ ...options.headers,
1523
+ },
1524
+ });
1525
+ }
1526
+ }
1527
+ //# sourceMappingURL=sdk.gen.js.map