@madewithremy/admin 0.1.64 → 0.1.65
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/CHANGELOG.md +11 -0
- package/dist/client.d.ts +1 -0
- package/dist/index.js.map +2 -2
- package/dist/ops/infra.d.ts +12 -3
- package/dist/prod.js +6 -6
- package/package.json +1 -1
package/dist/ops/infra.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export interface ListParams {
|
|
|
18
18
|
* The app's dedicated resources plus the offerings it can provision, with
|
|
19
19
|
* their hourly and monthly prices.
|
|
20
20
|
*
|
|
21
|
+
* In a method, needs the `infra.view` admin permission, which reads the list,
|
|
22
|
+
* each resource and its narration; the changes (provision, hibernate, resume,
|
|
23
|
+
* resize, destroy, rename) are a person's only.
|
|
24
|
+
*
|
|
21
25
|
* @example
|
|
22
26
|
* const { resources, offerings } = await admin.infra.list();
|
|
23
27
|
*/
|
|
@@ -28,8 +32,11 @@ export interface GetParams {
|
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
30
34
|
* One resource with its state timeline and the data sources placed on it.
|
|
35
|
+
* In a method, needs `infra.view`.
|
|
31
36
|
*
|
|
32
|
-
* @throws AdminApiError `resource_not_found` (404)
|
|
37
|
+
* @throws AdminApiError `resource_not_found` (404);
|
|
38
|
+
* `admin_permission_required:infra.view` (403) — a method that doesn't
|
|
39
|
+
* declare it.
|
|
33
40
|
*/
|
|
34
41
|
export declare function get(ctx: AdminContext, params: GetParams): Promise<InfraGetResult>;
|
|
35
42
|
export interface LogsParams {
|
|
@@ -44,9 +51,11 @@ export interface LogsParams {
|
|
|
44
51
|
* The platform's narration of a resource, oldest first: the steps a
|
|
45
52
|
* transition went through, failed attempts, and failures with the pod's
|
|
46
53
|
* events and a warnings-and-errors tail of the instance log. Not the
|
|
47
|
-
* instance's own stdout.
|
|
54
|
+
* instance's own stdout. In a method, needs `infra.view`.
|
|
48
55
|
*
|
|
49
|
-
* @throws AdminApiError `resource_not_found` (404)
|
|
56
|
+
* @throws AdminApiError `resource_not_found` (404);
|
|
57
|
+
* `admin_permission_required:infra.view` (403) — a method that doesn't
|
|
58
|
+
* declare it.
|
|
50
59
|
*/
|
|
51
60
|
export declare function logs(ctx: AdminContext, params: LogsParams): Promise<InfraLogsResult>;
|
|
52
61
|
export interface ProvisionParams {
|
package/dist/prod.js
CHANGED
|
@@ -9715,10 +9715,9 @@ async function waitAndReport2(ctx, a, id, phases, summary4, until) {
|
|
|
9715
9715
|
});
|
|
9716
9716
|
printJson({ ...summary4, ...result });
|
|
9717
9717
|
if (result.status === "failed") {
|
|
9718
|
-
|
|
9719
|
-
}
|
|
9720
|
-
|
|
9721
|
-
throw new CliError(result.error, EXIT.timeout);
|
|
9718
|
+
process.exitCode = EXIT.buildFailed;
|
|
9719
|
+
} else if (result.status === "timeout") {
|
|
9720
|
+
process.exitCode = EXIT.timeout;
|
|
9722
9721
|
}
|
|
9723
9722
|
}
|
|
9724
9723
|
async function infraList(ctx, a) {
|
|
@@ -9835,7 +9834,7 @@ async function infraResize(ctx, a) {
|
|
|
9835
9834
|
printJson({
|
|
9836
9835
|
resource,
|
|
9837
9836
|
pricing,
|
|
9838
|
-
note:
|
|
9837
|
+
note: `Resizing; ${resource.kind === "database" ? "the app's queries pause" : "searches on its sources pause"} while it is parked and restored. Poll \`infra get <id>\` or re-run with --wait.`
|
|
9839
9838
|
});
|
|
9840
9839
|
return;
|
|
9841
9840
|
}
|
|
@@ -10444,7 +10443,8 @@ allow. analytics.view, usage.view, requests.view (requests, crashes),
|
|
|
10444
10443
|
agent.view, tasks.view, voice.view|manage, users.view|manage (live runs only),
|
|
10445
10444
|
settings.manage, email.view|manage, domains.manage (custom domains, the
|
|
10446
10445
|
subdomain), issues.view|manage, datasources.manage, cron.view|manage,
|
|
10447
|
-
releases.view.
|
|
10446
|
+
releases.view, infra.view (infra list, get, logs). A .manage includes its
|
|
10447
|
+
.view. A call the method doesn't hold is
|
|
10448
10448
|
admin_permission_required:<name>; another app is app_credential_wrong_app and
|
|
10449
10449
|
needs a key. The full list and rules are createAdminClient's docs.`;
|
|
10450
10450
|
var GROUPS = [
|