@keystrokehq/neon 0.1.4 → 0.1.6

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 (869) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/accept-projects-transfer-requests.cjs +1 -0
  4. package/dist/actions/accept-projects-transfer-requests.cjs.map +1 -1
  5. package/dist/actions/accept-projects-transfer-requests.d.cts +3 -5
  6. package/dist/actions/accept-projects-transfer-requests.d.cts.map +1 -1
  7. package/dist/actions/accept-projects-transfer-requests.d.mts +3 -5
  8. package/dist/actions/accept-projects-transfer-requests.d.mts.map +1 -1
  9. package/dist/actions/accept-projects-transfer-requests.mjs +1 -0
  10. package/dist/actions/accept-projects-transfer-requests.mjs.map +1 -1
  11. package/dist/actions/access-project-details-by-id.cjs +1 -0
  12. package/dist/actions/access-project-details-by-id.cjs.map +1 -1
  13. package/dist/actions/access-project-details-by-id.d.cts +3 -3
  14. package/dist/actions/access-project-details-by-id.d.cts.map +1 -1
  15. package/dist/actions/access-project-details-by-id.d.mts +3 -3
  16. package/dist/actions/access-project-details-by-id.d.mts.map +1 -1
  17. package/dist/actions/access-project-details-by-id.mjs +1 -0
  18. package/dist/actions/access-project-details-by-id.mjs.map +1 -1
  19. package/dist/actions/add-new-jwks-to-project-endpoint.cjs +1 -0
  20. package/dist/actions/add-new-jwks-to-project-endpoint.cjs.map +1 -1
  21. package/dist/actions/add-new-jwks-to-project-endpoint.d.cts +3 -8
  22. package/dist/actions/add-new-jwks-to-project-endpoint.d.cts.map +1 -1
  23. package/dist/actions/add-new-jwks-to-project-endpoint.d.mts +3 -8
  24. package/dist/actions/add-new-jwks-to-project-endpoint.d.mts.map +1 -1
  25. package/dist/actions/add-new-jwks-to-project-endpoint.mjs +1 -0
  26. package/dist/actions/add-new-jwks-to-project-endpoint.mjs.map +1 -1
  27. package/dist/actions/add-project-email-permission.cjs +1 -0
  28. package/dist/actions/add-project-email-permission.cjs.map +1 -1
  29. package/dist/actions/add-project-email-permission.d.cts +3 -4
  30. package/dist/actions/add-project-email-permission.d.cts.map +1 -1
  31. package/dist/actions/add-project-email-permission.d.mts +3 -4
  32. package/dist/actions/add-project-email-permission.d.mts.map +1 -1
  33. package/dist/actions/add-project-email-permission.mjs +1 -0
  34. package/dist/actions/add-project-email-permission.mjs.map +1 -1
  35. package/dist/actions/add-role-to-branch.cjs +1 -0
  36. package/dist/actions/add-role-to-branch.cjs.map +1 -1
  37. package/dist/actions/add-role-to-branch.d.cts +3 -5
  38. package/dist/actions/add-role-to-branch.d.cts.map +1 -1
  39. package/dist/actions/add-role-to-branch.d.mts +3 -5
  40. package/dist/actions/add-role-to-branch.d.mts.map +1 -1
  41. package/dist/actions/add-role-to-branch.mjs +1 -0
  42. package/dist/actions/add-role-to-branch.mjs.map +1 -1
  43. package/dist/actions/count-project-branches.cjs +1 -0
  44. package/dist/actions/count-project-branches.cjs.map +1 -1
  45. package/dist/actions/count-project-branches.d.cts +3 -4
  46. package/dist/actions/count-project-branches.d.cts.map +1 -1
  47. package/dist/actions/count-project-branches.d.mts +3 -4
  48. package/dist/actions/count-project-branches.d.mts.map +1 -1
  49. package/dist/actions/count-project-branches.mjs +1 -0
  50. package/dist/actions/count-project-branches.mjs.map +1 -1
  51. package/dist/actions/create-api-key-for-organization.cjs +1 -0
  52. package/dist/actions/create-api-key-for-organization.cjs.map +1 -1
  53. package/dist/actions/create-api-key-for-organization.d.cts +3 -4
  54. package/dist/actions/create-api-key-for-organization.d.cts.map +1 -1
  55. package/dist/actions/create-api-key-for-organization.d.mts +3 -4
  56. package/dist/actions/create-api-key-for-organization.d.mts.map +1 -1
  57. package/dist/actions/create-api-key-for-organization.mjs +1 -0
  58. package/dist/actions/create-api-key-for-organization.mjs.map +1 -1
  59. package/dist/actions/create-auth-keys.cjs +1 -0
  60. package/dist/actions/create-auth-keys.cjs.map +1 -1
  61. package/dist/actions/create-auth-keys.d.cts +3 -4
  62. package/dist/actions/create-auth-keys.d.cts.map +1 -1
  63. package/dist/actions/create-auth-keys.d.mts +3 -4
  64. package/dist/actions/create-auth-keys.d.mts.map +1 -1
  65. package/dist/actions/create-auth-keys.mjs +1 -0
  66. package/dist/actions/create-auth-keys.mjs.map +1 -1
  67. package/dist/actions/create-auth-user.cjs +1 -0
  68. package/dist/actions/create-auth-user.cjs.map +1 -1
  69. package/dist/actions/create-auth-user.d.cts +3 -6
  70. package/dist/actions/create-auth-user.d.cts.map +1 -1
  71. package/dist/actions/create-auth-user.d.mts +3 -6
  72. package/dist/actions/create-auth-user.d.mts.map +1 -1
  73. package/dist/actions/create-auth-user.mjs +1 -0
  74. package/dist/actions/create-auth-user.mjs.map +1 -1
  75. package/dist/actions/create-branch-database.cjs +1 -0
  76. package/dist/actions/create-branch-database.cjs.map +1 -1
  77. package/dist/actions/create-branch-database.d.cts +3 -6
  78. package/dist/actions/create-branch-database.d.cts.map +1 -1
  79. package/dist/actions/create-branch-database.d.mts +3 -6
  80. package/dist/actions/create-branch-database.d.mts.map +1 -1
  81. package/dist/actions/create-branch-database.mjs +1 -0
  82. package/dist/actions/create-branch-database.mjs.map +1 -1
  83. package/dist/actions/create-branches-auth.cjs +1 -0
  84. package/dist/actions/create-branches-auth.cjs.map +1 -1
  85. package/dist/actions/create-branches-auth.d.cts +3 -6
  86. package/dist/actions/create-branches-auth.d.cts.map +1 -1
  87. package/dist/actions/create-branches-auth.d.mts +3 -6
  88. package/dist/actions/create-branches-auth.d.mts.map +1 -1
  89. package/dist/actions/create-branches-auth.mjs +1 -0
  90. package/dist/actions/create-branches-auth.mjs.map +1 -1
  91. package/dist/actions/create-branches-data-api.cjs +1 -0
  92. package/dist/actions/create-branches-data-api.cjs.map +1 -1
  93. package/dist/actions/create-branches-data-api.d.cts +3 -23
  94. package/dist/actions/create-branches-data-api.d.cts.map +1 -1
  95. package/dist/actions/create-branches-data-api.d.mts +3 -23
  96. package/dist/actions/create-branches-data-api.d.mts.map +1 -1
  97. package/dist/actions/create-branches-data-api.mjs +1 -0
  98. package/dist/actions/create-branches-data-api.mjs.map +1 -1
  99. package/dist/actions/create-branches-snapshot.cjs +1 -0
  100. package/dist/actions/create-branches-snapshot.cjs.map +1 -1
  101. package/dist/actions/create-branches-snapshot.d.cts +3 -8
  102. package/dist/actions/create-branches-snapshot.d.cts.map +1 -1
  103. package/dist/actions/create-branches-snapshot.d.mts +3 -8
  104. package/dist/actions/create-branches-snapshot.d.mts.map +1 -1
  105. package/dist/actions/create-branches-snapshot.mjs +1 -0
  106. package/dist/actions/create-branches-snapshot.mjs.map +1 -1
  107. package/dist/actions/create-compute-endpoint.cjs +1 -0
  108. package/dist/actions/create-compute-endpoint.cjs.map +1 -1
  109. package/dist/actions/create-compute-endpoint.d.cts +3 -16
  110. package/dist/actions/create-compute-endpoint.d.cts.map +1 -1
  111. package/dist/actions/create-compute-endpoint.d.mts +3 -16
  112. package/dist/actions/create-compute-endpoint.d.mts.map +1 -1
  113. package/dist/actions/create-compute-endpoint.mjs +1 -0
  114. package/dist/actions/create-compute-endpoint.mjs.map +1 -1
  115. package/dist/actions/create-new-api-key.cjs +1 -0
  116. package/dist/actions/create-new-api-key.cjs.map +1 -1
  117. package/dist/actions/create-new-api-key.d.cts +3 -3
  118. package/dist/actions/create-new-api-key.d.cts.map +1 -1
  119. package/dist/actions/create-new-api-key.d.mts +3 -3
  120. package/dist/actions/create-new-api-key.d.mts.map +1 -1
  121. package/dist/actions/create-new-api-key.mjs +1 -0
  122. package/dist/actions/create-new-api-key.mjs.map +1 -1
  123. package/dist/actions/create-new-project-branch.cjs +1 -0
  124. package/dist/actions/create-new-project-branch.cjs.map +1 -1
  125. package/dist/actions/create-new-project-branch.d.cts +3 -6
  126. package/dist/actions/create-new-project-branch.d.cts.map +1 -1
  127. package/dist/actions/create-new-project-branch.d.mts +3 -6
  128. package/dist/actions/create-new-project-branch.d.mts.map +1 -1
  129. package/dist/actions/create-new-project-branch.mjs +1 -0
  130. package/dist/actions/create-new-project-branch.mjs.map +1 -1
  131. package/dist/actions/create-project-branch-anonymized.cjs +1 -0
  132. package/dist/actions/create-project-branch-anonymized.cjs.map +1 -1
  133. package/dist/actions/create-project-branch-anonymized.d.cts +3 -17
  134. package/dist/actions/create-project-branch-anonymized.d.cts.map +1 -1
  135. package/dist/actions/create-project-branch-anonymized.d.mts +3 -17
  136. package/dist/actions/create-project-branch-anonymized.d.mts.map +1 -1
  137. package/dist/actions/create-project-branch-anonymized.mjs +1 -0
  138. package/dist/actions/create-project-branch-anonymized.mjs.map +1 -1
  139. package/dist/actions/create-project-with-quota-and-settings.cjs +1 -0
  140. package/dist/actions/create-project-with-quota-and-settings.cjs.map +1 -1
  141. package/dist/actions/create-project-with-quota-and-settings.d.cts +3 -32
  142. package/dist/actions/create-project-with-quota-and-settings.d.cts.map +1 -1
  143. package/dist/actions/create-project-with-quota-and-settings.d.mts +3 -32
  144. package/dist/actions/create-project-with-quota-and-settings.d.mts.map +1 -1
  145. package/dist/actions/create-project-with-quota-and-settings.mjs +1 -0
  146. package/dist/actions/create-project-with-quota-and-settings.mjs.map +1 -1
  147. package/dist/actions/create-projects-transfer-requests.cjs +1 -0
  148. package/dist/actions/create-projects-transfer-requests.cjs.map +1 -1
  149. package/dist/actions/create-projects-transfer-requests.d.cts +3 -4
  150. package/dist/actions/create-projects-transfer-requests.d.cts.map +1 -1
  151. package/dist/actions/create-projects-transfer-requests.d.mts +3 -4
  152. package/dist/actions/create-projects-transfer-requests.d.mts.map +1 -1
  153. package/dist/actions/create-projects-transfer-requests.mjs +1 -0
  154. package/dist/actions/create-projects-transfer-requests.mjs.map +1 -1
  155. package/dist/actions/create-vpc-endpoint-label.cjs +1 -0
  156. package/dist/actions/create-vpc-endpoint-label.cjs.map +1 -1
  157. package/dist/actions/create-vpc-endpoint-label.d.cts +3 -5
  158. package/dist/actions/create-vpc-endpoint-label.d.cts.map +1 -1
  159. package/dist/actions/create-vpc-endpoint-label.d.mts +3 -5
  160. package/dist/actions/create-vpc-endpoint-label.d.mts.map +1 -1
  161. package/dist/actions/create-vpc-endpoint-label.mjs +1 -0
  162. package/dist/actions/create-vpc-endpoint-label.mjs.map +1 -1
  163. package/dist/actions/create-vpc-endpoint-with-label.cjs +1 -0
  164. package/dist/actions/create-vpc-endpoint-with-label.cjs.map +1 -1
  165. package/dist/actions/create-vpc-endpoint-with-label.d.cts +3 -6
  166. package/dist/actions/create-vpc-endpoint-with-label.d.cts.map +1 -1
  167. package/dist/actions/create-vpc-endpoint-with-label.d.mts +3 -6
  168. package/dist/actions/create-vpc-endpoint-with-label.d.mts.map +1 -1
  169. package/dist/actions/create-vpc-endpoint-with-label.mjs +1 -0
  170. package/dist/actions/create-vpc-endpoint-with-label.mjs.map +1 -1
  171. package/dist/actions/delete-api-key-by-id.cjs +1 -0
  172. package/dist/actions/delete-api-key-by-id.cjs.map +1 -1
  173. package/dist/actions/delete-api-key-by-id.d.cts +3 -3
  174. package/dist/actions/delete-api-key-by-id.d.cts.map +1 -1
  175. package/dist/actions/delete-api-key-by-id.d.mts +3 -3
  176. package/dist/actions/delete-api-key-by-id.d.mts.map +1 -1
  177. package/dist/actions/delete-api-key-by-id.mjs +1 -0
  178. package/dist/actions/delete-api-key-by-id.mjs.map +1 -1
  179. package/dist/actions/delete-auth-domains.cjs +1 -0
  180. package/dist/actions/delete-auth-domains.cjs.map +1 -1
  181. package/dist/actions/delete-auth-domains.d.cts +3 -9
  182. package/dist/actions/delete-auth-domains.d.cts.map +1 -1
  183. package/dist/actions/delete-auth-domains.d.mts +3 -9
  184. package/dist/actions/delete-auth-domains.d.mts.map +1 -1
  185. package/dist/actions/delete-auth-domains.mjs +1 -0
  186. package/dist/actions/delete-auth-domains.mjs.map +1 -1
  187. package/dist/actions/delete-auth-oauth-provider.cjs +1 -0
  188. package/dist/actions/delete-auth-oauth-provider.cjs.map +1 -1
  189. package/dist/actions/delete-auth-oauth-provider.d.cts +3 -5
  190. package/dist/actions/delete-auth-oauth-provider.d.cts.map +1 -1
  191. package/dist/actions/delete-auth-oauth-provider.d.mts +3 -5
  192. package/dist/actions/delete-auth-oauth-provider.d.mts.map +1 -1
  193. package/dist/actions/delete-auth-oauth-provider.mjs +1 -0
  194. package/dist/actions/delete-auth-oauth-provider.mjs.map +1 -1
  195. package/dist/actions/delete-auth-user.cjs +1 -0
  196. package/dist/actions/delete-auth-user.cjs.map +1 -1
  197. package/dist/actions/delete-auth-user.d.cts +3 -5
  198. package/dist/actions/delete-auth-user.d.cts.map +1 -1
  199. package/dist/actions/delete-auth-user.d.mts +3 -5
  200. package/dist/actions/delete-auth-user.d.mts.map +1 -1
  201. package/dist/actions/delete-auth-user.mjs +1 -0
  202. package/dist/actions/delete-auth-user.mjs.map +1 -1
  203. package/dist/actions/delete-branch-data-api.cjs +1 -0
  204. package/dist/actions/delete-branch-data-api.cjs.map +1 -1
  205. package/dist/actions/delete-branch-data-api.d.cts +3 -5
  206. package/dist/actions/delete-branch-data-api.d.cts.map +1 -1
  207. package/dist/actions/delete-branch-data-api.d.mts +3 -5
  208. package/dist/actions/delete-branch-data-api.d.mts.map +1 -1
  209. package/dist/actions/delete-branch-data-api.mjs +1 -0
  210. package/dist/actions/delete-branch-data-api.mjs.map +1 -1
  211. package/dist/actions/delete-database-from-branch.cjs +1 -0
  212. package/dist/actions/delete-database-from-branch.cjs.map +1 -1
  213. package/dist/actions/delete-database-from-branch.d.cts +3 -5
  214. package/dist/actions/delete-database-from-branch.d.cts.map +1 -1
  215. package/dist/actions/delete-database-from-branch.d.mts +3 -5
  216. package/dist/actions/delete-database-from-branch.d.mts.map +1 -1
  217. package/dist/actions/delete-database-from-branch.mjs +1 -0
  218. package/dist/actions/delete-database-from-branch.mjs.map +1 -1
  219. package/dist/actions/delete-organization-api-key.cjs +1 -0
  220. package/dist/actions/delete-organization-api-key.cjs.map +1 -1
  221. package/dist/actions/delete-organization-api-key.d.cts +3 -4
  222. package/dist/actions/delete-organization-api-key.d.cts.map +1 -1
  223. package/dist/actions/delete-organization-api-key.d.mts +3 -4
  224. package/dist/actions/delete-organization-api-key.d.mts.map +1 -1
  225. package/dist/actions/delete-organization-api-key.mjs +1 -0
  226. package/dist/actions/delete-organization-api-key.mjs.map +1 -1
  227. package/dist/actions/delete-organization-member.cjs +1 -0
  228. package/dist/actions/delete-organization-member.cjs.map +1 -1
  229. package/dist/actions/delete-organization-member.d.cts +3 -4
  230. package/dist/actions/delete-organization-member.d.cts.map +1 -1
  231. package/dist/actions/delete-organization-member.d.mts +3 -4
  232. package/dist/actions/delete-organization-member.d.mts.map +1 -1
  233. package/dist/actions/delete-organization-member.mjs +1 -0
  234. package/dist/actions/delete-organization-member.mjs.map +1 -1
  235. package/dist/actions/delete-project-branch-by-id.cjs +1 -0
  236. package/dist/actions/delete-project-branch-by-id.cjs.map +1 -1
  237. package/dist/actions/delete-project-branch-by-id.d.cts +3 -4
  238. package/dist/actions/delete-project-branch-by-id.d.cts.map +1 -1
  239. package/dist/actions/delete-project-branch-by-id.d.mts +3 -4
  240. package/dist/actions/delete-project-branch-by-id.d.mts.map +1 -1
  241. package/dist/actions/delete-project-branch-by-id.mjs +1 -0
  242. package/dist/actions/delete-project-branch-by-id.mjs.map +1 -1
  243. package/dist/actions/delete-project-branch-role.cjs +1 -0
  244. package/dist/actions/delete-project-branch-role.cjs.map +1 -1
  245. package/dist/actions/delete-project-branch-role.d.cts +3 -5
  246. package/dist/actions/delete-project-branch-role.d.cts.map +1 -1
  247. package/dist/actions/delete-project-branch-role.d.mts +3 -5
  248. package/dist/actions/delete-project-branch-role.d.mts.map +1 -1
  249. package/dist/actions/delete-project-branch-role.mjs +1 -0
  250. package/dist/actions/delete-project-branch-role.mjs.map +1 -1
  251. package/dist/actions/delete-project-by-id.cjs +1 -0
  252. package/dist/actions/delete-project-by-id.cjs.map +1 -1
  253. package/dist/actions/delete-project-by-id.d.cts +3 -3
  254. package/dist/actions/delete-project-by-id.d.cts.map +1 -1
  255. package/dist/actions/delete-project-by-id.d.mts +3 -3
  256. package/dist/actions/delete-project-by-id.d.mts.map +1 -1
  257. package/dist/actions/delete-project-by-id.mjs +1 -0
  258. package/dist/actions/delete-project-by-id.mjs.map +1 -1
  259. package/dist/actions/delete-project-endpoint.cjs +1 -0
  260. package/dist/actions/delete-project-endpoint.cjs.map +1 -1
  261. package/dist/actions/delete-project-endpoint.d.cts +3 -4
  262. package/dist/actions/delete-project-endpoint.d.cts.map +1 -1
  263. package/dist/actions/delete-project-endpoint.d.mts +3 -4
  264. package/dist/actions/delete-project-endpoint.d.mts.map +1 -1
  265. package/dist/actions/delete-project-endpoint.mjs +1 -0
  266. package/dist/actions/delete-project-endpoint.mjs.map +1 -1
  267. package/dist/actions/delete-project-jwks-by-id.cjs +1 -0
  268. package/dist/actions/delete-project-jwks-by-id.cjs.map +1 -1
  269. package/dist/actions/delete-project-jwks-by-id.d.cts +3 -4
  270. package/dist/actions/delete-project-jwks-by-id.d.cts.map +1 -1
  271. package/dist/actions/delete-project-jwks-by-id.d.mts +3 -4
  272. package/dist/actions/delete-project-jwks-by-id.d.mts.map +1 -1
  273. package/dist/actions/delete-project-jwks-by-id.mjs +1 -0
  274. package/dist/actions/delete-project-jwks-by-id.mjs.map +1 -1
  275. package/dist/actions/delete-project-permission.cjs +1 -0
  276. package/dist/actions/delete-project-permission.cjs.map +1 -1
  277. package/dist/actions/delete-project-permission.d.cts +3 -4
  278. package/dist/actions/delete-project-permission.d.cts.map +1 -1
  279. package/dist/actions/delete-project-permission.d.mts +3 -4
  280. package/dist/actions/delete-project-permission.d.mts.map +1 -1
  281. package/dist/actions/delete-project-permission.mjs +1 -0
  282. package/dist/actions/delete-project-permission.mjs.map +1 -1
  283. package/dist/actions/delete-project-snapshot.cjs +1 -0
  284. package/dist/actions/delete-project-snapshot.cjs.map +1 -1
  285. package/dist/actions/delete-project-snapshot.d.cts +3 -4
  286. package/dist/actions/delete-project-snapshot.d.cts.map +1 -1
  287. package/dist/actions/delete-project-snapshot.d.mts +3 -4
  288. package/dist/actions/delete-project-snapshot.d.mts.map +1 -1
  289. package/dist/actions/delete-project-snapshot.mjs +1 -0
  290. package/dist/actions/delete-project-snapshot.mjs.map +1 -1
  291. package/dist/actions/delete-vpc-endpoint-by-ids.cjs +1 -0
  292. package/dist/actions/delete-vpc-endpoint-by-ids.cjs.map +1 -1
  293. package/dist/actions/delete-vpc-endpoint-by-ids.d.cts +3 -5
  294. package/dist/actions/delete-vpc-endpoint-by-ids.d.cts.map +1 -1
  295. package/dist/actions/delete-vpc-endpoint-by-ids.d.mts +3 -5
  296. package/dist/actions/delete-vpc-endpoint-by-ids.d.mts.map +1 -1
  297. package/dist/actions/delete-vpc-endpoint-by-ids.mjs +1 -0
  298. package/dist/actions/delete-vpc-endpoint-by-ids.mjs.map +1 -1
  299. package/dist/actions/delete-vpc-endpoint-by-project-id.cjs +1 -0
  300. package/dist/actions/delete-vpc-endpoint-by-project-id.cjs.map +1 -1
  301. package/dist/actions/delete-vpc-endpoint-by-project-id.d.cts +3 -4
  302. package/dist/actions/delete-vpc-endpoint-by-project-id.d.cts.map +1 -1
  303. package/dist/actions/delete-vpc-endpoint-by-project-id.d.mts +3 -4
  304. package/dist/actions/delete-vpc-endpoint-by-project-id.d.mts.map +1 -1
  305. package/dist/actions/delete-vpc-endpoint-by-project-id.mjs +1 -0
  306. package/dist/actions/delete-vpc-endpoint-by-project-id.mjs.map +1 -1
  307. package/dist/actions/disable-branches-auth.cjs +1 -0
  308. package/dist/actions/disable-branches-auth.cjs.map +1 -1
  309. package/dist/actions/disable-branches-auth.d.cts +3 -5
  310. package/dist/actions/disable-branches-auth.d.cts.map +1 -1
  311. package/dist/actions/disable-branches-auth.d.mts +3 -5
  312. package/dist/actions/disable-branches-auth.d.mts.map +1 -1
  313. package/dist/actions/disable-branches-auth.mjs +1 -0
  314. package/dist/actions/disable-branches-auth.mjs.map +1 -1
  315. package/dist/actions/fetch-database-for-branch.cjs +1 -0
  316. package/dist/actions/fetch-database-for-branch.cjs.map +1 -1
  317. package/dist/actions/fetch-database-for-branch.d.cts +3 -4
  318. package/dist/actions/fetch-database-for-branch.d.cts.map +1 -1
  319. package/dist/actions/fetch-database-for-branch.d.mts +3 -4
  320. package/dist/actions/fetch-database-for-branch.d.mts.map +1 -1
  321. package/dist/actions/fetch-database-for-branch.mjs +1 -0
  322. package/dist/actions/fetch-database-for-branch.mjs.map +1 -1
  323. package/dist/actions/fetch-organization-members-by-id.cjs +1 -0
  324. package/dist/actions/fetch-organization-members-by-id.cjs.map +1 -1
  325. package/dist/actions/fetch-organization-members-by-id.d.cts +3 -3
  326. package/dist/actions/fetch-organization-members-by-id.d.cts.map +1 -1
  327. package/dist/actions/fetch-organization-members-by-id.d.mts +3 -3
  328. package/dist/actions/fetch-organization-members-by-id.d.mts.map +1 -1
  329. package/dist/actions/fetch-organization-members-by-id.mjs +1 -0
  330. package/dist/actions/fetch-organization-members-by-id.mjs.map +1 -1
  331. package/dist/actions/fetch-vpcendpoint-details-by-id.cjs +1 -0
  332. package/dist/actions/fetch-vpcendpoint-details-by-id.cjs.map +1 -1
  333. package/dist/actions/fetch-vpcendpoint-details-by-id.d.cts +3 -5
  334. package/dist/actions/fetch-vpcendpoint-details-by-id.d.cts.map +1 -1
  335. package/dist/actions/fetch-vpcendpoint-details-by-id.d.mts +3 -5
  336. package/dist/actions/fetch-vpcendpoint-details-by-id.d.mts.map +1 -1
  337. package/dist/actions/fetch-vpcendpoint-details-by-id.mjs +1 -0
  338. package/dist/actions/fetch-vpcendpoint-details-by-id.mjs.map +1 -1
  339. package/dist/actions/finalize-branch-restore.cjs +1 -0
  340. package/dist/actions/finalize-branch-restore.cjs.map +1 -1
  341. package/dist/actions/finalize-branch-restore.d.cts +3 -5
  342. package/dist/actions/finalize-branch-restore.d.cts.map +1 -1
  343. package/dist/actions/finalize-branch-restore.d.mts +3 -5
  344. package/dist/actions/finalize-branch-restore.d.mts.map +1 -1
  345. package/dist/actions/finalize-branch-restore.mjs +1 -0
  346. package/dist/actions/finalize-branch-restore.mjs.map +1 -1
  347. package/dist/actions/get-auth-allow-localhost.cjs +1 -0
  348. package/dist/actions/get-auth-allow-localhost.cjs.map +1 -1
  349. package/dist/actions/get-auth-allow-localhost.d.cts +3 -4
  350. package/dist/actions/get-auth-allow-localhost.d.cts.map +1 -1
  351. package/dist/actions/get-auth-allow-localhost.d.mts +3 -4
  352. package/dist/actions/get-auth-allow-localhost.d.mts.map +1 -1
  353. package/dist/actions/get-auth-allow-localhost.mjs +1 -0
  354. package/dist/actions/get-auth-allow-localhost.mjs.map +1 -1
  355. package/dist/actions/get-auth-email-provider.cjs +1 -0
  356. package/dist/actions/get-auth-email-provider.cjs.map +1 -1
  357. package/dist/actions/get-auth-email-provider.d.cts +3 -4
  358. package/dist/actions/get-auth-email-provider.d.cts.map +1 -1
  359. package/dist/actions/get-auth-email-provider.d.mts +3 -4
  360. package/dist/actions/get-auth-email-provider.d.mts.map +1 -1
  361. package/dist/actions/get-auth-email-provider.mjs +1 -0
  362. package/dist/actions/get-auth-email-provider.mjs.map +1 -1
  363. package/dist/actions/get-auth.cjs +1 -0
  364. package/dist/actions/get-auth.cjs.map +1 -1
  365. package/dist/actions/get-auth.d.cts +4 -2
  366. package/dist/actions/get-auth.d.cts.map +1 -1
  367. package/dist/actions/get-auth.d.mts +4 -2
  368. package/dist/actions/get-auth.d.mts.map +1 -1
  369. package/dist/actions/get-auth.mjs +1 -0
  370. package/dist/actions/get-auth.mjs.map +1 -1
  371. package/dist/actions/get-available-preload-libraries.cjs +1 -0
  372. package/dist/actions/get-available-preload-libraries.cjs.map +1 -1
  373. package/dist/actions/get-available-preload-libraries.d.cts +3 -3
  374. package/dist/actions/get-available-preload-libraries.d.cts.map +1 -1
  375. package/dist/actions/get-available-preload-libraries.d.mts +3 -3
  376. package/dist/actions/get-available-preload-libraries.d.mts.map +1 -1
  377. package/dist/actions/get-available-preload-libraries.mjs +1 -0
  378. package/dist/actions/get-available-preload-libraries.mjs.map +1 -1
  379. package/dist/actions/get-branch-roles-for-project.cjs +1 -0
  380. package/dist/actions/get-branch-roles-for-project.cjs.map +1 -1
  381. package/dist/actions/get-branch-roles-for-project.d.cts +3 -4
  382. package/dist/actions/get-branch-roles-for-project.d.cts.map +1 -1
  383. package/dist/actions/get-branch-roles-for-project.d.mts +3 -4
  384. package/dist/actions/get-branch-roles-for-project.d.mts.map +1 -1
  385. package/dist/actions/get-branch-roles-for-project.mjs +1 -0
  386. package/dist/actions/get-branch-roles-for-project.mjs.map +1 -1
  387. package/dist/actions/get-branches-anonymized-status.cjs +1 -0
  388. package/dist/actions/get-branches-anonymized-status.cjs.map +1 -1
  389. package/dist/actions/get-branches-anonymized-status.d.cts +3 -4
  390. package/dist/actions/get-branches-anonymized-status.d.cts.map +1 -1
  391. package/dist/actions/get-branches-anonymized-status.d.mts +3 -4
  392. package/dist/actions/get-branches-anonymized-status.d.mts.map +1 -1
  393. package/dist/actions/get-branches-anonymized-status.mjs +1 -0
  394. package/dist/actions/get-branches-anonymized-status.mjs.map +1 -1
  395. package/dist/actions/get-branches-backup-schedule.cjs +1 -0
  396. package/dist/actions/get-branches-backup-schedule.cjs.map +1 -1
  397. package/dist/actions/get-branches-backup-schedule.d.cts +3 -4
  398. package/dist/actions/get-branches-backup-schedule.d.cts.map +1 -1
  399. package/dist/actions/get-branches-backup-schedule.d.mts +3 -4
  400. package/dist/actions/get-branches-backup-schedule.d.mts.map +1 -1
  401. package/dist/actions/get-branches-backup-schedule.mjs +1 -0
  402. package/dist/actions/get-branches-backup-schedule.mjs.map +1 -1
  403. package/dist/actions/get-branches-data-api.cjs +1 -0
  404. package/dist/actions/get-branches-data-api.cjs.map +1 -1
  405. package/dist/actions/get-branches-data-api.d.cts +3 -5
  406. package/dist/actions/get-branches-data-api.d.cts.map +1 -1
  407. package/dist/actions/get-branches-data-api.d.mts +3 -5
  408. package/dist/actions/get-branches-data-api.d.mts.map +1 -1
  409. package/dist/actions/get-branches-data-api.mjs +1 -0
  410. package/dist/actions/get-branches-data-api.mjs.map +1 -1
  411. package/dist/actions/get-branches-for-project.cjs +1 -0
  412. package/dist/actions/get-branches-for-project.cjs.map +1 -1
  413. package/dist/actions/get-branches-for-project.d.cts +3 -4
  414. package/dist/actions/get-branches-for-project.d.cts.map +1 -1
  415. package/dist/actions/get-branches-for-project.d.mts +3 -4
  416. package/dist/actions/get-branches-for-project.d.mts.map +1 -1
  417. package/dist/actions/get-branches-for-project.mjs +1 -0
  418. package/dist/actions/get-branches-for-project.mjs.map +1 -1
  419. package/dist/actions/get-branches-masking-rules.cjs +1 -0
  420. package/dist/actions/get-branches-masking-rules.cjs.map +1 -1
  421. package/dist/actions/get-branches-masking-rules.d.cts +3 -4
  422. package/dist/actions/get-branches-masking-rules.d.cts.map +1 -1
  423. package/dist/actions/get-branches-masking-rules.d.mts +3 -4
  424. package/dist/actions/get-branches-masking-rules.d.mts.map +1 -1
  425. package/dist/actions/get-branches-masking-rules.mjs +1 -0
  426. package/dist/actions/get-branches-masking-rules.mjs.map +1 -1
  427. package/dist/actions/get-consumption-history-projects.cjs +1 -0
  428. package/dist/actions/get-consumption-history-projects.cjs.map +1 -1
  429. package/dist/actions/get-consumption-history-projects.d.cts +3 -10
  430. package/dist/actions/get-consumption-history-projects.d.cts.map +1 -1
  431. package/dist/actions/get-consumption-history-projects.d.mts +3 -10
  432. package/dist/actions/get-consumption-history-projects.d.mts.map +1 -1
  433. package/dist/actions/get-consumption-history-projects.mjs +1 -0
  434. package/dist/actions/get-consumption-history-projects.mjs.map +1 -1
  435. package/dist/actions/get-current-user-information.cjs +1 -0
  436. package/dist/actions/get-current-user-information.cjs.map +1 -1
  437. package/dist/actions/get-current-user-information.d.cts +3 -1
  438. package/dist/actions/get-current-user-information.d.cts.map +1 -1
  439. package/dist/actions/get-current-user-information.d.mts +3 -1
  440. package/dist/actions/get-current-user-information.d.mts.map +1 -1
  441. package/dist/actions/get-current-user-information.mjs +1 -0
  442. package/dist/actions/get-current-user-information.mjs.map +1 -1
  443. package/dist/actions/get-organization-api-keys.cjs +1 -0
  444. package/dist/actions/get-organization-api-keys.cjs.map +1 -1
  445. package/dist/actions/get-organization-api-keys.d.cts +3 -3
  446. package/dist/actions/get-organization-api-keys.d.cts.map +1 -1
  447. package/dist/actions/get-organization-api-keys.d.mts +3 -3
  448. package/dist/actions/get-organization-api-keys.d.mts.map +1 -1
  449. package/dist/actions/get-organization-api-keys.mjs +1 -0
  450. package/dist/actions/get-organization-api-keys.mjs.map +1 -1
  451. package/dist/actions/get-project-branch-role.cjs +1 -0
  452. package/dist/actions/get-project-branch-role.cjs.map +1 -1
  453. package/dist/actions/get-project-branch-role.d.cts +3 -5
  454. package/dist/actions/get-project-branch-role.d.cts.map +1 -1
  455. package/dist/actions/get-project-branch-role.d.mts +3 -5
  456. package/dist/actions/get-project-branch-role.d.mts.map +1 -1
  457. package/dist/actions/get-project-branch-role.mjs +1 -0
  458. package/dist/actions/get-project-branch-role.mjs.map +1 -1
  459. package/dist/actions/get-project-branch-schema-comparison.cjs +1 -0
  460. package/dist/actions/get-project-branch-schema-comparison.cjs.map +1 -1
  461. package/dist/actions/get-project-branch-schema-comparison.d.cts +3 -10
  462. package/dist/actions/get-project-branch-schema-comparison.d.cts.map +1 -1
  463. package/dist/actions/get-project-branch-schema-comparison.d.mts +3 -10
  464. package/dist/actions/get-project-branch-schema-comparison.d.mts.map +1 -1
  465. package/dist/actions/get-project-branch-schema-comparison.mjs +1 -0
  466. package/dist/actions/get-project-branch-schema-comparison.mjs.map +1 -1
  467. package/dist/actions/get-project-branches.cjs +1 -0
  468. package/dist/actions/get-project-branches.cjs.map +1 -1
  469. package/dist/actions/get-project-branches.d.cts +3 -4
  470. package/dist/actions/get-project-branches.d.cts.map +1 -1
  471. package/dist/actions/get-project-branches.d.mts +3 -4
  472. package/dist/actions/get-project-branches.d.mts.map +1 -1
  473. package/dist/actions/get-project-branches.mjs +1 -0
  474. package/dist/actions/get-project-branches.mjs.map +1 -1
  475. package/dist/actions/get-project-connection-uri.cjs +1 -0
  476. package/dist/actions/get-project-connection-uri.cjs.map +1 -1
  477. package/dist/actions/get-project-connection-uri.d.cts +3 -8
  478. package/dist/actions/get-project-connection-uri.d.cts.map +1 -1
  479. package/dist/actions/get-project-connection-uri.d.mts +3 -8
  480. package/dist/actions/get-project-connection-uri.d.mts.map +1 -1
  481. package/dist/actions/get-project-connection-uri.mjs +1 -0
  482. package/dist/actions/get-project-connection-uri.mjs.map +1 -1
  483. package/dist/actions/get-project-endpoint-information.cjs +1 -0
  484. package/dist/actions/get-project-endpoint-information.cjs.map +1 -1
  485. package/dist/actions/get-project-endpoint-information.d.cts +3 -3
  486. package/dist/actions/get-project-endpoint-information.d.cts.map +1 -1
  487. package/dist/actions/get-project-endpoint-information.d.mts +3 -3
  488. package/dist/actions/get-project-endpoint-information.d.mts.map +1 -1
  489. package/dist/actions/get-project-endpoint-information.mjs +1 -0
  490. package/dist/actions/get-project-endpoint-information.mjs.map +1 -1
  491. package/dist/actions/get-project-operation-by-id.cjs +1 -0
  492. package/dist/actions/get-project-operation-by-id.cjs.map +1 -1
  493. package/dist/actions/get-project-operation-by-id.d.cts +3 -4
  494. package/dist/actions/get-project-operation-by-id.d.cts.map +1 -1
  495. package/dist/actions/get-project-operation-by-id.d.mts +3 -4
  496. package/dist/actions/get-project-operation-by-id.d.mts.map +1 -1
  497. package/dist/actions/get-project-operation-by-id.mjs +1 -0
  498. package/dist/actions/get-project-operation-by-id.mjs.map +1 -1
  499. package/dist/actions/get-schema-for-project-branch.cjs +1 -0
  500. package/dist/actions/get-schema-for-project-branch.cjs.map +1 -1
  501. package/dist/actions/get-schema-for-project-branch.d.cts +3 -7
  502. package/dist/actions/get-schema-for-project-branch.d.cts.map +1 -1
  503. package/dist/actions/get-schema-for-project-branch.d.mts +3 -7
  504. package/dist/actions/get-schema-for-project-branch.d.mts.map +1 -1
  505. package/dist/actions/get-schema-for-project-branch.mjs +1 -0
  506. package/dist/actions/get-schema-for-project-branch.mjs.map +1 -1
  507. package/dist/actions/get-user-organizations.cjs +1 -0
  508. package/dist/actions/get-user-organizations.cjs.map +1 -1
  509. package/dist/actions/get-user-organizations.d.cts +3 -1
  510. package/dist/actions/get-user-organizations.d.cts.map +1 -1
  511. package/dist/actions/get-user-organizations.d.mts +3 -1
  512. package/dist/actions/get-user-organizations.d.mts.map +1 -1
  513. package/dist/actions/get-user-organizations.mjs +1 -0
  514. package/dist/actions/get-user-organizations.mjs.map +1 -1
  515. package/dist/actions/get-vpc-region-endpoints.cjs +1 -0
  516. package/dist/actions/get-vpc-region-endpoints.cjs.map +1 -1
  517. package/dist/actions/get-vpc-region-endpoints.d.cts +3 -4
  518. package/dist/actions/get-vpc-region-endpoints.d.cts.map +1 -1
  519. package/dist/actions/get-vpc-region-endpoints.d.mts +3 -4
  520. package/dist/actions/get-vpc-region-endpoints.d.mts.map +1 -1
  521. package/dist/actions/get-vpc-region-endpoints.mjs +1 -0
  522. package/dist/actions/get-vpc-region-endpoints.mjs.map +1 -1
  523. package/dist/actions/list-api-keys.cjs +1 -0
  524. package/dist/actions/list-api-keys.cjs.map +1 -1
  525. package/dist/actions/list-api-keys.d.cts +3 -1
  526. package/dist/actions/list-api-keys.d.cts.map +1 -1
  527. package/dist/actions/list-api-keys.d.mts +3 -1
  528. package/dist/actions/list-api-keys.d.mts.map +1 -1
  529. package/dist/actions/list-api-keys.mjs +1 -0
  530. package/dist/actions/list-api-keys.mjs.map +1 -1
  531. package/dist/actions/list-auth-domains.cjs +1 -0
  532. package/dist/actions/list-auth-domains.cjs.map +1 -1
  533. package/dist/actions/list-auth-domains.d.cts +3 -4
  534. package/dist/actions/list-auth-domains.d.cts.map +1 -1
  535. package/dist/actions/list-auth-domains.d.mts +3 -4
  536. package/dist/actions/list-auth-domains.d.mts.map +1 -1
  537. package/dist/actions/list-auth-domains.mjs +1 -0
  538. package/dist/actions/list-auth-domains.mjs.map +1 -1
  539. package/dist/actions/list-auth-oauth-providers2.cjs +1 -0
  540. package/dist/actions/list-auth-oauth-providers2.cjs.map +1 -1
  541. package/dist/actions/list-auth-oauth-providers2.d.cts +3 -4
  542. package/dist/actions/list-auth-oauth-providers2.d.cts.map +1 -1
  543. package/dist/actions/list-auth-oauth-providers2.d.mts +3 -4
  544. package/dist/actions/list-auth-oauth-providers2.d.mts.map +1 -1
  545. package/dist/actions/list-auth-oauth-providers2.mjs +1 -0
  546. package/dist/actions/list-auth-oauth-providers2.mjs.map +1 -1
  547. package/dist/actions/list-projects-snapshots.cjs +1 -0
  548. package/dist/actions/list-projects-snapshots.cjs.map +1 -1
  549. package/dist/actions/list-projects-snapshots.d.cts +3 -3
  550. package/dist/actions/list-projects-snapshots.d.cts.map +1 -1
  551. package/dist/actions/list-projects-snapshots.d.mts +3 -3
  552. package/dist/actions/list-projects-snapshots.d.mts.map +1 -1
  553. package/dist/actions/list-projects-snapshots.mjs +1 -0
  554. package/dist/actions/list-projects-snapshots.mjs.map +1 -1
  555. package/dist/actions/list-shared-projects.cjs +1 -0
  556. package/dist/actions/list-shared-projects.cjs.map +1 -1
  557. package/dist/actions/list-shared-projects.d.cts +3 -5
  558. package/dist/actions/list-shared-projects.d.cts.map +1 -1
  559. package/dist/actions/list-shared-projects.d.mts +3 -5
  560. package/dist/actions/list-shared-projects.d.mts.map +1 -1
  561. package/dist/actions/list-shared-projects.mjs +1 -0
  562. package/dist/actions/list-shared-projects.mjs.map +1 -1
  563. package/dist/actions/list-vpc-vpc-endpoints.cjs +1 -0
  564. package/dist/actions/list-vpc-vpc-endpoints.cjs.map +1 -1
  565. package/dist/actions/list-vpc-vpc-endpoints.d.cts +3 -3
  566. package/dist/actions/list-vpc-vpc-endpoints.d.cts.map +1 -1
  567. package/dist/actions/list-vpc-vpc-endpoints.d.mts +3 -3
  568. package/dist/actions/list-vpc-vpc-endpoints.d.mts.map +1 -1
  569. package/dist/actions/list-vpc-vpc-endpoints.mjs +1 -0
  570. package/dist/actions/list-vpc-vpc-endpoints.mjs.map +1 -1
  571. package/dist/actions/modify-branch-details-in-project.cjs +1 -0
  572. package/dist/actions/modify-branch-details-in-project.cjs.map +1 -1
  573. package/dist/actions/modify-branch-details-in-project.d.cts +3 -6
  574. package/dist/actions/modify-branch-details-in-project.d.cts.map +1 -1
  575. package/dist/actions/modify-branch-details-in-project.d.mts +3 -6
  576. package/dist/actions/modify-branch-details-in-project.d.mts.map +1 -1
  577. package/dist/actions/modify-branch-details-in-project.mjs +1 -0
  578. package/dist/actions/modify-branch-details-in-project.mjs.map +1 -1
  579. package/dist/actions/patch-branch-database-information.cjs +1 -0
  580. package/dist/actions/patch-branch-database-information.cjs.map +1 -1
  581. package/dist/actions/patch-branch-database-information.d.cts +3 -7
  582. package/dist/actions/patch-branch-database-information.d.cts.map +1 -1
  583. package/dist/actions/patch-branch-database-information.d.mts +3 -7
  584. package/dist/actions/patch-branch-database-information.d.mts.map +1 -1
  585. package/dist/actions/patch-branch-database-information.mjs +1 -0
  586. package/dist/actions/patch-branch-database-information.mjs.map +1 -1
  587. package/dist/actions/reset-role-password-for-branch.cjs +1 -0
  588. package/dist/actions/reset-role-password-for-branch.cjs.map +1 -1
  589. package/dist/actions/reset-role-password-for-branch.d.cts +3 -5
  590. package/dist/actions/reset-role-password-for-branch.d.cts.map +1 -1
  591. package/dist/actions/reset-role-password-for-branch.d.mts +3 -5
  592. package/dist/actions/reset-role-password-for-branch.d.mts.map +1 -1
  593. package/dist/actions/reset-role-password-for-branch.mjs +1 -0
  594. package/dist/actions/reset-role-password-for-branch.mjs.map +1 -1
  595. package/dist/actions/restart-project-endpoint.cjs +1 -0
  596. package/dist/actions/restart-project-endpoint.cjs.map +1 -1
  597. package/dist/actions/restart-project-endpoint.d.cts +3 -4
  598. package/dist/actions/restart-project-endpoint.d.cts.map +1 -1
  599. package/dist/actions/restart-project-endpoint.d.mts +3 -4
  600. package/dist/actions/restart-project-endpoint.d.mts.map +1 -1
  601. package/dist/actions/restart-project-endpoint.mjs +1 -0
  602. package/dist/actions/restart-project-endpoint.mjs.map +1 -1
  603. package/dist/actions/restore-project-branch.cjs +1 -0
  604. package/dist/actions/restore-project-branch.cjs.map +1 -1
  605. package/dist/actions/restore-project-branch.d.cts +3 -8
  606. package/dist/actions/restore-project-branch.d.cts.map +1 -1
  607. package/dist/actions/restore-project-branch.d.mts +3 -8
  608. package/dist/actions/restore-project-branch.d.mts.map +1 -1
  609. package/dist/actions/restore-project-branch.mjs +1 -0
  610. package/dist/actions/restore-project-branch.mjs.map +1 -1
  611. package/dist/actions/restore-snapshot.cjs +1 -0
  612. package/dist/actions/restore-snapshot.cjs.map +1 -1
  613. package/dist/actions/restore-snapshot.d.cts +3 -7
  614. package/dist/actions/restore-snapshot.d.cts.map +1 -1
  615. package/dist/actions/restore-snapshot.d.mts +3 -7
  616. package/dist/actions/restore-snapshot.d.mts.map +1 -1
  617. package/dist/actions/restore-snapshot.mjs +1 -0
  618. package/dist/actions/restore-snapshot.mjs.map +1 -1
  619. package/dist/actions/retrieve-account-consumption-history.cjs +1 -0
  620. package/dist/actions/retrieve-account-consumption-history.cjs.map +1 -1
  621. package/dist/actions/retrieve-account-consumption-history.d.cts +3 -7
  622. package/dist/actions/retrieve-account-consumption-history.d.cts.map +1 -1
  623. package/dist/actions/retrieve-account-consumption-history.d.mts +3 -7
  624. package/dist/actions/retrieve-account-consumption-history.d.mts.map +1 -1
  625. package/dist/actions/retrieve-account-consumption-history.mjs +1 -0
  626. package/dist/actions/retrieve-account-consumption-history.mjs.map +1 -1
  627. package/dist/actions/retrieve-all-regions.cjs +1 -0
  628. package/dist/actions/retrieve-all-regions.cjs.map +1 -1
  629. package/dist/actions/retrieve-all-regions.d.cts +3 -1
  630. package/dist/actions/retrieve-all-regions.d.cts.map +1 -1
  631. package/dist/actions/retrieve-all-regions.d.mts +3 -1
  632. package/dist/actions/retrieve-all-regions.d.mts.map +1 -1
  633. package/dist/actions/retrieve-all-regions.mjs +1 -0
  634. package/dist/actions/retrieve-all-regions.mjs.map +1 -1
  635. package/dist/actions/retrieve-branch-database-details.cjs +1 -0
  636. package/dist/actions/retrieve-branch-database-details.cjs.map +1 -1
  637. package/dist/actions/retrieve-branch-database-details.d.cts +3 -5
  638. package/dist/actions/retrieve-branch-database-details.d.cts.map +1 -1
  639. package/dist/actions/retrieve-branch-database-details.d.mts +3 -5
  640. package/dist/actions/retrieve-branch-database-details.d.mts.map +1 -1
  641. package/dist/actions/retrieve-branch-database-details.mjs +1 -0
  642. package/dist/actions/retrieve-branch-database-details.mjs.map +1 -1
  643. package/dist/actions/retrieve-branch-endpoints.cjs +1 -0
  644. package/dist/actions/retrieve-branch-endpoints.cjs.map +1 -1
  645. package/dist/actions/retrieve-branch-endpoints.d.cts +3 -4
  646. package/dist/actions/retrieve-branch-endpoints.d.cts.map +1 -1
  647. package/dist/actions/retrieve-branch-endpoints.d.mts +3 -4
  648. package/dist/actions/retrieve-branch-endpoints.d.mts.map +1 -1
  649. package/dist/actions/retrieve-branch-endpoints.mjs +1 -0
  650. package/dist/actions/retrieve-branch-endpoints.mjs.map +1 -1
  651. package/dist/actions/retrieve-jwks-for-project.cjs +1 -0
  652. package/dist/actions/retrieve-jwks-for-project.cjs.map +1 -1
  653. package/dist/actions/retrieve-jwks-for-project.d.cts +3 -3
  654. package/dist/actions/retrieve-jwks-for-project.d.cts.map +1 -1
  655. package/dist/actions/retrieve-jwks-for-project.d.mts +3 -3
  656. package/dist/actions/retrieve-jwks-for-project.d.mts.map +1 -1
  657. package/dist/actions/retrieve-jwks-for-project.mjs +1 -0
  658. package/dist/actions/retrieve-jwks-for-project.mjs.map +1 -1
  659. package/dist/actions/retrieve-organization-by-id.cjs +1 -0
  660. package/dist/actions/retrieve-organization-by-id.cjs.map +1 -1
  661. package/dist/actions/retrieve-organization-by-id.d.cts +3 -3
  662. package/dist/actions/retrieve-organization-by-id.d.cts.map +1 -1
  663. package/dist/actions/retrieve-organization-by-id.d.mts +3 -3
  664. package/dist/actions/retrieve-organization-by-id.d.mts.map +1 -1
  665. package/dist/actions/retrieve-organization-by-id.mjs +1 -0
  666. package/dist/actions/retrieve-organization-by-id.mjs.map +1 -1
  667. package/dist/actions/retrieve-organization-invitations.cjs +1 -0
  668. package/dist/actions/retrieve-organization-invitations.cjs.map +1 -1
  669. package/dist/actions/retrieve-organization-invitations.d.cts +3 -3
  670. package/dist/actions/retrieve-organization-invitations.d.cts.map +1 -1
  671. package/dist/actions/retrieve-organization-invitations.d.mts +3 -3
  672. package/dist/actions/retrieve-organization-invitations.d.mts.map +1 -1
  673. package/dist/actions/retrieve-organization-invitations.mjs +1 -0
  674. package/dist/actions/retrieve-organization-invitations.mjs.map +1 -1
  675. package/dist/actions/retrieve-organization-member-info.cjs +1 -0
  676. package/dist/actions/retrieve-organization-member-info.cjs.map +1 -1
  677. package/dist/actions/retrieve-organization-member-info.d.cts +3 -4
  678. package/dist/actions/retrieve-organization-member-info.d.cts.map +1 -1
  679. package/dist/actions/retrieve-organization-member-info.d.mts +3 -4
  680. package/dist/actions/retrieve-organization-member-info.d.mts.map +1 -1
  681. package/dist/actions/retrieve-organization-member-info.mjs +1 -0
  682. package/dist/actions/retrieve-organization-member-info.mjs.map +1 -1
  683. package/dist/actions/retrieve-project-endpoint-details.cjs +1 -0
  684. package/dist/actions/retrieve-project-endpoint-details.cjs.map +1 -1
  685. package/dist/actions/retrieve-project-endpoint-details.d.cts +3 -4
  686. package/dist/actions/retrieve-project-endpoint-details.d.cts.map +1 -1
  687. package/dist/actions/retrieve-project-endpoint-details.d.mts +3 -4
  688. package/dist/actions/retrieve-project-endpoint-details.d.mts.map +1 -1
  689. package/dist/actions/retrieve-project-endpoint-details.mjs +1 -0
  690. package/dist/actions/retrieve-project-endpoint-details.mjs.map +1 -1
  691. package/dist/actions/retrieve-project-operations.cjs +1 -0
  692. package/dist/actions/retrieve-project-operations.cjs.map +1 -1
  693. package/dist/actions/retrieve-project-operations.d.cts +3 -5
  694. package/dist/actions/retrieve-project-operations.d.cts.map +1 -1
  695. package/dist/actions/retrieve-project-operations.d.mts +3 -5
  696. package/dist/actions/retrieve-project-operations.d.mts.map +1 -1
  697. package/dist/actions/retrieve-project-operations.mjs +1 -0
  698. package/dist/actions/retrieve-project-operations.mjs.map +1 -1
  699. package/dist/actions/retrieve-project-permissions.cjs +1 -0
  700. package/dist/actions/retrieve-project-permissions.cjs.map +1 -1
  701. package/dist/actions/retrieve-project-permissions.d.cts +3 -3
  702. package/dist/actions/retrieve-project-permissions.d.cts.map +1 -1
  703. package/dist/actions/retrieve-project-permissions.d.mts +3 -3
  704. package/dist/actions/retrieve-project-permissions.d.mts.map +1 -1
  705. package/dist/actions/retrieve-project-permissions.mjs +1 -0
  706. package/dist/actions/retrieve-project-permissions.mjs.map +1 -1
  707. package/dist/actions/retrieve-projects-list.cjs +1 -0
  708. package/dist/actions/retrieve-projects-list.cjs.map +1 -1
  709. package/dist/actions/retrieve-projects-list.d.cts +3 -7
  710. package/dist/actions/retrieve-projects-list.d.cts.map +1 -1
  711. package/dist/actions/retrieve-projects-list.d.mts +3 -7
  712. package/dist/actions/retrieve-projects-list.d.mts.map +1 -1
  713. package/dist/actions/retrieve-projects-list.mjs +1 -0
  714. package/dist/actions/retrieve-projects-list.mjs.map +1 -1
  715. package/dist/actions/retrieve-vpc-endpoints-for-project.cjs +1 -0
  716. package/dist/actions/retrieve-vpc-endpoints-for-project.cjs.map +1 -1
  717. package/dist/actions/retrieve-vpc-endpoints-for-project.d.cts +3 -3
  718. package/dist/actions/retrieve-vpc-endpoints-for-project.d.cts.map +1 -1
  719. package/dist/actions/retrieve-vpc-endpoints-for-project.d.mts +3 -3
  720. package/dist/actions/retrieve-vpc-endpoints-for-project.d.mts.map +1 -1
  721. package/dist/actions/retrieve-vpc-endpoints-for-project.mjs +1 -0
  722. package/dist/actions/retrieve-vpc-endpoints-for-project.mjs.map +1 -1
  723. package/dist/actions/reveal-role-password-in-branch.cjs +1 -0
  724. package/dist/actions/reveal-role-password-in-branch.cjs.map +1 -1
  725. package/dist/actions/reveal-role-password-in-branch.d.cts +3 -5
  726. package/dist/actions/reveal-role-password-in-branch.d.cts.map +1 -1
  727. package/dist/actions/reveal-role-password-in-branch.d.mts +3 -5
  728. package/dist/actions/reveal-role-password-in-branch.d.mts.map +1 -1
  729. package/dist/actions/reveal-role-password-in-branch.mjs +1 -0
  730. package/dist/actions/reveal-role-password-in-branch.mjs.map +1 -1
  731. package/dist/actions/send-auth-test-email.cjs +1 -0
  732. package/dist/actions/send-auth-test-email.cjs.map +1 -1
  733. package/dist/actions/send-auth-test-email.d.cts +3 -11
  734. package/dist/actions/send-auth-test-email.d.cts.map +1 -1
  735. package/dist/actions/send-auth-test-email.d.mts +3 -11
  736. package/dist/actions/send-auth-test-email.d.mts.map +1 -1
  737. package/dist/actions/send-auth-test-email.mjs +1 -0
  738. package/dist/actions/send-auth-test-email.mjs.map +1 -1
  739. package/dist/actions/send-organization-invitations.cjs +1 -0
  740. package/dist/actions/send-organization-invitations.cjs.map +1 -1
  741. package/dist/actions/send-organization-invitations.d.cts +3 -8
  742. package/dist/actions/send-organization-invitations.d.cts.map +1 -1
  743. package/dist/actions/send-organization-invitations.d.mts +3 -8
  744. package/dist/actions/send-organization-invitations.d.mts.map +1 -1
  745. package/dist/actions/send-organization-invitations.mjs +1 -0
  746. package/dist/actions/send-organization-invitations.mjs.map +1 -1
  747. package/dist/actions/set-branch-as-default.cjs +1 -0
  748. package/dist/actions/set-branch-as-default.cjs.map +1 -1
  749. package/dist/actions/set-branch-as-default.d.cts +3 -4
  750. package/dist/actions/set-branch-as-default.d.cts.map +1 -1
  751. package/dist/actions/set-branch-as-default.d.mts +3 -4
  752. package/dist/actions/set-branch-as-default.d.mts.map +1 -1
  753. package/dist/actions/set-branch-as-default.mjs +1 -0
  754. package/dist/actions/set-branch-as-default.mjs.map +1 -1
  755. package/dist/actions/start-branch-anonymization.cjs +1 -0
  756. package/dist/actions/start-branch-anonymization.cjs.map +1 -1
  757. package/dist/actions/start-branch-anonymization.d.cts +3 -4
  758. package/dist/actions/start-branch-anonymization.d.cts.map +1 -1
  759. package/dist/actions/start-branch-anonymization.d.mts +3 -4
  760. package/dist/actions/start-branch-anonymization.d.mts.map +1 -1
  761. package/dist/actions/start-branch-anonymization.mjs +1 -0
  762. package/dist/actions/start-branch-anonymization.mjs.map +1 -1
  763. package/dist/actions/start-endpoint-for-project.cjs +1 -0
  764. package/dist/actions/start-endpoint-for-project.cjs.map +1 -1
  765. package/dist/actions/start-endpoint-for-project.d.cts +3 -4
  766. package/dist/actions/start-endpoint-for-project.d.cts.map +1 -1
  767. package/dist/actions/start-endpoint-for-project.d.mts +3 -4
  768. package/dist/actions/start-endpoint-for-project.d.mts.map +1 -1
  769. package/dist/actions/start-endpoint-for-project.mjs +1 -0
  770. package/dist/actions/start-endpoint-for-project.mjs.map +1 -1
  771. package/dist/actions/suspend-project-endpoint-by-id.cjs +1 -0
  772. package/dist/actions/suspend-project-endpoint-by-id.cjs.map +1 -1
  773. package/dist/actions/suspend-project-endpoint-by-id.d.cts +3 -4
  774. package/dist/actions/suspend-project-endpoint-by-id.d.cts.map +1 -1
  775. package/dist/actions/suspend-project-endpoint-by-id.d.mts +3 -4
  776. package/dist/actions/suspend-project-endpoint-by-id.d.mts.map +1 -1
  777. package/dist/actions/suspend-project-endpoint-by-id.mjs +1 -0
  778. package/dist/actions/suspend-project-endpoint-by-id.mjs.map +1 -1
  779. package/dist/actions/transfer-projects-between-organizations.cjs +1 -0
  780. package/dist/actions/transfer-projects-between-organizations.cjs.map +1 -1
  781. package/dist/actions/transfer-projects-between-organizations.d.cts +3 -5
  782. package/dist/actions/transfer-projects-between-organizations.d.cts.map +1 -1
  783. package/dist/actions/transfer-projects-between-organizations.d.mts +3 -5
  784. package/dist/actions/transfer-projects-between-organizations.d.mts.map +1 -1
  785. package/dist/actions/transfer-projects-between-organizations.mjs +1 -0
  786. package/dist/actions/transfer-projects-between-organizations.mjs.map +1 -1
  787. package/dist/actions/transfer-user-projects-to-organization.cjs +1 -0
  788. package/dist/actions/transfer-user-projects-to-organization.cjs.map +1 -1
  789. package/dist/actions/transfer-user-projects-to-organization.d.cts +3 -4
  790. package/dist/actions/transfer-user-projects-to-organization.d.cts.map +1 -1
  791. package/dist/actions/transfer-user-projects-to-organization.d.mts +3 -4
  792. package/dist/actions/transfer-user-projects-to-organization.d.mts.map +1 -1
  793. package/dist/actions/transfer-user-projects-to-organization.mjs +1 -0
  794. package/dist/actions/transfer-user-projects-to-organization.mjs.map +1 -1
  795. package/dist/actions/update-auth-allow-localhost.cjs +1 -0
  796. package/dist/actions/update-auth-allow-localhost.cjs.map +1 -1
  797. package/dist/actions/update-auth-allow-localhost.d.cts +3 -5
  798. package/dist/actions/update-auth-allow-localhost.d.cts.map +1 -1
  799. package/dist/actions/update-auth-allow-localhost.d.mts +3 -5
  800. package/dist/actions/update-auth-allow-localhost.d.mts.map +1 -1
  801. package/dist/actions/update-auth-allow-localhost.mjs +1 -0
  802. package/dist/actions/update-auth-allow-localhost.mjs.map +1 -1
  803. package/dist/actions/update-auth-email-provider.cjs +1 -0
  804. package/dist/actions/update-auth-email-provider.cjs.map +1 -1
  805. package/dist/actions/update-auth-email-provider.d.cts +3 -10
  806. package/dist/actions/update-auth-email-provider.d.cts.map +1 -1
  807. package/dist/actions/update-auth-email-provider.d.mts +3 -10
  808. package/dist/actions/update-auth-email-provider.d.mts.map +1 -1
  809. package/dist/actions/update-auth-email-provider.mjs +1 -0
  810. package/dist/actions/update-auth-email-provider.mjs.map +1 -1
  811. package/dist/actions/update-branches-data-api.cjs +1 -0
  812. package/dist/actions/update-branches-data-api.cjs.map +1 -1
  813. package/dist/actions/update-branches-data-api.d.cts +3 -15
  814. package/dist/actions/update-branches-data-api.d.cts.map +1 -1
  815. package/dist/actions/update-branches-data-api.d.mts +3 -15
  816. package/dist/actions/update-branches-data-api.d.mts.map +1 -1
  817. package/dist/actions/update-branches-data-api.mjs +1 -0
  818. package/dist/actions/update-branches-data-api.mjs.map +1 -1
  819. package/dist/actions/update-branches-masking-rules.cjs +1 -0
  820. package/dist/actions/update-branches-masking-rules.cjs.map +1 -1
  821. package/dist/actions/update-branches-masking-rules.d.cts +3 -13
  822. package/dist/actions/update-branches-masking-rules.d.cts.map +1 -1
  823. package/dist/actions/update-branches-masking-rules.d.mts +3 -13
  824. package/dist/actions/update-branches-masking-rules.d.mts.map +1 -1
  825. package/dist/actions/update-branches-masking-rules.mjs +1 -0
  826. package/dist/actions/update-branches-masking-rules.mjs.map +1 -1
  827. package/dist/actions/update-organization-member-role.cjs +1 -0
  828. package/dist/actions/update-organization-member-role.cjs.map +1 -1
  829. package/dist/actions/update-organization-member-role.d.cts +3 -5
  830. package/dist/actions/update-organization-member-role.d.cts.map +1 -1
  831. package/dist/actions/update-organization-member-role.d.mts +3 -5
  832. package/dist/actions/update-organization-member-role.d.mts.map +1 -1
  833. package/dist/actions/update-organization-member-role.mjs +1 -0
  834. package/dist/actions/update-organization-member-role.mjs.map +1 -1
  835. package/dist/actions/update-project-compute-endpoint-settings.cjs +1 -0
  836. package/dist/actions/update-project-compute-endpoint-settings.cjs.map +1 -1
  837. package/dist/actions/update-project-compute-endpoint-settings.d.cts +3 -15
  838. package/dist/actions/update-project-compute-endpoint-settings.d.cts.map +1 -1
  839. package/dist/actions/update-project-compute-endpoint-settings.d.mts +3 -15
  840. package/dist/actions/update-project-compute-endpoint-settings.d.mts.map +1 -1
  841. package/dist/actions/update-project-compute-endpoint-settings.mjs +1 -0
  842. package/dist/actions/update-project-compute-endpoint-settings.mjs.map +1 -1
  843. package/dist/actions/update-project-settings-by-id.cjs +1 -0
  844. package/dist/actions/update-project-settings-by-id.cjs.map +1 -1
  845. package/dist/actions/update-project-settings-by-id.d.cts +3 -23
  846. package/dist/actions/update-project-settings-by-id.d.cts.map +1 -1
  847. package/dist/actions/update-project-settings-by-id.d.mts +3 -23
  848. package/dist/actions/update-project-settings-by-id.d.mts.map +1 -1
  849. package/dist/actions/update-project-settings-by-id.mjs +1 -0
  850. package/dist/actions/update-project-settings-by-id.mjs.map +1 -1
  851. package/dist/actions/update-projects-snapshots.cjs +1 -0
  852. package/dist/actions/update-projects-snapshots.cjs.map +1 -1
  853. package/dist/actions/update-projects-snapshots.d.cts +3 -5
  854. package/dist/actions/update-projects-snapshots.d.cts.map +1 -1
  855. package/dist/actions/update-projects-snapshots.d.mts +3 -5
  856. package/dist/actions/update-projects-snapshots.d.mts.map +1 -1
  857. package/dist/actions/update-projects-snapshots.mjs +1 -0
  858. package/dist/actions/update-projects-snapshots.mjs.map +1 -1
  859. package/dist/app.cjs +5 -2
  860. package/dist/app.cjs.map +1 -1
  861. package/dist/app.d.cts +7 -1
  862. package/dist/app.d.cts.map +1 -1
  863. package/dist/app.d.mts +7 -1
  864. package/dist/app.d.mts.map +1 -1
  865. package/dist/app.mjs +3 -2
  866. package/dist/app.mjs.map +1 -1
  867. package/dist/index.d.cts +1 -1
  868. package/dist/index.d.mts +1 -1
  869. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/restart-project-endpoint.d.ts
