@studiometa/forge-core 0.3.0 → 0.4.1

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 (203) hide show
  1. package/README.md +27 -3
  2. package/dist/context.d.ts +2 -5
  3. package/dist/context.d.ts.map +1 -1
  4. package/dist/executors/backups/create.d.ts +2 -3
  5. package/dist/executors/backups/create.d.ts.map +1 -1
  6. package/dist/executors/backups/delete.d.ts.map +1 -1
  7. package/dist/executors/backups/get.d.ts +5 -3
  8. package/dist/executors/backups/get.d.ts.map +1 -1
  9. package/dist/executors/backups/index.d.ts +2 -1
  10. package/dist/executors/backups/index.d.ts.map +1 -1
  11. package/dist/executors/backups/list.d.ts +4 -2
  12. package/dist/executors/backups/list.d.ts.map +1 -1
  13. package/dist/executors/backups/types.d.ts +8 -1
  14. package/dist/executors/backups/types.d.ts.map +1 -1
  15. package/dist/executors/backups/update.d.ts +7 -0
  16. package/dist/executors/backups/update.d.ts.map +1 -0
  17. package/dist/executors/certificates/activate.d.ts +1 -1
  18. package/dist/executors/certificates/activate.d.ts.map +1 -1
  19. package/dist/executors/certificates/create.d.ts +5 -3
  20. package/dist/executors/certificates/create.d.ts.map +1 -1
  21. package/dist/executors/certificates/delete.d.ts +1 -1
  22. package/dist/executors/certificates/delete.d.ts.map +1 -1
  23. package/dist/executors/certificates/get.d.ts +5 -3
  24. package/dist/executors/certificates/get.d.ts.map +1 -1
  25. package/dist/executors/certificates/index.d.ts +1 -2
  26. package/dist/executors/certificates/index.d.ts.map +1 -1
  27. package/dist/executors/certificates/types.d.ts +11 -14
  28. package/dist/executors/certificates/types.d.ts.map +1 -1
  29. package/dist/executors/commands/create.d.ts +1 -2
  30. package/dist/executors/commands/create.d.ts.map +1 -1
  31. package/dist/executors/commands/get.d.ts +4 -2
  32. package/dist/executors/commands/get.d.ts.map +1 -1
  33. package/dist/executors/commands/list.d.ts +4 -2
  34. package/dist/executors/commands/list.d.ts.map +1 -1
  35. package/dist/executors/daemons/create.d.ts +5 -3
  36. package/dist/executors/daemons/create.d.ts.map +1 -1
  37. package/dist/executors/daemons/delete.d.ts.map +1 -1
  38. package/dist/executors/daemons/get.d.ts +4 -2
  39. package/dist/executors/daemons/get.d.ts.map +1 -1
  40. package/dist/executors/daemons/index.d.ts +2 -1
  41. package/dist/executors/daemons/index.d.ts.map +1 -1
  42. package/dist/executors/daemons/list.d.ts +5 -3
  43. package/dist/executors/daemons/list.d.ts.map +1 -1
  44. package/dist/executors/daemons/restart.d.ts.map +1 -1
  45. package/dist/executors/daemons/types.d.ts +8 -1
  46. package/dist/executors/daemons/types.d.ts.map +1 -1
  47. package/dist/executors/daemons/update.d.ts +10 -0
  48. package/dist/executors/daemons/update.d.ts.map +1 -0
  49. package/dist/executors/database-users/create.d.ts +4 -2
  50. package/dist/executors/database-users/create.d.ts.map +1 -1
  51. package/dist/executors/database-users/delete.d.ts.map +1 -1
  52. package/dist/executors/database-users/get.d.ts +4 -2
  53. package/dist/executors/database-users/get.d.ts.map +1 -1
  54. package/dist/executors/database-users/index.d.ts +2 -1
  55. package/dist/executors/database-users/index.d.ts.map +1 -1
  56. package/dist/executors/database-users/list.d.ts +4 -2
  57. package/dist/executors/database-users/list.d.ts.map +1 -1
  58. package/dist/executors/database-users/types.d.ts +8 -1
  59. package/dist/executors/database-users/types.d.ts.map +1 -1
  60. package/dist/executors/database-users/update.d.ts +10 -0
  61. package/dist/executors/database-users/update.d.ts.map +1 -0
  62. package/dist/executors/databases/create.d.ts +4 -2
  63. package/dist/executors/databases/create.d.ts.map +1 -1
  64. package/dist/executors/databases/delete.d.ts.map +1 -1
  65. package/dist/executors/databases/get.d.ts +4 -2
  66. package/dist/executors/databases/get.d.ts.map +1 -1
  67. package/dist/executors/databases/list.d.ts +4 -2
  68. package/dist/executors/databases/list.d.ts.map +1 -1
  69. package/dist/executors/deployments/deploy-and-wait.d.ts +6 -5
  70. package/dist/executors/deployments/deploy-and-wait.d.ts.map +1 -1
  71. package/dist/executors/deployments/deploy.d.ts.map +1 -1
  72. package/dist/executors/deployments/get-log.d.ts.map +1 -1
  73. package/dist/executors/deployments/get-script.d.ts.map +1 -1
  74. package/dist/executors/deployments/index.d.ts +1 -2
  75. package/dist/executors/deployments/index.d.ts.map +1 -1
  76. package/dist/executors/deployments/list.d.ts +4 -2
  77. package/dist/executors/deployments/list.d.ts.map +1 -1
  78. package/dist/executors/deployments/types.d.ts +6 -8
  79. package/dist/executors/deployments/types.d.ts.map +1 -1
  80. package/dist/executors/deployments/update-script.d.ts.map +1 -1
  81. package/dist/executors/env/get.d.ts.map +1 -1
  82. package/dist/executors/env/update.d.ts.map +1 -1
  83. package/dist/executors/firewall-rules/create.d.ts +4 -2
  84. package/dist/executors/firewall-rules/create.d.ts.map +1 -1
  85. package/dist/executors/firewall-rules/delete.d.ts +3 -0
  86. package/dist/executors/firewall-rules/delete.d.ts.map +1 -1
  87. package/dist/executors/firewall-rules/get.d.ts +7 -2
  88. package/dist/executors/firewall-rules/get.d.ts.map +1 -1
  89. package/dist/executors/firewall-rules/list.d.ts +7 -2
  90. package/dist/executors/firewall-rules/list.d.ts.map +1 -1
  91. package/dist/executors/monitors/create.d.ts +7 -2
  92. package/dist/executors/monitors/create.d.ts.map +1 -1
  93. package/dist/executors/monitors/delete.d.ts +3 -0
  94. package/dist/executors/monitors/delete.d.ts.map +1 -1
  95. package/dist/executors/monitors/get.d.ts +7 -2
  96. package/dist/executors/monitors/get.d.ts.map +1 -1
  97. package/dist/executors/monitors/list.d.ts +7 -2
  98. package/dist/executors/monitors/list.d.ts.map +1 -1
  99. package/dist/executors/nginx/get.d.ts.map +1 -1
  100. package/dist/executors/nginx/update.d.ts.map +1 -1
  101. package/dist/executors/nginx-templates/create.d.ts +7 -2
  102. package/dist/executors/nginx-templates/create.d.ts.map +1 -1
  103. package/dist/executors/nginx-templates/delete.d.ts +3 -0
  104. package/dist/executors/nginx-templates/delete.d.ts.map +1 -1
  105. package/dist/executors/nginx-templates/get.d.ts +7 -2
  106. package/dist/executors/nginx-templates/get.d.ts.map +1 -1
  107. package/dist/executors/nginx-templates/list.d.ts +7 -2
  108. package/dist/executors/nginx-templates/list.d.ts.map +1 -1
  109. package/dist/executors/nginx-templates/update.d.ts +7 -2
  110. package/dist/executors/nginx-templates/update.d.ts.map +1 -1
  111. package/dist/executors/recipes/create.d.ts +7 -2
  112. package/dist/executors/recipes/create.d.ts.map +1 -1
  113. package/dist/executors/recipes/delete.d.ts +3 -0
  114. package/dist/executors/recipes/delete.d.ts.map +1 -1
  115. package/dist/executors/recipes/get.d.ts +7 -2
  116. package/dist/executors/recipes/get.d.ts.map +1 -1
  117. package/dist/executors/recipes/index.d.ts +2 -1
  118. package/dist/executors/recipes/index.d.ts.map +1 -1
  119. package/dist/executors/recipes/list.d.ts +7 -2
  120. package/dist/executors/recipes/list.d.ts.map +1 -1
  121. package/dist/executors/recipes/run.d.ts.map +1 -1
  122. package/dist/executors/recipes/types.d.ts +7 -1
  123. package/dist/executors/recipes/types.d.ts.map +1 -1
  124. package/dist/executors/recipes/update.d.ts +10 -0
  125. package/dist/executors/recipes/update.d.ts.map +1 -0
  126. package/dist/executors/redirect-rules/create.d.ts +4 -2
  127. package/dist/executors/redirect-rules/create.d.ts.map +1 -1
  128. package/dist/executors/redirect-rules/delete.d.ts +3 -0
  129. package/dist/executors/redirect-rules/delete.d.ts.map +1 -1
  130. package/dist/executors/redirect-rules/get.d.ts +7 -2
  131. package/dist/executors/redirect-rules/get.d.ts.map +1 -1
  132. package/dist/executors/redirect-rules/list.d.ts +7 -2
  133. package/dist/executors/redirect-rules/list.d.ts.map +1 -1
  134. package/dist/executors/scheduled-jobs/create.d.ts +5 -3
  135. package/dist/executors/scheduled-jobs/create.d.ts.map +1 -1
  136. package/dist/executors/scheduled-jobs/delete.d.ts.map +1 -1
  137. package/dist/executors/scheduled-jobs/get.d.ts +4 -2
  138. package/dist/executors/scheduled-jobs/get.d.ts.map +1 -1
  139. package/dist/executors/scheduled-jobs/list.d.ts +5 -3
  140. package/dist/executors/scheduled-jobs/list.d.ts.map +1 -1
  141. package/dist/executors/scheduled-jobs/types.d.ts +4 -0
  142. package/dist/executors/scheduled-jobs/types.d.ts.map +1 -1
  143. package/dist/executors/security-rules/create.d.ts +7 -2
  144. package/dist/executors/security-rules/create.d.ts.map +1 -1
  145. package/dist/executors/security-rules/delete.d.ts +3 -0
  146. package/dist/executors/security-rules/delete.d.ts.map +1 -1
  147. package/dist/executors/security-rules/get.d.ts +7 -2
  148. package/dist/executors/security-rules/get.d.ts.map +1 -1
  149. package/dist/executors/security-rules/index.d.ts +2 -1
  150. package/dist/executors/security-rules/index.d.ts.map +1 -1
  151. package/dist/executors/security-rules/list.d.ts +7 -2
  152. package/dist/executors/security-rules/list.d.ts.map +1 -1
  153. package/dist/executors/security-rules/types.d.ts +9 -1
  154. package/dist/executors/security-rules/types.d.ts.map +1 -1
  155. package/dist/executors/security-rules/update.d.ts +10 -0
  156. package/dist/executors/security-rules/update.d.ts.map +1 -0
  157. package/dist/executors/servers/create.d.ts +4 -2
  158. package/dist/executors/servers/create.d.ts.map +1 -1
  159. package/dist/executors/servers/delete.d.ts.map +1 -1
  160. package/dist/executors/servers/get.d.ts +4 -2
  161. package/dist/executors/servers/get.d.ts.map +1 -1
  162. package/dist/executors/servers/list.d.ts +4 -2
  163. package/dist/executors/servers/list.d.ts.map +1 -1
  164. package/dist/executors/servers/reboot.d.ts.map +1 -1
  165. package/dist/executors/servers/resolve.d.ts.map +1 -1
  166. package/dist/executors/sites/create.d.ts +4 -2
  167. package/dist/executors/sites/create.d.ts.map +1 -1
  168. package/dist/executors/sites/delete.d.ts.map +1 -1
  169. package/dist/executors/sites/get.d.ts +7 -2
  170. package/dist/executors/sites/get.d.ts.map +1 -1
  171. package/dist/executors/sites/index.d.ts +2 -1
  172. package/dist/executors/sites/index.d.ts.map +1 -1
  173. package/dist/executors/sites/list.d.ts +4 -2
  174. package/dist/executors/sites/list.d.ts.map +1 -1
  175. package/dist/executors/sites/resolve.d.ts +0 -3
  176. package/dist/executors/sites/resolve.d.ts.map +1 -1
  177. package/dist/executors/sites/types.d.ts +12 -1
  178. package/dist/executors/sites/types.d.ts.map +1 -1
  179. package/dist/executors/sites/update.d.ts +10 -0
  180. package/dist/executors/sites/update.d.ts.map +1 -0
  181. package/dist/executors/ssh-keys/create.d.ts +4 -2
  182. package/dist/executors/ssh-keys/create.d.ts.map +1 -1
  183. package/dist/executors/ssh-keys/delete.d.ts +3 -0
  184. package/dist/executors/ssh-keys/delete.d.ts.map +1 -1
  185. package/dist/executors/ssh-keys/get.d.ts +7 -2
  186. package/dist/executors/ssh-keys/get.d.ts.map +1 -1
  187. package/dist/executors/ssh-keys/list.d.ts +7 -2
  188. package/dist/executors/ssh-keys/list.d.ts.map +1 -1
  189. package/dist/executors/user/get.d.ts +4 -2
  190. package/dist/executors/user/get.d.ts.map +1 -1
  191. package/dist/index.d.ts +17 -16
  192. package/dist/index.d.ts.map +1 -1
  193. package/dist/index.js +1063 -125
  194. package/dist/index.js.map +1 -1
  195. package/dist/routes.d.ts +457 -0
  196. package/dist/routes.d.ts.map +1 -0
  197. package/dist/test-helpers.d.ts +21 -0
  198. package/dist/test-helpers.d.ts.map +1 -0
  199. package/package.json +4 -3
  200. package/dist/executors/certificates/list.d.ts +0 -8
  201. package/dist/executors/certificates/list.d.ts.map +0 -1
  202. package/dist/executors/deployments/get-output.d.ts +0 -7
  203. package/dist/executors/deployments/get-output.d.ts.map +0 -1
