@studiometa/forge-core 0.2.5 → 0.4.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 (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
package/README.md CHANGED
@@ -13,12 +13,13 @@ Executors are pure functions with dependency injection via `ExecutorContext`:
13
13
  import { listServers, createTestExecutorContext } from "@studiometa/forge-core";
14
14
 
15
15
  const ctx = createTestExecutorContext({
16
+ organizationSlug: "my-org",
16
17
  client: mockClient,
17
18
  });
18
19
 
19
20
  const result = await listServers({}, ctx);
20
21
  console.log(result.text); // "2 server(s): ..."
21
- console.log(result.data); // ForgeServer[]
22
+ console.log(result.data); // Array<ServerAttributes & { id: number }>
22
23
  ```
23
24
 
24
25
  ## Constants
@@ -67,7 +68,7 @@ import { RESOURCES, ACTIONS } from "@studiometa/forge-core";
67
68
 
68
69
  ### Certificates
69
70
 
70
- - `listCertificates`, `getCertificate`, `createCertificate`, `deleteCertificate`, `activateCertificate`
71
+ - `getCertificate`, `createCertificate`, `deleteCertificate`, `activateCertificate` (per-domain in v2 — requires `domain_id`)
71
72
 
72
73
  ### Databases
73
74
 
@@ -127,6 +128,28 @@ import { RESOURCES, ACTIONS } from "@studiometa/forge-core";
127
128
 
128
129
  ## Utilities
129
130
 
131
+ ### Route Registry (`ROUTES`)
132
+
133
+ Typed route definitions for all Forge API endpoints. Executors use `request()` instead of manual URL construction:
134
+
135
+ ```typescript
136
+ import { request } from "@studiometa/forge-core";
137
+ import { ROUTES } from "@studiometa/forge-core";
138
+
139
+ // request() builds the URL, makes the call, and returns typed data
140
+ const servers = await request(ROUTES.servers.list, ctx, {});
141
+ const site = await request(ROUTES.sites.get, ctx, { server_id: 123, site_id: 456 });
142
+ ```
143
+
144
+ For lower-level URL building without making the request:
145
+
146
+ ```typescript
147
+ import { buildUrl } from "@studiometa/forge-core";
148
+
149
+ const url = buildUrl(ROUTES.servers.get, ctx, { server_id: 123 });
150
+ // → "/orgs/my-org/servers/123"
151
+ ```
152
+
130
153
  ### `matchByName(items, query, getName)`
131
154
 
132
155
  Case-insensitive exact and partial name matching — used internally by `resolveServers` and `resolveSites`, but exported for reuse:
@@ -188,8 +211,9 @@ const ctx = createTestExecutorContext();
188
211
 
189
212
  // Override specific methods
190
213
  const ctx = createTestExecutorContext({
214
+ organizationSlug: "test-org",
191
215
  client: {
192
- get: async () => ({ servers: [{ id: 1, name: "test" }] }),
216
+ get: async () => ({ data: [] }),
193
217
  } as never,
194
218
  });
195
219
  ```
package/dist/context.d.ts CHANGED
@@ -8,6 +8,8 @@ import type { HttpClient } from "@studiometa/forge-api";
8
8
  export interface ExecutorContext {
9
9
  /** HTTP client for Forge API calls. */
10
10
  client: HttpClient;
11
+ /** Organization slug for v2 API (required when client targets v2). */
12
+ organizationSlug?: string;
11
13
  }
12
14
  /**
13
15
  * Result of an executor function.
@@ -15,11 +17,6 @@ export interface ExecutorContext {
15
17
  export interface ExecutorResult<T> {
16
18
  /** The response data. */
17
19
  data: T;
18
- /** Pagination metadata (for list operations). */
19
- meta?: {
20
- total_count?: number;
21
- current_page?: number;
22
- };
23
20
  }
24
21
  /**
25
22
  * Create a test executor context with a mock HTTP client.
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,yBAAyB;IACzB,IAAI,EAAE,CAAC,CAAC;IACR,iDAAiD;IACjD,IAAI,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,GAAE,OAAO,CAAC,eAAe,CAAM,GACvC,eAAe,CAejB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAC;IACnB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,yBAAyB;IACzB,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,GAAE,OAAO,CAAC,eAAe,CAAM,GACvC,eAAe,CAejB"}
@@ -1,8 +1,7 @@
1
- import type { ForgeBackupConfig } from "@studiometa/forge-api";
2
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
2
  import type { CreateBackupConfigOptions } from "./types.ts";
4
3
  /**
5
- * Create a new backup configuration.
4
+ * Create a backup configuration.
6
5
  */
