@ericminassian/platform-core 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +947 -209
- package/dist/api.js +335 -1
- package/dist/api.js.map +1 -1
- package/dist/auth.d.ts +19 -0
- package/dist/auth.js +29 -0
- package/dist/auth.js.map +1 -1
- package/dist/bindings.d.ts +8 -2
- package/dist/bindings.js.map +1 -1
- package/dist/cloudfront-function.js +6 -0
- package/dist/cloudfront-function.js.map +1 -1
- package/dist/config.d.ts +11 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +11 -0
- package/dist/constants.js.map +1 -1
- package/dist/manifest.d.ts +203 -90
- package/dist/manifest.js +129 -93
- package/dist/manifest.js.map +1 -1
- package/dist/naming.d.ts +13 -2
- package/dist/naming.js +12 -1
- package/dist/naming.js.map +1 -1
- package/dist/platform-api.d.ts +5337 -0
- package/dist/platform-api.js +343 -0
- package/dist/platform-api.js.map +1 -0
- package/dist/router/decide.d.ts +5 -1
- package/dist/router/decide.js +7 -2
- package/dist/router.d.ts +1 -1
- package/dist/telemetry.d.ts +236 -74
- package/dist/telemetry.js +97 -0
- package/dist/telemetry.js.map +1 -1
- package/package.json +12 -6
- package/src/api.ts +427 -231
- package/src/auth.ts +33 -0
- package/src/bindings.ts +8 -2
- package/src/cloudfront-function.ts +6 -0
- package/src/config.ts +10 -2
- package/src/constants.ts +12 -0
- package/src/manifest.ts +280 -113
- package/src/naming.ts +13 -2
- package/src/platform-api.ts +504 -0
- package/src/router/decide.d.ts +5 -1
- package/src/router/decide.js +7 -2
- package/src/router.ts +1 -1
- package/src/telemetry.ts +107 -85
- package/platform.schema.json +0 -213
package/dist/api.d.ts
CHANGED
|
@@ -1,219 +1,957 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Control plane API
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Control plane API records and payloads, as schemas: the control plane
|
|
3
|
+
* encodes responses and decodes requests with them, the console and the CLI
|
|
4
|
+
* read the same shapes. The endpoints themselves are `PlatformApi`
|
|
5
|
+
* (`@ericminassian/platform-core/platform-api`). All routes live under `/v1`.
|
|
6
|
+
*
|
|
7
|
+
* Optional fields accept `undefined`, so a record built with spreads of
|
|
8
|
+
* possibly-missing values encodes; JSON drops them either way.
|
|
7
9
|
*/
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export interface AppRecord {
|
|
12
|
-
name: string;
|
|
10
|
+
import { Schema } from 'effect';
|
|
11
|
+
export declare const AppRecord: Schema.Struct<{
|
|
12
|
+
readonly name: Schema.String;
|
|
13
13
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
14
|
-
repo:
|
|
15
|
-
description
|
|
14
|
+
readonly repo: Schema.String;
|
|
15
|
+
readonly description: Schema.optional<Schema.String>;
|
|
16
16
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
17
|
-
owners:
|
|
18
|
-
createdBy:
|
|
19
|
-
createdAt:
|
|
20
|
-
}
|
|
21
|
-
export type
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
18
|
+
readonly createdBy: Schema.String;
|
|
19
|
+
readonly createdAt: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
export type AppRecord = typeof AppRecord.Type;
|
|
22
|
+
export declare const StageStatus: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
23
|
+
export type StageStatus = typeof StageStatus.Type;
|
|
24
|
+
export declare const StageRecord: Schema.Struct<{
|
|
25
|
+
readonly app: Schema.String;
|
|
26
|
+
readonly stage: Schema.String;
|
|
27
|
+
readonly host: Schema.String;
|
|
28
|
+
readonly url: Schema.String;
|
|
29
|
+
readonly status: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
30
|
+
readonly preview: Schema.Boolean;
|
|
31
|
+
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
32
|
+
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
31
33
|
/** Web Function revision ids, for instant rollback. */
|
|
32
|
-
currentRevision
|
|
33
|
-
previousRevision
|
|
34
|
-
createdAt:
|
|
35
|
-
updatedAt:
|
|
36
|
-
}
|
|
37
|
-
export type
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
readonly currentRevision: Schema.optional<Schema.String>;
|
|
35
|
+
readonly previousRevision: Schema.optional<Schema.String>;
|
|
36
|
+
readonly createdAt: Schema.String;
|
|
37
|
+
readonly updatedAt: Schema.String;
|
|
38
|
+
}>;
|
|
39
|
+
export type StageRecord = typeof StageRecord.Type;
|
|
40
|
+
export declare const DeploymentStatus: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
41
|
+
export type DeploymentStatus = typeof DeploymentStatus.Type;
|
|
42
|
+
export declare const DeploymentEventEntry: Schema.Struct<{
|
|
43
|
+
readonly ts: Schema.Finite;
|
|
44
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
45
|
+
readonly msg: Schema.String;
|
|
42
46
|
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
43
|
-
resource
|
|
44
|
-
}
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
48
|
+
}>;
|
|
49
|
+
export type DeploymentEventEntry = typeof DeploymentEventEntry.Type;
|
|
50
|
+
export declare const DeploymentRecord: Schema.Struct<{
|
|
51
|
+
readonly id: Schema.String;
|
|
52
|
+
readonly app: Schema.String;
|
|
53
|
+
readonly stage: Schema.String;
|
|
54
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
50
55
|
/** GitHub username, or `ci:<repo>` for OIDC deploys. */
|
|
51
|
-
actor:
|
|
52
|
-
commit
|
|
53
|
-
ref
|
|
54
|
-
message
|
|
55
|
-
manifest
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
readonly actor: Schema.String;
|
|
57
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
58
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
59
|
+
readonly message: Schema.optional<Schema.String>;
|
|
60
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
61
|
+
readonly name: Schema.String;
|
|
62
|
+
readonly description: Schema.optional<Schema.String>;
|
|
63
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
64
|
+
readonly server: Schema.optional<Schema.String>;
|
|
65
|
+
readonly static: Schema.optional<Schema.String>;
|
|
66
|
+
readonly build: Schema.optional<Schema.String>;
|
|
67
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
68
|
+
readonly command: Schema.String;
|
|
69
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
70
|
+
}>>;
|
|
71
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
72
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
73
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
74
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
75
|
+
}>>;
|
|
76
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
77
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
78
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
79
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
80
|
+
}>>;
|
|
81
|
+
readonly auth: Schema.Struct<{
|
|
82
|
+
readonly enabled: Schema.Boolean;
|
|
83
|
+
readonly required: Schema.Boolean;
|
|
84
|
+
}>;
|
|
85
|
+
readonly db: Schema.Boolean;
|
|
86
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
87
|
+
readonly batchSize: Schema.withDecodingDefault<Schema.Int, never>;
|
|
88
|
+
readonly maxReceiveCount: Schema.withDecodingDefault<Schema.Int, never>;
|
|
89
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
90
|
+
readonly visibilityTimeoutSeconds: Schema.Finite;
|
|
91
|
+
}>>;
|
|
92
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
93
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
94
|
+
readonly schedule: Schema.String;
|
|
95
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
96
|
+
}>>;
|
|
97
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
98
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
99
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
100
|
+
}>>;
|
|
101
|
+
readonly url: Schema.optional<Schema.String>;
|
|
102
|
+
readonly error: Schema.optional<Schema.String>;
|
|
103
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
104
|
+
readonly ts: Schema.Finite;
|
|
105
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
106
|
+
readonly msg: Schema.String;
|
|
107
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
108
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
109
|
+
}>>;
|
|
110
|
+
readonly createdAt: Schema.String;
|
|
111
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
112
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
113
|
+
}>;
|
|
114
|
+
export type DeploymentRecord = typeof DeploymentRecord.Type;
|
|
115
|
+
export declare const MeResponse: Schema.Struct<{
|
|
116
|
+
readonly github: Schema.String;
|
|
117
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
118
|
+
}>;
|
|
119
|
+
export type MeResponse = typeof MeResponse.Type;
|
|
120
|
+
export declare const CliLoginRequest: Schema.Struct<{
|
|
68
121
|
/** A GitHub token for the user (e.g. `gh auth token`); used once to identify them. */
|
|
69
|
-
githubToken:
|
|
70
|
-
}
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
122
|
+
readonly githubToken: Schema.String;
|
|
123
|
+
}>;
|
|
124
|
+
export type CliLoginRequest = typeof CliLoginRequest.Type;
|
|
125
|
+
export declare const CliLoginResponse: Schema.Struct<{
|
|
126
|
+
readonly token: Schema.String;
|
|
127
|
+
readonly github: Schema.String;
|
|
128
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
129
|
+
readonly expiresAt: Schema.String;
|
|
130
|
+
}>;
|
|
131
|
+
export type CliLoginResponse = typeof CliLoginResponse.Type;
|
|
132
|
+
/** GitHub `owner/name`. */
|
|
133
|
+
export declare const REPO_PATTERN: RegExp;
|
|
134
|
+
export declare const CreateAppRequest: Schema.Struct<{
|
|
135
|
+
/** Checked against the naming rules and reserved names by the server. */
|
|
136
|
+
readonly name: Schema.Trim;
|
|
137
|
+
readonly repo: Schema.Trim;
|
|
138
|
+
readonly description: Schema.optional<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>>;
|
|
139
|
+
}>;
|
|
140
|
+
export type CreateAppRequest = typeof CreateAppRequest.Type;
|
|
141
|
+
export declare const UpdateAppRequest: Schema.Struct<{
|
|
142
|
+
readonly description: Schema.optional<Schema.decodeTo<Schema.toType<Schema.String>, Schema.String, never, never>>;
|
|
143
|
+
readonly repo: Schema.optional<Schema.Trim>;
|
|
144
|
+
/** The server removes duplicates. */
|
|
145
|
+
readonly owners: Schema.optional<Schema.$Array<Schema.String>>;
|
|
146
|
+
}>;
|
|
147
|
+
export type UpdateAppRequest = typeof UpdateAppRequest.Type;
|
|
148
|
+
export declare const AppHealth: Schema.Struct<{
|
|
149
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
150
|
+
readonly reqPerMin: Schema.Finite;
|
|
151
|
+
readonly errorRate: Schema.Finite;
|
|
152
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
153
|
+
}>;
|
|
154
|
+
export type AppHealth = typeof AppHealth.Type;
|
|
155
|
+
export declare const AppSummary: Schema.Struct<{
|
|
156
|
+
readonly app: Schema.Struct<{
|
|
157
|
+
readonly name: Schema.String;
|
|
158
|
+
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
159
|
+
readonly repo: Schema.String;
|
|
160
|
+
readonly description: Schema.optional<Schema.String>;
|
|
161
|
+
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
162
|
+
readonly owners: Schema.$Array<Schema.String>;
|
|
163
|
+
readonly createdBy: Schema.String;
|
|
164
|
+
readonly createdAt: Schema.String;
|
|
165
|
+
}>;
|
|
166
|
+
readonly stages: Schema.$Array<Schema.Struct<{
|
|
167
|
+
readonly app: Schema.String;
|
|
168
|
+
readonly stage: Schema.String;
|
|
169
|
+
readonly host: Schema.String;
|
|
170
|
+
readonly url: Schema.String;
|
|
171
|
+
readonly status: Schema.Literals<readonly ["active", "deploying", "failed", "destroying", "destroyed"]>;
|
|
172
|
+
readonly preview: Schema.Boolean;
|
|
173
|
+
readonly currentDeployment: Schema.optional<Schema.String>;
|
|
174
|
+
readonly previousDeployment: Schema.optional<Schema.String>;
|
|
175
|
+
/** Web Function revision ids, for instant rollback. */
|
|
176
|
+
readonly currentRevision: Schema.optional<Schema.String>;
|
|
177
|
+
readonly previousRevision: Schema.optional<Schema.String>;
|
|
178
|
+
readonly createdAt: Schema.String;
|
|
179
|
+
readonly updatedAt: Schema.String;
|
|
180
|
+
}>>;
|
|
103
181
|
/** Prod health over the last hour (null when there is no prod stage). */
|
|
104
|
-
health: {
|
|
105
|
-
up:
|
|
106
|
-
reqPerMin:
|
|
107
|
-
errorRate:
|
|
108
|
-
p95:
|
|
109
|
-
}
|
|
110
|
-
costMonthToDateUsd
|
|
111
|
-
lastDeployment
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
182
|
+
readonly health: Schema.NullOr<Schema.Struct<{
|
|
183
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
184
|
+
readonly reqPerMin: Schema.Finite;
|
|
185
|
+
readonly errorRate: Schema.Finite;
|
|
186
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
187
|
+
}>>;
|
|
188
|
+
readonly costMonthToDateUsd: Schema.optional<Schema.Finite>;
|
|
189
|
+
readonly lastDeployment: Schema.optional<Schema.Struct<{
|
|
190
|
+
readonly id: Schema.String;
|
|
191
|
+
readonly app: Schema.String;
|
|
192
|
+
readonly stage: Schema.String;
|
|
193
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
194
|
+
/** GitHub username, or `ci:<repo>` for OIDC deploys. */
|
|
195
|
+
readonly actor: Schema.String;
|
|
196
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
197
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
198
|
+
readonly message: Schema.optional<Schema.String>;
|
|
199
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
200
|
+
readonly name: Schema.String;
|
|
201
|
+
readonly description: Schema.optional<Schema.String>;
|
|
202
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
203
|
+
readonly server: Schema.optional<Schema.String>;
|
|
204
|
+
readonly static: Schema.optional<Schema.String>;
|
|
205
|
+
readonly build: Schema.optional<Schema.String>;
|
|
206
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
207
|
+
readonly command: Schema.String;
|
|
208
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
209
|
+
}>>;
|
|
210
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
211
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
212
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
213
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
214
|
+
}>>;
|
|
215
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
216
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
217
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
218
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
219
|
+
}>>;
|
|
220
|
+
readonly auth: Schema.Struct<{
|
|
221
|
+
readonly enabled: Schema.Boolean;
|
|
222
|
+
readonly required: Schema.Boolean;
|
|
223
|
+
}>;
|
|
224
|
+
readonly db: Schema.Boolean;
|
|
225
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
226
|
+
readonly batchSize: Schema.withDecodingDefault<Schema.Int, never>;
|
|
227
|
+
readonly maxReceiveCount: Schema.withDecodingDefault<Schema.Int, never>;
|
|
228
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
229
|
+
readonly visibilityTimeoutSeconds: Schema.Finite;
|
|
230
|
+
}>>;
|
|
231
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
232
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
233
|
+
readonly schedule: Schema.String;
|
|
234
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
235
|
+
}>>;
|
|
236
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
237
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
238
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
239
|
+
}>>;
|
|
240
|
+
readonly url: Schema.optional<Schema.String>;
|
|
241
|
+
readonly error: Schema.optional<Schema.String>;
|
|
242
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
243
|
+
readonly ts: Schema.Finite;
|
|
244
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
245
|
+
readonly msg: Schema.String;
|
|
246
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
247
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
248
|
+
}>>;
|
|
249
|
+
readonly createdAt: Schema.String;
|
|
250
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
251
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
252
|
+
}>>;
|
|
253
|
+
}>;
|
|
254
|
+
export type AppSummary = typeof AppSummary.Type;
|
|
255
|
+
export declare const ArtifactFile: Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>;
|
|
256
|
+
export type ArtifactFile = typeof ArtifactFile.Type;
|
|
257
|
+
export declare const PresignedPost: Schema.Struct<{
|
|
258
|
+
readonly url: Schema.String;
|
|
259
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
260
|
+
}>;
|
|
261
|
+
export type PresignedPost = typeof PresignedPost.Type;
|
|
262
|
+
export declare const CreateDeploymentRequest: Schema.Struct<{
|
|
263
|
+
readonly stage: Schema.String;
|
|
264
|
+
/**
|
|
265
|
+
* The evaluated `plat.config.ts` (`ManifestInput`). The server validates it
|
|
266
|
+
* with `parseManifest` and answers 422 with every issue when it's invalid.
|
|
267
|
+
*/
|
|
268
|
+
readonly manifest: Schema.Unknown;
|
|
269
|
+
/** 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"]>>>;
|
|
271
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
272
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
273
|
+
readonly message: Schema.optional<Schema.String>;
|
|
274
|
+
}>;
|
|
275
|
+
export type CreateDeploymentRequest = typeof CreateDeploymentRequest.Encoded;
|
|
276
|
+
export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
277
|
+
readonly deployment: Schema.Struct<{
|
|
278
|
+
readonly id: Schema.String;
|
|
279
|
+
readonly app: Schema.String;
|
|
280
|
+
readonly stage: Schema.String;
|
|
281
|
+
readonly status: Schema.Literals<readonly ["awaiting_upload", "queued", "running", "succeeded", "failed", "rolled_back"]>;
|
|
282
|
+
/** GitHub username, or `ci:<repo>` for OIDC deploys. */
|
|
283
|
+
readonly actor: Schema.String;
|
|
284
|
+
readonly commit: Schema.optional<Schema.String>;
|
|
285
|
+
readonly ref: Schema.optional<Schema.String>;
|
|
286
|
+
readonly message: Schema.optional<Schema.String>;
|
|
287
|
+
readonly manifest: Schema.optional<Schema.Struct<{
|
|
288
|
+
readonly name: Schema.String;
|
|
289
|
+
readonly description: Schema.optional<Schema.String>;
|
|
290
|
+
readonly web: Schema.optional<Schema.Struct<{
|
|
291
|
+
readonly server: Schema.optional<Schema.String>;
|
|
292
|
+
readonly static: Schema.optional<Schema.String>;
|
|
293
|
+
readonly build: Schema.optional<Schema.String>;
|
|
294
|
+
readonly dev: Schema.optional<Schema.Struct<{
|
|
295
|
+
readonly command: Schema.String;
|
|
296
|
+
readonly port: Schema.optional<Schema.Int>;
|
|
297
|
+
}>>;
|
|
298
|
+
readonly spa: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
299
|
+
readonly serverRoutes: Schema.withDecodingDefault<Schema.$Array<Schema.String>, never>;
|
|
300
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
301
|
+
readonly concurrency: Schema.withDecodingDefault<Schema.Int, never>;
|
|
302
|
+
}>>;
|
|
303
|
+
readonly worker: Schema.optional<Schema.Struct<{
|
|
304
|
+
readonly entry: Schema.withDecodingDefault<Schema.String, never>;
|
|
305
|
+
readonly timeoutSeconds: Schema.withDecodingDefault<Schema.Int, never>;
|
|
306
|
+
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
307
|
+
}>>;
|
|
308
|
+
readonly auth: Schema.Struct<{
|
|
309
|
+
readonly enabled: Schema.Boolean;
|
|
310
|
+
readonly required: Schema.Boolean;
|
|
311
|
+
}>;
|
|
312
|
+
readonly db: Schema.Boolean;
|
|
313
|
+
readonly queues: Schema.$Record<Schema.String, Schema.Struct<{
|
|
314
|
+
readonly batchSize: Schema.withDecodingDefault<Schema.Int, never>;
|
|
315
|
+
readonly maxReceiveCount: Schema.withDecodingDefault<Schema.Int, never>;
|
|
316
|
+
readonly concurrency: Schema.optional<Schema.Int>;
|
|
317
|
+
readonly visibilityTimeoutSeconds: Schema.Finite;
|
|
318
|
+
}>>;
|
|
319
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
320
|
+
readonly crons: Schema.$Record<Schema.String, Schema.Struct<{
|
|
321
|
+
readonly schedule: Schema.String;
|
|
322
|
+
readonly timezone: Schema.optional<Schema.String>;
|
|
323
|
+
}>>;
|
|
324
|
+
readonly storage: Schema.$Array<Schema.String>;
|
|
325
|
+
readonly secrets: Schema.$Array<Schema.String>;
|
|
326
|
+
readonly env: Schema.$Record<Schema.String, Schema.String>;
|
|
327
|
+
}>>;
|
|
328
|
+
readonly url: Schema.optional<Schema.String>;
|
|
329
|
+
readonly error: Schema.optional<Schema.String>;
|
|
330
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
331
|
+
readonly ts: Schema.Finite;
|
|
332
|
+
readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
|
|
333
|
+
readonly msg: Schema.String;
|
|
334
|
+
/** Resource the step acted on, e.g. `table foo--prod`. */
|
|
335
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
336
|
+
}>>;
|
|
337
|
+
readonly createdAt: Schema.String;
|
|
338
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
339
|
+
readonly finishedAt: Schema.optional<Schema.String>;
|
|
340
|
+
}>;
|
|
341
|
+
/** A form for each artifact the request listed, plus `manifest.json`. */
|
|
342
|
+
readonly uploads: Schema.Struct<{
|
|
343
|
+
readonly 'manifest.json': Schema.optional<Schema.Struct<{
|
|
344
|
+
readonly url: Schema.String;
|
|
345
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly 'server.zip': Schema.optional<Schema.Struct<{
|
|
348
|
+
readonly url: Schema.String;
|
|
349
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
350
|
+
}>>;
|
|
351
|
+
readonly 'worker.zip': Schema.optional<Schema.Struct<{
|
|
352
|
+
readonly url: Schema.String;
|
|
353
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
354
|
+
}>>;
|
|
355
|
+
readonly 'static.zip': Schema.optional<Schema.Struct<{
|
|
356
|
+
readonly url: Schema.String;
|
|
357
|
+
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
358
|
+
}>>;
|
|
359
|
+
}>;
|
|
360
|
+
}>;
|
|
361
|
+
export type CreateDeploymentResponse = typeof CreateDeploymentResponse.Type;
|
|
362
|
+
export declare const RollbackRequest: Schema.Struct<{
|
|
363
|
+
/** Default: the stage's previous deployment. */
|
|
364
|
+
readonly deploymentId: Schema.optional<Schema.String>;
|
|
365
|
+
}>;
|
|
366
|
+
export type RollbackRequest = typeof RollbackRequest.Type;
|
|
367
|
+
export declare const RollbackResponse: Schema.Struct<{
|
|
368
|
+
/** The deployment the stage routes to now. */
|
|
369
|
+
readonly currentDeployment: Schema.String;
|
|
370
|
+
readonly url: Schema.String;
|
|
371
|
+
}>;
|
|
372
|
+
export type RollbackResponse = typeof RollbackResponse.Type;
|
|
373
|
+
/** Answered with 202: the stage is being torn down. */
|
|
374
|
+
export declare const StageDestroying: Schema.Struct<{
|
|
375
|
+
readonly status: Schema.Literal<"destroying">;
|
|
376
|
+
}>;
|
|
377
|
+
/** Answered with 200: there was nothing left to destroy. */
|
|
378
|
+
export declare const StageDestroyed: Schema.Struct<{
|
|
379
|
+
readonly status: Schema.Literal<"destroyed">;
|
|
380
|
+
}>;
|
|
381
|
+
export declare const DestroyStageResponse: Schema.Union<readonly [Schema.Struct<{
|
|
382
|
+
readonly status: Schema.Literal<"destroying">;
|
|
383
|
+
}>, Schema.Struct<{
|
|
384
|
+
readonly status: Schema.Literal<"destroyed">;
|
|
385
|
+
}>]>;
|
|
386
|
+
export type DestroyStageResponse = typeof DestroyStageResponse.Type;
|
|
387
|
+
export declare const MetricsPoint: Schema.Struct<{
|
|
388
|
+
readonly ts: Schema.String;
|
|
389
|
+
readonly req: Schema.Finite;
|
|
390
|
+
readonly s2xx: Schema.Finite;
|
|
391
|
+
readonly s3xx: Schema.Finite;
|
|
392
|
+
readonly s4xx: Schema.Finite;
|
|
393
|
+
readonly s5xx: Schema.Finite;
|
|
394
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
395
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
396
|
+
readonly p99: Schema.NullOr<Schema.Finite>;
|
|
397
|
+
readonly cold: Schema.Finite;
|
|
398
|
+
}>;
|
|
399
|
+
export type MetricsPoint = typeof MetricsPoint.Type;
|
|
400
|
+
export declare const MetricsResponse: Schema.Struct<{
|
|
401
|
+
readonly app: Schema.String;
|
|
402
|
+
readonly stage: Schema.String;
|
|
403
|
+
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
404
|
+
readonly points: Schema.$Array<Schema.Struct<{
|
|
405
|
+
readonly ts: Schema.String;
|
|
406
|
+
readonly req: Schema.Finite;
|
|
407
|
+
readonly s2xx: Schema.Finite;
|
|
408
|
+
readonly s3xx: Schema.Finite;
|
|
409
|
+
readonly s4xx: Schema.Finite;
|
|
410
|
+
readonly s5xx: Schema.Finite;
|
|
411
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
412
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
413
|
+
readonly p99: Schema.NullOr<Schema.Finite>;
|
|
414
|
+
readonly cold: Schema.Finite;
|
|
415
|
+
}>>;
|
|
416
|
+
}>;
|
|
417
|
+
export type MetricsResponse = typeof MetricsResponse.Type;
|
|
418
|
+
export declare const RouteStats: Schema.Struct<{
|
|
419
|
+
readonly route: Schema.String;
|
|
420
|
+
readonly method: Schema.String;
|
|
421
|
+
readonly req: Schema.Finite;
|
|
422
|
+
readonly s5xx: Schema.Finite;
|
|
423
|
+
readonly s4xx: Schema.Finite;
|
|
424
|
+
readonly p50: Schema.NullOr<Schema.Finite>;
|
|
425
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
426
|
+
}>;
|
|
427
|
+
export type RouteStats = typeof RouteStats.Type;
|
|
428
|
+
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
429
|
+
export type JobKind = typeof JobKind.Type;
|
|
430
|
+
export declare const JobStats: Schema.Struct<{
|
|
431
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
432
|
+
readonly name: Schema.String;
|
|
433
|
+
readonly ok: Schema.Finite;
|
|
434
|
+
readonly error: Schema.Finite;
|
|
435
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
436
|
+
readonly lastRun: Schema.optional<Schema.String>;
|
|
437
|
+
}>;
|
|
438
|
+
export type JobStats = typeof JobStats.Type;
|
|
439
|
+
export declare const JobsResponse: Schema.Struct<{
|
|
440
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
441
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
442
|
+
readonly name: Schema.String;
|
|
443
|
+
readonly ok: Schema.Finite;
|
|
444
|
+
readonly error: Schema.Finite;
|
|
445
|
+
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
446
|
+
readonly lastRun: Schema.optional<Schema.String>;
|
|
447
|
+
}>>;
|
|
448
|
+
readonly crons: Schema.$Array<Schema.Struct<{
|
|
449
|
+
readonly name: Schema.String;
|
|
450
|
+
readonly schedule: Schema.String;
|
|
451
|
+
}>>;
|
|
452
|
+
}>;
|
|
453
|
+
export type JobsResponse = typeof JobsResponse.Type;
|
|
454
|
+
export declare const QueueStats: Schema.Struct<{
|
|
455
|
+
readonly name: Schema.String;
|
|
456
|
+
readonly visible: Schema.Finite;
|
|
457
|
+
readonly inFlight: Schema.Finite;
|
|
458
|
+
readonly deadLetter: Schema.Finite;
|
|
459
|
+
readonly oldestAgeSeconds: Schema.NullOr<Schema.Finite>;
|
|
460
|
+
}>;
|
|
461
|
+
export type QueueStats = typeof QueueStats.Type;
|
|
462
|
+
export declare const ErrorStatus: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
463
|
+
export type ErrorStatus = typeof ErrorStatus.Type;
|
|
464
|
+
export declare const ErrorGroup: Schema.Struct<{
|
|
465
|
+
readonly fingerprint: Schema.String;
|
|
466
|
+
readonly stage: Schema.String;
|
|
467
|
+
readonly name: Schema.String;
|
|
468
|
+
readonly message: Schema.String;
|
|
469
|
+
readonly source: Schema.String;
|
|
470
|
+
readonly count: Schema.Finite;
|
|
471
|
+
readonly firstSeen: Schema.String;
|
|
472
|
+
readonly lastSeen: Schema.String;
|
|
473
|
+
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
474
|
+
readonly sample: Schema.Struct<{
|
|
475
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
476
|
+
readonly route: Schema.optional<Schema.String>;
|
|
477
|
+
readonly job: Schema.optional<Schema.String>;
|
|
478
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
479
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
480
|
+
}>;
|
|
481
|
+
}>;
|
|
482
|
+
export type ErrorGroup = typeof ErrorGroup.Type;
|
|
483
|
+
export declare const UpdateErrorRequest: Schema.Struct<{
|
|
484
|
+
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
485
|
+
}>;
|
|
486
|
+
export type UpdateErrorRequest = typeof UpdateErrorRequest.Type;
|
|
487
|
+
export declare const LogLine: Schema.Struct<{
|
|
488
|
+
readonly ts: Schema.String;
|
|
489
|
+
readonly stream: Schema.Literals<readonly ["web", "worker"]>;
|
|
490
|
+
readonly level: Schema.optional<Schema.String>;
|
|
491
|
+
readonly message: Schema.String;
|
|
492
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
493
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
494
|
+
readonly _p: Schema.Literal<1>;
|
|
495
|
+
readonly ts: Schema.Finite;
|
|
496
|
+
readonly app: Schema.String;
|
|
497
|
+
readonly stage: Schema.String;
|
|
498
|
+
readonly rev: Schema.String;
|
|
499
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
500
|
+
readonly span: Schema.optional<Schema.String>;
|
|
501
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
502
|
+
readonly t: Schema.Literal<"req">;
|
|
503
|
+
readonly method: Schema.String;
|
|
504
|
+
readonly route: Schema.String;
|
|
505
|
+
readonly path: Schema.String;
|
|
506
|
+
readonly status: Schema.Finite;
|
|
507
|
+
readonly dur: Schema.Finite;
|
|
508
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
509
|
+
readonly country: Schema.optional<Schema.String>;
|
|
510
|
+
readonly user: Schema.optional<Schema.String>;
|
|
511
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
512
|
+
}>, Schema.Struct<{
|
|
513
|
+
readonly _p: Schema.Literal<1>;
|
|
514
|
+
readonly ts: Schema.Finite;
|
|
515
|
+
readonly app: Schema.String;
|
|
516
|
+
readonly stage: Schema.String;
|
|
517
|
+
readonly rev: Schema.String;
|
|
518
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
519
|
+
readonly span: Schema.optional<Schema.String>;
|
|
520
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
521
|
+
readonly t: Schema.Literal<"err">;
|
|
522
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
523
|
+
readonly name: Schema.String;
|
|
524
|
+
readonly message: Schema.String;
|
|
525
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
526
|
+
readonly route: Schema.optional<Schema.String>;
|
|
527
|
+
readonly job: Schema.optional<Schema.String>;
|
|
528
|
+
readonly fingerprint: Schema.String;
|
|
529
|
+
}>, Schema.Struct<{
|
|
530
|
+
readonly _p: Schema.Literal<1>;
|
|
531
|
+
readonly ts: Schema.Finite;
|
|
532
|
+
readonly app: Schema.String;
|
|
533
|
+
readonly stage: Schema.String;
|
|
534
|
+
readonly rev: Schema.String;
|
|
535
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
536
|
+
readonly span: Schema.optional<Schema.String>;
|
|
537
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
538
|
+
readonly t: Schema.Literal<"job">;
|
|
539
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
540
|
+
readonly name: Schema.String;
|
|
541
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
542
|
+
readonly dur: Schema.Finite;
|
|
543
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
544
|
+
}>, Schema.Struct<{
|
|
545
|
+
readonly _p: Schema.Literal<1>;
|
|
546
|
+
readonly ts: Schema.Finite;
|
|
547
|
+
readonly app: Schema.String;
|
|
548
|
+
readonly stage: Schema.String;
|
|
549
|
+
readonly rev: Schema.String;
|
|
550
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
551
|
+
readonly span: Schema.optional<Schema.String>;
|
|
552
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
553
|
+
readonly t: Schema.Literal<"span">;
|
|
554
|
+
readonly op: Schema.String;
|
|
555
|
+
readonly name: Schema.optional<Schema.String>;
|
|
556
|
+
readonly dur: Schema.Finite;
|
|
557
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
558
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
559
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
560
|
+
readonly _p: Schema.Literal<1>;
|
|
561
|
+
readonly ts: Schema.Finite;
|
|
562
|
+
readonly app: Schema.String;
|
|
563
|
+
readonly stage: Schema.String;
|
|
564
|
+
readonly rev: Schema.String;
|
|
565
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
566
|
+
readonly span: Schema.optional<Schema.String>;
|
|
567
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
568
|
+
readonly t: Schema.Literal<"log">;
|
|
569
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
570
|
+
readonly msg: Schema.String;
|
|
571
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
572
|
+
readonly _p: Schema.Literal<1>;
|
|
573
|
+
readonly ts: Schema.Finite;
|
|
574
|
+
readonly app: Schema.String;
|
|
575
|
+
readonly stage: Schema.String;
|
|
576
|
+
readonly rev: Schema.String;
|
|
577
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
578
|
+
readonly span: Schema.optional<Schema.String>;
|
|
579
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
580
|
+
readonly t: Schema.Literal<"metric">;
|
|
581
|
+
readonly name: Schema.String;
|
|
582
|
+
readonly value: Schema.Finite;
|
|
583
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
584
|
+
}>, Schema.Struct<{
|
|
585
|
+
readonly _p: Schema.Literal<1>;
|
|
586
|
+
readonly ts: Schema.Finite;
|
|
587
|
+
readonly app: Schema.String;
|
|
588
|
+
readonly stage: Schema.String;
|
|
589
|
+
readonly rev: Schema.String;
|
|
590
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
591
|
+
readonly span: Schema.optional<Schema.String>;
|
|
592
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
593
|
+
readonly t: Schema.Literal<"env">;
|
|
594
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
595
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
596
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
597
|
+
}>]>>;
|
|
598
|
+
}>;
|
|
599
|
+
export type LogLine = typeof LogLine.Type;
|
|
600
|
+
export declare const LogsResponse: Schema.Struct<{
|
|
601
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
602
|
+
readonly ts: Schema.String;
|
|
603
|
+
readonly stream: Schema.Literals<readonly ["web", "worker"]>;
|
|
604
|
+
readonly level: Schema.optional<Schema.String>;
|
|
605
|
+
readonly message: Schema.String;
|
|
606
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
607
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
608
|
+
readonly _p: Schema.Literal<1>;
|
|
609
|
+
readonly ts: Schema.Finite;
|
|
610
|
+
readonly app: Schema.String;
|
|
611
|
+
readonly stage: Schema.String;
|
|
612
|
+
readonly rev: Schema.String;
|
|
613
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
614
|
+
readonly span: Schema.optional<Schema.String>;
|
|
615
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
616
|
+
readonly t: Schema.Literal<"req">;
|
|
617
|
+
readonly method: Schema.String;
|
|
618
|
+
readonly route: Schema.String;
|
|
619
|
+
readonly path: Schema.String;
|
|
620
|
+
readonly status: Schema.Finite;
|
|
621
|
+
readonly dur: Schema.Finite;
|
|
622
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
623
|
+
readonly country: Schema.optional<Schema.String>;
|
|
624
|
+
readonly user: Schema.optional<Schema.String>;
|
|
625
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
626
|
+
}>, Schema.Struct<{
|
|
627
|
+
readonly _p: Schema.Literal<1>;
|
|
628
|
+
readonly ts: Schema.Finite;
|
|
629
|
+
readonly app: Schema.String;
|
|
630
|
+
readonly stage: Schema.String;
|
|
631
|
+
readonly rev: Schema.String;
|
|
632
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
633
|
+
readonly span: Schema.optional<Schema.String>;
|
|
634
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
635
|
+
readonly t: Schema.Literal<"err">;
|
|
636
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
637
|
+
readonly name: Schema.String;
|
|
638
|
+
readonly message: Schema.String;
|
|
639
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
640
|
+
readonly route: Schema.optional<Schema.String>;
|
|
641
|
+
readonly job: Schema.optional<Schema.String>;
|
|
642
|
+
readonly fingerprint: Schema.String;
|
|
643
|
+
}>, Schema.Struct<{
|
|
644
|
+
readonly _p: Schema.Literal<1>;
|
|
645
|
+
readonly ts: Schema.Finite;
|
|
646
|
+
readonly app: Schema.String;
|
|
647
|
+
readonly stage: Schema.String;
|
|
648
|
+
readonly rev: Schema.String;
|
|
649
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
650
|
+
readonly span: Schema.optional<Schema.String>;
|
|
651
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
652
|
+
readonly t: Schema.Literal<"job">;
|
|
653
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
654
|
+
readonly name: Schema.String;
|
|
655
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
656
|
+
readonly dur: Schema.Finite;
|
|
657
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
658
|
+
}>, Schema.Struct<{
|
|
659
|
+
readonly _p: Schema.Literal<1>;
|
|
660
|
+
readonly ts: Schema.Finite;
|
|
661
|
+
readonly app: Schema.String;
|
|
662
|
+
readonly stage: Schema.String;
|
|
663
|
+
readonly rev: Schema.String;
|
|
664
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
665
|
+
readonly span: Schema.optional<Schema.String>;
|
|
666
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
667
|
+
readonly t: Schema.Literal<"span">;
|
|
668
|
+
readonly op: Schema.String;
|
|
669
|
+
readonly name: Schema.optional<Schema.String>;
|
|
670
|
+
readonly dur: Schema.Finite;
|
|
671
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
672
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
673
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
674
|
+
readonly _p: Schema.Literal<1>;
|
|
675
|
+
readonly ts: Schema.Finite;
|
|
676
|
+
readonly app: Schema.String;
|
|
677
|
+
readonly stage: Schema.String;
|
|
678
|
+
readonly rev: Schema.String;
|
|
679
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
680
|
+
readonly span: Schema.optional<Schema.String>;
|
|
681
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
682
|
+
readonly t: Schema.Literal<"log">;
|
|
683
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
684
|
+
readonly msg: Schema.String;
|
|
685
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
686
|
+
readonly _p: Schema.Literal<1>;
|
|
687
|
+
readonly ts: Schema.Finite;
|
|
688
|
+
readonly app: Schema.String;
|
|
689
|
+
readonly stage: Schema.String;
|
|
690
|
+
readonly rev: Schema.String;
|
|
691
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
692
|
+
readonly span: Schema.optional<Schema.String>;
|
|
693
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
694
|
+
readonly t: Schema.Literal<"metric">;
|
|
695
|
+
readonly name: Schema.String;
|
|
696
|
+
readonly value: Schema.Finite;
|
|
697
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
698
|
+
}>, Schema.Struct<{
|
|
699
|
+
readonly _p: Schema.Literal<1>;
|
|
700
|
+
readonly ts: Schema.Finite;
|
|
701
|
+
readonly app: Schema.String;
|
|
702
|
+
readonly stage: Schema.String;
|
|
703
|
+
readonly rev: Schema.String;
|
|
704
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
705
|
+
readonly span: Schema.optional<Schema.String>;
|
|
706
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
707
|
+
readonly t: Schema.Literal<"env">;
|
|
708
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
709
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
710
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
711
|
+
}>]>>;
|
|
712
|
+
}>>;
|
|
713
|
+
readonly nextToken: Schema.optional<Schema.String>;
|
|
714
|
+
}>;
|
|
715
|
+
export type LogsResponse = typeof LogsResponse.Type;
|
|
716
|
+
export declare const TraceResponse: Schema.Struct<{
|
|
717
|
+
readonly trace: Schema.String;
|
|
718
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
719
|
+
readonly _p: Schema.Literal<1>;
|
|
720
|
+
readonly ts: Schema.Finite;
|
|
721
|
+
readonly app: Schema.String;
|
|
722
|
+
readonly stage: Schema.String;
|
|
723
|
+
readonly rev: Schema.String;
|
|
724
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
725
|
+
readonly span: Schema.optional<Schema.String>;
|
|
726
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
727
|
+
readonly t: Schema.Literal<"req">;
|
|
728
|
+
readonly method: Schema.String;
|
|
729
|
+
readonly route: Schema.String;
|
|
730
|
+
readonly path: Schema.String;
|
|
731
|
+
readonly status: Schema.Finite;
|
|
732
|
+
readonly dur: Schema.Finite;
|
|
733
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
734
|
+
readonly country: Schema.optional<Schema.String>;
|
|
735
|
+
readonly user: Schema.optional<Schema.String>;
|
|
736
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
737
|
+
}>, Schema.Struct<{
|
|
738
|
+
readonly _p: Schema.Literal<1>;
|
|
739
|
+
readonly ts: Schema.Finite;
|
|
740
|
+
readonly app: Schema.String;
|
|
741
|
+
readonly stage: Schema.String;
|
|
742
|
+
readonly rev: Schema.String;
|
|
743
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
744
|
+
readonly span: Schema.optional<Schema.String>;
|
|
745
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
746
|
+
readonly t: Schema.Literal<"err">;
|
|
747
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
748
|
+
readonly name: Schema.String;
|
|
749
|
+
readonly message: Schema.String;
|
|
750
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
751
|
+
readonly route: Schema.optional<Schema.String>;
|
|
752
|
+
readonly job: Schema.optional<Schema.String>;
|
|
753
|
+
readonly fingerprint: Schema.String;
|
|
754
|
+
}>, Schema.Struct<{
|
|
755
|
+
readonly _p: Schema.Literal<1>;
|
|
756
|
+
readonly ts: Schema.Finite;
|
|
757
|
+
readonly app: Schema.String;
|
|
758
|
+
readonly stage: Schema.String;
|
|
759
|
+
readonly rev: Schema.String;
|
|
760
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
761
|
+
readonly span: Schema.optional<Schema.String>;
|
|
762
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
763
|
+
readonly t: Schema.Literal<"job">;
|
|
764
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
765
|
+
readonly name: Schema.String;
|
|
766
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
767
|
+
readonly dur: Schema.Finite;
|
|
768
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
769
|
+
}>, Schema.Struct<{
|
|
770
|
+
readonly _p: Schema.Literal<1>;
|
|
771
|
+
readonly ts: Schema.Finite;
|
|
772
|
+
readonly app: Schema.String;
|
|
773
|
+
readonly stage: Schema.String;
|
|
774
|
+
readonly rev: Schema.String;
|
|
775
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
776
|
+
readonly span: Schema.optional<Schema.String>;
|
|
777
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
778
|
+
readonly t: Schema.Literal<"span">;
|
|
779
|
+
readonly op: Schema.String;
|
|
780
|
+
readonly name: Schema.optional<Schema.String>;
|
|
781
|
+
readonly dur: Schema.Finite;
|
|
782
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
783
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
784
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
785
|
+
readonly _p: Schema.Literal<1>;
|
|
786
|
+
readonly ts: Schema.Finite;
|
|
787
|
+
readonly app: Schema.String;
|
|
788
|
+
readonly stage: Schema.String;
|
|
789
|
+
readonly rev: Schema.String;
|
|
790
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
791
|
+
readonly span: Schema.optional<Schema.String>;
|
|
792
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
793
|
+
readonly t: Schema.Literal<"log">;
|
|
794
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
795
|
+
readonly msg: Schema.String;
|
|
796
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
797
|
+
readonly _p: Schema.Literal<1>;
|
|
798
|
+
readonly ts: Schema.Finite;
|
|
799
|
+
readonly app: Schema.String;
|
|
800
|
+
readonly stage: Schema.String;
|
|
801
|
+
readonly rev: Schema.String;
|
|
802
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
803
|
+
readonly span: Schema.optional<Schema.String>;
|
|
804
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
805
|
+
readonly t: Schema.Literal<"metric">;
|
|
806
|
+
readonly name: Schema.String;
|
|
807
|
+
readonly value: Schema.Finite;
|
|
808
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
809
|
+
}>, Schema.Struct<{
|
|
810
|
+
readonly _p: Schema.Literal<1>;
|
|
811
|
+
readonly ts: Schema.Finite;
|
|
812
|
+
readonly app: Schema.String;
|
|
813
|
+
readonly stage: Schema.String;
|
|
814
|
+
readonly rev: Schema.String;
|
|
815
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
816
|
+
readonly span: Schema.optional<Schema.String>;
|
|
817
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
818
|
+
readonly t: Schema.Literal<"env">;
|
|
819
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
820
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
821
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
822
|
+
}>]>>;
|
|
823
|
+
}>;
|
|
824
|
+
export type TraceResponse = typeof TraceResponse.Type;
|
|
825
|
+
export declare const UptimePoint: Schema.Struct<{
|
|
826
|
+
readonly ts: Schema.String;
|
|
827
|
+
readonly ok: Schema.Boolean;
|
|
828
|
+
readonly status: Schema.Finite;
|
|
829
|
+
readonly ms: Schema.Finite;
|
|
830
|
+
}>;
|
|
831
|
+
export type UptimePoint = typeof UptimePoint.Type;
|
|
832
|
+
export declare const CostResponse: Schema.Struct<{
|
|
833
|
+
readonly app: Schema.String;
|
|
834
|
+
readonly currency: Schema.Literal<"USD">;
|
|
835
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
836
|
+
readonly date: Schema.String;
|
|
837
|
+
readonly usd: Schema.Finite;
|
|
838
|
+
}>>;
|
|
839
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
840
|
+
}>;
|
|
841
|
+
export type CostResponse = typeof CostResponse.Type;
|
|
842
|
+
export declare const SecretInfo: Schema.Struct<{
|
|
843
|
+
readonly name: Schema.String;
|
|
844
|
+
readonly scope: Schema.Literals<readonly ["stage", "shared"]>;
|
|
845
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
846
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
847
|
+
}>;
|
|
848
|
+
export type SecretInfo = typeof SecretInfo.Type;
|
|
849
|
+
export declare const SecretsResponse: Schema.Struct<{
|
|
850
|
+
readonly secrets: Schema.$Array<Schema.Struct<{
|
|
851
|
+
readonly name: Schema.String;
|
|
852
|
+
readonly scope: Schema.Literals<readonly ["stage", "shared"]>;
|
|
853
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
854
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
855
|
+
}>>;
|
|
856
|
+
/** Names `plat.config.ts` declares on the live deployment. */
|
|
857
|
+
readonly declared: Schema.$Array<Schema.String>;
|
|
858
|
+
readonly missing: Schema.$Array<Schema.String>;
|
|
859
|
+
}>;
|
|
860
|
+
export type SecretsResponse = typeof SecretsResponse.Type;
|
|
861
|
+
export declare const PutSecretRequest: Schema.Struct<{
|
|
862
|
+
readonly value: Schema.String;
|
|
863
|
+
}>;
|
|
864
|
+
export type PutSecretRequest = typeof PutSecretRequest.Type;
|
|
865
|
+
/** `GET /v1/apps/:app/data/collections`. */
|
|
866
|
+
export declare const DataCollections: Schema.Struct<{
|
|
867
|
+
/**
|
|
868
|
+
* Whether the stage has a table. False when `db` is off in plat.config.ts or
|
|
869
|
+
* the stage was never deployed; a table kept after turning `db` off counts.
|
|
870
|
+
*/
|
|
871
|
+
readonly database: Schema.Boolean;
|
|
872
|
+
/** Item counts come from a bounded scan sample, so large collections are undercounted. */
|
|
873
|
+
readonly collections: Schema.$Array<Schema.Struct<{
|
|
874
|
+
readonly name: Schema.String;
|
|
875
|
+
readonly sampled: Schema.Finite;
|
|
876
|
+
}>>;
|
|
877
|
+
}>;
|
|
878
|
+
export type DataCollections = typeof DataCollections.Type;
|
|
879
|
+
export declare const DataPage: Schema.Struct<{
|
|
880
|
+
readonly items: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
881
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
882
|
+
}>;
|
|
883
|
+
export type DataPage = typeof DataPage.Type;
|
|
884
|
+
export declare const StoredObjectInfo: Schema.Struct<{
|
|
885
|
+
readonly key: Schema.String;
|
|
886
|
+
readonly size: Schema.Finite;
|
|
887
|
+
readonly lastModified: Schema.optional<Schema.String>;
|
|
888
|
+
}>;
|
|
889
|
+
export type StoredObjectInfo = typeof StoredObjectInfo.Type;
|
|
890
|
+
/** `GET /v1/apps/:app/storage`: the declared stores without `?store=`, a listing with it. */
|
|
891
|
+
export declare const StorageResponse: Schema.Union<readonly [Schema.Struct<{
|
|
892
|
+
readonly stores: Schema.$Array<Schema.String>;
|
|
893
|
+
}>, Schema.Struct<{
|
|
894
|
+
readonly objects: Schema.$Array<Schema.Struct<{
|
|
895
|
+
readonly key: Schema.String;
|
|
896
|
+
readonly size: Schema.Finite;
|
|
897
|
+
readonly lastModified: Schema.optional<Schema.String>;
|
|
898
|
+
}>>;
|
|
899
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
900
|
+
}>]>;
|
|
901
|
+
export type StorageResponse = typeof StorageResponse.Type;
|
|
902
|
+
export declare const UrlResponse: Schema.Struct<{
|
|
903
|
+
readonly url: Schema.String;
|
|
904
|
+
}>;
|
|
905
|
+
export type UrlResponse = typeof UrlResponse.Type;
|
|
906
|
+
export declare const CronRunResponse: Schema.Struct<{
|
|
907
|
+
readonly started: Schema.String;
|
|
908
|
+
}>;
|
|
909
|
+
export type CronRunResponse = typeof CronRunResponse.Type;
|
|
910
|
+
export declare const RedriveResponse: Schema.Struct<{
|
|
911
|
+
readonly taskHandle: Schema.String;
|
|
912
|
+
}>;
|
|
913
|
+
export type RedriveResponse = typeof RedriveResponse.Type;
|
|
914
|
+
export declare const AdminOverview: Schema.Struct<{
|
|
915
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
916
|
+
readonly github: Schema.String;
|
|
917
|
+
readonly role: Schema.Literals<readonly ["admin", "member"]>;
|
|
918
|
+
}>>;
|
|
919
|
+
readonly limits: Schema.Struct<{
|
|
920
|
+
readonly appsPerMember: Schema.Finite;
|
|
921
|
+
readonly stagesPerApp: Schema.Finite;
|
|
922
|
+
}>;
|
|
923
|
+
readonly apps: Schema.Finite;
|
|
924
|
+
readonly stages: Schema.Finite;
|
|
925
|
+
readonly previews: Schema.Finite;
|
|
926
|
+
/** Apps with a stage whose uptime check is failing. */
|
|
927
|
+
readonly down: Schema.$Array<Schema.String>;
|
|
928
|
+
readonly cost: Schema.Struct<{
|
|
929
|
+
readonly total: Schema.NullOr<Schema.Struct<{
|
|
930
|
+
readonly app: Schema.String;
|
|
931
|
+
readonly currency: Schema.Literal<"USD">;
|
|
932
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
933
|
+
readonly date: Schema.String;
|
|
934
|
+
readonly usd: Schema.Finite;
|
|
935
|
+
}>>;
|
|
936
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
937
|
+
}>>;
|
|
938
|
+
readonly shared: Schema.NullOr<Schema.Struct<{
|
|
939
|
+
readonly app: Schema.String;
|
|
940
|
+
readonly currency: Schema.Literal<"USD">;
|
|
941
|
+
readonly days: Schema.$Array<Schema.Struct<{
|
|
942
|
+
readonly date: Schema.String;
|
|
943
|
+
readonly usd: Schema.Finite;
|
|
944
|
+
}>>;
|
|
945
|
+
readonly monthToDateUsd: Schema.Finite;
|
|
946
|
+
}>>;
|
|
947
|
+
}>;
|
|
948
|
+
}>;
|
|
949
|
+
export type AdminOverview = typeof AdminOverview.Type;
|
|
950
|
+
/** Body of every API error, whatever the status. */
|
|
951
|
+
export declare const ApiErrorBody: Schema.Struct<{
|
|
952
|
+
readonly error: Schema.Struct<{
|
|
953
|
+
readonly code: Schema.String;
|
|
954
|
+
readonly message: Schema.String;
|
|
201
955
|
}>;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
export interface SecretInfo {
|
|
205
|
-
name: string;
|
|
206
|
-
scope: 'stage' | 'shared';
|
|
207
|
-
stage?: string;
|
|
208
|
-
updatedAt?: string;
|
|
209
|
-
}
|
|
210
|
-
export interface DataPage {
|
|
211
|
-
items: Record<string, unknown>[];
|
|
212
|
-
cursor?: string;
|
|
213
|
-
}
|
|
214
|
-
export interface ApiErrorBody {
|
|
215
|
-
error: {
|
|
216
|
-
code: string;
|
|
217
|
-
message: string;
|
|
218
|
-
};
|
|
219
|
-
}
|
|
956
|
+
}>;
|
|
957
|
+
export type ApiErrorBody = typeof ApiErrorBody.Type;
|