@@ -37,10 +39,7 @@ declare const NeonRestartProjectEndpointOutput: z.ZodObject<{
37
39
  }, z.core.$loose>>>>;
38
40
  }, z.core.$loose>>;
39
41
  }, z.core.$loose>;
40
- declare const neonRestartProjectEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- project_id: string;
42
- endpoint_id: string;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ declare const neonRestartProjectEndpoint: AppAction<typeof NeonRestartProjectEndpointInput, typeof NeonRestartProjectEndpointOutput, typeof neon.credential>;
44
43
  //#endregion
45
44
  export { neonRestartProjectEndpoint };
46
45
  //# sourceMappingURL=restart-project-endpoint.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restart-project-endpoint.d.mts","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAoC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"restart-project-endpoint.d.mts","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAoC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/restart-project-endpoint.ts
@@ -1 +1 @@
1
- {"version":3,"file":"restart-project-endpoint.mjs","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACvD,YAAY,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B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,sEAAsE,EAAE,OAAO;CACnF,UAAU,iDAAiD,SAAS;CACpE,YAAY,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"restart-project-endpoint.mjs","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint: AppAction<\n typeof NeonRestartProjectEndpointInput,\n typeof NeonRestartProjectEndpointOutput,\n typeof neon.credential\n> = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CA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CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACzD,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,sEAAsE,EAAE,OAAO;CACnF,UAAU,iDAAiD,SAAS;CACpE,YAAY,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/restore-project-branch.ts
@@ -1 +1 @@
1
- {"version":3,"file":"restore-project-branch.cjs","names":["z","action"],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration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,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"restore-project-branch.cjs","names":["z","action"],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch: AppAction<\n typeof NeonRestoreProjectBranchInput,\n typeof NeonRestoreProjectBranchOutput,\n typeof neon.credential\n> = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAA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AAC,CAAC,SAAS;AACxL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/restore-project-branch.d.ts
@@ -48,14 +50,7 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
48
50
  total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
51
  }, z.core.$loose>>>>;
50
52
  }, z.core.$loose>;