@@ -1,4 +1,7 @@
1
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
2
  import type { DeleteRecipeOptions } from "./types.ts";
3
+ /**
4
+ * Delete a recipe.
5
+ */
3
6
  export declare function deleteRecipe(options: DeleteRecipeOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
4
7
  //# sourceMappingURL=delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -1,5 +1,10 @@
1
- import type { ForgeRecipe } from "@studiometa/forge-api";
1
+ import type { RecipeAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetRecipeOptions } from "./types.ts";
4
- export declare function getRecipe(options: GetRecipeOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeRecipe>>;
4
+ /**
5
+ * Get a single recipe.
6
+ */
7
+ export declare function getRecipe(options: GetRecipeOptions, ctx: ExecutorContext): Promise<ExecutorResult<RecipeAttributes & {
8
+ id: number;
9
+ }>>;
5
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAsB,SAAS,CAC7B,OAAO,EAAE,gBAAgB,EACzB,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAOtC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAW5D"}
@@ -3,5 +3,6 @@ export { deleteRecipe } from "./delete.ts";
3
3
  export { getRecipe } from "./get.ts";
4
4
  export { listRecipes } from "./list.ts";
5
5
  export { runRecipe } from "./run.ts";
6
- export type { CreateRecipeOptions, DeleteRecipeOptions, GetRecipeOptions, ListRecipesOptions, RunRecipeOptions, } from "./types.ts";
6
+ export { updateRecipe } from "./update.ts";
7
+ export type { CreateRecipeOptions, DeleteRecipeOptions, GetRecipeOptions, ListRecipesOptions, RunRecipeOptions, UpdateRecipeOptions, } from "./types.ts";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
@@ -1,5 +1,10 @@
1
- import type { ForgeRecipe } from "@studiometa/forge-api";
1
+ import type { RecipeAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListRecipesOptions } from "./types.ts";
4
- export declare function listRecipes(_options: ListRecipesOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeRecipe[]>>;
4
+ /**
5
+ * List all recipes.
6
+ */
7
+ export declare function listRecipes(_options: ListRecipesOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<RecipeAttributes & {
8
+ id: number;
9
+ }>>>;
5
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAmB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAMxC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAWnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/run.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"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAW/B"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Option types for recipe executors.
3
3
  */
4
- import type { CreateRecipeData } from "@studiometa/forge-api";
4
+ import type { CreateRecipeData, UpdateRecipeData } from "@studiometa/forge-api";
5
5
  /**
6
6
  * Options for listing recipes.
7
7
  */
@@ -24,6 +24,12 @@ export interface CreateRecipeOptions extends CreateRecipeData {
24
24
  export interface DeleteRecipeOptions {
25
25
  id: string;
26
26
  }
27
+ /**
28
+ * Options for updating a recipe.
29
+ */
30
+ export interface UpdateRecipeOptions extends UpdateRecipeData {
31
+ id: string;
32
+ }
27
33
  /**
28
34
  * Options for running a recipe on servers.
29
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;CAElC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,kBAAkB;CAElC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,10 @@
1
+ import type { RecipeAttributes } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { UpdateRecipeOptions } from "./types.ts";
4
+ /**
5
+ * Update a recipe.
6
+ */
7
+ export declare function updateRecipe(options: UpdateRecipeOptions, ctx: ExecutorContext): Promise<ExecutorResult<RecipeAttributes & {
8
+ id: number;
9
+ }>>;
10
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/executors/recipes/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAa5D"}
@@ -1,5 +1,7 @@
1
- import type { ForgeRedirectRule } from "@studiometa/forge-api";
2
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
2
  import type { CreateRedirectRuleOptions } from "./types.ts";
4
- export declare function createRedirectRule(options: CreateRedirectRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeRedirectRule>>;
3
+ /**
4
+ * Create a redirect rule.
5
+ */
6
+ export declare function createRedirectRule(options: CreateRedirectRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
5
7
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAK/B"}
@@ -1,4 +1,7 @@
1
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
2
  import type { DeleteRedirectRuleOptions } from "./types.ts";
3
+ /**
4
+ * Delete a redirect rule.
5
+ */
3
6
  export declare function deleteRedirectRule(options: DeleteRedirectRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
4
7
  //# sourceMappingURL=delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-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,CAQ/B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAU/B"}
@@ -1,5 +1,10 @@
1
- import type { ForgeRedirectRule } from "@studiometa/forge-api";
1
+ import type { RedirectRuleAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetRedirectRuleOptions } from "./types.ts";
4
- export declare function getRedirectRule(options: GetRedirectRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeRedirectRule>>;
4
+ /**
5
+ * Get a single redirect rule.
6
+ */
7
+ export declare function getRedirectRule(options: GetRedirectRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<RedirectRuleAttributes & {
8
+ id: number;
9
+ }>>;
5
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWlE"}
@@ -1,5 +1,10 @@
1
- import type { ForgeRedirectRule } from "@studiometa/forge-api";
1
+ import type { RedirectRuleAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListRedirectRulesOptions } from "./types.ts";
4
- export declare function listRedirectRules(options: ListRedirectRulesOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeRedirectRule[]>>;
4
+ /**
5
+ * List redirect rules for a site.
6
+ */
7
+ export declare function listRedirectRules(options: ListRedirectRulesOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<RedirectRuleAttributes & {
8
+ id: number;
9
+ }>>>;
5
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAyB,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"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/redirect-rules/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,KAAK,CAAC,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAWzE"}
@@ -1,8 +1,10 @@
1
- import type { ForgeScheduledJob } from "@studiometa/forge-api";
1
+ import type { ScheduledJobAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateScheduledJobOptions } from "./types.ts";
4
4
  /**
5
- * Create a new scheduled job (cron).
5
+ * Create a scheduled job.
6
6
  */
7
- export declare function createScheduledJob(options: CreateScheduledJobOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeScheduledJob>>;
7
+ export declare function createScheduledJob(options: CreateScheduledJobOptions, ctx: ExecutorContext): Promise<ExecutorResult<ScheduledJobAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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,CAQ5C"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAclE"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/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"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAU/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeScheduledJob } from "@studiometa/forge-api";
1
+ import type { ScheduledJobAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetScheduledJobOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a specific scheduled job.
6
6
  */
7
- export declare function getScheduledJob(options: GetScheduledJobOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeScheduledJob>>;
7
+ export declare function getScheduledJob(options: GetScheduledJobOptions, ctx: ExecutorContext): Promise<ExecutorResult<ScheduledJobAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYlE"}
@@ -1,8 +1,10 @@
1
- import type { ForgeScheduledJob } from "@studiometa/forge-api";
1
+ import type { ScheduledJobAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListScheduledJobsOptions } from "./types.ts";
4
4
  /**
5
- * List scheduled jobs (cron) on a server.
5
+ * List scheduled jobs on a server.
6
6
  */
7
- export declare function listScheduledJobs(options: ListScheduledJobsOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeScheduledJob[]>>;
7
+ export declare function listScheduledJobs(options: ListScheduledJobsOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<ScheduledJobAttributes & {
8
+ id: number;
9
+ }>>>;
8
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAyB,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"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,KAAK,CAAC,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAYzE"}
@@ -7,6 +7,7 @@ import type { CreateScheduledJobData } from "@studiometa/forge-api";
7
7
  */
8
8
  export interface ListScheduledJobsOptions {
9
9
  server_id: string;
10
+ site_id?: string;
10
11
  }
11
12
  /**
12
13
  * Options for getting a single scheduled job.
@@ -14,12 +15,14 @@ export interface ListScheduledJobsOptions {
14
15
  export interface GetScheduledJobOptions {
15
16
  server_id: string;
16
17
  id: string;
18
+ site_id?: string;
17
19
  }
18
20
  /**
19
21
  * Options for creating a scheduled job.
20
22
  */
21
23
  export interface CreateScheduledJobOptions extends CreateScheduledJobData {
22
24
  server_id: string;
25
+ site_id?: string;
23
26
  }
24
27
  /**
25
28
  * Options for deleting a scheduled job.
@@ -27,5 +30,6 @@ export interface CreateScheduledJobOptions extends CreateScheduledJobData {
27
30
  export interface DeleteScheduledJobOptions {
28
31
  server_id: string;
29
32
  id: string;
33
+ site_id?: string;
30
34
  }
31
35
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/scheduled-jobs/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;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1,5 +1,10 @@
1
- import type { ForgeSecurityRule } from "@studiometa/forge-api";
1
+ import type { SecurityRuleAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateSecurityRuleOptions } from "./types.ts";
4
- export declare function createSecurityRule(options: CreateSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeSecurityRule>>;
4
+ /**
5
+ * Create a security rule.
6
+ */
7
+ export declare function createSecurityRule(options: CreateSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<SecurityRuleAttributes & {
8
+ id: number;
9
+ }>>;
5
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYlE"}
@@ -1,4 +1,7 @@
1
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
2
  import type { DeleteSecurityRuleOptions } from "./types.ts";
3
+ /**
4
+ * Delete a security rule.
5
+ */
3
6
  export declare function deleteSecurityRule(options: DeleteSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
4
7
  //# sourceMappingURL=delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/security-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,CAQ/B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAU/B"}
@@ -1,5 +1,10 @@
1
- import type { ForgeSecurityRule } from "@studiometa/forge-api";
1
+ import type { SecurityRuleAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetSecurityRuleOptions } from "./types.ts";
4
- export declare function getSecurityRule(options: GetSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeSecurityRule>>;
4
+ /**
5
+ * Get a single security rule.
6
+ */
7
+ export declare function getSecurityRule(options: GetSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<SecurityRuleAttributes & {
8
+ id: number;
9
+ }>>;
5
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,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"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWlE"}
@@ -2,5 +2,6 @@ export { createSecurityRule } from "./create.ts";
2
2
  export { deleteSecurityRule } from "./delete.ts";
3
3
  export { getSecurityRule } from "./get.ts";
4
4
  export { listSecurityRules } from "./list.ts";
5
- export type { CreateSecurityRuleOptions, DeleteSecurityRuleOptions, GetSecurityRuleOptions, ListSecurityRulesOptions, } from "./types.ts";
5
+ export { updateSecurityRule } from "./update.ts";
6
+ export type { CreateSecurityRuleOptions, DeleteSecurityRuleOptions, GetSecurityRuleOptions, ListSecurityRulesOptions, UpdateSecurityRuleOptions, } from "./types.ts";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/security-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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/security-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,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,YAAY,CAAC"}
@@ -1,5 +1,10 @@
1
- import type { ForgeSecurityRule } from "@studiometa/forge-api";
1
+ import type { SecurityRuleAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListSecurityRulesOptions } from "./types.ts";
4
- export declare function listSecurityRules(options: ListSecurityRulesOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeSecurityRule[]>>;
4
+ /**
5
+ * List security rules for a site.
6
+ */
7
+ export declare function listSecurityRules(options: ListSecurityRulesOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<SecurityRuleAttributes & {
8
+ id: number;
9
+ }>>>;
5
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAyB,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,CAS9C"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,KAAK,CAAC,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAWzE"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Option types for security rule executors.
3
3
  */
4
- import type { CreateSecurityRuleData } from "@studiometa/forge-api";
4
+ import type { CreateSecurityRuleData, UpdateSecurityRuleData } from "@studiometa/forge-api";
5
5
  /**
6
6
  * Options for listing security rules for a site.
7
7
  */
@@ -24,6 +24,14 @@ export interface CreateSecurityRuleOptions extends CreateSecurityRuleData {
24
24
  server_id: string;
25
25
  site_id: string;
26
26
  }
27
+ /**
28
+ * Options for updating a security rule.
29
+ */
30
+ export interface UpdateSecurityRuleOptions extends UpdateSecurityRuleData {
31
+ server_id: string;
32
+ site_id: string;
33
+ id: string;
34
+ }
27
35
  /**
28
36
  * Options for deleting a security rule.
29
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/security-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;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,10 @@
1
+ import type { SecurityRuleAttributes } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { UpdateSecurityRuleOptions } from "./types.ts";
4
+ /**
5
+ * Update a security rule.
6
+ */
7
+ export declare function updateSecurityRule(options: UpdateSecurityRuleOptions, ctx: ExecutorContext): Promise<ExecutorResult<SecurityRuleAttributes & {
8
+ id: number;
9
+ }>>;
10
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/executors/security-rules/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,sBAAsB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYlE"}
@@ -1,8 +1,10 @@
1
- import type { ForgeServer } from "@studiometa/forge-api";
1
+ import type { ServerAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateServerOptions } from "./types.ts";
4
4
  /**
5
5
  * Create a new server.
6
6
  */
7
- export declare function createServer(options: CreateServerOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeServer>>;
7
+ export declare function createServer(options: CreateServerOptions, ctx: ExecutorContext): Promise<ExecutorResult<ServerAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAOtC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAW5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeServer } from "@studiometa/forge-api";
1
+ import type { ServerAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetServerOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a specific server by ID.
6
6
  */
7
- export declare function getServer(options: GetServerOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeServer>>;
7
+ export declare function getServer(options: GetServerOptions, ctx: ExecutorContext): Promise<ExecutorResult<ServerAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,uBAAuB,CAAC;AACzE,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,WAAW,CAAC,CAAC,CAOtC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAW5D"}
@@ -1,8 +1,10 @@
1
- import type { ForgeServer } from "@studiometa/forge-api";
1
+ import type { ServerAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListServersOptions } from "./types.ts";
4
4
  /**
5
5
  * List all servers.
6
6
  */
7
- export declare function listServers(_options: ListServersOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeServer[]>>;
7
+ export declare function listServers(_options: ListServersOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<ServerAttributes & {
8
+ id: number;
9
+ }>>>;
8
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAmB,MAAM,uBAAuB,CAAC;AAC1E,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,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAOxC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,kBAAkB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAWnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"reboot.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/reboot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
1
+ {"version":3,"file":"reboot.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/reboot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAW/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/resolve.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAcxC"}
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../src/executors/servers/resolve.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIxE,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAmBxC"}
@@ -1,8 +1,10 @@
1
- import type { ForgeSite } from "@studiometa/forge-api";
1
+ import type { SiteAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateSiteOptions } from "./types.ts";
4
4
  /**
5
5
  * Create a new site on a server.
6
6
  */
7
- export declare function createSite(options: CreateSiteOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeSite>>;
7
+ export declare function createSite(options: CreateSiteOptions, ctx: ExecutorContext): Promise<ExecutorResult<SiteAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,uBAAuB,CAAC;AACrE,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,SAAS,CAAC,CAAC,CAQpC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAY1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/delete.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"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,CAS/B"}
@@ -1,8 +1,13 @@
1
- import type { ForgeSite } from "@studiometa/forge-api";
1
+ import type { SiteAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetSiteOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a specific site by ID.
6
+ *
7
+ * Uses the org-scoped path `/orgs/{slug}/sites/{siteId}` — the v2 API
8
+ * does not support GET on the server-scoped site path.
6
9
  */
7
- export declare function getSite(options: GetSiteOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeSite>>;
10
+ export declare function getSite(options: GetSiteOptions, ctx: ExecutorContext): Promise<ExecutorResult<SiteAttributes & {
11
+ id: number;
12
+ }>>;
8
13
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CASpC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAW1D"}
@@ -3,6 +3,7 @@ export { deleteSite } from "./delete.ts";
3
3
  export { getSite } from "./get.ts";
4
4
  export { listSites } from "./list.ts";
5
5
  export { resolveSites } from "./resolve.ts";
6
- export type { CreateSiteOptions, DeleteSiteOptions, GetSiteOptions, ListSitesOptions, } from "./types.ts";
6
+ export { updateSite } from "./update.ts";
7
+ export type { CreateSiteOptions, DeleteSiteOptions, GetSiteOptions, ListSitesOptions, UpdateSiteOptions, } from "./types.ts";
7
8
  export type { ResolveSitesOptions, ResolveSiteMatch, ResolveSiteResult } from "./resolve.ts";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/sites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}