@studiometa/forge-core 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +151 -0
  2. package/dist/constants.d.ts +13 -0
  3. package/dist/constants.d.ts.map +1 -0
  4. package/dist/context.d.ts +30 -0
  5. package/dist/context.d.ts.map +1 -0
  6. package/dist/executors/backups/create.d.ts +8 -0
  7. package/dist/executors/backups/create.d.ts.map +1 -0
  8. package/dist/executors/backups/delete.d.ts +7 -0
  9. package/dist/executors/backups/delete.d.ts.map +1 -0
  10. package/dist/executors/backups/get.d.ts +8 -0
  11. package/dist/executors/backups/get.d.ts.map +1 -0
  12. package/dist/executors/backups/index.d.ts +6 -0
  13. package/dist/executors/backups/index.d.ts.map +1 -0
  14. package/dist/executors/backups/list.d.ts +8 -0
  15. package/dist/executors/backups/list.d.ts.map +1 -0
  16. package/dist/executors/backups/types.d.ts +31 -0
  17. package/dist/executors/backups/types.d.ts.map +1 -0
  18. package/dist/executors/certificates/activate.d.ts +7 -0
  19. package/dist/executors/certificates/activate.d.ts.map +1 -0
  20. package/dist/executors/certificates/create.d.ts +8 -0
  21. package/dist/executors/certificates/create.d.ts.map +1 -0
  22. package/dist/executors/certificates/delete.d.ts +7 -0
  23. package/dist/executors/certificates/delete.d.ts.map +1 -0
  24. package/dist/executors/certificates/get.d.ts +8 -0
  25. package/dist/executors/certificates/get.d.ts.map +1 -0
  26. package/dist/executors/certificates/index.d.ts +7 -0
  27. package/dist/executors/certificates/index.d.ts.map +1 -0
  28. package/dist/executors/certificates/list.d.ts +8 -0
  29. package/dist/executors/certificates/list.d.ts.map +1 -0
  30. package/dist/executors/certificates/types.d.ts +43 -0
  31. package/dist/executors/certificates/types.d.ts.map +1 -0
  32. package/dist/executors/commands/create.d.ts +8 -0
  33. package/dist/executors/commands/create.d.ts.map +1 -0
  34. package/dist/executors/commands/get.d.ts +8 -0
  35. package/dist/executors/commands/get.d.ts.map +1 -0
  36. package/dist/executors/commands/index.d.ts +5 -0
  37. package/dist/executors/commands/index.d.ts.map +1 -0
  38. package/dist/executors/commands/list.d.ts +8 -0
  39. package/dist/executors/commands/list.d.ts.map +1 -0
  40. package/dist/executors/commands/types.d.ts +27 -0
  41. package/dist/executors/commands/types.d.ts.map +1 -0
  42. package/dist/executors/daemons/create.d.ts +8 -0
  43. package/dist/executors/daemons/create.d.ts.map +1 -0
  44. package/dist/executors/daemons/delete.d.ts +7 -0
  45. package/dist/executors/daemons/delete.d.ts.map +1 -0
  46. package/dist/executors/daemons/get.d.ts +8 -0
  47. package/dist/executors/daemons/get.d.ts.map +1 -0
  48. package/dist/executors/daemons/index.d.ts +7 -0
  49. package/dist/executors/daemons/index.d.ts.map +1 -0
  50. package/dist/executors/daemons/list.d.ts +8 -0
  51. package/dist/executors/daemons/list.d.ts.map +1 -0
  52. package/dist/executors/daemons/restart.d.ts +7 -0
  53. package/dist/executors/daemons/restart.d.ts.map +1 -0
  54. package/dist/executors/daemons/types.d.ts +38 -0
  55. package/dist/executors/daemons/types.d.ts.map +1 -0
  56. package/dist/executors/database-users/create.d.ts +8 -0
  57. package/dist/executors/database-users/create.d.ts.map +1 -0
  58. package/dist/executors/database-users/delete.d.ts +7 -0
  59. package/dist/executors/database-users/delete.d.ts.map +1 -0
  60. package/dist/executors/database-users/get.d.ts +8 -0
  61. package/dist/executors/database-users/get.d.ts.map +1 -0
  62. package/dist/executors/database-users/index.d.ts +6 -0
  63. package/dist/executors/database-users/index.d.ts.map +1 -0
  64. package/dist/executors/database-users/list.d.ts +8 -0
  65. package/dist/executors/database-users/list.d.ts.map +1 -0
  66. package/dist/executors/database-users/types.d.ts +31 -0
  67. package/dist/executors/database-users/types.d.ts.map +1 -0
  68. package/dist/executors/databases/create.d.ts +8 -0
  69. package/dist/executors/databases/create.d.ts.map +1 -0
  70. package/dist/executors/databases/delete.d.ts +7 -0
  71. package/dist/executors/databases/delete.d.ts.map +1 -0
  72. package/dist/executors/databases/get.d.ts +8 -0
  73. package/dist/executors/databases/get.d.ts.map +1 -0
  74. package/dist/executors/databases/index.d.ts +6 -0
  75. package/dist/executors/databases/index.d.ts.map +1 -0
  76. package/dist/executors/databases/list.d.ts +8 -0
  77. package/dist/executors/databases/list.d.ts.map +1 -0
  78. package/dist/executors/databases/types.d.ts +31 -0
  79. package/dist/executors/databases/types.d.ts.map +1 -0
  80. package/dist/executors/deployments/deploy-and-wait.d.ts +13 -0
  81. package/dist/executors/deployments/deploy-and-wait.d.ts.map +1 -0
  82. package/dist/executors/deployments/deploy.d.ts +7 -0
  83. package/dist/executors/deployments/deploy.d.ts.map +1 -0
  84. package/dist/executors/deployments/get-log.d.ts +7 -0
  85. package/dist/executors/deployments/get-log.d.ts.map +1 -0
  86. package/dist/executors/deployments/get-output.d.ts +7 -0
  87. package/dist/executors/deployments/get-output.d.ts.map +1 -0
  88. package/dist/executors/deployments/get-script.d.ts +7 -0
  89. package/dist/executors/deployments/get-script.d.ts.map +1 -0
  90. package/dist/executors/deployments/index.d.ts +9 -0
  91. package/dist/executors/deployments/index.d.ts.map +1 -0
  92. package/dist/executors/deployments/list.d.ts +8 -0
  93. package/dist/executors/deployments/list.d.ts.map +1 -0
  94. package/dist/executors/deployments/types.d.ts +72 -0
  95. package/dist/executors/deployments/types.d.ts.map +1 -0
  96. package/dist/executors/deployments/update-script.d.ts +7 -0
  97. package/dist/executors/deployments/update-script.d.ts.map +1 -0
  98. package/dist/executors/env/get.d.ts +7 -0
  99. package/dist/executors/env/get.d.ts.map +1 -0
  100. package/dist/executors/env/index.d.ts +4 -0
  101. package/dist/executors/env/index.d.ts.map +1 -0
  102. package/dist/executors/env/types.d.ts +19 -0
  103. package/dist/executors/env/types.d.ts.map +1 -0
  104. package/dist/executors/env/update.d.ts +7 -0
  105. package/dist/executors/env/update.d.ts.map +1 -0
  106. package/dist/executors/firewall-rules/create.d.ts +5 -0
  107. package/dist/executors/firewall-rules/create.d.ts.map +1 -0
  108. package/dist/executors/firewall-rules/delete.d.ts +4 -0
  109. package/dist/executors/firewall-rules/delete.d.ts.map +1 -0
  110. package/dist/executors/firewall-rules/get.d.ts +5 -0
  111. package/dist/executors/firewall-rules/get.d.ts.map +1 -0
  112. package/dist/executors/firewall-rules/index.d.ts +6 -0
  113. package/dist/executors/firewall-rules/index.d.ts.map +1 -0
  114. package/dist/executors/firewall-rules/list.d.ts +5 -0
  115. package/dist/executors/firewall-rules/list.d.ts.map +1 -0
  116. package/dist/executors/firewall-rules/types.d.ts +31 -0
  117. package/dist/executors/firewall-rules/types.d.ts.map +1 -0
  118. package/dist/executors/monitors/create.d.ts +5 -0
  119. package/dist/executors/monitors/create.d.ts.map +1 -0
  120. package/dist/executors/monitors/delete.d.ts +4 -0
  121. package/dist/executors/monitors/delete.d.ts.map +1 -0
  122. package/dist/executors/monitors/get.d.ts +5 -0
  123. package/dist/executors/monitors/get.d.ts.map +1 -0
  124. package/dist/executors/monitors/index.d.ts +6 -0
  125. package/dist/executors/monitors/index.d.ts.map +1 -0
  126. package/dist/executors/monitors/list.d.ts +5 -0
  127. package/dist/executors/monitors/list.d.ts.map +1 -0
  128. package/dist/executors/monitors/types.d.ts +31 -0
  129. package/dist/executors/monitors/types.d.ts.map +1 -0
  130. package/dist/executors/nginx/get.d.ts +7 -0
  131. package/dist/executors/nginx/get.d.ts.map +1 -0
  132. package/dist/executors/nginx/index.d.ts +4 -0
  133. package/dist/executors/nginx/index.d.ts.map +1 -0
  134. package/dist/executors/nginx/types.d.ts +19 -0
  135. package/dist/executors/nginx/types.d.ts.map +1 -0
  136. package/dist/executors/nginx/update.d.ts +7 -0
  137. package/dist/executors/nginx/update.d.ts.map +1 -0
  138. package/dist/executors/nginx-templates/create.d.ts +5 -0
  139. package/dist/executors/nginx-templates/create.d.ts.map +1 -0
  140. package/dist/executors/nginx-templates/delete.d.ts +4 -0
  141. package/dist/executors/nginx-templates/delete.d.ts.map +1 -0
  142. package/dist/executors/nginx-templates/get.d.ts +5 -0
  143. package/dist/executors/nginx-templates/get.d.ts.map +1 -0
  144. package/dist/executors/nginx-templates/index.d.ts +7 -0
  145. package/dist/executors/nginx-templates/index.d.ts.map +1 -0
  146. package/dist/executors/nginx-templates/list.d.ts +5 -0
  147. package/dist/executors/nginx-templates/list.d.ts.map +1 -0
  148. package/dist/executors/nginx-templates/types.d.ts +40 -0
  149. package/dist/executors/nginx-templates/types.d.ts.map +1 -0
  150. package/dist/executors/nginx-templates/update.d.ts +5 -0
  151. package/dist/executors/nginx-templates/update.d.ts.map +1 -0
  152. package/dist/executors/recipes/create.d.ts +5 -0
  153. package/dist/executors/recipes/create.d.ts.map +1 -0
  154. package/dist/executors/recipes/delete.d.ts +4 -0
  155. package/dist/executors/recipes/delete.d.ts.map +1 -0
  156. package/dist/executors/recipes/get.d.ts +5 -0
  157. package/dist/executors/recipes/get.d.ts.map +1 -0
  158. package/dist/executors/recipes/index.d.ts +7 -0
  159. package/dist/executors/recipes/index.d.ts.map +1 -0
  160. package/dist/executors/recipes/list.d.ts +5 -0
  161. package/dist/executors/recipes/list.d.ts.map +1 -0
  162. package/dist/executors/recipes/run.d.ts +7 -0
  163. package/dist/executors/recipes/run.d.ts.map +1 -0
  164. package/dist/executors/recipes/types.d.ts +34 -0
  165. package/dist/executors/recipes/types.d.ts.map +1 -0
  166. package/dist/executors/redirect-rules/create.d.ts +5 -0
  167. package/dist/executors/redirect-rules/create.d.ts.map +1 -0
  168. package/dist/executors/redirect-rules/delete.d.ts +4 -0
  169. package/dist/executors/redirect-rules/delete.d.ts.map +1 -0
  170. package/dist/executors/redirect-rules/get.d.ts +5 -0
  171. package/dist/executors/redirect-rules/get.d.ts.map +1 -0
  172. package/dist/executors/redirect-rules/index.d.ts +6 -0
  173. package/dist/executors/redirect-rules/index.d.ts.map +1 -0
  174. package/dist/executors/redirect-rules/list.d.ts +5 -0
  175. package/dist/executors/redirect-rules/list.d.ts.map +1 -0
  176. package/dist/executors/redirect-rules/types.d.ts +35 -0
  177. package/dist/executors/redirect-rules/types.d.ts.map +1 -0
  178. package/dist/executors/scheduled-jobs/create.d.ts +8 -0
  179. package/dist/executors/scheduled-jobs/create.d.ts.map +1 -0
  180. package/dist/executors/scheduled-jobs/delete.d.ts +7 -0
  181. package/dist/executors/scheduled-jobs/delete.d.ts.map +1 -0
  182. package/dist/executors/scheduled-jobs/get.d.ts +8 -0
  183. package/dist/executors/scheduled-jobs/get.d.ts.map +1 -0
  184. package/dist/executors/scheduled-jobs/index.d.ts +6 -0
  185. package/dist/executors/scheduled-jobs/index.d.ts.map +1 -0
  186. package/dist/executors/scheduled-jobs/list.d.ts +8 -0
  187. package/dist/executors/scheduled-jobs/list.d.ts.map +1 -0
  188. package/dist/executors/scheduled-jobs/types.d.ts +31 -0
  189. package/dist/executors/scheduled-jobs/types.d.ts.map +1 -0
  190. package/dist/executors/security-rules/create.d.ts +5 -0
  191. package/dist/executors/security-rules/create.d.ts.map +1 -0
  192. package/dist/executors/security-rules/delete.d.ts +4 -0
  193. package/dist/executors/security-rules/delete.d.ts.map +1 -0
  194. package/dist/executors/security-rules/get.d.ts +5 -0
  195. package/dist/executors/security-rules/get.d.ts.map +1 -0
  196. package/dist/executors/security-rules/index.d.ts +6 -0
  197. package/dist/executors/security-rules/index.d.ts.map +1 -0
  198. package/dist/executors/security-rules/list.d.ts +5 -0
  199. package/dist/executors/security-rules/list.d.ts.map +1 -0
  200. package/dist/executors/security-rules/types.d.ts +35 -0
  201. package/dist/executors/security-rules/types.d.ts.map +1 -0
  202. package/dist/executors/servers/create.d.ts +8 -0
  203. package/dist/executors/servers/create.d.ts.map +1 -0
  204. package/dist/executors/servers/delete.d.ts +7 -0
  205. package/dist/executors/servers/delete.d.ts.map +1 -0
  206. package/dist/executors/servers/get.d.ts +8 -0
  207. package/dist/executors/servers/get.d.ts.map +1 -0
  208. package/dist/executors/servers/index.d.ts +7 -0
  209. package/dist/executors/servers/index.d.ts.map +1 -0
  210. package/dist/executors/servers/list.d.ts +8 -0
  211. package/dist/executors/servers/list.d.ts.map +1 -0
  212. package/dist/executors/servers/reboot.d.ts +7 -0
  213. package/dist/executors/servers/reboot.d.ts.map +1 -0
  214. package/dist/executors/servers/types.d.ts +33 -0
  215. package/dist/executors/servers/types.d.ts.map +1 -0
  216. package/dist/executors/sites/create.d.ts +8 -0
  217. package/dist/executors/sites/create.d.ts.map +1 -0
  218. package/dist/executors/sites/delete.d.ts +7 -0
  219. package/dist/executors/sites/delete.d.ts.map +1 -0
  220. package/dist/executors/sites/get.d.ts +8 -0
  221. package/dist/executors/sites/get.d.ts.map +1 -0
  222. package/dist/executors/sites/index.d.ts +6 -0
  223. package/dist/executors/sites/index.d.ts.map +1 -0
  224. package/dist/executors/sites/list.d.ts +8 -0
  225. package/dist/executors/sites/list.d.ts.map +1 -0
  226. package/dist/executors/sites/types.d.ts +31 -0
  227. package/dist/executors/sites/types.d.ts.map +1 -0
  228. package/dist/executors/ssh-keys/create.d.ts +5 -0
  229. package/dist/executors/ssh-keys/create.d.ts.map +1 -0
  230. package/dist/executors/ssh-keys/delete.d.ts +4 -0
  231. package/dist/executors/ssh-keys/delete.d.ts.map +1 -0
  232. package/dist/executors/ssh-keys/get.d.ts +5 -0
  233. package/dist/executors/ssh-keys/get.d.ts.map +1 -0
  234. package/dist/executors/ssh-keys/index.d.ts +6 -0
  235. package/dist/executors/ssh-keys/index.d.ts.map +1 -0
  236. package/dist/executors/ssh-keys/list.d.ts +5 -0
  237. package/dist/executors/ssh-keys/list.d.ts.map +1 -0
  238. package/dist/executors/ssh-keys/types.d.ts +31 -0
  239. package/dist/executors/ssh-keys/types.d.ts.map +1 -0
  240. package/dist/executors/types.d.ts +18 -0
  241. package/dist/executors/types.d.ts.map +1 -0
  242. package/dist/executors/user/get.d.ts +8 -0
  243. package/dist/executors/user/get.d.ts.map +1 -0
  244. package/dist/executors/user/index.d.ts +3 -0
  245. package/dist/executors/user/index.d.ts.map +1 -0
  246. package/dist/executors/user/types.d.ts +9 -0
  247. package/dist/executors/user/types.d.ts.map +1 -0
  248. package/dist/index.d.ts +48 -0
  249. package/dist/index.d.ts.map +1 -0
  250. package/dist/index.js +1125 -0
  251. package/dist/index.js.map +1 -0
  252. package/dist/logger.d.ts +32 -0
  253. package/dist/logger.d.ts.map +1 -0
  254. package/package.json +34 -1
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Option types for daemon executors.
3
+ */
4
+ import type { CreateDaemonData } from "@studiometa/forge-api";
5
+ /**
6
+ * Options for listing daemons on a server.
7
+ */
8
+ export interface ListDaemonsOptions {
9
+ server_id: string;
10
+ }
11
+ /**
12
+ * Options for getting a single daemon.
13
+ */
14
+ export interface GetDaemonOptions {
15
+ server_id: string;
16
+ id: string;
17
+ }
18
+ /**
19
+ * Options for creating a daemon.
20
+ */
21
+ export interface CreateDaemonOptions extends CreateDaemonData {
22
+ server_id: string;
23
+ }
24
+ /**
25
+ * Options for deleting a daemon.
26
+ */
27
+ export interface DeleteDaemonOptions {
28
+ server_id: string;
29
+ id: string;
30
+ }
31
+ /**
32
+ * Options for restarting a daemon.
33
+ */
34
+ export interface RestartDaemonOptions {
35
+ server_id: string;
36
+ id: string;
37
+ }
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabaseUser } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { CreateDatabaseUserOptions } from "./types.ts";
4
+ /**
5
+ * Create a new database user.
6
+ */
7
+ export declare function createDatabaseUser(options: CreateDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabaseUser>>;
8
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAW5C"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeleteDatabaseUserOptions } from "./types.ts";
3
+ /**
4
+ * Delete a database user.
5
+ */
6
+ export declare function deleteDatabaseUser(options: DeleteDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
+ //# sourceMappingURL=delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabaseUser } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { GetDatabaseUserOptions } from "./types.ts";
4
+ /**
5
+ * Get a single database user.
6
+ */
7
+ export declare function getDatabaseUser(options: GetDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabaseUser>>;
8
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAS5C"}
@@ -0,0 +1,6 @@
1
+ export { createDatabaseUser } from "./create.ts";
2
+ export { deleteDatabaseUser } from "./delete.ts";
3
+ export { getDatabaseUser } from "./get.ts";
4
+ export { listDatabaseUsers } from "./list.ts";
5
+ export type { CreateDatabaseUserOptions, DeleteDatabaseUserOptions, GetDatabaseUserOptions, ListDatabaseUsersOptions, } from "./types.ts";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabaseUser } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { ListDatabaseUsersOptions } from "./types.ts";
4
+ /**
5
+ * List database users on a server.
6
+ */
7
+ export declare function listDatabaseUsers(options: ListDatabaseUsersOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabaseUser[]>>;
8
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,EACjC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAS9C"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Option types for database user executors.
3
+ */
4
+ import type { CreateDatabaseUserData } from "@studiometa/forge-api";
5
+ /**
6
+ * Options for listing database users on a server.
7
+ */
8
+ export interface ListDatabaseUsersOptions {
9
+ server_id: string;
10
+ }
11
+ /**
12
+ * Options for getting a single database user.
13
+ */
14
+ export interface GetDatabaseUserOptions {
15
+ server_id: string;
16
+ id: string;
17
+ }
18
+ /**
19
+ * Options for creating a database user.
20
+ */
21
+ export interface CreateDatabaseUserOptions extends CreateDatabaseUserData {
22
+ server_id: string;
23
+ }
24
+ /**
25
+ * Options for deleting a database user.
26
+ */
27
+ export interface DeleteDatabaseUserOptions {
28
+ server_id: string;
29
+ id: string;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabase } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { CreateDatabaseOptions } from "./types.ts";
4
+ /**
5
+ * Create a new database.
6
+ */
7
+ export declare function createDatabase(options: CreateDatabaseOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabase>>;
8
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAQxC"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeleteDatabaseOptions } from "./types.ts";
3
+ /**
4
+ * Delete a database.
5
+ */
6
+ export declare function deleteDatabase(options: DeleteDatabaseOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
+ //# sourceMappingURL=delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabase } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { GetDatabaseOptions } from "./types.ts";
4
+ /**
5
+ * Get a single database.
6
+ */
7
+ export declare function getDatabase(options: GetDatabaseOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabase>>;
8
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CASxC"}
@@ -0,0 +1,6 @@
1
+ export { createDatabase } from "./create.ts";
2
+ export { deleteDatabase } from "./delete.ts";
3
+ export { getDatabase } from "./get.ts";
4
+ export { listDatabases } from "./list.ts";
5
+ export type { CreateDatabaseOptions, DeleteDatabaseOptions, GetDatabaseOptions, ListDatabasesOptions, } from "./types.ts";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDatabase } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { ListDatabasesOptions } from "./types.ts";
4
+ /**
5
+ * List databases on a server.
6
+ */
7
+ export declare function listDatabases(options: ListDatabasesOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabase[]>>;
8
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD;;GAEG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC,CAS1C"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Option types for database executors.
3
+ */
4
+ import type { CreateDatabaseData } from "@studiometa/forge-api";
5
+ /**
6
+ * Options for listing databases on a server.
7
+ */
8
+ export interface ListDatabasesOptions {
9
+ server_id: string;
10
+ }
11
+ /**
12
+ * Options for getting a single database.
13
+ */
14
+ export interface GetDatabaseOptions {
15
+ server_id: string;
16
+ id: string;
17
+ }
18
+ /**
19
+ * Options for creating a database.
20
+ */
21
+ export interface CreateDatabaseOptions extends CreateDatabaseData {
22
+ server_id: string;
23
+ }
24
+ /**
25
+ * Options for deleting a database.
26
+ */
27
+ export interface DeleteDatabaseOptions {
28
+ server_id: string;
29
+ id: string;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/databases/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,13 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeploySiteAndWaitOptions, DeployResult } from "./types.ts";
3
+ /**
4
+ * Trigger a deployment and wait for it to complete.
5
+ *
6
+ * 1. POSTs to the deploy endpoint.
7
+ * 2. Polls GET /servers/{id}/sites/{site_id} every `poll_interval_ms` ms.
8
+ * 3. When `deployment_status` becomes null the deploy is done.
9
+ * 4. Fetches the deployment log.
10
+ * 5. Checks the most recent deployment status to determine success/failure.
11
+ */
12
+ export declare function deploySiteAndWait(options: DeploySiteAndWaitOptions, ctx: ExecutorContext): Promise<ExecutorResult<DeployResult>>;
13
+ //# sourceMappingURL=deploy-and-wait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-and-wait.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/deploy-and-wait.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzE;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,EACjC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CA2EvC"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeploySiteOptions } from "./types.ts";
3
+ /**
4
+ * Trigger a deployment for a site.
5
+ */
6
+ export declare function deploySite(options: DeploySiteOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;GAEG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { GetDeploymentLogOptions } from "./types.ts";
3
+ /**
4
+ * Get the deployment log for a site.
5
+ */
6
+ export declare function getDeploymentLog(options: GetDeploymentLogOptions, ctx: ExecutorContext): Promise<ExecutorResult<string>>;
7
+ //# sourceMappingURL=get-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-log.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/get-log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,EAChC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAKjC"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { GetDeploymentOutputOptions } from "./types.ts";
3
+ /**
4
+ * Get the output of a deployment.
5
+ */
6
+ export declare function getDeploymentOutput(options: GetDeploymentOutputOptions, ctx: ExecutorContext): Promise<ExecutorResult<string>>;
7
+ //# sourceMappingURL=get-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-output.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/get-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,EACnC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAQjC"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { GetDeploymentScriptOptions } from "./types.ts";
3
+ /**
4
+ * Get the deployment script for a site.
5
+ */
6
+ export declare function getDeploymentScript(options: GetDeploymentScriptOptions, ctx: ExecutorContext): Promise<ExecutorResult<string>>;
7
+ //# sourceMappingURL=get-script.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-script.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/get-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,EACnC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAQjC"}
@@ -0,0 +1,9 @@
1
+ export { deploySite } from "./deploy.ts";
2
+ export { deploySiteAndWait } from "./deploy-and-wait.ts";
3
+ export { getDeploymentLog } from "./get-log.ts";
4
+ export { getDeploymentOutput } from "./get-output.ts";
5
+ export { getDeploymentScript } from "./get-script.ts";
6
+ export { listDeployments } from "./list.ts";
7
+ export { updateDeploymentScript } from "./update-script.ts";
8
+ export type { DeployResult, DeploySiteAndWaitOptions, DeploySiteOptions, GetDeploymentLogOptions, GetDeploymentOutputOptions, GetDeploymentScriptOptions, ListDeploymentsOptions, UpdateDeploymentScriptOptions, } from "./types.ts";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EACV,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ForgeDeployment } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { ListDeploymentsOptions } from "./types.ts";
4
+ /**
5
+ * List all deployments for a site.
6
+ */
7
+ export declare function listDeployments(options: ListDeploymentsOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDeployment[]>>;
8
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC,CAAC,CAS5C"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Option types for deployment executors.
3
+ */
4
+ /**
5
+ * Options for listing deployments for a site.
6
+ */
7
+ export interface ListDeploymentsOptions {
8
+ server_id: string;
9
+ site_id: string;
10
+ }
11
+ /**
12
+ * Options for triggering a deployment.
13
+ */
14
+ export interface DeploySiteOptions {
15
+ server_id: string;
16
+ site_id: string;
17
+ }
18
+ /**
19
+ * Options for getting deployment output.
20
+ */
21
+ export interface GetDeploymentOutputOptions {
22
+ server_id: string;
23
+ site_id: string;
24
+ deployment_id: string;
25
+ }
26
+ /**
27
+ * Options for getting the deployment script.
28
+ */
29
+ export interface GetDeploymentScriptOptions {
30
+ server_id: string;
31
+ site_id: string;
32
+ }
33
+ /**
34
+ * Options for updating the deployment script.
35
+ */
36
+ export interface UpdateDeploymentScriptOptions {
37
+ server_id: string;
38
+ site_id: string;
39
+ content: string;
40
+ }
41
+ /**
42
+ * Options for getting the deployment log.
43
+ */
44
+ export interface GetDeploymentLogOptions {
45
+ server_id: string;
46
+ site_id: string;
47
+ }
48
+ /**
49
+ * Options for deploying a site and waiting for completion.
50
+ */
51
+ export interface DeploySiteAndWaitOptions {
52
+ server_id: string;
53
+ site_id: string;
54
+ /** Polling interval in milliseconds. Default: 3000 */
55
+ poll_interval_ms?: number;
56
+ /** Timeout in milliseconds. Default: 600000 (10 min) */
57
+ timeout_ms?: number;
58
+ /** Called on each poll iteration with current status and elapsed time. */
59
+ onProgress?: (update: {
60
+ status: string;
61
+ elapsed_ms: number;
62
+ }) => void;
63
+ }
64
+ /**
65
+ * Result of the deploySiteAndWait executor.
66
+ */
67
+ export interface DeployResult {
68
+ status: "success" | "failed";
69
+ log: string;
70
+ elapsed_ms: number;
71
+ }
72
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACvE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { UpdateDeploymentScriptOptions } from "./types.ts";
3
+ /**
4
+ * Update the deployment script for a site.
5
+ */
6
+ export declare function updateDeploymentScript(options: UpdateDeploymentScriptOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
+ //# sourceMappingURL=update-script.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-script.d.ts","sourceRoot":"","sources":["../../../src/executors/deployments/update-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAEhE;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,6BAA6B,EACtC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAQ/B"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { GetEnvOptions } from "./types.ts";
3
+ /**
4
+ * Get environment variables for a site.
5
+ */
6
+ export declare function getEnv(options: GetEnvOptions, ctx: ExecutorContext): Promise<ExecutorResult<string>>;
7
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/env/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,wBAAsB,MAAM,CAC1B,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAQjC"}
@@ -0,0 +1,4 @@
1
+ export { getEnv } from "./get.ts";
2
+ export { updateEnv } from "./update.ts";
3
+ export type { GetEnvOptions, UpdateEnvOptions } from "./types.ts";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/env/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Option types for environment variable executors.
3
+ */
4
+ /**
5
+ * Options for getting environment variables for a site.
6
+ */
7
+ export interface GetEnvOptions {
8
+ server_id: string;
9
+ site_id: string;
10
+ }
11
+ /**
12
+ * Options for updating environment variables for a site.
13
+ */
14
+ export interface UpdateEnvOptions {
15
+ server_id: string;
16
+ site_id: string;
17
+ content: string;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/env/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { UpdateEnvOptions } from "./types.ts";
3
+ /**
4
+ * Update environment variables for a site.
5
+ */
6
+ export declare function updateEnv(options: UpdateEnvOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/executors/env/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;GAEG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE,gBAAgB,EACzB,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAQ/B"}
@@ -0,0 +1,5 @@
1
+ import type { ForgeFirewallRule } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { CreateFirewallRuleOptions } from "./types.ts";
4
+ export declare function createFirewallRule(options: CreateFirewallRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeFirewallRule>>;
5
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAW5C"}
@@ -0,0 +1,4 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeleteFirewallRuleOptions } from "./types.ts";
3
+ export declare function deleteFirewallRule(options: DeleteFirewallRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
4
+ //# sourceMappingURL=delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAE5D,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -0,0 +1,5 @@
1
+ import type { ForgeFirewallRule } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { GetFirewallRuleOptions } from "./types.ts";
4
+ export declare function getFirewallRule(options: GetFirewallRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeFirewallRule>>;
5
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,wBAAsB,eAAe,CACnC,OAAO,EAAE,sBAAsB,EAC/B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAS5C"}
@@ -0,0 +1,6 @@
1
+ export { createFirewallRule } from "./create.ts";
2
+ export { deleteFirewallRule } from "./delete.ts";
3
+ export { getFirewallRule } from "./get.ts";
4
+ export { listFirewallRules } from "./list.ts";
5
+ export type { CreateFirewallRuleOptions, DeleteFirewallRuleOptions, GetFirewallRuleOptions, ListFirewallRulesOptions, } from "./types.ts";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ForgeFirewallRule } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { ListFirewallRulesOptions } from "./types.ts";
4
+ export declare function listFirewallRules(options: ListFirewallRulesOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeFirewallRule[]>>;
5
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,EACjC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAQ9C"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Option types for firewall rule executors.
3
+ */
4
+ import type { CreateFirewallRuleData } from "@studiometa/forge-api";
5
+ /**
6
+ * Options for listing firewall rules on a server.
7
+ */
8
+ export interface ListFirewallRulesOptions {
9
+ server_id: string;
10
+ }
11
+ /**
12
+ * Options for getting a single firewall rule.
13
+ */
14
+ export interface GetFirewallRuleOptions {
15
+ server_id: string;
16
+ id: string;
17
+ }
18
+ /**
19
+ * Options for creating a firewall rule.
20
+ */
21
+ export interface CreateFirewallRuleOptions extends CreateFirewallRuleData {
22
+ server_id: string;
23
+ }
24
+ /**
25
+ * Options for deleting a firewall rule.
26
+ */
27
+ export interface DeleteFirewallRuleOptions {
28
+ server_id: string;
29
+ id: string;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/firewall-rules/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,5 @@
1
+ import type { ForgeMonitor } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { CreateMonitorOptions } from "./types.ts";
4
+ export declare function createMonitor(options: CreateMonitorOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeMonitor>>;
5
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/monitors/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAmB,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAsB,aAAa,CACjC,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAQvC"}
@@ -0,0 +1,4 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { DeleteMonitorOptions } from "./types.ts";
3
+ export declare function deleteMonitor(options: DeleteMonitorOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
4
+ //# sourceMappingURL=delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/monitors/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAsB,aAAa,CACjC,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}