51
- declare const neonRestoreProjectBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- branch_id: string;
53
- project_id: string;
54
- source_branch_id: string;
55
- source_lsn?: string | undefined;
56
- source_timestamp?: string | undefined;
57
- preserve_under_name?: string | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
53
+ declare const neonRestoreProjectBranch: AppAction<typeof NeonRestoreProjectBranchInput, typeof NeonRestoreProjectBranchOutput, typeof neon.credential>;
59
54
  //#endregion
60
55
  export { neonRestoreProjectBranch };
61
56
  //# sourceMappingURL=restore-project-branch.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restore-project-branch.d.cts","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA6C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"restore-project-branch.d.cts","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA6C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/restore-project-branch.d.ts
@@ -48,14 +50,7 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
48
50
  total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
51
  }, z.core.$loose>>>>;
50
52
  }, z.core.$loose>;
51
- declare const neonRestoreProjectBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- branch_id: string;
53
- project_id: string;
54
- source_branch_id: string;
55
- source_lsn?: string | undefined;
56
- source_timestamp?: string | undefined;
57
- preserve_under_name?: string | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
53
+ declare const neonRestoreProjectBranch: AppAction<typeof NeonRestoreProjectBranchInput, typeof NeonRestoreProjectBranchOutput, typeof neon.credential>;
59
54
  //#endregion
