@ericminassian/platform-core 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +1225 -45
- package/dist/api.js +471 -13
- package/dist/api.js.map +1 -1
- package/dist/auth.js +5 -2
- 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 +62 -12
- 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 +64 -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 +18 -0
- package/dist/config.js +9 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +56 -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/explore.d.ts +365 -0
- package/dist/explore.js +440 -0
- package/dist/explore.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 +7 -0
- package/dist/index.js +7 -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 +270 -29
- package/dist/manifest.js +190 -22
- package/dist/manifest.js.map +1 -1
- package/dist/naming.d.ts +83 -7
- package/dist/naming.js +89 -8
- package/dist/naming.js.map +1 -1
- package/dist/platform-api.d.ts +5897 -1672
- package/dist/platform-api.js +218 -8
- package/dist/platform-api.js.map +1 -1
- 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 +2 -0
- package/dist/router/decide.js +38 -6
- 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 +65 -0
- package/dist/storage.js +122 -0
- package/dist/storage.js.map +1 -0
- package/dist/telemetry.d.ts +135 -20
- package/dist/telemetry.js +108 -22
- 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 +19 -7
- package/src/api.ts +564 -15
- package/src/auth.ts +6 -2
- package/src/base64url.ts +13 -0
- package/src/bindings.ts +67 -6
- package/src/cloudfront-function.ts +64 -2
- package/src/compute.ts +86 -0
- package/src/config.ts +31 -1
- package/src/constants.ts +64 -1
- package/src/email.ts +168 -0
- package/src/explore.ts +504 -0
- package/src/fingerprint.ts +20 -0
- package/src/index.ts +7 -0
- package/src/jobs.ts +281 -0
- package/src/manifest.ts +415 -45
- package/src/naming.ts +93 -9
- package/src/platform-api.ts +249 -8
- package/src/realtime.ts +298 -0
- package/src/router/decide.d.ts +2 -0
- package/src/router/decide.js +38 -6
- package/src/router.ts +33 -13
- package/src/runtime-config.ts +70 -0
- package/src/storage.ts +131 -0
- package/src/telemetry.ts +115 -22
- package/src/web-compute.ts +342 -0
package/dist/api.d.ts
CHANGED
|
@@ -21,6 +21,30 @@ export declare const AppRecord: Schema.Struct<{
|
|
|
21
21
|
export type AppRecord = typeof AppRecord.Type;
|
|
22
22
|
export declare const StageStatus: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
23
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;
|
|
24
48
|
export declare const StageRecord: Schema.Struct<{
|
|
25
49
|
readonly app: Schema.String;
|
|
26
50
|
readonly stage: Schema.String;
|
|
@@ -30,9 +54,32 @@ export declare const StageRecord: Schema.Struct<{
|
|
|
30
54
|
readonly preview: Schema.Boolean;
|
|
31
55
|
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
32
56
|
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
33
|
-
/** Web Function revision ids,
|
|
57
|
+
/** The server builds: Web Function revision ids, or request-mode function versions. */
|
|
34
58
|
readonly currentRevision: Schema.optional<Schema.String>;
|
|
35
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
|
+
}>>;
|
|
36
83
|
readonly createdAt: Schema.String;
|
|
37
84
|
readonly updatedAt: Schema.String;
|
|
38
85
|
}>;
|
|
@@ -52,11 +99,13 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
52
99
|
readonly app: Schema.String;
|
|
53
100
|
readonly stage: Schema.String;
|
|
54
101
|
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
55
|
-
/** GitHub username,
|
|
102
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
56
103
|
readonly actor: Schema.String;
|
|
57
104
|
readonly commit: Schema.optional<Schema.String>;
|
|
58
105
|
readonly ref: Schema.optional<Schema.String>;
|
|
59
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>;
|
|
60
109
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
61
110
|
readonly name: Schema.String;
|
|
62
111
|
readonly description: Schema.optional<Schema.String>;
|
|
@@ -72,6 +121,9 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
72
121
|
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
73
122
|
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
74
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>;
|
|
75
127
|
}>>;
|
|
76
128
|
readonly worker: Schema.optional<Schema.Struct<{
|
|
77
129
|
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
@@ -84,20 +136,54 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
84
136
|
}>;
|
|
85
137
|
readonly db: Schema.Boolean;
|
|
86
138
|
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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>;
|
|
91
143
|
}>>;
|
|
92
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>;
|
|
93
150
|
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
151
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
152
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
94
153
|
readonly schedule: Schema.String;
|
|
95
154
|
readonly timezone: Schema.optional<Schema.String>;
|
|
155
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
96
156
|
}>>;
|
|
97
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>;
|
|
98
162
|
readonly secrets: Schema.$Array<Schema.String>;
|
|
99
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>;
|
|
100
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>;
|
|
101
187
|
readonly url: Schema.optional<Schema.String>;
|
|
102
188
|
readonly error: Schema.optional<Schema.String>;
|
|
103
189
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
@@ -172,9 +258,32 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
172
258
|
readonly preview: Schema.Boolean;
|
|
173
259
|
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
174
260
|
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
175
|
-
/** Web Function revision ids,
|
|
261
|
+
/** The server builds: Web Function revision ids, or request-mode function versions. */
|
|
176
262
|
readonly currentRevision: Schema.optional<Schema.String>;
|
|
177
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
|
+
}>>;
|
|
178
287
|
readonly createdAt: Schema.String;
|
|
179
288
|
readonly updatedAt: Schema.String;
|
|
180
289
|
}>>;
|
|
@@ -191,11 +300,13 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
191
300
|
readonly app: Schema.String;
|
|
192
301
|
readonly stage: Schema.String;
|
|
193
302
|
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
194
|
-
/** GitHub username,
|
|
303
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
195
304
|
readonly actor: Schema.String;
|
|
196
305
|
readonly commit: Schema.optional<Schema.String>;
|
|
197
306
|
readonly ref: Schema.optional<Schema.String>;
|
|
198
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>;
|
|
199
310
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
200
311
|
readonly name: Schema.String;
|
|
201
312
|
readonly description: Schema.optional<Schema.String>;
|
|
@@ -211,6 +322,9 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
211
322
|
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
212
323
|
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
213
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>;
|
|
214
328
|
}>>;
|
|
215
329
|
readonly worker: Schema.optional<Schema.Struct<{
|
|
216
330
|
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
@@ -223,20 +337,54 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
223
337
|
}>;
|
|
224
338
|
readonly db: Schema.Boolean;
|
|
225
339
|
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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>;
|
|
230
344
|
}>>;
|
|
231
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>;
|
|
232
351
|
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
352
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
353
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
233
354
|
readonly schedule: Schema.String;
|
|
234
355
|
readonly timezone: Schema.optional<Schema.String>;
|
|
356
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
235
357
|
}>>;
|
|
236
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>;
|
|
237
363
|
readonly secrets: Schema.$Array<Schema.String>;
|
|
238
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>;
|
|
239
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>;
|
|
240
388
|
readonly url: Schema.optional<Schema.String>;
|
|
241
389
|
readonly error: Schema.optional<Schema.String>;
|
|
242
390
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
@@ -250,9 +398,17 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
250
398
|
readonly startedAt: Schema.optional<Schema.String>;
|
|
251
399
|
readonly finishedAt: Schema.optional<Schema.String>;
|
|
252
400
|
}>>;
|
|
401
|
+
/** Prod's requests in each of the last 24 hours, oldest first (absent without a prod stage). */
|
|
402
|
+
readonly traffic: Schema.optional<Schema.$Array<Schema.Finite>>;
|
|
403
|
+
/** The app's alert rules on every stage: how many there are and how many are firing. */
|
|
404
|
+
readonly alerts: Schema.optional<Schema.Struct<{
|
|
405
|
+
readonly total: Schema.Finite;
|
|
406
|
+
readonly alarm: Schema.Finite;
|
|
407
|
+
}>>;
|
|
253
408
|
}>;
|
|
254
409
|
export type AppSummary = typeof AppSummary.Type;
|
|
255
|
-
|
|
410
|
+
/** `services.zip` holds `<service>/index.mjs` (+ `.map`) for each long-running service. */
|
|
411
|
+
export declare const ArtifactFile: Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip", "services.zip"]>;
|
|
256
412
|
export type ArtifactFile = typeof ArtifactFile.Type;
|
|
257
413
|
export declare const PresignedPost: Schema.Struct<{
|
|
258
414
|
readonly url: Schema.String;
|
|
@@ -267,10 +423,12 @@ export declare const CreateDeploymentRequest: Schema.Struct<{
|
|
|
267
423
|
*/
|
|
268
424
|
readonly manifest: Schema.Unknown;
|
|
269
425
|
/** Which artifacts the CLI will upload (manifest.json is always uploaded). */
|
|
270
|
-
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>>>;
|
|
426
|
+
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip", "services.zip"]>>>;
|
|
271
427
|
readonly commit: Schema.optional<Schema.String>;
|
|
272
428
|
readonly ref: Schema.optional<Schema.String>;
|
|
273
429
|
readonly message: Schema.optional<Schema.String>;
|
|
430
|
+
/** The `@ericminassian/platform` version the bundles were built with (`MIN_SDK_VERSION`). */
|
|
431
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
274
432
|
}>;
|
|
275
433
|
export type CreateDeploymentRequest = typeof CreateDeploymentRequest.Encoded;
|
|
276
434
|
export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
@@ -279,11 +437,13 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
279
437
|
readonly app: Schema.String;
|
|
280
438
|
readonly stage: Schema.String;
|
|
281
439
|
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
282
|
-
/** GitHub username,
|
|
440
|
+
/** GitHub username, `ci:<repo>` for OIDC deploys, or `platform` for a compute switch. */
|
|
283
441
|
readonly actor: Schema.String;
|
|
284
442
|
readonly commit: Schema.optional<Schema.String>;
|
|
285
443
|
readonly ref: Schema.optional<Schema.String>;
|
|
286
444
|
readonly message: Schema.optional<Schema.String>;
|
|
445
|
+
/** The `@ericminassian/platform` version its bundles were built with; absent before 0.4.0. */
|
|
446
|
+
readonly sdk: Schema.optional<Schema.String>;
|
|
287
447
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
288
448
|
readonly name: Schema.String;
|
|
289
449
|
readonly description: Schema.optional<Schema.String>;
|
|
@@ -299,6 +459,9 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
299
459
|
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
300
460
|
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
301
461
|
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
462
|
+
readonly compute: Schema.withDecodingDefault<Schema.Literals<readonly ["auto", "request", "instance"]>, never>;
|
|
463
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
464
|
+
readonly maxEnvironments: Schema.optional<Schema.Int>;
|
|
302
465
|
}>>;
|
|
303
466
|
readonly worker: Schema.optional<Schema.Struct<{
|
|
304
467
|
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
@@ -311,20 +474,54 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
311
474
|
}>;
|
|
312
475
|
readonly db: Schema.Boolean;
|
|
313
476
|
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
477
|
+
timeoutSeconds: Schema.optional<Schema.Int>;
|
|
478
|
+
memoryMb: Schema.optional<Schema.Int>;
|
|
479
|
+
maxAttempts: Schema.withDecodingDefault<Schema.Int, never>;
|
|
480
|
+
concurrency: Schema.optional<Schema.Int>;
|
|
318
481
|
}>>;
|
|
319
482
|
readonly events: Schema.$Array<Schema.String>;
|
|
483
|
+
readonly eventOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
484
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
485
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
486
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
487
|
+
}>>, never>;
|
|
320
488
|
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
489
|
+
readonly timeoutSeconds: Schema.optional<Schema.Int>;
|
|
490
|
+
readonly memoryMb: Schema.optional<Schema.Int>;
|
|
321
491
|
readonly schedule: Schema.String;
|
|
322
492
|
readonly timezone: Schema.optional<Schema.String>;
|
|
493
|
+
readonly maxAttempts: Schema.optional<Schema.Int>;
|
|
323
494
|
}>>;
|
|
324
495
|
readonly storage: Schema.$Array<Schema.String>;
|
|
496
|
+
readonly storageOptions: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
497
|
+
readonly public: Schema.Boolean;
|
|
498
|
+
readonly expireAfterDays: Schema.optional<Schema.Finite>;
|
|
499
|
+
}>>, never>;
|
|
325
500
|
readonly secrets: Schema.$Array<Schema.String>;
|
|
326
501
|
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
502
|
+
readonly realtime: Schema.optional<Schema.Struct<{
|
|
503
|
+
readonly subscribe: Schema.Literals<readonly ["public", "signed-in"]>;
|
|
504
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
505
|
+
}>>;
|
|
506
|
+
readonly email: Schema.optional<Schema.Struct<{
|
|
507
|
+
readonly name: Schema.optional<Schema.String>;
|
|
508
|
+
readonly dailyLimit: Schema.Finite;
|
|
509
|
+
}>>;
|
|
510
|
+
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
511
|
+
readonly entry: Schema.String;
|
|
512
|
+
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
513
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
514
|
+
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
515
|
+
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
516
|
+
}>>, never>;
|
|
327
517
|
}>>;
|
|
518
|
+
/** How it runs the server. */
|
|
519
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
520
|
+
/**
|
|
521
|
+
* A switch of the server's mode that the platform made (actor `platform`):
|
|
522
|
+
* the deployment whose build this one runs again, in `compute`.
|
|
523
|
+
*/
|
|
524
|
+
readonly computeSwitchOf: Schema.optional<Schema.String>;
|
|
328
525
|
readonly url: Schema.optional<Schema.String>;
|
|
329
526
|
readonly error: Schema.optional<Schema.String>;
|
|
330
527
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
@@ -356,6 +553,10 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
356
553
|
readonly url: Schema.String;
|
|
357
554
|
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
358
555
|
}>>;
|
|
556
|
+
readonly 'services.zip': Schema.optional<Schema.Struct<{
|
|
557
|
+
readonly url: Schema.String;
|
|
558
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
559
|
+
}>>;
|
|
359
560
|
}>;
|
|
360
561
|
}>;
|
|
361
562
|
export type CreateDeploymentResponse = typeof CreateDeploymentResponse.Type;
|
|
@@ -425,10 +626,10 @@ export declare const RouteStats: Schema.Struct<{
|
|
|
425
626
|
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
426
627
|
}>;
|
|
427
628
|
export type RouteStats = typeof RouteStats.Type;
|
|
428
|
-
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
629
|
+
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
429
630
|
export type JobKind = typeof JobKind.Type;
|
|
430
631
|
export declare const JobStats: Schema.Struct<{
|
|
431
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
632
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
432
633
|
readonly name: Schema.String;
|
|
433
634
|
readonly ok: Schema.Finite;
|
|
434
635
|
readonly error: Schema.Finite;
|
|
@@ -438,7 +639,7 @@ export declare const JobStats: Schema.Struct<{
|
|
|
438
639
|
export type JobStats = typeof JobStats.Type;
|
|
439
640
|
export declare const JobsResponse: Schema.Struct<{
|
|
440
641
|
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
441
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
642
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
442
643
|
readonly name: Schema.String;
|
|
443
644
|
readonly ok: Schema.Finite;
|
|
444
645
|
readonly error: Schema.Finite;
|
|
@@ -451,14 +652,272 @@ export declare const JobsResponse: Schema.Struct<{
|
|
|
451
652
|
}>>;
|
|
452
653
|
}>;
|
|
453
654
|
export type JobsResponse = typeof JobsResponse.Type;
|
|
655
|
+
/** A queue's jobs that aren't running: waiting for their time, and given up on. */
|
|
454
656
|
export declare const QueueStats: Schema.Struct<{
|
|
455
657
|
readonly name: Schema.String;
|
|
456
|
-
|
|
457
|
-
readonly
|
|
658
|
+
/** Retries and delayed sends scheduled for later. */
|
|
659
|
+
readonly scheduled: Schema.Finite;
|
|
660
|
+
/** Its messages in the stage's dead-letter queue (of those `deadLetters` reads). */
|
|
458
661
|
readonly deadLetter: Schema.Finite;
|
|
459
|
-
readonly oldestAgeSeconds: Schema.NullOr<Schema.Finite>;
|
|
460
662
|
}>;
|
|
461
663
|
export type QueueStats = typeof QueueStats.Type;
|
|
664
|
+
/** One message in the stage's dead-letter queue (core `readDeadLetter`). */
|
|
665
|
+
export declare const DeadLetterItem: Schema.Struct<{
|
|
666
|
+
/** The SQS message id: what redrive and discard take. */
|
|
667
|
+
readonly id: Schema.String;
|
|
668
|
+
/** `unknown`: a message the platform didn't write; it can only be discarded. */
|
|
669
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "unknown"]>;
|
|
670
|
+
readonly name: Schema.String;
|
|
671
|
+
readonly attempts: Schema.NullOr<Schema.Finite>;
|
|
672
|
+
readonly error: Schema.Struct<{
|
|
673
|
+
readonly name: Schema.String;
|
|
674
|
+
readonly message: Schema.String;
|
|
675
|
+
}>;
|
|
676
|
+
/** ISO time, when the writer recorded one. */
|
|
677
|
+
readonly failedAt: Schema.NullOr<Schema.String>;
|
|
678
|
+
/** Who gave up on it: the SDK, Lambda, Scheduler or EventBridge. */
|
|
679
|
+
readonly source: Schema.Literals<readonly ["sdk", "lambda", "scheduler", "eventbridge", "unknown"]>;
|
|
680
|
+
/** The message body, event detail or invoke payload, as JSON, cut to a few hundred chars. */
|
|
681
|
+
readonly preview: Schema.String;
|
|
682
|
+
}>;
|
|
683
|
+
export type DeadLetterItem = typeof DeadLetterItem.Type;
|
|
684
|
+
export declare const DeadLettersResponse: Schema.Struct<{
|
|
685
|
+
/** Messages in the queue (SQS's approximate count). */
|
|
686
|
+
readonly total: Schema.Finite;
|
|
687
|
+
/** Up to `DEAD_LETTERS_READ` of them. */
|
|
688
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
689
|
+
/** The SQS message id: what redrive and discard take. */
|
|
690
|
+
readonly id: Schema.String;
|
|
691
|
+
/** `unknown`: a message the platform didn't write; it can only be discarded. */
|
|
692
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "unknown"]>;
|
|
693
|
+
readonly name: Schema.String;
|
|
694
|
+
readonly attempts: Schema.NullOr<Schema.Finite>;
|
|
695
|
+
readonly error: Schema.Struct<{
|
|
696
|
+
readonly name: Schema.String;
|
|
697
|
+
readonly message: Schema.String;
|
|
698
|
+
}>;
|
|
699
|
+
/** ISO time, when the writer recorded one. */
|
|
700
|
+
readonly failedAt: Schema.NullOr<Schema.String>;
|
|
701
|
+
/** Who gave up on it: the SDK, Lambda, Scheduler or EventBridge. */
|
|
702
|
+
readonly source: Schema.Literals<readonly ["sdk", "lambda", "scheduler", "eventbridge", "unknown"]>;
|
|
703
|
+
/** The message body, event detail or invoke payload, as JSON, cut to a few hundred chars. */
|
|
704
|
+
readonly preview: Schema.String;
|
|
705
|
+
}>>;
|
|
706
|
+
}>;
|
|
707
|
+
export type DeadLettersResponse = typeof DeadLettersResponse.Type;
|
|
708
|
+
/** How many dead letters the API reads for a list. */
|
|
709
|
+
export declare const DEAD_LETTERS_READ = 100;
|
|
710
|
+
/** Redrive or discard: the given dead letters, or (no `ids`) all of them. */
|
|
711
|
+
export declare const DeadLetterAction: Schema.Struct<{
|
|
712
|
+
readonly ids: Schema.optional<Schema.$Array<Schema.String>>;
|
|
713
|
+
}>;
|
|
714
|
+
export type DeadLetterAction = typeof DeadLetterAction.Encoded;
|
|
715
|
+
export declare const DeadLetterActionResponse: Schema.Struct<{
|
|
716
|
+
readonly count: Schema.Finite;
|
|
717
|
+
}>;
|
|
718
|
+
export type DeadLetterActionResponse = typeof DeadLetterActionResponse.Type;
|
|
719
|
+
/** Per-namespace AppSync Events counts in one bucket (CloudWatch `Sum`s). */
|
|
720
|
+
export declare const RealtimePoint: Schema.Struct<{
|
|
721
|
+
readonly ts: Schema.String;
|
|
722
|
+
/** Events published (`InboundMessages`; each 5 KB counts once). */
|
|
723
|
+
readonly events: Schema.Finite;
|
|
724
|
+
/** Successful publish requests (up to 5 events each). */
|
|
725
|
+
readonly publishes: Schema.Finite;
|
|
726
|
+
/** Successful subscribes. */
|
|
727
|
+
readonly subscribes: Schema.Finite;
|
|
728
|
+
/** Publishes and subscribes refused or failed (client and server errors). */
|
|
729
|
+
readonly errors: Schema.Finite;
|
|
730
|
+
}>;
|
|
731
|
+
export type RealtimePoint = typeof RealtimePoint.Type;
|
|
732
|
+
/**
|
|
733
|
+
* A stage's realtime activity. AppSync reports deliveries (`OutboundMessages`)
|
|
734
|
+
* and connections only for the whole Event API, not per namespace, so they
|
|
735
|
+
* can't be shown per app.
|
|
736
|
+
*/
|
|
737
|
+
export declare const RealtimeStatsResponse: Schema.Struct<{
|
|
738
|
+
readonly app: Schema.String;
|
|
739
|
+
readonly stage: Schema.String;
|
|
740
|
+
/** False when the live deployment declares no `realtime`; the rest is then empty. */
|
|
741
|
+
readonly enabled: Schema.Boolean;
|
|
742
|
+
readonly subscribe: Schema.optional<Schema.Literals<readonly ["public", "signed-in"]>>;
|
|
743
|
+
readonly channels: Schema.$Array<Schema.String>;
|
|
744
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
745
|
+
readonly totals: Schema.Struct<{
|
|
746
|
+
readonly events: Schema.Finite;
|
|
747
|
+
readonly publishes: Schema.Finite;
|
|
748
|
+
readonly subscribes: Schema.Finite;
|
|
749
|
+
readonly errors: Schema.Finite;
|
|
750
|
+
}>;
|
|
751
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
752
|
+
readonly ts: Schema.String;
|
|
753
|
+
/** Events published (`InboundMessages`; each 5 KB counts once). */
|
|
754
|
+
readonly events: Schema.Finite;
|
|
755
|
+
/** Successful publish requests (up to 5 events each). */
|
|
756
|
+
readonly publishes: Schema.Finite;
|
|
757
|
+
/** Successful subscribes. */
|
|
758
|
+
readonly subscribes: Schema.Finite;
|
|
759
|
+
/** Publishes and subscribes refused or failed (client and server errors). */
|
|
760
|
+
readonly errors: Schema.Finite;
|
|
761
|
+
}>>;
|
|
762
|
+
}>;
|
|
763
|
+
export type RealtimeStatsResponse = typeof RealtimeStatsResponse.Type;
|
|
764
|
+
/** One custom metric (`Metrics.count`/`value`) in one bucket: how many values, and their sum. */
|
|
765
|
+
export declare const CustomMetricPoint: Schema.Struct<{
|
|
766
|
+
readonly ts: Schema.String;
|
|
767
|
+
readonly count: Schema.Finite;
|
|
768
|
+
readonly sum: Schema.Finite;
|
|
769
|
+
}>;
|
|
770
|
+
export type CustomMetricPoint = typeof CustomMetricPoint.Type;
|
|
771
|
+
/**
|
|
772
|
+
* A custom metric over the range. `Metrics.count(name, n)` records `n` with
|
|
773
|
+
* unit `count`, so `sum` is the total; for `Metrics.value`, `sum / count` is
|
|
774
|
+
* the average.
|
|
775
|
+
*/
|
|
776
|
+
export declare const CustomMetricStats: Schema.Struct<{
|
|
777
|
+
readonly name: Schema.String;
|
|
778
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
779
|
+
readonly count: Schema.Finite;
|
|
780
|
+
readonly sum: Schema.Finite;
|
|
781
|
+
/** One per bucket in the range, zero-filled. */
|
|
782
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
783
|
+
readonly ts: Schema.String;
|
|
784
|
+
readonly count: Schema.Finite;
|
|
785
|
+
readonly sum: Schema.Finite;
|
|
786
|
+
}>>;
|
|
787
|
+
}>;
|
|
788
|
+
export type CustomMetricStats = typeof CustomMetricStats.Type;
|
|
789
|
+
/** A stage's custom metrics recorded in the range, by name. */
|
|
790
|
+
export declare const CustomMetricsResponse: Schema.Struct<{
|
|
791
|
+
readonly app: Schema.String;
|
|
792
|
+
readonly stage: Schema.String;
|
|
793
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
794
|
+
readonly metrics: Schema.$Array<Schema.Struct<{
|
|
795
|
+
readonly name: Schema.String;
|
|
796
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
797
|
+
readonly count: Schema.Finite;
|
|
798
|
+
readonly sum: Schema.Finite;
|
|
799
|
+
/** One per bucket in the range, zero-filled. */
|
|
800
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
801
|
+
readonly ts: Schema.String;
|
|
802
|
+
readonly count: Schema.Finite;
|
|
803
|
+
readonly sum: Schema.Finite;
|
|
804
|
+
}>>;
|
|
805
|
+
}>>;
|
|
806
|
+
}>;
|
|
807
|
+
export type CustomMetricsResponse = typeof CustomMetricsResponse.Type;
|
|
808
|
+
/** One rate limit's checks in one bucket. */
|
|
809
|
+
export declare const LimitPoint: Schema.Struct<{
|
|
810
|
+
readonly ts: Schema.String;
|
|
811
|
+
readonly allowed: Schema.Finite;
|
|
812
|
+
readonly denied: Schema.Finite;
|
|
813
|
+
}>;
|
|
814
|
+
export type LimitPoint = typeof LimitPoint.Type;
|
|
815
|
+
/** A rate limit's checks over the range, by its name in `RateLimits`. */
|
|
816
|
+
export declare const LimitStats: Schema.Struct<{
|
|
817
|
+
readonly name: Schema.String;
|
|
818
|
+
readonly allowed: Schema.Finite;
|
|
819
|
+
readonly denied: Schema.Finite;
|
|
820
|
+
/** One per bucket in the range, zero-filled. */
|
|
821
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
822
|
+
readonly ts: Schema.String;
|
|
823
|
+
readonly allowed: Schema.Finite;
|
|
824
|
+
readonly denied: Schema.Finite;
|
|
825
|
+
}>>;
|
|
826
|
+
}>;
|
|
827
|
+
export type LimitStats = typeof LimitStats.Type;
|
|
828
|
+
/** A stage's rate limits that were checked in the range, most denied first. */
|
|
829
|
+
export declare const LimitsResponse: Schema.Struct<{
|
|
830
|
+
readonly app: Schema.String;
|
|
831
|
+
readonly stage: Schema.String;
|
|
832
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
833
|
+
readonly limits: Schema.$Array<Schema.Struct<{
|
|
834
|
+
readonly name: Schema.String;
|
|
835
|
+
readonly allowed: Schema.Finite;
|
|
836
|
+
readonly denied: Schema.Finite;
|
|
837
|
+
/** One per bucket in the range, zero-filled. */
|
|
838
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
839
|
+
readonly ts: Schema.String;
|
|
840
|
+
readonly allowed: Schema.Finite;
|
|
841
|
+
readonly denied: Schema.Finite;
|
|
842
|
+
}>>;
|
|
843
|
+
}>>;
|
|
844
|
+
}>;
|
|
845
|
+
export type LimitsResponse = typeof LimitsResponse.Type;
|
|
846
|
+
/** Per-tenant SES counts in one bucket (CloudWatch `Sum`s of `AWS/SES` by tenant). */
|
|
847
|
+
export declare const EmailPoint: Schema.Struct<{
|
|
848
|
+
readonly ts: Schema.String;
|
|
849
|
+
readonly sends: Schema.Finite;
|
|
850
|
+
readonly deliveries: Schema.Finite;
|
|
851
|
+
readonly bounces: Schema.Finite;
|
|
852
|
+
readonly complaints: Schema.Finite;
|
|
853
|
+
}>;
|
|
854
|
+
export type EmailPoint = typeof EmailPoint.Type;
|
|
855
|
+
/**
|
|
856
|
+
* Whether SES lets a stage send. `paused` comes with who paused it: `policy`
|
|
857
|
+
* (the tenant's reputation policy, after bad bounce or complaint rates),
|
|
858
|
+
* `manual` (someone changed it in SES), or `aws` (only AWS Support can lift
|
|
859
|
+
* that one).
|
|
860
|
+
*/
|
|
861
|
+
export declare const EmailSending: Schema.Struct<{
|
|
862
|
+
readonly status: Schema.Literals<readonly ["enabled", "paused"]>;
|
|
863
|
+
readonly pausedBy: Schema.optional<Schema.Literals<readonly ["policy", "manual", "aws"]>>;
|
|
864
|
+
/** SES's reason, when paused. */
|
|
865
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
866
|
+
readonly since: Schema.optional<Schema.String>;
|
|
867
|
+
}>;
|
|
868
|
+
export type EmailSending = typeof EmailSending.Type;
|
|
869
|
+
/** A stage's email: its sender, whether it can send, today's usage and SES's counts over the range. */
|
|
870
|
+
export declare const EmailStatsResponse: Schema.Struct<{
|
|
871
|
+
readonly app: Schema.String;
|
|
872
|
+
readonly stage: Schema.String;
|
|
873
|
+
/** False when the live deployment declares no `email`; the rest is then empty. */
|
|
874
|
+
readonly enabled: Schema.Boolean;
|
|
875
|
+
/** `"Todo" <todo@mail…>`. */
|
|
876
|
+
readonly from: Schema.optional<Schema.String>;
|
|
877
|
+
readonly sending: Schema.optional<Schema.Struct<{
|
|
878
|
+
readonly status: Schema.Literals<readonly ["enabled", "paused"]>;
|
|
879
|
+
readonly pausedBy: Schema.optional<Schema.Literals<readonly ["policy", "manual", "aws"]>>;
|
|
880
|
+
/** SES's reason, when paused. */
|
|
881
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
882
|
+
readonly since: Schema.optional<Schema.String>;
|
|
883
|
+
}>>;
|
|
884
|
+
/** Recipients sent today (UTC) and the stage's daily limit. */
|
|
885
|
+
readonly today: Schema.optional<Schema.Struct<{
|
|
886
|
+
readonly sent: Schema.Finite;
|
|
887
|
+
readonly limit: Schema.Finite;
|
|
888
|
+
}>>;
|
|
889
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
890
|
+
readonly totals: Schema.Struct<{
|
|
891
|
+
readonly sends: Schema.Finite;
|
|
892
|
+
readonly deliveries: Schema.Finite;
|
|
893
|
+
readonly bounces: Schema.Finite;
|
|
894
|
+
readonly complaints: Schema.Finite;
|
|
895
|
+
}>;
|
|
896
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
897
|
+
readonly ts: Schema.String;
|
|
898
|
+
readonly sends: Schema.Finite;
|
|
899
|
+
readonly deliveries: Schema.Finite;
|
|
900
|
+
readonly bounces: Schema.Finite;
|
|
901
|
+
readonly complaints: Schema.Finite;
|
|
902
|
+
}>>;
|
|
903
|
+
}>;
|
|
904
|
+
export type EmailStatsResponse = typeof EmailStatsResponse.Type;
|
|
905
|
+
/** An address on a stage's suppression list: SES no longer sends to it from this stage. */
|
|
906
|
+
export declare const SuppressedAddress: Schema.Struct<{
|
|
907
|
+
readonly address: Schema.String;
|
|
908
|
+
readonly reason: Schema.Literals<readonly ["bounce", "complaint"]>;
|
|
909
|
+
readonly since: Schema.String;
|
|
910
|
+
}>;
|
|
911
|
+
export type SuppressedAddress = typeof SuppressedAddress.Type;
|
|
912
|
+
export declare const SuppressedResponse: Schema.Struct<{
|
|
913
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
914
|
+
readonly address: Schema.String;
|
|
915
|
+
readonly reason: Schema.Literals<readonly ["bounce", "complaint"]>;
|
|
916
|
+
readonly since: Schema.String;
|
|
917
|
+
}>>;
|
|
918
|
+
readonly next: Schema.optional<Schema.String>;
|
|
919
|
+
}>;
|
|
920
|
+
export type SuppressedResponse = typeof SuppressedResponse.Type;
|
|
462
921
|
export declare const ErrorStatus: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
463
922
|
export type ErrorStatus = typeof ErrorStatus.Type;
|
|
464
923
|
export declare const ErrorGroup: Schema.Struct<{
|
|
@@ -484,9 +943,12 @@ export declare const UpdateErrorRequest: Schema.Struct<{
|
|
|
484
943
|
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
485
944
|
}>;
|
|
486
945
|
export type UpdateErrorRequest = typeof UpdateErrorRequest.Type;
|
|
946
|
+
/** Log stream of a line: `web`, `worker`, or `service:<name>` for a long-running service. */
|
|
947
|
+
export declare const LogStream: Schema.String;
|
|
948
|
+
export type LogStream = typeof LogStream.Type;
|
|
487
949
|
export declare const LogLine: Schema.Struct<{
|
|
488
950
|
readonly ts: Schema.String;
|
|
489
|
-
readonly stream: Schema.
|
|
951
|
+
readonly stream: Schema.String;
|
|
490
952
|
readonly level: Schema.optional<Schema.String>;
|
|
491
953
|
readonly message: Schema.String;
|
|
492
954
|
readonly trace: Schema.optional<Schema.String>;
|
|
@@ -499,10 +961,12 @@ export declare const LogLine: Schema.Struct<{
|
|
|
499
961
|
readonly trace: Schema.optional<Schema.String>;
|
|
500
962
|
readonly span: Schema.optional<Schema.String>;
|
|
501
963
|
readonly parent: Schema.optional<Schema.String>;
|
|
964
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
965
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
502
966
|
readonly t: Schema.Literal<"req">;
|
|
503
967
|
readonly method: Schema.String;
|
|
504
968
|
readonly route: Schema.String;
|
|
505
|
-
readonly path: Schema.String
|
|
969
|
+
readonly path: Schema.optional<Schema.String>;
|
|
506
970
|
readonly status: Schema.Finite;
|
|
507
971
|
readonly dur: Schema.Finite;
|
|
508
972
|
readonly bytes: Schema.optional<Schema.Finite>;
|
|
@@ -519,7 +983,7 @@ export declare const LogLine: Schema.Struct<{
|
|
|
519
983
|
readonly span: Schema.optional<Schema.String>;
|
|
520
984
|
readonly parent: Schema.optional<Schema.String>;
|
|
521
985
|
readonly t: Schema.Literal<"err">;
|
|
522
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
986
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
523
987
|
readonly name: Schema.String;
|
|
524
988
|
readonly message: Schema.String;
|
|
525
989
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -535,12 +999,15 @@ export declare const LogLine: Schema.Struct<{
|
|
|
535
999
|
readonly trace: Schema.optional<Schema.String>;
|
|
536
1000
|
readonly span: Schema.optional<Schema.String>;
|
|
537
1001
|
readonly parent: Schema.optional<Schema.String>;
|
|
1002
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1003
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
538
1004
|
readonly t: Schema.Literal<"job">;
|
|
539
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1005
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
540
1006
|
readonly name: Schema.String;
|
|
541
1007
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
542
1008
|
readonly dur: Schema.Finite;
|
|
543
1009
|
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1010
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
544
1011
|
}>, Schema.Struct<{
|
|
545
1012
|
readonly _p: Schema.Literal<1>;
|
|
546
1013
|
readonly ts: Schema.Finite;
|
|
@@ -581,6 +1048,18 @@ export declare const LogLine: Schema.Struct<{
|
|
|
581
1048
|
readonly name: Schema.String;
|
|
582
1049
|
readonly value: Schema.Finite;
|
|
583
1050
|
readonly unit: Schema.optional<Schema.String>;
|
|
1051
|
+
}>, Schema.Struct<{
|
|
1052
|
+
readonly _p: Schema.Literal<1>;
|
|
1053
|
+
readonly ts: Schema.Finite;
|
|
1054
|
+
readonly app: Schema.String;
|
|
1055
|
+
readonly stage: Schema.String;
|
|
1056
|
+
readonly rev: Schema.String;
|
|
1057
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1058
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1059
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1060
|
+
readonly t: Schema.Literal<"limit">;
|
|
1061
|
+
readonly name: Schema.String;
|
|
1062
|
+
readonly ok: Schema.Boolean;
|
|
584
1063
|
}>, Schema.Struct<{
|
|
585
1064
|
readonly _p: Schema.Literal<1>;
|
|
586
1065
|
readonly ts: Schema.Finite;
|
|
@@ -592,7 +1071,10 @@ export declare const LogLine: Schema.Struct<{
|
|
|
592
1071
|
readonly parent: Schema.optional<Schema.String>;
|
|
593
1072
|
readonly t: Schema.Literal<"env">;
|
|
594
1073
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
595
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1074
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1075
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1076
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1077
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
596
1078
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
597
1079
|
}>]>>;
|
|
598
1080
|
}>;
|
|
@@ -600,7 +1082,7 @@ export type LogLine = typeof LogLine.Type;
|
|
|
600
1082
|
export declare const LogsResponse: Schema.Struct<{
|
|
601
1083
|
readonly lines: Schema.$Array<Schema.Struct<{
|
|
602
1084
|
readonly ts: Schema.String;
|
|
603
|
-
readonly stream: Schema.
|
|
1085
|
+
readonly stream: Schema.String;
|
|
604
1086
|
readonly level: Schema.optional<Schema.String>;
|
|
605
1087
|
readonly message: Schema.String;
|
|
606
1088
|
readonly trace: Schema.optional<Schema.String>;
|
|
@@ -613,10 +1095,12 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
613
1095
|
readonly trace: Schema.optional<Schema.String>;
|
|
614
1096
|
readonly span: Schema.optional<Schema.String>;
|
|
615
1097
|
readonly parent: Schema.optional<Schema.String>;
|
|
1098
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1099
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
616
1100
|
readonly t: Schema.Literal<"req">;
|
|
617
1101
|
readonly method: Schema.String;
|
|
618
1102
|
readonly route: Schema.String;
|
|
619
|
-
readonly path: Schema.String
|
|
1103
|
+
readonly path: Schema.optional<Schema.String>;
|
|
620
1104
|
readonly status: Schema.Finite;
|
|
621
1105
|
readonly dur: Schema.Finite;
|
|
622
1106
|
readonly bytes: Schema.optional<Schema.Finite>;
|
|
@@ -633,7 +1117,7 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
633
1117
|
readonly span: Schema.optional<Schema.String>;
|
|
634
1118
|
readonly parent: Schema.optional<Schema.String>;
|
|
635
1119
|
readonly t: Schema.Literal<"err">;
|
|
636
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1120
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
637
1121
|
readonly name: Schema.String;
|
|
638
1122
|
readonly message: Schema.String;
|
|
639
1123
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -649,12 +1133,15 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
649
1133
|
readonly trace: Schema.optional<Schema.String>;
|
|
650
1134
|
readonly span: Schema.optional<Schema.String>;
|
|
651
1135
|
readonly parent: Schema.optional<Schema.String>;
|
|
1136
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1137
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
652
1138
|
readonly t: Schema.Literal<"job">;
|
|
653
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1139
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
654
1140
|
readonly name: Schema.String;
|
|
655
1141
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
656
1142
|
readonly dur: Schema.Finite;
|
|
657
1143
|
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1144
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
658
1145
|
}>, Schema.Struct<{
|
|
659
1146
|
readonly _p: Schema.Literal<1>;
|
|
660
1147
|
readonly ts: Schema.Finite;
|
|
@@ -695,6 +1182,18 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
695
1182
|
readonly name: Schema.String;
|
|
696
1183
|
readonly value: Schema.Finite;
|
|
697
1184
|
readonly unit: Schema.optional<Schema.String>;
|
|
1185
|
+
}>, Schema.Struct<{
|
|
1186
|
+
readonly _p: Schema.Literal<1>;
|
|
1187
|
+
readonly ts: Schema.Finite;
|
|
1188
|
+
readonly app: Schema.String;
|
|
1189
|
+
readonly stage: Schema.String;
|
|
1190
|
+
readonly rev: Schema.String;
|
|
1191
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1192
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1193
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1194
|
+
readonly t: Schema.Literal<"limit">;
|
|
1195
|
+
readonly name: Schema.String;
|
|
1196
|
+
readonly ok: Schema.Boolean;
|
|
698
1197
|
}>, Schema.Struct<{
|
|
699
1198
|
readonly _p: Schema.Literal<1>;
|
|
700
1199
|
readonly ts: Schema.Finite;
|
|
@@ -706,7 +1205,10 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
706
1205
|
readonly parent: Schema.optional<Schema.String>;
|
|
707
1206
|
readonly t: Schema.Literal<"env">;
|
|
708
1207
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
709
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1208
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1209
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1210
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1211
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
710
1212
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
711
1213
|
}>]>>;
|
|
712
1214
|
}>>;
|
|
@@ -724,10 +1226,12 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
724
1226
|
readonly trace: Schema.optional<Schema.String>;
|
|
725
1227
|
readonly span: Schema.optional<Schema.String>;
|
|
726
1228
|
readonly parent: Schema.optional<Schema.String>;
|
|
1229
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1230
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
727
1231
|
readonly t: Schema.Literal<"req">;
|
|
728
1232
|
readonly method: Schema.String;
|
|
729
1233
|
readonly route: Schema.String;
|
|
730
|
-
readonly path: Schema.String
|
|
1234
|
+
readonly path: Schema.optional<Schema.String>;
|
|
731
1235
|
readonly status: Schema.Finite;
|
|
732
1236
|
readonly dur: Schema.Finite;
|
|
733
1237
|
readonly bytes: Schema.optional<Schema.Finite>;
|
|
@@ -744,7 +1248,7 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
744
1248
|
readonly span: Schema.optional<Schema.String>;
|
|
745
1249
|
readonly parent: Schema.optional<Schema.String>;
|
|
746
1250
|
readonly t: Schema.Literal<"err">;
|
|
747
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1251
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
748
1252
|
readonly name: Schema.String;
|
|
749
1253
|
readonly message: Schema.String;
|
|
750
1254
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -760,12 +1264,15 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
760
1264
|
readonly trace: Schema.optional<Schema.String>;
|
|
761
1265
|
readonly span: Schema.optional<Schema.String>;
|
|
762
1266
|
readonly parent: Schema.optional<Schema.String>;
|
|
1267
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1268
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
763
1269
|
readonly t: Schema.Literal<"job">;
|
|
764
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1270
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
765
1271
|
readonly name: Schema.String;
|
|
766
1272
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
767
1273
|
readonly dur: Schema.Finite;
|
|
768
1274
|
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1275
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
769
1276
|
}>, Schema.Struct<{
|
|
770
1277
|
readonly _p: Schema.Literal<1>;
|
|
771
1278
|
readonly ts: Schema.Finite;
|
|
@@ -806,6 +1313,18 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
806
1313
|
readonly name: Schema.String;
|
|
807
1314
|
readonly value: Schema.Finite;
|
|
808
1315
|
readonly unit: Schema.optional<Schema.String>;
|
|
1316
|
+
}>, Schema.Struct<{
|
|
1317
|
+
readonly _p: Schema.Literal<1>;
|
|
1318
|
+
readonly ts: Schema.Finite;
|
|
1319
|
+
readonly app: Schema.String;
|
|
1320
|
+
readonly stage: Schema.String;
|
|
1321
|
+
readonly rev: Schema.String;
|
|
1322
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1323
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1324
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1325
|
+
readonly t: Schema.Literal<"limit">;
|
|
1326
|
+
readonly name: Schema.String;
|
|
1327
|
+
readonly ok: Schema.Boolean;
|
|
809
1328
|
}>, Schema.Struct<{
|
|
810
1329
|
readonly _p: Schema.Literal<1>;
|
|
811
1330
|
readonly ts: Schema.Finite;
|
|
@@ -817,18 +1336,375 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
817
1336
|
readonly parent: Schema.optional<Schema.String>;
|
|
818
1337
|
readonly t: Schema.Literal<"env">;
|
|
819
1338
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
820
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1339
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1340
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1341
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1342
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
821
1343
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
822
1344
|
}>]>>;
|
|
823
1345
|
}>;
|
|
824
1346
|
export type TraceResponse = typeof TraceResponse.Type;
|
|
825
|
-
|
|
1347
|
+
/** Lines around one line of a stream, oldest first; `anchor` is that line's index. */
|
|
1348
|
+
export declare const LogContextResponse: Schema.Struct<{
|
|
1349
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
1350
|
+
readonly ts: Schema.String;
|
|
1351
|
+
readonly stream: Schema.String;
|
|
1352
|
+
readonly level: Schema.optional<Schema.String>;
|
|
1353
|
+
readonly message: Schema.String;
|
|
1354
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1355
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1356
|
+
readonly _p: Schema.Literal<1>;
|
|
1357
|
+
readonly ts: Schema.Finite;
|
|
1358
|
+
readonly app: Schema.String;
|
|
1359
|
+
readonly stage: Schema.String;
|
|
1360
|
+
readonly rev: Schema.String;
|
|
1361
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1362
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1363
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1364
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1365
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1366
|
+
readonly t: Schema.Literal<"req">;
|
|
1367
|
+
readonly method: Schema.String;
|
|
1368
|
+
readonly route: Schema.String;
|
|
1369
|
+
readonly path: Schema.optional<Schema.String>;
|
|
1370
|
+
readonly status: Schema.Finite;
|
|
1371
|
+
readonly dur: Schema.Finite;
|
|
1372
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
1373
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1374
|
+
readonly user: Schema.optional<Schema.String>;
|
|
1375
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
1376
|
+
}>, Schema.Struct<{
|
|
1377
|
+
readonly _p: Schema.Literal<1>;
|
|
1378
|
+
readonly ts: Schema.Finite;
|
|
1379
|
+
readonly app: Schema.String;
|
|
1380
|
+
readonly stage: Schema.String;
|
|
1381
|
+
readonly rev: Schema.String;
|
|
1382
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1383
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1384
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1385
|
+
readonly t: Schema.Literal<"err">;
|
|
1386
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log", "service"]>;
|
|
1387
|
+
readonly name: Schema.String;
|
|
1388
|
+
readonly message: Schema.String;
|
|
1389
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1390
|
+
readonly route: Schema.optional<Schema.String>;
|
|
1391
|
+
readonly job: Schema.optional<Schema.String>;
|
|
1392
|
+
readonly fingerprint: Schema.String;
|
|
1393
|
+
}>, Schema.Struct<{
|
|
1394
|
+
readonly _p: Schema.Literal<1>;
|
|
1395
|
+
readonly ts: Schema.Finite;
|
|
1396
|
+
readonly app: Schema.String;
|
|
1397
|
+
readonly stage: Schema.String;
|
|
1398
|
+
readonly rev: Schema.String;
|
|
1399
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1400
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1401
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1402
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1403
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1404
|
+
readonly t: Schema.Literal<"job">;
|
|
1405
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke", "service"]>;
|
|
1406
|
+
readonly name: Schema.String;
|
|
1407
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1408
|
+
readonly dur: Schema.Finite;
|
|
1409
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1410
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
1411
|
+
}>, Schema.Struct<{
|
|
1412
|
+
readonly _p: Schema.Literal<1>;
|
|
1413
|
+
readonly ts: Schema.Finite;
|
|
1414
|
+
readonly app: Schema.String;
|
|
1415
|
+
readonly stage: Schema.String;
|
|
1416
|
+
readonly rev: Schema.String;
|
|
1417
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1418
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1419
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1420
|
+
readonly t: Schema.Literal<"span">;
|
|
1421
|
+
readonly op: Schema.String;
|
|
1422
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1423
|
+
readonly dur: Schema.Finite;
|
|
1424
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1425
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
1426
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
1427
|
+
readonly _p: Schema.Literal<1>;
|
|
1428
|
+
readonly ts: Schema.Finite;
|
|
1429
|
+
readonly app: Schema.String;
|
|
1430
|
+
readonly stage: Schema.String;
|
|
1431
|
+
readonly rev: Schema.String;
|
|
1432
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1433
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1434
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1435
|
+
readonly t: Schema.Literal<"log">;
|
|
1436
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
1437
|
+
readonly msg: Schema.String;
|
|
1438
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
1439
|
+
readonly _p: Schema.Literal<1>;
|
|
1440
|
+
readonly ts: Schema.Finite;
|
|
1441
|
+
readonly app: Schema.String;
|
|
1442
|
+
readonly stage: Schema.String;
|
|
1443
|
+
readonly rev: Schema.String;
|
|
1444
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1445
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1446
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1447
|
+
readonly t: Schema.Literal<"metric">;
|
|
1448
|
+
readonly name: Schema.String;
|
|
1449
|
+
readonly value: Schema.Finite;
|
|
1450
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
1451
|
+
}>, Schema.Struct<{
|
|
1452
|
+
readonly _p: Schema.Literal<1>;
|
|
1453
|
+
readonly ts: Schema.Finite;
|
|
1454
|
+
readonly app: Schema.String;
|
|
1455
|
+
readonly stage: Schema.String;
|
|
1456
|
+
readonly rev: Schema.String;
|
|
1457
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1458
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1459
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1460
|
+
readonly t: Schema.Literal<"limit">;
|
|
1461
|
+
readonly name: Schema.String;
|
|
1462
|
+
readonly ok: Schema.Boolean;
|
|
1463
|
+
}>, Schema.Struct<{
|
|
1464
|
+
readonly _p: Schema.Literal<1>;
|
|
1465
|
+
readonly ts: Schema.Finite;
|
|
1466
|
+
readonly app: Schema.String;
|
|
1467
|
+
readonly stage: Schema.String;
|
|
1468
|
+
readonly rev: Schema.String;
|
|
1469
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1470
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1471
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1472
|
+
readonly t: Schema.Literal<"env">;
|
|
1473
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1474
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker", "service"]>;
|
|
1475
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1476
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1477
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1478
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1479
|
+
}>]>>;
|
|
1480
|
+
}>>;
|
|
1481
|
+
readonly anchor: Schema.Finite;
|
|
1482
|
+
}>;
|
|
1483
|
+
export type LogContextResponse = typeof LogContextResponse.Type;
|
|
1484
|
+
/** How many lines of a range have a value of a field. */
|
|
1485
|
+
export declare const FacetCount: Schema.Struct<{
|
|
1486
|
+
readonly value: Schema.String;
|
|
1487
|
+
readonly count: Schema.Finite;
|
|
1488
|
+
}>;
|
|
1489
|
+
export type FacetCount = typeof FacetCount.Type;
|
|
1490
|
+
/** Lines per bucket by level, and counts of each field's commonest values, for the range and filters. */
|
|
1491
|
+
export declare const LogStatsResponse: Schema.Struct<{
|
|
1492
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1493
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1494
|
+
readonly levels: Schema.Struct<{
|
|
1495
|
+
readonly error: Schema.$Array<Schema.Finite>;
|
|
1496
|
+
readonly warn: Schema.$Array<Schema.Finite>;
|
|
1497
|
+
readonly info: Schema.$Array<Schema.Finite>;
|
|
1498
|
+
readonly debug: Schema.$Array<Schema.Finite>;
|
|
1499
|
+
readonly system: Schema.$Array<Schema.Finite>;
|
|
1500
|
+
}>;
|
|
1501
|
+
readonly total: Schema.Finite;
|
|
1502
|
+
readonly facets: Schema.Struct<{
|
|
1503
|
+
readonly level: Schema.$Array<Schema.Struct<{
|
|
1504
|
+
readonly value: Schema.String;
|
|
1505
|
+
readonly count: Schema.Finite;
|
|
1506
|
+
}>>;
|
|
1507
|
+
readonly stream: Schema.$Array<Schema.Struct<{
|
|
1508
|
+
readonly value: Schema.String;
|
|
1509
|
+
readonly count: Schema.Finite;
|
|
1510
|
+
}>>;
|
|
1511
|
+
readonly route: Schema.$Array<Schema.Struct<{
|
|
1512
|
+
readonly value: Schema.String;
|
|
1513
|
+
readonly count: Schema.Finite;
|
|
1514
|
+
}>>;
|
|
1515
|
+
readonly status: Schema.$Array<Schema.Struct<{
|
|
1516
|
+
readonly value: Schema.String;
|
|
1517
|
+
readonly count: Schema.Finite;
|
|
1518
|
+
}>>;
|
|
1519
|
+
readonly rev: Schema.$Array<Schema.Struct<{
|
|
1520
|
+
readonly value: Schema.String;
|
|
1521
|
+
readonly count: Schema.Finite;
|
|
1522
|
+
}>>;
|
|
1523
|
+
}>;
|
|
1524
|
+
}>;
|
|
1525
|
+
export type LogStatsResponse = typeof LogStatsResponse.Type;
|
|
1526
|
+
/** A request or job that started a trace (its root line). */
|
|
1527
|
+
export declare const TraceSummary: Schema.Struct<{
|
|
1528
|
+
readonly trace: Schema.String;
|
|
1529
|
+
/** When it started, ISO. */
|
|
1530
|
+
readonly ts: Schema.String;
|
|
1531
|
+
readonly kind: Schema.Literals<readonly ["req", "job"]>;
|
|
1532
|
+
/** `GET /api/items/:id` or `queue refresh`. */
|
|
1533
|
+
readonly name: Schema.String;
|
|
1534
|
+
/** The HTTP status of a request. */
|
|
1535
|
+
readonly status: Schema.optional<Schema.Finite>;
|
|
1536
|
+
/** A 5xx request or a failed job. */
|
|
1537
|
+
readonly failed: Schema.Boolean;
|
|
1538
|
+
readonly dur: Schema.Finite;
|
|
1539
|
+
/** Its spans were written (it failed, was slow, or its trace was sampled). */
|
|
1540
|
+
readonly recorded: Schema.Boolean;
|
|
1541
|
+
/** Calls it made that weren't written. */
|
|
1542
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1543
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
1544
|
+
}>;
|
|
1545
|
+
export type TraceSummary = typeof TraceSummary.Type;
|
|
1546
|
+
export declare const TracesResponse: Schema.Struct<{
|
|
1547
|
+
readonly traces: Schema.$Array<Schema.Struct<{
|
|
1548
|
+
readonly trace: Schema.String;
|
|
1549
|
+
/** When it started, ISO. */
|
|
1550
|
+
readonly ts: Schema.String;
|
|
1551
|
+
readonly kind: Schema.Literals<readonly ["req", "job"]>;
|
|
1552
|
+
/** `GET /api/items/:id` or `queue refresh`. */
|
|
1553
|
+
readonly name: Schema.String;
|
|
1554
|
+
/** The HTTP status of a request. */
|
|
1555
|
+
readonly status: Schema.optional<Schema.Finite>;
|
|
1556
|
+
/** A 5xx request or a failed job. */
|
|
1557
|
+
readonly failed: Schema.Boolean;
|
|
1558
|
+
readonly dur: Schema.Finite;
|
|
1559
|
+
/** Its spans were written (it failed, was slow, or its trace was sampled). */
|
|
1560
|
+
readonly recorded: Schema.Boolean;
|
|
1561
|
+
/** Calls it made that weren't written. */
|
|
1562
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1563
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
1564
|
+
}>>;
|
|
1565
|
+
/** More matched than `limit`; narrow the range or filters to see the rest. */
|
|
1566
|
+
readonly truncated: Schema.Boolean;
|
|
1567
|
+
}>;
|
|
1568
|
+
export type TracesResponse = typeof TracesResponse.Type;
|
|
1569
|
+
export declare const InsightsRequest: Schema.Struct<{
|
|
1570
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
1571
|
+
/**
|
|
1572
|
+
* A Logs Insights query (the Logs Insights language only). It runs on the
|
|
1573
|
+
* stage's own log groups; one that picks its own (`SOURCE`) is refused.
|
|
1574
|
+
*/
|
|
1575
|
+
readonly query: Schema.String;
|
|
1576
|
+
readonly from: Schema.optional<Schema.String>;
|
|
1577
|
+
readonly to: Schema.optional<Schema.String>;
|
|
1578
|
+
readonly range: Schema.optional<Schema.String>;
|
|
1579
|
+
}>;
|
|
1580
|
+
export type InsightsRequest = typeof InsightsRequest.Type;
|
|
1581
|
+
export declare const InsightsResponse: Schema.Struct<{
|
|
1582
|
+
/** Result fields in the order the query produced them (hidden `@ptr` left out). */
|
|
1583
|
+
readonly columns: Schema.$Array<Schema.String>;
|
|
1584
|
+
readonly rows: Schema.$Array<Schema.$Array<Schema.NullOr<Schema.String>>>;
|
|
1585
|
+
readonly recordsMatched: Schema.Finite;
|
|
1586
|
+
readonly recordsScanned: Schema.Finite;
|
|
1587
|
+
readonly bytesScanned: Schema.Finite;
|
|
1588
|
+
}>;
|
|
1589
|
+
export type InsightsResponse = typeof InsightsResponse.Type;
|
|
1590
|
+
/** An error group's events per bucket, and the deployments they happened on (Logs Insights). */
|
|
1591
|
+
export declare const ErrorOccurrencesResponse: Schema.Struct<{
|
|
1592
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1593
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1594
|
+
readonly counts: Schema.$Array<Schema.Finite>;
|
|
1595
|
+
readonly revs: Schema.$Array<Schema.Struct<{
|
|
1596
|
+
readonly value: Schema.String;
|
|
1597
|
+
readonly count: Schema.Finite;
|
|
1598
|
+
}>>;
|
|
1599
|
+
}>;
|
|
1600
|
+
export type ErrorOccurrencesResponse = typeof ErrorOccurrencesResponse.Type;
|
|
1601
|
+
/** One line of a series answer: a group's values (key `all` when ungrouped), one per timestamp. */
|
|
1602
|
+
export declare const SeriesLine: Schema.Struct<{
|
|
1603
|
+
readonly key: Schema.String;
|
|
1604
|
+
readonly values: Schema.$Array<Schema.NullOr<Schema.Finite>>;
|
|
1605
|
+
}>;
|
|
1606
|
+
export type SeriesLine = typeof SeriesLine.Type;
|
|
1607
|
+
export declare const SeriesResponse: Schema.Struct<{
|
|
1608
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1609
|
+
/** Bucket start times, ISO, oldest first. */
|
|
1610
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1611
|
+
/** `count`, `per_second`, `percent`, `ms`, or a custom metric's own unit. */
|
|
1612
|
+
readonly unit: Schema.String;
|
|
1613
|
+
readonly series: Schema.$Array<Schema.Struct<{
|
|
1614
|
+
readonly key: Schema.String;
|
|
1615
|
+
readonly values: Schema.$Array<Schema.NullOr<Schema.Finite>>;
|
|
1616
|
+
}>>;
|
|
1617
|
+
/** `stat: histogram`: per timestamp, the count in each latency bucket (`LATENCY_BUCKETS_MS`, then the overflow). */
|
|
1618
|
+
readonly histogram: Schema.optional<Schema.$Array<Schema.$Array<Schema.Finite>>>;
|
|
1619
|
+
/** Why the answer differs from what was asked (coarser buckets past minute data's 3 days, groups cut to the top 10). */
|
|
1620
|
+
readonly note: Schema.optional<Schema.String>;
|
|
1621
|
+
}>;
|
|
1622
|
+
export type SeriesResponse = typeof SeriesResponse.Type;
|
|
1623
|
+
/** A GET of the stage's health path, for a stage that served nothing lately or has no server. */
|
|
1624
|
+
export declare const UptimeCheck: Schema.Struct<{
|
|
826
1625
|
readonly ts: Schema.String;
|
|
827
1626
|
readonly ok: Schema.Boolean;
|
|
1627
|
+
readonly source: Schema.Literal<"check">;
|
|
1628
|
+
/** The HTTP status; 0 when nothing answered within 10 s. */
|
|
828
1629
|
readonly status: Schema.Finite;
|
|
829
1630
|
readonly ms: Schema.Finite;
|
|
830
1631
|
}>;
|
|
1632
|
+
export type UptimeCheck = typeof UptimeCheck.Type;
|
|
1633
|
+
/** The stage's own requests in the 10 minutes before `ts`: down when at least 3, half of them 5xx. */
|
|
1634
|
+
export declare const UptimeTraffic: Schema.Struct<{
|
|
1635
|
+
readonly ts: Schema.String;
|
|
1636
|
+
readonly ok: Schema.Boolean;
|
|
1637
|
+
readonly source: Schema.Literal<"traffic">;
|
|
1638
|
+
readonly req: Schema.Finite;
|
|
1639
|
+
readonly s5xx: Schema.Finite;
|
|
1640
|
+
}>;
|
|
1641
|
+
export type UptimeTraffic = typeof UptimeTraffic.Type;
|
|
1642
|
+
export declare const UptimePoint: Schema.Union<readonly [Schema.Struct<{
|
|
1643
|
+
readonly ts: Schema.String;
|
|
1644
|
+
readonly ok: Schema.Boolean;
|
|
1645
|
+
readonly source: Schema.Literal<"check">;
|
|
1646
|
+
/** The HTTP status; 0 when nothing answered within 10 s. */
|
|
1647
|
+
readonly status: Schema.Finite;
|
|
1648
|
+
readonly ms: Schema.Finite;
|
|
1649
|
+
}>, Schema.Struct<{
|
|
1650
|
+
readonly ts: Schema.String;
|
|
1651
|
+
readonly ok: Schema.Boolean;
|
|
1652
|
+
readonly source: Schema.Literal<"traffic">;
|
|
1653
|
+
readonly req: Schema.Finite;
|
|
1654
|
+
readonly s5xx: Schema.Finite;
|
|
1655
|
+
}>]>;
|
|
831
1656
|
export type UptimePoint = typeof UptimePoint.Type;
|
|
1657
|
+
/** Monthly cost of one container if it runs all month (`estimateContainerCost`). */
|
|
1658
|
+
export declare const MonthlyContainerCost: Schema.Struct<{
|
|
1659
|
+
readonly computeUsd: Schema.Finite;
|
|
1660
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1661
|
+
readonly totalUsd: Schema.Finite;
|
|
1662
|
+
}>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Something billed for as long as it runs, estimated from its size because
|
|
1665
|
+
* Cost Explorer lags a day and doesn't attribute every part of it to the
|
|
1666
|
+
* app (a container's public IPv4 address).
|
|
1667
|
+
*/
|
|
1668
|
+
export declare const AlwaysOnCost: Schema.Struct<{
|
|
1669
|
+
readonly stage: Schema.String;
|
|
1670
|
+
readonly kind: Schema.Literal<"service">;
|
|
1671
|
+
readonly name: Schema.String;
|
|
1672
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1673
|
+
readonly detail: Schema.String;
|
|
1674
|
+
readonly monthly: Schema.Struct<{
|
|
1675
|
+
readonly computeUsd: Schema.Finite;
|
|
1676
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1677
|
+
readonly totalUsd: Schema.Finite;
|
|
1678
|
+
}>;
|
|
1679
|
+
}>;
|
|
1680
|
+
export type AlwaysOnCost = typeof AlwaysOnCost.Type;
|
|
1681
|
+
/** A non-preview stage's server: how it runs, and (prod) what each mode would cost. */
|
|
1682
|
+
export declare const StageCompute: Schema.Struct<{
|
|
1683
|
+
readonly stage: Schema.String;
|
|
1684
|
+
/** `web.compute` of the live deployment. */
|
|
1685
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1686
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1687
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1688
|
+
readonly at: Schema.String;
|
|
1689
|
+
readonly request: Schema.Struct<{
|
|
1690
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1691
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1692
|
+
}>;
|
|
1693
|
+
readonly instance: Schema.Struct<{
|
|
1694
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1695
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1696
|
+
}>;
|
|
1697
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1698
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1699
|
+
readonly days: Schema.Finite;
|
|
1700
|
+
}>>;
|
|
1701
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1702
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1703
|
+
readonly days: Schema.Finite;
|
|
1704
|
+
readonly day: Schema.String;
|
|
1705
|
+
}>>;
|
|
1706
|
+
}>;
|
|
1707
|
+
export type StageCompute = typeof StageCompute.Type;
|
|
832
1708
|
export declare const CostResponse: Schema.Struct<{
|
|
833
1709
|
readonly app: Schema.String;
|
|
834
1710
|
readonly currency: Schema.Literal<"USD">;
|
|
@@ -837,6 +1713,45 @@ export declare const CostResponse: Schema.Struct<{
|
|
|
837
1713
|
readonly usd: Schema.Finite;
|
|
838
1714
|
}>>;
|
|
839
1715
|
readonly monthToDateUsd: Schema.Finite;
|
|
1716
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1717
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1718
|
+
readonly stage: Schema.String;
|
|
1719
|
+
readonly kind: Schema.Literal<"service">;
|
|
1720
|
+
readonly name: Schema.String;
|
|
1721
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1722
|
+
readonly detail: Schema.String;
|
|
1723
|
+
readonly monthly: Schema.Struct<{
|
|
1724
|
+
readonly computeUsd: Schema.Finite;
|
|
1725
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1726
|
+
readonly totalUsd: Schema.Finite;
|
|
1727
|
+
}>;
|
|
1728
|
+
}>>>;
|
|
1729
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1730
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1731
|
+
readonly stage: Schema.String;
|
|
1732
|
+
/** `web.compute` of the live deployment. */
|
|
1733
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1734
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1735
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1736
|
+
readonly at: Schema.String;
|
|
1737
|
+
readonly request: Schema.Struct<{
|
|
1738
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1739
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1740
|
+
}>;
|
|
1741
|
+
readonly instance: Schema.Struct<{
|
|
1742
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1743
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1744
|
+
}>;
|
|
1745
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
1746
|
+
/** Days of traffic the month is extrapolated from. */
|
|
1747
|
+
readonly days: Schema.Finite;
|
|
1748
|
+
}>>;
|
|
1749
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
1750
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
1751
|
+
readonly days: Schema.Finite;
|
|
1752
|
+
readonly day: Schema.String;
|
|
1753
|
+
}>>;
|
|
1754
|
+
}>>>;
|
|
840
1755
|
}>;
|
|
841
1756
|
export type CostResponse = typeof CostResponse.Type;
|
|
842
1757
|
export declare const SecretInfo: Schema.Struct<{
|
|
@@ -887,9 +1802,13 @@ export declare const StoredObjectInfo: Schema.Struct<{
|
|
|
887
1802
|
readonly lastModified: Schema.optional<Schema.String>;
|
|
888
1803
|
}>;
|
|
889
1804
|
export type StoredObjectInfo = typeof StoredObjectInfo.Type;
|
|
890
|
-
/**
|
|
1805
|
+
/**
|
|
1806
|
+
* `GET /v1/apps/:app/storage`: the declared stores (and which of them the
|
|
1807
|
+
* edge serves) without `?store=`, a listing with it.
|
|
1808
|
+
*/
|
|
891
1809
|
export declare const StorageResponse: Schema.Union<readonly [Schema.Struct<{
|
|
892
1810
|
readonly stores: Schema.$Array<Schema.String>;
|
|
1811
|
+
readonly public: Schema.optional<Schema.$Array<Schema.String>>;
|
|
893
1812
|
}>, Schema.Struct<{
|
|
894
1813
|
readonly objects: Schema.$Array<Schema.Struct<{
|
|
895
1814
|
readonly key: Schema.String;
|
|
@@ -906,11 +1825,122 @@ export type UrlResponse = typeof UrlResponse.Type;
|
|
|
906
1825
|
export declare const CronRunResponse: Schema.Struct<{
|
|
907
1826
|
readonly started: Schema.String;
|
|
908
1827
|
}>;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
1828
|
+
/**
|
|
1829
|
+
* - `running`: every desired task is up and the latest rollout finished
|
|
1830
|
+
* - `starting`: a rollout or replacement is under way
|
|
1831
|
+
* - `failing`: tasks keep stopping before they settle, or the last rollout failed
|
|
1832
|
+
* - `stopped`: scaled to zero (a preview past its minutes, or `plat services stop`)
|
|
1833
|
+
*/
|
|
1834
|
+
export declare const ServiceState: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1835
|
+
export type ServiceState = typeof ServiceState.Type;
|
|
1836
|
+
export declare const ServiceInfo: Schema.Struct<{
|
|
1837
|
+
readonly name: Schema.String;
|
|
1838
|
+
/** Size and capacity the live deployment declares. */
|
|
1839
|
+
readonly cpu: Schema.Finite;
|
|
1840
|
+
readonly memoryMb: Schema.Finite;
|
|
1841
|
+
readonly spot: Schema.Boolean;
|
|
1842
|
+
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1843
|
+
readonly desired: Schema.Finite;
|
|
1844
|
+
readonly running: Schema.Finite;
|
|
1845
|
+
readonly pending: Schema.Finite;
|
|
1846
|
+
/** Deployment whose build the service runs. */
|
|
1847
|
+
readonly deployment: Schema.optional<Schema.String>;
|
|
1848
|
+
/** When the current task started. */
|
|
1849
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
1850
|
+
/** When a preview's stop schedule scales it to zero. */
|
|
1851
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1852
|
+
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1853
|
+
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1854
|
+
readonly at: Schema.String;
|
|
1855
|
+
readonly reason: Schema.String;
|
|
1856
|
+
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1857
|
+
}>>;
|
|
1858
|
+
/** Recent ECS service events, newest first. */
|
|
1859
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1860
|
+
readonly at: Schema.String;
|
|
1861
|
+
readonly message: Schema.String;
|
|
1862
|
+
}>>;
|
|
1863
|
+
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1864
|
+
readonly starts: Schema.Finite;
|
|
1865
|
+
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1866
|
+
readonly failedRuns: Schema.Finite;
|
|
1867
|
+
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1868
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
1869
|
+
readonly ts: Schema.String;
|
|
1870
|
+
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1871
|
+
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1872
|
+
}>>;
|
|
1873
|
+
/** If it ran all month. */
|
|
1874
|
+
readonly monthly: Schema.Struct<{
|
|
1875
|
+
readonly computeUsd: Schema.Finite;
|
|
1876
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1877
|
+
readonly totalUsd: Schema.Finite;
|
|
1878
|
+
}>;
|
|
1879
|
+
}>;
|
|
1880
|
+
export type ServiceInfo = typeof ServiceInfo.Type;
|
|
1881
|
+
export declare const ServicesResponse: Schema.Struct<{
|
|
1882
|
+
readonly app: Schema.String;
|
|
1883
|
+
readonly stage: Schema.String;
|
|
1884
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
1885
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
1886
|
+
readonly name: Schema.String;
|
|
1887
|
+
/** Size and capacity the live deployment declares. */
|
|
1888
|
+
readonly cpu: Schema.Finite;
|
|
1889
|
+
readonly memoryMb: Schema.Finite;
|
|
1890
|
+
readonly spot: Schema.Boolean;
|
|
1891
|
+
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1892
|
+
readonly desired: Schema.Finite;
|
|
1893
|
+
readonly running: Schema.Finite;
|
|
1894
|
+
readonly pending: Schema.Finite;
|
|
1895
|
+
/** Deployment whose build the service runs. */
|
|
1896
|
+
readonly deployment: Schema.optional<Schema.String>;
|
|
1897
|
+
/** When the current task started. */
|
|
1898
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
1899
|
+
/** When a preview's stop schedule scales it to zero. */
|
|
1900
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1901
|
+
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1902
|
+
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1903
|
+
readonly at: Schema.String;
|
|
1904
|
+
readonly reason: Schema.String;
|
|
1905
|
+
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1906
|
+
}>>;
|
|
1907
|
+
/** Recent ECS service events, newest first. */
|
|
1908
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1909
|
+
readonly at: Schema.String;
|
|
1910
|
+
readonly message: Schema.String;
|
|
1911
|
+
}>>;
|
|
1912
|
+
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1913
|
+
readonly starts: Schema.Finite;
|
|
1914
|
+
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1915
|
+
readonly failedRuns: Schema.Finite;
|
|
1916
|
+
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1917
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
1918
|
+
readonly ts: Schema.String;
|
|
1919
|
+
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1920
|
+
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1921
|
+
}>>;
|
|
1922
|
+
/** If it ran all month. */
|
|
1923
|
+
readonly monthly: Schema.Struct<{
|
|
1924
|
+
readonly computeUsd: Schema.Finite;
|
|
1925
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1926
|
+
readonly totalUsd: Schema.Finite;
|
|
1927
|
+
}>;
|
|
1928
|
+
}>>;
|
|
1929
|
+
}>;
|
|
1930
|
+
export type ServicesResponse = typeof ServicesResponse.Type;
|
|
1931
|
+
export declare const StartServiceRequest: Schema.Struct<{
|
|
1932
|
+
/** Stop it again after this many minutes. Previews default to the service's `previewMinutes`. */
|
|
1933
|
+
readonly minutes: Schema.optional<Schema.Int>;
|
|
912
1934
|
}>;
|
|
913
|
-
export type
|
|
1935
|
+
export type StartServiceRequest = typeof StartServiceRequest.Encoded;
|
|
1936
|
+
export declare const ServiceActionResponse: Schema.Struct<{
|
|
1937
|
+
readonly name: Schema.String;
|
|
1938
|
+
/** Tasks the service now asks for (1 running, 0 stopped). */
|
|
1939
|
+
readonly desired: Schema.Finite;
|
|
1940
|
+
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1941
|
+
}>;
|
|
1942
|
+
export type ServiceActionResponse = typeof ServiceActionResponse.Type;
|
|
1943
|
+
export type CronRunResponse = typeof CronRunResponse.Type;
|
|
914
1944
|
export declare const AdminOverview: Schema.Struct<{
|
|
915
1945
|
readonly members: Schema.$Array<Schema.Struct<{
|
|
916
1946
|
readonly github: Schema.String;
|
|
@@ -919,6 +1949,10 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
919
1949
|
readonly limits: Schema.Struct<{
|
|
920
1950
|
readonly appsPerMember: Schema.Finite;
|
|
921
1951
|
readonly stagesPerApp: Schema.Finite;
|
|
1952
|
+
readonly emailsPerDay: Schema.Finite;
|
|
1953
|
+
readonly edgeRequestsPerMinute: Schema.optional<Schema.Finite>;
|
|
1954
|
+
readonly edgeFloorAt: Schema.optional<Schema.Finite>;
|
|
1955
|
+
readonly servicesPerApp: Schema.Finite;
|
|
922
1956
|
}>;
|
|
923
1957
|
readonly apps: Schema.Finite;
|
|
924
1958
|
readonly stages: Schema.Finite;
|
|
@@ -934,6 +1968,45 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
934
1968
|
readonly usd: Schema.Finite;
|
|
935
1969
|
}>>;
|
|
936
1970
|
readonly monthToDateUsd: Schema.Finite;
|
|
1971
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1972
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1973
|
+
readonly stage: Schema.String;
|
|
1974
|
+
readonly kind: Schema.Literal<"service">;
|
|
1975
|
+
readonly name: Schema.String;
|
|
1976
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1977
|
+
readonly detail: Schema.String;
|
|
1978
|
+
readonly monthly: Schema.Struct<{
|
|
1979
|
+
readonly computeUsd: Schema.Finite;
|
|
1980
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
1981
|
+
readonly totalUsd: Schema.Finite;
|
|
1982
|
+
}>;
|
|
1983
|
+
}>>>;
|
|
1984
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1985
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1986
|
+
readonly stage: Schema.String;
|
|
1987
|
+
/** `web.compute` of the live deployment. */
|
|
1988
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
1989
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
1990
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
1991
|
+
readonly at: Schema.String;
|
|
1992
|
+
readonly request: Schema.Struct<{
|
|
1993
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1994
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
1995
|
+
}>;
|
|
1996
|
+
readonly instance: Schema.Struct<{
|
|
1997
|
+
readonly monthlyUsd: Schema.Finite;
|
|
1998
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
1999
|
+
}>;
|
|
2000
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
2001
|
+
/** Days of traffic the month is extrapolated from. */
|
|
2002
|
+
readonly days: Schema.Finite;
|
|
2003
|
+
}>>;
|
|
2004
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
2005
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
2006
|
+
readonly days: Schema.Finite;
|
|
2007
|
+
readonly day: Schema.String;
|
|
2008
|
+
}>>;
|
|
2009
|
+
}>>>;
|
|
937
2010
|
}>>;
|
|
938
2011
|
readonly shared: Schema.NullOr<Schema.Struct<{
|
|
939
2012
|
readonly app: Schema.String;
|
|
@@ -943,10 +2016,117 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
943
2016
|
readonly usd: Schema.Finite;
|
|
944
2017
|
}>>;
|
|
945
2018
|
readonly monthToDateUsd: Schema.Finite;
|
|
2019
|
+
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
2020
|
+
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2021
|
+
readonly stage: Schema.String;
|
|
2022
|
+
readonly kind: Schema.Literal<"service">;
|
|
2023
|
+
readonly name: Schema.String;
|
|
2024
|
+
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
2025
|
+
readonly detail: Schema.String;
|
|
2026
|
+
readonly monthly: Schema.Struct<{
|
|
2027
|
+
readonly computeUsd: Schema.Finite;
|
|
2028
|
+
readonly publicIpv4Usd: Schema.Finite;
|
|
2029
|
+
readonly totalUsd: Schema.Finite;
|
|
2030
|
+
}>;
|
|
2031
|
+
}>>>;
|
|
2032
|
+
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
2033
|
+
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2034
|
+
readonly stage: Schema.String;
|
|
2035
|
+
/** `web.compute` of the live deployment. */
|
|
2036
|
+
readonly setting: Schema.Literals<readonly ["auto", "request", "instance"]>;
|
|
2037
|
+
readonly compute: Schema.Literals<readonly ["request", "instance"]>;
|
|
2038
|
+
readonly estimate: Schema.optional<Schema.Struct<{
|
|
2039
|
+
readonly at: Schema.String;
|
|
2040
|
+
readonly request: Schema.Struct<{
|
|
2041
|
+
readonly monthlyUsd: Schema.Finite;
|
|
2042
|
+
readonly coldStartsPerMonth: Schema.Finite;
|
|
2043
|
+
}>;
|
|
2044
|
+
readonly instance: Schema.Struct<{
|
|
2045
|
+
readonly monthlyUsd: Schema.Finite;
|
|
2046
|
+
readonly environmentHoursPerMonth: Schema.Finite;
|
|
2047
|
+
}>;
|
|
2048
|
+
readonly requestsPerMonth: Schema.Finite;
|
|
2049
|
+
/** Days of traffic the month is extrapolated from. */
|
|
2050
|
+
readonly days: Schema.Finite;
|
|
2051
|
+
}>>;
|
|
2052
|
+
readonly streak: Schema.optional<Schema.Struct<{
|
|
2053
|
+
readonly to: Schema.Literals<readonly ["request", "instance"]>;
|
|
2054
|
+
readonly days: Schema.Finite;
|
|
2055
|
+
readonly day: Schema.String;
|
|
2056
|
+
}>>;
|
|
2057
|
+
}>>>;
|
|
946
2058
|
}>>;
|
|
947
2059
|
}>;
|
|
948
2060
|
}>;
|
|
949
2061
|
export type AdminOverview = typeof AdminOverview.Type;
|
|
2062
|
+
/** Requests the edge's web ACL handled in one bucket (CloudWatch `Sum`s). */
|
|
2063
|
+
export declare const EdgeFloorPoint: Schema.Struct<{
|
|
2064
|
+
readonly ts: Schema.String;
|
|
2065
|
+
/** Blocked by the per-client floor. */
|
|
2066
|
+
readonly blocked: Schema.Finite;
|
|
2067
|
+
/** Let through (every request the web ACL saw and allowed). */
|
|
2068
|
+
readonly allowed: Schema.Finite;
|
|
2069
|
+
}>;
|
|
2070
|
+
export type EdgeFloorPoint = typeof EdgeFloorPoint.Type;
|
|
2071
|
+
/** A request the floor blocked, from WAF's sample of the last three hours. */
|
|
2072
|
+
export declare const EdgeFloorSample: Schema.Struct<{
|
|
2073
|
+
readonly at: Schema.String;
|
|
2074
|
+
readonly host: Schema.String;
|
|
2075
|
+
readonly client: Schema.String;
|
|
2076
|
+
readonly country: Schema.optional<Schema.String>;
|
|
2077
|
+
readonly method: Schema.String;
|
|
2078
|
+
readonly path: Schema.String;
|
|
2079
|
+
}>;
|
|
2080
|
+
export type EdgeFloorSample = typeof EdgeFloorSample.Type;
|
|
2081
|
+
/** Whether the edge floor is on, since when, and why it turned on or off. */
|
|
2082
|
+
export declare const EdgeFloorState: Schema.Struct<{
|
|
2083
|
+
readonly on: Schema.Boolean;
|
|
2084
|
+
/** Absent until it first turns on. */
|
|
2085
|
+
readonly since: Schema.optional<Schema.String>;
|
|
2086
|
+
readonly why: Schema.optional<Schema.String>;
|
|
2087
|
+
}>;
|
|
2088
|
+
export type EdgeFloorState = typeof EdgeFloorState.Type;
|
|
2089
|
+
/**
|
|
2090
|
+
* The edge's per-client request floor across every app: on only while the
|
|
2091
|
+
* whole edge is busy (`limits.edgeFloorAt`), then `limits.edgeRequestsPerMinute`
|
|
2092
|
+
* per client and host. Counts cover the range whether or not it was on then.
|
|
2093
|
+
*/
|
|
2094
|
+
export declare const EdgeFloorResponse: Schema.Struct<{
|
|
2095
|
+
/** False when the platform has no floor; the rest is then empty. */
|
|
2096
|
+
readonly enabled: Schema.Boolean;
|
|
2097
|
+
readonly state: Schema.Struct<{
|
|
2098
|
+
readonly on: Schema.Boolean;
|
|
2099
|
+
/** Absent until it first turns on. */
|
|
2100
|
+
readonly since: Schema.optional<Schema.String>;
|
|
2101
|
+
readonly why: Schema.optional<Schema.String>;
|
|
2102
|
+
}>;
|
|
2103
|
+
/** Requests per client per host per minute while it's on. */
|
|
2104
|
+
readonly limit: Schema.optional<Schema.Finite>;
|
|
2105
|
+
/** Requests per minute across the edge that turn it on. */
|
|
2106
|
+
readonly threshold: Schema.optional<Schema.Finite>;
|
|
2107
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
2108
|
+
readonly totals: Schema.Struct<{
|
|
2109
|
+
readonly blocked: Schema.Finite;
|
|
2110
|
+
readonly allowed: Schema.Finite;
|
|
2111
|
+
}>;
|
|
2112
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
2113
|
+
readonly ts: Schema.String;
|
|
2114
|
+
/** Blocked by the per-client floor. */
|
|
2115
|
+
readonly blocked: Schema.Finite;
|
|
2116
|
+
/** Let through (every request the web ACL saw and allowed). */
|
|
2117
|
+
readonly allowed: Schema.Finite;
|
|
2118
|
+
}>>;
|
|
2119
|
+
/** Newest first. WAF samples a share of requests, so counts here undercount. */
|
|
2120
|
+
readonly samples: Schema.$Array<Schema.Struct<{
|
|
2121
|
+
readonly at: Schema.String;
|
|
2122
|
+
readonly host: Schema.String;
|
|
2123
|
+
readonly client: Schema.String;
|
|
2124
|
+
readonly country: Schema.optional<Schema.String>;
|
|
2125
|
+
readonly method: Schema.String;
|
|
2126
|
+
readonly path: Schema.String;
|
|
2127
|
+
}>>;
|
|
2128
|
+
}>;
|
|
2129
|
+
export type EdgeFloorResponse = typeof EdgeFloorResponse.Type;
|
|
950
2130
|
/** Body of every API error, whatever the status. */
|
|
951
2131
|
export declare const ApiErrorBody: Schema.Struct<{
|
|
952
2132
|
readonly error: Schema.Struct<{
|