@studiometa/forge-sdk 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.
- package/README.md +13 -11
- package/dist/forge.d.ts +13 -8
- package/dist/forge.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +378 -355
- package/dist/index.js.map +1 -1
- package/dist/pagination.d.ts +8 -5
- package/dist/pagination.d.ts.map +1 -1
- package/dist/resources/backups.d.ts +18 -10
- package/dist/resources/backups.d.ts.map +1 -1
- package/dist/resources/base.d.ts +3 -2
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/certificates.d.ts +22 -59
- package/dist/resources/certificates.d.ts.map +1 -1
- package/dist/resources/commands.d.ts +18 -10
- package/dist/resources/commands.d.ts.map +1 -1
- package/dist/resources/daemons.d.ts +18 -10
- package/dist/resources/daemons.d.ts.map +1 -1
- package/dist/resources/database-users.d.ts +18 -10
- package/dist/resources/database-users.d.ts.map +1 -1
- package/dist/resources/databases.d.ts +18 -10
- package/dist/resources/databases.d.ts.map +1 -1
- package/dist/resources/deployments.d.ts +15 -9
- package/dist/resources/deployments.d.ts.map +1 -1
- package/dist/resources/firewall-rules.d.ts +18 -10
- package/dist/resources/firewall-rules.d.ts.map +1 -1
- package/dist/resources/monitors.d.ts +18 -10
- package/dist/resources/monitors.d.ts.map +1 -1
- package/dist/resources/nginx-templates.d.ts +21 -11
- package/dist/resources/nginx-templates.d.ts.map +1 -1
- package/dist/resources/recipes.d.ts +17 -10
- package/dist/resources/recipes.d.ts.map +1 -1
- package/dist/resources/redirect-rules.d.ts +18 -10
- package/dist/resources/redirect-rules.d.ts.map +1 -1
- package/dist/resources/scheduled-jobs.d.ts +18 -10
- package/dist/resources/scheduled-jobs.d.ts.map +1 -1
- package/dist/resources/security-rules.d.ts +18 -10
- package/dist/resources/security-rules.d.ts.map +1 -1
- package/dist/resources/servers.d.ts +25 -13
- package/dist/resources/servers.d.ts.map +1 -1
- package/dist/resources/sites.d.ts +29 -17
- package/dist/resources/sites.d.ts.map +1 -1
- package/dist/resources/ssh-keys.d.ts +18 -10
- package/dist/resources/ssh-keys.d.ts.map +1 -1
- package/dist/test-utils.d.ts +12 -3
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js +16 -5
- package/dist/test-utils.js.map +1 -1
- package/package.json +2 -2
package/dist/resources/base.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { HttpClient } from "@studiometa/forge-api";
|
|
2
2
|
/**
|
|
3
3
|
* Abstract base class for resource collections.
|
|
4
|
-
* Provides
|
|
4
|
+
* Provides shared `client` and `orgSlug` properties to avoid duplication across all collection classes.
|
|
5
5
|
*/
|
|
6
6
|
export declare abstract class BaseCollection {
|
|
7
7
|
protected readonly client: HttpClient;
|
|
8
|
-
|
|
8
|
+
protected readonly orgSlug: string;
|
|
9
|
+
constructor(client: HttpClient, orgSlug: string);
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/resources/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,8BAAsB,cAAc;IAClC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/resources/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,8BAAsB,cAAc;IAClC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IACtC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEvB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;CAIhD"}
|
|
@@ -1,102 +1,65 @@
|
|
|
1
|
-
import type { CreateCertificateData,
|
|
1
|
+
import type { CreateCertificateData, HttpClient, CertificateAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
|
-
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
page?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Collection of SSL certificates for a site.
|
|
4
|
+
* SSL certificates for a site, accessed per-domain.
|
|
5
|
+
*
|
|
6
|
+
* In v2, certificates are a singular sub-resource of a domain:
|
|
7
|
+
* `/orgs/{org}/servers/{server}/sites/{site}/domains/{domain}/certificate`
|
|
13
8
|
*
|
|
14
9
|
* Access via `forge.server(id).site(id).certificates`.
|
|
15
10
|
*
|
|
16
11
|
* @example
|
|
17
12
|
* ```ts
|
|
18
|
-
* const
|
|
13
|
+
* const cert = await forge.server(123).site(456).certificates.get(789);
|
|
19
14
|
* ```
|
|
20
15
|
*/
|
|
21
16
|
export declare class CertificatesCollection extends BaseCollection {
|
|
22
17
|
private readonly serverId;
|
|
23
18
|
private readonly siteId;
|
|
24
19
|
/** @internal */
|
|
25
|
-
constructor(client: HttpClient, serverId: number, siteId: number);
|
|
26
|
-
private
|
|
27
|
-
/**
|
|
28
|
-
* List certificates for this site.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const certs = await forge.server(123).site(456).certificates.list();
|
|
33
|
-
*
|
|
34
|
-
* // Fetch a specific page:
|
|
35
|
-
* const page2 = await forge.server(123).site(456).certificates.list({ page: 2 });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
list(options?: CertificateListOptions): Promise<ForgeCertificate[]>;
|
|
39
|
-
/**
|
|
40
|
-
* Iterate over all certificates across all pages.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* for await (const cert of forge.server(123).site(456).certificates.all()) {
|
|
45
|
-
* console.log(cert);
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
48
|
-
* // Or collect all at once:
|
|
49
|
-
* const certs = await forge.server(123).site(456).certificates.all().toArray();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
all(options?: Omit<CertificateListOptions, "page">): AsyncPaginatedIterator<ForgeCertificate>;
|
|
20
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number, siteId: number);
|
|
21
|
+
private domainPath;
|
|
53
22
|
/**
|
|
54
|
-
* Get a
|
|
23
|
+
* Get the certificate for a domain.
|
|
55
24
|
*
|
|
56
25
|
* @example
|
|
57
26
|
* ```ts
|
|
58
27
|
* const cert = await forge.server(123).site(456).certificates.get(789);
|
|
59
28
|
* ```
|
|
60
29
|
*/
|
|
61
|
-
get(
|
|
30
|
+
get(domainId: number): Promise<CertificateAttributes & {
|
|
31
|
+
id: number;
|
|
32
|
+
}>;
|
|
62
33
|
/**
|
|
63
|
-
* Create a
|
|
34
|
+
* Create a certificate for a domain.
|
|
64
35
|
*
|
|
65
36
|
* @example
|
|
66
37
|
* ```ts
|
|
67
|
-
* const cert = await forge.server(123).site(456).certificates.create({
|
|
68
|
-
* type: '
|
|
69
|
-
* domain: 'example.com',
|
|
38
|
+
* const cert = await forge.server(123).site(456).certificates.create(789, {
|
|
39
|
+
* type: 'letsencrypt',
|
|
70
40
|
* });
|
|
71
41
|
* ```
|
|
72
42
|
*/
|
|
73
|
-
create(data: CreateCertificateData): Promise<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```ts
|
|
79
|
-
* await forge.server(123).site(456).certificates.letsEncrypt(['example.com', 'www.example.com']);
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
letsEncrypt(domains: string[]): Promise<ForgeCertificate>;
|
|
43
|
+
create(domainId: number, data: CreateCertificateData): Promise<CertificateAttributes & {
|
|
44
|
+
id: number;
|
|
45
|
+
}>;
|
|
83
46
|
/**
|
|
84
|
-
* Delete a
|
|
47
|
+
* Delete the certificate for a domain.
|
|
85
48
|
*
|
|
86
49
|
* @example
|
|
87
50
|
* ```ts
|
|
88
51
|
* await forge.server(123).site(456).certificates.delete(789);
|
|
89
52
|
* ```
|
|
90
53
|
*/
|
|
91
|
-
delete(
|
|
54
|
+
delete(domainId: number): Promise<void>;
|
|
92
55
|
/**
|
|
93
|
-
* Activate a
|
|
56
|
+
* Activate the certificate for a domain.
|
|
94
57
|
*
|
|
95
58
|
* @example
|
|
96
59
|
* ```ts
|
|
97
60
|
* await forge.server(123).site(456).certificates.activate(789);
|
|
98
61
|
* ```
|
|
99
62
|
*/
|
|
100
|
-
activate(
|
|
63
|
+
activate(domainId: number): Promise<void>;
|
|
101
64
|
}
|
|
102
65
|
//# sourceMappingURL=certificates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/resources/certificates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"certificates.d.ts","sourceRoot":"","sources":["../../src/resources/certificates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,UAAU,EAEV,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAuB,SAAQ,cAAc;IAKtD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,gBAAgB;gBAEd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM;IAKjC,OAAO,CAAC,UAAU;IAIlB;;;;;;;OAOG;IACG,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAO5E;;;;;;;;;OASG;IACG,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,qBAAqB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAQlD;;;;;;;OAOG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C;;;;;;;OAOG;IACG,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { CreateCommandData,
|
|
1
|
+
import type { CreateCommandData, HttpClient, CommandAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing site commands.
|
|
6
6
|
*/
|
|
7
7
|
export interface CommandListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of commands run on a site.
|
|
@@ -22,7 +22,7 @@ export declare class CommandsCollection extends BaseCollection {
|
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
private readonly siteId;
|
|
24
24
|
/** @internal */
|
|
25
|
-
constructor(client: HttpClient, serverId: number, siteId: number);
|
|
25
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number, siteId: number);
|
|
26
26
|
private get basePath();
|
|
27
27
|
/**
|
|
28
28
|
* List commands run on this site.
|
|
@@ -31,11 +31,13 @@ export declare class CommandsCollection extends BaseCollection {
|
|
|
31
31
|
* ```ts
|
|
32
32
|
* const commands = await forge.server(123).site(456).commands.list();
|
|
33
33
|
*
|
|
34
|
-
* // Fetch a specific page:
|
|
35
|
-
* const page2 = await forge.server(123).site(456).commands.list({
|
|
34
|
+
* // Fetch a specific cursor page:
|
|
35
|
+
* const page2 = await forge.server(123).site(456).commands.list({ cursor: 'next-cursor-value' });
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
list(options?: CommandListOptions): Promise<
|
|
38
|
+
list(options?: CommandListOptions): Promise<Array<CommandAttributes & {
|
|
39
|
+
id: number;
|
|
40
|
+
}>>;
|
|
39
41
|
/**
|
|
40
42
|
* Iterate over all commands across all pages.
|
|
41
43
|
*
|
|
@@ -49,7 +51,9 @@ export declare class CommandsCollection extends BaseCollection {
|
|
|
49
51
|
* const commands = await forge.server(123).site(456).commands.all().toArray();
|
|
50
52
|
* ```
|
|
51
53
|
*/
|
|
52
|
-
all(
|
|
54
|
+
all(): AsyncPaginatedIterator<CommandAttributes & {
|
|
55
|
+
id: number;
|
|
56
|
+
}>;
|
|
53
57
|
/**
|
|
54
58
|
* Get a specific command.
|
|
55
59
|
*
|
|
@@ -58,7 +62,9 @@ export declare class CommandsCollection extends BaseCollection {
|
|
|
58
62
|
* const command = await forge.server(123).site(456).commands.get(789);
|
|
59
63
|
* ```
|
|
60
64
|
*/
|
|
61
|
-
get(commandId: number): Promise<
|
|
65
|
+
get(commandId: number): Promise<CommandAttributes & {
|
|
66
|
+
id: number;
|
|
67
|
+
}>;
|
|
62
68
|
/**
|
|
63
69
|
* Run a command on this site.
|
|
64
70
|
*
|
|
@@ -69,6 +75,8 @@ export declare class CommandsCollection extends BaseCollection {
|
|
|
69
75
|
* });
|
|
70
76
|
* ```
|
|
71
77
|
*/
|
|
72
|
-
create(data: CreateCommandData): Promise<
|
|
78
|
+
create(data: CreateCommandData): Promise<CommandAttributes & {
|
|
79
|
+
id: number;
|
|
80
|
+
}>;
|
|
73
81
|
}
|
|
74
82
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/resources/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/resources/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EAGV,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IAKlD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,gBAAgB;gBAEd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM;IAKjC,OAAO,KAAK,QAAQ,GAEnB;IAED;;;;;;;;;;OAUG;IACG,IAAI,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,iBAAiB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQhG;;;;;;;;;;;;OAYG;IACH,GAAG,IAAI,sBAAsB,CAAC,iBAAiB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAajE;;;;;;;OAOG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAOzE;;;;;;;;;OASG;IACG,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CAOnF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { CreateDaemonData,
|
|
1
|
+
import type { CreateDaemonData, HttpClient, BackgroundProcessAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing daemons.
|
|
6
6
|
*/
|
|
7
7
|
export interface DaemonListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of daemons (background processes) on a server.
|
|
@@ -21,7 +21,7 @@ export interface DaemonListOptions {
|
|
|
21
21
|
export declare class DaemonsCollection extends BaseCollection {
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
/** @internal */
|
|
24
|
-
constructor(client: HttpClient, serverId: number);
|
|
24
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number);
|
|
25
25
|
private get basePath();
|
|
26
26
|
/**
|
|
27
27
|
* List daemons on this server.
|
|
@@ -30,11 +30,13 @@ export declare class DaemonsCollection extends BaseCollection {
|
|
|
30
30
|
* ```ts
|
|
31
31
|
* const daemons = await forge.server(123).daemons.list();
|
|
32
32
|
*
|
|
33
|
-
* // Fetch a specific page:
|
|
34
|
-
* const page2 = await forge.server(123).daemons.list({
|
|
33
|
+
* // Fetch a specific cursor page:
|
|
34
|
+
* const page2 = await forge.server(123).daemons.list({ cursor: 'next-cursor-value' });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
list(options?: DaemonListOptions): Promise<
|
|
37
|
+
list(options?: DaemonListOptions): Promise<Array<BackgroundProcessAttributes & {
|
|
38
|
+
id: number;
|
|
39
|
+
}>>;
|
|
38
40
|
/**
|
|
39
41
|
* Iterate over all daemons across all pages.
|
|
40
42
|
*
|
|
@@ -48,7 +50,9 @@ export declare class DaemonsCollection extends BaseCollection {
|
|
|
48
50
|
* const daemons = await forge.server(123).daemons.all().toArray();
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
|
-
all(
|
|
53
|
+
all(): AsyncPaginatedIterator<BackgroundProcessAttributes & {
|
|
54
|
+
id: number;
|
|
55
|
+
}>;
|
|
52
56
|
/**
|
|
53
57
|
* Get a specific daemon.
|
|
54
58
|
*
|
|
@@ -57,7 +61,9 @@ export declare class DaemonsCollection extends BaseCollection {
|
|
|
57
61
|
* const daemon = await forge.server(123).daemons.get(789);
|
|
58
62
|
* ```
|
|
59
63
|
*/
|
|
60
|
-
get(daemonId: number): Promise<
|
|
64
|
+
get(daemonId: number): Promise<BackgroundProcessAttributes & {
|
|
65
|
+
id: number;
|
|
66
|
+
}>;
|
|
61
67
|
/**
|
|
62
68
|
* Create a new daemon.
|
|
63
69
|
*
|
|
@@ -69,7 +75,9 @@ export declare class DaemonsCollection extends BaseCollection {
|
|
|
69
75
|
* });
|
|
70
76
|
* ```
|
|
71
77
|
*/
|
|
72
|
-
create(data: CreateDaemonData): Promise<
|
|
78
|
+
create(data: CreateDaemonData): Promise<BackgroundProcessAttributes & {
|
|
79
|
+
id: number;
|
|
80
|
+
}>;
|
|
73
81
|
/**
|
|
74
82
|
* Delete a daemon.
|
|
75
83
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemons.d.ts","sourceRoot":"","sources":["../../src/resources/daemons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"daemons.d.ts","sourceRoot":"","sources":["../../src/resources/daemons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EAGV,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WA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
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing database users.
|
|
6
6
|
*/
|
|
7
7
|
export interface DatabaseUserListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of database users on a server.
|
|
@@ -21,7 +21,7 @@ export interface DatabaseUserListOptions {
|
|
|
21
21
|
export declare class DatabaseUsersCollection extends BaseCollection {
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
/** @internal */
|
|
24
|
-
constructor(client: HttpClient, serverId: number);
|
|
24
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number);
|
|
25
25
|
private get basePath();
|
|
26
26
|
/**
|
|
27
27
|
* List database users on this server.
|
|
@@ -30,11 +30,13 @@ export declare class DatabaseUsersCollection extends BaseCollection {
|
|
|
30
30
|
* ```ts
|
|
31
31
|
* const users = await forge.server(123).databaseUsers.list();
|
|
32
32
|
*
|
|
33
|
-
* // Fetch a specific page:
|
|
34
|
-
* const page2 = await forge.server(123).databaseUsers.list({
|
|
33
|
+
* // Fetch a specific cursor page:
|
|
34
|
+
* const page2 = await forge.server(123).databaseUsers.list({ cursor: 'next-cursor-value' });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
list(options?: DatabaseUserListOptions): Promise<
|
|
37
|
+
list(options?: DatabaseUserListOptions): Promise<Array<DatabaseUserAttributes & {
|
|
38
|
+
id: number;
|
|
39
|
+
}>>;
|
|
38
40
|
/**
|
|
39
41
|
* Iterate over all database users across all pages.
|
|
40
42
|
*
|
|
@@ -48,7 +50,9 @@ export declare class DatabaseUsersCollection extends BaseCollection {
|
|
|
48
50
|
* const users = await forge.server(123).databaseUsers.all().toArray();
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
|
-
all(
|
|
53
|
+
all(): AsyncPaginatedIterator<DatabaseUserAttributes & {
|
|
54
|
+
id: number;
|
|
55
|
+
}>;
|
|
52
56
|
/**
|
|
53
57
|
* Get a specific database user.
|
|
54
58
|
*
|
|
@@ -57,7 +61,9 @@ export declare class DatabaseUsersCollection extends BaseCollection {
|
|
|
57
61
|
* const user = await forge.server(123).databaseUsers.get(789);
|
|
58
62
|
* ```
|
|
59
63
|
*/
|
|
60
|
-
get(userId: number): Promise<
|
|
64
|
+
get(userId: number): Promise<DatabaseUserAttributes & {
|
|
65
|
+
id: number;
|
|
66
|
+
}>;
|
|
61
67
|
/**
|
|
62
68
|
* Create a new database user.
|
|
63
69
|
*
|
|
@@ -70,7 +76,9 @@ export declare class DatabaseUsersCollection extends BaseCollection {
|
|
|
70
76
|
* });
|
|
71
77
|
* ```
|
|
72
78
|
*/
|
|
73
|
-
create(data: CreateDatabaseUserData): Promise<
|
|
79
|
+
create(data: CreateDatabaseUserData): Promise<DatabaseUserAttributes & {
|
|
80
|
+
id: number;
|
|
81
|
+
}>;
|
|
74
82
|
/**
|
|
75
83
|
* Delete a database user.
|
|
76
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-users.d.ts","sourceRoot":"","sources":["../../src/resources/database-users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,
|
|
1
|
+
{"version":3,"file":"database-users.d.ts","sourceRoot":"","sources":["../../src/resources/database-users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EAGV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,qBAAa,uBAAwB,SAAQ,cAAc;IAKvD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,gBAAgB;gBAEd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM;IAKnC,OAAO,KAAK,QAAQ,GAEnB;IAED;;;;;;;;;;OAUG;IACG,IAAI,CACR,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,KAAK,CAAC,sBAAsB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ1D;;;;;;;;;;;;OAYG;IACH,GAAG,IAAI,sBAAsB,CAAC,sBAAsB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAatE;;;;;;;OAOG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAO3E;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ5F;;;;;;;OAOG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { CreateDatabaseData,
|
|
1
|
+
import type { CreateDatabaseData, HttpClient, DatabaseAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing databases.
|
|
6
6
|
*/
|
|
7
7
|
export interface DatabaseListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of databases on a server.
|
|
@@ -21,7 +21,7 @@ export interface DatabaseListOptions {
|
|
|
21
21
|
export declare class DatabasesCollection extends BaseCollection {
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
/** @internal */
|
|
24
|
-
constructor(client: HttpClient, serverId: number);
|
|
24
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number);
|
|
25
25
|
private get basePath();
|
|
26
26
|
/**
|
|
27
27
|
* List databases on this server.
|
|
@@ -30,11 +30,13 @@ export declare class DatabasesCollection extends BaseCollection {
|
|
|
30
30
|
* ```ts
|
|
31
31
|
* const dbs = await forge.server(123).databases.list();
|
|
32
32
|
*
|
|
33
|
-
* // Fetch a specific page:
|
|
34
|
-
* const page2 = await forge.server(123).databases.list({
|
|
33
|
+
* // Fetch a specific cursor page:
|
|
34
|
+
* const page2 = await forge.server(123).databases.list({ cursor: 'next-cursor-value' });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
list(options?: DatabaseListOptions): Promise<
|
|
37
|
+
list(options?: DatabaseListOptions): Promise<Array<DatabaseAttributes & {
|
|
38
|
+
id: number;
|
|
39
|
+
}>>;
|
|
38
40
|
/**
|
|
39
41
|
* Iterate over all databases across all pages.
|
|
40
42
|
*
|
|
@@ -48,7 +50,9 @@ export declare class DatabasesCollection extends BaseCollection {
|
|
|
48
50
|
* const dbs = await forge.server(123).databases.all().toArray();
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
|
-
all(
|
|
53
|
+
all(): AsyncPaginatedIterator<DatabaseAttributes & {
|
|
54
|
+
id: number;
|
|
55
|
+
}>;
|
|
52
56
|
/**
|
|
53
57
|
* Get a specific database.
|
|
54
58
|
*
|
|
@@ -57,7 +61,9 @@ export declare class DatabasesCollection extends BaseCollection {
|
|
|
57
61
|
* const db = await forge.server(123).databases.get(789);
|
|
58
62
|
* ```
|
|
59
63
|
*/
|
|
60
|
-
get(databaseId: number): Promise<
|
|
64
|
+
get(databaseId: number): Promise<DatabaseAttributes & {
|
|
65
|
+
id: number;
|
|
66
|
+
}>;
|
|
61
67
|
/**
|
|
62
68
|
* Create a new database.
|
|
63
69
|
*
|
|
@@ -70,7 +76,9 @@ export declare class DatabasesCollection extends BaseCollection {
|
|
|
70
76
|
* });
|
|
71
77
|
* ```
|
|
72
78
|
*/
|
|
73
|
-
create(data: CreateDatabaseData): Promise<
|
|
79
|
+
create(data: CreateDatabaseData): Promise<DatabaseAttributes & {
|
|
80
|
+
id: number;
|
|
81
|
+
}>;
|
|
74
82
|
/**
|
|
75
83
|
* Delete a database.
|
|
76
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../src/resources/databases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../src/resources/databases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EAGV,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;IAKnD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,gBAAgB;gBAEd,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM;IAKnC,OAAO,KAAK,QAAQ,GAEnB;IAED;;;;;;;;;;OAUG;IACG,IAAI,CACR,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,KAAK,CAAC,kBAAkB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQtD;;;;;;;;;;;;OAYG;IACH,GAAG,IAAI,sBAAsB,CAAC,kBAAkB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAalE;;;;;;;OAOG;IACG,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAO3E;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAQpF;;;;;;;OAOG;IACG,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HttpClient, DeploymentAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing deployments.
|
|
6
6
|
*/
|
|
7
7
|
export interface DeploymentListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of deployments for a site.
|
|
@@ -22,7 +22,7 @@ export declare class DeploymentsCollection extends BaseCollection {
|
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
private readonly siteId;
|
|
24
24
|
/** @internal */
|
|
25
|
-
constructor(client: HttpClient, serverId: number, siteId: number);
|
|
25
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number, siteId: number);
|
|
26
26
|
private get basePath();
|
|
27
27
|
/**
|
|
28
28
|
* List deployments for this site.
|
|
@@ -31,11 +31,13 @@ export declare class DeploymentsCollection extends BaseCollection {
|
|
|
31
31
|
* ```ts
|
|
32
32
|
* const deployments = await forge.server(123).site(456).deployments.list();
|
|
33
33
|
*
|
|
34
|
-
* // Fetch a specific page:
|
|
35
|
-
* const page2 = await forge.server(123).site(456).deployments.list({
|
|
34
|
+
* // Fetch a specific cursor page:
|
|
35
|
+
* const page2 = await forge.server(123).site(456).deployments.list({ cursor: 'next-cursor-value' });
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
list(options?: DeploymentListOptions): Promise<
|
|
38
|
+
list(options?: DeploymentListOptions): Promise<Array<DeploymentAttributes & {
|
|
39
|
+
id: number;
|
|
40
|
+
}>>;
|
|
39
41
|
/**
|
|
40
42
|
* Iterate over all deployments across all pages.
|
|
41
43
|
*
|
|
@@ -49,7 +51,9 @@ export declare class DeploymentsCollection extends BaseCollection {
|
|
|
49
51
|
* const deployments = await forge.server(123).site(456).deployments.all().toArray();
|
|
50
52
|
* ```
|
|
51
53
|
*/
|
|
52
|
-
all(
|
|
54
|
+
all(): AsyncPaginatedIterator<DeploymentAttributes & {
|
|
55
|
+
id: number;
|
|
56
|
+
}>;
|
|
53
57
|
/**
|
|
54
58
|
* Get a specific deployment.
|
|
55
59
|
*
|
|
@@ -58,7 +62,9 @@ export declare class DeploymentsCollection extends BaseCollection {
|
|
|
58
62
|
* const deployment = await forge.server(123).site(456).deployments.get(789);
|
|
59
63
|
* ```
|
|
60
64
|
*/
|
|
61
|
-
get(deploymentId: number): Promise<
|
|
65
|
+
get(deploymentId: number): Promise<DeploymentAttributes & {
|
|
66
|
+
id: number;
|
|
67
|
+
}>;
|
|
62
68
|
/**
|
|
63
69
|
* Get the output of a deployment.
|
|
64
70
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/deployments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/resources/deployments.ts"],"names":[],"mappings":"AAAA,OAAO,KA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|
+
import type { CreateFirewallRuleData, HttpClient, FirewallRuleAttributes } from "@studiometa/forge-api";
|
|
2
2
|
import { BaseCollection } from "./base.ts";
|
|
3
3
|
import { AsyncPaginatedIterator } from "../pagination.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Options for listing firewall rules.
|
|
6
6
|
*/
|
|
7
7
|
export interface FirewallRuleListOptions {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/** Cursor for pagination (from previous response's next_cursor). */
|
|
9
|
+
cursor?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Collection of firewall rules on a server.
|
|
@@ -21,7 +21,7 @@ export interface FirewallRuleListOptions {
|
|
|
21
21
|
export declare class FirewallRulesCollection extends BaseCollection {
|
|
22
22
|
private readonly serverId;
|
|
23
23
|
/** @internal */
|
|
24
|
-
constructor(client: HttpClient, serverId: number);
|
|
24
|
+
constructor(client: HttpClient, orgSlug: string, serverId: number);
|
|
25
25
|
private get basePath();
|
|
26
26
|
/**
|
|
27
27
|
* List firewall rules on this server.
|
|
@@ -30,11 +30,13 @@ export declare class FirewallRulesCollection extends BaseCollection {
|
|
|
30
30
|
* ```ts
|
|
31
31
|
* const rules = await forge.server(123).firewallRules.list();
|
|
32
32
|
*
|
|
33
|
-
* // Fetch a specific page:
|
|
34
|
-
* const page2 = await forge.server(123).firewallRules.list({
|
|
33
|
+
* // Fetch a specific cursor page:
|
|
34
|
+
* const page2 = await forge.server(123).firewallRules.list({ cursor: 'next-cursor-value' });
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
list(options?: FirewallRuleListOptions): Promise<
|
|
37
|
+
list(options?: FirewallRuleListOptions): Promise<Array<FirewallRuleAttributes & {
|
|
38
|
+
id: number;
|
|
39
|
+
}>>;
|
|
38
40
|
/**
|
|
39
41
|
* Iterate over all firewall rules across all pages.
|
|
40
42
|
*
|
|
@@ -48,7 +50,9 @@ export declare class FirewallRulesCollection extends BaseCollection {
|
|
|
48
50
|
* const rules = await forge.server(123).firewallRules.all().toArray();
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
|
-
all(
|
|
53
|
+
all(): AsyncPaginatedIterator<FirewallRuleAttributes & {
|
|
54
|
+
id: number;
|
|
55
|
+
}>;
|
|
52
56
|
/**
|
|
53
57
|
* Get a specific firewall rule.
|
|
54
58
|
*
|
|
@@ -57,7 +61,9 @@ export declare class FirewallRulesCollection extends BaseCollection {
|
|
|
57
61
|
* const rule = await forge.server(123).firewallRules.get(789);
|
|
58
62
|
* ```
|
|
59
63
|
*/
|
|
60
|
-
get(ruleId: number): Promise<
|
|
64
|
+
get(ruleId: number): Promise<FirewallRuleAttributes & {
|
|
65
|
+
id: number;
|
|
66
|
+
}>;
|
|
61
67
|
/**
|
|
62
68
|
* Create a new firewall rule.
|
|
63
69
|
*
|
|
@@ -70,7 +76,9 @@ export declare class FirewallRulesCollection extends BaseCollection {
|
|
|
70
76
|
* });
|
|
71
77
|
* ```
|
|
72
78
|
*/
|
|
73
|
-
create(data: CreateFirewallRuleData): Promise<
|
|
79
|
+
create(data: CreateFirewallRuleData): Promise<FirewallRuleAttributes & {
|
|
80
|
+
id: number;
|
|
81
|
+
}>;
|
|
74
82
|
/**
|
|
75
83
|
* Delete a firewall rule.
|
|
76
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/resources/firewall-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,
|
|
1
|
+
{"version":3,"file":"firewall-rules.d.ts","sourceRoot":"","sources":["../../src/resources/firewall-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EAGV,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;GAEG;A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