60
55
  export { neonRestoreProjectBranch };
61
56
  //# sourceMappingURL=restore-project-branch.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restore-project-branch.d.mts","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA6C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"restore-project-branch.d.mts","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cA6C7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/restore-project-branch.ts
@@ -1 +1 @@
1
- {"version":3,"file":"restore-project-branch.mjs","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAChL,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACxR,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+NAA+N,CAAC,CAAC,SAAS;CAChR,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;AAC9U,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,4CAA4C,EAAE,OAA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AC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAMpF,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACtE,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"restore-project-branch.mjs","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch: AppAction<\n typeof NeonRestoreProjectBranchInput,\n typeof NeonRestoreProjectBranchOutput,\n typeof neon.credential\n> = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and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ACxL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/restore-snapshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"restore-snapshot.cjs","names":["z","action"],"sources":["../../src/actions/restore-snapshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreSnapshotInput = z.object({\n name: z.string().describe(\"A name for the newly restored branch. If omitted, a default name will be generated.\").optional(),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'proud-meadow-87189985'). You can obtain the project_id by listing projects for your Neon account.\"),\n snapshot_id: z.string().describe(\"The snapshot ID to restore (e.g., 'snap-wispy-union-ahw80v1u'). You can obtain snapshot IDs by listing snapshots for a project.\"),\n finalize_restore: z.boolean().default(false).describe(\"Set to true to finalize the restore operation immediately. This will complete the restore and move any associated computes to the new branch. Defaults to false to allow previewing the restored snapshot data first.\").optional(),\n target_branch_id: z.string().describe(\"The ID of the branch to restore the snapshot into. If not specified, the branch from which the snapshot was originally created will be used.\").optional(),\n}).describe(\"Request model for restoring a Neon snapshot to a new branch.\");\nconst NeonRestoreSnapshot_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch\").nullable().optional(),\n name: z.string().describe(\"The name of the branch\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent branch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the branch was created\").nullable().optional(),\n parent_lsn: z.string().describe(\"The Log Sequence Number (LSN) of the parent branch\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this branch belongs to\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the branch was last updated\").nullable().optional(),\n logical_size: z.number().int().describe(\"The logical size of the branch data in bytes\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the branch (if transitioning)\").nullable().optional(),\n physical_size: z.number().int().describe(\"The physical size of the branch data in bytes\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The timestamp when the branch was created from parent\").nullable().optional(),\n}).passthrough().describe(\"Information about the restored branch.\");\nconst NeonRestoreSnapshot_EndpointInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the endpoint\").nullable().optional(),\n host: z.string().describe(\"The host address of the endpoint\").nullable().optional(),\n type: z.string().describe(\"The type of endpoint\").nullable().optional(),\n disabled: z.boolean().describe(\"Whether the endpoint is disabled\").nullable().optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for the endpoint\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID that this endpoint is connected to\").nullable().optional(),\n region_id: z.string().describe(\"The region where the endpoint is located\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the endpoint was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this endpoint belongs to\").nullable().optional(),\n proxy_host: z.string().describe(\"The proxy host for the endpoint\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the endpoint was last updated\").nullable().optional(),\n pooler_mode: z.string().describe(\"The connection pooler mode\").nullable().optional(),\n provisioner: z.string().describe(\"The provisioner used for this endpoint\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the endpoint\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the endpoint (if transitioning)\").nullable().optional(),\n pooler_enabled: z.boolean().describe(\"Whether connection pooling is enabled\").nullable().optional(),\n passwordless_access: z.boolean().describe(\"Whether passwordless access is enabled\").nullable().optional(),\n suspend_timeout_seconds: z.number().int().describe(\"Timeout in seconds before the compute is suspended\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable().optional(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable().optional(),\n}).passthrough().describe(\"Information about compute endpoints.\");\nconst NeonRestoreSnapshot_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation\").nullable().optional(),\n action: z.string().describe(\"The action being performed\").nullable().optional(),\n status: z.string().describe(\"The current status of the operation\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID associated with this operation\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the operation was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID associated with this operation\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated\").nullable().optional(),\n endpoint_id: z.string().describe(\"The endpoint ID associated with this operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"The number of failures encountered\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation.\");\nexport const NeonRestoreSnapshotOutput = z.object({\n branch: NeonRestoreSnapshot_BranchInfoSchema.nullable(),\n endpoints: z.array(NeonRestoreSnapshot_EndpointInfoSchema).describe(\"List of endpoints associated with the restored branch\").nullable().optional(),\n operations: z.array(NeonRestoreSnapshot_OperationInfoSchema).describe(\"List of operations performed during the restore\"),\n}).passthrough().describe(\"Response model containing the restored branch and operation details.\");\n\nexport const neonRestoreSnapshot = action(\"NEON_RESTORE_SNAPSHOT\", {\n slug: \"neon-restore-snapshot\",\n name: \"Restore snapshot to new branch\",\n description: \"Tool to restore a Neon snapshot to a new branch. Use when you need to recover data from a snapshot or create a branch from a previous point in time. This endpoint is currently in Beta.\",\n input: NeonRestoreSnapshotInput,\n output: NeonRestoreSnapshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CAC/J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,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C,CAAC,SAAS,sEAAsE;AAEhG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"restore-snapshot.cjs","names":["z","action"],"sources":["../../src/actions/restore-snapshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRestoreSnapshotInput = z.object({\n name: z.string().describe(\"A name for the newly restored branch. If omitted, a default name will be generated.\").optional(),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'proud-meadow-87189985'). You can obtain the project_id by listing projects for your Neon account.\"),\n snapshot_id: z.string().describe(\"The snapshot ID to restore (e.g., 'snap-wispy-union-ahw80v1u'). You can obtain snapshot IDs by listing snapshots for a project.\"),\n finalize_restore: z.boolean().default(false).describe(\"Set to true to finalize the restore operation immediately. This will complete the restore and move any associated computes to the new branch. Defaults to false to allow previewing the restored snapshot data first.\").optional(),\n target_branch_id: z.string().describe(\"The ID of the branch to restore the snapshot into. If not specified, the branch from which the snapshot was originally created will be used.\").optional(),\n}).describe(\"Request model for restoring a Neon snapshot to a new branch.\");\nconst NeonRestoreSnapshot_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch\").nullable().optional(),\n name: z.string().describe(\"The name of the branch\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent branch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the branch was created\").nullable().optional(),\n parent_lsn: z.string().describe(\"The Log Sequence Number (LSN) of the parent branch\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this branch belongs to\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the branch was last updated\").nullable().optional(),\n logical_size: z.number().int().describe(\"The logical size of the branch data in bytes\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the branch (if transitioning)\").nullable().optional(),\n physical_size: z.number().int().describe(\"The physical size of the branch data in bytes\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The timestamp when the branch was created from parent\").nullable().optional(),\n}).passthrough().describe(\"Information about the restored branch.\");\nconst NeonRestoreSnapshot_EndpointInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the endpoint\").nullable().optional(),\n host: z.string().describe(\"The host address of the endpoint\").nullable().optional(),\n type: z.string().describe(\"The type of endpoint\").nullable().optional(),\n disabled: z.boolean().describe(\"Whether the endpoint is disabled\").nullable().optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for the endpoint\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID that this endpoint is connected to\").nullable().optional(),\n region_id: z.string().describe(\"The region where the endpoint is located\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the endpoint was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this endpoint belongs to\").nullable().optional(),\n proxy_host: z.string().describe(\"The proxy host for the endpoint\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the endpoint was last updated\").nullable().optional(),\n pooler_mode: z.string().describe(\"The connection pooler mode\").nullable().optional(),\n provisioner: z.string().describe(\"The provisioner used for this endpoint\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the endpoint\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the endpoint (if transitioning)\").nullable().optional(),\n pooler_enabled: z.boolean().describe(\"Whether connection pooling is enabled\").nullable().optional(),\n passwordless_access: z.boolean().describe(\"Whether passwordless access is enabled\").nullable().optional(),\n suspend_timeout_seconds: z.number().int().describe(\"Timeout in seconds before the compute is suspended\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable().optional(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable().optional(),\n}).passthrough().describe(\"Information about compute endpoints.\");\nconst NeonRestoreSnapshot_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation\").nullable().optional(),\n action: z.string().describe(\"The action being performed\").nullable().optional(),\n status: z.string().describe(\"The current status of the operation\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID associated with this operation\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the operation was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID associated with this operation\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated\").nullable().optional(),\n endpoint_id: z.string().describe(\"The endpoint ID associated with this operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"The number of failures encountered\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation.\");\nexport const NeonRestoreSnapshotOutput = z.object({\n branch: NeonRestoreSnapshot_BranchInfoSchema.nullable(),\n endpoints: z.array(NeonRestoreSnapshot_EndpointInfoSchema).describe(\"List of endpoints associated with the restored branch\").nullable().optional(),\n operations: z.array(NeonRestoreSnapshot_OperationInfoSchema).describe(\"List of operations performed during the restore\"),\n}).passthrough().describe(\"Response model containing the restored branch and operation details.\");\n\nexport const neonRestoreSnapshot: AppAction<\n typeof NeonRestoreSnapshotInput,\n typeof NeonRestoreSnapshotOutput,\n typeof neon.credential\n> = action(\"NEON_RESTORE_SNAPSHOT\", {\n slug: \"neon-restore-snapshot\",\n name: \"Restore snapshot to new branch\",\n description: \"Tool to restore a Neon snapshot to a new branch. Use when you need to recover data from a snapshot or create a branch from a previous point in time. This endpoint is currently in Beta.\",\n input: NeonRestoreSnapshotInput,\n output: NeonRestoreSnapshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CAC/J,aAAaA,IAAAA,EAAE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,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAEhG,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/restore-snapshot.d.ts
@@ -58,13 +60,7 @@ declare const NeonRestoreSnapshotOutput: z.ZodObject<{
58
60
  total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
61
  }, z.core.$loose>>;
60
62
  }, z.core.$loose>;
61
- declare const neonRestoreSnapshot: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- project_id: string;
63
- snapshot_id: string;
64
- name?: string | undefined;
65
- finalize_restore?: boolean | undefined;
66
- target_branch_id?: string | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const neonRestoreSnapshot: AppAction<typeof NeonRestoreSnapshotInput, typeof NeonRestoreSnapshotOutput, typeof neon.credential>;
68
64
  //#endregion
69
65
  export { neonRestoreSnapshot };
70
66
  //# sourceMappingURL=restore-snapshot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restore-snapshot.d.cts","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"restore-snapshot.d.cts","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/restore-snapshot.d.ts
@@ -58,13 +60,7 @@ declare const NeonRestoreSnapshotOutput: z.ZodObject<{
58
60
  total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
61
  }, z.core.$loose>>;
60
62
  }, z.core.$loose>;
61
- declare const neonRestoreSnapshot: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- project_id: string;
63
- snapshot_id: string;
64
- name?: string | undefined;
65
- finalize_restore?: boolean | undefined;
66
- target_branch_id?: string | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const neonRestoreSnapshot: AppAction<typeof NeonRestoreSnapshotInput, typeof NeonRestoreSnapshotOutput, typeof neon.credential>;
68
64
  //#endregion
69
65
  export { neonRestoreSnapshot };
70
66
  //# sourceMappingURL=restore-snapshot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"restore-snapshot.d.mts","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"restore-snapshot.d.mts","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAuDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/restore-snapshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"restore-snapshot.mjs","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreSnapshotInput = z.object({\n name: z.string().describe(\"A name for the newly restored branch. If omitted, a default name will be generated.\").optional(),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'proud-meadow-87189985'). You can obtain the project_id by listing projects for your Neon account.\"),\n snapshot_id: z.string().describe(\"The snapshot ID to restore (e.g., 'snap-wispy-union-ahw80v1u'). You can obtain snapshot IDs by listing snapshots for a project.\"),\n finalize_restore: z.boolean().default(false).describe(\"Set to true to finalize the restore operation immediately. This will complete the restore and move any associated computes to the new branch. Defaults to false to allow previewing the restored snapshot data first.\").optional(),\n target_branch_id: z.string().describe(\"The ID of the branch to restore the snapshot into. If not specified, the branch from which the snapshot was originally created will be used.\").optional(),\n}).describe(\"Request model for restoring a Neon snapshot to a new branch.\");\nconst NeonRestoreSnapshot_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch\").nullable().optional(),\n name: z.string().describe(\"The name of the branch\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent branch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the branch was created\").nullable().optional(),\n parent_lsn: z.string().describe(\"The Log Sequence Number (LSN) of the parent branch\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this branch belongs to\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the branch was last updated\").nullable().optional(),\n logical_size: z.number().int().describe(\"The logical size of the branch data in bytes\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the branch (if transitioning)\").nullable().optional(),\n physical_size: z.number().int().describe(\"The physical size of the branch data in bytes\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The timestamp when the branch was created from parent\").nullable().optional(),\n}).passthrough().describe(\"Information about the restored branch.\");\nconst NeonRestoreSnapshot_EndpointInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the endpoint\").nullable().optional(),\n host: z.string().describe(\"The host address of the endpoint\").nullable().optional(),\n type: z.string().describe(\"The type of endpoint\").nullable().optional(),\n disabled: z.boolean().describe(\"Whether the endpoint is disabled\").nullable().optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for the endpoint\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID that this endpoint is connected to\").nullable().optional(),\n region_id: z.string().describe(\"The region where the endpoint is located\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the endpoint was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this endpoint belongs to\").nullable().optional(),\n proxy_host: z.string().describe(\"The proxy host for the endpoint\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the endpoint was last updated\").nullable().optional(),\n pooler_mode: z.string().describe(\"The connection pooler mode\").nullable().optional(),\n provisioner: z.string().describe(\"The provisioner used for this endpoint\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the endpoint\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the endpoint (if transitioning)\").nullable().optional(),\n pooler_enabled: z.boolean().describe(\"Whether connection pooling is enabled\").nullable().optional(),\n passwordless_access: z.boolean().describe(\"Whether passwordless access is enabled\").nullable().optional(),\n suspend_timeout_seconds: z.number().int().describe(\"Timeout in seconds before the compute is suspended\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable().optional(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable().optional(),\n}).passthrough().describe(\"Information about compute endpoints.\");\nconst NeonRestoreSnapshot_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation\").nullable().optional(),\n action: z.string().describe(\"The action being performed\").nullable().optional(),\n status: z.string().describe(\"The current status of the operation\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID associated with this operation\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the operation was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID associated with this operation\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated\").nullable().optional(),\n endpoint_id: z.string().describe(\"The endpoint ID associated with this operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"The number of failures encountered\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation.\");\nexport const NeonRestoreSnapshotOutput = z.object({\n branch: NeonRestoreSnapshot_BranchInfoSchema.nullable(),\n endpoints: z.array(NeonRestoreSnapshot_EndpointInfoSchema).describe(\"List of endpoints associated with the restored branch\").nullable().optional(),\n operations: z.array(NeonRestoreSnapshot_OperationInfoSchema).describe(\"List of operations performed during the restore\"),\n}).passthrough().describe(\"Response model containing the restored branch and operation details.\");\n\nexport const neonRestoreSnapshot = action(\"NEON_RESTORE_SNAPSHOT\", {\n slug: \"neon-restore-snapshot\",\n name: \"Restore snapshot to new branch\",\n description: \"Tool to restore a Neon snapshot to a new branch. Use when you need to recover data from a snapshot or create a branch from a previous point in time. This endpoint is currently in Beta.\",\n input: NeonRestoreSnapshotInput,\n output: NeonRestoreSnapshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1H,YA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O,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,EAAE,OAAO;EAChD,QAAQ,qCAAqC,SAAS;EACtD,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"restore-snapshot.mjs","names":[],"sources":["../../src/actions/restore-snapshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRestoreSnapshotInput = z.object({\n name: z.string().describe(\"A name for the newly restored branch. If omitted, a default name will be generated.\").optional(),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'proud-meadow-87189985'). You can obtain the project_id by listing projects for your Neon account.\"),\n snapshot_id: z.string().describe(\"The snapshot ID to restore (e.g., 'snap-wispy-union-ahw80v1u'). You can obtain snapshot IDs by listing snapshots for a project.\"),\n finalize_restore: z.boolean().default(false).describe(\"Set to true to finalize the restore operation immediately. This will complete the restore and move any associated computes to the new branch. Defaults to false to allow previewing the restored snapshot data first.\").optional(),\n target_branch_id: z.string().describe(\"The ID of the branch to restore the snapshot into. If not specified, the branch from which the snapshot was originally created will be used.\").optional(),\n}).describe(\"Request model for restoring a Neon snapshot to a new branch.\");\nconst NeonRestoreSnapshot_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch\").nullable().optional(),\n name: z.string().describe(\"The name of the branch\").nullable().optional(),\n parent_id: z.string().describe(\"The ID of the parent branch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the branch was created\").nullable().optional(),\n parent_lsn: z.string().describe(\"The Log Sequence Number (LSN) of the parent branch\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this branch belongs to\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the branch was last updated\").nullable().optional(),\n logical_size: z.number().int().describe(\"The logical size of the branch data in bytes\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the branch (if transitioning)\").nullable().optional(),\n physical_size: z.number().int().describe(\"The physical size of the branch data in bytes\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The timestamp when the branch was created from parent\").nullable().optional(),\n}).passthrough().describe(\"Information about the restored branch.\");\nconst NeonRestoreSnapshot_EndpointInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the endpoint\").nullable().optional(),\n host: z.string().describe(\"The host address of the endpoint\").nullable().optional(),\n type: z.string().describe(\"The type of endpoint\").nullable().optional(),\n disabled: z.boolean().describe(\"Whether the endpoint is disabled\").nullable().optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for the endpoint\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID that this endpoint is connected to\").nullable().optional(),\n region_id: z.string().describe(\"The region where the endpoint is located\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the endpoint was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID that this endpoint belongs to\").nullable().optional(),\n proxy_host: z.string().describe(\"The proxy host for the endpoint\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the endpoint was last updated\").nullable().optional(),\n pooler_mode: z.string().describe(\"The connection pooler mode\").nullable().optional(),\n provisioner: z.string().describe(\"The provisioner used for this endpoint\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the endpoint\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state of the endpoint (if transitioning)\").nullable().optional(),\n pooler_enabled: z.boolean().describe(\"Whether connection pooling is enabled\").nullable().optional(),\n passwordless_access: z.boolean().describe(\"Whether passwordless access is enabled\").nullable().optional(),\n suspend_timeout_seconds: z.number().int().describe(\"Timeout in seconds before the compute is suspended\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable().optional(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable().optional(),\n}).passthrough().describe(\"Information about compute endpoints.\");\nconst NeonRestoreSnapshot_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation\").nullable().optional(),\n action: z.string().describe(\"The action being performed\").nullable().optional(),\n status: z.string().describe(\"The current status of the operation\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID associated with this operation\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the operation was created\").nullable().optional(),\n project_id: z.string().describe(\"The project ID associated with this operation\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated\").nullable().optional(),\n endpoint_id: z.string().describe(\"The endpoint ID associated with this operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"The number of failures encountered\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation.\");\nexport const NeonRestoreSnapshotOutput = z.object({\n branch: NeonRestoreSnapshot_BranchInfoSchema.nullable(),\n endpoints: z.array(NeonRestoreSnapshot_EndpointInfoSchema).describe(\"List of endpoints associated with the restored branch\").nullable().optional(),\n operations: z.array(NeonRestoreSnapshot_OperationInfoSchema).describe(\"List of operations performed during the restore\"),\n}).passthrough().describe(\"Response model containing the restored branch and operation details.\");\n\nexport const neonRestoreSnapshot: AppAction<\n typeof NeonRestoreSnapshotInput,\n typeof NeonRestoreSnapshotOutput,\n typeof neon.credential\n> = action(\"NEON_RESTORE_SNAPSHOT\", {\n slug: \"neon-restore-snapshot\",\n name: \"Restore snapshot to new branch\",\n description: \"Tool to restore a Neon snapshot to a new branch. Use when you need to recover data from a snapshot or create a branch from a previous point in time. This endpoint is currently in Beta.\",\n input: NeonRestoreSnapshotInput,\n output: NeonRestoreSnapshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CAC/J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uNAAuN,CAAC,CAAC,SAAS;CACxR,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;AACjM,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,M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AE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfuC,EAAE,OAAO;EAChD,QAAQ,qCAAqC,SAAS;EACtD,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/retrieve-account-consumption-history.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-account-consumption-history.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRetrieveAccountConsumptionHistoryInput = z.object({\n to: z.string().describe(\"Specify the end `date-time` for the consumption period. The `date-time` value is rounded according to the specified granularity. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year.\"),\n from: z.string().describe(\"Specify the start `date-time` for the consumption period. The `date-time` value is rounded according to the specified `granularity`. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year. The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.\"),\n org_id: z.string().describe(\"Specify the organization for which the consumption metrics should be returned. If this parameter is not provided, the endpoint will return the metrics for the authenticated user\\\"s account.\").optional(),\n granularity: z.enum([\"hourly\", \"daily\", \"monthly\"]).describe(\"Specify the granularity of consumption metrics. Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days, and 1 year, respectively.\"),\n include_v1_metrics: z.boolean().describe(\"Include metrics utilized in previous pricing models. - **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour for each project, which never decreases.\").optional(),\n}).describe(\"Request schema for `RetrieveAccountConsumptionHistory`\");\nconst NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema = z.object({\n timeframe_end: z.string().describe(\"End timestamp of the measurement interval in RFC 3339 format\").nullable(),\n timeframe_start: z.string().describe(\"Beginning timestamp of the measurement interval in RFC 3339 format\").nullable(),\n logical_size_bytes: z.number().int().describe(\"Space consumed by actual data content (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"The total amount of data written to all of a project's branches\").nullable(),\n active_time_seconds: z.number().int().describe(\"The number of seconds the project's computes have been active during the period\").nullable(),\n compute_time_seconds: z.number().int().describe(\"The number of CPU seconds used by the project's computes, including computes that have been deleted. For example: A compute that uses 1 CPU for 1 second equals 1; a compute that uses 2 CPUs simultaneously for 1 second equals 2\").nullable(),\n data_storage_bytes_hour: z.number().int().describe(\"Hourly consumption of storage capacity measured in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n logical_size_bytes_hour: z.number().int().describe(\"Hourly measurement of logical data size in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n synthetic_storage_size_bytes: z.number().int().describe(\"The total space occupied in storage. Combines the logical data size and Write-Ahead Log (WAL) size for all branches\").nullable(),\n}).passthrough().describe(\"Time-segmented consumption metrics within a billing period\");\nconst NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema = z.object({\n period_id: z.string().describe(\"Unique identifier for the billing period\").nullable(),\n consumption: z.array(NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema).describe(\"Time-segmented consumption data within the period\"),\n period_plan: z.string().describe(\"Plan type active during this period (e.g., 'scale', 'business', 'enterprise')\").nullable().optional(),\n period_start: z.string().describe(\"Start timestamp of the billing period in RFC 3339 format\").nullable().optional(),\n}).passthrough().describe(\"Billing period containing consumption metrics\");\nexport const NeonRetrieveAccountConsumptionHistoryOutput = z.object({\n periods: z.array(NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema).describe(\"Collection of billing periods containing consumption metrics\"),\n}).passthrough().describe(\"Response schema for `RetrieveAccountConsumptionHistory`\");\n\nexport const neonRetrieveAccountConsumptionHistory = action(\"NEON_RETRIEVE_ACCOUNT_CONSUMPTION_HISTORY\", {\n slug: \"neon-retrieve-account-consumption-history\",\n name: \"Retrieve account consumption history\",\n description: \"Retrieves the consumption history for a specified account within the Neon platform. This endpoint provides detailed information about resource usage and associated costs over a given time period. It's particularly useful for analyzing usage patterns, forecasting future resource needs, and managing costs in the Neon B2B SaaS integration platform. The endpoint returns data such as compute time, storage usage, API calls, and any other billable resources specific to the Neon service. Users can specify a date range and optionally filter by resource types to get a granular view of their consumption. This tool should be used when detailed analytics on resource utilization and spending are required, such as for budget planning, usage optimization, or billing reconciliation. It does not provide real-time usage data and may have a slight delay in reflecting the most recent consumption.\",\n input: NeonRetrieveAccountConsumptionHistoryInput,\n output: NeonRetrieveAccountConsumptionHistoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+fAA+f;CACvhB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,w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SAAS;AAC1L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,mDAAmD;CACjJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,SAASA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8DAA8D,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-account-consumption-history.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRetrieveAccountConsumptionHistoryInput = z.object({\n to: z.string().describe(\"Specify the end `date-time` for the consumption period. The `date-time` value is rounded according to the specified granularity. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year.\"),\n from: z.string().describe(\"Specify the start `date-time` for the consumption period. The `date-time` value is rounded according to the specified `granularity`. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year. The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.\"),\n org_id: z.string().describe(\"Specify the organization for which the consumption metrics should be returned. If this parameter is not provided, the endpoint will return the metrics for the authenticated user\\\"s account.\").optional(),\n granularity: z.enum([\"hourly\", \"daily\", \"monthly\"]).describe(\"Specify the granularity of consumption metrics. Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days, and 1 year, respectively.\"),\n include_v1_metrics: z.boolean().describe(\"Include metrics utilized in previous pricing models. - **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour for each project, which never decreases.\").optional(),\n}).describe(\"Request schema for `RetrieveAccountConsumptionHistory`\");\nconst NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema = z.object({\n timeframe_end: z.string().describe(\"End timestamp of the measurement interval in RFC 3339 format\").nullable(),\n timeframe_start: z.string().describe(\"Beginning timestamp of the measurement interval in RFC 3339 format\").nullable(),\n logical_size_bytes: z.number().int().describe(\"Space consumed by actual data content (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"The total amount of data written to all of a project's branches\").nullable(),\n active_time_seconds: z.number().int().describe(\"The number of seconds the project's computes have been active during the period\").nullable(),\n compute_time_seconds: z.number().int().describe(\"The number of CPU seconds used by the project's computes, including computes that have been deleted. For example: A compute that uses 1 CPU for 1 second equals 1; a compute that uses 2 CPUs simultaneously for 1 second equals 2\").nullable(),\n data_storage_bytes_hour: z.number().int().describe(\"Hourly consumption of storage capacity measured in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n logical_size_bytes_hour: z.number().int().describe(\"Hourly measurement of logical data size in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n synthetic_storage_size_bytes: z.number().int().describe(\"The total space occupied in storage. Combines the logical data size and Write-Ahead Log (WAL) size for all branches\").nullable(),\n}).passthrough().describe(\"Time-segmented consumption metrics within a billing period\");\nconst NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema = z.object({\n period_id: z.string().describe(\"Unique identifier for the billing period\").nullable(),\n consumption: z.array(NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema).describe(\"Time-segmented consumption data within the period\"),\n period_plan: z.string().describe(\"Plan type active during this period (e.g., 'scale', 'business', 'enterprise')\").nullable().optional(),\n period_start: z.string().describe(\"Start timestamp of the billing period in RFC 3339 format\").nullable().optional(),\n}).passthrough().describe(\"Billing period containing consumption metrics\");\nexport const NeonRetrieveAccountConsumptionHistoryOutput = z.object({\n periods: z.array(NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema).describe(\"Collection of billing periods containing consumption metrics\"),\n}).passthrough().describe(\"Response schema for `RetrieveAccountConsumptionHistory`\");\n\nexport const neonRetrieveAccountConsumptionHistory: AppAction<\n typeof NeonRetrieveAccountConsumptionHistoryInput,\n typeof NeonRetrieveAccountConsumptionHistoryOutput,\n typeof neon.credential\n> = action(\"NEON_RETRIEVE_ACCOUNT_CONSUMPTION_HISTORY\", {\n slug: \"neon-retrieve-account-consumption-history\",\n name: \"Retrieve account consumption history\",\n description: \"Retrieves the consumption history for a specified account within the Neon platform. This endpoint provides detailed information about resource usage and associated costs over a given time period. It's particularly useful for analyzing usage patterns, forecasting future resource needs, and managing costs in the Neon B2B SaaS integration platform. The endpoint returns data such as compute time, storage usage, API calls, and any other billable resources specific to the Neon service. Users can specify a date range and optionally filter by resource types to get a granular view of their consumption. This tool should be used when detailed analytics on resource utilization and spending are required, such as for budget planning, usage optimization, or billing reconciliation. It does not provide real-time usage data and may have a slight delay in reflecting the most recent consumption.\",\n input: NeonRetrieveAccountConsumptionHistoryInput,\n output: NeonRetrieveAccountCon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A,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrL,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AAC1L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,mDAAmD;CACjJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,SAASA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8DAA8D,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,wCAITC,eAAAA,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/retrieve-account-consumption-history.d.ts
@@ -30,13 +32,7 @@ declare const NeonRetrieveAccountConsumptionHistoryOutput: z.ZodObject<{
30
32
  period_start: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const neonRetrieveAccountConsumptionHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- to: string;
35
- from: string;
36
- granularity: "hourly" | "daily" | "monthly";
37
- org_id?: string | undefined;
38
- include_v1_metrics?: boolean | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const neonRetrieveAccountConsumptionHistory: AppAction<typeof NeonRetrieveAccountConsumptionHistoryInput, typeof NeonRetrieveAccountConsumptionHistoryOutput, typeof neon.credential>;
40
36
  //#endregion
41
37
  export { neonRetrieveAccountConsumptionHistory };
42
38
  //# sourceMappingURL=retrieve-account-consumption-history.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-account-consumption-history.d.cts","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;cAwB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
1
+ {"version":3,"file":"retrieve-account-consumption-history.d.cts","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;cAwB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { neon } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/retrieve-account-consumption-history.d.ts
@@ -30,13 +32,7 @@ declare const NeonRetrieveAccountConsumptionHistoryOutput: z.ZodObject<{
30
32
  period_start: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const neonRetrieveAccountConsumptionHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- to: string;
35
- from: string;
36
- granularity: "hourly" | "daily" | "monthly";
37
- org_id?: string | undefined;
38
- include_v1_metrics?: boolean | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const neonRetrieveAccountConsumptionHistory: AppAction<typeof NeonRetrieveAccountConsumptionHistoryInput, typeof NeonRetrieveAccountConsumptionHistoryOutput, typeof neon.credential>;
40
36
  //#endregion
41
37
  export { neonRetrieveAccountConsumptionHistory };
42
38
  //# sourceMappingURL=retrieve-account-consumption-history.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-account-consumption-history.d.mts","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;cAwB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
1
+ {"version":3,"file":"retrieve-account-consumption-history.d.mts","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;cAwB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/retrieve-account-consumption-history.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-account-consumption-history.mjs","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRetrieveAccountConsumptionHistoryInput = z.object({\n to: z.string().describe(\"Specify the end `date-time` for the consumption period. The `date-time` value is rounded according to the specified granularity. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year.\"),\n from: z.string().describe(\"Specify the start `date-time` for the consumption period. The `date-time` value is rounded according to the specified `granularity`. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year. The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.\"),\n org_id: z.string().describe(\"Specify the organization for which the consumption metrics should be returned. If this parameter is not provided, the endpoint will return the metrics for the authenticated user\\\"s account.\").optional(),\n granularity: z.enum([\"hourly\", \"daily\", \"monthly\"]).describe(\"Specify the granularity of consumption metrics. Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days, and 1 year, respectively.\"),\n include_v1_metrics: z.boolean().describe(\"Include metrics utilized in previous pricing models. - **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour for each project, which never decreases.\").optional(),\n}).describe(\"Request schema for `RetrieveAccountConsumptionHistory`\");\nconst NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema = z.object({\n timeframe_end: z.string().describe(\"End timestamp of the measurement interval in RFC 3339 format\").nullable(),\n timeframe_start: z.string().describe(\"Beginning timestamp of the measurement interval in RFC 3339 format\").nullable(),\n logical_size_bytes: z.number().int().describe(\"Space consumed by actual data content (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"The total amount of data written to all of a project's branches\").nullable(),\n active_time_seconds: z.number().int().describe(\"The number of seconds the project's computes have been active during the period\").nullable(),\n compute_time_seconds: z.number().int().describe(\"The number of CPU seconds used by the project's computes, including computes that have been deleted. For example: A compute that uses 1 CPU for 1 second equals 1; a compute that uses 2 CPUs simultaneously for 1 second equals 2\").nullable(),\n data_storage_bytes_hour: z.number().int().describe(\"Hourly consumption of storage capacity measured in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n logical_size_bytes_hour: z.number().int().describe(\"Hourly measurement of logical data size in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n synthetic_storage_size_bytes: z.number().int().describe(\"The total space occupied in storage. Combines the logical data size and Write-Ahead Log (WAL) size for all branches\").nullable(),\n}).passthrough().describe(\"Time-segmented consumption metrics within a billing period\");\nconst NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema = z.object({\n period_id: z.string().describe(\"Unique identifier for the billing period\").nullable(),\n consumption: z.array(NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema).describe(\"Time-segmented consumption data within the period\"),\n period_plan: z.string().describe(\"Plan type active during this period (e.g., 'scale', 'business', 'enterprise')\").nullable().optional(),\n period_start: z.string().describe(\"Start timestamp of the billing period in RFC 3339 format\").nullable().optional(),\n}).passthrough().describe(\"Billing period containing consumption metrics\");\nexport const NeonRetrieveAccountConsumptionHistoryOutput = z.object({\n periods: z.array(NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema).describe(\"Collection of billing periods containing consumption metrics\"),\n}).passthrough().describe(\"Response schema for `RetrieveAccountConsumptionHistory`\");\n\nexport const neonRetrieveAccountConsumptionHistory = action(\"NEON_RETRIEVE_ACCOUNT_CONSUMPTION_HISTORY\", {\n slug: \"neon-retrieve-account-consumption-history\",\n name: \"Retrieve account consumption history\",\n description: \"Retrieves the consumption history for a specified account within the Neon platform. This endpoint provides detailed information about resource usage and associated costs over a given time period. It's particularly useful for analyzing usage patterns, forecasting future resource needs, and managing costs in the Neon B2B SaaS integration platform. The endpoint returns data such as compute time, storage usage, API calls, and any other billable resources specific to the Neon service. Users can specify a date range and optionally filter by resource types to get a granular view of their consumption. This tool should be used when detailed analytics on resource utilization and spending are required, such as for budget planning, usage optimization, or billing reconciliation. It does not provide real-time usage data and may have a slight delay in reflecting the most recent consumption.\",\n input: NeonRetrieveAccountConsumptionHistoryInput,\n output: NeonRetrieveAccountConsumptionHistoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+fAA+f;CACvhB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wlBAAwlB;CAClnB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;CACtO,aAAa,EAAE,KAAK;EAAC;EAAU;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,6JAA6J;CAC1N,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;AACnP,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iEAAiE,EAAE,OAAO;CAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC5G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1H,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oOAAoO,CAAC,CAAC,SAAS;CAC/R,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrL,8BAA8B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AAC1L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,4DAA4D,EAAE,OAAO;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAa,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,mDAAmD;CACjJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8DAA8D,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve-account-consumption-history.mjs","names":[],"sources":["../../src/actions/retrieve-account-consumption-history.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { neon } from \"../app\";\n\nexport const NeonRetrieveAccountConsumptionHistoryInput = z.object({\n to: z.string().describe(\"Specify the end `date-time` for the consumption period. The `date-time` value is rounded according to the specified granularity. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year.\"),\n from: z.string().describe(\"Specify the start `date-time` for the consumption period. The `date-time` value is rounded according to the specified `granularity`. For example, `2024-03-15T15:30:00Z` for `daily` granularity will be rounded to `2024-03-15T00:00:00Z`. The specified `date-time` value must respect the specified granularity: - For `hourly`, consumption metrics are limited to the last 168 hours. - For `daily`, consumption metrics are limited to the last 60 days. - For `monthly`, consumption metrics are limited to the past year. The consumption history is available starting from `March 1, 2024, at 00:00:00 UTC`.\"),\n org_id: z.string().describe(\"Specify the organization for which the consumption metrics should be returned. If this parameter is not provided, the endpoint will return the metrics for the authenticated user\\\"s account.\").optional(),\n granularity: z.enum([\"hourly\", \"daily\", \"monthly\"]).describe(\"Specify the granularity of consumption metrics. Hourly, daily, and monthly metrics are available for the last 168 hours, 60 days, and 1 year, respectively.\"),\n include_v1_metrics: z.boolean().describe(\"Include metrics utilized in previous pricing models. - **data_storage_bytes_hour**: The sum of the maximum observed storage values for each hour for each project, which never decreases.\").optional(),\n}).describe(\"Request schema for `RetrieveAccountConsumptionHistory`\");\nconst NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema = z.object({\n timeframe_end: z.string().describe(\"End timestamp of the measurement interval in RFC 3339 format\").nullable(),\n timeframe_start: z.string().describe(\"Beginning timestamp of the measurement interval in RFC 3339 format\").nullable(),\n logical_size_bytes: z.number().int().describe(\"Space consumed by actual data content (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"The total amount of data written to all of a project's branches\").nullable(),\n active_time_seconds: z.number().int().describe(\"The number of seconds the project's computes have been active during the period\").nullable(),\n compute_time_seconds: z.number().int().describe(\"The number of CPU seconds used by the project's computes, including computes that have been deleted. For example: A compute that uses 1 CPU for 1 second equals 1; a compute that uses 2 CPUs simultaneously for 1 second equals 2\").nullable(),\n data_storage_bytes_hour: z.number().int().describe(\"Hourly consumption of storage capacity measured in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n logical_size_bytes_hour: z.number().int().describe(\"Hourly measurement of logical data size in byte-hours (optional, may require include_v1_metrics parameter)\").nullable().optional(),\n synthetic_storage_size_bytes: z.number().int().describe(\"The total space occupied in storage. Combines the logical data size and Write-Ahead Log (WAL) size for all branches\").nullable(),\n}).passthrough().describe(\"Time-segmented consumption metrics within a billing period\");\nconst NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema = z.object({\n period_id: z.string().describe(\"Unique identifier for the billing period\").nullable(),\n consumption: z.array(NeonRetrieveAccountConsumptionHistory_ConsumptionMetricsSchema).describe(\"Time-segmented consumption data within the period\"),\n period_plan: z.string().describe(\"Plan type active during this period (e.g., 'scale', 'business', 'enterprise')\").nullable().optional(),\n period_start: z.string().describe(\"Start timestamp of the billing period in RFC 3339 format\").nullable().optional(),\n}).passthrough().describe(\"Billing period containing consumption metrics\");\nexport const NeonRetrieveAccountConsumptionHistoryOutput = z.object({\n periods: z.array(NeonRetrieveAccountConsumptionHistory_BillingPeriodSchema).describe(\"Collection of billing periods containing consumption metrics\"),\n}).passthrough().describe(\"Response schema for `RetrieveAccountConsumptionHistory`\");\n\nexport const neonRetrieveAccountConsumptionHistory: AppAction<\n typeof NeonRetrieveAccountConsumptionHistoryInput,\n typeof NeonRetrieveAccountConsumptionHistoryOutput,\n typeof neon.credential\n> = action(\"NEON_RETRIEVE_ACCOUNT_CONSUMPTION_HISTORY\", {\n slug: \"neon-retrieve-account-consumption-history\",\n name: \"Retrieve account consumption history\",\n description: \"Retrieves the consumption history for a specified account within the Neon platform. This endpoint provides detailed information about resource usage and associated costs over a given time period. It's particularly useful for analyzing usage patterns, forecasting future resource needs, and managing costs in the Neon B2B SaaS integration platform. The endpoint returns data such as compute time, storage usage, API calls, and any other billable resources specific to the Neon service. Users can specify a date range and optionally filter by resource types to get a granular view of their consumption. This tool should be used when detailed analytics on resource utilization and spending are required, such as for budget planning, usage optimization, or billing reconciliation. It does not provide real-time usage data and may have a slight delay in reflecting the most recent consumption.\",\n input: NeonRetrieveAccountConsumptionHistoryInput,\n output: NeonRetrieveAccountConsumptionHistoryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6C,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+fAA+f;CACvhB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wlBAAwlB;CAClnB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;CACtO,aAAa,EAAE,KAAK;EAAC;EAAU;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,6JAA6J;CAC1N,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS;AACnP,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iEAAiE,EAAE,OAAO;CAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC5G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1H,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oOAAoO,CAAC,CAAC,SAAS;CAC/R,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrL,8BAA8B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AAC1L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,4DAA4D,EAAE,OAAO;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAa,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,mDAAmD;CACjJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,wCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyD,EAAE,OAAO,EAClE,SAAS,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8DAA8D,EACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/retrieve-all-regions.ts