@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.
- package/README.md +27 -3
- package/dist/context.d.ts +2 -5
- package/dist/context.d.ts.map +1 -1
- package/dist/executors/backups/create.d.ts +2 -3
- package/dist/executors/backups/create.d.ts.map +1 -1
- package/dist/executors/backups/delete.d.ts.map +1 -1
- package/dist/executors/backups/get.d.ts +5 -3
- package/dist/executors/backups/get.d.ts.map +1 -1
- package/dist/executors/backups/index.d.ts +2 -1
- package/dist/executors/backups/index.d.ts.map +1 -1
- package/dist/executors/backups/list.d.ts +4 -2
- package/dist/executors/backups/list.d.ts.map +1 -1
- package/dist/executors/backups/types.d.ts +8 -1
- package/dist/executors/backups/types.d.ts.map +1 -1
- package/dist/executors/backups/update.d.ts +7 -0
- package/dist/executors/backups/update.d.ts.map +1 -0
- package/dist/executors/certificates/activate.d.ts +1 -1
- package/dist/executors/certificates/activate.d.ts.map +1 -1
- package/dist/executors/certificates/create.d.ts +5 -3
- package/dist/executors/certificates/create.d.ts.map +1 -1
- package/dist/executors/certificates/delete.d.ts +1 -1
- package/dist/executors/certificates/delete.d.ts.map +1 -1
- package/dist/executors/certificates/get.d.ts +5 -3
- package/dist/executors/certificates/get.d.ts.map +1 -1
- package/dist/executors/certificates/index.d.ts +1 -2
- package/dist/executors/certificates/index.d.ts.map +1 -1
- package/dist/executors/certificates/types.d.ts +11 -14
- package/dist/executors/certificates/types.d.ts.map +1 -1
- package/dist/executors/commands/create.d.ts +1 -2
- package/dist/executors/commands/create.d.ts.map +1 -1
- package/dist/executors/commands/get.d.ts +4 -2
- package/dist/executors/commands/get.d.ts.map +1 -1
- package/dist/executors/commands/list.d.ts +4 -2
- package/dist/executors/commands/list.d.ts.map +1 -1
- package/dist/executors/daemons/create.d.ts +5 -3
- package/dist/executors/daemons/create.d.ts.map +1 -1
- package/dist/executors/daemons/delete.d.ts.map +1 -1
- package/dist/executors/daemons/get.d.ts +4 -2
- package/dist/executors/daemons/get.d.ts.map +1 -1
- package/dist/executors/daemons/index.d.ts +2 -1
- package/dist/executors/daemons/index.d.ts.map +1 -1
- package/dist/executors/daemons/list.d.ts +5 -3
- package/dist/executors/daemons/list.d.ts.map +1 -1
- package/dist/executors/daemons/restart.d.ts.map +1 -1
- package/dist/executors/daemons/types.d.ts +8 -1
- package/dist/executors/daemons/types.d.ts.map +1 -1
- package/dist/executors/daemons/update.d.ts +10 -0
- package/dist/executors/daemons/update.d.ts.map +1 -0
- package/dist/executors/database-users/create.d.ts +4 -2
- package/dist/executors/database-users/create.d.ts.map +1 -1
- package/dist/executors/database-users/delete.d.ts.map +1 -1
- package/dist/executors/database-users/get.d.ts +4 -2
- package/dist/executors/database-users/get.d.ts.map +1 -1
- package/dist/executors/database-users/index.d.ts +2 -1
- package/dist/executors/database-users/index.d.ts.map +1 -1
- package/dist/executors/database-users/list.d.ts +4 -2
- package/dist/executors/database-users/list.d.ts.map +1 -1
- package/dist/executors/database-users/types.d.ts +8 -1
- package/dist/executors/database-users/types.d.ts.map +1 -1
- package/dist/executors/database-users/update.d.ts +10 -0
- package/dist/executors/database-users/update.d.ts.map +1 -0
- package/dist/executors/databases/create.d.ts +4 -2
- package/dist/executors/databases/create.d.ts.map +1 -1
- package/dist/executors/databases/delete.d.ts.map +1 -1
- package/dist/executors/databases/get.d.ts +4 -2
- package/dist/executors/databases/get.d.ts.map +1 -1
- package/dist/executors/databases/list.d.ts +4 -2
- package/dist/executors/databases/list.d.ts.map +1 -1
- package/dist/executors/deployments/deploy-and-wait.d.ts +6 -5
- package/dist/executors/deployments/deploy-and-wait.d.ts.map +1 -1
- package/dist/executors/deployments/deploy.d.ts.map +1 -1
- package/dist/executors/deployments/get-log.d.ts.map +1 -1
- package/dist/executors/deployments/get-script.d.ts.map +1 -1
- package/dist/executors/deployments/index.d.ts +1 -2
- package/dist/executors/deployments/index.d.ts.map +1 -1
- package/dist/executors/deployments/list.d.ts +4 -2
- package/dist/executors/deployments/list.d.ts.map +1 -1
- package/dist/executors/deployments/types.d.ts +6 -8
- package/dist/executors/deployments/types.d.ts.map +1 -1
- package/dist/executors/deployments/update-script.d.ts.map +1 -1
- package/dist/executors/env/get.d.ts.map +1 -1
- package/dist/executors/env/update.d.ts.map +1 -1
- package/dist/executors/firewall-rules/create.d.ts +4 -2
- package/dist/executors/firewall-rules/create.d.ts.map +1 -1
- package/dist/executors/firewall-rules/delete.d.ts +3 -0
- package/dist/executors/firewall-rules/delete.d.ts.map +1 -1
- package/dist/executors/firewall-rules/get.d.ts +7 -2
- package/dist/executors/firewall-rules/get.d.ts.map +1 -1
- package/dist/executors/firewall-rules/list.d.ts +7 -2
- package/dist/executors/firewall-rules/list.d.ts.map +1 -1
- package/dist/executors/monitors/create.d.ts +7 -2
- package/dist/executors/monitors/create.d.ts.map +1 -1
- package/dist/executors/monitors/delete.d.ts +3 -0
- package/dist/executors/monitors/delete.d.ts.map +1 -1
- package/dist/executors/monitors/get.d.ts +7 -2
- package/dist/executors/monitors/get.d.ts.map +1 -1
- package/dist/executors/monitors/list.d.ts +7 -2
- package/dist/executors/monitors/list.d.ts.map +1 -1
- package/dist/executors/nginx/get.d.ts.map +1 -1
- package/dist/executors/nginx/update.d.ts.map +1 -1
- package/dist/executors/nginx-templates/create.d.ts +7 -2
- package/dist/executors/nginx-templates/create.d.ts.map +1 -1
- package/dist/executors/nginx-templates/delete.d.ts +3 -0
- package/dist/executors/nginx-templates/delete.d.ts.map +1 -1
- package/dist/executors/nginx-templates/get.d.ts +7 -2
- package/dist/executors/nginx-templates/get.d.ts.map +1 -1
- package/dist/executors/nginx-templates/list.d.ts +7 -2
- package/dist/executors/nginx-templates/list.d.ts.map +1 -1
- package/dist/executors/nginx-templates/update.d.ts +7 -2
- package/dist/executors/nginx-templates/update.d.ts.map +1 -1
- package/dist/executors/recipes/create.d.ts +7 -2
- package/dist/executors/recipes/create.d.ts.map +1 -1
- package/dist/executors/recipes/delete.d.ts +3 -0
- package/dist/executors/recipes/delete.d.ts.map +1 -1
- package/dist/executors/recipes/get.d.ts +7 -2
- package/dist/executors/recipes/get.d.ts.map +1 -1
- package/dist/executors/recipes/index.d.ts +2 -1
- package/dist/executors/recipes/index.d.ts.map +1 -1
- package/dist/executors/recipes/list.d.ts +7 -2
- package/dist/executors/recipes/list.d.ts.map +1 -1
- package/dist/executors/recipes/run.d.ts.map +1 -1
- package/dist/executors/recipes/types.d.ts +7 -1
- package/dist/executors/recipes/types.d.ts.map +1 -1
- package/dist/executors/recipes/update.d.ts +10 -0
- package/dist/executors/recipes/update.d.ts.map +1 -0
- package/dist/executors/redirect-rules/create.d.ts +4 -2
- package/dist/executors/redirect-rules/create.d.ts.map +1 -1
- package/dist/executors/redirect-rules/delete.d.ts +3 -0
- package/dist/executors/redirect-rules/delete.d.ts.map +1 -1
- package/dist/executors/redirect-rules/get.d.ts +7 -2
- package/dist/executors/redirect-rules/get.d.ts.map +1 -1
- package/dist/executors/redirect-rules/list.d.ts +7 -2
- package/dist/executors/redirect-rules/list.d.ts.map +1 -1
- package/dist/executors/scheduled-jobs/create.d.ts +5 -3
- package/dist/executors/scheduled-jobs/create.d.ts.map +1 -1
- package/dist/executors/scheduled-jobs/delete.d.ts.map +1 -1
- package/dist/executors/scheduled-jobs/get.d.ts +4 -2
- package/dist/executors/scheduled-jobs/get.d.ts.map +1 -1
- package/dist/executors/scheduled-jobs/list.d.ts +5 -3
- package/dist/executors/scheduled-jobs/list.d.ts.map +1 -1
- package/dist/executors/scheduled-jobs/types.d.ts +4 -0
- package/dist/executors/scheduled-jobs/types.d.ts.map +1 -1
- package/dist/executors/security-rules/create.d.ts +7 -2
- package/dist/executors/security-rules/create.d.ts.map +1 -1
- package/dist/executors/security-rules/delete.d.ts +3 -0
- package/dist/executors/security-rules/delete.d.ts.map +1 -1
- package/dist/executors/security-rules/get.d.ts +7 -2
- package/dist/executors/security-rules/get.d.ts.map +1 -1
- package/dist/executors/security-rules/index.d.ts +2 -1
- package/dist/executors/security-rules/index.d.ts.map +1 -1
- package/dist/executors/security-rules/list.d.ts +7 -2
- package/dist/executors/security-rules/list.d.ts.map +1 -1
- package/dist/executors/security-rules/types.d.ts +9 -1
- package/dist/executors/security-rules/types.d.ts.map +1 -1
- package/dist/executors/security-rules/update.d.ts +10 -0
- package/dist/executors/security-rules/update.d.ts.map +1 -0
- package/dist/executors/servers/create.d.ts +4 -2
- package/dist/executors/servers/create.d.ts.map +1 -1
- package/dist/executors/servers/delete.d.ts.map +1 -1
- package/dist/executors/servers/get.d.ts +4 -2
- package/dist/executors/servers/get.d.ts.map +1 -1
- package/dist/executors/servers/list.d.ts +4 -2
- package/dist/executors/servers/list.d.ts.map +1 -1
- package/dist/executors/servers/reboot.d.ts.map +1 -1
- package/dist/executors/servers/resolve.d.ts.map +1 -1
- package/dist/executors/sites/create.d.ts +4 -2
- package/dist/executors/sites/create.d.ts.map +1 -1
- package/dist/executors/sites/delete.d.ts.map +1 -1
- package/dist/executors/sites/get.d.ts +7 -2
- package/dist/executors/sites/get.d.ts.map +1 -1
- package/dist/executors/sites/index.d.ts +2 -1
- package/dist/executors/sites/index.d.ts.map +1 -1
- package/dist/executors/sites/list.d.ts +4 -2
- package/dist/executors/sites/list.d.ts.map +1 -1
- package/dist/executors/sites/resolve.d.ts +0 -3
- package/dist/executors/sites/resolve.d.ts.map +1 -1
- package/dist/executors/sites/types.d.ts +12 -1
- package/dist/executors/sites/types.d.ts.map +1 -1
- package/dist/executors/sites/update.d.ts +10 -0
- package/dist/executors/sites/update.d.ts.map +1 -0
- package/dist/executors/ssh-keys/create.d.ts +4 -2
- package/dist/executors/ssh-keys/create.d.ts.map +1 -1
- package/dist/executors/ssh-keys/delete.d.ts +3 -0
- package/dist/executors/ssh-keys/delete.d.ts.map +1 -1
- package/dist/executors/ssh-keys/get.d.ts +7 -2
- package/dist/executors/ssh-keys/get.d.ts.map +1 -1
- package/dist/executors/ssh-keys/list.d.ts +7 -2
- package/dist/executors/ssh-keys/list.d.ts.map +1 -1
- package/dist/executors/user/get.d.ts +4 -2
- package/dist/executors/user/get.d.ts.map +1 -1
- package/dist/index.d.ts +17 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1063 -125
- package/dist/index.js.map +1 -1
- package/dist/routes.d.ts +457 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/test-helpers.d.ts +21 -0
- package/dist/test-helpers.d.ts.map +1 -0
- package/package.json +4 -3
- package/dist/executors/certificates/list.d.ts +0 -8
- package/dist/executors/certificates/list.d.ts.map +0 -1
- package/dist/executors/deployments/get-output.d.ts +0 -7
- 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); //
|
|
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
|
-
- `
|
|
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 () => ({
|
|
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.
|
package/dist/context.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
|
4
|
+
* Create a backup configuration.
|
|
6
5
|
*/
|
|
7
|
-
export declare function createBackupConfig(options: CreateBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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;
|
|
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 {
|
|
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
|
|
5
|
+
* Get a single backup configuration.
|
|
6
6
|
*/
|
|
7
|
-
export declare function getBackupConfig(options: GetBackupConfigOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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 {
|
|
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<
|
|
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,
|
|
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;
|
|
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
|
|
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;
|
|
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 {
|
|
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
|
|
5
|
+
* Create an SSL certificate for a domain.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createCertificate(options: CreateCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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
|
|
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;
|
|
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 {
|
|
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
|
|
5
|
+
* Get the SSL certificate for a domain.
|
|
6
6
|
*/
|
|
7
|
-
export declare function getCertificate(options: GetCertificateOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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 {
|
|
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,
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
30
|
+
domain_id: string;
|
|
34
31
|
}
|
|
35
32
|
/**
|
|
36
|
-
* Options for activating
|
|
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
|
-
|
|
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
|
|
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<
|
|
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,
|
|
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 {
|
|
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<
|
|
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,
|
|
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 {
|
|
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<
|
|
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,
|
|
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 {
|
|
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
|
|
5
|
+
* Create a new daemon.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createDaemon(options: CreateDaemonOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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;
|
|
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 {
|
|
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<
|
|
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,
|
|
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
|
|
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,
|
|
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 {
|
|
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
|
|
5
|
+
* List daemons on a server.
|
|
6
6
|
*/
|
|
7
|
-
export declare function listDaemons(options: ListDaemonsOptions, ctx: ExecutorContext): Promise<ExecutorResult<
|
|
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,
|
|
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;
|
|
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;
|
|
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 {
|
|
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<
|
|
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,
|
|
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;
|
|
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 {
|
|
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<
|
|
7
|
+
export declare function getDatabaseUser(options: GetDatabaseUserOptions, ctx: ExecutorContext): Promise<ExecutorResult<DatabaseUserAttributes & {
|
|
8
|
+
id: number;
|
|
9
|
+
}>>;
|
|
8
10
|
//# sourceMappingURL=get.d.ts.map
|