7
- export declare function createBackupConfig(options: CreateBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeBackupConfig>>;
6
+ export declare function createBackupConfig(options: CreateBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
8
7
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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/backups/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,CAM/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeBackupConfig } from "@studiometa/forge-api";
1
+ import type { BackupConfigAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetBackupConfigOptions } from "./types.ts";
4
4
  /**
5
- * Get a specific backup configuration.
5
+ * Get a single backup configuration.
6
6
  */
7
- export declare function getBackupConfig(options: GetBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeBackupConfig>>;
7
+ export declare function getBackupConfig(options: GetBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<BackupConfigAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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,6 +1,7 @@
1
1
  export { createBackupConfig } from "./create.ts";
2
2
  export { deleteBackupConfig } from "./delete.ts";
3
+ export { updateBackupConfig } from "./update.ts";
3
4
  export { getBackupConfig } from "./get.ts";
4
5
  export { listBackupConfigs } from "./list.ts";
5
- export type { CreateBackupConfigOptions, DeleteBackupConfigOptions, GetBackupConfigOptions, ListBackupConfigsOptions, } from "./types.ts";
6
+ export type { CreateBackupConfigOptions, DeleteBackupConfigOptions, UpdateBackupConfigOptions, GetBackupConfigOptions, ListBackupConfigsOptions, } from "./types.ts";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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/backups/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,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,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
@@ -1,8 +1,10 @@
1
- import type { ForgeBackupConfig } from "@studiometa/forge-api";
1
+ import type { BackupConfigAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListBackupConfigsOptions } from "./types.ts";
4
4
  /**
5
5
  * List backup configurations for a server.
6
6
  */
7
- export declare function listBackupConfigs(options: ListBackupConfigsOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeBackupConfig[]>>;
7
+ export declare function listBackupConfigs(options: ListBackupConfigsOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<BackupConfigAttributes & {
8
+ id: number;
9
+ }>>>;
8
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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 backup configuration executors.
3
3
  */
4
- import type { CreateBackupConfigData } from "@studiometa/forge-api";
4
+ import type { CreateBackupConfigData, UpdateBackupConfigData } from "@studiometa/forge-api";
5
5
  /**
6
6
  * Options for listing backup configurations for a server.
7
7
  */
@@ -21,6 +21,13 @@ export interface GetBackupConfigOptions {
21
21
  export interface CreateBackupConfigOptions extends CreateBackupConfigData {
22
22
  server_id: string;
23
23
  }
24
+ /**
25
+ * Options for updating a backup configuration.
26
+ */
27
+ export interface UpdateBackupConfigOptions extends UpdateBackupConfigData {
28
+ server_id: string;
29
+ id: string;
30
+ }
24
31
  /**
25
32
  * Options for deleting a backup configuration.
26
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/backups/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/backups/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;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,yBAA0B,SAAQ,sBAAsB;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,7 @@
1
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
+ import type { UpdateBackupConfigOptions } from "./types.ts";
3
+ /**
4
+ * Update a backup configuration.
5
+ */
6
+ export declare function updateBackupConfig(options: UpdateBackupConfigOptions, 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/backups/update.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,7 +1,7 @@
1
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
2
  import type { ActivateCertificateOptions } from "./types.ts";
3
3
  /**
4
- * Activate an SSL certificate.
4
+ * Activate the SSL certificate for a domain.
5
5
  */
6
6
  export declare function activateCertificate(options: ActivateCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
7
  //# sourceMappingURL=activate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"activate.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/activate.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,IAAI,CAAC,CAAC,CAS/B"}
1
+ {"version":3,"file":"activate.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/activate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,IAAI,CAAC,CAAC,CAW/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeCertificate } from "@studiometa/forge-api";
1
+ import type { CertificateAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateCertificateOptions } from "./types.ts";
4
4
  /**
5
- * Create a new SSL certificate.
5
+ * Create an SSL certificate for a domain.
6
6
  */
7
- export declare function createCertificate(options: CreateCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeCertificate>>;
7
+ export declare function createCertificate(options: CreateCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<CertificateAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACnF,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,gBAAgB,CAAC,CAAC,CAW3C"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAMnE,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,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYjE"}
@@ -1,7 +1,7 @@
1
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
2
2
  import type { DeleteCertificateOptions } from "./types.ts";
3
3
  /**
4
- * Delete an SSL certificate.
4
+ * Delete the SSL certificate for a domain.
5
5
  */
6
6
  export declare function deleteCertificate(options: DeleteCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
7
7
  //# sourceMappingURL=delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/delete.ts"],"names":[],"mappings":"AAAA,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,IAAI,CAAC,CAAC,CAQ/B"}
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/delete.ts"],"names":[],"mappings":"AAAA,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,IAAI,CAAC,CAAC,CAU/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeCertificate } from "@studiometa/forge-api";
1
+ import type { CertificateAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetCertificateOptions } from "./types.ts";
4
4
  /**
5
- * Get a single SSL certificate.
5
+ * Get the SSL certificate for a domain.
6
6
  */
7
- export declare function getCertificate(options: GetCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeCertificate>>;
7
+ export declare function getCertificate(options: GetCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<CertificateAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACnF,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,gBAAgB,CAAC,CAAC,CAS3C"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAMnE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWjE"}
@@ -2,6 +2,5 @@ export { activateCertificate } from "./activate.ts";
2
2
  export { createCertificate } from "./create.ts";
3
3
  export { deleteCertificate } from "./delete.ts";
4
4
  export { getCertificate } from "./get.ts";
5
- export { listCertificates } from "./list.ts";
6
- export type { ActivateCertificateOptions, CreateCertificateOptions, DeleteCertificateOptions, GetCertificateOptions, ListCertificatesOptions, } from "./types.ts";
5
+ export type { ActivateCertificateOptions, CreateCertificateOptions, DeleteCertificateOptions, GetCertificateOptions, } from "./types.ts";
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,YAAY,CAAC"}
@@ -1,43 +1,40 @@
1
1
  /**
2
2
  * Option types for certificate executors.
3
+ *
4
+ * In v2, certificates are scoped per domain:
5
+ * `/sites/{site}/domains/{domain}/certificate`
3
6
  */
4
7
  import type { CreateCertificateData } from "@studiometa/forge-api";
5
8
  /**
6
- * Options for listing SSL certificates for a site.
7
- */
8
- export interface ListCertificatesOptions {
9
- server_id: string;
10
- site_id: string;
11
- }
12
- /**
13
- * Options for getting a single SSL certificate.
9
+ * Options for getting the SSL certificate for a domain.
14
10
  */
15
11
  export interface GetCertificateOptions {
16
12
  server_id: string;
17
13
  site_id: string;
18
- id: string;
14
+ domain_id: string;
19
15
  }
20
16
  /**
21
- * Options for creating an SSL certificate.
17
+ * Options for creating an SSL certificate for a domain.
22
18
  */
23
19
  export interface CreateCertificateOptions extends CreateCertificateData {
24
20
  server_id: string;
25
21
  site_id: string;
22
+ domain_id: string;
26
23
  }
27
24
  /**
28
- * Options for deleting an SSL certificate.
25
+ * Options for deleting the SSL certificate for a domain.
29
26
  */
30
27
  export interface DeleteCertificateOptions {
31
28
  server_id: string;
32
29
  site_id: string;
33
- id: string;
30
+ domain_id: string;
34
31
  }
35
32
  /**
36
- * Options for activating an SSL certificate.
33
+ * Options for activating the SSL certificate for a domain.
37
34
  */
38
35
  export interface ActivateCertificateOptions {
39
36
  server_id: string;
40
37
  site_id: string;
41
- id: string;
38
+ domain_id: string;
42
39
  }
43
40
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/certificates/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,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,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,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/certificates/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -1,8 +1,7 @@
1
- import type { ForgeCommand } from "@studiometa/forge-api";
2
1
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
2
  import type { CreateCommandOptions } from "./types.ts";
4
3
  /**
5
4
  * Execute a command on a site.
6
5
  */
7
- export declare function createCommand(options: CreateCommandOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeCommand>>;
6
+ export declare function createCommand(options: CreateCommandOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
8
7
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3E,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,YAAY,CAAC,CAAC,CAUvC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,IAAI,CAAC,CAAC,CAW/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeCommand } from "@studiometa/forge-api";
1
+ import type { CommandAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetCommandOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a specific command.
6
6
  */
7
- export declare function getCommand(options: GetCommandOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeCommand>>;
7
+ export declare function getCommand(options: GetCommandOptions, ctx: ExecutorContext): Promise<ExecutorResult<CommandAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3E,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,YAAY,CAAC,CAAC,CASvC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,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,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAW7D"}
@@ -1,8 +1,10 @@
1
- import type { ForgeCommand } from "@studiometa/forge-api";
1
+ import type { CommandAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListCommandsOptions } from "./types.ts";
4
4
  /**
5
5
  * List commands executed on a site.
6
6
  */
7
- export declare function listCommands(options: ListCommandsOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeCommand[]>>;
7
+ export declare function listCommands(options: ListCommandsOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<CommandAttributes & {
8
+ id: number;
9
+ }>>>;
8
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5E,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,YAAY,EAAE,CAAC,CAAC,CASzC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/commands/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM/D,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,KAAK,CAAC,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAWpE"}
@@ -1,8 +1,10 @@
1
- import type { ForgeDaemon } from "@studiometa/forge-api";
1
+ import type { BackgroundProcessAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateDaemonOptions } from "./types.ts";
4
4
  /**
5
- * Create a new daemon (background process).
5
+ * Create a new daemon.
6
6
  */
7
- export declare function createDaemon(options: CreateDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDaemon>>;
7
+ export declare function createDaemon(options: CreateDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<BackgroundProcessAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,WAAW,EAAE,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,CAQtC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE,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,2BAA2B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/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/daemons/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 { ForgeDaemon } from "@studiometa/forge-api";
1
+ import type { BackgroundProcessAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetDaemonOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a single daemon.
6
6
  */
7
- export declare function getDaemon(options: GetDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDaemon>>;
7
+ export declare function getDaemon(options: GetDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<BackgroundProcessAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,WAAW,EAAE,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,CAStC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE,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,2BAA2B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWvE"}
@@ -3,5 +3,6 @@ export { deleteDaemon } from "./delete.ts";
3
3
  export { getDaemon } from "./get.ts";
4
4
  export { listDaemons } from "./list.ts";
5
5
  export { restartDaemon } from "./restart.ts";
6
- export type { CreateDaemonOptions, DeleteDaemonOptions, GetDaemonOptions, ListDaemonsOptions, RestartDaemonOptions, } from "./types.ts";
6
+ export { updateDaemon } from "./update.ts";
7
+ export type { CreateDaemonOptions, DeleteDaemonOptions, GetDaemonOptions, ListDaemonsOptions, RestartDaemonOptions, UpdateDaemonOptions, } from "./types.ts";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/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,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/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,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
@@ -1,8 +1,10 @@
1
- import type { ForgeDaemon } from "@studiometa/forge-api";
1
+ import type { BackgroundProcessAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { ListDaemonsOptions } from "./types.ts";
4
4
  /**
5
- * List daemons (background processes) on a server.
5
+ * List daemons on a server.
6
6
  */
7
- export declare function listDaemons(options: ListDaemonsOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDaemon[]>>;
7
+ export declare function listDaemons(options: ListDaemonsOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<BackgroundProcessAttributes & {
8
+ id: number;
9
+ }>>>;
8
10
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,WAAW,EAAE,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,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAOxC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE,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,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,2BAA2B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAW9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/restart.ts"],"names":[],"mappings":"AAAA,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,IAAI,CAAC,CAAC,CAM/B"}
1
+ {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/restart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,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,IAAI,CAAC,CAAC,CAW/B"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Option types for daemon executors.
3
3
  */
4
- import type { CreateDaemonData } from "@studiometa/forge-api";
4
+ import type { CreateDaemonData, UpdateDaemonData } from "@studiometa/forge-api";
5
5
  /**
6
6
  * Options for listing daemons on a server.
7
7
  */
@@ -28,6 +28,13 @@ export interface DeleteDaemonOptions {
28
28
  server_id: string;
29
29
  id: string;
30
30
  }
31
+ /**
32
+ * Options for updating a daemon.
33
+ */
34
+ export interface UpdateDaemonOptions extends UpdateDaemonData {
35
+ server_id: string;
36
+ id: string;
37
+ }
31
38
  /**
32
39
  * Options for restarting a daemon.
33
40
  */
@@ -1 +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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEhF;;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,mBAAoB,SAAQ,gBAAgB;IAC3D,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,10 @@
1
+ import type { BackgroundProcessAttributes } from "@studiometa/forge-api";
2
+ import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
+ import type { UpdateDaemonOptions } from "./types.ts";
4
+ /**
5
+ * Update an existing daemon.
6
+ */
7
+ export declare function updateDaemon(options: UpdateDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<BackgroundProcessAttributes & {
8
+ id: number;
9
+ }>>;
10
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/executors/daemons/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMzE,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,2BAA2B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAYvE"}
@@ -1,8 +1,10 @@
1
- import type { ForgeDatabaseUser } from "@studiometa/forge-api";
1
+ import type { DatabaseUserAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { CreateDatabaseUserOptions } from "./types.ts";
4
4
  /**
5
5
  * Create a new database user.
6
6
  */
7
- export declare function createDatabaseUser(options: CreateDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabaseUser>>;
7
+ export declare function createDatabaseUser(options: CreateDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<DatabaseUserAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=create.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/database-users/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 +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"}
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;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,CAM/B"}
@@ -1,8 +1,10 @@
1
- import type { ForgeDatabaseUser } from "@studiometa/forge-api";
1
+ import type { DatabaseUserAttributes } from "@studiometa/forge-api";
2
2
  import type { ExecutorContext, ExecutorResult } from "../../context.ts";
3
3
  import type { GetDatabaseUserOptions } from "./types.ts";
4
4
  /**
5
5
  * Get a single database user.
6
6
  */
7
- export declare function getDatabaseUser(options: GetDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<ForgeDatabaseUser>>;
7
+ export declare function getDatabaseUser(options: GetDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<DatabaseUserAttributes & {
8
+ id: number;
9
+ }>>;
8
10
  //# sourceMappingURL=get.d.ts.map