@lessly/sdk-app 0.4.0 → 1.0.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/client.gen-B9FjzHej.d.cts +3314 -0
- package/dist/client.gen-B9FjzHej.d.ts +3314 -0
- package/dist/deployment/index.d.cts +107 -108
- package/dist/deployment/index.d.ts +107 -108
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/playground/index.d.cts +1 -1
- package/dist/playground/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/gen/types.gen.ts +1794 -188
- package/dist/client.gen-DH0z4Tfa.d.cts +0 -1711
- package/dist/client.gen-DH0z4Tfa.d.ts +0 -1711
package/src/gen/types.gen.ts
CHANGED
|
@@ -9,26 +9,69 @@ comparator: ("gt" | "lt")
|
|
|
9
9
|
targetKind: ("service" | "managed-service")
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export interface DeploymentAlertCreateOutput {
|
|
13
|
+
id: string
|
|
14
|
+
state: ("ok" | "firing")
|
|
15
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
|
|
16
|
+
enabled: boolean
|
|
17
|
+
targetId: string
|
|
18
|
+
createdAt: string
|
|
19
|
+
productId: string
|
|
20
|
+
threshold: number
|
|
21
|
+
updatedAt: string
|
|
22
|
+
comparator: ("gt" | "lt")
|
|
23
|
+
targetKind: ("service" | "managed-service")
|
|
24
|
+
environmentId: string
|
|
25
|
+
lastEvaluatedAt: (string | null)
|
|
26
|
+
lastStateChangeAt: (string | null)
|
|
27
|
+
}
|
|
13
28
|
|
|
14
29
|
export interface DeploymentAlertDeleteInput {
|
|
15
30
|
id: string
|
|
16
31
|
}
|
|
17
32
|
|
|
18
|
-
export
|
|
33
|
+
export interface DeploymentAlertDeleteOutput {
|
|
34
|
+
deleted: boolean
|
|
35
|
+
}
|
|
19
36
|
|
|
20
37
|
export interface DeploymentAlertEventsListInput {
|
|
21
38
|
limit?: number
|
|
22
39
|
environmentId: string
|
|
23
40
|
}
|
|
24
41
|
|
|
25
|
-
export type DeploymentAlertEventsListOutput =
|
|
42
|
+
export type DeploymentAlertEventsListOutput = {
|
|
43
|
+
id: string
|
|
44
|
+
type: ("firing" | "resolved")
|
|
45
|
+
value: number
|
|
46
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
|
|
47
|
+
ruleId: string
|
|
48
|
+
targetId: string
|
|
49
|
+
createdAt: string
|
|
50
|
+
productId: string
|
|
51
|
+
threshold: number
|
|
52
|
+
targetKind: ("service" | "managed-service")
|
|
53
|
+
}[]
|
|
26
54
|
|
|
27
55
|
export interface DeploymentAlertListInput {
|
|
28
56
|
environmentId: string
|
|
29
57
|
}
|
|
30
58
|
|
|
31
|
-
export type DeploymentAlertListOutput =
|
|
59
|
+
export type DeploymentAlertListOutput = {
|
|
60
|
+
id: string
|
|
61
|
+
state: ("ok" | "firing")
|
|
62
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
|
|
63
|
+
enabled: boolean
|
|
64
|
+
targetId: string
|
|
65
|
+
createdAt: string
|
|
66
|
+
productId: string
|
|
67
|
+
threshold: number
|
|
68
|
+
updatedAt: string
|
|
69
|
+
comparator: ("gt" | "lt")
|
|
70
|
+
targetKind: ("service" | "managed-service")
|
|
71
|
+
environmentId: string
|
|
72
|
+
lastEvaluatedAt: (string | null)
|
|
73
|
+
lastStateChangeAt: (string | null)
|
|
74
|
+
}[]
|
|
32
75
|
|
|
33
76
|
export interface DeploymentAlertUpdateInput {
|
|
34
77
|
id: string
|
|
@@ -37,13 +80,36 @@ threshold?: number
|
|
|
37
80
|
comparator?: ("gt" | "lt")
|
|
38
81
|
}
|
|
39
82
|
|
|
40
|
-
export
|
|
83
|
+
export interface DeploymentAlertUpdateOutput {
|
|
84
|
+
id: string
|
|
85
|
+
state: ("ok" | "firing")
|
|
86
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
|
|
87
|
+
enabled: boolean
|
|
88
|
+
targetId: string
|
|
89
|
+
createdAt: string
|
|
90
|
+
productId: string
|
|
91
|
+
threshold: number
|
|
92
|
+
updatedAt: string
|
|
93
|
+
comparator: ("gt" | "lt")
|
|
94
|
+
targetKind: ("service" | "managed-service")
|
|
95
|
+
environmentId: string
|
|
96
|
+
lastEvaluatedAt: (string | null)
|
|
97
|
+
lastStateChangeAt: (string | null)
|
|
98
|
+
}
|
|
41
99
|
|
|
42
100
|
export interface DeploymentAnalyticsQueryInput {
|
|
43
101
|
q: string
|
|
44
102
|
}
|
|
45
103
|
|
|
46
|
-
export
|
|
104
|
+
export interface DeploymentAnalyticsQueryOutput {
|
|
105
|
+
sql: string
|
|
106
|
+
rows: {
|
|
107
|
+
[k: string]: unknown
|
|
108
|
+
}[]
|
|
109
|
+
answer: string
|
|
110
|
+
truncated: boolean
|
|
111
|
+
explanation: string
|
|
112
|
+
}
|
|
47
113
|
|
|
48
114
|
export interface DeploymentAuditListInput {
|
|
49
115
|
limit?: number
|
|
@@ -54,19 +120,57 @@ entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" |
|
|
|
54
120
|
environmentId: string
|
|
55
121
|
}
|
|
56
122
|
|
|
57
|
-
export type DeploymentAuditListOutput =
|
|
123
|
+
export type DeploymentAuditListOutput = {
|
|
124
|
+
id: string
|
|
125
|
+
action: string
|
|
126
|
+
actorId: string
|
|
127
|
+
entityId: (string | null)
|
|
128
|
+
metadata: {
|
|
129
|
+
[k: string]: unknown
|
|
130
|
+
}
|
|
131
|
+
createdAt: string
|
|
132
|
+
productId: string
|
|
133
|
+
serviceId: (string | null)
|
|
134
|
+
actorEmail: string
|
|
135
|
+
entityType: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
|
|
136
|
+
environmentId: (string | null)
|
|
137
|
+
}[]
|
|
58
138
|
|
|
59
139
|
export interface DeploymentBuildGetInput {
|
|
60
140
|
id: string
|
|
61
141
|
}
|
|
62
142
|
|
|
63
|
-
export
|
|
143
|
+
export interface DeploymentBuildGetOutput {
|
|
144
|
+
id: string
|
|
145
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
146
|
+
builtAt: (string | null)
|
|
147
|
+
imageRef: (string | null)
|
|
148
|
+
commitSha: (string | null)
|
|
149
|
+
createdAt: string
|
|
150
|
+
serviceId: string
|
|
151
|
+
startedAt: (string | null)
|
|
152
|
+
finishedAt: (string | null)
|
|
153
|
+
cloudBuildId: (string | null)
|
|
154
|
+
lastErrorMessage: (string | null)
|
|
155
|
+
}
|
|
64
156
|
|
|
65
157
|
export interface DeploymentBuildListInput {
|
|
66
158
|
serviceId: string
|
|
67
159
|
}
|
|
68
160
|
|
|
69
|
-
export type DeploymentBuildListOutput =
|
|
161
|
+
export type DeploymentBuildListOutput = {
|
|
162
|
+
id: string
|
|
163
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
164
|
+
builtAt: (string | null)
|
|
165
|
+
imageRef: (string | null)
|
|
166
|
+
commitSha: (string | null)
|
|
167
|
+
createdAt: string
|
|
168
|
+
serviceId: string
|
|
169
|
+
startedAt: (string | null)
|
|
170
|
+
finishedAt: (string | null)
|
|
171
|
+
cloudBuildId: (string | null)
|
|
172
|
+
lastErrorMessage: (string | null)
|
|
173
|
+
}[]
|
|
70
174
|
|
|
71
175
|
export interface DeploymentBuildLogsInput {
|
|
72
176
|
tail?: number
|
|
@@ -75,13 +179,99 @@ serviceId: string
|
|
|
75
179
|
deploymentId: string
|
|
76
180
|
}
|
|
77
181
|
|
|
78
|
-
export
|
|
182
|
+
export interface DeploymentBuildLogsOutput {
|
|
183
|
+
lines: {
|
|
184
|
+
ts: string
|
|
185
|
+
text: string
|
|
186
|
+
}[]
|
|
187
|
+
cursor: (string | null)
|
|
188
|
+
complete: boolean
|
|
189
|
+
}
|
|
79
190
|
|
|
80
191
|
export interface DeploymentCanvasGetInput {
|
|
81
192
|
environmentId: string
|
|
82
193
|
}
|
|
83
194
|
|
|
84
|
-
export
|
|
195
|
+
export interface DeploymentCanvasGetOutput {
|
|
196
|
+
edges: {
|
|
197
|
+
id: string
|
|
198
|
+
kind: ("cloud-sql" | "reference" | "host")
|
|
199
|
+
label: string
|
|
200
|
+
toKind: ("service" | "managed-service" | "cloud-sql")
|
|
201
|
+
fromKind: "service"
|
|
202
|
+
toNodeId: string
|
|
203
|
+
fromNodeId: string
|
|
204
|
+
}[]
|
|
205
|
+
nodes: {
|
|
206
|
+
x: number
|
|
207
|
+
y: number
|
|
208
|
+
id: string
|
|
209
|
+
width: (number | null)
|
|
210
|
+
height: (number | null)
|
|
211
|
+
nodeId: string
|
|
212
|
+
nodeKind: ("service" | "volume" | "managed-service" | "cloud-sql")
|
|
213
|
+
createdAt: string
|
|
214
|
+
updatedAt: string
|
|
215
|
+
}[]
|
|
216
|
+
services: {
|
|
217
|
+
id: string
|
|
218
|
+
name: string
|
|
219
|
+
slug: string
|
|
220
|
+
probes: {
|
|
221
|
+
liveness?: Readiness
|
|
222
|
+
readiness?: Readiness
|
|
223
|
+
}
|
|
224
|
+
source: ({
|
|
225
|
+
url?: string
|
|
226
|
+
path?: string
|
|
227
|
+
type: "git"
|
|
228
|
+
branch: string
|
|
229
|
+
connectorId?: string
|
|
230
|
+
repoFullName?: string
|
|
231
|
+
} | {
|
|
232
|
+
tag: string
|
|
233
|
+
type: "image"
|
|
234
|
+
registry: string
|
|
235
|
+
} | {
|
|
236
|
+
spa?: boolean
|
|
237
|
+
repo?: {
|
|
238
|
+
url?: string
|
|
239
|
+
path?: string
|
|
240
|
+
branch: string
|
|
241
|
+
connectorId?: string
|
|
242
|
+
repoFullName?: string
|
|
243
|
+
}
|
|
244
|
+
type: "static"
|
|
245
|
+
build?: {
|
|
246
|
+
command?: string
|
|
247
|
+
outputDir?: string
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
replicas: number
|
|
251
|
+
createdAt: string
|
|
252
|
+
dependsOn: string[]
|
|
253
|
+
resources?: {
|
|
254
|
+
limits?: {
|
|
255
|
+
cpu?: string
|
|
256
|
+
memory?: string
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
updatedAt: string
|
|
260
|
+
containerPort: number
|
|
261
|
+
environmentId: string
|
|
262
|
+
lastReplicasRunning: number
|
|
263
|
+
}[]
|
|
264
|
+
environmentId: string
|
|
265
|
+
}
|
|
266
|
+
export interface Readiness {
|
|
267
|
+
path: string
|
|
268
|
+
port?: number
|
|
269
|
+
periodSeconds?: number
|
|
270
|
+
timeoutSeconds?: number
|
|
271
|
+
failureThreshold?: number
|
|
272
|
+
successThreshold?: number
|
|
273
|
+
initialDelaySeconds?: number
|
|
274
|
+
}
|
|
85
275
|
|
|
86
276
|
export interface DeploymentCanvasMoveNodeInput {
|
|
87
277
|
x?: number
|
|
@@ -92,13 +282,39 @@ nodeId: string
|
|
|
92
282
|
environmentId: string
|
|
93
283
|
}
|
|
94
284
|
|
|
95
|
-
export
|
|
285
|
+
export interface DeploymentCanvasMoveNodeOutput {
|
|
286
|
+
x: number
|
|
287
|
+
y: number
|
|
288
|
+
id: string
|
|
289
|
+
width: (number | null)
|
|
290
|
+
height: (number | null)
|
|
291
|
+
nodeId: string
|
|
292
|
+
nodeKind: ("service" | "volume" | "managed-service" | "cloud-sql")
|
|
293
|
+
createdAt: string
|
|
294
|
+
updatedAt: string
|
|
295
|
+
}
|
|
96
296
|
|
|
97
297
|
export interface DeploymentCloudSqlBackfillLogFlagsInput {
|
|
98
298
|
instanceId?: string
|
|
99
299
|
}
|
|
100
300
|
|
|
101
|
-
export
|
|
301
|
+
export interface DeploymentCloudSqlBackfillLogFlagsOutput {
|
|
302
|
+
failed: {
|
|
303
|
+
id: string
|
|
304
|
+
name: string
|
|
305
|
+
error: string
|
|
306
|
+
}[]
|
|
307
|
+
patched: number
|
|
308
|
+
scanned: number
|
|
309
|
+
skippedNoDrift: number
|
|
310
|
+
restartRequired: {
|
|
311
|
+
id: string
|
|
312
|
+
name: string
|
|
313
|
+
flags: string[]
|
|
314
|
+
}[]
|
|
315
|
+
skippedNotReady: number
|
|
316
|
+
skippedRestartRequired: number
|
|
317
|
+
}
|
|
102
318
|
|
|
103
319
|
export interface DeploymentCloudSqlDatabaseAttachInput {
|
|
104
320
|
serviceId: string
|
|
@@ -106,50 +322,114 @@ databaseId: string
|
|
|
106
322
|
environmentId: string
|
|
107
323
|
}
|
|
108
324
|
|
|
109
|
-
export
|
|
325
|
+
export interface DeploymentCloudSqlDatabaseAttachOutput {
|
|
326
|
+
id: string
|
|
327
|
+
status: string
|
|
328
|
+
serviceId: string
|
|
329
|
+
databaseId: string
|
|
330
|
+
environmentId: string
|
|
331
|
+
}
|
|
110
332
|
|
|
111
333
|
export interface DeploymentCloudSqlDatabaseCreateInput {
|
|
112
334
|
label?: string
|
|
113
335
|
instanceId: string
|
|
114
336
|
}
|
|
115
337
|
|
|
116
|
-
export
|
|
338
|
+
export interface DeploymentCloudSqlDatabaseCreateOutput {
|
|
339
|
+
id: string
|
|
340
|
+
dbName: string
|
|
341
|
+
status: string
|
|
342
|
+
roleName: string
|
|
343
|
+
createdAt: string
|
|
344
|
+
productId: string
|
|
345
|
+
updatedAt: string
|
|
346
|
+
instanceId: string
|
|
347
|
+
lastErrorMessage: (string | null)
|
|
348
|
+
}
|
|
117
349
|
|
|
118
350
|
export interface DeploymentCloudSqlDatabaseDeleteInput {
|
|
119
351
|
databaseId: string
|
|
120
352
|
}
|
|
121
353
|
|
|
122
|
-
export
|
|
354
|
+
export interface DeploymentCloudSqlDatabaseDeleteOutput {
|
|
355
|
+
[k: string]: unknown
|
|
356
|
+
}
|
|
123
357
|
|
|
124
358
|
export interface DeploymentCloudSqlDatabaseDetachInput {
|
|
125
359
|
attachmentId: string
|
|
126
360
|
}
|
|
127
361
|
|
|
128
|
-
export
|
|
362
|
+
export interface DeploymentCloudSqlDatabaseDetachOutput {
|
|
363
|
+
[k: string]: unknown
|
|
364
|
+
}
|
|
129
365
|
|
|
130
366
|
export interface DeploymentCloudSqlDatabaseGetInput {
|
|
131
367
|
databaseId: string
|
|
132
368
|
}
|
|
133
369
|
|
|
134
|
-
export
|
|
370
|
+
export interface DeploymentCloudSqlDatabaseGetOutput {
|
|
371
|
+
id: string
|
|
372
|
+
dbName: string
|
|
373
|
+
status: string
|
|
374
|
+
roleName: string
|
|
375
|
+
createdAt: string
|
|
376
|
+
productId: string
|
|
377
|
+
updatedAt: string
|
|
378
|
+
instanceId: string
|
|
379
|
+
lastErrorMessage: (string | null)
|
|
380
|
+
}
|
|
135
381
|
|
|
136
382
|
export interface DeploymentCloudSqlDatabaseListInput {
|
|
137
383
|
instanceId: string
|
|
138
384
|
}
|
|
139
385
|
|
|
140
|
-
export type DeploymentCloudSqlDatabaseListOutput =
|
|
386
|
+
export type DeploymentCloudSqlDatabaseListOutput = {
|
|
387
|
+
id: string
|
|
388
|
+
dbName: string
|
|
389
|
+
status: string
|
|
390
|
+
roleName: string
|
|
391
|
+
createdAt: string
|
|
392
|
+
productId: string
|
|
393
|
+
updatedAt: string
|
|
394
|
+
instanceId: string
|
|
395
|
+
lastErrorMessage: (string | null)
|
|
396
|
+
}[]
|
|
141
397
|
|
|
142
398
|
export interface DeploymentCloudSqlInstanceBackupInput {
|
|
143
399
|
instanceId: string
|
|
144
400
|
}
|
|
145
401
|
|
|
146
|
-
export
|
|
402
|
+
export interface DeploymentCloudSqlInstanceBackupOutput {
|
|
403
|
+
id: string
|
|
404
|
+
name: string
|
|
405
|
+
tier: string
|
|
406
|
+
label: string
|
|
407
|
+
region: string
|
|
408
|
+
status: string
|
|
409
|
+
createdAt: string
|
|
410
|
+
pgVersion: string
|
|
411
|
+
privateIp: (string | null)
|
|
412
|
+
productId: string
|
|
413
|
+
updatedAt: string
|
|
414
|
+
pitrEnabled: boolean
|
|
415
|
+
backupsEnabled: boolean
|
|
416
|
+
connectionName: (string | null)
|
|
417
|
+
lastErrorMessage: (string | null)
|
|
418
|
+
}
|
|
147
419
|
|
|
148
420
|
export interface DeploymentCloudSqlInstanceBackupListInput {
|
|
149
421
|
instanceId: string
|
|
150
422
|
}
|
|
151
423
|
|
|
152
|
-
export type DeploymentCloudSqlInstanceBackupListOutput =
|
|
424
|
+
export type DeploymentCloudSqlInstanceBackupListOutput = {
|
|
425
|
+
id: string
|
|
426
|
+
type: string
|
|
427
|
+
error: (string | null)
|
|
428
|
+
status: string
|
|
429
|
+
endTime: (string | null)
|
|
430
|
+
startTime: (string | null)
|
|
431
|
+
description: (string | null)
|
|
432
|
+
}[]
|
|
153
433
|
|
|
154
434
|
export interface DeploymentCloudSqlInstanceCreateInput {
|
|
155
435
|
tier?: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
@@ -157,65 +437,215 @@ label: string
|
|
|
157
437
|
pgVersion?: ("16" | "17" | "18")
|
|
158
438
|
}
|
|
159
439
|
|
|
160
|
-
export
|
|
440
|
+
export interface DeploymentCloudSqlInstanceCreateOutput {
|
|
441
|
+
id: string
|
|
442
|
+
name: string
|
|
443
|
+
tier: string
|
|
444
|
+
label: string
|
|
445
|
+
region: string
|
|
446
|
+
status: string
|
|
447
|
+
createdAt: string
|
|
448
|
+
pgVersion: string
|
|
449
|
+
privateIp: (string | null)
|
|
450
|
+
productId: string
|
|
451
|
+
updatedAt: string
|
|
452
|
+
pitrEnabled: boolean
|
|
453
|
+
backupsEnabled: boolean
|
|
454
|
+
connectionName: (string | null)
|
|
455
|
+
lastErrorMessage: (string | null)
|
|
456
|
+
}
|
|
161
457
|
|
|
162
458
|
export interface DeploymentCloudSqlInstanceDeleteInput {
|
|
163
459
|
instanceId: string
|
|
164
460
|
}
|
|
165
461
|
|
|
166
|
-
export
|
|
462
|
+
export interface DeploymentCloudSqlInstanceDeleteOutput {
|
|
463
|
+
[k: string]: unknown
|
|
464
|
+
}
|
|
167
465
|
|
|
168
466
|
export interface DeploymentCloudSqlInstanceGetInput {
|
|
169
467
|
instanceId: string
|
|
170
468
|
}
|
|
171
469
|
|
|
172
|
-
export
|
|
470
|
+
export interface DeploymentCloudSqlInstanceGetOutput {
|
|
471
|
+
id: string
|
|
472
|
+
name: string
|
|
473
|
+
tier: string
|
|
474
|
+
label: string
|
|
475
|
+
region: string
|
|
476
|
+
status: string
|
|
477
|
+
createdAt: string
|
|
478
|
+
pgVersion: string
|
|
479
|
+
privateIp: (string | null)
|
|
480
|
+
productId: string
|
|
481
|
+
updatedAt: string
|
|
482
|
+
pitrEnabled: boolean
|
|
483
|
+
backupsEnabled: boolean
|
|
484
|
+
connectionName: (string | null)
|
|
485
|
+
lastErrorMessage: (string | null)
|
|
486
|
+
}
|
|
173
487
|
|
|
174
488
|
export interface DeploymentCloudSqlInstanceListInput {
|
|
175
489
|
|
|
176
490
|
}
|
|
177
491
|
|
|
178
|
-
export type DeploymentCloudSqlInstanceListOutput =
|
|
492
|
+
export type DeploymentCloudSqlInstanceListOutput = {
|
|
493
|
+
id: string
|
|
494
|
+
name: string
|
|
495
|
+
tier: string
|
|
496
|
+
label: string
|
|
497
|
+
region: string
|
|
498
|
+
status: string
|
|
499
|
+
createdAt: string
|
|
500
|
+
pgVersion: string
|
|
501
|
+
privateIp: (string | null)
|
|
502
|
+
productId: string
|
|
503
|
+
updatedAt: string
|
|
504
|
+
pitrEnabled: boolean
|
|
505
|
+
backupsEnabled: boolean
|
|
506
|
+
connectionName: (string | null)
|
|
507
|
+
lastErrorMessage: (string | null)
|
|
508
|
+
}[]
|
|
179
509
|
|
|
180
510
|
export interface DeploymentCloudSqlInstanceResizeInput {
|
|
181
511
|
tier: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
182
512
|
instanceId: string
|
|
183
513
|
}
|
|
184
514
|
|
|
185
|
-
export
|
|
515
|
+
export interface DeploymentCloudSqlInstanceResizeOutput {
|
|
516
|
+
id: string
|
|
517
|
+
name: string
|
|
518
|
+
tier: string
|
|
519
|
+
label: string
|
|
520
|
+
region: string
|
|
521
|
+
status: string
|
|
522
|
+
createdAt: string
|
|
523
|
+
pgVersion: string
|
|
524
|
+
privateIp: (string | null)
|
|
525
|
+
productId: string
|
|
526
|
+
updatedAt: string
|
|
527
|
+
pitrEnabled: boolean
|
|
528
|
+
backupsEnabled: boolean
|
|
529
|
+
connectionName: (string | null)
|
|
530
|
+
lastErrorMessage: (string | null)
|
|
531
|
+
}
|
|
186
532
|
|
|
187
533
|
export interface DeploymentCloudSqlInstanceRestoreInput {
|
|
188
534
|
instanceId: string
|
|
189
535
|
backupRunId: string
|
|
190
536
|
}
|
|
191
537
|
|
|
192
|
-
export
|
|
538
|
+
export interface DeploymentCloudSqlInstanceRestoreOutput {
|
|
539
|
+
id: string
|
|
540
|
+
name: string
|
|
541
|
+
tier: string
|
|
542
|
+
label: string
|
|
543
|
+
region: string
|
|
544
|
+
status: string
|
|
545
|
+
createdAt: string
|
|
546
|
+
pgVersion: string
|
|
547
|
+
privateIp: (string | null)
|
|
548
|
+
productId: string
|
|
549
|
+
updatedAt: string
|
|
550
|
+
pitrEnabled: boolean
|
|
551
|
+
backupsEnabled: boolean
|
|
552
|
+
connectionName: (string | null)
|
|
553
|
+
lastErrorMessage: (string | null)
|
|
554
|
+
}
|
|
193
555
|
|
|
194
556
|
export interface DeploymentCloudSqlLogsInput {
|
|
195
557
|
tail?: number
|
|
196
558
|
instanceId: string
|
|
197
559
|
}
|
|
198
560
|
|
|
199
|
-
export
|
|
561
|
+
export interface DeploymentCloudSqlLogsOutput {
|
|
562
|
+
lines: string[]
|
|
563
|
+
}
|
|
200
564
|
|
|
201
565
|
export interface DeploymentDeploymentCancelInput {
|
|
202
566
|
serviceId: string
|
|
203
567
|
deploymentId: string
|
|
204
568
|
}
|
|
205
569
|
|
|
206
|
-
export
|
|
570
|
+
export interface DeploymentDeploymentCancelOutput {
|
|
571
|
+
id: string
|
|
572
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
573
|
+
builtAt: (string | null)
|
|
574
|
+
imageRef: (string | null)
|
|
575
|
+
commitSha: (string | null)
|
|
576
|
+
createdAt: string
|
|
577
|
+
serviceId: string
|
|
578
|
+
startedAt: (string | null)
|
|
579
|
+
updatedAt: string
|
|
580
|
+
deployedAt: (string | null)
|
|
581
|
+
finishedAt: (string | null)
|
|
582
|
+
cloudBuildId: (string | null)
|
|
583
|
+
configSnapshot: {
|
|
584
|
+
source?: unknown
|
|
585
|
+
variables: {
|
|
586
|
+
key: string
|
|
587
|
+
value: string
|
|
588
|
+
}[]
|
|
589
|
+
}
|
|
590
|
+
lastErrorMessage: (string | null)
|
|
591
|
+
rolledBackFromDeploymentId: (string | null)
|
|
592
|
+
}
|
|
207
593
|
|
|
208
594
|
export interface DeploymentDeploymentGetInput {
|
|
209
595
|
id: string
|
|
210
596
|
}
|
|
211
597
|
|
|
212
|
-
export
|
|
598
|
+
export interface DeploymentDeploymentGetOutput {
|
|
599
|
+
id: string
|
|
600
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
601
|
+
builtAt: (string | null)
|
|
602
|
+
imageRef: (string | null)
|
|
603
|
+
commitSha: (string | null)
|
|
604
|
+
createdAt: string
|
|
605
|
+
serviceId: string
|
|
606
|
+
startedAt: (string | null)
|
|
607
|
+
updatedAt: string
|
|
608
|
+
deployedAt: (string | null)
|
|
609
|
+
finishedAt: (string | null)
|
|
610
|
+
cloudBuildId: (string | null)
|
|
611
|
+
configSnapshot: {
|
|
612
|
+
source?: unknown
|
|
613
|
+
variables: {
|
|
614
|
+
key: string
|
|
615
|
+
value: string
|
|
616
|
+
}[]
|
|
617
|
+
}
|
|
618
|
+
lastErrorMessage: (string | null)
|
|
619
|
+
rolledBackFromDeploymentId: (string | null)
|
|
620
|
+
}
|
|
213
621
|
|
|
214
622
|
export interface DeploymentDeploymentListInput {
|
|
215
623
|
serviceId: string
|
|
216
624
|
}
|
|
217
625
|
|
|
218
|
-
export type DeploymentDeploymentListOutput =
|
|
626
|
+
export type DeploymentDeploymentListOutput = {
|
|
627
|
+
id: string
|
|
628
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
629
|
+
builtAt: (string | null)
|
|
630
|
+
imageRef: (string | null)
|
|
631
|
+
commitSha: (string | null)
|
|
632
|
+
createdAt: string
|
|
633
|
+
serviceId: string
|
|
634
|
+
startedAt: (string | null)
|
|
635
|
+
updatedAt: string
|
|
636
|
+
deployedAt: (string | null)
|
|
637
|
+
finishedAt: (string | null)
|
|
638
|
+
cloudBuildId: (string | null)
|
|
639
|
+
configSnapshot: {
|
|
640
|
+
source?: unknown
|
|
641
|
+
variables: {
|
|
642
|
+
key: string
|
|
643
|
+
value: string
|
|
644
|
+
}[]
|
|
645
|
+
}
|
|
646
|
+
lastErrorMessage: (string | null)
|
|
647
|
+
rolledBackFromDeploymentId: (string | null)
|
|
648
|
+
}[]
|
|
219
649
|
|
|
220
650
|
export interface DeploymentDomainAddInput {
|
|
221
651
|
hostname: string
|
|
@@ -225,44 +655,294 @@ environmentId: string
|
|
|
225
655
|
defaultServiceId: string
|
|
226
656
|
}
|
|
227
657
|
|
|
228
|
-
export
|
|
229
|
-
|
|
230
|
-
|
|
658
|
+
export interface DeploymentDomainAddOutput {
|
|
659
|
+
id: string
|
|
660
|
+
kind: ("auto" | "custom")
|
|
661
|
+
routes: {
|
|
662
|
+
id: string
|
|
663
|
+
domainId: string
|
|
664
|
+
priority: number
|
|
665
|
+
createdAt: string
|
|
666
|
+
isDefault: boolean
|
|
667
|
+
serviceId: string
|
|
668
|
+
updatedAt: string
|
|
669
|
+
pathPrefix: string
|
|
670
|
+
}[]
|
|
671
|
+
hostname: string
|
|
672
|
+
createdAt: string
|
|
673
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
674
|
+
updatedAt: string
|
|
675
|
+
lastProbeAt: (string | null)
|
|
676
|
+
redirectWww: boolean
|
|
677
|
+
environmentId: string
|
|
678
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
679
|
+
lastProbeError: (string | null)
|
|
680
|
+
dnsInstructions: ({
|
|
681
|
+
txt: {
|
|
682
|
+
name: string
|
|
683
|
+
value: string
|
|
684
|
+
}
|
|
685
|
+
routing: Items[]
|
|
686
|
+
acmeChallenge?: Items
|
|
687
|
+
} | null)
|
|
688
|
+
routingRecordType: ("A" | "CNAME")
|
|
689
|
+
verificationToken: (string | null)
|
|
690
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
691
|
+
lastVerificationError: (({
|
|
692
|
+
code: (string | null)
|
|
693
|
+
reason: "transient"
|
|
694
|
+
checkedAt: string
|
|
695
|
+
} | {
|
|
696
|
+
txt?: {
|
|
697
|
+
got: string[]
|
|
698
|
+
want: string
|
|
699
|
+
}
|
|
700
|
+
host?: {
|
|
701
|
+
got: string[]
|
|
702
|
+
want: string[]
|
|
703
|
+
}
|
|
704
|
+
reason: "mismatch"
|
|
705
|
+
checkedAt: string
|
|
706
|
+
}) | null)
|
|
707
|
+
lastVerificationCheckAt: (string | null)
|
|
708
|
+
tlsCertificateExpiresAt: (string | null)
|
|
709
|
+
}
|
|
710
|
+
export interface Items {
|
|
711
|
+
name: string
|
|
712
|
+
value: string
|
|
713
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export interface DeploymentDomainAllowedListInput {
|
|
231
717
|
|
|
232
718
|
}
|
|
233
719
|
|
|
234
|
-
export
|
|
720
|
+
export interface DeploymentDomainAllowedListOutput {
|
|
721
|
+
domains: {
|
|
722
|
+
mode: ("external" | "managed")
|
|
723
|
+
domain: string
|
|
724
|
+
domainId: string
|
|
725
|
+
}[]
|
|
726
|
+
}
|
|
235
727
|
|
|
236
728
|
export interface DeploymentDomainGetInput {
|
|
237
729
|
id: string
|
|
238
730
|
}
|
|
239
731
|
|
|
240
|
-
export
|
|
732
|
+
export interface DeploymentDomainGetOutput {
|
|
733
|
+
id: string
|
|
734
|
+
kind: ("auto" | "custom")
|
|
735
|
+
hostname: string
|
|
736
|
+
createdAt: string
|
|
737
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
738
|
+
updatedAt: string
|
|
739
|
+
lastProbeAt: (string | null)
|
|
740
|
+
redirectWww: boolean
|
|
741
|
+
environmentId: string
|
|
742
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
743
|
+
lastProbeError: (string | null)
|
|
744
|
+
dnsInstructions: ({
|
|
745
|
+
txt: {
|
|
746
|
+
name: string
|
|
747
|
+
value: string
|
|
748
|
+
}
|
|
749
|
+
routing: Items[]
|
|
750
|
+
acmeChallenge?: Items
|
|
751
|
+
} | null)
|
|
752
|
+
routingRecordType: ("A" | "CNAME")
|
|
753
|
+
verificationToken: (string | null)
|
|
754
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
755
|
+
lastVerificationError: (({
|
|
756
|
+
code: (string | null)
|
|
757
|
+
reason: "transient"
|
|
758
|
+
checkedAt: string
|
|
759
|
+
} | {
|
|
760
|
+
txt?: {
|
|
761
|
+
got: string[]
|
|
762
|
+
want: string
|
|
763
|
+
}
|
|
764
|
+
host?: {
|
|
765
|
+
got: string[]
|
|
766
|
+
want: string[]
|
|
767
|
+
}
|
|
768
|
+
reason: "mismatch"
|
|
769
|
+
checkedAt: string
|
|
770
|
+
}) | null)
|
|
771
|
+
lastVerificationCheckAt: (string | null)
|
|
772
|
+
tlsCertificateExpiresAt: (string | null)
|
|
773
|
+
}
|
|
774
|
+
export interface Items {
|
|
775
|
+
name: string
|
|
776
|
+
value: string
|
|
777
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
778
|
+
}
|
|
241
779
|
|
|
242
780
|
export interface DeploymentDomainListInput {
|
|
243
781
|
environmentId: string
|
|
244
782
|
}
|
|
245
783
|
|
|
246
|
-
export type DeploymentDomainListOutput =
|
|
784
|
+
export type DeploymentDomainListOutput = {
|
|
785
|
+
id: string
|
|
786
|
+
kind: ("auto" | "custom")
|
|
787
|
+
hostname: string
|
|
788
|
+
createdAt: string
|
|
789
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
790
|
+
updatedAt: string
|
|
791
|
+
lastProbeAt: (string | null)
|
|
792
|
+
redirectWww: boolean
|
|
793
|
+
environmentId: string
|
|
794
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
795
|
+
lastProbeError: (string | null)
|
|
796
|
+
dnsInstructions: ({
|
|
797
|
+
txt: {
|
|
798
|
+
name: string
|
|
799
|
+
value: string
|
|
800
|
+
}
|
|
801
|
+
routing: Items[]
|
|
802
|
+
acmeChallenge?: Items
|
|
803
|
+
} | null)
|
|
804
|
+
routingRecordType: ("A" | "CNAME")
|
|
805
|
+
verificationToken: (string | null)
|
|
806
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
807
|
+
lastVerificationError: (({
|
|
808
|
+
code: (string | null)
|
|
809
|
+
reason: "transient"
|
|
810
|
+
checkedAt: string
|
|
811
|
+
} | {
|
|
812
|
+
txt?: {
|
|
813
|
+
got: string[]
|
|
814
|
+
want: string
|
|
815
|
+
}
|
|
816
|
+
host?: {
|
|
817
|
+
got: string[]
|
|
818
|
+
want: string[]
|
|
819
|
+
}
|
|
820
|
+
reason: "mismatch"
|
|
821
|
+
checkedAt: string
|
|
822
|
+
}) | null)
|
|
823
|
+
lastVerificationCheckAt: (string | null)
|
|
824
|
+
tlsCertificateExpiresAt: (string | null)
|
|
825
|
+
}[]
|
|
826
|
+
|
|
827
|
+
export interface Items {
|
|
828
|
+
name: string
|
|
829
|
+
value: string
|
|
830
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
831
|
+
}
|
|
247
832
|
|
|
248
833
|
export interface DeploymentDomainListByServiceInput {
|
|
249
834
|
serviceId: string
|
|
250
835
|
}
|
|
251
836
|
|
|
252
|
-
export type DeploymentDomainListByServiceOutput =
|
|
837
|
+
export type DeploymentDomainListByServiceOutput = {
|
|
838
|
+
id: string
|
|
839
|
+
kind: ("auto" | "custom")
|
|
840
|
+
hostname: string
|
|
841
|
+
createdAt: string
|
|
842
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
843
|
+
updatedAt: string
|
|
844
|
+
lastProbeAt: (string | null)
|
|
845
|
+
redirectWww: boolean
|
|
846
|
+
environmentId: string
|
|
847
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
848
|
+
lastProbeError: (string | null)
|
|
849
|
+
dnsInstructions: ({
|
|
850
|
+
txt: {
|
|
851
|
+
name: string
|
|
852
|
+
value: string
|
|
853
|
+
}
|
|
854
|
+
routing: Items[]
|
|
855
|
+
acmeChallenge?: Items
|
|
856
|
+
} | null)
|
|
857
|
+
routingRecordType: ("A" | "CNAME")
|
|
858
|
+
verificationToken: (string | null)
|
|
859
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
860
|
+
lastVerificationError: (({
|
|
861
|
+
code: (string | null)
|
|
862
|
+
reason: "transient"
|
|
863
|
+
checkedAt: string
|
|
864
|
+
} | {
|
|
865
|
+
txt?: {
|
|
866
|
+
got: string[]
|
|
867
|
+
want: string
|
|
868
|
+
}
|
|
869
|
+
host?: {
|
|
870
|
+
got: string[]
|
|
871
|
+
want: string[]
|
|
872
|
+
}
|
|
873
|
+
reason: "mismatch"
|
|
874
|
+
checkedAt: string
|
|
875
|
+
}) | null)
|
|
876
|
+
lastVerificationCheckAt: (string | null)
|
|
877
|
+
tlsCertificateExpiresAt: (string | null)
|
|
878
|
+
}[]
|
|
879
|
+
|
|
880
|
+
export interface Items {
|
|
881
|
+
name: string
|
|
882
|
+
value: string
|
|
883
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
884
|
+
}
|
|
253
885
|
|
|
254
886
|
export interface DeploymentDomainRedirectWwwInput {
|
|
255
887
|
id: string
|
|
256
888
|
enabled: boolean
|
|
257
889
|
}
|
|
258
890
|
|
|
259
|
-
export
|
|
891
|
+
export interface DeploymentDomainRedirectWwwOutput {
|
|
892
|
+
id: string
|
|
893
|
+
kind: ("auto" | "custom")
|
|
894
|
+
hostname: string
|
|
895
|
+
createdAt: string
|
|
896
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
897
|
+
updatedAt: string
|
|
898
|
+
lastProbeAt: (string | null)
|
|
899
|
+
redirectWww: boolean
|
|
900
|
+
environmentId: string
|
|
901
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
902
|
+
lastProbeError: (string | null)
|
|
903
|
+
dnsInstructions: ({
|
|
904
|
+
txt: {
|
|
905
|
+
name: string
|
|
906
|
+
value: string
|
|
907
|
+
}
|
|
908
|
+
routing: Items[]
|
|
909
|
+
acmeChallenge?: Items
|
|
910
|
+
} | null)
|
|
911
|
+
routingRecordType: ("A" | "CNAME")
|
|
912
|
+
verificationToken: (string | null)
|
|
913
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
914
|
+
lastVerificationError: (({
|
|
915
|
+
code: (string | null)
|
|
916
|
+
reason: "transient"
|
|
917
|
+
checkedAt: string
|
|
918
|
+
} | {
|
|
919
|
+
txt?: {
|
|
920
|
+
got: string[]
|
|
921
|
+
want: string
|
|
922
|
+
}
|
|
923
|
+
host?: {
|
|
924
|
+
got: string[]
|
|
925
|
+
want: string[]
|
|
926
|
+
}
|
|
927
|
+
reason: "mismatch"
|
|
928
|
+
checkedAt: string
|
|
929
|
+
}) | null)
|
|
930
|
+
lastVerificationCheckAt: (string | null)
|
|
931
|
+
tlsCertificateExpiresAt: (string | null)
|
|
932
|
+
}
|
|
933
|
+
export interface Items {
|
|
934
|
+
name: string
|
|
935
|
+
value: string
|
|
936
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
937
|
+
}
|
|
260
938
|
|
|
261
939
|
export interface DeploymentDomainRemoveInput {
|
|
262
940
|
id: string
|
|
263
941
|
}
|
|
264
942
|
|
|
265
|
-
export
|
|
943
|
+
export interface DeploymentDomainRemoveOutput {
|
|
944
|
+
[k: string]: unknown
|
|
945
|
+
}
|
|
266
946
|
|
|
267
947
|
export interface DeploymentDomainRoutesAddInput {
|
|
268
948
|
domainId: string
|
|
@@ -272,20 +952,40 @@ serviceId: string
|
|
|
272
952
|
pathPrefix: string
|
|
273
953
|
}
|
|
274
954
|
|
|
275
|
-
export
|
|
955
|
+
export interface DeploymentDomainRoutesAddOutput {
|
|
956
|
+
id: string
|
|
957
|
+
domainId: string
|
|
958
|
+
priority: number
|
|
959
|
+
createdAt: string
|
|
960
|
+
isDefault: boolean
|
|
961
|
+
serviceId: string
|
|
962
|
+
updatedAt: string
|
|
963
|
+
pathPrefix: string
|
|
964
|
+
}
|
|
276
965
|
|
|
277
966
|
export interface DeploymentDomainRoutesListInput {
|
|
278
967
|
domainId: string
|
|
279
968
|
}
|
|
280
969
|
|
|
281
|
-
export type DeploymentDomainRoutesListOutput =
|
|
970
|
+
export type DeploymentDomainRoutesListOutput = {
|
|
971
|
+
id: string
|
|
972
|
+
domainId: string
|
|
973
|
+
priority: number
|
|
974
|
+
createdAt: string
|
|
975
|
+
isDefault: boolean
|
|
976
|
+
serviceId: string
|
|
977
|
+
updatedAt: string
|
|
978
|
+
pathPrefix: string
|
|
979
|
+
}[]
|
|
282
980
|
|
|
283
981
|
export interface DeploymentDomainRoutesRemoveInput {
|
|
284
982
|
routeId: string
|
|
285
983
|
domainId: string
|
|
286
984
|
}
|
|
287
985
|
|
|
288
|
-
export
|
|
986
|
+
export interface DeploymentDomainRoutesRemoveOutput {
|
|
987
|
+
[k: string]: unknown
|
|
988
|
+
}
|
|
289
989
|
|
|
290
990
|
export interface DeploymentDomainRoutesUpdateInput {
|
|
291
991
|
routeId: string
|
|
@@ -295,26 +995,97 @@ serviceId?: string
|
|
|
295
995
|
pathPrefix?: string
|
|
296
996
|
}
|
|
297
997
|
|
|
298
|
-
export
|
|
998
|
+
export interface DeploymentDomainRoutesUpdateOutput {
|
|
999
|
+
id: string
|
|
1000
|
+
domainId: string
|
|
1001
|
+
priority: number
|
|
1002
|
+
createdAt: string
|
|
1003
|
+
isDefault: boolean
|
|
1004
|
+
serviceId: string
|
|
1005
|
+
updatedAt: string
|
|
1006
|
+
pathPrefix: string
|
|
1007
|
+
}
|
|
299
1008
|
|
|
300
1009
|
export interface DeploymentDomainVerifyInput {
|
|
301
1010
|
id: string
|
|
302
1011
|
}
|
|
303
1012
|
|
|
304
|
-
export
|
|
1013
|
+
export interface DeploymentDomainVerifyOutput {
|
|
1014
|
+
id: string
|
|
1015
|
+
kind: ("auto" | "custom")
|
|
1016
|
+
hostname: string
|
|
1017
|
+
createdAt: string
|
|
1018
|
+
tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
|
|
1019
|
+
updatedAt: string
|
|
1020
|
+
lastProbeAt: (string | null)
|
|
1021
|
+
redirectWww: boolean
|
|
1022
|
+
environmentId: string
|
|
1023
|
+
routingStatus: ("provisioning" | "propagating" | "active" | "failed")
|
|
1024
|
+
lastProbeError: (string | null)
|
|
1025
|
+
dnsInstructions: ({
|
|
1026
|
+
txt: {
|
|
1027
|
+
name: string
|
|
1028
|
+
value: string
|
|
1029
|
+
}
|
|
1030
|
+
routing: Items[]
|
|
1031
|
+
acmeChallenge?: Items
|
|
1032
|
+
} | null)
|
|
1033
|
+
routingRecordType: ("A" | "CNAME")
|
|
1034
|
+
verificationToken: (string | null)
|
|
1035
|
+
verificationStatus: ("pending_dns" | "verified" | "dns_failed")
|
|
1036
|
+
lastVerificationError: (({
|
|
1037
|
+
code: (string | null)
|
|
1038
|
+
reason: "transient"
|
|
1039
|
+
checkedAt: string
|
|
1040
|
+
} | {
|
|
1041
|
+
txt?: {
|
|
1042
|
+
got: string[]
|
|
1043
|
+
want: string
|
|
1044
|
+
}
|
|
1045
|
+
host?: {
|
|
1046
|
+
got: string[]
|
|
1047
|
+
want: string[]
|
|
1048
|
+
}
|
|
1049
|
+
reason: "mismatch"
|
|
1050
|
+
checkedAt: string
|
|
1051
|
+
}) | null)
|
|
1052
|
+
lastVerificationCheckAt: (string | null)
|
|
1053
|
+
tlsCertificateExpiresAt: (string | null)
|
|
1054
|
+
}
|
|
1055
|
+
export interface Items {
|
|
1056
|
+
name: string
|
|
1057
|
+
value: string
|
|
1058
|
+
recordType: ("A" | "CNAME" | "ALIAS")
|
|
1059
|
+
}
|
|
305
1060
|
|
|
306
1061
|
export interface DeploymentEnvironmentCreateInput {
|
|
307
1062
|
name: string
|
|
308
1063
|
slug?: string
|
|
309
1064
|
}
|
|
310
1065
|
|
|
311
|
-
export
|
|
1066
|
+
export interface DeploymentEnvironmentCreateOutput {
|
|
1067
|
+
id: string
|
|
1068
|
+
name: string
|
|
1069
|
+
slug: string
|
|
1070
|
+
type: ("persistent" | "pr-preview")
|
|
1071
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1072
|
+
prBranch: (string | null)
|
|
1073
|
+
prNumber: (number | null)
|
|
1074
|
+
createdAt: string
|
|
1075
|
+
expiresAt: (string | null)
|
|
1076
|
+
updatedAt: string
|
|
1077
|
+
isProduction: boolean
|
|
1078
|
+
lastErrorMessage: (string | null)
|
|
1079
|
+
baseEnvironmentId: (string | null)
|
|
1080
|
+
}
|
|
312
1081
|
|
|
313
1082
|
export interface DeploymentEnvironmentDeleteInput {
|
|
314
1083
|
id: string
|
|
315
1084
|
}
|
|
316
1085
|
|
|
317
|
-
export
|
|
1086
|
+
export interface DeploymentEnvironmentDeleteOutput {
|
|
1087
|
+
[k: string]: unknown
|
|
1088
|
+
}
|
|
318
1089
|
|
|
319
1090
|
export interface DeploymentEnvironmentForkInput {
|
|
320
1091
|
name: string
|
|
@@ -322,33 +1093,103 @@ slug?: string
|
|
|
322
1093
|
baseEnvironmentId: string
|
|
323
1094
|
}
|
|
324
1095
|
|
|
325
|
-
export
|
|
1096
|
+
export interface DeploymentEnvironmentForkOutput {
|
|
1097
|
+
id: string
|
|
1098
|
+
name: string
|
|
1099
|
+
slug: string
|
|
1100
|
+
type: ("persistent" | "pr-preview")
|
|
1101
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1102
|
+
prBranch: (string | null)
|
|
1103
|
+
prNumber: (number | null)
|
|
1104
|
+
createdAt: string
|
|
1105
|
+
expiresAt: (string | null)
|
|
1106
|
+
updatedAt: string
|
|
1107
|
+
isProduction: boolean
|
|
1108
|
+
lastErrorMessage: (string | null)
|
|
1109
|
+
baseEnvironmentId: (string | null)
|
|
1110
|
+
}
|
|
326
1111
|
|
|
327
1112
|
export interface DeploymentEnvironmentGetInput {
|
|
328
1113
|
id: string
|
|
329
1114
|
}
|
|
330
1115
|
|
|
331
|
-
export
|
|
1116
|
+
export interface DeploymentEnvironmentGetOutput {
|
|
1117
|
+
id: string
|
|
1118
|
+
name: string
|
|
1119
|
+
slug: string
|
|
1120
|
+
type: ("persistent" | "pr-preview")
|
|
1121
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1122
|
+
prBranch: (string | null)
|
|
1123
|
+
prNumber: (number | null)
|
|
1124
|
+
createdAt: string
|
|
1125
|
+
expiresAt: (string | null)
|
|
1126
|
+
updatedAt: string
|
|
1127
|
+
isProduction: boolean
|
|
1128
|
+
lastErrorMessage: (string | null)
|
|
1129
|
+
baseEnvironmentId: (string | null)
|
|
1130
|
+
}
|
|
332
1131
|
|
|
333
1132
|
export interface DeploymentEnvironmentListInput {
|
|
334
1133
|
type?: ("persistent" | "pr-preview")
|
|
335
1134
|
}
|
|
336
1135
|
|
|
337
|
-
export type DeploymentEnvironmentListOutput =
|
|
1136
|
+
export type DeploymentEnvironmentListOutput = {
|
|
1137
|
+
id: string
|
|
1138
|
+
name: string
|
|
1139
|
+
slug: string
|
|
1140
|
+
type: ("persistent" | "pr-preview")
|
|
1141
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1142
|
+
prBranch: (string | null)
|
|
1143
|
+
prNumber: (number | null)
|
|
1144
|
+
createdAt: string
|
|
1145
|
+
expiresAt: (string | null)
|
|
1146
|
+
updatedAt: string
|
|
1147
|
+
isProduction: boolean
|
|
1148
|
+
lastErrorMessage: (string | null)
|
|
1149
|
+
baseEnvironmentId: (string | null)
|
|
1150
|
+
}[]
|
|
338
1151
|
|
|
339
1152
|
export interface DeploymentEnvironmentReconcileInput {
|
|
340
1153
|
id: string
|
|
341
1154
|
force?: boolean
|
|
342
1155
|
}
|
|
343
1156
|
|
|
344
|
-
export
|
|
1157
|
+
export interface DeploymentEnvironmentReconcileOutput {
|
|
1158
|
+
id: string
|
|
1159
|
+
name: string
|
|
1160
|
+
slug: string
|
|
1161
|
+
type: ("persistent" | "pr-preview")
|
|
1162
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1163
|
+
prBranch: (string | null)
|
|
1164
|
+
prNumber: (number | null)
|
|
1165
|
+
createdAt: string
|
|
1166
|
+
expiresAt: (string | null)
|
|
1167
|
+
updatedAt: string
|
|
1168
|
+
isProduction: boolean
|
|
1169
|
+
lastErrorMessage: (string | null)
|
|
1170
|
+
baseEnvironmentId: (string | null)
|
|
1171
|
+
}
|
|
345
1172
|
|
|
346
1173
|
export interface DeploymentEnvironmentUpdateInput {
|
|
347
1174
|
id: string
|
|
348
1175
|
name?: string
|
|
349
1176
|
}
|
|
350
1177
|
|
|
351
|
-
export
|
|
1178
|
+
export interface DeploymentEnvironmentUpdateOutput {
|
|
1179
|
+
id: string
|
|
1180
|
+
name: string
|
|
1181
|
+
slug: string
|
|
1182
|
+
type: ("persistent" | "pr-preview")
|
|
1183
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1184
|
+
prBranch: (string | null)
|
|
1185
|
+
prNumber: (number | null)
|
|
1186
|
+
createdAt: string
|
|
1187
|
+
expiresAt: (string | null)
|
|
1188
|
+
updatedAt: string
|
|
1189
|
+
isProduction: boolean
|
|
1190
|
+
lastErrorMessage: (string | null)
|
|
1191
|
+
baseEnvironmentId: (string | null)
|
|
1192
|
+
}
|
|
352
1193
|
|
|
353
1194
|
export interface DeploymentEventsListByEnvironmentInput {
|
|
354
1195
|
type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
|
|
@@ -358,7 +1199,19 @@ until?: string
|
|
|
358
1199
|
environmentId: string
|
|
359
1200
|
}
|
|
360
1201
|
|
|
361
|
-
export type DeploymentEventsListByEnvironmentOutput =
|
|
1202
|
+
export type DeploymentEventsListByEnvironmentOutput = {
|
|
1203
|
+
id: string
|
|
1204
|
+
type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
|
|
1205
|
+
payload: {
|
|
1206
|
+
[k: string]: unknown
|
|
1207
|
+
}
|
|
1208
|
+
domainId: (string | null)
|
|
1209
|
+
createdAt: string
|
|
1210
|
+
productId: string
|
|
1211
|
+
serviceId: (string | null)
|
|
1212
|
+
deploymentId: (string | null)
|
|
1213
|
+
environmentId: (string | null)
|
|
1214
|
+
}[]
|
|
362
1215
|
|
|
363
1216
|
export interface DeploymentEventsListByServiceInput {
|
|
364
1217
|
type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
|
|
@@ -369,50 +1222,135 @@ serviceId: string
|
|
|
369
1222
|
deploymentId?: string
|
|
370
1223
|
}
|
|
371
1224
|
|
|
372
|
-
export type DeploymentEventsListByServiceOutput =
|
|
1225
|
+
export type DeploymentEventsListByServiceOutput = {
|
|
1226
|
+
id: string
|
|
1227
|
+
type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
|
|
1228
|
+
payload: {
|
|
1229
|
+
[k: string]: unknown
|
|
1230
|
+
}
|
|
1231
|
+
domainId: (string | null)
|
|
1232
|
+
createdAt: string
|
|
1233
|
+
productId: string
|
|
1234
|
+
serviceId: (string | null)
|
|
1235
|
+
deploymentId: (string | null)
|
|
1236
|
+
environmentId: (string | null)
|
|
1237
|
+
}[]
|
|
373
1238
|
|
|
374
1239
|
export interface DeploymentManagedServiceBackupInput {
|
|
375
1240
|
id: string
|
|
376
1241
|
}
|
|
377
1242
|
|
|
378
|
-
export
|
|
1243
|
+
export interface DeploymentManagedServiceBackupOutput {
|
|
1244
|
+
id: string
|
|
1245
|
+
name: string
|
|
1246
|
+
slug: string
|
|
1247
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1248
|
+
status: string
|
|
1249
|
+
version: string
|
|
1250
|
+
createdAt: string
|
|
1251
|
+
productId: string
|
|
1252
|
+
updatedAt: string
|
|
1253
|
+
storageGiB: number
|
|
1254
|
+
databaseName: (string | null)
|
|
1255
|
+
environmentId: string
|
|
1256
|
+
lastErrorMessage: (string | null)
|
|
1257
|
+
}
|
|
379
1258
|
|
|
380
1259
|
export interface DeploymentManagedServiceBackupListInput {
|
|
381
1260
|
id: string
|
|
382
1261
|
}
|
|
383
1262
|
|
|
384
|
-
export type DeploymentManagedServiceBackupListOutput =
|
|
1263
|
+
export type DeploymentManagedServiceBackupListOutput = {
|
|
1264
|
+
name: string
|
|
1265
|
+
pvcName: string
|
|
1266
|
+
createdAt: string
|
|
1267
|
+
readyToUse: boolean
|
|
1268
|
+
restoreSize: (string | null)
|
|
1269
|
+
}[]
|
|
385
1270
|
|
|
386
1271
|
export interface DeploymentManagedServiceConnectInfoInput {
|
|
387
1272
|
id: string
|
|
388
1273
|
}
|
|
389
1274
|
|
|
390
|
-
export
|
|
1275
|
+
export interface DeploymentManagedServiceConnectInfoOutput {
|
|
1276
|
+
id: string
|
|
1277
|
+
slug: string
|
|
1278
|
+
vars: {
|
|
1279
|
+
key: string
|
|
1280
|
+
isSecret: boolean
|
|
1281
|
+
refSyntax: string
|
|
1282
|
+
}[]
|
|
1283
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1284
|
+
}
|
|
391
1285
|
|
|
392
1286
|
export interface DeploymentManagedServiceDeleteInput {
|
|
393
1287
|
id: string
|
|
394
1288
|
}
|
|
395
1289
|
|
|
396
|
-
export
|
|
1290
|
+
export interface DeploymentManagedServiceDeleteOutput {
|
|
1291
|
+
id: string
|
|
1292
|
+
name: string
|
|
1293
|
+
slug: string
|
|
1294
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1295
|
+
status: string
|
|
1296
|
+
version: string
|
|
1297
|
+
createdAt: string
|
|
1298
|
+
productId: string
|
|
1299
|
+
updatedAt: string
|
|
1300
|
+
storageGiB: number
|
|
1301
|
+
databaseName: (string | null)
|
|
1302
|
+
environmentId: string
|
|
1303
|
+
lastErrorMessage: (string | null)
|
|
1304
|
+
}
|
|
397
1305
|
|
|
398
1306
|
export interface DeploymentManagedServiceGetInput {
|
|
399
1307
|
id: string
|
|
400
1308
|
}
|
|
401
1309
|
|
|
402
|
-
export
|
|
1310
|
+
export interface DeploymentManagedServiceGetOutput {
|
|
1311
|
+
id: string
|
|
1312
|
+
name: string
|
|
1313
|
+
slug: string
|
|
1314
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1315
|
+
status: string
|
|
1316
|
+
version: string
|
|
1317
|
+
createdAt: string
|
|
1318
|
+
productId: string
|
|
1319
|
+
updatedAt: string
|
|
1320
|
+
storageGiB: number
|
|
1321
|
+
databaseName: (string | null)
|
|
1322
|
+
environmentId: string
|
|
1323
|
+
lastErrorMessage: (string | null)
|
|
1324
|
+
}
|
|
403
1325
|
|
|
404
1326
|
export interface DeploymentManagedServiceListInput {
|
|
405
1327
|
environmentId: string
|
|
406
1328
|
}
|
|
407
1329
|
|
|
408
|
-
export type DeploymentManagedServiceListOutput =
|
|
1330
|
+
export type DeploymentManagedServiceListOutput = {
|
|
1331
|
+
id: string
|
|
1332
|
+
name: string
|
|
1333
|
+
slug: string
|
|
1334
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1335
|
+
status: string
|
|
1336
|
+
version: string
|
|
1337
|
+
createdAt: string
|
|
1338
|
+
productId: string
|
|
1339
|
+
updatedAt: string
|
|
1340
|
+
storageGiB: number
|
|
1341
|
+
databaseName: (string | null)
|
|
1342
|
+
environmentId: string
|
|
1343
|
+
lastErrorMessage: (string | null)
|
|
1344
|
+
}[]
|
|
409
1345
|
|
|
410
1346
|
export interface DeploymentManagedServiceLogsInput {
|
|
411
1347
|
id: string
|
|
412
1348
|
tail?: number
|
|
413
1349
|
}
|
|
414
1350
|
|
|
415
|
-
export
|
|
1351
|
+
export interface DeploymentManagedServiceLogsOutput {
|
|
1352
|
+
lines: string[]
|
|
1353
|
+
}
|
|
416
1354
|
|
|
417
1355
|
export interface DeploymentManagedServiceProvisionInput {
|
|
418
1356
|
name: string
|
|
@@ -424,97 +1362,601 @@ databaseName?: string
|
|
|
424
1362
|
environmentId: string
|
|
425
1363
|
}
|
|
426
1364
|
|
|
427
|
-
export
|
|
428
|
-
|
|
429
|
-
|
|
1365
|
+
export interface DeploymentManagedServiceProvisionOutput {
|
|
1366
|
+
id: string
|
|
1367
|
+
name: string
|
|
1368
|
+
slug: string
|
|
1369
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1370
|
+
status: string
|
|
1371
|
+
version: string
|
|
1372
|
+
createdAt: string
|
|
1373
|
+
productId: string
|
|
1374
|
+
updatedAt: string
|
|
1375
|
+
storageGiB: number
|
|
1376
|
+
databaseName: (string | null)
|
|
1377
|
+
environmentId: string
|
|
1378
|
+
lastErrorMessage: (string | null)
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
export interface DeploymentManagedServiceReconcileInput {
|
|
430
1382
|
id: string
|
|
431
1383
|
}
|
|
432
1384
|
|
|
433
|
-
export
|
|
1385
|
+
export interface DeploymentManagedServiceReconcileOutput {
|
|
1386
|
+
id: string
|
|
1387
|
+
name: string
|
|
1388
|
+
slug: string
|
|
1389
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1390
|
+
status: string
|
|
1391
|
+
version: string
|
|
1392
|
+
createdAt: string
|
|
1393
|
+
productId: string
|
|
1394
|
+
updatedAt: string
|
|
1395
|
+
storageGiB: number
|
|
1396
|
+
databaseName: (string | null)
|
|
1397
|
+
environmentId: string
|
|
1398
|
+
lastErrorMessage: (string | null)
|
|
1399
|
+
}
|
|
434
1400
|
|
|
435
1401
|
export interface DeploymentManagedServiceResizeInput {
|
|
436
1402
|
id: string
|
|
437
1403
|
storageGiB: number
|
|
438
1404
|
}
|
|
439
1405
|
|
|
440
|
-
export
|
|
1406
|
+
export interface DeploymentManagedServiceResizeOutput {
|
|
1407
|
+
id: string
|
|
1408
|
+
name: string
|
|
1409
|
+
slug: string
|
|
1410
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1411
|
+
status: string
|
|
1412
|
+
version: string
|
|
1413
|
+
createdAt: string
|
|
1414
|
+
productId: string
|
|
1415
|
+
updatedAt: string
|
|
1416
|
+
storageGiB: number
|
|
1417
|
+
databaseName: (string | null)
|
|
1418
|
+
environmentId: string
|
|
1419
|
+
lastErrorMessage: (string | null)
|
|
1420
|
+
}
|
|
441
1421
|
|
|
442
1422
|
export interface DeploymentManagedServiceRestoreInput {
|
|
443
1423
|
id: string
|
|
444
1424
|
snapshotName: string
|
|
445
1425
|
}
|
|
446
1426
|
|
|
447
|
-
export
|
|
1427
|
+
export interface DeploymentManagedServiceRestoreOutput {
|
|
1428
|
+
id: string
|
|
1429
|
+
name: string
|
|
1430
|
+
slug: string
|
|
1431
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1432
|
+
status: string
|
|
1433
|
+
version: string
|
|
1434
|
+
createdAt: string
|
|
1435
|
+
productId: string
|
|
1436
|
+
updatedAt: string
|
|
1437
|
+
storageGiB: number
|
|
1438
|
+
databaseName: (string | null)
|
|
1439
|
+
environmentId: string
|
|
1440
|
+
lastErrorMessage: (string | null)
|
|
1441
|
+
}
|
|
448
1442
|
|
|
449
1443
|
export interface DeploymentManagedServiceStartInput {
|
|
450
1444
|
id: string
|
|
451
1445
|
}
|
|
452
1446
|
|
|
453
|
-
export
|
|
1447
|
+
export interface DeploymentManagedServiceStartOutput {
|
|
1448
|
+
id: string
|
|
1449
|
+
name: string
|
|
1450
|
+
slug: string
|
|
1451
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1452
|
+
status: string
|
|
1453
|
+
version: string
|
|
1454
|
+
createdAt: string
|
|
1455
|
+
productId: string
|
|
1456
|
+
updatedAt: string
|
|
1457
|
+
storageGiB: number
|
|
1458
|
+
databaseName: (string | null)
|
|
1459
|
+
environmentId: string
|
|
1460
|
+
lastErrorMessage: (string | null)
|
|
1461
|
+
}
|
|
454
1462
|
|
|
455
1463
|
export interface DeploymentManagedServiceStopInput {
|
|
456
1464
|
id: string
|
|
457
1465
|
}
|
|
458
1466
|
|
|
459
|
-
export
|
|
1467
|
+
export interface DeploymentManagedServiceStopOutput {
|
|
1468
|
+
id: string
|
|
1469
|
+
name: string
|
|
1470
|
+
slug: string
|
|
1471
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1472
|
+
status: string
|
|
1473
|
+
version: string
|
|
1474
|
+
createdAt: string
|
|
1475
|
+
productId: string
|
|
1476
|
+
updatedAt: string
|
|
1477
|
+
storageGiB: number
|
|
1478
|
+
databaseName: (string | null)
|
|
1479
|
+
environmentId: string
|
|
1480
|
+
lastErrorMessage: (string | null)
|
|
1481
|
+
}
|
|
460
1482
|
|
|
461
1483
|
export interface DeploymentManagedServiceTypesInput {
|
|
462
1484
|
|
|
463
1485
|
}
|
|
464
1486
|
|
|
465
|
-
export
|
|
1487
|
+
export interface DeploymentManagedServiceTypesOutput {
|
|
1488
|
+
engines: {
|
|
1489
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1490
|
+
versions: string[]
|
|
1491
|
+
displayName: string
|
|
1492
|
+
defaultVersion: string
|
|
1493
|
+
managedVarKeys: string[]
|
|
1494
|
+
}[]
|
|
1495
|
+
}
|
|
466
1496
|
|
|
467
1497
|
export interface DeploymentMetricsGetInput {
|
|
468
1498
|
window?: ("15m" | "1h" | "6h" | "24h" | "7d")
|
|
469
1499
|
targetId: string
|
|
470
1500
|
targetKind: ("service" | "managed-service")
|
|
471
1501
|
}
|
|
472
|
-
|
|
473
|
-
export
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
1502
|
+
|
|
1503
|
+
export interface DeploymentMetricsGetOutput {
|
|
1504
|
+
series: {
|
|
1505
|
+
unit: ("cores" | "bytes" | "bytes_per_s" | "requests_per_s" | "milliseconds" | "percent")
|
|
1506
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk" | "rps" | "p50" | "p95" | "p99" | "error_rate")
|
|
1507
|
+
points: {
|
|
1508
|
+
t: number
|
|
1509
|
+
v: number
|
|
1510
|
+
}[]
|
|
1511
|
+
}[]
|
|
1512
|
+
window: ("15m" | "1h" | "6h" | "24h" | "7d")
|
|
1513
|
+
capacity: {
|
|
1514
|
+
cpuCores: (number | null)
|
|
1515
|
+
memoryBytes: (number | null)
|
|
1516
|
+
}
|
|
1517
|
+
targetId: string
|
|
1518
|
+
targetKind: ("service" | "managed-service")
|
|
1519
|
+
stepSeconds: number
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export interface DeploymentPreviewEnvironmentCreateInput {
|
|
1523
|
+
prBranch?: string
|
|
1524
|
+
prNumber: number
|
|
1525
|
+
baseEnvironmentId: string
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export interface DeploymentPreviewEnvironmentCreateOutput {
|
|
1529
|
+
id: string
|
|
1530
|
+
name: string
|
|
1531
|
+
slug: string
|
|
1532
|
+
type: ("persistent" | "pr-preview")
|
|
1533
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1534
|
+
prBranch: (string | null)
|
|
1535
|
+
prNumber: (number | null)
|
|
1536
|
+
createdAt: string
|
|
1537
|
+
expiresAt: (string | null)
|
|
1538
|
+
updatedAt: string
|
|
1539
|
+
isProduction: boolean
|
|
1540
|
+
lastErrorMessage: (string | null)
|
|
1541
|
+
baseEnvironmentId: (string | null)
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
export interface DeploymentPreviewEnvironmentDeleteInput {
|
|
1545
|
+
id: string
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export interface DeploymentPreviewEnvironmentDeleteOutput {
|
|
1549
|
+
[k: string]: unknown
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
export interface DeploymentPreviewEnvironmentListInput {
|
|
1553
|
+
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export type DeploymentPreviewEnvironmentListOutput = {
|
|
1557
|
+
id: string
|
|
1558
|
+
name: string
|
|
1559
|
+
slug: string
|
|
1560
|
+
type: ("persistent" | "pr-preview")
|
|
1561
|
+
status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
|
|
1562
|
+
prBranch: (string | null)
|
|
1563
|
+
prNumber: (number | null)
|
|
1564
|
+
createdAt: string
|
|
1565
|
+
expiresAt: (string | null)
|
|
1566
|
+
updatedAt: string
|
|
1567
|
+
isProduction: boolean
|
|
1568
|
+
lastErrorMessage: (string | null)
|
|
1569
|
+
baseEnvironmentId: (string | null)
|
|
1570
|
+
}[]
|
|
1571
|
+
|
|
1572
|
+
export interface DeploymentPreviewPolicyGetInput {
|
|
1573
|
+
baseEnvironmentId: string
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export interface DeploymentPreviewPolicyGetOutput {
|
|
1577
|
+
id: string
|
|
1578
|
+
enabled: boolean
|
|
1579
|
+
ttlHours: number
|
|
1580
|
+
createdAt: string
|
|
1581
|
+
updatedAt: string
|
|
1582
|
+
maxPreviews: number
|
|
1583
|
+
baseEnvironmentId: string
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export interface DeploymentPreviewPolicySetInput {
|
|
1587
|
+
enabled?: boolean
|
|
1588
|
+
ttlHours?: number
|
|
1589
|
+
maxPreviews?: number
|
|
1590
|
+
baseEnvironmentId: string
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
export interface DeploymentPreviewPolicySetOutput {
|
|
1594
|
+
id: string
|
|
1595
|
+
enabled: boolean
|
|
1596
|
+
ttlHours: number
|
|
1597
|
+
createdAt: string
|
|
1598
|
+
updatedAt: string
|
|
1599
|
+
maxPreviews: number
|
|
1600
|
+
baseEnvironmentId: string
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
export interface DeploymentServiceCreateInput {
|
|
1604
|
+
name: string
|
|
1605
|
+
slug?: string
|
|
1606
|
+
canvas?: {
|
|
1607
|
+
x: number
|
|
1608
|
+
y: number
|
|
1609
|
+
}
|
|
1610
|
+
probes?: {
|
|
1611
|
+
liveness?: Readiness
|
|
1612
|
+
readiness?: Readiness
|
|
1613
|
+
}
|
|
1614
|
+
source: ({
|
|
1615
|
+
url?: string
|
|
1616
|
+
path?: string
|
|
1617
|
+
type: "git"
|
|
1618
|
+
branch: string
|
|
1619
|
+
connectorId?: string
|
|
1620
|
+
repoFullName?: string
|
|
1621
|
+
} | {
|
|
1622
|
+
tag: string
|
|
1623
|
+
type: "image"
|
|
1624
|
+
registry: string
|
|
1625
|
+
} | {
|
|
1626
|
+
spa?: boolean
|
|
1627
|
+
repo?: {
|
|
1628
|
+
url?: string
|
|
1629
|
+
path?: string
|
|
1630
|
+
branch: string
|
|
1631
|
+
connectorId?: string
|
|
1632
|
+
repoFullName?: string
|
|
1633
|
+
}
|
|
1634
|
+
type: "static"
|
|
1635
|
+
build?: {
|
|
1636
|
+
command?: string
|
|
1637
|
+
outputDir?: string
|
|
1638
|
+
}
|
|
1639
|
+
})
|
|
1640
|
+
replicas?: number
|
|
1641
|
+
resources?: {
|
|
1642
|
+
limits?: {
|
|
1643
|
+
cpu?: string
|
|
1644
|
+
memory?: string
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
containerPort?: number
|
|
1648
|
+
environmentId: string
|
|
1649
|
+
}
|
|
1650
|
+
export interface Readiness {
|
|
1651
|
+
path: string
|
|
1652
|
+
port?: number
|
|
1653
|
+
periodSeconds?: number
|
|
1654
|
+
timeoutSeconds?: number
|
|
1655
|
+
failureThreshold?: number
|
|
1656
|
+
successThreshold?: number
|
|
1657
|
+
initialDelaySeconds?: number
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
export interface DeploymentServiceCreateOutput {
|
|
1661
|
+
id: string
|
|
1662
|
+
name: string
|
|
1663
|
+
slug: string
|
|
1664
|
+
probes: {
|
|
1665
|
+
liveness?: Readiness
|
|
1666
|
+
readiness?: Readiness
|
|
1667
|
+
}
|
|
1668
|
+
source: ({
|
|
1669
|
+
url?: string
|
|
1670
|
+
path?: string
|
|
1671
|
+
type: "git"
|
|
1672
|
+
branch: string
|
|
1673
|
+
connectorId?: string
|
|
1674
|
+
repoFullName?: string
|
|
1675
|
+
} | {
|
|
1676
|
+
tag: string
|
|
1677
|
+
type: "image"
|
|
1678
|
+
registry: string
|
|
1679
|
+
} | {
|
|
1680
|
+
spa?: boolean
|
|
1681
|
+
repo?: {
|
|
1682
|
+
url?: string
|
|
1683
|
+
path?: string
|
|
1684
|
+
branch: string
|
|
1685
|
+
connectorId?: string
|
|
1686
|
+
repoFullName?: string
|
|
1687
|
+
}
|
|
1688
|
+
type: "static"
|
|
1689
|
+
build?: {
|
|
1690
|
+
command?: string
|
|
1691
|
+
outputDir?: string
|
|
1692
|
+
}
|
|
1693
|
+
})
|
|
1694
|
+
replicas: number
|
|
1695
|
+
createdAt: string
|
|
1696
|
+
dependsOn: string[]
|
|
1697
|
+
resources?: {
|
|
1698
|
+
limits?: {
|
|
1699
|
+
cpu?: string
|
|
1700
|
+
memory?: string
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
updatedAt: string
|
|
1704
|
+
containerPort: number
|
|
1705
|
+
environmentId: string
|
|
1706
|
+
lastReplicasRunning: number
|
|
1707
|
+
}
|
|
1708
|
+
export interface Readiness {
|
|
1709
|
+
path: string
|
|
1710
|
+
port?: number
|
|
1711
|
+
periodSeconds?: number
|
|
1712
|
+
timeoutSeconds?: number
|
|
1713
|
+
failureThreshold?: number
|
|
1714
|
+
successThreshold?: number
|
|
1715
|
+
initialDelaySeconds?: number
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
export interface DeploymentServiceDeleteInput {
|
|
1719
|
+
id: string
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
export interface DeploymentServiceDeleteOutput {
|
|
1723
|
+
[k: string]: unknown
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
export interface DeploymentServiceExecInput {
|
|
1727
|
+
mode?: ("exec" | "job")
|
|
1728
|
+
command: string
|
|
1729
|
+
serviceId: string
|
|
1730
|
+
timeoutSec?: number
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
export interface DeploymentServiceExecOutput {
|
|
1734
|
+
mode: ("exec" | "job")
|
|
1735
|
+
output: string
|
|
1736
|
+
stderr: string
|
|
1737
|
+
stdout: string
|
|
1738
|
+
target: ({
|
|
1739
|
+
kind: "pod"
|
|
1740
|
+
podName: string
|
|
1741
|
+
container: string
|
|
1742
|
+
} | {
|
|
1743
|
+
kind: "job"
|
|
1744
|
+
jobName: string
|
|
1745
|
+
})
|
|
1746
|
+
exitCode: number
|
|
1747
|
+
timedOut: boolean
|
|
1748
|
+
truncated: boolean
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
export interface DeploymentServiceGetInput {
|
|
1752
|
+
id: string
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
export interface DeploymentServiceGetOutput {
|
|
1756
|
+
id: string
|
|
1757
|
+
name: string
|
|
1758
|
+
slug: string
|
|
1759
|
+
probes: {
|
|
1760
|
+
liveness?: Readiness
|
|
1761
|
+
readiness?: Readiness
|
|
1762
|
+
}
|
|
1763
|
+
source: ({
|
|
1764
|
+
url?: string
|
|
1765
|
+
path?: string
|
|
1766
|
+
type: "git"
|
|
1767
|
+
branch: string
|
|
1768
|
+
connectorId?: string
|
|
1769
|
+
repoFullName?: string
|
|
1770
|
+
} | {
|
|
1771
|
+
tag: string
|
|
1772
|
+
type: "image"
|
|
1773
|
+
registry: string
|
|
1774
|
+
} | {
|
|
1775
|
+
spa?: boolean
|
|
1776
|
+
repo?: {
|
|
1777
|
+
url?: string
|
|
1778
|
+
path?: string
|
|
1779
|
+
branch: string
|
|
1780
|
+
connectorId?: string
|
|
1781
|
+
repoFullName?: string
|
|
1782
|
+
}
|
|
1783
|
+
type: "static"
|
|
1784
|
+
build?: {
|
|
1785
|
+
command?: string
|
|
1786
|
+
outputDir?: string
|
|
1787
|
+
}
|
|
1788
|
+
})
|
|
1789
|
+
replicas: number
|
|
1790
|
+
createdAt: string
|
|
1791
|
+
dependsOn: string[]
|
|
1792
|
+
resources?: {
|
|
1793
|
+
limits?: {
|
|
1794
|
+
cpu?: string
|
|
1795
|
+
memory?: string
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
updatedAt: string
|
|
1799
|
+
containerPort: number
|
|
1800
|
+
environmentId: string
|
|
1801
|
+
lastReplicasRunning: number
|
|
1802
|
+
}
|
|
1803
|
+
export interface Readiness {
|
|
1804
|
+
path: string
|
|
1805
|
+
port?: number
|
|
1806
|
+
periodSeconds?: number
|
|
1807
|
+
timeoutSeconds?: number
|
|
1808
|
+
failureThreshold?: number
|
|
1809
|
+
successThreshold?: number
|
|
1810
|
+
initialDelaySeconds?: number
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
export interface DeploymentServiceListInput {
|
|
1814
|
+
environmentId: string
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
export type DeploymentServiceListOutput = {
|
|
1818
|
+
id: string
|
|
1819
|
+
name: string
|
|
1820
|
+
slug: string
|
|
1821
|
+
probes: {
|
|
1822
|
+
liveness?: Readiness
|
|
1823
|
+
readiness?: Readiness
|
|
1824
|
+
}
|
|
1825
|
+
source: ({
|
|
1826
|
+
url?: string
|
|
1827
|
+
path?: string
|
|
1828
|
+
type: "git"
|
|
1829
|
+
branch: string
|
|
1830
|
+
connectorId?: string
|
|
1831
|
+
repoFullName?: string
|
|
1832
|
+
} | {
|
|
1833
|
+
tag: string
|
|
1834
|
+
type: "image"
|
|
1835
|
+
registry: string
|
|
1836
|
+
} | {
|
|
1837
|
+
spa?: boolean
|
|
1838
|
+
repo?: {
|
|
1839
|
+
url?: string
|
|
1840
|
+
path?: string
|
|
1841
|
+
branch: string
|
|
1842
|
+
connectorId?: string
|
|
1843
|
+
repoFullName?: string
|
|
1844
|
+
}
|
|
1845
|
+
type: "static"
|
|
1846
|
+
build?: {
|
|
1847
|
+
command?: string
|
|
1848
|
+
outputDir?: string
|
|
1849
|
+
}
|
|
1850
|
+
})
|
|
1851
|
+
replicas: number
|
|
1852
|
+
createdAt: string
|
|
1853
|
+
dependsOn: string[]
|
|
1854
|
+
resources?: {
|
|
1855
|
+
limits?: {
|
|
1856
|
+
cpu?: string
|
|
1857
|
+
memory?: string
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
updatedAt: string
|
|
1861
|
+
containerPort: number
|
|
1862
|
+
environmentId: string
|
|
1863
|
+
lastReplicasRunning: number
|
|
1864
|
+
}[]
|
|
1865
|
+
|
|
1866
|
+
export interface Readiness {
|
|
1867
|
+
path: string
|
|
1868
|
+
port?: number
|
|
1869
|
+
periodSeconds?: number
|
|
1870
|
+
timeoutSeconds?: number
|
|
1871
|
+
failureThreshold?: number
|
|
1872
|
+
successThreshold?: number
|
|
1873
|
+
initialDelaySeconds?: number
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
export interface DeploymentServiceLogsInput {
|
|
1877
|
+
tail?: number
|
|
1878
|
+
serviceId: string
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export interface DeploymentServiceLogsOutput {
|
|
1882
|
+
lines: string[]
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
export interface DeploymentServiceRedeployInput {
|
|
1886
|
+
serviceId: string
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
export interface DeploymentServiceRedeployOutput {
|
|
1890
|
+
id: string
|
|
1891
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
1892
|
+
builtAt: (string | null)
|
|
1893
|
+
imageRef: (string | null)
|
|
1894
|
+
commitSha: (string | null)
|
|
1895
|
+
createdAt: string
|
|
1896
|
+
serviceId: string
|
|
1897
|
+
startedAt: (string | null)
|
|
1898
|
+
updatedAt: string
|
|
1899
|
+
deployedAt: (string | null)
|
|
1900
|
+
finishedAt: (string | null)
|
|
1901
|
+
cloudBuildId: (string | null)
|
|
1902
|
+
configSnapshot: {
|
|
1903
|
+
source?: unknown
|
|
1904
|
+
variables: {
|
|
1905
|
+
key: string
|
|
1906
|
+
value: string
|
|
1907
|
+
}[]
|
|
1908
|
+
}
|
|
1909
|
+
lastErrorMessage: (string | null)
|
|
1910
|
+
rolledBackFromDeploymentId: (string | null)
|
|
479
1911
|
}
|
|
480
1912
|
|
|
481
|
-
export
|
|
482
|
-
|
|
483
|
-
export interface DeploymentPreviewEnvironmentDeleteInput {
|
|
1913
|
+
export interface DeploymentServiceRestartInput {
|
|
484
1914
|
id: string
|
|
485
1915
|
}
|
|
486
1916
|
|
|
487
|
-
export
|
|
488
|
-
|
|
489
|
-
export interface DeploymentPreviewEnvironmentListInput {
|
|
490
|
-
|
|
1917
|
+
export interface DeploymentServiceRestartOutput {
|
|
1918
|
+
[k: string]: unknown
|
|
491
1919
|
}
|
|
492
1920
|
|
|
493
|
-
export
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
baseEnvironmentId: string
|
|
1921
|
+
export interface DeploymentServiceRollbackInput {
|
|
1922
|
+
serviceId: string
|
|
1923
|
+
deploymentId: string
|
|
497
1924
|
}
|
|
498
1925
|
|
|
499
|
-
export
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
1926
|
+
export interface DeploymentServiceRollbackOutput {
|
|
1927
|
+
id: string
|
|
1928
|
+
status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
|
|
1929
|
+
builtAt: (string | null)
|
|
1930
|
+
imageRef: (string | null)
|
|
1931
|
+
commitSha: (string | null)
|
|
1932
|
+
createdAt: string
|
|
1933
|
+
serviceId: string
|
|
1934
|
+
startedAt: (string | null)
|
|
1935
|
+
updatedAt: string
|
|
1936
|
+
deployedAt: (string | null)
|
|
1937
|
+
finishedAt: (string | null)
|
|
1938
|
+
cloudBuildId: (string | null)
|
|
1939
|
+
configSnapshot: {
|
|
1940
|
+
source?: unknown
|
|
1941
|
+
variables: {
|
|
1942
|
+
key: string
|
|
1943
|
+
value: string
|
|
1944
|
+
}[]
|
|
1945
|
+
}
|
|
1946
|
+
lastErrorMessage: (string | null)
|
|
1947
|
+
rolledBackFromDeploymentId: (string | null)
|
|
506
1948
|
}
|
|
507
1949
|
|
|
508
|
-
export
|
|
1950
|
+
export interface DeploymentServiceScaleInput {
|
|
1951
|
+
id: string
|
|
1952
|
+
replicas: number
|
|
1953
|
+
}
|
|
509
1954
|
|
|
510
|
-
export interface
|
|
1955
|
+
export interface DeploymentServiceScaleOutput {
|
|
1956
|
+
id: string
|
|
511
1957
|
name: string
|
|
512
|
-
slug
|
|
513
|
-
|
|
514
|
-
x: number
|
|
515
|
-
y: number
|
|
516
|
-
}
|
|
517
|
-
probes?: {
|
|
1958
|
+
slug: string
|
|
1959
|
+
probes: {
|
|
518
1960
|
liveness?: Readiness
|
|
519
1961
|
readiness?: Readiness
|
|
520
1962
|
}
|
|
@@ -544,15 +1986,19 @@ command?: string
|
|
|
544
1986
|
outputDir?: string
|
|
545
1987
|
}
|
|
546
1988
|
})
|
|
547
|
-
replicas
|
|
1989
|
+
replicas: number
|
|
1990
|
+
createdAt: string
|
|
1991
|
+
dependsOn: string[]
|
|
548
1992
|
resources?: {
|
|
549
1993
|
limits?: {
|
|
550
1994
|
cpu?: string
|
|
551
1995
|
memory?: string
|
|
552
1996
|
}
|
|
553
1997
|
}
|
|
554
|
-
|
|
1998
|
+
updatedAt: string
|
|
1999
|
+
containerPort: number
|
|
555
2000
|
environmentId: string
|
|
2001
|
+
lastReplicasRunning: number
|
|
556
2002
|
}
|
|
557
2003
|
export interface Readiness {
|
|
558
2004
|
path: string
|
|
@@ -564,76 +2010,67 @@ successThreshold?: number
|
|
|
564
2010
|
initialDelaySeconds?: number
|
|
565
2011
|
}
|
|
566
2012
|
|
|
567
|
-
export
|
|
568
|
-
|
|
569
|
-
export interface DeploymentServiceDeleteInput {
|
|
570
|
-
id: string
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
export type DeploymentServiceDeleteOutput = unknown;
|
|
574
|
-
|
|
575
|
-
export interface DeploymentServiceExecInput {
|
|
576
|
-
mode?: ("exec" | "job")
|
|
577
|
-
command: string
|
|
578
|
-
serviceId: string
|
|
579
|
-
timeoutSec?: number
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
export type DeploymentServiceExecOutput = unknown;
|
|
583
|
-
|
|
584
|
-
export interface DeploymentServiceGetInput {
|
|
2013
|
+
export interface DeploymentServiceUpdateInput {
|
|
585
2014
|
id: string
|
|
2015
|
+
name?: string
|
|
2016
|
+
probes?: {
|
|
2017
|
+
liveness?: Readiness
|
|
2018
|
+
readiness?: Readiness
|
|
586
2019
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
2020
|
+
source?: ({
|
|
2021
|
+
url?: string
|
|
2022
|
+
path?: string
|
|
2023
|
+
type: "git"
|
|
2024
|
+
branch: string
|
|
2025
|
+
connectorId?: string
|
|
2026
|
+
repoFullName?: string
|
|
2027
|
+
} | {
|
|
2028
|
+
tag: string
|
|
2029
|
+
type: "image"
|
|
2030
|
+
registry: string
|
|
2031
|
+
} | {
|
|
2032
|
+
spa?: boolean
|
|
2033
|
+
repo?: {
|
|
2034
|
+
url?: string
|
|
2035
|
+
path?: string
|
|
2036
|
+
branch: string
|
|
2037
|
+
connectorId?: string
|
|
2038
|
+
repoFullName?: string
|
|
592
2039
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
tail?: number
|
|
598
|
-
serviceId: string
|
|
2040
|
+
type: "static"
|
|
2041
|
+
build?: {
|
|
2042
|
+
command?: string
|
|
2043
|
+
outputDir?: string
|
|
599
2044
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
2045
|
+
})
|
|
2046
|
+
replicas?: number
|
|
2047
|
+
resources?: {
|
|
2048
|
+
limits?: {
|
|
2049
|
+
cpu?: string
|
|
2050
|
+
memory?: string
|
|
605
2051
|
}
|
|
606
|
-
|
|
607
|
-
export type DeploymentServiceRedeployOutput = unknown;
|
|
608
|
-
|
|
609
|
-
export interface DeploymentServiceRestartInput {
|
|
610
|
-
id: string
|
|
611
2052
|
}
|
|
612
|
-
|
|
613
|
-
export type DeploymentServiceRestartOutput = unknown;
|
|
614
|
-
|
|
615
|
-
export interface DeploymentServiceRollbackInput {
|
|
616
|
-
serviceId: string
|
|
617
|
-
deploymentId: string
|
|
2053
|
+
containerPort?: number
|
|
618
2054
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
2055
|
+
export interface Readiness {
|
|
2056
|
+
path: string
|
|
2057
|
+
port?: number
|
|
2058
|
+
periodSeconds?: number
|
|
2059
|
+
timeoutSeconds?: number
|
|
2060
|
+
failureThreshold?: number
|
|
2061
|
+
successThreshold?: number
|
|
2062
|
+
initialDelaySeconds?: number
|
|
625
2063
|
}
|
|
626
2064
|
|
|
627
|
-
export
|
|
628
|
-
|
|
629
|
-
export interface DeploymentServiceUpdateInput {
|
|
2065
|
+
export interface DeploymentServiceUpdateOutput {
|
|
630
2066
|
id: string
|
|
631
|
-
name
|
|
632
|
-
|
|
2067
|
+
name: string
|
|
2068
|
+
slug: string
|
|
2069
|
+
probes: {
|
|
633
2070
|
liveness?: Readiness
|
|
634
2071
|
readiness?: Readiness
|
|
635
2072
|
}
|
|
636
|
-
source
|
|
2073
|
+
source: ({
|
|
637
2074
|
url?: string
|
|
638
2075
|
path?: string
|
|
639
2076
|
type: "git"
|
|
@@ -659,14 +2096,19 @@ command?: string
|
|
|
659
2096
|
outputDir?: string
|
|
660
2097
|
}
|
|
661
2098
|
})
|
|
662
|
-
replicas
|
|
2099
|
+
replicas: number
|
|
2100
|
+
createdAt: string
|
|
2101
|
+
dependsOn: string[]
|
|
663
2102
|
resources?: {
|
|
664
2103
|
limits?: {
|
|
665
2104
|
cpu?: string
|
|
666
2105
|
memory?: string
|
|
667
2106
|
}
|
|
668
2107
|
}
|
|
669
|
-
|
|
2108
|
+
updatedAt: string
|
|
2109
|
+
containerPort: number
|
|
2110
|
+
environmentId: string
|
|
2111
|
+
lastReplicasRunning: number
|
|
670
2112
|
}
|
|
671
2113
|
export interface Readiness {
|
|
672
2114
|
path: string
|
|
@@ -678,25 +2120,39 @@ successThreshold?: number
|
|
|
678
2120
|
initialDelaySeconds?: number
|
|
679
2121
|
}
|
|
680
2122
|
|
|
681
|
-
export type DeploymentServiceUpdateOutput = unknown;
|
|
682
|
-
|
|
683
2123
|
export interface DeploymentSshCommandInput {
|
|
684
2124
|
serviceId: string
|
|
685
2125
|
}
|
|
686
2126
|
|
|
687
|
-
export
|
|
2127
|
+
export interface DeploymentSshCommandOutput {
|
|
2128
|
+
host: string
|
|
2129
|
+
command: string
|
|
2130
|
+
username: string
|
|
2131
|
+
}
|
|
688
2132
|
|
|
689
2133
|
export interface DeploymentSshKeyDeleteInput {
|
|
690
2134
|
id: string
|
|
691
2135
|
}
|
|
692
2136
|
|
|
693
|
-
export
|
|
2137
|
+
export interface DeploymentSshKeyDeleteOutput {
|
|
2138
|
+
deleted: boolean
|
|
2139
|
+
}
|
|
694
2140
|
|
|
695
2141
|
export interface DeploymentSshKeyListInput {
|
|
696
2142
|
|
|
697
2143
|
}
|
|
698
2144
|
|
|
699
|
-
export type DeploymentSshKeyListOutput =
|
|
2145
|
+
export type DeploymentSshKeyListOutput = {
|
|
2146
|
+
id: string
|
|
2147
|
+
algo: string
|
|
2148
|
+
name: string
|
|
2149
|
+
scope: ("workspace" | "personal")
|
|
2150
|
+
createdAt: string
|
|
2151
|
+
productId: string
|
|
2152
|
+
lastUsedAt: (string | null)
|
|
2153
|
+
ownerIdentityId: string
|
|
2154
|
+
fingerprintSha256: string
|
|
2155
|
+
}[]
|
|
700
2156
|
|
|
701
2157
|
export interface DeploymentSshKeyRegisterInput {
|
|
702
2158
|
/**
|
|
@@ -709,25 +2165,65 @@ name: string
|
|
|
709
2165
|
publicKey: string
|
|
710
2166
|
}
|
|
711
2167
|
|
|
712
|
-
export
|
|
2168
|
+
export interface DeploymentSshKeyRegisterOutput {
|
|
2169
|
+
id: string
|
|
2170
|
+
algo: string
|
|
2171
|
+
name: string
|
|
2172
|
+
scope: ("workspace" | "personal")
|
|
2173
|
+
createdAt: string
|
|
2174
|
+
productId: string
|
|
2175
|
+
lastUsedAt: (string | null)
|
|
2176
|
+
ownerIdentityId: string
|
|
2177
|
+
fingerprintSha256: string
|
|
2178
|
+
}
|
|
713
2179
|
|
|
714
2180
|
export interface DeploymentVariableListInput {
|
|
715
2181
|
serviceId: string
|
|
716
2182
|
}
|
|
717
2183
|
|
|
718
|
-
export type DeploymentVariableListOutput =
|
|
2184
|
+
export type DeploymentVariableListOutput = {
|
|
2185
|
+
id: string
|
|
2186
|
+
key: string
|
|
2187
|
+
scope: ("service" | "environment" | "product")
|
|
2188
|
+
value: (string | null)
|
|
2189
|
+
isSecret: boolean
|
|
2190
|
+
createdAt: string
|
|
2191
|
+
serviceId: (string | null)
|
|
2192
|
+
updatedAt: string
|
|
2193
|
+
environmentId: (string | null)
|
|
2194
|
+
}[]
|
|
719
2195
|
|
|
720
2196
|
export interface DeploymentVariableListEnvInput {
|
|
721
2197
|
environmentId: string
|
|
722
2198
|
}
|
|
723
2199
|
|
|
724
|
-
export type DeploymentVariableListEnvOutput =
|
|
2200
|
+
export type DeploymentVariableListEnvOutput = {
|
|
2201
|
+
id: string
|
|
2202
|
+
key: string
|
|
2203
|
+
scope: ("service" | "environment" | "product")
|
|
2204
|
+
value: (string | null)
|
|
2205
|
+
isSecret: boolean
|
|
2206
|
+
createdAt: string
|
|
2207
|
+
serviceId: (string | null)
|
|
2208
|
+
updatedAt: string
|
|
2209
|
+
environmentId: (string | null)
|
|
2210
|
+
}[]
|
|
725
2211
|
|
|
726
2212
|
export interface DeploymentVariableListProductInput {
|
|
727
2213
|
|
|
728
2214
|
}
|
|
729
2215
|
|
|
730
|
-
export type DeploymentVariableListProductOutput =
|
|
2216
|
+
export type DeploymentVariableListProductOutput = {
|
|
2217
|
+
id: string
|
|
2218
|
+
key: string
|
|
2219
|
+
scope: ("service" | "environment" | "product")
|
|
2220
|
+
value: (string | null)
|
|
2221
|
+
isSecret: boolean
|
|
2222
|
+
createdAt: string
|
|
2223
|
+
serviceId: (string | null)
|
|
2224
|
+
updatedAt: string
|
|
2225
|
+
environmentId: (string | null)
|
|
2226
|
+
}[]
|
|
731
2227
|
|
|
732
2228
|
export interface DeploymentVariableSetInput {
|
|
733
2229
|
key: string
|
|
@@ -736,7 +2232,17 @@ isSecret?: boolean
|
|
|
736
2232
|
serviceId: string
|
|
737
2233
|
}
|
|
738
2234
|
|
|
739
|
-
export
|
|
2235
|
+
export interface DeploymentVariableSetOutput {
|
|
2236
|
+
id: string
|
|
2237
|
+
key: string
|
|
2238
|
+
scope: ("service" | "environment" | "product")
|
|
2239
|
+
value: (string | null)
|
|
2240
|
+
isSecret: boolean
|
|
2241
|
+
createdAt: string
|
|
2242
|
+
serviceId: (string | null)
|
|
2243
|
+
updatedAt: string
|
|
2244
|
+
environmentId: (string | null)
|
|
2245
|
+
}
|
|
740
2246
|
|
|
741
2247
|
export interface DeploymentVariableSetEnvInput {
|
|
742
2248
|
key: string
|
|
@@ -745,7 +2251,17 @@ isSecret?: boolean
|
|
|
745
2251
|
environmentId: string
|
|
746
2252
|
}
|
|
747
2253
|
|
|
748
|
-
export
|
|
2254
|
+
export interface DeploymentVariableSetEnvOutput {
|
|
2255
|
+
id: string
|
|
2256
|
+
key: string
|
|
2257
|
+
scope: ("service" | "environment" | "product")
|
|
2258
|
+
value: (string | null)
|
|
2259
|
+
isSecret: boolean
|
|
2260
|
+
createdAt: string
|
|
2261
|
+
serviceId: (string | null)
|
|
2262
|
+
updatedAt: string
|
|
2263
|
+
environmentId: (string | null)
|
|
2264
|
+
}
|
|
749
2265
|
|
|
750
2266
|
export interface DeploymentVariableSetProductInput {
|
|
751
2267
|
key: string
|
|
@@ -753,40 +2269,64 @@ value: string
|
|
|
753
2269
|
isSecret?: boolean
|
|
754
2270
|
}
|
|
755
2271
|
|
|
756
|
-
export
|
|
2272
|
+
export interface DeploymentVariableSetProductOutput {
|
|
2273
|
+
id: string
|
|
2274
|
+
key: string
|
|
2275
|
+
scope: ("service" | "environment" | "product")
|
|
2276
|
+
value: (string | null)
|
|
2277
|
+
isSecret: boolean
|
|
2278
|
+
createdAt: string
|
|
2279
|
+
serviceId: (string | null)
|
|
2280
|
+
updatedAt: string
|
|
2281
|
+
environmentId: (string | null)
|
|
2282
|
+
}
|
|
757
2283
|
|
|
758
2284
|
export interface DeploymentVariableUnsetInput {
|
|
759
2285
|
key: string
|
|
760
2286
|
serviceId: string
|
|
761
2287
|
}
|
|
762
2288
|
|
|
763
|
-
export
|
|
2289
|
+
export interface DeploymentVariableUnsetOutput {
|
|
2290
|
+
[k: string]: unknown
|
|
2291
|
+
}
|
|
764
2292
|
|
|
765
2293
|
export interface DeploymentVariableUnsetEnvInput {
|
|
766
2294
|
key: string
|
|
767
2295
|
environmentId: string
|
|
768
2296
|
}
|
|
769
2297
|
|
|
770
|
-
export
|
|
2298
|
+
export interface DeploymentVariableUnsetEnvOutput {
|
|
2299
|
+
[k: string]: unknown
|
|
2300
|
+
}
|
|
771
2301
|
|
|
772
2302
|
export interface DeploymentVariableUnsetProductInput {
|
|
773
2303
|
key: string
|
|
774
2304
|
}
|
|
775
2305
|
|
|
776
|
-
export
|
|
2306
|
+
export interface DeploymentVariableUnsetProductOutput {
|
|
2307
|
+
[k: string]: unknown
|
|
2308
|
+
}
|
|
777
2309
|
|
|
778
2310
|
export interface DeploymentVcsBranchListInput {
|
|
779
2311
|
connectorId: string
|
|
780
2312
|
repoFullName: string
|
|
781
2313
|
}
|
|
782
2314
|
|
|
783
|
-
export type DeploymentVcsBranchListOutput =
|
|
2315
|
+
export type DeploymentVcsBranchListOutput = {
|
|
2316
|
+
name: string
|
|
2317
|
+
commitSha: string
|
|
2318
|
+
}[]
|
|
784
2319
|
|
|
785
2320
|
export interface DeploymentVcsConnectionListInput {
|
|
786
2321
|
|
|
787
2322
|
}
|
|
788
2323
|
|
|
789
|
-
export type DeploymentVcsConnectionListOutput =
|
|
2324
|
+
export type DeploymentVcsConnectionListOutput = {
|
|
2325
|
+
status: string
|
|
2326
|
+
connectorId: string
|
|
2327
|
+
accountLogin: string
|
|
2328
|
+
installationId: string
|
|
2329
|
+
}[]
|
|
790
2330
|
|
|
791
2331
|
export interface DeploymentVcsRepoListInput {
|
|
792
2332
|
page?: number
|
|
@@ -794,7 +2334,11 @@ search?: string
|
|
|
794
2334
|
connectorId: string
|
|
795
2335
|
}
|
|
796
2336
|
|
|
797
|
-
export type DeploymentVcsRepoListOutput =
|
|
2337
|
+
export type DeploymentVcsRepoListOutput = {
|
|
2338
|
+
private: boolean
|
|
2339
|
+
fullName: string
|
|
2340
|
+
defaultBranch: string
|
|
2341
|
+
}[]
|
|
798
2342
|
|
|
799
2343
|
export interface DeploymentVolumeCreateInput {
|
|
800
2344
|
name: string
|
|
@@ -805,38 +2349,100 @@ environmentId: string
|
|
|
805
2349
|
attachedServiceId?: string
|
|
806
2350
|
}
|
|
807
2351
|
|
|
808
|
-
export
|
|
2352
|
+
export interface DeploymentVolumeCreateOutput {
|
|
2353
|
+
id: string
|
|
2354
|
+
name: string
|
|
2355
|
+
slug: string
|
|
2356
|
+
sizeGb: number
|
|
2357
|
+
status: ("provisioning" | "ready" | "detached" | "failed")
|
|
2358
|
+
createdAt: string
|
|
2359
|
+
mountPath: string
|
|
2360
|
+
updatedAt: string
|
|
2361
|
+
environmentId: string
|
|
2362
|
+
lastErrorMessage: (string | null)
|
|
2363
|
+
attachedServiceId: (string | null)
|
|
2364
|
+
}
|
|
809
2365
|
|
|
810
2366
|
export interface DeploymentVolumeDeleteInput {
|
|
811
2367
|
id: string
|
|
812
2368
|
}
|
|
813
2369
|
|
|
814
|
-
export
|
|
2370
|
+
export interface DeploymentVolumeDeleteOutput {
|
|
2371
|
+
[k: string]: unknown
|
|
2372
|
+
}
|
|
815
2373
|
|
|
816
2374
|
export interface DeploymentVolumeDetachInput {
|
|
817
2375
|
id: string
|
|
818
2376
|
}
|
|
819
2377
|
|
|
820
|
-
export
|
|
2378
|
+
export interface DeploymentVolumeDetachOutput {
|
|
2379
|
+
id: string
|
|
2380
|
+
name: string
|
|
2381
|
+
slug: string
|
|
2382
|
+
sizeGb: number
|
|
2383
|
+
status: ("provisioning" | "ready" | "detached" | "failed")
|
|
2384
|
+
createdAt: string
|
|
2385
|
+
mountPath: string
|
|
2386
|
+
updatedAt: string
|
|
2387
|
+
environmentId: string
|
|
2388
|
+
lastErrorMessage: (string | null)
|
|
2389
|
+
attachedServiceId: (string | null)
|
|
2390
|
+
}
|
|
821
2391
|
|
|
822
2392
|
export interface DeploymentVolumeGetInput {
|
|
823
2393
|
id: string
|
|
824
2394
|
}
|
|
825
2395
|
|
|
826
|
-
export
|
|
2396
|
+
export interface DeploymentVolumeGetOutput {
|
|
2397
|
+
id: string
|
|
2398
|
+
name: string
|
|
2399
|
+
slug: string
|
|
2400
|
+
sizeGb: number
|
|
2401
|
+
status: ("provisioning" | "ready" | "detached" | "failed")
|
|
2402
|
+
createdAt: string
|
|
2403
|
+
mountPath: string
|
|
2404
|
+
updatedAt: string
|
|
2405
|
+
environmentId: string
|
|
2406
|
+
lastErrorMessage: (string | null)
|
|
2407
|
+
attachedServiceId: (string | null)
|
|
2408
|
+
}
|
|
827
2409
|
|
|
828
2410
|
export interface DeploymentVolumeListInput {
|
|
829
2411
|
environmentId: string
|
|
830
2412
|
}
|
|
831
2413
|
|
|
832
|
-
export type DeploymentVolumeListOutput =
|
|
2414
|
+
export type DeploymentVolumeListOutput = {
|
|
2415
|
+
id: string
|
|
2416
|
+
name: string
|
|
2417
|
+
slug: string
|
|
2418
|
+
sizeGb: number
|
|
2419
|
+
status: ("provisioning" | "ready" | "detached" | "failed")
|
|
2420
|
+
createdAt: string
|
|
2421
|
+
mountPath: string
|
|
2422
|
+
updatedAt: string
|
|
2423
|
+
environmentId: string
|
|
2424
|
+
lastErrorMessage: (string | null)
|
|
2425
|
+
attachedServiceId: (string | null)
|
|
2426
|
+
}[]
|
|
833
2427
|
|
|
834
2428
|
export interface DeploymentVolumeResizeInput {
|
|
835
2429
|
id: string
|
|
836
2430
|
sizeGb: number
|
|
837
2431
|
}
|
|
838
2432
|
|
|
839
|
-
export
|
|
2433
|
+
export interface DeploymentVolumeResizeOutput {
|
|
2434
|
+
id: string
|
|
2435
|
+
name: string
|
|
2436
|
+
slug: string
|
|
2437
|
+
sizeGb: number
|
|
2438
|
+
status: ("provisioning" | "ready" | "detached" | "failed")
|
|
2439
|
+
createdAt: string
|
|
2440
|
+
mountPath: string
|
|
2441
|
+
updatedAt: string
|
|
2442
|
+
environmentId: string
|
|
2443
|
+
lastErrorMessage: (string | null)
|
|
2444
|
+
attachedServiceId: (string | null)
|
|
2445
|
+
}
|
|
840
2446
|
|
|
841
2447
|
export interface OrganizationAuthMeInput {
|
|
842
2448
|
|