@ericminassian/platform-core 0.2.0 → 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/dist/api.d.ts +1847 -212
- package/dist/api.js +694 -1
- package/dist/api.js.map +1 -1
- package/dist/auth.d.ts +19 -0
- package/dist/auth.js +32 -0
- package/dist/auth.js.map +1 -1
- package/dist/base64url.d.ts +3 -0
- package/dist/base64url.js +15 -0
- package/dist/base64url.js.map +1 -0
- package/dist/bindings.d.ts +69 -13
- package/dist/bindings.js +1 -1
- package/dist/bindings.js.map +1 -1
- package/dist/cloudfront-function.d.ts +5 -1
- package/dist/cloudfront-function.js +70 -2
- package/dist/cloudfront-function.js.map +1 -1
- package/dist/compute.d.ts +52 -0
- package/dist/compute.js +65 -0
- package/dist/compute.js.map +1 -0
- package/dist/config.d.ts +21 -1
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +67 -1
- package/dist/constants.js +56 -1
- package/dist/constants.js.map +1 -1
- package/dist/email.d.ts +84 -0
- package/dist/email.js +111 -0
- package/dist/email.js.map +1 -0
- package/dist/fingerprint.d.ts +9 -0
- package/dist/fingerprint.js +19 -0
- package/dist/fingerprint.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +111 -0
- package/dist/jobs.js +214 -0
- package/dist/jobs.js.map +1 -0
- package/dist/manifest.d.ts +357 -112
- package/dist/manifest.js +270 -72
- package/dist/manifest.js.map +1 -1
- package/dist/naming.d.ts +93 -6
- package/dist/naming.js +98 -6
- package/dist/naming.js.map +1 -1
- package/dist/platform-api.d.ts +7792 -0
- package/dist/platform-api.js +455 -0
- package/dist/platform-api.js.map +1 -0
- package/dist/realtime.d.ts +139 -0
- package/dist/realtime.js +201 -0
- package/dist/realtime.js.map +1 -0
- package/dist/router/decide.d.ts +7 -1
- package/dist/router/decide.js +42 -5
- package/dist/router.d.ts +35 -13
- package/dist/router.js +36 -0
- package/dist/router.js.map +1 -1
- package/dist/runtime-config.d.ts +57 -0
- package/dist/runtime-config.js +12 -0
- package/dist/runtime-config.js.map +1 -1
- package/dist/storage.d.ts +55 -0
- package/dist/storage.js +112 -0
- package/dist/storage.js.map +1 -0
- package/dist/telemetry.d.ts +350 -83
- package/dist/telemetry.js +188 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/web-compute.d.ts +191 -0
- package/dist/web-compute.js +257 -0
- package/dist/web-compute.js.map +1 -0
- package/package.json +28 -8
- package/src/api.ts +864 -238
- package/src/auth.ts +37 -0
- package/src/base64url.ts +13 -0
- package/src/bindings.ts +74 -7
- package/src/cloudfront-function.ts +70 -2
- package/src/compute.ts +86 -0
- package/src/config.ts +34 -2
- package/src/constants.ts +76 -1
- package/src/email.ts +168 -0
- package/src/fingerprint.ts +20 -0
- package/src/index.ts +6 -0
- package/src/jobs.ts +281 -0
- package/src/manifest.ts +542 -114
- package/src/naming.ts +103 -8
- package/src/platform-api.ts +630 -0
- package/src/realtime.ts +298 -0
- package/src/router/decide.d.ts +7 -1
- package/src/router/decide.js +42 -5
- package/src/router.ts +33 -13
- package/src/runtime-config.ts +70 -0
- package/src/storage.ts +120 -0
- package/src/telemetry.ts +198 -93
- package/src/web-compute.ts +342 -0
package/dist/api.d.ts
CHANGED
|
@@ -1,219 +1,1854 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Control plane API
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Control plane API records and payloads, as schemas: the control plane
|
|
3
|
+
* encodes responses and decodes requests with them, the console and the CLI
|
|
4
|
+
* read the same shapes. The endpoints themselves are `PlatformApi`
|
|
5
|
+
* (`@ericminassian/platform-core/platform-api`). All routes live under `/v1`.
|
|
6
|
+
*
|
|
7
|
+
* Optional fields accept `undefined`, so a record built with spreads of
|
|
8
|
+
* possibly-missing values encodes; JSON drops them either way.
|
|
7
9
|
*/
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export interface AppRecord {
|
|
12
|
-
name: string;
|
|
10
|
+
import { Schema } from 'effect';
|
|
11
|
+
export declare const AppRecord: Schema.Struct<{
|
|
12
|
+
readonly name: Schema.String;
|
|
13
13
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
14
|
-
repo:
|
|
15
|
-
description
|
|
14
|
+
readonly repo: Schema.String;
|
|
15
|
+
readonly description: Schema.optional<Schema.String>;
|
|
16
16
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
17
|
-
owners:
|
|
18
|
-
createdBy:
|
|
19
|
-
createdAt:
|
|
20
|
-
}
|
|
21
|
-
export type
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
17
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
18
|
+
readonly createdBy: Schema.String;
|
|
19
|
+
readonly createdAt: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
export type AppRecord = typeof AppRecord.Type;
|
|
22
|
+
export declare const StageStatus: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
23
|
+
export type StageStatus = typeof StageStatus.Type;
|
|
24
|
+
/** How a server runs (`WebCompute`). */
|
|
25
|
+
export declare const WebComputeMode: Schema.Literals<readonly ["request", "instance"]>;
|
|
26
|
+
/** Days in a row the other mode was cheaper enough to switch to (`ComputeStreak`). */
|
|
27
|
+
export declare const ComputeStreakSchema: Schema.Struct<{
|
|
28
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
29
|
+
readonly days: Schema.Finite;
|
|
30
|
+
readonly day: Schema.String;
|
|
31
|
+
}>;
|
|
32
|
+
/** A prod stage's monthly cost in each mode, estimated daily from its traffic (`simulateWebCompute`). */
|
|
33
|
+
export declare const ComputeEstimate: Schema.Struct<{
|
|
34
|
+
readonly at: Schema.String;
|
|
35
|
+
readonly request: Schema.Struct<{
|
|
36
|
+
readonly monthlyUsd: Schema.Finite;
|
|
37
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
38
|
+
}>;
|
|
39
|
+
readonly instance: Schema.Struct<{
|
|
40
|
+
readonly monthlyUsd: Schema.Finite;
|
|
41
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
42
|
+
}>;
|
|
43
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
44
|
+
/** Days of traffic the month is extrapolated from. */
|
|
45
|
+
readonly days: Schema.Finite;
|
|
46
|
+
}>;
|
|
47
|
+
export type ComputeEstimate = typeof ComputeEstimate.Type;
|
|
48
|
+
export declare const StageRecord: Schema.Struct<{
|
|
49
|
+
readonly app: Schema.String;
|
|
50
|
+
readonly stage: Schema.String;
|
|
51
|
+
readonly host: Schema.String;
|
|
52
|
+
readonly url: Schema.String;
|
|
53
|
+
readonly status: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
54
|
+
readonly preview: Schema.Boolean;
|
|
55
|
+
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
56
|
+
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
57
|
+
/** The server builds: Web Function revision ids, or request-mode function versions. */
|
|
58
|
+
readonly currentRevision: Schema.optional<Schema.String>;
|
|
59
|
+
readonly previousRevision: Schema.optional<Schema.String>;
|
|
60
|
+
/** How the live deployment's server runs. */
|
|
61
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
62
|
+
/** Prod stages with a server: what each mode would cost a month. */
|
|
63
|
+
readonly computeEstimate: Schema.optional<Schema.Struct<{
|
|
64
|
+
readonly at: Schema.String;
|
|
65
|
+
readonly request: Schema.Struct<{
|
|
66
|
+
readonly monthlyUsd: Schema.Finite;
|
|
67
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
68
|
+
}>;
|
|
69
|
+
readonly instance: Schema.Struct<{
|
|
70
|
+
readonly monthlyUsd: Schema.Finite;
|
|
71
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
72
|
+
}>;
|
|
73
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
74
|
+
/** Days of traffic the month is extrapolated from. */
|
|
75
|
+
readonly days: Schema.Finite;
|
|
76
|
+
}>>;
|
|
77
|
+
/** Set while the other mode is cheaper enough; at three days the platform switches. */
|
|
78
|
+
readonly computeStreak: Schema.optional<Schema.Struct<{
|
|
79
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
80
|
+
readonly days: Schema.Finite;
|
|
81
|
+
readonly day: Schema.String;
|
|
82
|
+
}>>;
|
|
83
|
+
readonly createdAt: Schema.String;
|
|
84
|
+
readonly updatedAt: Schema.String;
|
|
85
|
+
}>;
|
|
86
|
+
export type StageRecord = typeof StageRecord.Type;
|
|
87
|
+
export declare const DeploymentStatus: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
88
|
+
export type DeploymentStatus = typeof DeploymentStatus.Type;
|
|
89
|
+
export declare const DeploymentEventEntry: Schema.Struct<{
|
|
90
|
+
readonly ts: Schema.Finite;
|
|
91
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
92
|
+
readonly msg: Schema.String;
|
|
42
93
|
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
43
|
-
resource
|
|
44
|
-
}
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
94
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
95
|
+
}>;
|
|
96
|
+
export type DeploymentEventEntry = typeof DeploymentEventEntry.Type;
|
|
97
|
+
export declare const DeploymentRecord: Schema.Struct<{
|
|
98
|
+
readonly id: Schema.String;
|
|
99
|
+
readonly app: Schema.String;
|
|
100
|
+
readonly stage: Schema.String;
|
|
101
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
102
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
103
|
+
readonly actor: Schema.String;
|
|
104
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
105
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
106
|
+
readonly message: Schema.optional<Schema.String>;
|
|
107
|
+
/** The `@ericminassian/platform` version its bundles were built with; absent before 0.4.0. */
|
|
108
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
109
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
110
|
+
readonly name: Schema.String;
|
|
111
|
+
readonly description: Schema.optional<Schema.String>;
|
|
112
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
113
|
+
readonly server: Schema.optional<Schema.String>;
|
|
114
|
+
readonly static: Schema.optional<Schema.String>;
|
|
115
|
+
readonly build: Schema.optional<Schema.String>;
|
|
116
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
117
|
+
readonly command: Schema.String;
|
|
118
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
119
|
+
}>>;
|
|
120
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
121
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
122
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
123
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
124
|
+
readonly compute: Schema.withDecodingDefault<Schema.Literals<readonly ["auto", "request", "instance"]>, never>;
|
|
125
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
126
|
+
readonly maxEnvironments: Schema.optional<Schema.Int>;
|
|
127
|
+
}>>;
|
|
128
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
129
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
130
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
131
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
132
|
+
}>>;
|
|
133
|
+
readonly auth: Schema.Struct<{
|
|
134
|
+
readonly enabled: Schema.Boolean;
|
|
135
|
+
readonly required: Schema.Boolean;
|
|
136
|
+
}>;
|
|
137
|
+
readonly db: Schema.Boolean;
|
|
138
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
139
|
+
timeoutSeconds: Schema.optional<Schema.Int>;
|
|
140
|
+
memoryMb: Schema.optional<Schema.Int>;
|
|
141
|
+
maxAttempts: Schema.withDecodingDefault<Schema.Int, never>;
|
|
142
|
+
concurrency: Schema.optional<Schema.Int>;
|
|
143
|
+
}>>;
|
|
144
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
145
|
+
readonly eventOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
146
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
147
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
148
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
149
|
+
}>>, never>;
|
|
150
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
151
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
152
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
153
|
+
readonly schedule: Schema.String;
|
|
154
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
155
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
156
|
+
}>>;
|
|
157
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
158
|
+
readonly storageOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
159
|
+
readonly public: Schema.Boolean;
|
|
160
|
+
readonly expireAfterDays: Schema.optional<Schema.Finite>;
|
|
161
|
+
}>>, never>;
|
|
162
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
163
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
164
|
+
readonly realtime: Schema.optional<Schema.Struct<{
|
|
165
|
+
readonly subscribe: Schema.Literals<readonly ["public", "signed-in"]>;
|
|
166
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
167
|
+
}>>;
|
|
168
|
+
readonly email: Schema.optional<Schema.Struct<{
|
|
169
|
+
readonly name: Schema.optional<Schema.String>;
|
|
170
|
+
readonly dailyLimit: Schema.Finite;
|
|
171
|
+
}>>;
|
|
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
|
+
}>>;
|
|
180
|
+
/** How it runs the server. */
|
|
181
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
182
|
+
/**
|
|
183
|
+
* A switch of the server's mode that the platform made (actor `platform`):
|
|
184
|
+
* the deployment whose build this one runs again, in `compute`.
|
|
185
|
+
*/
|
|
186
|
+
readonly computeSwitchOf: Schema.optional<Schema.String>;
|
|
187
|
+
readonly url: Schema.optional<Schema.String>;
|
|
188
|
+
readonly error: Schema.optional<Schema.String>;
|
|
189
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
190
|
+
readonly ts: Schema.Finite;
|
|
191
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
192
|
+
readonly msg: Schema.String;
|
|
193
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
194
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
195
|
+
}>>;
|
|
196
|
+
readonly createdAt: Schema.String;
|
|
197
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
198
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
199
|
+
}>;
|
|
200
|
+
export type DeploymentRecord = typeof DeploymentRecord.Type;
|
|
201
|
+
export declare const MeResponse: Schema.Struct<{
|
|
202
|
+
readonly github: Schema.String;
|
|
203
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
204
|
+
}>;
|
|
205
|
+
export type MeResponse = typeof MeResponse.Type;
|
|
206
|
+
export declare const CliLoginRequest: Schema.Struct<{
|
|
68
207
|
/** A GitHub token for the user (e.g. `gh auth token`); used once to identify them. */
|
|
69
|
-
githubToken:
|
|
70
|
-
}
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
208
|
+
readonly githubToken: Schema.String;
|
|
209
|
+
}>;
|
|
210
|
+
export type CliLoginRequest = typeof CliLoginRequest.Type;
|
|
211
|
+
export declare const CliLoginResponse: Schema.Struct<{
|
|
212
|
+
readonly token: Schema.String;
|
|
213
|
+
readonly github: Schema.String;
|
|
214
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
215
|
+
readonly expiresAt: Schema.String;
|
|
216
|
+
}>;
|
|
217
|
+
export type CliLoginResponse = typeof CliLoginResponse.Type;
|
|
218
|
+
/** GitHub `owner/name`. */
|
|
219
|
+
export declare const REPO_PATTERN: RegExp;
|
|
220
|
+
export declare const CreateAppRequest: Schema.Struct<{
|
|
221
|
+
/** Checked against the naming rules and reserved names by the server. */
|
|
222
|
+
readonly name: Schema.Trim;
|
|
223
|
+
readonly repo: Schema.Trim;
|
|
224
|
+
readonly description: Schema.optional<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>>;
|
|
225
|
+
}>;
|
|
226
|
+
export type CreateAppRequest = typeof CreateAppRequest.Type;
|
|
227
|
+
export declare const UpdateAppRequest: Schema.Struct<{
|
|
228
|
+
readonly description: Schema.optional<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>>;
|
|
229
|
+
readonly repo: Schema.optional<Schema.Trim>;
|
|
230
|
+
/** The server removes duplicates. */
|
|
231
|
+
readonly owners: Schema.optional<Schema.$Array<Schema.String>>;
|
|
232
|
+
}>;
|
|
233
|
+
export type UpdateAppRequest = typeof UpdateAppRequest.Type;
|
|
234
|
+
export declare const AppHealth: Schema.Struct<{
|
|
235
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
236
|
+
readonly reqPerMin: Schema.Finite;
|
|
237
|
+
readonly errorRate: Schema.Finite;
|
|
238
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
239
|
+
}>;
|
|
240
|
+
export type AppHealth = typeof AppHealth.Type;
|
|
241
|
+
export declare const AppSummary: Schema.Struct<{
|
|
242
|
+
readonly app: Schema.Struct<{
|
|
243
|
+
readonly name: Schema.String;
|
|
244
|
+
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
245
|
+
readonly repo: Schema.String;
|
|
246
|
+
readonly description: Schema.optional<Schema.String>;
|
|
247
|
+
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
248
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
249
|
+
readonly createdBy: Schema.String;
|
|
250
|
+
readonly createdAt: Schema.String;
|
|
251
|
+
}>;
|
|
252
|
+
readonly stages: Schema.$Array<Schema.Struct<{
|
|
253
|
+
readonly app: Schema.String;
|
|
254
|
+
readonly stage: Schema.String;
|
|
255
|
+
readonly host: Schema.String;
|
|
256
|
+
readonly url: Schema.String;
|
|
257
|
+
readonly status: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
258
|
+
readonly preview: Schema.Boolean;
|
|
259
|
+
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
260
|
+
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
261
|
+
/** The server builds: Web Function revision ids, or request-mode function versions. */
|
|
262
|
+
readonly currentRevision: Schema.optional<Schema.String>;
|
|
263
|
+
readonly previousRevision: Schema.optional<Schema.String>;
|
|
264
|
+
/** How the live deployment's server runs. */
|
|
265
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
266
|
+
/** Prod stages with a server: what each mode would cost a month. */
|
|
267
|
+
readonly computeEstimate: Schema.optional<Schema.Struct<{
|
|
268
|
+
readonly at: Schema.String;
|
|
269
|
+
readonly request: Schema.Struct<{
|
|
270
|
+
readonly monthlyUsd: Schema.Finite;
|
|
271
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
272
|
+
}>;
|
|
273
|
+
readonly instance: Schema.Struct<{
|
|
274
|
+
readonly monthlyUsd: Schema.Finite;
|
|
275
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
276
|
+
}>;
|
|
277
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
278
|
+
/** Days of traffic the month is extrapolated from. */
|
|
279
|
+
readonly days: Schema.Finite;
|
|
280
|
+
}>>;
|
|
281
|
+
/** Set while the other mode is cheaper enough; at three days the platform switches. */
|
|
282
|
+
readonly computeStreak: Schema.optional<Schema.Struct<{
|
|
283
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
284
|
+
readonly days: Schema.Finite;
|
|
285
|
+
readonly day: Schema.String;
|
|
286
|
+
}>>;
|
|
287
|
+
readonly createdAt: Schema.String;
|
|
288
|
+
readonly updatedAt: Schema.String;
|
|
289
|
+
}>>;
|
|
103
290
|
/** Prod health over the last hour (null when there is no prod stage). */
|
|
104
|
-
health: {
|
|
105
|
-
up:
|
|
106
|
-
reqPerMin:
|
|
107
|
-
errorRate:
|
|
108
|
-
p95:
|
|
109
|
-
}
|
|
110
|
-
costMonthToDateUsd
|
|
111
|
-
lastDeployment
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
291
|
+
readonly health: Schema.NullOr<Schema.Struct<{
|
|
292
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
293
|
+
readonly reqPerMin: Schema.Finite;
|
|
294
|
+
readonly errorRate: Schema.Finite;
|
|
295
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
296
|
+
}>>;
|
|
297
|
+
readonly costMonthToDateUsd: Schema.optional<Schema.Finite>;
|
|
298
|
+
readonly lastDeployment: Schema.optional<Schema.Struct<{
|
|
299
|
+
readonly id: Schema.String;
|
|
300
|
+
readonly app: Schema.String;
|
|
301
|
+
readonly stage: Schema.String;
|
|
302
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
303
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
304
|
+
readonly actor: Schema.String;
|
|
305
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
306
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
307
|
+
readonly message: Schema.optional<Schema.String>;
|
|
308
|
+
/** The `@ericminassian/platform` version its bundles were built with; absent before 0.4.0. */
|
|
309
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
310
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
311
|
+
readonly name: Schema.String;
|
|
312
|
+
readonly description: Schema.optional<Schema.String>;
|
|
313
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
314
|
+
readonly server: Schema.optional<Schema.String>;
|
|
315
|
+
readonly static: Schema.optional<Schema.String>;
|
|
316
|
+
readonly build: Schema.optional<Schema.String>;
|
|
317
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
318
|
+
readonly command: Schema.String;
|
|
319
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
320
|
+
}>>;
|
|
321
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
322
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
323
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
324
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
325
|
+
readonly compute: Schema.withDecodingDefault<Schema.Literals<readonly ["auto", "request", "instance"]>, never>;
|
|
326
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
327
|
+
readonly maxEnvironments: Schema.optional<Schema.Int>;
|
|
328
|
+
}>>;
|
|
329
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
330
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
331
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
332
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
333
|
+
}>>;
|
|
334
|
+
readonly auth: Schema.Struct<{
|
|
335
|
+
readonly enabled: Schema.Boolean;
|
|
336
|
+
readonly required: Schema.Boolean;
|
|
337
|
+
}>;
|
|
338
|
+
readonly db: Schema.Boolean;
|
|
339
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
340
|
+
timeoutSeconds: Schema.optional<Schema.Int>;
|
|
341
|
+
memoryMb: Schema.optional<Schema.Int>;
|
|
342
|
+
maxAttempts: Schema.withDecodingDefault<Schema.Int, never>;
|
|
343
|
+
concurrency: Schema.optional<Schema.Int>;
|
|
344
|
+
}>>;
|
|
345
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
346
|
+
readonly eventOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
347
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
348
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
349
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
350
|
+
}>>, never>;
|
|
351
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
352
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
353
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
354
|
+
readonly schedule: Schema.String;
|
|
355
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
356
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
357
|
+
}>>;
|
|
358
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
359
|
+
readonly storageOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
360
|
+
readonly public: Schema.Boolean;
|
|
361
|
+
readonly expireAfterDays: Schema.optional<Schema.Finite>;
|
|
362
|
+
}>>, never>;
|
|
363
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
364
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
365
|
+
readonly realtime: Schema.optional<Schema.Struct<{
|
|
366
|
+
readonly subscribe: Schema.Literals<readonly ["public", "signed-in"]>;
|
|
367
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
368
|
+
}>>;
|
|
369
|
+
readonly email: Schema.optional<Schema.Struct<{
|
|
370
|
+
readonly name: Schema.optional<Schema.String>;
|
|
371
|
+
readonly dailyLimit: Schema.Finite;
|
|
372
|
+
}>>;
|
|
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
|
+
/** How it runs the server. */
|
|
382
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
383
|
+
/**
|
|
384
|
+
* A switch of the server's mode that the platform made (actor `platform`):
|
|
385
|
+
* the deployment whose build this one runs again, in `compute`.
|
|
386
|
+
*/
|
|
387
|
+
readonly computeSwitchOf: Schema.optional<Schema.String>;
|
|
388
|
+
readonly url: Schema.optional<Schema.String>;
|
|
389
|
+
readonly error: Schema.optional<Schema.String>;
|
|
390
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
391
|
+
readonly ts: Schema.Finite;
|
|
392
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
393
|
+
readonly msg: Schema.String;
|
|
394
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
395
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
396
|
+
}>>;
|
|
397
|
+
readonly createdAt: Schema.String;
|
|
398
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
399
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
400
|
+
}>>;
|
|
401
|
+
}>;
|
|
402
|
+
export type AppSummary = typeof AppSummary.Type;
|
|
403
|
+
/** `services.zip` holds `<service>/index.mjs` (+ `.map`) for each long-running service. */
|
|
404
|
+
export declare const ArtifactFile: Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip", "services.zip"]>;
|
|
405
|
+
export type ArtifactFile = typeof ArtifactFile.Type;
|
|
406
|
+
export declare const PresignedPost: Schema.Struct<{
|
|
407
|
+
readonly url: Schema.String;
|
|
408
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
409
|
+
}>;
|
|
410
|
+
export type PresignedPost = typeof PresignedPost.Type;
|
|
411
|
+
export declare const CreateDeploymentRequest: Schema.Struct<{
|
|
412
|
+
readonly stage: Schema.String;
|
|
413
|
+
/**
|
|
414
|
+
* The evaluated `plat.config.ts` (`ManifestInput`). The server validates it
|
|
415
|
+
* with `parseManifest` and answers 422 with every issue when it's invalid.
|
|
416
|
+
*/
|
|
417
|
+
readonly manifest: Schema.Unknown;
|
|
418
|
+
/** Which artifacts the CLI will upload (manifest.json is always uploaded). */
|
|
419
|
+
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip", "services.zip"]>>>;
|
|
420
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
421
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
422
|
+
readonly message: Schema.optional<Schema.String>;
|
|
423
|
+
/** The `@ericminassian/platform` version the bundles were built with (`MIN_SDK_VERSION`). */
|
|
424
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
425
|
+
}>;
|
|
426
|
+
export type CreateDeploymentRequest = typeof CreateDeploymentRequest.Encoded;
|
|
427
|
+
export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
428
|
+
readonly deployment: Schema.Struct<{
|
|
429
|
+
readonly id: Schema.String;
|
|
430
|
+
readonly app: Schema.String;
|
|
431
|
+
readonly stage: Schema.String;
|
|
432
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
433
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
434
|
+
readonly actor: Schema.String;
|
|
435
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
436
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
437
|
+
readonly message: Schema.optional<Schema.String>;
|
|
438
|
+
/** The `@ericminassian/platform` version its bundles were built with; absent before 0.4.0. */
|
|
439
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
440
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
441
|
+
readonly name: Schema.String;
|
|
442
|
+
readonly description: Schema.optional<Schema.String>;
|
|
443
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
444
|
+
readonly server: Schema.optional<Schema.String>;
|
|
445
|
+
readonly static: Schema.optional<Schema.String>;
|
|
446
|
+
readonly build: Schema.optional<Schema.String>;
|
|
447
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
448
|
+
readonly command: Schema.String;
|
|
449
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
450
|
+
}>>;
|
|
451
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
452
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
453
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
454
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
455
|
+
readonly compute: Schema.withDecodingDefault<Schema.Literals<readonly ["auto", "request", "instance"]>, never>;
|
|
456
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
457
|
+
readonly maxEnvironments: Schema.optional<Schema.Int>;
|
|
458
|
+
}>>;
|
|
459
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
460
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
461
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
462
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
463
|
+
}>>;
|
|
464
|
+
readonly auth: Schema.Struct<{
|
|
465
|
+
readonly enabled: Schema.Boolean;
|
|
466
|
+
readonly required: Schema.Boolean;
|
|
467
|
+
}>;
|
|
468
|
+
readonly db: Schema.Boolean;
|
|
469
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
470
|
+
timeoutSeconds: Schema.optional<Schema.Int>;
|
|
471
|
+
memoryMb: Schema.optional<Schema.Int>;
|
|
472
|
+
maxAttempts: Schema.withDecodingDefault<Schema.Int, never>;
|
|
473
|
+
concurrency: Schema.optional<Schema.Int>;
|
|
474
|
+
}>>;
|
|
475
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
476
|
+
readonly eventOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
477
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
478
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
479
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
480
|
+
}>>, never>;
|
|
481
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
482
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
483
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
484
|
+
readonly schedule: Schema.String;
|
|
485
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
486
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
487
|
+
}>>;
|
|
488
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
489
|
+
readonly storageOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
490
|
+
readonly public: Schema.Boolean;
|
|
491
|
+
readonly expireAfterDays: Schema.optional<Schema.Finite>;
|
|
492
|
+
}>>, never>;
|
|
493
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
494
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
495
|
+
readonly realtime: Schema.optional<Schema.Struct<{
|
|
496
|
+
readonly subscribe: Schema.Literals<readonly ["public", "signed-in"]>;
|
|
497
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
498
|
+
}>>;
|
|
499
|
+
readonly email: Schema.optional<Schema.Struct<{
|
|
500
|
+
readonly name: Schema.optional<Schema.String>;
|
|
501
|
+
readonly dailyLimit: Schema.Finite;
|
|
502
|
+
}>>;
|
|
503
|
+
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
504
|
+
readonly entry: Schema.String;
|
|
505
|
+
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
506
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
507
|
+
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
508
|
+
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
509
|
+
}>>, never>;
|
|
510
|
+
}>>;
|
|
511
|
+
/** How it runs the server. */
|
|
512
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
513
|
+
/**
|
|
514
|
+
* A switch of the server's mode that the platform made (actor `platform`):
|
|
515
|
+
* the deployment whose build this one runs again, in `compute`.
|
|
516
|
+
*/
|
|
517
|
+
readonly computeSwitchOf: Schema.optional<Schema.String>;
|
|
518
|
+
readonly url: Schema.optional<Schema.String>;
|
|
519
|
+
readonly error: Schema.optional<Schema.String>;
|
|
520
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
521
|
+
readonly ts: Schema.Finite;
|
|
522
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
523
|
+
readonly msg: Schema.String;
|
|
524
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
525
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
526
|
+
}>>;
|
|
527
|
+
readonly createdAt: Schema.String;
|
|
528
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
529
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
530
|
+
}>;
|
|
531
|
+
/** A form for each artifact the request listed, plus `manifest.json`. */
|
|
532
|
+
readonly uploads: Schema.Struct<{
|
|
533
|
+
readonly 'manifest.json': Schema.optional<Schema.Struct<{
|
|
534
|
+
readonly url: Schema.String;
|
|
535
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
536
|
+
}>>;
|
|
537
|
+
readonly 'server.zip': Schema.optional<Schema.Struct<{
|
|
538
|
+
readonly url: Schema.String;
|
|
539
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
540
|
+
}>>;
|
|
541
|
+
readonly 'worker.zip': Schema.optional<Schema.Struct<{
|
|
542
|
+
readonly url: Schema.String;
|
|
543
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
544
|
+
}>>;
|
|
545
|
+
readonly 'static.zip': Schema.optional<Schema.Struct<{
|
|
546
|
+
readonly url: Schema.String;
|
|
547
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
548
|
+
}>>;
|
|
549
|
+
readonly 'services.zip': Schema.optional<Schema.Struct<{
|
|
550
|
+
readonly url: Schema.String;
|
|
551
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
552
|
+
}>>;
|
|
553
|
+
}>;
|
|
554
|
+
}>;
|
|
555
|
+
export type CreateDeploymentResponse = typeof CreateDeploymentResponse.Type;
|
|
556
|
+
export declare const RollbackRequest: Schema.Struct<{
|
|
557
|
+
/** Default: the stage's previous deployment. */
|
|
558
|
+
readonly deploymentId: Schema.optional<Schema.String>;
|
|
559
|
+
}>;
|
|
560
|
+
export type RollbackRequest = typeof RollbackRequest.Type;
|
|
561
|
+
export declare const RollbackResponse: Schema.Struct<{
|
|
562
|
+
/** The deployment the stage routes to now. */
|
|
563
|
+
readonly currentDeployment: Schema.String;
|
|
564
|
+
readonly url: Schema.String;
|
|
565
|
+
}>;
|
|
566
|
+
export type RollbackResponse = typeof RollbackResponse.Type;
|
|
567
|
+
/** Answered with 202: the stage is being torn down. */
|
|
568
|
+
export declare const StageDestroying: Schema.Struct<{
|
|
569
|
+
readonly status: Schema.Literal<"destroying">;
|
|
570
|
+
}>;
|
|
571
|
+
/** Answered with 200: there was nothing left to destroy. */
|
|
572
|
+
export declare const StageDestroyed: Schema.Struct<{
|
|
573
|
+
readonly status: Schema.Literal<"destroyed">;
|
|
574
|
+
}>;
|
|
575
|
+
export declare const DestroyStageResponse: Schema.Union<readonly [Schema.Struct<{
|
|
576
|
+
readonly status: Schema.Literal<"destroying">;
|
|
577
|
+
}>, Schema.Struct<{
|
|
578
|
+
readonly status: Schema.Literal<"destroyed">;
|
|
579
|
+
}>]>;
|
|
580
|
+
export type DestroyStageResponse = typeof DestroyStageResponse.Type;
|
|
581
|
+
export declare const MetricsPoint: Schema.Struct<{
|
|
582
|
+
readonly ts: Schema.String;
|
|
583
|
+
readonly req: Schema.Finite;
|
|
584
|
+
readonly s2xx: Schema.Finite;
|
|
585
|
+
readonly s3xx: Schema.Finite;
|
|
586
|
+
readonly s4xx: Schema.Finite;
|
|
587
|
+
readonly s5xx: Schema.Finite;
|
|
588
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
589
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
590
|
+
readonly p99: Schema.NullOr<Schema.Finite>;
|
|
591
|
+
readonly cold: Schema.Finite;
|
|
592
|
+
}>;
|
|
593
|
+
export type MetricsPoint = typeof MetricsPoint.Type;
|
|
594
|
+
export declare const MetricsResponse: Schema.Struct<{
|
|
595
|
+
readonly app: Schema.String;
|
|
596
|
+
readonly stage: Schema.String;
|
|
597
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
598
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
599
|
+
readonly ts: Schema.String;
|
|
600
|
+
readonly req: Schema.Finite;
|
|
601
|
+
readonly s2xx: Schema.Finite;
|
|
602
|
+
readonly s3xx: Schema.Finite;
|
|
603
|
+
readonly s4xx: Schema.Finite;
|
|
604
|
+
readonly s5xx: Schema.Finite;
|
|
605
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
606
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
607
|
+
readonly p99: Schema.NullOr<Schema.Finite>;
|
|
608
|
+
readonly cold: Schema.Finite;
|
|
609
|
+
}>>;
|
|
610
|
+
}>;
|
|
611
|
+
export type MetricsResponse = typeof MetricsResponse.Type;
|
|
612
|
+
export declare const RouteStats: Schema.Struct<{
|
|
613
|
+
readonly route: Schema.String;
|
|
614
|
+
readonly method: Schema.String;
|
|
615
|
+
readonly req: Schema.Finite;
|
|
616
|
+
readonly s5xx: Schema.Finite;
|
|
617
|
+
readonly s4xx: Schema.Finite;
|
|
618
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
619
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
620
|
+
}>;
|
|
621
|
+
export type RouteStats = typeof RouteStats.Type;
|
|
622
|
+
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
623
|
+
export type JobKind = typeof JobKind.Type;
|
|
624
|
+
export declare const JobStats: Schema.Struct<{
|
|
625
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
626
|
+
readonly name: Schema.String;
|
|
627
|
+
readonly ok: Schema.Finite;
|
|
628
|
+
readonly error: Schema.Finite;
|
|
629
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
630
|
+
readonly lastRun: Schema.optional<Schema.String>;
|
|
631
|
+
}>;
|
|
632
|
+
export type JobStats = typeof JobStats.Type;
|
|
633
|
+
export declare const JobsResponse: Schema.Struct<{
|
|
634
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
635
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
636
|
+
readonly name: Schema.String;
|
|
637
|
+
readonly ok: Schema.Finite;
|
|
638
|
+
readonly error: Schema.Finite;
|
|
639
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
640
|
+
readonly lastRun: Schema.optional<Schema.String>;
|
|
641
|
+
}>>;
|
|
642
|
+
readonly crons: Schema.$Array<Schema.Struct<{
|
|
643
|
+
readonly name: Schema.String;
|
|
644
|
+
readonly schedule: Schema.String;
|
|
645
|
+
}>>;
|
|
646
|
+
}>;
|
|
647
|
+
export type JobsResponse = typeof JobsResponse.Type;
|
|
648
|
+
/** A queue's jobs that aren't running: waiting for their time, and given up on. */
|
|
649
|
+
export declare const QueueStats: Schema.Struct<{
|
|
650
|
+
readonly name: Schema.String;
|
|
651
|
+
/** Retries and delayed sends scheduled for later. */
|
|
652
|
+
readonly scheduled: Schema.Finite;
|
|
653
|
+
/** Its messages in the stage's dead-letter queue (of those `deadLetters` reads). */
|
|
654
|
+
readonly deadLetter: Schema.Finite;
|
|
655
|
+
}>;
|
|
656
|
+
export type QueueStats = typeof QueueStats.Type;
|
|
657
|
+
/** One message in the stage's dead-letter queue (core `readDeadLetter`). */
|
|
658
|
+
export declare const DeadLetterItem: Schema.Struct<{
|
|
659
|
+
/** The SQS message id: what redrive and discard take. */
|
|
660
|
+
readonly id: Schema.String;
|
|
661
|
+
/** `unknown`: a message the platform didn't write; it can only be discarded. */
|
|
662
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "unknown"]>;
|
|
663
|
+
readonly name: Schema.String;
|
|
664
|
+
readonly attempts: Schema.NullOr<Schema.Finite>;
|
|
665
|
+
readonly error: Schema.Struct<{
|
|
666
|
+
readonly name: Schema.String;
|
|
667
|
+
readonly message: Schema.String;
|
|
668
|
+
}>;
|
|
669
|
+
/** ISO time, when the writer recorded one. */
|
|
670
|
+
readonly failedAt: Schema.NullOr<Schema.String>;
|
|
671
|
+
/** Who gave up on it: the SDK, Lambda, Scheduler or EventBridge. */
|
|
672
|
+
readonly source: Schema.Literals<readonly ["sdk", "lambda", "scheduler", "eventbridge", "unknown"]>;
|
|
673
|
+
/** The message body, event detail or invoke payload, as JSON, cut to a few hundred chars. */
|
|
674
|
+
readonly preview: Schema.String;
|
|
675
|
+
}>;
|
|
676
|
+
export type DeadLetterItem = typeof DeadLetterItem.Type;
|
|
677
|
+
export declare const DeadLettersResponse: Schema.Struct<{
|
|
678
|
+
/** Messages in the queue (SQS's approximate count). */
|
|
679
|
+
readonly total: Schema.Finite;
|
|
680
|
+
/** Up to `DEAD_LETTERS_READ` of them. */
|
|
681
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
682
|
+
/** The SQS message id: what redrive and discard take. */
|
|
683
|
+
readonly id: Schema.String;
|
|
684
|
+
/** `unknown`: a message the platform didn't write; it can only be discarded. */
|
|
685
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "unknown"]>;
|
|
686
|
+
readonly name: Schema.String;
|
|
687
|
+
readonly attempts: Schema.NullOr<Schema.Finite>;
|
|
688
|
+
readonly error: Schema.Struct<{
|
|
689
|
+
readonly name: Schema.String;
|
|
690
|
+
readonly message: Schema.String;
|
|
691
|
+
}>;
|
|
692
|
+
/** ISO time, when the writer recorded one. */
|
|
693
|
+
readonly failedAt: Schema.NullOr<Schema.String>;
|
|
694
|
+
/** Who gave up on it: the SDK, Lambda, Scheduler or EventBridge. */
|
|
695
|
+
readonly source: Schema.Literals<readonly ["sdk", "lambda", "scheduler", "eventbridge", "unknown"]>;
|
|
696
|
+
/** The message body, event detail or invoke payload, as JSON, cut to a few hundred chars. */
|
|
697
|
+
readonly preview: Schema.String;
|
|
698
|
+
}>>;
|
|
699
|
+
}>;
|
|
700
|
+
export type DeadLettersResponse = typeof DeadLettersResponse.Type;
|
|
701
|
+
/** How many dead letters the API reads for a list. */
|
|
702
|
+
export declare const DEAD_LETTERS_READ = 100;
|
|
703
|
+
/** Redrive or discard: the given dead letters, or (no `ids`) all of them. */
|
|
704
|
+
export declare const DeadLetterAction: Schema.Struct<{
|
|
705
|
+
readonly ids: Schema.optional<Schema.$Array<Schema.String>>;
|
|
706
|
+
}>;
|
|
707
|
+
export type DeadLetterAction = typeof DeadLetterAction.Encoded;
|
|
708
|
+
export declare const DeadLetterActionResponse: Schema.Struct<{
|
|
709
|
+
readonly count: Schema.Finite;
|
|
710
|
+
}>;
|
|
711
|
+
export type DeadLetterActionResponse = typeof DeadLetterActionResponse.Type;
|
|
712
|
+
/** Per-namespace AppSync Events counts in one bucket (CloudWatch `Sum`s). */
|
|
713
|
+
export declare const RealtimePoint: Schema.Struct<{
|
|
714
|
+
readonly ts: Schema.String;
|
|
715
|
+
/** Events published (`InboundMessages`; each 5 KB counts once). */
|
|
716
|
+
readonly events: Schema.Finite;
|
|
717
|
+
/** Successful publish requests (up to 5 events each). */
|
|
718
|
+
readonly publishes: Schema.Finite;
|
|
719
|
+
/** Successful subscribes. */
|
|
720
|
+
readonly subscribes: Schema.Finite;
|
|
721
|
+
/** Publishes and subscribes refused or failed (client and server errors). */
|
|
722
|
+
readonly errors: Schema.Finite;
|
|
723
|
+
}>;
|
|
724
|
+
export type RealtimePoint = typeof RealtimePoint.Type;
|
|
725
|
+
/**
|
|
726
|
+
* A stage's realtime activity. AppSync reports deliveries (`OutboundMessages`)
|
|
727
|
+
* and connections only for the whole Event API, not per namespace, so they
|
|
728
|
+
* can't be shown per app.
|
|
729
|
+
*/
|
|
730
|
+
export declare const RealtimeStatsResponse: Schema.Struct<{
|
|
731
|
+
readonly app: Schema.String;
|
|
732
|
+
readonly stage: Schema.String;
|
|
733
|
+
/** False when the live deployment declares no `realtime`; the rest is then empty. */
|
|
734
|
+
readonly enabled: Schema.Boolean;
|
|
735
|
+
readonly subscribe: Schema.optional<Schema.Literals<readonly ["public", "signed-in"]>>;
|
|
736
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
737
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
738
|
+
readonly totals: Schema.Struct<{
|
|
739
|
+
readonly events: Schema.Finite;
|
|
740
|
+
readonly publishes: Schema.Finite;
|
|
741
|
+
readonly subscribes: Schema.Finite;
|
|
742
|
+
readonly errors: Schema.Finite;
|
|
743
|
+
}>;
|
|
744
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
745
|
+
readonly ts: Schema.String;
|
|
746
|
+
/** Events published (`InboundMessages`; each 5 KB counts once). */
|
|
747
|
+
readonly events: Schema.Finite;
|
|
748
|
+
/** Successful publish requests (up to 5 events each). */
|
|
749
|
+
readonly publishes: Schema.Finite;
|
|
750
|
+
/** Successful subscribes. */
|
|
751
|
+
readonly subscribes: Schema.Finite;
|
|
752
|
+
/** Publishes and subscribes refused or failed (client and server errors). */
|
|
753
|
+
readonly errors: Schema.Finite;
|
|
754
|
+
}>>;
|
|
755
|
+
}>;
|
|
756
|
+
export type RealtimeStatsResponse = typeof RealtimeStatsResponse.Type;
|
|
757
|
+
/** One custom metric (`Metrics.count`/`value`) in one bucket: how many values, and their sum. */
|
|
758
|
+
export declare const CustomMetricPoint: Schema.Struct<{
|
|
759
|
+
readonly ts: Schema.String;
|
|
760
|
+
readonly count: Schema.Finite;
|
|
761
|
+
readonly sum: Schema.Finite;
|
|
762
|
+
}>;
|
|
763
|
+
export type CustomMetricPoint = typeof CustomMetricPoint.Type;
|
|
764
|
+
/**
|
|
765
|
+
* A custom metric over the range. `Metrics.count(name, n)` records `n` with
|
|
766
|
+
* unit `count`, so `sum` is the total; for `Metrics.value`, `sum / count` is
|
|
767
|
+
* the average.
|
|
768
|
+
*/
|
|
769
|
+
export declare const CustomMetricStats: Schema.Struct<{
|
|
770
|
+
readonly name: Schema.String;
|
|
771
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
772
|
+
readonly count: Schema.Finite;
|
|
773
|
+
readonly sum: Schema.Finite;
|
|
774
|
+
/** One per bucket in the range, zero-filled. */
|
|
775
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
776
|
+
readonly ts: Schema.String;
|
|
777
|
+
readonly count: Schema.Finite;
|
|
778
|
+
readonly sum: Schema.Finite;
|
|
779
|
+
}>>;
|
|
780
|
+
}>;
|
|
781
|
+
export type CustomMetricStats = typeof CustomMetricStats.Type;
|
|
782
|
+
/** A stage's custom metrics recorded in the range, by name. */
|
|
783
|
+
export declare const CustomMetricsResponse: Schema.Struct<{
|
|
784
|
+
readonly app: Schema.String;
|
|
785
|
+
readonly stage: Schema.String;
|
|
786
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
787
|
+
readonly metrics: Schema.$Array<Schema.Struct<{
|
|
788
|
+
readonly name: Schema.String;
|
|
789
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
790
|
+
readonly count: Schema.Finite;
|
|
791
|
+
readonly sum: Schema.Finite;
|
|
792
|
+
/** One per bucket in the range, zero-filled. */
|
|
793
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
794
|
+
readonly ts: Schema.String;
|
|
795
|
+
readonly count: Schema.Finite;
|
|
796
|
+
readonly sum: Schema.Finite;
|
|
797
|
+
}>>;
|
|
798
|
+
}>>;
|
|
799
|
+
}>;
|
|
800
|
+
export type CustomMetricsResponse = typeof CustomMetricsResponse.Type;
|
|
801
|
+
/** One rate limit's checks in one bucket. */
|
|
802
|
+
export declare const LimitPoint: Schema.Struct<{
|
|
803
|
+
readonly ts: Schema.String;
|
|
804
|
+
readonly allowed: Schema.Finite;
|
|
805
|
+
readonly denied: Schema.Finite;
|
|
806
|
+
}>;
|
|
807
|
+
export type LimitPoint = typeof LimitPoint.Type;
|
|
808
|
+
/** A rate limit's checks over the range, by its name in `RateLimits`. */
|
|
809
|
+
export declare const LimitStats: Schema.Struct<{
|
|
810
|
+
readonly name: Schema.String;
|
|
811
|
+
readonly allowed: Schema.Finite;
|
|
812
|
+
readonly denied: Schema.Finite;
|
|
813
|
+
/** One per bucket in the range, zero-filled. */
|
|
814
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
815
|
+
readonly ts: Schema.String;
|
|
816
|
+
readonly allowed: Schema.Finite;
|
|
817
|
+
readonly denied: Schema.Finite;
|
|
818
|
+
}>>;
|
|
819
|
+
}>;
|
|
820
|
+
export type LimitStats = typeof LimitStats.Type;
|
|
821
|
+
/** A stage's rate limits that were checked in the range, most denied first. */
|
|
822
|
+
export declare const LimitsResponse: Schema.Struct<{
|
|
823
|
+
readonly app: Schema.String;
|
|
824
|
+
readonly stage: Schema.String;
|
|
825
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
826
|
+
readonly limits: Schema.$Array<Schema.Struct<{
|
|
827
|
+
readonly name: Schema.String;
|
|
828
|
+
readonly allowed: Schema.Finite;
|
|
829
|
+
readonly denied: Schema.Finite;
|
|
830
|
+
/** One per bucket in the range, zero-filled. */
|
|
831
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
832
|
+
readonly ts: Schema.String;
|
|
833
|
+
readonly allowed: Schema.Finite;
|
|
834
|
+
readonly denied: Schema.Finite;
|
|
835
|
+
}>>;
|
|
836
|
+
}>>;
|
|
837
|
+
}>;
|
|
838
|
+
export type LimitsResponse = typeof LimitsResponse.Type;
|
|
839
|
+
/** Per-tenant SES counts in one bucket (CloudWatch `Sum`s of `AWS/SES` by tenant). */
|
|
840
|
+
export declare const EmailPoint: Schema.Struct<{
|
|
841
|
+
readonly ts: Schema.String;
|
|
842
|
+
readonly sends: Schema.Finite;
|
|
843
|
+
readonly deliveries: Schema.Finite;
|
|
844
|
+
readonly bounces: Schema.Finite;
|
|
845
|
+
readonly complaints: Schema.Finite;
|
|
846
|
+
}>;
|
|
847
|
+
export type EmailPoint = typeof EmailPoint.Type;
|
|
848
|
+
/**
|
|
849
|
+
* Whether SES lets a stage send. `paused` comes with who paused it: `policy`
|
|
850
|
+
* (the tenant's reputation policy, after bad bounce or complaint rates),
|
|
851
|
+
* `manual` (someone changed it in SES), or `aws` (only AWS Support can lift
|
|
852
|
+
* that one).
|
|
853
|
+
*/
|
|
854
|
+
export declare const EmailSending: Schema.Struct<{
|
|
855
|
+
readonly status: Schema.Literals<readonly ["enabled", "paused"]>;
|
|
856
|
+
readonly pausedBy: Schema.optional<Schema.Literals<readonly ["policy", "manual", "aws"]>>;
|
|
857
|
+
/** SES's reason, when paused. */
|
|
858
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
859
|
+
readonly since: Schema.optional<Schema.String>;
|
|
860
|
+
}>;
|
|
861
|
+
export type EmailSending = typeof EmailSending.Type;
|
|
862
|
+
/** A stage's email: its sender, whether it can send, today's usage and SES's counts over the range. */
|
|
863
|
+
export declare const EmailStatsResponse: Schema.Struct<{
|
|
864
|
+
readonly app: Schema.String;
|
|
865
|
+
readonly stage: Schema.String;
|
|
866
|
+
/** False when the live deployment declares no `email`; the rest is then empty. */
|
|
867
|
+
readonly enabled: Schema.Boolean;
|
|
868
|
+
/** `"Todo" <todo@mail…>`. */
|
|
869
|
+
readonly from: Schema.optional<Schema.String>;
|
|
870
|
+
readonly sending: Schema.optional<Schema.Struct<{
|
|
871
|
+
readonly status: Schema.Literals<readonly ["enabled", "paused"]>;
|
|
872
|
+
readonly pausedBy: Schema.optional<Schema.Literals<readonly ["policy", "manual", "aws"]>>;
|
|
873
|
+
/** SES's reason, when paused. */
|
|
874
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
875
|
+
readonly since: Schema.optional<Schema.String>;
|
|
876
|
+
}>>;
|
|
877
|
+
/** Recipients sent today (UTC) and the stage's daily limit. */
|
|
878
|
+
readonly today: Schema.optional<Schema.Struct<{
|
|
879
|
+
readonly sent: Schema.Finite;
|
|
880
|
+
readonly limit: Schema.Finite;
|
|
881
|
+
}>>;
|
|
882
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
883
|
+
readonly totals: Schema.Struct<{
|
|
884
|
+
readonly sends: Schema.Finite;
|
|
885
|
+
readonly deliveries: Schema.Finite;
|
|
886
|
+
readonly bounces: Schema.Finite;
|
|
887
|
+
readonly complaints: Schema.Finite;
|
|
888
|
+
}>;
|
|
889
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
890
|
+
readonly ts: Schema.String;
|
|
891
|
+
readonly sends: Schema.Finite;
|
|
892
|
+
readonly deliveries: Schema.Finite;
|
|
893
|
+
readonly bounces: Schema.Finite;
|
|
894
|
+
readonly complaints: Schema.Finite;
|
|
895
|
+
}>>;
|
|
896
|
+
}>;
|
|
897
|
+
export type EmailStatsResponse = typeof EmailStatsResponse.Type;
|
|
898
|
+
/** An address on a stage's suppression list: SES no longer sends to it from this stage. */
|
|
899
|
+
export declare const SuppressedAddress: Schema.Struct<{
|
|
900
|
+
readonly address: Schema.String;
|
|
901
|
+
readonly reason: Schema.Literals<readonly ["bounce", "complaint"]>;
|
|
902
|
+
readonly since: Schema.String;
|
|
903
|
+
}>;
|
|
904
|
+
export type SuppressedAddress = typeof SuppressedAddress.Type;
|
|
905
|
+
export declare const SuppressedResponse: Schema.Struct<{
|
|
906
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
907
|
+
readonly address: Schema.String;
|
|
908
|
+
readonly reason: Schema.Literals<readonly ["bounce", "complaint"]>;
|
|
909
|
+
readonly since: Schema.String;
|
|
910
|
+
}>>;
|
|
911
|
+
readonly next: Schema.optional<Schema.String>;
|
|
912
|
+
}>;
|
|
913
|
+
export type SuppressedResponse = typeof SuppressedResponse.Type;
|
|
914
|
+
export declare const ErrorStatus: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
915
|
+
export type ErrorStatus = typeof ErrorStatus.Type;
|
|
916
|
+
export declare const ErrorGroup: Schema.Struct<{
|
|
917
|
+
readonly fingerprint: Schema.String;
|
|
918
|
+
readonly stage: Schema.String;
|
|
919
|
+
readonly name: Schema.String;
|
|
920
|
+
readonly message: Schema.String;
|
|
921
|
+
readonly source: Schema.String;
|
|
922
|
+
readonly count: Schema.Finite;
|
|
923
|
+
readonly firstSeen: Schema.String;
|
|
924
|
+
readonly lastSeen: Schema.String;
|
|
925
|
+
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
926
|
+
readonly sample: Schema.Struct<{
|
|
927
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
928
|
+
readonly route: Schema.optional<Schema.String>;
|
|
929
|
+
readonly job: Schema.optional<Schema.String>;
|
|
930
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
931
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
932
|
+
}>;
|
|
933
|
+
}>;
|
|
934
|
+
export type ErrorGroup = typeof ErrorGroup.Type;
|
|
935
|
+
export declare const UpdateErrorRequest: Schema.Struct<{
|
|
936
|
+
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
937
|
+
}>;
|
|
938
|
+
export type UpdateErrorRequest = typeof UpdateErrorRequest.Type;
|
|
939
|
+
/** Log stream of a line: `web`, `worker`, or `service:<name>` for a long-running service. */
|
|
940
|
+
export declare const LogStream: Schema.String;
|
|
941
|
+
export type LogStream = typeof LogStream.Type;
|
|
942
|
+
export declare const LogLine: Schema.Struct<{
|
|
943
|
+
readonly ts: Schema.String;
|
|
944
|
+
readonly stream: Schema.String;
|
|
945
|
+
readonly level: Schema.optional<Schema.String>;
|
|
946
|
+
readonly message: Schema.String;
|
|
947
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
948
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
949
|
+
readonly _p: Schema.Literal<1>;
|
|
950
|
+
readonly ts: Schema.Finite;
|
|
951
|
+
readonly app: Schema.String;
|
|
952
|
+
readonly stage: Schema.String;
|
|
953
|
+
readonly rev: Schema.String;
|
|
954
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
955
|
+
readonly span: Schema.optional<Schema.String>;
|
|
956
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
957
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
958
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
959
|
+
readonly t: Schema.Literal<"req">;
|
|
960
|
+
readonly method: Schema.String;
|
|
961
|
+
readonly route: Schema.String;
|
|
962
|
+
readonly path: Schema.optional<Schema.String>;
|
|
963
|
+
readonly status: Schema.Finite;
|
|
964
|
+
readonly dur: Schema.Finite;
|
|
965
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
966
|
+
readonly country: Schema.optional<Schema.String>;
|
|
967
|
+
readonly user: Schema.optional<Schema.String>;
|
|
968
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
969
|
+
}>, Schema.Struct<{
|
|
970
|
+
readonly _p: Schema.Literal<1>;
|
|
971
|
+
readonly ts: Schema.Finite;
|
|
972
|
+
readonly app: Schema.String;
|
|
973
|
+
readonly stage: Schema.String;
|
|
974
|
+
readonly rev: Schema.String;
|
|
975
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
976
|
+
readonly span: Schema.optional<Schema.String>;
|
|
977
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
978
|
+
readonly t: Schema.Literal<"err">;
|
|
979
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
980
|
+
readonly name: Schema.String;
|
|
981
|
+
readonly message: Schema.String;
|
|
982
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
983
|
+
readonly route: Schema.optional<Schema.String>;
|
|
984
|
+
readonly job: Schema.optional<Schema.String>;
|
|
985
|
+
readonly fingerprint: Schema.String;
|
|
986
|
+
}>, Schema.Struct<{
|
|
987
|
+
readonly _p: Schema.Literal<1>;
|
|
988
|
+
readonly ts: Schema.Finite;
|
|
989
|
+
readonly app: Schema.String;
|
|
990
|
+
readonly stage: Schema.String;
|
|
991
|
+
readonly rev: Schema.String;
|
|
992
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
993
|
+
readonly span: Schema.optional<Schema.String>;
|
|
994
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
995
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
996
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
997
|
+
readonly t: Schema.Literal<"job">;
|
|
998
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
999
|
+
readonly name: Schema.String;
|
|
1000
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1001
|
+
readonly dur: Schema.Finite;
|
|
1002
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1003
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
1004
|
+
}>, Schema.Struct<{
|
|
1005
|
+
readonly _p: Schema.Literal<1>;
|
|
1006
|
+
readonly ts: Schema.Finite;
|
|
1007
|
+
readonly app: Schema.String;
|
|
1008
|
+
readonly stage: Schema.String;
|
|
1009
|
+
readonly rev: Schema.String;
|
|
1010
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1011
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1012
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1013
|
+
readonly t: Schema.Literal<"span">;
|
|
1014
|
+
readonly op: Schema.String;
|
|
1015
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1016
|
+
readonly dur: Schema.Finite;
|
|
1017
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1018
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
1019
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
1020
|
+
readonly _p: Schema.Literal<1>;
|
|
1021
|
+
readonly ts: Schema.Finite;
|
|
1022
|
+
readonly app: Schema.String;
|
|
1023
|
+
readonly stage: Schema.String;
|
|
1024
|
+
readonly rev: Schema.String;
|
|
1025
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1026
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1027
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1028
|
+
readonly t: Schema.Literal<"log">;
|
|
1029
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
1030
|
+
readonly msg: Schema.String;
|
|
1031
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
1032
|
+
readonly _p: Schema.Literal<1>;
|
|
1033
|
+
readonly ts: Schema.Finite;
|
|
1034
|
+
readonly app: Schema.String;
|
|
1035
|
+
readonly stage: Schema.String;
|
|
1036
|
+
readonly rev: Schema.String;
|
|
1037
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1038
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1039
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1040
|
+
readonly t: Schema.Literal<"metric">;
|
|
1041
|
+
readonly name: Schema.String;
|
|
1042
|
+
readonly value: Schema.Finite;
|
|
1043
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
1044
|
+
}>, Schema.Struct<{
|
|
1045
|
+
readonly _p: Schema.Literal<1>;
|
|
1046
|
+
readonly ts: Schema.Finite;
|
|
1047
|
+
readonly app: Schema.String;
|
|
1048
|
+
readonly stage: Schema.String;
|
|
1049
|
+
readonly rev: Schema.String;
|
|
1050
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1051
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1052
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1053
|
+
readonly t: Schema.Literal<"limit">;
|
|
1054
|
+
readonly name: Schema.String;
|
|
1055
|
+
readonly ok: Schema.Boolean;
|
|
1056
|
+
}>, Schema.Struct<{
|
|
1057
|
+
readonly _p: Schema.Literal<1>;
|
|
1058
|
+
readonly ts: Schema.Finite;
|
|
1059
|
+
readonly app: Schema.String;
|
|
1060
|
+
readonly stage: Schema.String;
|
|
1061
|
+
readonly rev: Schema.String;
|
|
1062
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1063
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1064
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1065
|
+
readonly t: Schema.Literal<"env">;
|
|
1066
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1067
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1068
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1069
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1070
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1071
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1072
|
+
}>]>>;
|
|
1073
|
+
}>;
|
|
1074
|
+
export type LogLine = typeof LogLine.Type;
|
|
1075
|
+
export declare const LogsResponse: Schema.Struct<{
|
|
1076
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
1077
|
+
readonly ts: Schema.String;
|
|
1078
|
+
readonly stream: Schema.String;
|
|
1079
|
+
readonly level: Schema.optional<Schema.String>;
|
|
1080
|
+
readonly message: Schema.String;
|
|
1081
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1082
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1083
|
+
readonly _p: Schema.Literal<1>;
|
|
1084
|
+
readonly ts: Schema.Finite;
|
|
1085
|
+
readonly app: Schema.String;
|
|
1086
|
+
readonly stage: Schema.String;
|
|
1087
|
+
readonly rev: Schema.String;
|
|
1088
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1089
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1090
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1091
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1092
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1093
|
+
readonly t: Schema.Literal<"req">;
|
|
1094
|
+
readonly method: Schema.String;
|
|
1095
|
+
readonly route: Schema.String;
|
|
1096
|
+
readonly path: Schema.optional<Schema.String>;
|
|
1097
|
+
readonly status: Schema.Finite;
|
|
1098
|
+
readonly dur: Schema.Finite;
|
|
1099
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
1100
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1101
|
+
readonly user: Schema.optional<Schema.String>;
|
|
1102
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
1103
|
+
}>, Schema.Struct<{
|
|
1104
|
+
readonly _p: Schema.Literal<1>;
|
|
1105
|
+
readonly ts: Schema.Finite;
|
|
1106
|
+
readonly app: Schema.String;
|
|
1107
|
+
readonly stage: Schema.String;
|
|
1108
|
+
readonly rev: Schema.String;
|
|
1109
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1110
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1111
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1112
|
+
readonly t: Schema.Literal<"err">;
|
|
1113
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
1114
|
+
readonly name: Schema.String;
|
|
1115
|
+
readonly message: Schema.String;
|
|
1116
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1117
|
+
readonly route: Schema.optional<Schema.String>;
|
|
1118
|
+
readonly job: Schema.optional<Schema.String>;
|
|
1119
|
+
readonly fingerprint: Schema.String;
|
|
1120
|
+
}>, Schema.Struct<{
|
|
1121
|
+
readonly _p: Schema.Literal<1>;
|
|
1122
|
+
readonly ts: Schema.Finite;
|
|
1123
|
+
readonly app: Schema.String;
|
|
1124
|
+
readonly stage: Schema.String;
|
|
1125
|
+
readonly rev: Schema.String;
|
|
1126
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1127
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1128
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1129
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1130
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1131
|
+
readonly t: Schema.Literal<"job">;
|
|
1132
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
1133
|
+
readonly name: Schema.String;
|
|
1134
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1135
|
+
readonly dur: Schema.Finite;
|
|
1136
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1137
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
1138
|
+
}>, Schema.Struct<{
|
|
1139
|
+
readonly _p: Schema.Literal<1>;
|
|
1140
|
+
readonly ts: Schema.Finite;
|
|
1141
|
+
readonly app: Schema.String;
|
|
1142
|
+
readonly stage: Schema.String;
|
|
1143
|
+
readonly rev: Schema.String;
|
|
1144
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1145
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1146
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1147
|
+
readonly t: Schema.Literal<"span">;
|
|
1148
|
+
readonly op: Schema.String;
|
|
1149
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1150
|
+
readonly dur: Schema.Finite;
|
|
1151
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1152
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
1153
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
1154
|
+
readonly _p: Schema.Literal<1>;
|
|
1155
|
+
readonly ts: Schema.Finite;
|
|
1156
|
+
readonly app: Schema.String;
|
|
1157
|
+
readonly stage: Schema.String;
|
|
1158
|
+
readonly rev: Schema.String;
|
|
1159
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1160
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1161
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1162
|
+
readonly t: Schema.Literal<"log">;
|
|
1163
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
1164
|
+
readonly msg: Schema.String;
|
|
1165
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
1166
|
+
readonly _p: Schema.Literal<1>;
|
|
1167
|
+
readonly ts: Schema.Finite;
|
|
1168
|
+
readonly app: Schema.String;
|
|
1169
|
+
readonly stage: Schema.String;
|
|
1170
|
+
readonly rev: Schema.String;
|
|
1171
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1172
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1173
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1174
|
+
readonly t: Schema.Literal<"metric">;
|
|
1175
|
+
readonly name: Schema.String;
|
|
1176
|
+
readonly value: Schema.Finite;
|
|
1177
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
1178
|
+
}>, Schema.Struct<{
|
|
1179
|
+
readonly _p: Schema.Literal<1>;
|
|
1180
|
+
readonly ts: Schema.Finite;
|
|
1181
|
+
readonly app: Schema.String;
|
|
1182
|
+
readonly stage: Schema.String;
|
|
1183
|
+
readonly rev: Schema.String;
|
|
1184
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1185
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1186
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1187
|
+
readonly t: Schema.Literal<"limit">;
|
|
1188
|
+
readonly name: Schema.String;
|
|
1189
|
+
readonly ok: Schema.Boolean;
|
|
1190
|
+
}>, Schema.Struct<{
|
|
1191
|
+
readonly _p: Schema.Literal<1>;
|
|
1192
|
+
readonly ts: Schema.Finite;
|
|
1193
|
+
readonly app: Schema.String;
|
|
1194
|
+
readonly stage: Schema.String;
|
|
1195
|
+
readonly rev: Schema.String;
|
|
1196
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1197
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1198
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1199
|
+
readonly t: Schema.Literal<"env">;
|
|
1200
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1201
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1202
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1203
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1204
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1205
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1206
|
+
}>]>>;
|
|
1207
|
+
}>>;
|
|
1208
|
+
readonly nextToken: Schema.optional<Schema.String>;
|
|
1209
|
+
}>;
|
|
1210
|
+
export type LogsResponse = typeof LogsResponse.Type;
|
|
1211
|
+
export declare const TraceResponse: Schema.Struct<{
|
|
1212
|
+
readonly trace: Schema.String;
|
|
1213
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1214
|
+
readonly _p: Schema.Literal<1>;
|
|
1215
|
+
readonly ts: Schema.Finite;
|
|
1216
|
+
readonly app: Schema.String;
|
|
1217
|
+
readonly stage: Schema.String;
|
|
1218
|
+
readonly rev: Schema.String;
|
|
1219
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1220
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1221
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1222
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1223
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1224
|
+
readonly t: Schema.Literal<"req">;
|
|
1225
|
+
readonly method: Schema.String;
|
|
1226
|
+
readonly route: Schema.String;
|
|
1227
|
+
readonly path: Schema.optional<Schema.String>;
|
|
1228
|
+
readonly status: Schema.Finite;
|
|
1229
|
+
readonly dur: Schema.Finite;
|
|
1230
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
1231
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1232
|
+
readonly user: Schema.optional<Schema.String>;
|
|
1233
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
1234
|
+
}>, Schema.Struct<{
|
|
1235
|
+
readonly _p: Schema.Literal<1>;
|
|
1236
|
+
readonly ts: Schema.Finite;
|
|
1237
|
+
readonly app: Schema.String;
|
|
1238
|
+
readonly stage: Schema.String;
|
|
1239
|
+
readonly rev: Schema.String;
|
|
1240
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1241
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1242
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1243
|
+
readonly t: Schema.Literal<"err">;
|
|
1244
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
1245
|
+
readonly name: Schema.String;
|
|
1246
|
+
readonly message: Schema.String;
|
|
1247
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1248
|
+
readonly route: Schema.optional<Schema.String>;
|
|
1249
|
+
readonly job: Schema.optional<Schema.String>;
|
|
1250
|
+
readonly fingerprint: Schema.String;
|
|
1251
|
+
}>, Schema.Struct<{
|
|
1252
|
+
readonly _p: Schema.Literal<1>;
|
|
1253
|
+
readonly ts: Schema.Finite;
|
|
1254
|
+
readonly app: Schema.String;
|
|
1255
|
+
readonly stage: Schema.String;
|
|
1256
|
+
readonly rev: Schema.String;
|
|
1257
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1258
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1259
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1260
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1261
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1262
|
+
readonly t: Schema.Literal<"job">;
|
|
1263
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
1264
|
+
readonly name: Schema.String;
|
|
1265
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1266
|
+
readonly dur: Schema.Finite;
|
|
1267
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1268
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
1269
|
+
}>, Schema.Struct<{
|
|
1270
|
+
readonly _p: Schema.Literal<1>;
|
|
1271
|
+
readonly ts: Schema.Finite;
|
|
1272
|
+
readonly app: Schema.String;
|
|
1273
|
+
readonly stage: Schema.String;
|
|
1274
|
+
readonly rev: Schema.String;
|
|
1275
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1276
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1277
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1278
|
+
readonly t: Schema.Literal<"span">;
|
|
1279
|
+
readonly op: Schema.String;
|
|
1280
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1281
|
+
readonly dur: Schema.Finite;
|
|
1282
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1283
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
1284
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
1285
|
+
readonly _p: Schema.Literal<1>;
|
|
1286
|
+
readonly ts: Schema.Finite;
|
|
1287
|
+
readonly app: Schema.String;
|
|
1288
|
+
readonly stage: Schema.String;
|
|
1289
|
+
readonly rev: Schema.String;
|
|
1290
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1291
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1292
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1293
|
+
readonly t: Schema.Literal<"log">;
|
|
1294
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
1295
|
+
readonly msg: Schema.String;
|
|
1296
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
1297
|
+
readonly _p: Schema.Literal<1>;
|
|
1298
|
+
readonly ts: Schema.Finite;
|
|
1299
|
+
readonly app: Schema.String;
|
|
1300
|
+
readonly stage: Schema.String;
|
|
1301
|
+
readonly rev: Schema.String;
|
|
1302
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1303
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1304
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1305
|
+
readonly t: Schema.Literal<"metric">;
|
|
1306
|
+
readonly name: Schema.String;
|
|
1307
|
+
readonly value: Schema.Finite;
|
|
1308
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
1309
|
+
}>, Schema.Struct<{
|
|
1310
|
+
readonly _p: Schema.Literal<1>;
|
|
1311
|
+
readonly ts: Schema.Finite;
|
|
1312
|
+
readonly app: Schema.String;
|
|
1313
|
+
readonly stage: Schema.String;
|
|
1314
|
+
readonly rev: Schema.String;
|
|
1315
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1316
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1317
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1318
|
+
readonly t: Schema.Literal<"limit">;
|
|
1319
|
+
readonly name: Schema.String;
|
|
1320
|
+
readonly ok: Schema.Boolean;
|
|
1321
|
+
}>, Schema.Struct<{
|
|
1322
|
+
readonly _p: Schema.Literal<1>;
|
|
1323
|
+
readonly ts: Schema.Finite;
|
|
1324
|
+
readonly app: Schema.String;
|
|
1325
|
+
readonly stage: Schema.String;
|
|
1326
|
+
readonly rev: Schema.String;
|
|
1327
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1328
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1329
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1330
|
+
readonly t: Schema.Literal<"env">;
|
|
1331
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1332
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1333
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1334
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1335
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1336
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1337
|
+
}>]>>;
|
|
1338
|
+
}>;
|
|
1339
|
+
export type TraceResponse = typeof TraceResponse.Type;
|
|
1340
|
+
/** A GET of the stage's health path, for a stage that served nothing lately or has no server. */
|
|
1341
|
+
export declare const UptimeCheck: Schema.Struct<{
|
|
1342
|
+
readonly ts: Schema.String;
|
|
1343
|
+
readonly ok: Schema.Boolean;
|
|
1344
|
+
readonly source: Schema.Literal<"check">;
|
|
1345
|
+
/** The HTTP status; 0 when nothing answered within 10 s. */
|
|
1346
|
+
readonly status: Schema.Finite;
|
|
1347
|
+
readonly ms: Schema.Finite;
|
|
1348
|
+
}>;
|
|
1349
|
+
export type UptimeCheck = typeof UptimeCheck.Type;
|
|
1350
|
+
/** The stage's own requests in the 10 minutes before `ts`: down when at least 3, half of them 5xx. */
|
|
1351
|
+
export declare const UptimeTraffic: Schema.Struct<{
|
|
1352
|
+
readonly ts: Schema.String;
|
|
1353
|
+
readonly ok: Schema.Boolean;
|
|
1354
|
+
readonly source: Schema.Literal<"traffic">;
|
|
1355
|
+
readonly req: Schema.Finite;
|
|
1356
|
+
readonly s5xx: Schema.Finite;
|
|
1357
|
+
}>;
|
|
1358
|
+
export type UptimeTraffic = typeof UptimeTraffic.Type;
|
|
1359
|
+
export declare const UptimePoint: Schema.Union<readonly [Schema.Struct<{
|
|
1360
|
+
readonly ts: Schema.String;
|
|
1361
|
+
readonly ok: Schema.Boolean;
|
|
1362
|
+
readonly source: Schema.Literal<"check">;
|
|
1363
|
+
/** The HTTP status; 0 when nothing answered within 10 s. */
|
|
1364
|
+
readonly status: Schema.Finite;
|
|
1365
|
+
readonly ms: Schema.Finite;
|
|
1366
|
+
}>, Schema.Struct<{
|
|
1367
|
+
readonly ts: Schema.String;
|
|
1368
|
+
readonly ok: Schema.Boolean;
|
|
1369
|
+
readonly source: Schema.Literal<"traffic">;
|
|
1370
|
+
readonly req: Schema.Finite;
|
|
1371
|
+
readonly s5xx: Schema.Finite;
|
|
1372
|
+
}>]>;
|
|
1373
|
+
export type UptimePoint = typeof UptimePoint.Type;
|
|
1374
|
+
/** Monthly cost of one container if it runs all month (`estimateContainerCost`). */
|
|
1375
|
+
export declare const MonthlyContainerCost: Schema.Struct<{
|
|
1376
|
+
readonly computeUsd: Schema.Finite;
|
|
1377
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1378
|
+
readonly totalUsd: Schema.Finite;
|
|
1379
|
+
}>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Something billed for as long as it runs, estimated from its size because
|
|
1382
|
+
* Cost Explorer lags a day and doesn't attribute every part of it to the
|
|
1383
|
+
* app (a container's public IPv4 address).
|
|
1384
|
+
*/
|
|
1385
|
+
export declare const AlwaysOnCost: Schema.Struct<{
|
|
1386
|
+
readonly stage: Schema.String;
|
|
1387
|
+
readonly kind: Schema.Literal<"service">;
|
|
1388
|
+
readonly name: Schema.String;
|
|
1389
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1390
|
+
readonly detail: Schema.String;
|
|
1391
|
+
readonly monthly: Schema.Struct<{
|
|
1392
|
+
readonly computeUsd: Schema.Finite;
|
|
1393
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1394
|
+
readonly totalUsd: Schema.Finite;
|
|
1395
|
+
}>;
|
|
1396
|
+
}>;
|
|
1397
|
+
export type AlwaysOnCost = typeof AlwaysOnCost.Type;
|
|
1398
|
+
/** A non-preview stage's server: how it runs, and (prod) what each mode would cost. */
|
|
1399
|
+
export declare const StageCompute: Schema.Struct<{
|
|
1400
|
+
readonly stage: Schema.String;
|
|
1401
|
+
/** `web.compute` of the live deployment. */
|
|
1402
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1403
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1404
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1405
|
+
readonly at: Schema.String;
|
|
1406
|
+
readonly request: Schema.Struct<{
|
|
1407
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1408
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1409
|
+
}>;
|
|
1410
|
+
readonly instance: Schema.Struct<{
|
|
1411
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1412
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1413
|
+
}>;
|
|
1414
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1415
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1416
|
+
readonly days: Schema.Finite;
|
|
1417
|
+
}>>;
|
|
1418
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1419
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1420
|
+
readonly days: Schema.Finite;
|
|
1421
|
+
readonly day: Schema.String;
|
|
1422
|
+
}>>;
|
|
1423
|
+
}>;
|
|
1424
|
+
export type StageCompute = typeof StageCompute.Type;
|
|
1425
|
+
export declare const CostResponse: Schema.Struct<{
|
|
1426
|
+
readonly app: Schema.String;
|
|
1427
|
+
readonly currency: Schema.Literal<"USD">;
|
|
1428
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
1429
|
+
readonly date: Schema.String;
|
|
1430
|
+
readonly usd: Schema.Finite;
|
|
1431
|
+
}>>;
|
|
1432
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
1433
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1434
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1435
|
+
readonly stage: Schema.String;
|
|
1436
|
+
readonly kind: Schema.Literal<"service">;
|
|
1437
|
+
readonly name: Schema.String;
|
|
1438
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1439
|
+
readonly detail: Schema.String;
|
|
1440
|
+
readonly monthly: Schema.Struct<{
|
|
1441
|
+
readonly computeUsd: Schema.Finite;
|
|
1442
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1443
|
+
readonly totalUsd: Schema.Finite;
|
|
1444
|
+
}>;
|
|
1445
|
+
}>>>;
|
|
1446
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1447
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1448
|
+
readonly stage: Schema.String;
|
|
1449
|
+
/** `web.compute` of the live deployment. */
|
|
1450
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1451
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1452
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1453
|
+
readonly at: Schema.String;
|
|
1454
|
+
readonly request: Schema.Struct<{
|
|
1455
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1456
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1457
|
+
}>;
|
|
1458
|
+
readonly instance: Schema.Struct<{
|
|
1459
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1460
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1461
|
+
}>;
|
|
1462
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1463
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1464
|
+
readonly days: Schema.Finite;
|
|
1465
|
+
}>>;
|
|
1466
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1467
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1468
|
+
readonly days: Schema.Finite;
|
|
1469
|
+
readonly day: Schema.String;
|
|
1470
|
+
}>>;
|
|
1471
|
+
}>>>;
|
|
1472
|
+
}>;
|
|
1473
|
+
export type CostResponse = typeof CostResponse.Type;
|
|
1474
|
+
export declare const SecretInfo: Schema.Struct<{
|
|
1475
|
+
readonly name: Schema.String;
|
|
1476
|
+
readonly scope: Schema.Literals<readonly ["stage", "shared"]>;
|
|
1477
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
1478
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
1479
|
+
}>;
|
|
1480
|
+
export type SecretInfo = typeof SecretInfo.Type;
|
|
1481
|
+
export declare const SecretsResponse: Schema.Struct<{
|
|
1482
|
+
readonly secrets: Schema.$Array<Schema.Struct<{
|
|
1483
|
+
readonly name: Schema.String;
|
|
1484
|
+
readonly scope: Schema.Literals<readonly ["stage", "shared"]>;
|
|
1485
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
1486
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
1487
|
+
}>>;
|
|
1488
|
+
/** Names `plat.config.ts` declares on the live deployment. */
|
|
1489
|
+
readonly declared: Schema.$Array<Schema.String>;
|
|
1490
|
+
readonly missing: Schema.$Array<Schema.String>;
|
|
1491
|
+
}>;
|
|
1492
|
+
export type SecretsResponse = typeof SecretsResponse.Type;
|
|
1493
|
+
export declare const PutSecretRequest: Schema.Struct<{
|
|
1494
|
+
readonly value: Schema.String;
|
|
1495
|
+
}>;
|
|
1496
|
+
export type PutSecretRequest = typeof PutSecretRequest.Type;
|
|
1497
|
+
/** `GET /v1/apps/:app/data/collections`. */
|
|
1498
|
+
export declare const DataCollections: Schema.Struct<{
|
|
1499
|
+
/**
|
|
1500
|
+
* Whether the stage has a table. False when `db` is off in plat.config.ts or
|
|
1501
|
+
* the stage was never deployed; a table kept after turning `db` off counts.
|
|
1502
|
+
*/
|
|
1503
|
+
readonly database: Schema.Boolean;
|
|
1504
|
+
/** Item counts come from a bounded scan sample, so large collections are undercounted. */
|
|
1505
|
+
readonly collections: Schema.$Array<Schema.Struct<{
|
|
1506
|
+
readonly name: Schema.String;
|
|
1507
|
+
readonly sampled: Schema.Finite;
|
|
1508
|
+
}>>;
|
|
1509
|
+
}>;
|
|
1510
|
+
export type DataCollections = typeof DataCollections.Type;
|
|
1511
|
+
export declare const DataPage: Schema.Struct<{
|
|
1512
|
+
readonly items: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1513
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
1514
|
+
}>;
|
|
1515
|
+
export type DataPage = typeof DataPage.Type;
|
|
1516
|
+
export declare const StoredObjectInfo: Schema.Struct<{
|
|
1517
|
+
readonly key: Schema.String;
|
|
1518
|
+
readonly size: Schema.Finite;
|
|
1519
|
+
readonly lastModified: Schema.optional<Schema.String>;
|
|
1520
|
+
}>;
|
|
1521
|
+
export type StoredObjectInfo = typeof StoredObjectInfo.Type;
|
|
1522
|
+
/**
|
|
1523
|
+
* `GET /v1/apps/:app/storage`: the declared stores (and which of them the
|
|
1524
|
+
* edge serves) without `?store=`, a listing with it.
|
|
1525
|
+
*/
|
|
1526
|
+
export declare const StorageResponse: Schema.Union<readonly [Schema.Struct<{
|
|
1527
|
+
readonly stores: Schema.$Array<Schema.String>;
|
|
1528
|
+
readonly public: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1529
|
+
}>, Schema.Struct<{
|
|
1530
|
+
readonly objects: Schema.$Array<Schema.Struct<{
|
|
1531
|
+
readonly key: Schema.String;
|
|
1532
|
+
readonly size: Schema.Finite;
|
|
1533
|
+
readonly lastModified: Schema.optional<Schema.String>;
|
|
1534
|
+
}>>;
|
|
1535
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
1536
|
+
}>]>;
|
|
1537
|
+
export type StorageResponse = typeof StorageResponse.Type;
|
|
1538
|
+
export declare const UrlResponse: Schema.Struct<{
|
|
1539
|
+
readonly url: Schema.String;
|
|
1540
|
+
}>;
|
|
1541
|
+
export type UrlResponse = typeof UrlResponse.Type;
|
|
1542
|
+
export declare const CronRunResponse: Schema.Struct<{
|
|
1543
|
+
readonly started: Schema.String;
|
|
1544
|
+
}>;
|
|
1545
|
+
/**
|
|
1546
|
+
* - `running`: every desired task is up and the latest rollout finished
|
|
1547
|
+
* - `starting`: a rollout or replacement is under way
|
|
1548
|
+
* - `failing`: tasks keep stopping before they settle, or the last rollout failed
|
|
1549
|
+
* - `stopped`: scaled to zero (a preview past its minutes, or `plat services stop`)
|
|
1550
|
+
*/
|
|
1551
|
+
export declare const ServiceState: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1552
|
+
export type ServiceState = typeof ServiceState.Type;
|
|
1553
|
+
export declare const ServiceInfo: Schema.Struct<{
|
|
1554
|
+
readonly name: Schema.String;
|
|
1555
|
+
/** Size and capacity the live deployment declares. */
|
|
1556
|
+
readonly cpu: Schema.Finite;
|
|
1557
|
+
readonly memoryMb: Schema.Finite;
|
|
1558
|
+
readonly spot: Schema.Boolean;
|
|
1559
|
+
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1560
|
+
readonly desired: Schema.Finite;
|
|
1561
|
+
readonly running: Schema.Finite;
|
|
1562
|
+
readonly pending: Schema.Finite;
|
|
1563
|
+
/** Deployment whose build the service runs. */
|
|
1564
|
+
readonly deployment: Schema.optional<Schema.String>;
|
|
1565
|
+
/** When the current task started. */
|
|
1566
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
1567
|
+
/** When a preview's stop schedule scales it to zero. */
|
|
1568
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1569
|
+
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1570
|
+
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1571
|
+
readonly at: Schema.String;
|
|
1572
|
+
readonly reason: Schema.String;
|
|
1573
|
+
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1574
|
+
}>>;
|
|
1575
|
+
/** Recent ECS service events, newest first. */
|
|
1576
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1577
|
+
readonly at: Schema.String;
|
|
1578
|
+
readonly message: Schema.String;
|
|
1579
|
+
}>>;
|
|
1580
|
+
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1581
|
+
readonly starts: Schema.Finite;
|
|
1582
|
+
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1583
|
+
readonly failedRuns: Schema.Finite;
|
|
1584
|
+
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1585
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
1586
|
+
readonly ts: Schema.String;
|
|
1587
|
+
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1588
|
+
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1589
|
+
}>>;
|
|
1590
|
+
/** If it ran all month. */
|
|
1591
|
+
readonly monthly: Schema.Struct<{
|
|
1592
|
+
readonly computeUsd: Schema.Finite;
|
|
1593
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1594
|
+
readonly totalUsd: Schema.Finite;
|
|
1595
|
+
}>;
|
|
1596
|
+
}>;
|
|
1597
|
+
export type ServiceInfo = typeof ServiceInfo.Type;
|
|
1598
|
+
export declare const ServicesResponse: Schema.Struct<{
|
|
1599
|
+
readonly app: Schema.String;
|
|
1600
|
+
readonly stage: Schema.String;
|
|
1601
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
1602
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
1603
|
+
readonly name: Schema.String;
|
|
1604
|
+
/** Size and capacity the live deployment declares. */
|
|
1605
|
+
readonly cpu: Schema.Finite;
|
|
1606
|
+
readonly memoryMb: Schema.Finite;
|
|
1607
|
+
readonly spot: Schema.Boolean;
|
|
1608
|
+
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1609
|
+
readonly desired: Schema.Finite;
|
|
1610
|
+
readonly running: Schema.Finite;
|
|
1611
|
+
readonly pending: Schema.Finite;
|
|
1612
|
+
/** Deployment whose build the service runs. */
|
|
1613
|
+
readonly deployment: Schema.optional<Schema.String>;
|
|
1614
|
+
/** When the current task started. */
|
|
1615
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
1616
|
+
/** When a preview's stop schedule scales it to zero. */
|
|
1617
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1618
|
+
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1619
|
+
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1620
|
+
readonly at: Schema.String;
|
|
1621
|
+
readonly reason: Schema.String;
|
|
1622
|
+
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1623
|
+
}>>;
|
|
1624
|
+
/** Recent ECS service events, newest first. */
|
|
1625
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1626
|
+
readonly at: Schema.String;
|
|
1627
|
+
readonly message: Schema.String;
|
|
1628
|
+
}>>;
|
|
1629
|
+
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1630
|
+
readonly starts: Schema.Finite;
|
|
1631
|
+
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1632
|
+
readonly failedRuns: Schema.Finite;
|
|
1633
|
+
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1634
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
1635
|
+
readonly ts: Schema.String;
|
|
1636
|
+
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1637
|
+
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1638
|
+
}>>;
|
|
1639
|
+
/** If it ran all month. */
|
|
1640
|
+
readonly monthly: Schema.Struct<{
|
|
1641
|
+
readonly computeUsd: Schema.Finite;
|
|
1642
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1643
|
+
readonly totalUsd: Schema.Finite;
|
|
1644
|
+
}>;
|
|
1645
|
+
}>>;
|
|
1646
|
+
}>;
|
|
1647
|
+
export type ServicesResponse = typeof ServicesResponse.Type;
|
|
1648
|
+
export declare const StartServiceRequest: Schema.Struct<{
|
|
1649
|
+
/** Stop it again after this many minutes. Previews default to the service's `previewMinutes`. */
|
|
1650
|
+
readonly minutes: Schema.optional<Schema.Int>;
|
|
1651
|
+
}>;
|
|
1652
|
+
export type StartServiceRequest = typeof StartServiceRequest.Encoded;
|
|
1653
|
+
export declare const ServiceActionResponse: Schema.Struct<{
|
|
1654
|
+
readonly name: Schema.String;
|
|
1655
|
+
/** Tasks the service now asks for (1 running, 0 stopped). */
|
|
1656
|
+
readonly desired: Schema.Finite;
|
|
1657
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1658
|
+
}>;
|
|
1659
|
+
export type ServiceActionResponse = typeof ServiceActionResponse.Type;
|
|
1660
|
+
export type CronRunResponse = typeof CronRunResponse.Type;
|
|
1661
|
+
export declare const AdminOverview: Schema.Struct<{
|
|
1662
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
1663
|
+
readonly github: Schema.String;
|
|
1664
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
1665
|
+
}>>;
|
|
1666
|
+
readonly limits: Schema.Struct<{
|
|
1667
|
+
readonly appsPerMember: Schema.Finite;
|
|
1668
|
+
readonly stagesPerApp: Schema.Finite;
|
|
1669
|
+
readonly emailsPerDay: Schema.Finite;
|
|
1670
|
+
readonly edgeRequestsPerMinute: Schema.optional<Schema.Finite>;
|
|
1671
|
+
readonly edgeFloorAt: Schema.optional<Schema.Finite>;
|
|
1672
|
+
readonly servicesPerApp: Schema.Finite;
|
|
1673
|
+
}>;
|
|
1674
|
+
readonly apps: Schema.Finite;
|
|
1675
|
+
readonly stages: Schema.Finite;
|
|
1676
|
+
readonly previews: Schema.Finite;
|
|
1677
|
+
/** Apps with a stage whose uptime check is failing. */
|
|
1678
|
+
readonly down: Schema.$Array<Schema.String>;
|
|
1679
|
+
readonly cost: Schema.Struct<{
|
|
1680
|
+
readonly total: Schema.NullOr<Schema.Struct<{
|
|
1681
|
+
readonly app: Schema.String;
|
|
1682
|
+
readonly currency: Schema.Literal<"USD">;
|
|
1683
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
1684
|
+
readonly date: Schema.String;
|
|
1685
|
+
readonly usd: Schema.Finite;
|
|
1686
|
+
}>>;
|
|
1687
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
1688
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1689
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1690
|
+
readonly stage: Schema.String;
|
|
1691
|
+
readonly kind: Schema.Literal<"service">;
|
|
1692
|
+
readonly name: Schema.String;
|
|
1693
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1694
|
+
readonly detail: Schema.String;
|
|
1695
|
+
readonly monthly: Schema.Struct<{
|
|
1696
|
+
readonly computeUsd: Schema.Finite;
|
|
1697
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1698
|
+
readonly totalUsd: Schema.Finite;
|
|
1699
|
+
}>;
|
|
1700
|
+
}>>>;
|
|
1701
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1702
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1703
|
+
readonly stage: Schema.String;
|
|
1704
|
+
/** `web.compute` of the live deployment. */
|
|
1705
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1706
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1707
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1708
|
+
readonly at: Schema.String;
|
|
1709
|
+
readonly request: Schema.Struct<{
|
|
1710
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1711
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1712
|
+
}>;
|
|
1713
|
+
readonly instance: Schema.Struct<{
|
|
1714
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1715
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1716
|
+
}>;
|
|
1717
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1718
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1719
|
+
readonly days: Schema.Finite;
|
|
1720
|
+
}>>;
|
|
1721
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1722
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1723
|
+
readonly days: Schema.Finite;
|
|
1724
|
+
readonly day: Schema.String;
|
|
1725
|
+
}>>;
|
|
1726
|
+
}>>>;
|
|
1727
|
+
}>>;
|
|
1728
|
+
readonly shared: Schema.NullOr<Schema.Struct<{
|
|
1729
|
+
readonly app: Schema.String;
|
|
1730
|
+
readonly currency: Schema.Literal<"USD">;
|
|
1731
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
1732
|
+
readonly date: Schema.String;
|
|
1733
|
+
readonly usd: Schema.Finite;
|
|
1734
|
+
}>>;
|
|
1735
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
1736
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1737
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1738
|
+
readonly stage: Schema.String;
|
|
1739
|
+
readonly kind: Schema.Literal<"service">;
|
|
1740
|
+
readonly name: Schema.String;
|
|
1741
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1742
|
+
readonly detail: Schema.String;
|
|
1743
|
+
readonly monthly: Schema.Struct<{
|
|
1744
|
+
readonly computeUsd: Schema.Finite;
|
|
1745
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1746
|
+
readonly totalUsd: Schema.Finite;
|
|
1747
|
+
}>;
|
|
1748
|
+
}>>>;
|
|
1749
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1750
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1751
|
+
readonly stage: Schema.String;
|
|
1752
|
+
/** `web.compute` of the live deployment. */
|
|
1753
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1754
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1755
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1756
|
+
readonly at: Schema.String;
|
|
1757
|
+
readonly request: Schema.Struct<{
|
|
1758
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1759
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1760
|
+
}>;
|
|
1761
|
+
readonly instance: Schema.Struct<{
|
|
1762
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1763
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1764
|
+
}>;
|
|
1765
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1766
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1767
|
+
readonly days: Schema.Finite;
|
|
1768
|
+
}>>;
|
|
1769
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1770
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1771
|
+
readonly days: Schema.Finite;
|
|
1772
|
+
readonly day: Schema.String;
|
|
1773
|
+
}>>;
|
|
1774
|
+
}>>>;
|
|
1775
|
+
}>>;
|
|
1776
|
+
}>;
|
|
1777
|
+
}>;
|
|
1778
|
+
export type AdminOverview = typeof AdminOverview.Type;
|
|
1779
|
+
/** Requests the edge's web ACL handled in one bucket (CloudWatch `Sum`s). */
|
|
1780
|
+
export declare const EdgeFloorPoint: Schema.Struct<{
|
|
1781
|
+
readonly ts: Schema.String;
|
|
1782
|
+
/** Blocked by the per-client floor. */
|
|
1783
|
+
readonly blocked: Schema.Finite;
|
|
1784
|
+
/** Let through (every request the web ACL saw and allowed). */
|
|
1785
|
+
readonly allowed: Schema.Finite;
|
|
1786
|
+
}>;
|
|
1787
|
+
export type EdgeFloorPoint = typeof EdgeFloorPoint.Type;
|
|
1788
|
+
/** A request the floor blocked, from WAF's sample of the last three hours. */
|
|
1789
|
+
export declare const EdgeFloorSample: Schema.Struct<{
|
|
1790
|
+
readonly at: Schema.String;
|
|
1791
|
+
readonly host: Schema.String;
|
|
1792
|
+
readonly client: Schema.String;
|
|
1793
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1794
|
+
readonly method: Schema.String;
|
|
1795
|
+
readonly path: Schema.String;
|
|
1796
|
+
}>;
|
|
1797
|
+
export type EdgeFloorSample = typeof EdgeFloorSample.Type;
|
|
1798
|
+
/** Whether the edge floor is on, since when, and why it turned on or off. */
|
|
1799
|
+
export declare const EdgeFloorState: Schema.Struct<{
|
|
1800
|
+
readonly on: Schema.Boolean;
|
|
1801
|
+
/** Absent until it first turns on. */
|
|
1802
|
+
readonly since: Schema.optional<Schema.String>;
|
|
1803
|
+
readonly why: Schema.optional<Schema.String>;
|
|
1804
|
+
}>;
|
|
1805
|
+
export type EdgeFloorState = typeof EdgeFloorState.Type;
|
|
1806
|
+
/**
|
|
1807
|
+
* The edge's per-client request floor across every app: on only while the
|
|
1808
|
+
* whole edge is busy (`limits.edgeFloorAt`), then `limits.edgeRequestsPerMinute`
|
|
1809
|
+
* per client and host. Counts cover the range whether or not it was on then.
|
|
1810
|
+
*/
|
|
1811
|
+
export declare const EdgeFloorResponse: Schema.Struct<{
|
|
1812
|
+
/** False when the platform has no floor; the rest is then empty. */
|
|
1813
|
+
readonly enabled: Schema.Boolean;
|
|
1814
|
+
readonly state: Schema.Struct<{
|
|
1815
|
+
readonly on: Schema.Boolean;
|
|
1816
|
+
/** Absent until it first turns on. */
|
|
1817
|
+
readonly since: Schema.optional<Schema.String>;
|
|
1818
|
+
readonly why: Schema.optional<Schema.String>;
|
|
1819
|
+
}>;
|
|
1820
|
+
/** Requests per client per host per minute while it's on. */
|
|
1821
|
+
readonly limit: Schema.optional<Schema.Finite>;
|
|
1822
|
+
/** Requests per minute across the edge that turn it on. */
|
|
1823
|
+
readonly threshold: Schema.optional<Schema.Finite>;
|
|
1824
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
1825
|
+
readonly totals: Schema.Struct<{
|
|
1826
|
+
readonly blocked: Schema.Finite;
|
|
1827
|
+
readonly allowed: Schema.Finite;
|
|
1828
|
+
}>;
|
|
1829
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
1830
|
+
readonly ts: Schema.String;
|
|
1831
|
+
/** Blocked by the per-client floor. */
|
|
1832
|
+
readonly blocked: Schema.Finite;
|
|
1833
|
+
/** Let through (every request the web ACL saw and allowed). */
|
|
1834
|
+
readonly allowed: Schema.Finite;
|
|
1835
|
+
}>>;
|
|
1836
|
+
/** Newest first. WAF samples a share of requests, so counts here undercount. */
|
|
1837
|
+
readonly samples: Schema.$Array<Schema.Struct<{
|
|
1838
|
+
readonly at: Schema.String;
|
|
1839
|
+
readonly host: Schema.String;
|
|
1840
|
+
readonly client: Schema.String;
|
|
1841
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1842
|
+
readonly method: Schema.String;
|
|
1843
|
+
readonly path: Schema.String;
|
|
1844
|
+
}>>;
|
|
1845
|
+
}>;
|
|
1846
|
+
export type EdgeFloorResponse = typeof EdgeFloorResponse.Type;
|
|
1847
|
+
/** Body of every API error, whatever the status. */
|
|
1848
|
+
export declare const ApiErrorBody: Schema.Struct<{
|
|
1849
|
+
readonly error: Schema.Struct<{
|
|
1850
|
+
readonly code: Schema.String;
|
|
1851
|
+
readonly message: Schema.String;
|
|
1852
|
+
}>;
|
|
1853
|
+
}>;
|
|
1854
|
+
export type ApiErrorBody = typeof ApiErrorBody.Type;
|