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,2219 @@
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 PlanetScaleClient extends _HeyApiClient {
12
+ /**
13
+ * List organizations
14
+ * When using a service token, returns the list of organizations the service token has access to. When using an OAuth token, returns the list of organizations the user has access to.
15
+ * ### Authorization
16
+ * A OAuth token must have at least one of the following scopes in order to use this API endpoint:
17
+ *
18
+ * **OAuth Scopes**
19
+ *
20
+ * | Resource | Scopes |
21
+ * | :------- | :---------- |
22
+ * | User | `read_organizations` |
23
+ */
24
+ listOrganizations(options) {
25
+ return (options?.client ?? this._client).get({
26
+ url: "/organizations",
27
+ ...options,
28
+ });
29
+ }
30
+ /**
31
+ * Get an organization
32
+ *
33
+ * ### Authorization
34
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
35
+ *
36
+ * **Service Token Accesses**
37
+ * `read_organization`
38
+ *
39
+ * **OAuth Scopes**
40
+ *
41
+ * | Resource | Scopes |
42
+ * | :------- | :---------- |
43
+ * | User | `read_organizations` |
44
+ * | Organization | `read_organization` |
45
+ */
46
+ getOrganization(options) {
47
+ return (options.client ?? this._client).get({
48
+ url: "/organizations/{name}",
49
+ ...options,
50
+ });
51
+ }
52
+ /**
53
+ * Update an organization
54
+ *
55
+ * ### Authorization
56
+ * A OAuth token must have at least one of the following scopes in order to use this API endpoint:
57
+ *
58
+ * **OAuth Scopes**
59
+ *
60
+ * | Resource | Scopes |
61
+ * | :------- | :---------- |
62
+ * | Organization | `write_organization` |
63
+ */
64
+ updateOrganization(options) {
65
+ return (options.client ?? this._client).patch({
66
+ url: "/organizations/{name}",
67
+ ...options,
68
+ headers: {
69
+ "Content-Type": "application/json",
70
+ ...options.headers,
71
+ },
72
+ });
73
+ }
74
+ /**
75
+ * List audit logs
76
+ *
77
+ * ### Authorization
78
+ * A service token must have at least one of the following access in order to use this API endpoint:
79
+ *
80
+ * **Service Token Accesses**
81
+ * `read_audit_logs`
82
+ *
83
+ *
84
+ */
85
+ listAuditLogs(options) {
86
+ return (options.client ?? this._client).get({
87
+ url: "/organizations/{name}/audit-log",
88
+ ...options,
89
+ });
90
+ }
91
+ /**
92
+ * List regions for an organization
93
+ *
94
+ * ### Authorization
95
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
96
+ *
97
+ * **Service Token Accesses**
98
+ * `read_organization`
99
+ *
100
+ * **OAuth Scopes**
101
+ *
102
+ * | Resource | Scopes |
103
+ * | :------- | :---------- |
104
+ * | User | `read_organizations` |
105
+ * | Organization | `read_organization` |
106
+ */
107
+ listRegionsForOrganization(options) {
108
+ return (options.client ?? this._client).get({
109
+ url: "/organizations/{name}/regions",
110
+ ...options,
111
+ });
112
+ }
113
+ /**
114
+ * List databases
115
+ *
116
+ * ### Authorization
117
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
118
+ *
119
+ * **Service Token Accesses**
120
+ * `read_database`, `delete_database`, `write_database`, `read_branch`, `delete_branch`, `create_branch`, `delete_production_branch`, `connect_branch`, `connect_production_branch`, `delete_branch_password`, `delete_production_branch_password`, `read_deploy_request`, `create_deploy_request`, `approve_deploy_request`, `read_schema_recommendations`, `close_schema_recommendations`, `read_comment`, `create_comment`, `restore_backup`, `restore_production_branch_backup`, `read_backups`, `write_backups`, `delete_backups`, `delete_production_branch_backups`, `write_branch_vschema`, `write_production_branch_vschema`
121
+ *
122
+ * **OAuth Scopes**
123
+ *
124
+ * | Resource | Scopes |
125
+ * | :------- | :---------- |
126
+ * | Organization | `read_databases` |
127
+ */
128
+ listDatabases(options) {
129
+ return (options.client ?? this._client).get({
130
+ url: "/organizations/{organization}/databases",
131
+ ...options,
132
+ });
133
+ }
134
+ /**
135
+ * Create a database
136
+ *
137
+ * ### Authorization
138
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
139
+ *
140
+ * **Service Token Accesses**
141
+ * `create_databases`
142
+ *
143
+ * **OAuth Scopes**
144
+ *
145
+ * | Resource | Scopes |
146
+ * | :------- | :---------- |
147
+ * | Organization | `create_databases` |
148
+ */
149
+ createDatabase(options) {
150
+ return (options.client ?? this._client).post({
151
+ url: "/organizations/{organization}/databases",
152
+ ...options,
153
+ headers: {
154
+ "Content-Type": "application/json",
155
+ ...options.headers,
156
+ },
157
+ });
158
+ }
159
+ /**
160
+ * List branches
161
+ *
162
+ * ### Authorization
163
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
164
+ *
165
+ * **Service Token Accesses**
166
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
167
+ *
168
+ * **OAuth Scopes**
169
+ *
170
+ * | Resource | Scopes |
171
+ * | :------- | :---------- |
172
+ * | Organization | `read_branches` |
173
+ * | Database | `read_branches` |
174
+ * | Branch | `read_branch` |
175
+ */
176
+ listBranches(options) {
177
+ return (options.client ?? this._client).get({
178
+ url: "/organizations/{organization}/databases/{database}/branches",
179
+ ...options,
180
+ });
181
+ }
182
+ /**
183
+ * Create a branch
184
+ *
185
+ * ### Authorization
186
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
187
+ *
188
+ * **Service Token Accesses**
189
+ * `create_branch`, `restore_production_branch_backup`, `restore_backup`
190
+ *
191
+ * **OAuth Scopes**
192
+ *
193
+ * | Resource | Scopes |
194
+ * | :------- | :---------- |
195
+ * | Organization | `write_branches`, `restore_production_branch_backups`, `restore_backups` |
196
+ * | Database | `write_branches`, `restore_production_branch_backups`, `restore_backups` |
197
+ * | Branch | `restore_backups` |
198
+ */
199
+ createBranch(options) {
200
+ return (options.client ?? this._client).post({
201
+ url: "/organizations/{organization}/databases/{database}/branches",
202
+ ...options,
203
+ headers: {
204
+ "Content-Type": "application/json",
205
+ ...options.headers,
206
+ },
207
+ });
208
+ }
209
+ /**
210
+ * List backups
211
+ *
212
+ * ### Authorization
213
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
214
+ *
215
+ * **Service Token Accesses**
216
+ * `read_backups`
217
+ *
218
+ * **OAuth Scopes**
219
+ *
220
+ * | Resource | Scopes |
221
+ * | :------- | :---------- |
222
+ * | Organization | `read_backups` |
223
+ * | Database | `read_backups` |
224
+ * | Branch | `read_backups` |
225
+ */
226
+ listBackups(options) {
227
+ return (options.client ?? this._client).get({
228
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/backups",
229
+ ...options,
230
+ });
231
+ }
232
+ /**
233
+ * Create a backup
234
+ *
235
+ * ### Authorization
236
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
237
+ *
238
+ * **Service Token Accesses**
239
+ * `write_backups`
240
+ *
241
+ * **OAuth Scopes**
242
+ *
243
+ * | Resource | Scopes |
244
+ * | :------- | :---------- |
245
+ * | Organization | `write_backups` |
246
+ * | Database | `write_backups` |
247
+ * | Branch | `write_backups` |
248
+ */
249
+ createBackup(options) {
250
+ return (options.client ?? this._client).post({
251
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/backups",
252
+ ...options,
253
+ headers: {
254
+ "Content-Type": "application/json",
255
+ ...options.headers,
256
+ },
257
+ });
258
+ }
259
+ /**
260
+ * Delete a backup
261
+ *
262
+ * ### Authorization
263
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
264
+ *
265
+ * **Service Token Accesses**
266
+ * `delete_backups`, `delete_production_branch_backups`
267
+ *
268
+ * **OAuth Scopes**
269
+ *
270
+ * | Resource | Scopes |
271
+ * | :------- | :---------- |
272
+ * | Organization | `delete_backups`, `delete_production_branch_backups` |
273
+ * | Database | `delete_backups`, `delete_production_branch_backups` |
274
+ * | Branch | `delete_backups` |
275
+ */
276
+ deleteBackup(options) {
277
+ return (options.client ?? this._client).delete({
278
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}",
279
+ ...options,
280
+ });
281
+ }
282
+ /**
283
+ * Get a backup
284
+ *
285
+ * ### Authorization
286
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
287
+ *
288
+ * **Service Token Accesses**
289
+ * `read_backups`
290
+ *
291
+ * **OAuth Scopes**
292
+ *
293
+ * | Resource | Scopes |
294
+ * | :------- | :---------- |
295
+ * | Organization | `read_backups` |
296
+ * | Database | `read_backups` |
297
+ * | Branch | `read_backups` |
298
+ */
299
+ getBackup(options) {
300
+ return (options.client ?? this._client).get({
301
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}",
302
+ ...options,
303
+ });
304
+ }
305
+ /**
306
+ * Update a backup
307
+ *
308
+ * ### Authorization
309
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
310
+ *
311
+ * **Service Token Accesses**
312
+ * `write_backups`
313
+ *
314
+ * **OAuth Scopes**
315
+ *
316
+ * | Resource | Scopes |
317
+ * | :------- | :---------- |
318
+ * | Organization | `write_backups` |
319
+ * | Database | `write_backups` |
320
+ * | Branch | `write_backups` |
321
+ */
322
+ updateBackup(options) {
323
+ return (options.client ?? this._client).patch({
324
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/backups/{id}",
325
+ ...options,
326
+ headers: {
327
+ "Content-Type": "application/json",
328
+ ...options.headers,
329
+ },
330
+ });
331
+ }
332
+ /**
333
+ * Get branch change requests
334
+ *
335
+ * ### Authorization
336
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
337
+ *
338
+ * **Service Token Accesses**
339
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
340
+ *
341
+ * **OAuth Scopes**
342
+ *
343
+ * | Resource | Scopes |
344
+ * | :------- | :---------- |
345
+ * | Organization | `read_branches` |
346
+ * | Database | `read_branches` |
347
+ * | Branch | `read_branch` |
348
+ */
349
+ listBranchChangeRequests(options) {
350
+ return (options.client ?? this._client).get({
351
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/changes",
352
+ ...options,
353
+ });
354
+ }
355
+ /**
356
+ * Upsert a change request
357
+ *
358
+ * ### Authorization
359
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
360
+ *
361
+ * **Service Token Accesses**
362
+ * `write_database`
363
+ *
364
+ * **OAuth Scopes**
365
+ *
366
+ * | Resource | Scopes |
367
+ * | :------- | :---------- |
368
+ * | Organization | `write_databases` |
369
+ * | Database | `write_database` |
370
+ */
371
+ updateBranchChangeRequest(options) {
372
+ return (options.client ?? this._client).patch({
373
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/changes",
374
+ ...options,
375
+ headers: {
376
+ "Content-Type": "application/json",
377
+ ...options.headers,
378
+ },
379
+ });
380
+ }
381
+ /**
382
+ * List cluster extensions
383
+ *
384
+ * ### Authorization
385
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
386
+ *
387
+ * **Service Token Accesses**
388
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
389
+ *
390
+ * **OAuth Scopes**
391
+ *
392
+ * | Resource | Scopes |
393
+ * | :------- | :---------- |
394
+ * | Organization | `read_branches` |
395
+ * | Database | `read_branches` |
396
+ * | Branch | `read_branch` |
397
+ */
398
+ listExtensions(options) {
399
+ return (options.client ?? this._client).get({
400
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/extensions",
401
+ ...options,
402
+ });
403
+ }
404
+ /**
405
+ * Get keyspaces
406
+ *
407
+ *
408
+ */
409
+ listKeyspaces(options) {
410
+ return (options.client ?? this._client).get({
411
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces",
412
+ ...options,
413
+ });
414
+ }
415
+ /**
416
+ * Create a keyspace
417
+ *
418
+ *
419
+ */
420
+ createKeyspace(options) {
421
+ return (options.client ?? this._client).post({
422
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces",
423
+ ...options,
424
+ headers: {
425
+ "Content-Type": "application/json",
426
+ ...options.headers,
427
+ },
428
+ });
429
+ }
430
+ /**
431
+ * Get the VSchema for the keyspace
432
+ *
433
+ * ### Authorization
434
+ * A service token must have at least one of the following access in order to use this API endpoint:
435
+ *
436
+ * **Service Token Accesses**
437
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
438
+ *
439
+ *
440
+ */
441
+ getKeyspaceVschema(options) {
442
+ return (options.client ?? this._client).get({
443
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema",
444
+ ...options,
445
+ });
446
+ }
447
+ /**
448
+ * Update the VSchema for the keyspace
449
+ *
450
+ * ### Authorization
451
+ * A service token must have at least one of the following access in order to use this API endpoint:
452
+ *
453
+ * **Service Token Accesses**
454
+ * `write_production_branch_vschema`, `write_branch_vschema`
455
+ *
456
+ *
457
+ */
458
+ updateKeyspaceVschema(options) {
459
+ return (options.client ?? this._client).patch({
460
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{keyspace}/vschema",
461
+ ...options,
462
+ headers: {
463
+ "Content-Type": "application/json",
464
+ ...options.headers,
465
+ },
466
+ });
467
+ }
468
+ /**
469
+ * Delete a keyspace
470
+ *
471
+ *
472
+ */
473
+ deleteKeyspace(options) {
474
+ return (options.client ?? this._client).delete({
475
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{name}",
476
+ ...options,
477
+ });
478
+ }
479
+ /**
480
+ * Get a keyspace
481
+ *
482
+ *
483
+ */
484
+ getKeyspace(options) {
485
+ return (options.client ?? this._client).get({
486
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{name}",
487
+ ...options,
488
+ });
489
+ }
490
+ /**
491
+ * Configure keyspace settings
492
+ *
493
+ *
494
+ */
495
+ updateKeyspace(options) {
496
+ return (options.client ?? this._client).patch({
497
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{name}",
498
+ ...options,
499
+ });
500
+ }
501
+ /**
502
+ * Get keyspace rollout status
503
+ *
504
+ *
505
+ */
506
+ getKeyspaceRolloutStatus(options) {
507
+ return (options.client ?? this._client).get({
508
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{name}/rollout-status",
509
+ ...options,
510
+ });
511
+ }
512
+ /**
513
+ * List cluster parameters
514
+ *
515
+ * ### Authorization
516
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
517
+ *
518
+ * **Service Token Accesses**
519
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
520
+ *
521
+ * **OAuth Scopes**
522
+ *
523
+ * | Resource | Scopes |
524
+ * | :------- | :---------- |
525
+ * | Organization | `read_branches` |
526
+ * | Database | `read_branches` |
527
+ * | Branch | `read_branch` |
528
+ */
529
+ listParameters(options) {
530
+ return (options.client ?? this._client).get({
531
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/parameters",
532
+ ...options,
533
+ });
534
+ }
535
+ /**
536
+ * List passwords
537
+ *
538
+ * ### Authorization
539
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
540
+ *
541
+ * **Service Token Accesses**
542
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
543
+ *
544
+ * **OAuth Scopes**
545
+ *
546
+ * | Resource | Scopes |
547
+ * | :------- | :---------- |
548
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
549
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
550
+ * | Branch | `manage_passwords` |
551
+ */
552
+ listPasswords(options) {
553
+ return (options.client ?? this._client).get({
554
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords",
555
+ ...options,
556
+ });
557
+ }
558
+ /**
559
+ * Create a password
560
+ *
561
+ * ### Authorization
562
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
563
+ *
564
+ * **Service Token Accesses**
565
+ * `connect_production_branch`, `connect_branch`
566
+ *
567
+ * **OAuth Scopes**
568
+ *
569
+ * | Resource | Scopes |
570
+ * | :------- | :---------- |
571
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
572
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
573
+ * | Branch | `manage_passwords` |
574
+ */
575
+ createPassword(options) {
576
+ return (options.client ?? this._client).post({
577
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords",
578
+ ...options,
579
+ headers: {
580
+ "Content-Type": "application/json",
581
+ ...options.headers,
582
+ },
583
+ });
584
+ }
585
+ /**
586
+ * Delete a password
587
+ *
588
+ * ### Authorization
589
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
590
+ *
591
+ * **Service Token Accesses**
592
+ * `delete_production_branch_password`, `delete_branch_password`
593
+ *
594
+ * **OAuth Scopes**
595
+ *
596
+ * | Resource | Scopes |
597
+ * | :------- | :---------- |
598
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
599
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
600
+ * | Branch | `manage_passwords` |
601
+ */
602
+ deletePassword(options) {
603
+ return (options.client ?? this._client).delete({
604
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}",
605
+ ...options,
606
+ });
607
+ }
608
+ /**
609
+ * Get a password
610
+ *
611
+ * ### Authorization
612
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
613
+ *
614
+ * **Service Token Accesses**
615
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
616
+ *
617
+ * **OAuth Scopes**
618
+ *
619
+ * | Resource | Scopes |
620
+ * | :------- | :---------- |
621
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
622
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
623
+ * | Branch | `manage_passwords` |
624
+ */
625
+ getPassword(options) {
626
+ return (options.client ?? this._client).get({
627
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}",
628
+ ...options,
629
+ });
630
+ }
631
+ /**
632
+ * Update a password
633
+ *
634
+ * ### Authorization
635
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
636
+ *
637
+ * **Service Token Accesses**
638
+ * `connect_production_branch`, `connect_branch`
639
+ *
640
+ * **OAuth Scopes**
641
+ *
642
+ * | Resource | Scopes |
643
+ * | :------- | :---------- |
644
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
645
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
646
+ * | Branch | `manage_passwords` |
647
+ */
648
+ updatePassword(options) {
649
+ return (options.client ?? this._client).patch({
650
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}",
651
+ ...options,
652
+ headers: {
653
+ "Content-Type": "application/json",
654
+ ...options.headers,
655
+ },
656
+ });
657
+ }
658
+ /**
659
+ * Renew a password
660
+ *
661
+ * ### Authorization
662
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
663
+ *
664
+ * **Service Token Accesses**
665
+ * `connect_production_branch`, `connect_branch`
666
+ *
667
+ * **OAuth Scopes**
668
+ *
669
+ * | Resource | Scopes |
670
+ * | :------- | :---------- |
671
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
672
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
673
+ * | Branch | `manage_passwords` |
674
+ */
675
+ renewPassword(options) {
676
+ return (options.client ?? this._client).post({
677
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/passwords/{id}/renew",
678
+ ...options,
679
+ });
680
+ }
681
+ /**
682
+ * List generated query patterns reports
683
+ *
684
+ * ### Authorization
685
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
686
+ *
687
+ * **Service Token Accesses**
688
+ * `read_branch`
689
+ *
690
+ * **OAuth Scopes**
691
+ *
692
+ * | Resource | Scopes |
693
+ * | :------- | :---------- |
694
+ * | Organization | `read_branches` |
695
+ * | Database | `read_branches` |
696
+ * | Branch | `read_branch` |
697
+ */
698
+ listGeneratedQueryPatternsReports(options) {
699
+ return (options.client ?? this._client).get({
700
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns",
701
+ ...options,
702
+ });
703
+ }
704
+ /**
705
+ * Create a new query patterns report
706
+ *
707
+ * ### Authorization
708
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
709
+ *
710
+ * **Service Token Accesses**
711
+ * `read_branch`
712
+ *
713
+ * **OAuth Scopes**
714
+ *
715
+ * | Resource | Scopes |
716
+ * | :------- | :---------- |
717
+ * | Organization | `read_branches` |
718
+ * | Database | `read_branches` |
719
+ * | Branch | `read_branch` |
720
+ */
721
+ createQueryPatternsReport(options) {
722
+ return (options.client ?? this._client).post({
723
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns",
724
+ ...options,
725
+ });
726
+ }
727
+ /**
728
+ * Delete a query patterns report
729
+ *
730
+ * ### Authorization
731
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
732
+ *
733
+ * **Service Token Accesses**
734
+ * `read_branch`
735
+ *
736
+ * **OAuth Scopes**
737
+ *
738
+ * | Resource | Scopes |
739
+ * | :------- | :---------- |
740
+ * | Organization | `read_branches` |
741
+ * | Database | `read_branches` |
742
+ * | Branch | `read_branch` |
743
+ */
744
+ deleteQueryPatternsReport(options) {
745
+ return (options.client ?? this._client).delete({
746
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}",
747
+ ...options,
748
+ });
749
+ }
750
+ /**
751
+ * Show the status of a query patterns report
752
+ *
753
+ * ### Authorization
754
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
755
+ *
756
+ * **Service Token Accesses**
757
+ * `read_branch`
758
+ *
759
+ * **OAuth Scopes**
760
+ *
761
+ * | Resource | Scopes |
762
+ * | :------- | :---------- |
763
+ * | Organization | `read_branches` |
764
+ * | Database | `read_branches` |
765
+ * | Branch | `read_branch` |
766
+ */
767
+ getQueryPatternsReportStatus(options) {
768
+ return (options.client ?? this._client).get({
769
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}",
770
+ ...options,
771
+ });
772
+ }
773
+ /**
774
+ * Download a finished query patterns report
775
+ *
776
+ * ### Authorization
777
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
778
+ *
779
+ * **Service Token Accesses**
780
+ * `read_branch`
781
+ *
782
+ * **OAuth Scopes**
783
+ *
784
+ * | Resource | Scopes |
785
+ * | :------- | :---------- |
786
+ * | Organization | `read_branches` |
787
+ * | Database | `read_branches` |
788
+ * | Branch | `read_branch` |
789
+ */
790
+ getQueryPatternsReport(options) {
791
+ return (options.client ?? this._client).get({
792
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns/{id}/download",
793
+ ...options,
794
+ });
795
+ }
796
+ /**
797
+ * Cancel a change request
798
+ *
799
+ * ### Authorization
800
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
801
+ *
802
+ * **Service Token Accesses**
803
+ * `write_database`
804
+ *
805
+ * **OAuth Scopes**
806
+ *
807
+ * | Resource | Scopes |
808
+ * | :------- | :---------- |
809
+ * | Organization | `write_databases` |
810
+ * | Database | `write_database` |
811
+ */
812
+ cancelBranchChangeRequest(options) {
813
+ return (options.client ?? this._client).delete({
814
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/resizes",
815
+ ...options,
816
+ });
817
+ }
818
+ /**
819
+ * List roles
820
+ *
821
+ * ### Authorization
822
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
823
+ *
824
+ * **Service Token Accesses**
825
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
826
+ *
827
+ * **OAuth Scopes**
828
+ *
829
+ * | Resource | Scopes |
830
+ * | :------- | :---------- |
831
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
832
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
833
+ * | Branch | `manage_passwords` |
834
+ */
835
+ listRoles(options) {
836
+ return (options.client ?? this._client).get({
837
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles",
838
+ ...options,
839
+ });
840
+ }
841
+ /**
842
+ * Create role credentials
843
+ *
844
+ * ### Authorization
845
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
846
+ *
847
+ * **Service Token Accesses**
848
+ * `create_production_branch_password`, `create_branch_password`
849
+ *
850
+ * **OAuth Scopes**
851
+ *
852
+ * | Resource | Scopes |
853
+ * | :------- | :---------- |
854
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
855
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
856
+ * | Branch | `manage_passwords` |
857
+ */
858
+ createRole(options) {
859
+ return (options.client ?? this._client).post({
860
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles",
861
+ ...options,
862
+ headers: {
863
+ "Content-Type": "application/json",
864
+ ...options.headers,
865
+ },
866
+ });
867
+ }
868
+ /**
869
+ * Delete role credentials
870
+ *
871
+ * ### Authorization
872
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
873
+ *
874
+ * **Service Token Accesses**
875
+ * `delete_production_branch_password`, `delete_branch_password`
876
+ *
877
+ * **OAuth Scopes**
878
+ *
879
+ * | Resource | Scopes |
880
+ * | :------- | :---------- |
881
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
882
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
883
+ * | Branch | `manage_passwords` |
884
+ */
885
+ deleteRole(options) {
886
+ return (options.client ?? this._client).delete({
887
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}",
888
+ ...options,
889
+ headers: {
890
+ "Content-Type": "application/json",
891
+ ...options.headers,
892
+ },
893
+ });
894
+ }
895
+ /**
896
+ * Get a role
897
+ *
898
+ * ### Authorization
899
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
900
+ *
901
+ * **Service Token Accesses**
902
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
903
+ *
904
+ * **OAuth Scopes**
905
+ *
906
+ * | Resource | Scopes |
907
+ * | :------- | :---------- |
908
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
909
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
910
+ * | Branch | `manage_passwords` |
911
+ */
912
+ getRole(options) {
913
+ return (options.client ?? this._client).get({
914
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}",
915
+ ...options,
916
+ });
917
+ }
918
+ /**
919
+ * Update role name
920
+ *
921
+ * ### Authorization
922
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
923
+ *
924
+ * **Service Token Accesses**
925
+ * `create_production_branch_password`, `create_branch_password`
926
+ *
927
+ * **OAuth Scopes**
928
+ *
929
+ * | Resource | Scopes |
930
+ * | :------- | :---------- |
931
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
932
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
933
+ * | Branch | `manage_passwords` |
934
+ */
935
+ updateRole(options) {
936
+ return (options.client ?? this._client).patch({
937
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}",
938
+ ...options,
939
+ headers: {
940
+ "Content-Type": "application/json",
941
+ ...options.headers,
942
+ },
943
+ });
944
+ }
945
+ /**
946
+ * Renew role expiration
947
+ *
948
+ * ### Authorization
949
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
950
+ *
951
+ * **Service Token Accesses**
952
+ * `create_production_branch_password`, `create_branch_password`
953
+ *
954
+ * **OAuth Scopes**
955
+ *
956
+ * | Resource | Scopes |
957
+ * | :------- | :---------- |
958
+ * | Organization | `manage_passwords`, `manage_production_branch_passwords` |
959
+ * | Database | `manage_passwords`, `manage_production_branch_passwords` |
960
+ * | Branch | `manage_passwords` |
961
+ */
962
+ renewRole(options) {
963
+ return (options.client ?? this._client).post({
964
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/roles/{id}/renew",
965
+ ...options,
966
+ });
967
+ }
968
+ /**
969
+ * Delete a branch
970
+ *
971
+ * ### Authorization
972
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
973
+ *
974
+ * **Service Token Accesses**
975
+ * `delete_branch`
976
+ *
977
+ * **OAuth Scopes**
978
+ *
979
+ * | Resource | Scopes |
980
+ * | :------- | :---------- |
981
+ * | Organization | `delete_branches`, `delete_production_branches` |
982
+ * | Database | `delete_branches`, `delete_production_branches` |
983
+ * | Branch | `delete_branch` |
984
+ */
985
+ deleteBranch(options) {
986
+ return (options.client ?? this._client).delete({
987
+ url: "/organizations/{organization}/databases/{database}/branches/{name}",
988
+ ...options,
989
+ });
990
+ }
991
+ /**
992
+ * Get a branch
993
+ *
994
+ * ### Authorization
995
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
996
+ *
997
+ * **Service Token Accesses**
998
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
999
+ *
1000
+ * **OAuth Scopes**
1001
+ *
1002
+ * | Resource | Scopes |
1003
+ * | :------- | :---------- |
1004
+ * | Organization | `read_branches` |
1005
+ * | Database | `read_branches` |
1006
+ * | Branch | `read_branch` |
1007
+ */
1008
+ getBranch(options) {
1009
+ return (options.client ?? this._client).get({
1010
+ url: "/organizations/{organization}/databases/{database}/branches/{name}",
1011
+ ...options,
1012
+ });
1013
+ }
1014
+ /**
1015
+ * Change a branch cluster configuration
1016
+ *
1017
+ * ### Authorization
1018
+ * A service token must have at least one of the following access in order to use this API endpoint:
1019
+ *
1020
+ * **Service Token Accesses**
1021
+ * `write_database`
1022
+ *
1023
+ *
1024
+ */
1025
+ updateBranchClusterConfig(options) {
1026
+ return (options.client ?? this._client).patch({
1027
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/cluster",
1028
+ ...options,
1029
+ headers: {
1030
+ "Content-Type": "application/json",
1031
+ ...options.headers,
1032
+ },
1033
+ });
1034
+ }
1035
+ /**
1036
+ * Demote a branch
1037
+ * Demotes a branch from production to development
1038
+ * ### Authorization
1039
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1040
+ *
1041
+ * **Service Token Accesses**
1042
+ * `connect_production_branch`, `demote_branches`
1043
+ *
1044
+ * **OAuth Scopes**
1045
+ *
1046
+ * | Resource | Scopes |
1047
+ * | :------- | :---------- |
1048
+ * | Organization | `demote_branches` |
1049
+ * | Database | `demote_branches` |
1050
+ */
1051
+ demoteBranch(options) {
1052
+ return (options.client ?? this._client).post({
1053
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/demote",
1054
+ ...options,
1055
+ });
1056
+ }
1057
+ /**
1058
+ * Promote a branch
1059
+ * Promotes a branch from development to production
1060
+ * ### Authorization
1061
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1062
+ *
1063
+ * **Service Token Accesses**
1064
+ * `connect_production_branch`, `promote_branches`
1065
+ *
1066
+ * **OAuth Scopes**
1067
+ *
1068
+ * | Resource | Scopes |
1069
+ * | :------- | :---------- |
1070
+ * | Organization | `promote_branches` |
1071
+ * | Database | `promote_branches` |
1072
+ */
1073
+ promoteBranch(options) {
1074
+ return (options.client ?? this._client).post({
1075
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/promote",
1076
+ ...options,
1077
+ });
1078
+ }
1079
+ /**
1080
+ * Disable safe migrations for a branch
1081
+ *
1082
+ *
1083
+ */
1084
+ disableSafeMigrations(options) {
1085
+ return (options.client ?? this._client).delete({
1086
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/safe-migrations",
1087
+ ...options,
1088
+ });
1089
+ }
1090
+ /**
1091
+ * Enable safe migrations for a branch
1092
+ *
1093
+ *
1094
+ */
1095
+ enableSafeMigrations(options) {
1096
+ return (options.client ?? this._client).post({
1097
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/safe-migrations",
1098
+ ...options,
1099
+ });
1100
+ }
1101
+ /**
1102
+ * Get a branch schema
1103
+ *
1104
+ * ### Authorization
1105
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1106
+ *
1107
+ * **Service Token Accesses**
1108
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
1109
+ *
1110
+ * **OAuth Scopes**
1111
+ *
1112
+ * | Resource | Scopes |
1113
+ * | :------- | :---------- |
1114
+ * | Organization | `read_branches` |
1115
+ * | Database | `read_branches` |
1116
+ * | Branch | `read_branch` |
1117
+ */
1118
+ getBranchSchema(options) {
1119
+ return (options.client ?? this._client).get({
1120
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/schema",
1121
+ ...options,
1122
+ });
1123
+ }
1124
+ /**
1125
+ * Lint a branch schema
1126
+ *
1127
+ * ### Authorization
1128
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1129
+ *
1130
+ * **Service Token Accesses**
1131
+ * `read_branch`, `delete_branch`, `create_branch`, `connect_production_branch`, `connect_branch`
1132
+ *
1133
+ * **OAuth Scopes**
1134
+ *
1135
+ * | Resource | Scopes |
1136
+ * | :------- | :---------- |
1137
+ * | Organization | `read_branches` |
1138
+ * | Database | `read_branches` |
1139
+ * | Branch | `read_branch` |
1140
+ */
1141
+ lintBranchSchema(options) {
1142
+ return (options.client ?? this._client).get({
1143
+ url: "/organizations/{organization}/databases/{database}/branches/{name}/schema/lint",
1144
+ ...options,
1145
+ });
1146
+ }
1147
+ /**
1148
+ * Get the deploy queue
1149
+ * The deploy queue returns the current list of deploy requests in the order they will be deployed.
1150
+ *
1151
+ */
1152
+ getDeployQueue(options) {
1153
+ return (options.client ?? this._client).get({
1154
+ url: "/organizations/{organization}/databases/{database}/deploy-queue",
1155
+ ...options,
1156
+ });
1157
+ }
1158
+ /**
1159
+ * List deploy requests
1160
+ * List deploy requests for a database
1161
+ * ### Authorization
1162
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1163
+ *
1164
+ * **Service Token Accesses**
1165
+ * `read_deploy_request`
1166
+ *
1167
+ * **OAuth Scopes**
1168
+ *
1169
+ * | Resource | Scopes |
1170
+ * | :------- | :---------- |
1171
+ * | Organization | `read_deploy_requests` |
1172
+ * | Database | `read_deploy_requests` |
1173
+ */
1174
+ listDeployRequests(options) {
1175
+ return (options.client ?? this._client).get({
1176
+ url: "/organizations/{organization}/databases/{database}/deploy-requests",
1177
+ ...options,
1178
+ });
1179
+ }
1180
+ /**
1181
+ * Create a deploy request
1182
+ *
1183
+ * ### Authorization
1184
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1185
+ *
1186
+ * **Service Token Accesses**
1187
+ * `read_deploy_request`, `create_deploy_requests`
1188
+ *
1189
+ * **OAuth Scopes**
1190
+ *
1191
+ * | Resource | Scopes |
1192
+ * | :------- | :---------- |
1193
+ * | Organization | `write_deploy_requests` |
1194
+ * | Database | `write_deploy_requests` |
1195
+ */
1196
+ createDeployRequest(options) {
1197
+ return (options.client ?? this._client).post({
1198
+ url: "/organizations/{organization}/databases/{database}/deploy-requests",
1199
+ ...options,
1200
+ headers: {
1201
+ "Content-Type": "application/json",
1202
+ ...options.headers,
1203
+ },
1204
+ });
1205
+ }
1206
+ /**
1207
+ * Get a deploy request
1208
+ *
1209
+ * ### Authorization
1210
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1211
+ *
1212
+ * **Service Token Accesses**
1213
+ * `read_deploy_request`
1214
+ *
1215
+ * **OAuth Scopes**
1216
+ *
1217
+ * | Resource | Scopes |
1218
+ * | :------- | :---------- |
1219
+ * | Organization | `read_deploy_requests` |
1220
+ * | Database | `read_deploy_requests` |
1221
+ */
1222
+ getDeployRequest(options) {
1223
+ return (options.client ?? this._client).get({
1224
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}",
1225
+ ...options,
1226
+ });
1227
+ }
1228
+ /**
1229
+ * Close a deploy request
1230
+ *
1231
+ * ### Authorization
1232
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1233
+ *
1234
+ * **Service Token Accesses**
1235
+ * `read_deploy_request`
1236
+ *
1237
+ * **OAuth Scopes**
1238
+ *
1239
+ * | Resource | Scopes |
1240
+ * | :------- | :---------- |
1241
+ * | Organization | `write_deploy_requests` |
1242
+ * | Database | `write_deploy_requests` |
1243
+ */
1244
+ closeDeployRequest(options) {
1245
+ return (options.client ?? this._client).patch({
1246
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}",
1247
+ ...options,
1248
+ headers: {
1249
+ "Content-Type": "application/json",
1250
+ ...options.headers,
1251
+ },
1252
+ });
1253
+ }
1254
+ /**
1255
+ * Complete a gated deploy request
1256
+ *
1257
+ * ### Authorization
1258
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1259
+ *
1260
+ * **Service Token Accesses**
1261
+ * `read_deploy_request`, `create_deploy_request`
1262
+ *
1263
+ * **OAuth Scopes**
1264
+ *
1265
+ * | Resource | Scopes |
1266
+ * | :------- | :---------- |
1267
+ * | Organization | `deploy_deploy_requests` |
1268
+ * | Database | `deploy_deploy_requests` |
1269
+ */
1270
+ completeGatedDeployRequest(options) {
1271
+ return (options.client ?? this._client).post({
1272
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/apply-deploy",
1273
+ ...options,
1274
+ });
1275
+ }
1276
+ /**
1277
+ * Update auto-apply for deploy request
1278
+ * Enables or disabled the auto-apply setting for a deploy request
1279
+ * ### Authorization
1280
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1281
+ *
1282
+ * **Service Token Accesses**
1283
+ * `read_deploy_request`, `create_deploy_request`
1284
+ *
1285
+ * **OAuth Scopes**
1286
+ *
1287
+ * | Resource | Scopes |
1288
+ * | :------- | :---------- |
1289
+ * | Organization | `deploy_deploy_requests` |
1290
+ * | Database | `deploy_deploy_requests` |
1291
+ */
1292
+ updateAutoApply(options) {
1293
+ return (options.client ?? this._client).put({
1294
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/auto-apply",
1295
+ ...options,
1296
+ headers: {
1297
+ "Content-Type": "application/json",
1298
+ ...options.headers,
1299
+ },
1300
+ });
1301
+ }
1302
+ /**
1303
+ * Cancel a queued deploy request
1304
+ *
1305
+ * ### Authorization
1306
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1307
+ *
1308
+ * **Service Token Accesses**
1309
+ * `read_deploy_request`, `create_deploy_request`
1310
+ *
1311
+ * **OAuth Scopes**
1312
+ *
1313
+ * | Resource | Scopes |
1314
+ * | :------- | :---------- |
1315
+ * | Organization | `deploy_deploy_requests` |
1316
+ * | Database | `deploy_deploy_requests` |
1317
+ */
1318
+ cancelDeployRequest(options) {
1319
+ return (options.client ?? this._client).post({
1320
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/cancel",
1321
+ ...options,
1322
+ });
1323
+ }
1324
+ /**
1325
+ * Complete an errored deploy
1326
+ *
1327
+ * ### Authorization
1328
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1329
+ *
1330
+ * **Service Token Accesses**
1331
+ * `read_deploy_request`, `create_deploy_request`
1332
+ *
1333
+ * **OAuth Scopes**
1334
+ *
1335
+ * | Resource | Scopes |
1336
+ * | :------- | :---------- |
1337
+ * | Organization | `deploy_deploy_requests` |
1338
+ * | Database | `deploy_deploy_requests` |
1339
+ */
1340
+ completeErroredDeploy(options) {
1341
+ return (options.client ?? this._client).post({
1342
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/complete-deploy",
1343
+ ...options,
1344
+ });
1345
+ }
1346
+ /**
1347
+ * Queue a deploy request
1348
+ *
1349
+ * ### Authorization
1350
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1351
+ *
1352
+ * **Service Token Accesses**
1353
+ * `read_deploy_request`, `create_deploy_request`
1354
+ *
1355
+ * **OAuth Scopes**
1356
+ *
1357
+ * | Resource | Scopes |
1358
+ * | :------- | :---------- |
1359
+ * | Organization | `deploy_deploy_requests` |
1360
+ * | Database | `deploy_deploy_requests` |
1361
+ */
1362
+ queueDeployRequest(options) {
1363
+ return (options.client ?? this._client).post({
1364
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/deploy",
1365
+ ...options,
1366
+ headers: {
1367
+ "Content-Type": "application/json",
1368
+ ...options.headers,
1369
+ },
1370
+ });
1371
+ }
1372
+ /**
1373
+ * Get a deployment
1374
+ * Get the deployment for a deploy request
1375
+ * ### Authorization
1376
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1377
+ *
1378
+ * **Service Token Accesses**
1379
+ * `read_deploy_request`
1380
+ *
1381
+ * **OAuth Scopes**
1382
+ *
1383
+ * | Resource | Scopes |
1384
+ * | :------- | :---------- |
1385
+ * | Organization | `read_deploy_requests` |
1386
+ * | Database | `read_deploy_requests` |
1387
+ */
1388
+ getDeployment(options) {
1389
+ return (options.client ?? this._client).get({
1390
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/deployment",
1391
+ ...options,
1392
+ });
1393
+ }
1394
+ /**
1395
+ * List deploy operations
1396
+ * List deploy operations for a deploy request
1397
+ * ### Authorization
1398
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1399
+ *
1400
+ * **Service Token Accesses**
1401
+ * `read_deploy_request`
1402
+ *
1403
+ * **OAuth Scopes**
1404
+ *
1405
+ * | Resource | Scopes |
1406
+ * | :------- | :---------- |
1407
+ * | Organization | `read_deploy_requests` |
1408
+ * | Database | `read_deploy_requests` |
1409
+ */
1410
+ listDeployOperations(options) {
1411
+ return (options.client ?? this._client).get({
1412
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/operations",
1413
+ ...options,
1414
+ });
1415
+ }
1416
+ /**
1417
+ * Complete a revert
1418
+ *
1419
+ * ### Authorization
1420
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1421
+ *
1422
+ * **Service Token Accesses**
1423
+ * `read_deploy_request`, `create_deploy_request`
1424
+ *
1425
+ * **OAuth Scopes**
1426
+ *
1427
+ * | Resource | Scopes |
1428
+ * | :------- | :---------- |
1429
+ * | Organization | `deploy_deploy_requests` |
1430
+ * | Database | `deploy_deploy_requests` |
1431
+ */
1432
+ completeRevert(options) {
1433
+ return (options.client ?? this._client).post({
1434
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/revert",
1435
+ ...options,
1436
+ });
1437
+ }
1438
+ /**
1439
+ * List deploy request reviews
1440
+ *
1441
+ * ### Authorization
1442
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1443
+ *
1444
+ * **Service Token Accesses**
1445
+ * `read_deploy_request`
1446
+ *
1447
+ * **OAuth Scopes**
1448
+ *
1449
+ * | Resource | Scopes |
1450
+ * | :------- | :---------- |
1451
+ * | Organization | `read_deploy_requests` |
1452
+ * | Database | `read_deploy_requests` |
1453
+ */
1454
+ listDeployRequestReviews(options) {
1455
+ return (options.client ?? this._client).get({
1456
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews",
1457
+ ...options,
1458
+ });
1459
+ }
1460
+ /**
1461
+ * Review a deploy request
1462
+ * Review a deploy request by either approving or commenting on the deploy request
1463
+ * ### Authorization
1464
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1465
+ *
1466
+ * **Service Token Accesses**
1467
+ * `approve_deploy_request`, `review_deploy_request`
1468
+ *
1469
+ * **OAuth Scopes**
1470
+ *
1471
+ * | Resource | Scopes |
1472
+ * | :------- | :---------- |
1473
+ * | Organization | `approve_deploy_requests` |
1474
+ * | Database | `approve_deploy_requests` |
1475
+ */
1476
+ reviewDeployRequest(options) {
1477
+ return (options.client ?? this._client).post({
1478
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/reviews",
1479
+ ...options,
1480
+ headers: {
1481
+ "Content-Type": "application/json",
1482
+ ...options.headers,
1483
+ },
1484
+ });
1485
+ }
1486
+ /**
1487
+ * Skip revert period
1488
+ * Skips the revert period for a deploy request
1489
+ * ### Authorization
1490
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1491
+ *
1492
+ * **Service Token Accesses**
1493
+ * `read_deploy_request`, `create_deploy_request`
1494
+ *
1495
+ * **OAuth Scopes**
1496
+ *
1497
+ * | Resource | Scopes |
1498
+ * | :------- | :---------- |
1499
+ * | Organization | `deploy_deploy_requests` |
1500
+ * | Database | `deploy_deploy_requests` |
1501
+ */
1502
+ skipRevertPeriod(options) {
1503
+ return (options.client ?? this._client).post({
1504
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/skip-revert",
1505
+ ...options,
1506
+ });
1507
+ }
1508
+ /**
1509
+ * Get deploy request throttler configurations
1510
+ *
1511
+ * ### Authorization
1512
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1513
+ *
1514
+ * **Service Token Accesses**
1515
+ * `read_deploy_request`
1516
+ *
1517
+ * **OAuth Scopes**
1518
+ *
1519
+ * | Resource | Scopes |
1520
+ * | :------- | :---------- |
1521
+ * | Organization | `read_deploy_requests` |
1522
+ * | Database | `read_deploy_requests` |
1523
+ */
1524
+ getDeployRequestThrottler(options) {
1525
+ return (options.client ?? this._client).get({
1526
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler",
1527
+ ...options,
1528
+ });
1529
+ }
1530
+ /**
1531
+ * Update deploy request throttler configurations
1532
+ *
1533
+ * ### Authorization
1534
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1535
+ *
1536
+ * **Service Token Accesses**
1537
+ * `read_deploy_request`, `create_deploy_request`
1538
+ *
1539
+ * **OAuth Scopes**
1540
+ *
1541
+ * | Resource | Scopes |
1542
+ * | :------- | :---------- |
1543
+ * | Organization | `deploy_deploy_requests` |
1544
+ * | Database | `deploy_deploy_requests` |
1545
+ */
1546
+ updateDeployRequestThrottler(options) {
1547
+ return (options.client ?? this._client).patch({
1548
+ url: "/organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler",
1549
+ ...options,
1550
+ headers: {
1551
+ "Content-Type": "application/json",
1552
+ ...options.headers,
1553
+ },
1554
+ });
1555
+ }
1556
+ /**
1557
+ * Get database throttler configurations
1558
+ *
1559
+ * ### Authorization
1560
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1561
+ *
1562
+ * **Service Token Accesses**
1563
+ * `read_deploy_request`, `create_deploy_request`
1564
+ *
1565
+ * **OAuth Scopes**
1566
+ *
1567
+ * | Resource | Scopes |
1568
+ * | :------- | :---------- |
1569
+ * | Organization | `read_databases` |
1570
+ * | Database | `read_database` |
1571
+ */
1572
+ getDatabaseThrottler(options) {
1573
+ return (options.client ?? this._client).get({
1574
+ url: "/organizations/{organization}/databases/{database}/throttler",
1575
+ ...options,
1576
+ });
1577
+ }
1578
+ /**
1579
+ * Update database throttler configurations
1580
+ *
1581
+ * ### Authorization
1582
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1583
+ *
1584
+ * **Service Token Accesses**
1585
+ * `read_deploy_request`, `create_deploy_request`
1586
+ *
1587
+ * **OAuth Scopes**
1588
+ *
1589
+ * | Resource | Scopes |
1590
+ * | :------- | :---------- |
1591
+ * | Organization | `deploy_deploy_requests` |
1592
+ * | Database | `deploy_deploy_requests` |
1593
+ */
1594
+ updateDatabaseThrottler(options) {
1595
+ return (options.client ?? this._client).patch({
1596
+ url: "/organizations/{organization}/databases/{database}/throttler",
1597
+ ...options,
1598
+ headers: {
1599
+ "Content-Type": "application/json",
1600
+ ...options.headers,
1601
+ },
1602
+ });
1603
+ }
1604
+ /**
1605
+ * List webhooks
1606
+ * List webhooks for a database
1607
+ * ### Authorization
1608
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1609
+ *
1610
+ * **Service Token Accesses**
1611
+ * `read_database`
1612
+ *
1613
+ * **OAuth Scopes**
1614
+ *
1615
+ * | Resource | Scopes |
1616
+ * | :------- | :---------- |
1617
+ * | Organization | `read_databases` |
1618
+ * | Database | `read_database` |
1619
+ */
1620
+ listWebhooks(options) {
1621
+ return (options.client ?? this._client).get({
1622
+ url: "/organizations/{organization}/databases/{database}/webhooks",
1623
+ ...options,
1624
+ });
1625
+ }
1626
+ /**
1627
+ * Create a webhook
1628
+ *
1629
+ * ### Authorization
1630
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1631
+ *
1632
+ * **Service Token Accesses**
1633
+ * `write_database`
1634
+ *
1635
+ * **OAuth Scopes**
1636
+ *
1637
+ * | Resource | Scopes |
1638
+ * | :------- | :---------- |
1639
+ * | Organization | `write_databases` |
1640
+ * | Database | `write_database` |
1641
+ */
1642
+ createWebhook(options) {
1643
+ return (options.client ?? this._client).post({
1644
+ url: "/organizations/{organization}/databases/{database}/webhooks",
1645
+ ...options,
1646
+ headers: {
1647
+ "Content-Type": "application/json",
1648
+ ...options.headers,
1649
+ },
1650
+ });
1651
+ }
1652
+ /**
1653
+ * Delete a webhook
1654
+ *
1655
+ * ### Authorization
1656
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1657
+ *
1658
+ * **Service Token Accesses**
1659
+ * `write_database`
1660
+ *
1661
+ * **OAuth Scopes**
1662
+ *
1663
+ * | Resource | Scopes |
1664
+ * | :------- | :---------- |
1665
+ * | Organization | `write_databases` |
1666
+ * | Database | `write_database` |
1667
+ */
1668
+ deleteWebhook(options) {
1669
+ return (options.client ?? this._client).delete({
1670
+ url: "/organizations/{organization}/databases/{database}/webhooks/{id}",
1671
+ ...options,
1672
+ });
1673
+ }
1674
+ /**
1675
+ * Get a webhook
1676
+ *
1677
+ * ### Authorization
1678
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1679
+ *
1680
+ * **Service Token Accesses**
1681
+ * `read_database`
1682
+ *
1683
+ * **OAuth Scopes**
1684
+ *
1685
+ * | Resource | Scopes |
1686
+ * | :------- | :---------- |
1687
+ * | Organization | `read_databases` |
1688
+ * | Database | `read_database` |
1689
+ */
1690
+ getWebhook(options) {
1691
+ return (options.client ?? this._client).get({
1692
+ url: "/organizations/{organization}/databases/{database}/webhooks/{id}",
1693
+ ...options,
1694
+ });
1695
+ }
1696
+ /**
1697
+ * Update a webhook
1698
+ *
1699
+ * ### Authorization
1700
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1701
+ *
1702
+ * **Service Token Accesses**
1703
+ * `write_database`
1704
+ *
1705
+ * **OAuth Scopes**
1706
+ *
1707
+ * | Resource | Scopes |
1708
+ * | :------- | :---------- |
1709
+ * | Organization | `write_databases` |
1710
+ * | Database | `write_database` |
1711
+ */
1712
+ updateWebhook(options) {
1713
+ return (options.client ?? this._client).patch({
1714
+ url: "/organizations/{organization}/databases/{database}/webhooks/{id}",
1715
+ ...options,
1716
+ headers: {
1717
+ "Content-Type": "application/json",
1718
+ ...options.headers,
1719
+ },
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Test a webhook
1724
+ * Sends a test event to the webhook
1725
+ * ### Authorization
1726
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1727
+ *
1728
+ * **Service Token Accesses**
1729
+ * `write_database`
1730
+ *
1731
+ * **OAuth Scopes**
1732
+ *
1733
+ * | Resource | Scopes |
1734
+ * | :------- | :---------- |
1735
+ * | Organization | `write_databases` |
1736
+ * | Database | `write_database` |
1737
+ */
1738
+ testWebhook(options) {
1739
+ return (options.client ?? this._client).post({
1740
+ url: "/organizations/{organization}/databases/{database}/webhooks/{id}/test",
1741
+ ...options,
1742
+ });
1743
+ }
1744
+ /**
1745
+ * List workflows
1746
+ *
1747
+ *
1748
+ */
1749
+ listWorkflows(options) {
1750
+ return (options.client ?? this._client).get({
1751
+ url: "/organizations/{organization}/databases/{database}/workflows",
1752
+ ...options,
1753
+ });
1754
+ }
1755
+ /**
1756
+ * Create a workflow
1757
+ *
1758
+ *
1759
+ */
1760
+ createWorkflow(options) {
1761
+ return (options.client ?? this._client).post({
1762
+ url: "/organizations/{organization}/databases/{database}/workflows",
1763
+ ...options,
1764
+ headers: {
1765
+ "Content-Type": "application/json",
1766
+ ...options.headers,
1767
+ },
1768
+ });
1769
+ }
1770
+ /**
1771
+ * Cancel a workflow
1772
+ *
1773
+ *
1774
+ */
1775
+ workflowCancel(options) {
1776
+ return (options.client ?? this._client).delete({
1777
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}",
1778
+ ...options,
1779
+ });
1780
+ }
1781
+ /**
1782
+ * Get a workflow
1783
+ *
1784
+ *
1785
+ */
1786
+ getWorkflow(options) {
1787
+ return (options.client ?? this._client).get({
1788
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}",
1789
+ ...options,
1790
+ });
1791
+ }
1792
+ /**
1793
+ * Complete a workflow
1794
+ *
1795
+ *
1796
+ */
1797
+ workflowComplete(options) {
1798
+ return (options.client ?? this._client).patch({
1799
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/complete",
1800
+ ...options,
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Cutover traffic
1805
+ *
1806
+ *
1807
+ */
1808
+ workflowCutover(options) {
1809
+ return (options.client ?? this._client).patch({
1810
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/cutover",
1811
+ ...options,
1812
+ });
1813
+ }
1814
+ /**
1815
+ * Retry a failed workflow
1816
+ *
1817
+ *
1818
+ */
1819
+ workflowRetry(options) {
1820
+ return (options.client ?? this._client).patch({
1821
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/retry",
1822
+ ...options,
1823
+ });
1824
+ }
1825
+ /**
1826
+ * Reverse traffic cutover
1827
+ *
1828
+ *
1829
+ */
1830
+ workflowReverseCutover(options) {
1831
+ return (options.client ?? this._client).patch({
1832
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/reverse-cutover",
1833
+ ...options,
1834
+ });
1835
+ }
1836
+ /**
1837
+ * Reverse traffic
1838
+ *
1839
+ *
1840
+ */
1841
+ workflowReverseTraffic(options) {
1842
+ return (options.client ?? this._client).patch({
1843
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/reverse-traffic",
1844
+ ...options,
1845
+ });
1846
+ }
1847
+ /**
1848
+ * Switch primary traffic
1849
+ *
1850
+ *
1851
+ */
1852
+ workflowSwitchPrimaries(options) {
1853
+ return (options.client ?? this._client).patch({
1854
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/switch-primaries",
1855
+ ...options,
1856
+ });
1857
+ }
1858
+ /**
1859
+ * Switch replica traffic
1860
+ *
1861
+ *
1862
+ */
1863
+ workflowSwitchReplicas(options) {
1864
+ return (options.client ?? this._client).patch({
1865
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/switch-replicas",
1866
+ ...options,
1867
+ });
1868
+ }
1869
+ /**
1870
+ * Verify workflow data
1871
+ *
1872
+ *
1873
+ */
1874
+ verifyWorkflow(options) {
1875
+ return (options.client ?? this._client).patch({
1876
+ url: "/organizations/{organization}/databases/{database}/workflows/{number}/verify-data",
1877
+ ...options,
1878
+ });
1879
+ }
1880
+ /**
1881
+ * Delete a database
1882
+ *
1883
+ * ### Authorization
1884
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1885
+ *
1886
+ * **Service Token Accesses**
1887
+ * `delete_database`
1888
+ *
1889
+ * **OAuth Scopes**
1890
+ *
1891
+ * | Resource | Scopes |
1892
+ * | :------- | :---------- |
1893
+ * | Organization | `delete_databases` |
1894
+ * | Database | `delete_database` |
1895
+ */
1896
+ deleteDatabase(options) {
1897
+ return (options.client ?? this._client).delete({
1898
+ url: "/organizations/{organization}/databases/{name}",
1899
+ ...options,
1900
+ });
1901
+ }
1902
+ /**
1903
+ * Get a database
1904
+ *
1905
+ * ### Authorization
1906
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1907
+ *
1908
+ * **Service Token Accesses**
1909
+ * `read_database`, `delete_database`, `write_database`, `read_branch`, `delete_branch`, `create_branch`, `delete_production_branch`, `connect_branch`, `connect_production_branch`, `delete_branch_password`, `delete_production_branch_password`, `read_deploy_request`, `create_deploy_request`, `approve_deploy_request`, `read_schema_recommendations`, `close_schema_recommendations`, `read_comment`, `create_comment`, `restore_backup`, `restore_production_branch_backup`, `read_backups`, `write_backups`, `delete_backups`, `delete_production_branch_backups`, `write_branch_vschema`, `write_production_branch_vschema`
1910
+ *
1911
+ * **OAuth Scopes**
1912
+ *
1913
+ * | Resource | Scopes |
1914
+ * | :------- | :---------- |
1915
+ * | Organization | `read_databases` |
1916
+ * | Database | `read_database` |
1917
+ */
1918
+ getDatabase(options) {
1919
+ return (options.client ?? this._client).get({
1920
+ url: "/organizations/{organization}/databases/{name}",
1921
+ ...options,
1922
+ });
1923
+ }
1924
+ /**
1925
+ * Update database settings
1926
+ *
1927
+ * ### Authorization
1928
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1929
+ *
1930
+ * **Service Token Accesses**
1931
+ * `write_database`
1932
+ *
1933
+ * **OAuth Scopes**
1934
+ *
1935
+ * | Resource | Scopes |
1936
+ * | :------- | :---------- |
1937
+ * | Organization | `write_databases` |
1938
+ * | Database | `write_database` |
1939
+ */
1940
+ updateDatabaseSettings(options) {
1941
+ return (options.client ?? this._client).patch({
1942
+ url: "/organizations/{organization}/databases/{name}",
1943
+ ...options,
1944
+ headers: {
1945
+ "Content-Type": "application/json",
1946
+ ...options.headers,
1947
+ },
1948
+ });
1949
+ }
1950
+ /**
1951
+ * List read-only regions
1952
+ * List read-only regions for the database's default branch
1953
+ * ### Authorization
1954
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1955
+ *
1956
+ * **Service Token Accesses**
1957
+ * `read_database`, `delete_database`, `write_database`, `read_branch`, `delete_branch`, `create_branch`, `delete_production_branch`, `connect_branch`, `connect_production_branch`, `delete_branch_password`, `delete_production_branch_password`, `read_deploy_request`, `create_deploy_request`, `approve_deploy_request`, `read_schema_recommendations`, `close_schema_recommendations`, `read_comment`, `create_comment`, `restore_backup`, `restore_production_branch_backup`, `read_backups`, `write_backups`, `delete_backups`, `delete_production_branch_backups`, `write_branch_vschema`, `write_production_branch_vschema`
1958
+ *
1959
+ * **OAuth Scopes**
1960
+ *
1961
+ * | Resource | Scopes |
1962
+ * | :------- | :---------- |
1963
+ * | Organization | `read_branches` |
1964
+ * | Database | `read_branches` |
1965
+ */
1966
+ listReadOnlyRegions(options) {
1967
+ return (options.client ?? this._client).get({
1968
+ url: "/organizations/{organization}/databases/{name}/read-only-regions",
1969
+ ...options,
1970
+ });
1971
+ }
1972
+ /**
1973
+ * List database regions
1974
+ *
1975
+ * ### Authorization
1976
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1977
+ *
1978
+ * **Service Token Accesses**
1979
+ * `read_database`, `delete_database`, `write_database`, `read_branch`, `delete_branch`, `create_branch`, `delete_production_branch`, `connect_branch`, `connect_production_branch`, `delete_branch_password`, `delete_production_branch_password`, `read_deploy_request`, `create_deploy_request`, `approve_deploy_request`, `read_schema_recommendations`, `close_schema_recommendations`, `read_comment`, `create_comment`, `restore_backup`, `restore_production_branch_backup`, `read_backups`, `write_backups`, `delete_backups`, `delete_production_branch_backups`, `write_branch_vschema`, `write_production_branch_vschema`
1980
+ *
1981
+ * **OAuth Scopes**
1982
+ *
1983
+ * | Resource | Scopes |
1984
+ * | :------- | :---------- |
1985
+ * | Organization | `read_databases` |
1986
+ * | Database | `read_database` |
1987
+ */
1988
+ listDatabaseRegions(options) {
1989
+ return (options.client ?? this._client).get({
1990
+ url: "/organizations/{organization}/databases/{name}/regions",
1991
+ ...options,
1992
+ });
1993
+ }
1994
+ /**
1995
+ * Get invoices
1996
+ * Get the invoices for an organization
1997
+ * ### Authorization
1998
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
1999
+ *
2000
+ * **Service Token Accesses**
2001
+ * `read_invoices`
2002
+ *
2003
+ * **OAuth Scopes**
2004
+ *
2005
+ * | Resource | Scopes |
2006
+ * | :------- | :---------- |
2007
+ * | Organization | `read_invoices` |
2008
+ */
2009
+ listInvoices(options) {
2010
+ return (options.client ?? this._client).get({
2011
+ url: "/organizations/{organization}/invoices",
2012
+ ...options,
2013
+ });
2014
+ }
2015
+ /**
2016
+ * Get an invoice
2017
+ *
2018
+ * ### Authorization
2019
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
2020
+ *
2021
+ * **Service Token Accesses**
2022
+ * `read_invoices`
2023
+ *
2024
+ * **OAuth Scopes**
2025
+ *
2026
+ * | Resource | Scopes |
2027
+ * | :------- | :---------- |
2028
+ * | Organization | `read_invoices` |
2029
+ */
2030
+ getInvoice(options) {
2031
+ return (options.client ?? this._client).get({
2032
+ url: "/organizations/{organization}/invoices/{id}",
2033
+ ...options,
2034
+ });
2035
+ }
2036
+ /**
2037
+ * Get invoice line items
2038
+ * Get the line items for an invoice
2039
+ * ### Authorization
2040
+ * A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
2041
+ *
2042
+ * **Service Token Accesses**
2043
+ * `read_invoices`
2044
+ *
2045
+ * **OAuth Scopes**
2046
+ *
2047
+ * | Resource | Scopes |
2048
+ * | :------- | :---------- |
2049
+ * | Organization | `read_invoices` |
2050
+ */
2051
+ getInvoiceLineItems(options) {
2052
+ return (options.client ?? this._client).get({
2053
+ url: "/organizations/{organization}/invoices/{id}/line-items",
2054
+ ...options,
2055
+ });
2056
+ }
2057
+ /**
2058
+ * List organization members
2059
+ *
2060
+ * ### Authorization
2061
+ * A service token must have at least one of the following access in order to use this API endpoint:
2062
+ *
2063
+ * **Service Token Accesses**
2064
+ * `read_organization`
2065
+ *
2066
+ *
2067
+ */
2068
+ listOrganizationMembers(options) {
2069
+ return (options.client ?? this._client).get({
2070
+ url: "/organizations/{organization}/members",
2071
+ ...options,
2072
+ });
2073
+ }
2074
+ /**
2075
+ * List OAuth applications
2076
+ *
2077
+ * ### Authorization
2078
+ * A service token must have at least one of the following access in order to use this API endpoint:
2079
+ *
2080
+ * **Service Token Accesses**
2081
+ * `read_oauth_applications`
2082
+ *
2083
+ *
2084
+ */
2085
+ listOauthApplications(options) {
2086
+ return (options.client ?? this._client).get({
2087
+ url: "/organizations/{organization}/oauth-applications",
2088
+ ...options,
2089
+ });
2090
+ }
2091
+ /**
2092
+ * Get an OAuth application
2093
+ *
2094
+ * ### Authorization
2095
+ * A service token must have at least one of the following access in order to use this API endpoint:
2096
+ *
2097
+ * **Service Token Accesses**
2098
+ * `read_oauth_applications`
2099
+ *
2100
+ *
2101
+ */
2102
+ getOauthApplication(options) {
2103
+ return (options.client ?? this._client).get({
2104
+ url: "/organizations/{organization}/oauth-applications/{application_id}",
2105
+ ...options,
2106
+ });
2107
+ }
2108
+ /**
2109
+ * List OAuth tokens
2110
+ * List OAuth tokens created by an OAuth application
2111
+ * ### Authorization
2112
+ * A service token must have at least one of the following access in order to use this API endpoint:
2113
+ *
2114
+ * **Service Token Accesses**
2115
+ * `read_oauth_tokens`
2116
+ *
2117
+ *
2118
+ */
2119
+ listOauthTokens(options) {
2120
+ return (options.client ?? this._client).get({
2121
+ url: "/organizations/{organization}/oauth-applications/{application_id}/tokens",
2122
+ ...options,
2123
+ });
2124
+ }
2125
+ /**
2126
+ * Delete an OAuth token
2127
+ *
2128
+ * ### Authorization
2129
+ * A service token must have at least one of the following access in order to use this API endpoint:
2130
+ *
2131
+ * **Service Token Accesses**
2132
+ * `delete_oauth_tokens`
2133
+ *
2134
+ *
2135
+ */
2136
+ deleteOauthToken(options) {
2137
+ return (options.client ?? this._client).delete({
2138
+ url: "/organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}",
2139
+ ...options,
2140
+ });
2141
+ }
2142
+ /**
2143
+ * Get an OAuth token
2144
+ *
2145
+ * ### Authorization
2146
+ * A service token must have at least one of the following access in order to use this API endpoint:
2147
+ *
2148
+ * **Service Token Accesses**
2149
+ * `read_oauth_tokens`
2150
+ *
2151
+ *
2152
+ */
2153
+ getOauthToken(options) {
2154
+ return (options.client ?? this._client).get({
2155
+ url: "/organizations/{organization}/oauth-applications/{application_id}/tokens/{token_id}",
2156
+ ...options,
2157
+ });
2158
+ }
2159
+ /**
2160
+ * Create or renew an OAuth token
2161
+ * Create an OAuth token from an authorization grant code, or refresh an OAuth token from a refresh token
2162
+ * ### Authorization
2163
+ * A service token must have at least one of the following access in order to use this API endpoint:
2164
+ *
2165
+ * **Service Token Accesses**
2166
+ * `write_oauth_tokens`
2167
+ *
2168
+ *
2169
+ */
2170
+ createOauthToken(options) {
2171
+ return (options.client ?? this._client).post({
2172
+ url: "/organizations/{organization}/oauth-applications/{id}/token",
2173
+ ...options,
2174
+ headers: {
2175
+ "Content-Type": "application/json",
2176
+ ...options.headers,
2177
+ },
2178
+ });
2179
+ }
2180
+ /**
2181
+ * List public regions
2182
+ * Endpoint is available without authentication.
2183
+ *
2184
+ */
2185
+ listPublicRegions(options) {
2186
+ return (options?.client ?? this._client).get({
2187
+ url: "/regions",
2188
+ ...options,
2189
+ });
2190
+ }
2191
+ /**
2192
+ * Get current user
2193
+ * Get the user associated with this service token
2194
+ * ### Authorization
2195
+ * A OAuth token must have at least one of the following scopes in order to use this API endpoint:
2196
+ *
2197
+ * **OAuth Scopes**
2198
+ *
2199
+ * | Resource | Scopes |
2200
+ * | :------- | :---------- |
2201
+ * | User | `read_user` |
2202
+ */
2203
+ getCurrentUser(options) {
2204
+ return (options?.client ?? this._client).get({
2205
+ url: "/user",
2206
+ ...options,
2207
+ });
2208
+ }
2209
+ /**
2210
+ * List keyspace resizes
2211
+ */
2212
+ listKeyspaceResizes(options) {
2213
+ return (options.client ?? this._client).get({
2214
+ url: "/organizations/{organization}/databases/{database}/branches/{branch}/keyspaces/{name}/resizes",
2215
+ ...options,
2216
+ });
2217
+ }
2218
+ }
2219
+ //# sourceMappingURL=sdk.gen.js.map