@ericminassian/platform-core 0.4.1 → 0.5.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/dist/api.d.ts +89 -231
- package/dist/api.js +49 -92
- package/dist/api.js.map +1 -1
- package/dist/config.d.ts +0 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +0 -17
- package/dist/constants.js +0 -17
- package/dist/constants.js.map +1 -1
- package/dist/explore.d.ts +35 -33
- package/dist/explore.js +32 -32
- package/dist/explore.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +1 -1
- package/dist/jobs.js +1 -1
- package/dist/manifest.d.ts +10 -47
- package/dist/manifest.js +7 -15
- package/dist/manifest.js.map +1 -1
- package/dist/naming.d.ts +7 -23
- package/dist/naming.js +7 -23
- package/dist/naming.js.map +1 -1
- package/dist/platform-api.d.ts +3996 -4466
- package/dist/platform-api.js +19 -36
- package/dist/platform-api.js.map +1 -1
- package/dist/runtime-config.d.ts +0 -20
- package/dist/runtime-config.js.map +1 -1
- package/dist/telemetry.d.ts +40 -25
- package/dist/telemetry.js +55 -17
- package/dist/telemetry.js.map +1 -1
- package/dist/web-compute.js +2 -1
- package/dist/web-compute.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +57 -110
- package/src/config.ts +0 -2
- package/src/constants.ts +0 -19
- package/src/explore.ts +31 -31
- package/src/index.ts +0 -1
- package/src/jobs.ts +1 -1
- package/src/manifest.ts +15 -48
- package/src/naming.ts +7 -25
- package/src/platform-api.ts +25 -38
- package/src/runtime-config.ts +0 -21
- package/src/telemetry.ts +57 -17
- package/src/web-compute.ts +3 -1
- package/dist/compute.d.ts +0 -52
- package/dist/compute.js +0 -65
- package/dist/compute.js.map +0 -1
- package/src/compute.ts +0 -86
package/dist/api.d.ts
CHANGED
|
@@ -8,10 +8,18 @@
|
|
|
8
8
|
* possibly-missing values encodes; JSON drops them either way.
|
|
9
9
|
*/
|
|
10
10
|
import { Schema } from 'effect';
|
|
11
|
+
/** A GitHub repository's visibility, as its Actions OIDC tokens state it. */
|
|
12
|
+
export declare const RepoVisibility: Schema.Literals<readonly ["public", "private", "internal"]>;
|
|
13
|
+
export type RepoVisibility = typeof RepoVisibility.Type;
|
|
11
14
|
export declare const AppRecord: Schema.Struct<{
|
|
12
15
|
readonly name: Schema.String;
|
|
13
16
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
14
17
|
readonly repo: Schema.String;
|
|
18
|
+
/**
|
|
19
|
+
* The repo's visibility at its last CI deploy (absent before one): the
|
|
20
|
+
* public directory links a public repo. Changing `repo` forgets it.
|
|
21
|
+
*/
|
|
22
|
+
readonly repoVisibility: Schema.optional<Schema.Literals<readonly ["public", "private", "internal"]>>;
|
|
15
23
|
readonly description: Schema.optional<Schema.String>;
|
|
16
24
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
17
25
|
readonly owners: Schema.$Array<Schema.String>;
|
|
@@ -109,6 +117,7 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
109
117
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
110
118
|
readonly name: Schema.String;
|
|
111
119
|
readonly description: Schema.optional<Schema.String>;
|
|
120
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
112
121
|
readonly web: Schema.optional<Schema.Struct<{
|
|
113
122
|
readonly server: Schema.optional<Schema.String>;
|
|
114
123
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -169,13 +178,6 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
169
178
|
readonly name: Schema.optional<Schema.String>;
|
|
170
179
|
readonly dailyLimit: Schema.Finite;
|
|
171
180
|
}>>;
|
|
172
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
173
|
-
readonly entry: Schema.String;
|
|
174
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
175
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
176
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
177
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
178
|
-
}>>, never>;
|
|
179
181
|
}>>;
|
|
180
182
|
/** How it runs the server. */
|
|
181
183
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -243,6 +245,11 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
243
245
|
readonly name: Schema.String;
|
|
244
246
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
245
247
|
readonly repo: Schema.String;
|
|
248
|
+
/**
|
|
249
|
+
* The repo's visibility at its last CI deploy (absent before one): the
|
|
250
|
+
* public directory links a public repo. Changing `repo` forgets it.
|
|
251
|
+
*/
|
|
252
|
+
readonly repoVisibility: Schema.optional<Schema.Literals<readonly ["public", "private", "internal"]>>;
|
|
246
253
|
readonly description: Schema.optional<Schema.String>;
|
|
247
254
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
248
255
|
readonly owners: Schema.$Array<Schema.String>;
|
|
@@ -310,6 +317,7 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
310
317
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
311
318
|
readonly name: Schema.String;
|
|
312
319
|
readonly description: Schema.optional<Schema.String>;
|
|
320
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
313
321
|
readonly web: Schema.optional<Schema.Struct<{
|
|
314
322
|
readonly server: Schema.optional<Schema.String>;
|
|
315
323
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -370,13 +378,6 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
370
378
|
readonly name: Schema.optional<Schema.String>;
|
|
371
379
|
readonly dailyLimit: Schema.Finite;
|
|
372
380
|
}>>;
|
|
373
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
374
|
-
readonly entry: Schema.String;
|
|
375
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
376
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
377
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
378
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
379
|
-
}>>, never>;
|
|
380
381
|
}>>;
|
|
381
382
|
/** How it runs the server. */
|
|
382
383
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -405,10 +406,64 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
405
406
|
readonly total: Schema.Finite;
|
|
406
407
|
readonly alarm: Schema.Finite;
|
|
407
408
|
}>>;
|
|
409
|
+
/** Whether the public directory lists prod: its live deployment's `listed` (absent without one). */
|
|
410
|
+
readonly listed: Schema.optional<Schema.Boolean>;
|
|
408
411
|
}>;
|
|
409
412
|
export type AppSummary = typeof AppSummary.Type;
|
|
410
|
-
/**
|
|
411
|
-
export declare const
|
|
413
|
+
/** Days of traffic the public directory gives each app. */
|
|
414
|
+
export declare const PUBLIC_DIRECTORY_DAYS = 30;
|
|
415
|
+
/** An app in the public directory: its prod stage, as anyone may see it. */
|
|
416
|
+
export declare const PublicApp: Schema.Struct<{
|
|
417
|
+
readonly name: Schema.String;
|
|
418
|
+
/** The live deployment's `description` in plat.config.ts, else the app's own. */
|
|
419
|
+
readonly description: Schema.optional<Schema.String>;
|
|
420
|
+
readonly url: Schema.String;
|
|
421
|
+
/** The GitHub repository's page, when the repo is public. */
|
|
422
|
+
readonly source: Schema.optional<Schema.String>;
|
|
423
|
+
/** When prod was first deployed. */
|
|
424
|
+
readonly liveSince: Schema.String;
|
|
425
|
+
/** When the deployment prod serves went live (a compute switch keeps its build's time). */
|
|
426
|
+
readonly lastDeployedAt: Schema.String;
|
|
427
|
+
/** Whether prod was up at the uptime pinger's last result; null before its first. */
|
|
428
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
429
|
+
/** Pages the router served for prod's host on each of `days` (`isPageView`); today's so far. */
|
|
430
|
+
readonly pageViews: Schema.$Array<Schema.Finite>;
|
|
431
|
+
/** Every request the router served for it on each of `days`: files, server and stores. */
|
|
432
|
+
readonly requests: Schema.$Array<Schema.Finite>;
|
|
433
|
+
}>;
|
|
434
|
+
export type PublicApp = typeof PublicApp.Type;
|
|
435
|
+
/** Every app whose live prod deployment is `listed` (the default), by name. */
|
|
436
|
+
export declare const PublicAppsResponse: Schema.Struct<{
|
|
437
|
+
readonly generatedAt: Schema.String;
|
|
438
|
+
/** The UTC days the counts cover (`YYYY-MM-DD`), oldest first, ending today (so far). */
|
|
439
|
+
readonly days: Schema.$Array<Schema.String>;
|
|
440
|
+
/**
|
|
441
|
+
* The first UTC day the router's access log counted (`YYYY-MM-DD`): days
|
|
442
|
+
* before it have no counts, rather than no traffic. Absent where the
|
|
443
|
+
* platform has no access log (`plat dev`).
|
|
444
|
+
*/
|
|
445
|
+
readonly countingSince: Schema.optional<Schema.String>;
|
|
446
|
+
readonly apps: Schema.$Array<Schema.Struct<{
|
|
447
|
+
readonly name: Schema.String;
|
|
448
|
+
/** The live deployment's `description` in plat.config.ts, else the app's own. */
|
|
449
|
+
readonly description: Schema.optional<Schema.String>;
|
|
450
|
+
readonly url: Schema.String;
|
|
451
|
+
/** The GitHub repository's page, when the repo is public. */
|
|
452
|
+
readonly source: Schema.optional<Schema.String>;
|
|
453
|
+
/** When prod was first deployed. */
|
|
454
|
+
readonly liveSince: Schema.String;
|
|
455
|
+
/** When the deployment prod serves went live (a compute switch keeps its build's time). */
|
|
456
|
+
readonly lastDeployedAt: Schema.String;
|
|
457
|
+
/** Whether prod was up at the uptime pinger's last result; null before its first. */
|
|
458
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
459
|
+
/** Pages the router served for prod's host on each of `days` (`isPageView`); today's so far. */
|
|
460
|
+
readonly pageViews: Schema.$Array<Schema.Finite>;
|
|
461
|
+
/** Every request the router served for it on each of `days`: files, server and stores. */
|
|
462
|
+
readonly requests: Schema.$Array<Schema.Finite>;
|
|
463
|
+
}>>;
|
|
464
|
+
}>;
|
|
465
|
+
export type PublicAppsResponse = typeof PublicAppsResponse.Type;
|
|
466
|
+
export declare const ArtifactFile: Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>;
|
|
412
467
|
export type ArtifactFile = typeof ArtifactFile.Type;
|
|
413
468
|
export declare const PresignedPost: Schema.Struct<{
|
|
414
469
|
readonly url: Schema.String;
|
|
@@ -423,7 +478,7 @@ export declare const CreateDeploymentRequest: Schema.Struct<{
|
|
|
423
478
|
*/
|
|
424
479
|
readonly manifest: Schema.Unknown;
|
|
425
480
|
/** Which artifacts the CLI will upload (manifest.json is always uploaded). */
|
|
426
|
-
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"
|
|
481
|
+
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>>>;
|
|
427
482
|
readonly commit: Schema.optional<Schema.String>;
|
|
428
483
|
readonly ref: Schema.optional<Schema.String>;
|
|
429
484
|
readonly message: Schema.optional<Schema.String>;
|
|
@@ -447,6 +502,7 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
447
502
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
448
503
|
readonly name: Schema.String;
|
|
449
504
|
readonly description: Schema.optional<Schema.String>;
|
|
505
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
450
506
|
readonly web: Schema.optional<Schema.Struct<{
|
|
451
507
|
readonly server: Schema.optional<Schema.String>;
|
|
452
508
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -507,13 +563,6 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
507
563
|
readonly name: Schema.optional<Schema.String>;
|
|
508
564
|
readonly dailyLimit: Schema.Finite;
|
|
509
565
|
}>>;
|
|
510
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
511
|
-
readonly entry: Schema.String;
|
|
512
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
513
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
514
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
515
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
516
|
-
}>>, never>;
|
|
517
566
|
}>>;
|
|
518
567
|
/** How it runs the server. */
|
|
519
568
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -553,10 +602,6 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
553
602
|
readonly url: Schema.String;
|
|
554
603
|
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
555
604
|
}>>;
|
|
556
|
-
readonly 'services.zip': Schema.optional<Schema.Struct<{
|
|
557
|
-
readonly url: Schema.String;
|
|
558
|
-
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
559
|
-
}>>;
|
|
560
605
|
}>;
|
|
561
606
|
}>;
|
|
562
607
|
export type CreateDeploymentResponse = typeof CreateDeploymentResponse.Type;
|
|
@@ -626,10 +671,10 @@ export declare const RouteStats: Schema.Struct<{
|
|
|
626
671
|
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
627
672
|
}>;
|
|
628
673
|
export type RouteStats = typeof RouteStats.Type;
|
|
629
|
-
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
674
|
+
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
630
675
|
export type JobKind = typeof JobKind.Type;
|
|
631
676
|
export declare const JobStats: Schema.Struct<{
|
|
632
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
677
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
633
678
|
readonly name: Schema.String;
|
|
634
679
|
readonly ok: Schema.Finite;
|
|
635
680
|
readonly error: Schema.Finite;
|
|
@@ -639,7 +684,7 @@ export declare const JobStats: Schema.Struct<{
|
|
|
639
684
|
export type JobStats = typeof JobStats.Type;
|
|
640
685
|
export declare const JobsResponse: Schema.Struct<{
|
|
641
686
|
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
642
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
687
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
643
688
|
readonly name: Schema.String;
|
|
644
689
|
readonly ok: Schema.Finite;
|
|
645
690
|
readonly error: Schema.Finite;
|
|
@@ -943,7 +988,7 @@ export declare const UpdateErrorRequest: Schema.Struct<{
|
|
|
943
988
|
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
944
989
|
}>;
|
|
945
990
|
export type UpdateErrorRequest = typeof UpdateErrorRequest.Type;
|
|
946
|
-
/** Log stream of a line: `web
|
|
991
|
+
/** Log stream of a line: `web` or `worker`. */
|
|
947
992
|
export declare const LogStream: Schema.String;
|
|
948
993
|
export type LogStream = typeof LogStream.Type;
|
|
949
994
|
export declare const LogLine: Schema.Struct<{
|
|
@@ -983,7 +1028,7 @@ export declare const LogLine: Schema.Struct<{
|
|
|
983
1028
|
readonly span: Schema.optional<Schema.String>;
|
|
984
1029
|
readonly parent: Schema.optional<Schema.String>;
|
|
985
1030
|
readonly t: Schema.Literal<"err">;
|
|
986
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1031
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
987
1032
|
readonly name: Schema.String;
|
|
988
1033
|
readonly message: Schema.String;
|
|
989
1034
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1002,7 +1047,7 @@ export declare const LogLine: Schema.Struct<{
|
|
|
1002
1047
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1003
1048
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1004
1049
|
readonly t: Schema.Literal<"job">;
|
|
1005
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1050
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1006
1051
|
readonly name: Schema.String;
|
|
1007
1052
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1008
1053
|
readonly dur: Schema.Finite;
|
|
@@ -1071,10 +1116,8 @@ export declare const LogLine: Schema.Struct<{
|
|
|
1071
1116
|
readonly parent: Schema.optional<Schema.String>;
|
|
1072
1117
|
readonly t: Schema.Literal<"env">;
|
|
1073
1118
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1074
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1119
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1075
1120
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1076
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1077
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1078
1121
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1079
1122
|
}>]>>;
|
|
1080
1123
|
}>;
|
|
@@ -1117,7 +1160,7 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1117
1160
|
readonly span: Schema.optional<Schema.String>;
|
|
1118
1161
|
readonly parent: Schema.optional<Schema.String>;
|
|
1119
1162
|
readonly t: Schema.Literal<"err">;
|
|
1120
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1163
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1121
1164
|
readonly name: Schema.String;
|
|
1122
1165
|
readonly message: Schema.String;
|
|
1123
1166
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1136,7 +1179,7 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1136
1179
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1137
1180
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1138
1181
|
readonly t: Schema.Literal<"job">;
|
|
1139
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1182
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1140
1183
|
readonly name: Schema.String;
|
|
1141
1184
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1142
1185
|
readonly dur: Schema.Finite;
|
|
@@ -1205,10 +1248,8 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1205
1248
|
readonly parent: Schema.optional<Schema.String>;
|
|
1206
1249
|
readonly t: Schema.Literal<"env">;
|
|
1207
1250
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1208
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1251
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1209
1252
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1210
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1211
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1212
1253
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1213
1254
|
}>]>>;
|
|
1214
1255
|
}>>;
|
|
@@ -1248,7 +1289,7 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1248
1289
|
readonly span: Schema.optional<Schema.String>;
|
|
1249
1290
|
readonly parent: Schema.optional<Schema.String>;
|
|
1250
1291
|
readonly t: Schema.Literal<"err">;
|
|
1251
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1292
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1252
1293
|
readonly name: Schema.String;
|
|
1253
1294
|
readonly message: Schema.String;
|
|
1254
1295
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1267,7 +1308,7 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1267
1308
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1268
1309
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1269
1310
|
readonly t: Schema.Literal<"job">;
|
|
1270
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1311
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1271
1312
|
readonly name: Schema.String;
|
|
1272
1313
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1273
1314
|
readonly dur: Schema.Finite;
|
|
@@ -1336,10 +1377,8 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1336
1377
|
readonly parent: Schema.optional<Schema.String>;
|
|
1337
1378
|
readonly t: Schema.Literal<"env">;
|
|
1338
1379
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1339
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1380
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1340
1381
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1341
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1342
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1343
1382
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1344
1383
|
}>]>>;
|
|
1345
1384
|
}>;
|
|
@@ -1383,7 +1422,7 @@ export declare const LogContextResponse: Schema.Struct<{
|
|
|
1383
1422
|
readonly span: Schema.optional<Schema.String>;
|
|
1384
1423
|
readonly parent: Schema.optional<Schema.String>;
|
|
1385
1424
|
readonly t: Schema.Literal<"err">;
|
|
1386
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1425
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1387
1426
|
readonly name: Schema.String;
|
|
1388
1427
|
readonly message: Schema.String;
|
|
1389
1428
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1402,7 +1441,7 @@ export declare const LogContextResponse: Schema.Struct<{
|
|
|
1402
1441
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1403
1442
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1404
1443
|
readonly t: Schema.Literal<"job">;
|
|
1405
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1444
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1406
1445
|
readonly name: Schema.String;
|
|
1407
1446
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1408
1447
|
readonly dur: Schema.Finite;
|
|
@@ -1471,10 +1510,8 @@ export declare const LogContextResponse: Schema.Struct<{
|
|
|
1471
1510
|
readonly parent: Schema.optional<Schema.String>;
|
|
1472
1511
|
readonly t: Schema.Literal<"env">;
|
|
1473
1512
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1474
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1513
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1475
1514
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1476
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1477
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1478
1515
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1479
1516
|
}>]>>;
|
|
1480
1517
|
}>>;
|
|
@@ -1654,30 +1691,6 @@ export declare const UptimePoint: Schema.Union<readonly [Schema.Struct<{
|
|
|
1654
1691
|
readonly s5xx: Schema.Finite;
|
|
1655
1692
|
}>]>;
|
|
1656
1693
|
export type UptimePoint = typeof UptimePoint.Type;
|
|
1657
|
-
/** Monthly cost of one container if it runs all month (`estimateContainerCost`). */
|
|
1658
|
-
export declare const MonthlyContainerCost: Schema.Struct<{
|
|
1659
|
-
readonly computeUsd: Schema.Finite;
|
|
1660
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1661
|
-
readonly totalUsd: Schema.Finite;
|
|
1662
|
-
}>;
|
|
1663
|
-
/**
|
|
1664
|
-
* Something billed for as long as it runs, estimated from its size because
|
|
1665
|
-
* Cost Explorer lags a day and doesn't attribute every part of it to the
|
|
1666
|
-
* app (a container's public IPv4 address).
|
|
1667
|
-
*/
|
|
1668
|
-
export declare const AlwaysOnCost: Schema.Struct<{
|
|
1669
|
-
readonly stage: Schema.String;
|
|
1670
|
-
readonly kind: Schema.Literal<"service">;
|
|
1671
|
-
readonly name: Schema.String;
|
|
1672
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1673
|
-
readonly detail: Schema.String;
|
|
1674
|
-
readonly monthly: Schema.Struct<{
|
|
1675
|
-
readonly computeUsd: Schema.Finite;
|
|
1676
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1677
|
-
readonly totalUsd: Schema.Finite;
|
|
1678
|
-
}>;
|
|
1679
|
-
}>;
|
|
1680
|
-
export type AlwaysOnCost = typeof AlwaysOnCost.Type;
|
|
1681
1694
|
/** A non-preview stage's server: how it runs, and (prod) what each mode would cost. */
|
|
1682
1695
|
export declare const StageCompute: Schema.Struct<{
|
|
1683
1696
|
readonly stage: Schema.String;
|
|
@@ -1713,19 +1726,6 @@ export declare const CostResponse: Schema.Struct<{
|
|
|
1713
1726
|
readonly usd: Schema.Finite;
|
|
1714
1727
|
}>>;
|
|
1715
1728
|
readonly monthToDateUsd: Schema.Finite;
|
|
1716
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1717
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1718
|
-
readonly stage: Schema.String;
|
|
1719
|
-
readonly kind: Schema.Literal<"service">;
|
|
1720
|
-
readonly name: Schema.String;
|
|
1721
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1722
|
-
readonly detail: Schema.String;
|
|
1723
|
-
readonly monthly: Schema.Struct<{
|
|
1724
|
-
readonly computeUsd: Schema.Finite;
|
|
1725
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1726
|
-
readonly totalUsd: Schema.Finite;
|
|
1727
|
-
}>;
|
|
1728
|
-
}>>>;
|
|
1729
1729
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1730
1730
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1731
1731
|
readonly stage: Schema.String;
|
|
@@ -1825,121 +1825,6 @@ export type UrlResponse = typeof UrlResponse.Type;
|
|
|
1825
1825
|
export declare const CronRunResponse: Schema.Struct<{
|
|
1826
1826
|
readonly started: Schema.String;
|
|
1827
1827
|
}>;
|
|
1828
|
-
/**
|
|
1829
|
-
* - `running`: every desired task is up and the latest rollout finished
|
|
1830
|
-
* - `starting`: a rollout or replacement is under way
|
|
1831
|
-
* - `failing`: tasks keep stopping before they settle, or the last rollout failed
|
|
1832
|
-
* - `stopped`: scaled to zero (a preview past its minutes, or `plat services stop`)
|
|
1833
|
-
*/
|
|
1834
|
-
export declare const ServiceState: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1835
|
-
export type ServiceState = typeof ServiceState.Type;
|
|
1836
|
-
export declare const ServiceInfo: Schema.Struct<{
|
|
1837
|
-
readonly name: Schema.String;
|
|
1838
|
-
/** Size and capacity the live deployment declares. */
|
|
1839
|
-
readonly cpu: Schema.Finite;
|
|
1840
|
-
readonly memoryMb: Schema.Finite;
|
|
1841
|
-
readonly spot: Schema.Boolean;
|
|
1842
|
-
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1843
|
-
readonly desired: Schema.Finite;
|
|
1844
|
-
readonly running: Schema.Finite;
|
|
1845
|
-
readonly pending: Schema.Finite;
|
|
1846
|
-
/** Deployment whose build the service runs. */
|
|
1847
|
-
readonly deployment: Schema.optional<Schema.String>;
|
|
1848
|
-
/** When the current task started. */
|
|
1849
|
-
readonly startedAt: Schema.optional<Schema.String>;
|
|
1850
|
-
/** When a preview's stop schedule scales it to zero. */
|
|
1851
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1852
|
-
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1853
|
-
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1854
|
-
readonly at: Schema.String;
|
|
1855
|
-
readonly reason: Schema.String;
|
|
1856
|
-
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1857
|
-
}>>;
|
|
1858
|
-
/** Recent ECS service events, newest first. */
|
|
1859
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
1860
|
-
readonly at: Schema.String;
|
|
1861
|
-
readonly message: Schema.String;
|
|
1862
|
-
}>>;
|
|
1863
|
-
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1864
|
-
readonly starts: Schema.Finite;
|
|
1865
|
-
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1866
|
-
readonly failedRuns: Schema.Finite;
|
|
1867
|
-
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1868
|
-
readonly points: Schema.$Array<Schema.Struct<{
|
|
1869
|
-
readonly ts: Schema.String;
|
|
1870
|
-
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1871
|
-
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1872
|
-
}>>;
|
|
1873
|
-
/** If it ran all month. */
|
|
1874
|
-
readonly monthly: Schema.Struct<{
|
|
1875
|
-
readonly computeUsd: Schema.Finite;
|
|
1876
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1877
|
-
readonly totalUsd: Schema.Finite;
|
|
1878
|
-
}>;
|
|
1879
|
-
}>;
|
|
1880
|
-
export type ServiceInfo = typeof ServiceInfo.Type;
|
|
1881
|
-
export declare const ServicesResponse: Schema.Struct<{
|
|
1882
|
-
readonly app: Schema.String;
|
|
1883
|
-
readonly stage: Schema.String;
|
|
1884
|
-
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
1885
|
-
readonly services: Schema.$Array<Schema.Struct<{
|
|
1886
|
-
readonly name: Schema.String;
|
|
1887
|
-
/** Size and capacity the live deployment declares. */
|
|
1888
|
-
readonly cpu: Schema.Finite;
|
|
1889
|
-
readonly memoryMb: Schema.Finite;
|
|
1890
|
-
readonly spot: Schema.Boolean;
|
|
1891
|
-
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1892
|
-
readonly desired: Schema.Finite;
|
|
1893
|
-
readonly running: Schema.Finite;
|
|
1894
|
-
readonly pending: Schema.Finite;
|
|
1895
|
-
/** Deployment whose build the service runs. */
|
|
1896
|
-
readonly deployment: Schema.optional<Schema.String>;
|
|
1897
|
-
/** When the current task started. */
|
|
1898
|
-
readonly startedAt: Schema.optional<Schema.String>;
|
|
1899
|
-
/** When a preview's stop schedule scales it to zero. */
|
|
1900
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1901
|
-
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1902
|
-
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1903
|
-
readonly at: Schema.String;
|
|
1904
|
-
readonly reason: Schema.String;
|
|
1905
|
-
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1906
|
-
}>>;
|
|
1907
|
-
/** Recent ECS service events, newest first. */
|
|
1908
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
1909
|
-
readonly at: Schema.String;
|
|
1910
|
-
readonly message: Schema.String;
|
|
1911
|
-
}>>;
|
|
1912
|
-
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1913
|
-
readonly starts: Schema.Finite;
|
|
1914
|
-
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1915
|
-
readonly failedRuns: Schema.Finite;
|
|
1916
|
-
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1917
|
-
readonly points: Schema.$Array<Schema.Struct<{
|
|
1918
|
-
readonly ts: Schema.String;
|
|
1919
|
-
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1920
|
-
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1921
|
-
}>>;
|
|
1922
|
-
/** If it ran all month. */
|
|
1923
|
-
readonly monthly: Schema.Struct<{
|
|
1924
|
-
readonly computeUsd: Schema.Finite;
|
|
1925
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1926
|
-
readonly totalUsd: Schema.Finite;
|
|
1927
|
-
}>;
|
|
1928
|
-
}>>;
|
|
1929
|
-
}>;
|
|
1930
|
-
export type ServicesResponse = typeof ServicesResponse.Type;
|
|
1931
|
-
export declare const StartServiceRequest: Schema.Struct<{
|
|
1932
|
-
/** Stop it again after this many minutes. Previews default to the service's `previewMinutes`. */
|
|
1933
|
-
readonly minutes: Schema.optional<Schema.Int>;
|
|
1934
|
-
}>;
|
|
1935
|
-
export type StartServiceRequest = typeof StartServiceRequest.Encoded;
|
|
1936
|
-
export declare const ServiceActionResponse: Schema.Struct<{
|
|
1937
|
-
readonly name: Schema.String;
|
|
1938
|
-
/** Tasks the service now asks for (1 running, 0 stopped). */
|
|
1939
|
-
readonly desired: Schema.Finite;
|
|
1940
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1941
|
-
}>;
|
|
1942
|
-
export type ServiceActionResponse = typeof ServiceActionResponse.Type;
|
|
1943
1828
|
export type CronRunResponse = typeof CronRunResponse.Type;
|
|
1944
1829
|
export declare const AdminOverview: Schema.Struct<{
|
|
1945
1830
|
readonly members: Schema.$Array<Schema.Struct<{
|
|
@@ -1952,7 +1837,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
1952
1837
|
readonly emailsPerDay: Schema.Finite;
|
|
1953
1838
|
readonly edgeRequestsPerMinute: Schema.optional<Schema.Finite>;
|
|
1954
1839
|
readonly edgeFloorAt: Schema.optional<Schema.Finite>;
|
|
1955
|
-
readonly servicesPerApp: Schema.Finite;
|
|
1956
1840
|
}>;
|
|
1957
1841
|
readonly apps: Schema.Finite;
|
|
1958
1842
|
readonly stages: Schema.Finite;
|
|
@@ -1968,19 +1852,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
1968
1852
|
readonly usd: Schema.Finite;
|
|
1969
1853
|
}>>;
|
|
1970
1854
|
readonly monthToDateUsd: Schema.Finite;
|
|
1971
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1972
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1973
|
-
readonly stage: Schema.String;
|
|
1974
|
-
readonly kind: Schema.Literal<"service">;
|
|
1975
|
-
readonly name: Schema.String;
|
|
1976
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1977
|
-
readonly detail: Schema.String;
|
|
1978
|
-
readonly monthly: Schema.Struct<{
|
|
1979
|
-
readonly computeUsd: Schema.Finite;
|
|
1980
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1981
|
-
readonly totalUsd: Schema.Finite;
|
|
1982
|
-
}>;
|
|
1983
|
-
}>>>;
|
|
1984
1855
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1985
1856
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1986
1857
|
readonly stage: Schema.String;
|
|
@@ -2016,19 +1887,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
2016
1887
|
readonly usd: Schema.Finite;
|
|
2017
1888
|
}>>;
|
|
2018
1889
|
readonly monthToDateUsd: Schema.Finite;
|
|
2019
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
2020
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2021
|
-
readonly stage: Schema.String;
|
|
2022
|
-
readonly kind: Schema.Literal<"service">;
|
|
2023
|
-
readonly name: Schema.String;
|
|
2024
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
2025
|
-
readonly detail: Schema.String;
|
|
2026
|
-
readonly monthly: Schema.Struct<{
|
|
2027
|
-
readonly computeUsd: Schema.Finite;
|
|
2028
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
2029
|
-
readonly totalUsd: Schema.Finite;
|
|
2030
|
-
}>;
|
|
2031
|
-
}>>>;
|
|
2032
1890
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
2033
1891
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2034
1892
|
readonly stage: Schema.String;
|