@studiometa/forge-core 0.4.8 → 0.5.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 +5 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/executors/storage-providers/create.d.ts +10 -0
- package/dist/executors/storage-providers/create.d.ts.map +1 -0
- package/dist/executors/storage-providers/delete.d.ts +7 -0
- package/dist/executors/storage-providers/delete.d.ts.map +1 -0
- package/dist/executors/storage-providers/get.d.ts +10 -0
- package/dist/executors/storage-providers/get.d.ts.map +1 -0
- package/dist/executors/storage-providers/index.d.ts +6 -0
- package/dist/executors/storage-providers/index.d.ts.map +1 -0
- package/dist/executors/storage-providers/list.d.ts +11 -0
- package/dist/executors/storage-providers/list.d.ts.map +1 -0
- package/dist/executors/storage-providers/types.d.ts +29 -0
- package/dist/executors/storage-providers/types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -3
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/routes.d.ts +18 -0
- package/dist/routes.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ import { RESOURCES, ACTIONS } from "@studiometa/forge-core";
|
|
|
32
32
|
// RESOURCES: ['servers', 'sites', 'deployments', 'certificates', 'databases',
|
|
33
33
|
// 'database-users', 'daemons', 'env', 'nginx', 'firewall-rules', 'ssh-keys',
|
|
34
34
|
// 'security-rules', 'redirect-rules', 'nginx-templates', 'monitors', 'recipes',
|
|
35
|
-
// 'backups', 'commands', 'scheduled-jobs', 'services', 'php', 'user', 'batch']
|
|
35
|
+
// 'backups', 'storage-providers', 'commands', 'scheduled-jobs', 'services', 'php', 'user', 'batch']
|
|
36
36
|
// ACTIONS: ['list', 'get', 'create', 'update', 'delete', 'deploy', 'reboot', 'restart',
|
|
37
37
|
// 'activate', 'run', 'resolve', 'help', 'schema', 'context']
|
|
38
38
|
```
|
|
@@ -114,6 +114,10 @@ import { RESOURCES, ACTIONS } from "@studiometa/forge-core";
|
|
|
114
114
|
|
|
115
115
|
- `listBackupConfigs`, `getBackupConfig`, `createBackupConfig`, `deleteBackupConfig`
|
|
116
116
|
|
|
117
|
+
### Storage Providers
|
|
118
|
+
|
|
119
|
+
- `listStorageProviders`, `getStorageProvider`, `createStorageProvider`, `deleteStorageProvider`
|
|
120
|
+
|
|
117
121
|
### Commands
|
|
118
122
|
|
|
119
123
|
- `listCommands`, `getCommand`, `createCommand`
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* All supported resources.
|
|
3
3
|
* Single source of truth — MCP schema and handlers derive from this.
|
|
4
4
|
*/
|
|
5
|
-
export declare const RESOURCES: readonly ["servers", "sites", "deployments", "certificates", "databases", "database-users", "daemons", "env", "nginx", "firewall-rules", "ssh-keys", "security-rules", "redirect-rules", "nginx-templates", "monitors", "recipes", "backups", "commands", "scheduled-jobs", "services", "php", "user", "batch"];
|
|
5
|
+
export declare const RESOURCES: readonly ["servers", "sites", "deployments", "certificates", "databases", "database-users", "daemons", "env", "nginx", "firewall-rules", "ssh-keys", "security-rules", "redirect-rules", "nginx-templates", "monitors", "recipes", "backups", "storage-providers", "commands", "scheduled-jobs", "services", "php", "user", "batch"];
|
|
6
6
|
export type Resource = (typeof RESOURCES)[number];
|
|
7
7
|
/**
|
|
8
8
|
* All supported actions.
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS,YACpB,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,CACC,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAClB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,CACD,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS,YACpB,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,CACC,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,OAAO,YAClB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,CACD,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StorageProviderAttributes } from "@studiometa/forge-api";
|
|
2
|
+
import type { ExecutorContext, ExecutorResult } from "../../context.ts";
|
|
3
|
+
import type { CreateStorageProviderOptions } from "./types.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Create a storage provider, for example an S3-compatible bucket for database backups.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createStorageProvider(options: CreateStorageProviderOptions, ctx: ExecutorContext): Promise<ExecutorResult<StorageProviderAttributes & {
|
|
8
|
+
id: number;
|
|
9
|
+
}>>;
|
|
10
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAMvE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,EACrC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,yBAAyB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWrE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExecutorContext, ExecutorResult } from "../../context.ts";
|
|
2
|
+
import type { DeleteStorageProviderOptions } from "./types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Delete a storage provider. Forge refuses when a backup configuration uses it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function deleteStorageProvider(options: DeleteStorageProviderOptions, ctx: ExecutorContext): Promise<ExecutorResult<void>>;
|
|
7
|
+
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,EACrC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAM/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StorageProviderAttributes } from "@studiometa/forge-api";
|
|
2
|
+
import type { ExecutorContext, ExecutorResult } from "../../context.ts";
|
|
3
|
+
import type { GetStorageProviderOptions } from "./types.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Get a single storage provider.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getStorageProvider(options: GetStorageProviderOptions, ctx: ExecutorContext): Promise<ExecutorResult<StorageProviderAttributes & {
|
|
8
|
+
id: number;
|
|
9
|
+
}>>;
|
|
10
|
+
//# sourceMappingURL=get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAMvE,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,yBAAyB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAWrE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createStorageProvider } from "./create.ts";
|
|
2
|
+
export { deleteStorageProvider } from "./delete.ts";
|
|
3
|
+
export { getStorageProvider } from "./get.ts";
|
|
4
|
+
export { listStorageProviders } from "./list.ts";
|
|
5
|
+
export type { CreateStorageProviderOptions, DeleteStorageProviderOptions, GetStorageProviderOptions, ListStorageProvidersOptions, } from "./types.ts";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,YAAY,EACV,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StorageProviderAttributes } from "@studiometa/forge-api";
|
|
2
|
+
import type { ExecutorContext, ExecutorResult } from "../../context.ts";
|
|
3
|
+
import type { ListStorageProvidersOptions } from "./types.ts";
|
|
4
|
+
/**
|
|
5
|
+
* List the storage providers of the organization, from every page.
|
|
6
|
+
* Filter by provider type with `provider`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function listStorageProviders(options: ListStorageProvidersOptions, ctx: ExecutorContext): Promise<ExecutorResult<Array<StorageProviderAttributes & {
|
|
9
|
+
id: number;
|
|
10
|
+
}>>>;
|
|
11
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,2BAA2B,EACpC,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,yBAAyB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC,CAU5E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Option types for storage provider executors.
|
|
3
|
+
*/
|
|
4
|
+
import type { CreateStorageProviderData } from "@studiometa/forge-api";
|
|
5
|
+
/**
|
|
6
|
+
* Options for listing storage providers.
|
|
7
|
+
*/
|
|
8
|
+
export interface ListStorageProvidersOptions {
|
|
9
|
+
/** Filter by provider type, e.g. `s3` or `custom`. */
|
|
10
|
+
provider?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Options for getting a single storage provider.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetStorageProviderOptions {
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Options for creating a storage provider.
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateStorageProviderOptions extends CreateStorageProviderData {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Options for deleting a storage provider.
|
|
25
|
+
*/
|
|
26
|
+
export interface DeleteStorageProviderOptions {
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executors/storage-providers/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB;CAAG;AAElF;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export { createRecipe, deleteRecipe, getRecipe, listRecipes, runRecipe, updateRe
|
|
|
42
42
|
export type { CreateRecipeOptions, DeleteRecipeOptions, GetRecipeOptions, ListRecipesOptions, RunRecipeOptions, UpdateRecipeOptions, } from "./executors/recipes/index.ts";
|
|
43
43
|
export { createBackupConfig, deleteBackupConfig, getBackupConfig, listBackupConfigs, updateBackupConfig, } from "./executors/backups/index.ts";
|
|
44
44
|
export type { CreateBackupConfigOptions, DeleteBackupConfigOptions, GetBackupConfigOptions, ListBackupConfigsOptions, UpdateBackupConfigOptions, } from "./executors/backups/index.ts";
|
|
45
|
+
export { createStorageProvider, deleteStorageProvider, getStorageProvider, listStorageProviders, } from "./executors/storage-providers/index.ts";
|
|
46
|
+
export type { CreateStorageProviderOptions, DeleteStorageProviderOptions, GetStorageProviderOptions, ListStorageProvidersOptions, } from "./executors/storage-providers/index.ts";
|
|
45
47
|
export { createCommand, getCommand, listCommands } from "./executors/commands/index.ts";
|
|
46
48
|
export type { CreateCommandOptions, GetCommandOptions, ListCommandsOptions, } from "./executors/commands/index.ts";
|
|
47
49
|
export { createScheduledJob, deleteScheduledJob, getScheduledJob, listScheduledJobs, } from "./executors/scheduled-jobs/index.ts";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
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CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACnG,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,GACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,gCAAgC,EAChC,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createWriteStream, mkdirSync } from "node:fs";
|
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import pino from "pino";
|
|
5
|
-
import { BackgroundProcessAttributesSchema, BackgroundProcessLogAttributesSchema, BackupConfigAttributesSchema, CertificateAttributesSchema, CommandAttributesSchema, DatabaseAttributesSchema, DatabaseUserAttributesSchema, DeploymentAttributesSchema, DeploymentOutputAttributesSchema, DeploymentScriptAttributesSchema, EnvironmentAttributesSchema, FirewallRuleAttributesSchema, MonitorAttributesSchema, NginxTemplateAttributesSchema, PhpConfigAttributesSchema, PhpMaxExecutionTimeAttributesSchema, PhpMaxUploadSizeAttributesSchema, PhpOpcacheAttributesSchema, PhpVersionAttributesSchema, RecipeAttributesSchema, RedirectRuleAttributesSchema, ScheduledJobAttributesSchema, SecurityRuleAttributesSchema, ServerAttributesSchema, SiteAttributesSchema, SshKeyAttributesSchema, UserAttributesSchema, jsonApiDocumentSchema, jsonApiListDocumentSchema, unwrapDocument, unwrapListDocument } from "@studiometa/forge-api";
|
|
5
|
+
import { BackgroundProcessAttributesSchema, BackgroundProcessLogAttributesSchema, BackupConfigAttributesSchema, CertificateAttributesSchema, CommandAttributesSchema, DatabaseAttributesSchema, DatabaseUserAttributesSchema, DeploymentAttributesSchema, DeploymentOutputAttributesSchema, DeploymentScriptAttributesSchema, EnvironmentAttributesSchema, FirewallRuleAttributesSchema, MonitorAttributesSchema, NginxTemplateAttributesSchema, PhpConfigAttributesSchema, PhpMaxExecutionTimeAttributesSchema, PhpMaxUploadSizeAttributesSchema, PhpOpcacheAttributesSchema, PhpVersionAttributesSchema, RecipeAttributesSchema, RedirectRuleAttributesSchema, ScheduledJobAttributesSchema, SecurityRuleAttributesSchema, ServerAttributesSchema, SiteAttributesSchema, SshKeyAttributesSchema, StorageProviderAttributesSchema, UserAttributesSchema, jsonApiDocumentSchema, jsonApiListDocumentSchema, unwrapDocument, unwrapListDocument } from "@studiometa/forge-api";
|
|
6
6
|
//#region src/constants.ts
|
|
7
7
|
/**
|
|
8
8
|
* All supported resources.
|
|
@@ -26,6 +26,7 @@ var RESOURCES = [
|
|
|
26
26
|
"monitors",
|
|
27
27
|
"recipes",
|
|
28
28
|
"backups",
|
|
29
|
+
"storage-providers",
|
|
29
30
|
"commands",
|
|
30
31
|
"scheduled-jobs",
|
|
31
32
|
"services",
|
|
@@ -82,7 +83,11 @@ var SENSITIVE_KEYS = [
|
|
|
82
83
|
"password",
|
|
83
84
|
"secret",
|
|
84
85
|
"key",
|
|
85
|
-
"credentials"
|
|
86
|
+
"credentials",
|
|
87
|
+
"access_key",
|
|
88
|
+
"secret_key",
|
|
89
|
+
"access-key",
|
|
90
|
+
"secret-key"
|
|
86
91
|
];
|
|
87
92
|
/**
|
|
88
93
|
* Return a shallow copy of `args` with sensitive keys replaced by '[REDACTED]'.
|
|
@@ -581,6 +586,24 @@ var ROUTES = {
|
|
|
581
586
|
path: "/orgs/:org/servers/:server_id/database/backups/:id"
|
|
582
587
|
}
|
|
583
588
|
},
|
|
589
|
+
storageProviders: {
|
|
590
|
+
list: {
|
|
591
|
+
method: "GET",
|
|
592
|
+
path: "/orgs/:org/storage-providers"
|
|
593
|
+
},
|
|
594
|
+
get: {
|
|
595
|
+
method: "GET",
|
|
596
|
+
path: "/orgs/:org/storage-providers/:id"
|
|
597
|
+
},
|
|
598
|
+
create: {
|
|
599
|
+
method: "POST",
|
|
600
|
+
path: "/orgs/:org/storage-providers"
|
|
601
|
+
},
|
|
602
|
+
delete: {
|
|
603
|
+
method: "DELETE",
|
|
604
|
+
path: "/orgs/:org/storage-providers/:id"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
584
607
|
commands: {
|
|
585
608
|
list: {
|
|
586
609
|
method: "GET",
|
|
@@ -1764,6 +1787,43 @@ async function listBackupConfigs(options, ctx) {
|
|
|
1764
1787
|
return { data: unwrapListDocument(await request(ROUTES.backups.list, ctx, { server_id: options.server_id }, { schema: jsonApiListDocumentSchema(BackupConfigAttributesSchema) })) };
|
|
1765
1788
|
}
|
|
1766
1789
|
//#endregion
|
|
1790
|
+
//#region src/executors/storage-providers/create.ts
|
|
1791
|
+
/**
|
|
1792
|
+
* Create a storage provider, for example an S3-compatible bucket for database backups.
|
|
1793
|
+
*/
|
|
1794
|
+
async function createStorageProvider(options, ctx) {
|
|
1795
|
+
return { data: unwrapDocument(await request(ROUTES.storageProviders.create, ctx, {}, {
|
|
1796
|
+
body: options,
|
|
1797
|
+
schema: jsonApiDocumentSchema(StorageProviderAttributesSchema)
|
|
1798
|
+
})) };
|
|
1799
|
+
}
|
|
1800
|
+
//#endregion
|
|
1801
|
+
//#region src/executors/storage-providers/delete.ts
|
|
1802
|
+
/**
|
|
1803
|
+
* Delete a storage provider. Forge refuses when a backup configuration uses it.
|
|
1804
|
+
*/
|
|
1805
|
+
async function deleteStorageProvider(options, ctx) {
|
|
1806
|
+
await request(ROUTES.storageProviders.delete, ctx, { id: options.id });
|
|
1807
|
+
return { data: void 0 };
|
|
1808
|
+
}
|
|
1809
|
+
//#endregion
|
|
1810
|
+
//#region src/executors/storage-providers/get.ts
|
|
1811
|
+
/**
|
|
1812
|
+
* Get a single storage provider.
|
|
1813
|
+
*/
|
|
1814
|
+
async function getStorageProvider(options, ctx) {
|
|
1815
|
+
return { data: unwrapDocument(await request(ROUTES.storageProviders.get, ctx, { id: options.id }, { schema: jsonApiDocumentSchema(StorageProviderAttributesSchema) })) };
|
|
1816
|
+
}
|
|
1817
|
+
//#endregion
|
|
1818
|
+
//#region src/executors/storage-providers/list.ts
|
|
1819
|
+
/**
|
|
1820
|
+
* List the storage providers of the organization, from every page.
|
|
1821
|
+
* Filter by provider type with `provider`.
|
|
1822
|
+
*/
|
|
1823
|
+
async function listStorageProviders(options, ctx) {
|
|
1824
|
+
return { data: await listAllPages(ROUTES.storageProviders.list, ctx, {}, StorageProviderAttributesSchema, options.provider ? { "filter[provider]": options.provider } : {}) };
|
|
1825
|
+
}
|
|
1826
|
+
//#endregion
|
|
1767
1827
|
//#region src/executors/commands/create.ts
|
|
1768
1828
|
/**
|
|
1769
1829
|
* Execute a command on a site.
|
|
@@ -2102,6 +2162,6 @@ async function getUser(_options, ctx) {
|
|
|
2102
2162
|
return { data: unwrapDocument(await request(ROUTES.user.get, ctx, {}, { schema: jsonApiDocumentSchema(UserAttributesSchema) })) };
|
|
2103
2163
|
}
|
|
2104
2164
|
//#endregion
|
|
2105
|
-
export { ACTIONS, PHP_CONFIG_TYPES, RESOURCES, RESTARTABLE_SERVICES, activateCertificate, createAuditLogger, createBackupConfig, createCertificate, createCommand, createDaemon, createDatabase, createDatabaseUser, createFirewallRule, createMonitor, createNginxTemplate, createRecipe, createRedirectRule, createScheduledJob, createSecurityRule, createServer, createSite, createSshKey, createTestExecutorContext, deleteBackupConfig, deleteCertificate, deleteDaemon, deleteDatabase, deleteDatabaseUser, deleteFirewallRule, deleteMonitor, deleteNginxTemplate, deleteRecipe, deleteRedirectRule, deleteScheduledJob, deleteSecurityRule, deleteServer, deleteSite, deleteSshKey, deploySite, deploySiteAndWait, disablePhpOpcache, enablePhpOpcache, getAuditLogPath, getBackupConfig, getCertificate, getCommand, getDaemon, getDaemonLog, getDatabase, getDatabaseUser, getDeploymentLog, getDeploymentScript, getEnv, getFirewallRule, getMonitor, getNginxConfig, getNginxTemplate, getPhpConfig, getPhpMaxExecutionTime, getPhpMaxUploadSize, getPhpOpcache, getPhpVersion, getRecipe, getRedirectRule, getScheduledJob, getSecurityRule, getServer, getSite, getSshKey, getUser, listBackupConfigs, listCommands, listDaemons, listDatabaseUsers, listDatabases, listDeployments, listFirewallRules, listMonitors, listNginxTemplates, listPhpVersions, listRecipes, listRedirectRules, listScheduledJobs, listSecurityRules, listServers, listServices, listSites, listSshKeys, matchByName, mockDocument, mockListDocument, mockResource, rebootServer, resolvePhpVersionId, resolveServers, resolveSites, restartDaemon, restartService, runRecipe, sanitizeArgs, updateBackupConfig, updateDaemon, updateDatabaseUser, updateDeploymentScript, updateEnv, updateNginxConfig, updateNginxTemplate, updatePhpConfig, updatePhpMaxExecutionTime, updatePhpMaxUploadSize, updateRecipe, updateSecurityRule, updateSite };
|
|
2165
|
+
export { ACTIONS, PHP_CONFIG_TYPES, RESOURCES, RESTARTABLE_SERVICES, activateCertificate, createAuditLogger, createBackupConfig, createCertificate, createCommand, createDaemon, createDatabase, createDatabaseUser, createFirewallRule, createMonitor, createNginxTemplate, createRecipe, createRedirectRule, createScheduledJob, createSecurityRule, createServer, createSite, createSshKey, createStorageProvider, createTestExecutorContext, deleteBackupConfig, deleteCertificate, deleteDaemon, deleteDatabase, deleteDatabaseUser, deleteFirewallRule, deleteMonitor, deleteNginxTemplate, deleteRecipe, deleteRedirectRule, deleteScheduledJob, deleteSecurityRule, deleteServer, deleteSite, deleteSshKey, deleteStorageProvider, deploySite, deploySiteAndWait, disablePhpOpcache, enablePhpOpcache, getAuditLogPath, getBackupConfig, getCertificate, getCommand, getDaemon, getDaemonLog, getDatabase, getDatabaseUser, getDeploymentLog, getDeploymentScript, getEnv, getFirewallRule, getMonitor, getNginxConfig, getNginxTemplate, getPhpConfig, getPhpMaxExecutionTime, getPhpMaxUploadSize, getPhpOpcache, getPhpVersion, getRecipe, getRedirectRule, getScheduledJob, getSecurityRule, getServer, getSite, getSshKey, getStorageProvider, getUser, listBackupConfigs, listCommands, listDaemons, listDatabaseUsers, listDatabases, listDeployments, listFirewallRules, listMonitors, listNginxTemplates, listPhpVersions, listRecipes, listRedirectRules, listScheduledJobs, listSecurityRules, listServers, listServices, listSites, listSshKeys, listStorageProviders, matchByName, mockDocument, mockListDocument, mockResource, rebootServer, resolvePhpVersionId, resolveServers, resolveSites, restartDaemon, restartService, runRecipe, sanitizeArgs, updateBackupConfig, updateDaemon, updateDatabaseUser, updateDeploymentScript, updateEnv, updateNginxConfig, updateNginxTemplate, updatePhpConfig, updatePhpMaxExecutionTime, updatePhpMaxUploadSize, updateRecipe, updateSecurityRule, updateSite };
|
|
2106
2166
|
|
|
2107
2167
|
//# sourceMappingURL=index.js.map
|