@lessly/sdk-app 0.3.1 → 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.cjs +531 -0
- package/dist/deployment/index.cjs.map +1 -0
- package/dist/deployment/index.d.cts +424 -0
- package/dist/deployment/index.d.ts +424 -0
- package/dist/deployment/index.js +425 -0
- package/dist/deployment/index.js.map +1 -0
- package/dist/index.cjs +1649 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1649 -0
- package/dist/index.js.map +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 +7 -2
- package/src/gen/bindings.gen.ts +1649 -0
- package/src/gen/client.gen.ts +391 -0
- package/src/gen/deployment/index.ts +3 -0
- package/src/gen/deployment/queryOptions.gen.ts +681 -0
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/types.gen.ts +2444 -0
- package/dist/client.gen-DtgaSZYB.d.cts +0 -909
- package/dist/client.gen-DtgaSZYB.d.ts +0 -909
package/src/gen/types.gen.ts
CHANGED
|
@@ -1,5 +1,2449 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
|
|
3
|
+
export interface DeploymentAlertCreateInput {
|
|
4
|
+
metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
|
|
5
|
+
enabled?: boolean
|
|
6
|
+
targetId: string
|
|
7
|
+
threshold: number
|
|
8
|
+
comparator: ("gt" | "lt")
|
|
9
|
+
targetKind: ("service" | "managed-service")
|
|
10
|
+
}
|
|
11
|
+
|
|
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
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface DeploymentAlertDeleteInput {
|
|
30
|
+
id: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface DeploymentAlertDeleteOutput {
|
|
34
|
+
deleted: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface DeploymentAlertEventsListInput {
|
|
38
|
+
limit?: number
|
|
39
|
+
environmentId: string
|
|
40
|
+
}
|
|
41
|
+
|
|
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
|
+
}[]
|
|
54
|
+
|
|
55
|
+
export interface DeploymentAlertListInput {
|
|
56
|
+
environmentId: string
|
|
57
|
+
}
|
|
58
|
+
|
|
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
|
+
}[]
|
|
75
|
+
|
|
76
|
+
export interface DeploymentAlertUpdateInput {
|
|
77
|
+
id: string
|
|
78
|
+
enabled?: boolean
|
|
79
|
+
threshold?: number
|
|
80
|
+
comparator?: ("gt" | "lt")
|
|
81
|
+
}
|
|
82
|
+
|
|
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
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface DeploymentAnalyticsQueryInput {
|
|
101
|
+
q: string
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface DeploymentAnalyticsQueryOutput {
|
|
105
|
+
sql: string
|
|
106
|
+
rows: {
|
|
107
|
+
[k: string]: unknown
|
|
108
|
+
}[]
|
|
109
|
+
answer: string
|
|
110
|
+
truncated: boolean
|
|
111
|
+
explanation: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface DeploymentAuditListInput {
|
|
115
|
+
limit?: number
|
|
116
|
+
action?: string
|
|
117
|
+
actorId?: string
|
|
118
|
+
serviceId?: string
|
|
119
|
+
entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
|
|
120
|
+
environmentId: string
|
|
121
|
+
}
|
|
122
|
+
|
|
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
|
+
}[]
|
|
138
|
+
|
|
139
|
+
export interface DeploymentBuildGetInput {
|
|
140
|
+
id: string
|
|
141
|
+
}
|
|
142
|
+
|
|
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
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface DeploymentBuildListInput {
|
|
158
|
+
serviceId: string
|
|
159
|
+
}
|
|
160
|
+
|
|
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
|
+
}[]
|
|
174
|
+
|
|
175
|
+
export interface DeploymentBuildLogsInput {
|
|
176
|
+
tail?: number
|
|
177
|
+
since?: string
|
|
178
|
+
serviceId: string
|
|
179
|
+
deploymentId: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface DeploymentBuildLogsOutput {
|
|
183
|
+
lines: {
|
|
184
|
+
ts: string
|
|
185
|
+
text: string
|
|
186
|
+
}[]
|
|
187
|
+
cursor: (string | null)
|
|
188
|
+
complete: boolean
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface DeploymentCanvasGetInput {
|
|
192
|
+
environmentId: string
|
|
193
|
+
}
|
|
194
|
+
|
|
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
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface DeploymentCanvasMoveNodeInput {
|
|
277
|
+
x?: number
|
|
278
|
+
y?: number
|
|
279
|
+
width?: number
|
|
280
|
+
height?: number
|
|
281
|
+
nodeId: string
|
|
282
|
+
environmentId: string
|
|
283
|
+
}
|
|
284
|
+
|
|
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
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface DeploymentCloudSqlBackfillLogFlagsInput {
|
|
298
|
+
instanceId?: string
|
|
299
|
+
}
|
|
300
|
+
|
|
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
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface DeploymentCloudSqlDatabaseAttachInput {
|
|
320
|
+
serviceId: string
|
|
321
|
+
databaseId: string
|
|
322
|
+
environmentId: string
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface DeploymentCloudSqlDatabaseAttachOutput {
|
|
326
|
+
id: string
|
|
327
|
+
status: string
|
|
328
|
+
serviceId: string
|
|
329
|
+
databaseId: string
|
|
330
|
+
environmentId: string
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface DeploymentCloudSqlDatabaseCreateInput {
|
|
334
|
+
label?: string
|
|
335
|
+
instanceId: string
|
|
336
|
+
}
|
|
337
|
+
|
|
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
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface DeploymentCloudSqlDatabaseDeleteInput {
|
|
351
|
+
databaseId: string
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface DeploymentCloudSqlDatabaseDeleteOutput {
|
|
355
|
+
[k: string]: unknown
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface DeploymentCloudSqlDatabaseDetachInput {
|
|
359
|
+
attachmentId: string
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface DeploymentCloudSqlDatabaseDetachOutput {
|
|
363
|
+
[k: string]: unknown
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface DeploymentCloudSqlDatabaseGetInput {
|
|
367
|
+
databaseId: string
|
|
368
|
+
}
|
|
369
|
+
|
|
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
|
+
}
|
|
381
|
+
|
|
382
|
+
export interface DeploymentCloudSqlDatabaseListInput {
|
|
383
|
+
instanceId: string
|
|
384
|
+
}
|
|
385
|
+
|
|
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
|
+
}[]
|
|
397
|
+
|
|
398
|
+
export interface DeploymentCloudSqlInstanceBackupInput {
|
|
399
|
+
instanceId: string
|
|
400
|
+
}
|
|
401
|
+
|
|
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
|
+
}
|
|
419
|
+
|
|
420
|
+
export interface DeploymentCloudSqlInstanceBackupListInput {
|
|
421
|
+
instanceId: string
|
|
422
|
+
}
|
|
423
|
+
|
|
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
|
+
}[]
|
|
433
|
+
|
|
434
|
+
export interface DeploymentCloudSqlInstanceCreateInput {
|
|
435
|
+
tier?: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
436
|
+
label: string
|
|
437
|
+
pgVersion?: ("16" | "17" | "18")
|
|
438
|
+
}
|
|
439
|
+
|
|
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
|
+
}
|
|
457
|
+
|
|
458
|
+
export interface DeploymentCloudSqlInstanceDeleteInput {
|
|
459
|
+
instanceId: string
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface DeploymentCloudSqlInstanceDeleteOutput {
|
|
463
|
+
[k: string]: unknown
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface DeploymentCloudSqlInstanceGetInput {
|
|
467
|
+
instanceId: string
|
|
468
|
+
}
|
|
469
|
+
|
|
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
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface DeploymentCloudSqlInstanceListInput {
|
|
489
|
+
|
|
490
|
+
}
|
|
491
|
+
|
|
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
|
+
}[]
|
|
509
|
+
|
|
510
|
+
export interface DeploymentCloudSqlInstanceResizeInput {
|
|
511
|
+
tier: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
512
|
+
instanceId: string
|
|
513
|
+
}
|
|
514
|
+
|
|
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
|
+
}
|
|
532
|
+
|
|
533
|
+
export interface DeploymentCloudSqlInstanceRestoreInput {
|
|
534
|
+
instanceId: string
|
|
535
|
+
backupRunId: string
|
|
536
|
+
}
|
|
537
|
+
|
|
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
|
+
}
|
|
555
|
+
|
|
556
|
+
export interface DeploymentCloudSqlLogsInput {
|
|
557
|
+
tail?: number
|
|
558
|
+
instanceId: string
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export interface DeploymentCloudSqlLogsOutput {
|
|
562
|
+
lines: string[]
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface DeploymentDeploymentCancelInput {
|
|
566
|
+
serviceId: string
|
|
567
|
+
deploymentId: string
|
|
568
|
+
}
|
|
569
|
+
|
|
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
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface DeploymentDeploymentGetInput {
|
|
595
|
+
id: string
|
|
596
|
+
}
|
|
597
|
+
|
|
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
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface DeploymentDeploymentListInput {
|
|
623
|
+
serviceId: string
|
|
624
|
+
}
|
|
625
|
+
|
|
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
|
+
}[]
|
|
649
|
+
|
|
650
|
+
export interface DeploymentDomainAddInput {
|
|
651
|
+
hostname: string
|
|
652
|
+
pathPrefix?: string
|
|
653
|
+
redirectWww?: boolean
|
|
654
|
+
environmentId: string
|
|
655
|
+
defaultServiceId: string
|
|
656
|
+
}
|
|
657
|
+
|
|
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 {
|
|
717
|
+
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export interface DeploymentDomainAllowedListOutput {
|
|
721
|
+
domains: {
|
|
722
|
+
mode: ("external" | "managed")
|
|
723
|
+
domain: string
|
|
724
|
+
domainId: string
|
|
725
|
+
}[]
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export interface DeploymentDomainGetInput {
|
|
729
|
+
id: string
|
|
730
|
+
}
|
|
731
|
+
|
|
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
|
+
}
|
|
779
|
+
|
|
780
|
+
export interface DeploymentDomainListInput {
|
|
781
|
+
environmentId: string
|
|
782
|
+
}
|
|
783
|
+
|
|
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
|
+
}
|
|
832
|
+
|
|
833
|
+
export interface DeploymentDomainListByServiceInput {
|
|
834
|
+
serviceId: string
|
|
835
|
+
}
|
|
836
|
+
|
|
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
|
+
}
|
|
885
|
+
|
|
886
|
+
export interface DeploymentDomainRedirectWwwInput {
|
|
887
|
+
id: string
|
|
888
|
+
enabled: boolean
|
|
889
|
+
}
|
|
890
|
+
|
|
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
|
+
}
|
|
938
|
+
|
|
939
|
+
export interface DeploymentDomainRemoveInput {
|
|
940
|
+
id: string
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export interface DeploymentDomainRemoveOutput {
|
|
944
|
+
[k: string]: unknown
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
export interface DeploymentDomainRoutesAddInput {
|
|
948
|
+
domainId: string
|
|
949
|
+
priority?: number
|
|
950
|
+
isDefault?: boolean
|
|
951
|
+
serviceId: string
|
|
952
|
+
pathPrefix: string
|
|
953
|
+
}
|
|
954
|
+
|
|
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
|
+
}
|
|
965
|
+
|
|
966
|
+
export interface DeploymentDomainRoutesListInput {
|
|
967
|
+
domainId: string
|
|
968
|
+
}
|
|
969
|
+
|
|
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
|
+
}[]
|
|
980
|
+
|
|
981
|
+
export interface DeploymentDomainRoutesRemoveInput {
|
|
982
|
+
routeId: string
|
|
983
|
+
domainId: string
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export interface DeploymentDomainRoutesRemoveOutput {
|
|
987
|
+
[k: string]: unknown
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export interface DeploymentDomainRoutesUpdateInput {
|
|
991
|
+
routeId: string
|
|
992
|
+
domainId: string
|
|
993
|
+
priority?: number
|
|
994
|
+
serviceId?: string
|
|
995
|
+
pathPrefix?: string
|
|
996
|
+
}
|
|
997
|
+
|
|
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
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export interface DeploymentDomainVerifyInput {
|
|
1010
|
+
id: string
|
|
1011
|
+
}
|
|
1012
|
+
|
|
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
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export interface DeploymentEnvironmentCreateInput {
|
|
1062
|
+
name: string
|
|
1063
|
+
slug?: string
|
|
1064
|
+
}
|
|
1065
|
+
|
|
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
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export interface DeploymentEnvironmentDeleteInput {
|
|
1083
|
+
id: string
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export interface DeploymentEnvironmentDeleteOutput {
|
|
1087
|
+
[k: string]: unknown
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
export interface DeploymentEnvironmentForkInput {
|
|
1091
|
+
name: string
|
|
1092
|
+
slug?: string
|
|
1093
|
+
baseEnvironmentId: string
|
|
1094
|
+
}
|
|
1095
|
+
|
|
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
|
+
}
|
|
1111
|
+
|
|
1112
|
+
export interface DeploymentEnvironmentGetInput {
|
|
1113
|
+
id: string
|
|
1114
|
+
}
|
|
1115
|
+
|
|
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
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export interface DeploymentEnvironmentListInput {
|
|
1133
|
+
type?: ("persistent" | "pr-preview")
|
|
1134
|
+
}
|
|
1135
|
+
|
|
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
|
+
}[]
|
|
1151
|
+
|
|
1152
|
+
export interface DeploymentEnvironmentReconcileInput {
|
|
1153
|
+
id: string
|
|
1154
|
+
force?: boolean
|
|
1155
|
+
}
|
|
1156
|
+
|
|
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
|
+
}
|
|
1172
|
+
|
|
1173
|
+
export interface DeploymentEnvironmentUpdateInput {
|
|
1174
|
+
id: string
|
|
1175
|
+
name?: string
|
|
1176
|
+
}
|
|
1177
|
+
|
|
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
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export interface DeploymentEventsListByEnvironmentInput {
|
|
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")
|
|
1196
|
+
limit?: number
|
|
1197
|
+
since?: string
|
|
1198
|
+
until?: string
|
|
1199
|
+
environmentId: string
|
|
1200
|
+
}
|
|
1201
|
+
|
|
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
|
+
}[]
|
|
1215
|
+
|
|
1216
|
+
export interface DeploymentEventsListByServiceInput {
|
|
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")
|
|
1218
|
+
limit?: number
|
|
1219
|
+
since?: string
|
|
1220
|
+
until?: string
|
|
1221
|
+
serviceId: string
|
|
1222
|
+
deploymentId?: string
|
|
1223
|
+
}
|
|
1224
|
+
|
|
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
|
+
}[]
|
|
1238
|
+
|
|
1239
|
+
export interface DeploymentManagedServiceBackupInput {
|
|
1240
|
+
id: string
|
|
1241
|
+
}
|
|
1242
|
+
|
|
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
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export interface DeploymentManagedServiceBackupListInput {
|
|
1260
|
+
id: string
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
export type DeploymentManagedServiceBackupListOutput = {
|
|
1264
|
+
name: string
|
|
1265
|
+
pvcName: string
|
|
1266
|
+
createdAt: string
|
|
1267
|
+
readyToUse: boolean
|
|
1268
|
+
restoreSize: (string | null)
|
|
1269
|
+
}[]
|
|
1270
|
+
|
|
1271
|
+
export interface DeploymentManagedServiceConnectInfoInput {
|
|
1272
|
+
id: string
|
|
1273
|
+
}
|
|
1274
|
+
|
|
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
|
+
}
|
|
1285
|
+
|
|
1286
|
+
export interface DeploymentManagedServiceDeleteInput {
|
|
1287
|
+
id: string
|
|
1288
|
+
}
|
|
1289
|
+
|
|
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
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export interface DeploymentManagedServiceGetInput {
|
|
1307
|
+
id: string
|
|
1308
|
+
}
|
|
1309
|
+
|
|
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
|
+
}
|
|
1325
|
+
|
|
1326
|
+
export interface DeploymentManagedServiceListInput {
|
|
1327
|
+
environmentId: string
|
|
1328
|
+
}
|
|
1329
|
+
|
|
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
|
+
}[]
|
|
1345
|
+
|
|
1346
|
+
export interface DeploymentManagedServiceLogsInput {
|
|
1347
|
+
id: string
|
|
1348
|
+
tail?: number
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export interface DeploymentManagedServiceLogsOutput {
|
|
1352
|
+
lines: string[]
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
export interface DeploymentManagedServiceProvisionInput {
|
|
1356
|
+
name: string
|
|
1357
|
+
slug?: string
|
|
1358
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
1359
|
+
version?: string
|
|
1360
|
+
storageGiB?: number
|
|
1361
|
+
databaseName?: string
|
|
1362
|
+
environmentId: string
|
|
1363
|
+
}
|
|
1364
|
+
|
|
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 {
|
|
1382
|
+
id: string
|
|
1383
|
+
}
|
|
1384
|
+
|
|
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
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export interface DeploymentManagedServiceResizeInput {
|
|
1402
|
+
id: string
|
|
1403
|
+
storageGiB: number
|
|
1404
|
+
}
|
|
1405
|
+
|
|
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
|
+
}
|
|
1421
|
+
|
|
1422
|
+
export interface DeploymentManagedServiceRestoreInput {
|
|
1423
|
+
id: string
|
|
1424
|
+
snapshotName: string
|
|
1425
|
+
}
|
|
1426
|
+
|
|
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
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export interface DeploymentManagedServiceStartInput {
|
|
1444
|
+
id: string
|
|
1445
|
+
}
|
|
1446
|
+
|
|
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
|
+
}
|
|
1462
|
+
|
|
1463
|
+
export interface DeploymentManagedServiceStopInput {
|
|
1464
|
+
id: string
|
|
1465
|
+
}
|
|
1466
|
+
|
|
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
|
+
}
|
|
1482
|
+
|
|
1483
|
+
export interface DeploymentManagedServiceTypesInput {
|
|
1484
|
+
|
|
1485
|
+
}
|
|
1486
|
+
|
|
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
|
+
}
|
|
1496
|
+
|
|
1497
|
+
export interface DeploymentMetricsGetInput {
|
|
1498
|
+
window?: ("15m" | "1h" | "6h" | "24h" | "7d")
|
|
1499
|
+
targetId: string
|
|
1500
|
+
targetKind: ("service" | "managed-service")
|
|
1501
|
+
}
|
|
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)
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
export interface DeploymentServiceRestartInput {
|
|
1914
|
+
id: string
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
export interface DeploymentServiceRestartOutput {
|
|
1918
|
+
[k: string]: unknown
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
export interface DeploymentServiceRollbackInput {
|
|
1922
|
+
serviceId: string
|
|
1923
|
+
deploymentId: string
|
|
1924
|
+
}
|
|
1925
|
+
|
|
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)
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
export interface DeploymentServiceScaleInput {
|
|
1951
|
+
id: string
|
|
1952
|
+
replicas: number
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
export interface DeploymentServiceScaleOutput {
|
|
1956
|
+
id: string
|
|
1957
|
+
name: string
|
|
1958
|
+
slug: string
|
|
1959
|
+
probes: {
|
|
1960
|
+
liveness?: Readiness
|
|
1961
|
+
readiness?: Readiness
|
|
1962
|
+
}
|
|
1963
|
+
source: ({
|
|
1964
|
+
url?: string
|
|
1965
|
+
path?: string
|
|
1966
|
+
type: "git"
|
|
1967
|
+
branch: string
|
|
1968
|
+
connectorId?: string
|
|
1969
|
+
repoFullName?: string
|
|
1970
|
+
} | {
|
|
1971
|
+
tag: string
|
|
1972
|
+
type: "image"
|
|
1973
|
+
registry: string
|
|
1974
|
+
} | {
|
|
1975
|
+
spa?: boolean
|
|
1976
|
+
repo?: {
|
|
1977
|
+
url?: string
|
|
1978
|
+
path?: string
|
|
1979
|
+
branch: string
|
|
1980
|
+
connectorId?: string
|
|
1981
|
+
repoFullName?: string
|
|
1982
|
+
}
|
|
1983
|
+
type: "static"
|
|
1984
|
+
build?: {
|
|
1985
|
+
command?: string
|
|
1986
|
+
outputDir?: string
|
|
1987
|
+
}
|
|
1988
|
+
})
|
|
1989
|
+
replicas: number
|
|
1990
|
+
createdAt: string
|
|
1991
|
+
dependsOn: string[]
|
|
1992
|
+
resources?: {
|
|
1993
|
+
limits?: {
|
|
1994
|
+
cpu?: string
|
|
1995
|
+
memory?: string
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
updatedAt: string
|
|
1999
|
+
containerPort: number
|
|
2000
|
+
environmentId: string
|
|
2001
|
+
lastReplicasRunning: number
|
|
2002
|
+
}
|
|
2003
|
+
export interface Readiness {
|
|
2004
|
+
path: string
|
|
2005
|
+
port?: number
|
|
2006
|
+
periodSeconds?: number
|
|
2007
|
+
timeoutSeconds?: number
|
|
2008
|
+
failureThreshold?: number
|
|
2009
|
+
successThreshold?: number
|
|
2010
|
+
initialDelaySeconds?: number
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
export interface DeploymentServiceUpdateInput {
|
|
2014
|
+
id: string
|
|
2015
|
+
name?: string
|
|
2016
|
+
probes?: {
|
|
2017
|
+
liveness?: Readiness
|
|
2018
|
+
readiness?: Readiness
|
|
2019
|
+
}
|
|
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
|
|
2039
|
+
}
|
|
2040
|
+
type: "static"
|
|
2041
|
+
build?: {
|
|
2042
|
+
command?: string
|
|
2043
|
+
outputDir?: string
|
|
2044
|
+
}
|
|
2045
|
+
})
|
|
2046
|
+
replicas?: number
|
|
2047
|
+
resources?: {
|
|
2048
|
+
limits?: {
|
|
2049
|
+
cpu?: string
|
|
2050
|
+
memory?: string
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
containerPort?: number
|
|
2054
|
+
}
|
|
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
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
export interface DeploymentServiceUpdateOutput {
|
|
2066
|
+
id: string
|
|
2067
|
+
name: string
|
|
2068
|
+
slug: string
|
|
2069
|
+
probes: {
|
|
2070
|
+
liveness?: Readiness
|
|
2071
|
+
readiness?: Readiness
|
|
2072
|
+
}
|
|
2073
|
+
source: ({
|
|
2074
|
+
url?: string
|
|
2075
|
+
path?: string
|
|
2076
|
+
type: "git"
|
|
2077
|
+
branch: string
|
|
2078
|
+
connectorId?: string
|
|
2079
|
+
repoFullName?: string
|
|
2080
|
+
} | {
|
|
2081
|
+
tag: string
|
|
2082
|
+
type: "image"
|
|
2083
|
+
registry: string
|
|
2084
|
+
} | {
|
|
2085
|
+
spa?: boolean
|
|
2086
|
+
repo?: {
|
|
2087
|
+
url?: string
|
|
2088
|
+
path?: string
|
|
2089
|
+
branch: string
|
|
2090
|
+
connectorId?: string
|
|
2091
|
+
repoFullName?: string
|
|
2092
|
+
}
|
|
2093
|
+
type: "static"
|
|
2094
|
+
build?: {
|
|
2095
|
+
command?: string
|
|
2096
|
+
outputDir?: string
|
|
2097
|
+
}
|
|
2098
|
+
})
|
|
2099
|
+
replicas: number
|
|
2100
|
+
createdAt: string
|
|
2101
|
+
dependsOn: string[]
|
|
2102
|
+
resources?: {
|
|
2103
|
+
limits?: {
|
|
2104
|
+
cpu?: string
|
|
2105
|
+
memory?: string
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
updatedAt: string
|
|
2109
|
+
containerPort: number
|
|
2110
|
+
environmentId: string
|
|
2111
|
+
lastReplicasRunning: number
|
|
2112
|
+
}
|
|
2113
|
+
export interface Readiness {
|
|
2114
|
+
path: string
|
|
2115
|
+
port?: number
|
|
2116
|
+
periodSeconds?: number
|
|
2117
|
+
timeoutSeconds?: number
|
|
2118
|
+
failureThreshold?: number
|
|
2119
|
+
successThreshold?: number
|
|
2120
|
+
initialDelaySeconds?: number
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
export interface DeploymentSshCommandInput {
|
|
2124
|
+
serviceId: string
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
export interface DeploymentSshCommandOutput {
|
|
2128
|
+
host: string
|
|
2129
|
+
command: string
|
|
2130
|
+
username: string
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
export interface DeploymentSshKeyDeleteInput {
|
|
2134
|
+
id: string
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
export interface DeploymentSshKeyDeleteOutput {
|
|
2138
|
+
deleted: boolean
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
export interface DeploymentSshKeyListInput {
|
|
2142
|
+
|
|
2143
|
+
}
|
|
2144
|
+
|
|
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
|
+
}[]
|
|
2156
|
+
|
|
2157
|
+
export interface DeploymentSshKeyRegisterInput {
|
|
2158
|
+
/**
|
|
2159
|
+
* Human label for the key, e.g. "my-laptop"
|
|
2160
|
+
*/
|
|
2161
|
+
name: string
|
|
2162
|
+
/**
|
|
2163
|
+
* OpenSSH public key line (ssh-ed25519 / ssh-rsa ...)
|
|
2164
|
+
*/
|
|
2165
|
+
publicKey: string
|
|
2166
|
+
}
|
|
2167
|
+
|
|
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
|
+
}
|
|
2179
|
+
|
|
2180
|
+
export interface DeploymentVariableListInput {
|
|
2181
|
+
serviceId: string
|
|
2182
|
+
}
|
|
2183
|
+
|
|
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
|
+
}[]
|
|
2195
|
+
|
|
2196
|
+
export interface DeploymentVariableListEnvInput {
|
|
2197
|
+
environmentId: string
|
|
2198
|
+
}
|
|
2199
|
+
|
|
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
|
+
}[]
|
|
2211
|
+
|
|
2212
|
+
export interface DeploymentVariableListProductInput {
|
|
2213
|
+
|
|
2214
|
+
}
|
|
2215
|
+
|
|
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
|
+
}[]
|
|
2227
|
+
|
|
2228
|
+
export interface DeploymentVariableSetInput {
|
|
2229
|
+
key: string
|
|
2230
|
+
value: string
|
|
2231
|
+
isSecret?: boolean
|
|
2232
|
+
serviceId: string
|
|
2233
|
+
}
|
|
2234
|
+
|
|
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
|
+
}
|
|
2246
|
+
|
|
2247
|
+
export interface DeploymentVariableSetEnvInput {
|
|
2248
|
+
key: string
|
|
2249
|
+
value: string
|
|
2250
|
+
isSecret?: boolean
|
|
2251
|
+
environmentId: string
|
|
2252
|
+
}
|
|
2253
|
+
|
|
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
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export interface DeploymentVariableSetProductInput {
|
|
2267
|
+
key: string
|
|
2268
|
+
value: string
|
|
2269
|
+
isSecret?: boolean
|
|
2270
|
+
}
|
|
2271
|
+
|
|
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
|
+
}
|
|
2283
|
+
|
|
2284
|
+
export interface DeploymentVariableUnsetInput {
|
|
2285
|
+
key: string
|
|
2286
|
+
serviceId: string
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
export interface DeploymentVariableUnsetOutput {
|
|
2290
|
+
[k: string]: unknown
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
export interface DeploymentVariableUnsetEnvInput {
|
|
2294
|
+
key: string
|
|
2295
|
+
environmentId: string
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
export interface DeploymentVariableUnsetEnvOutput {
|
|
2299
|
+
[k: string]: unknown
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
export interface DeploymentVariableUnsetProductInput {
|
|
2303
|
+
key: string
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export interface DeploymentVariableUnsetProductOutput {
|
|
2307
|
+
[k: string]: unknown
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
export interface DeploymentVcsBranchListInput {
|
|
2311
|
+
connectorId: string
|
|
2312
|
+
repoFullName: string
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
export type DeploymentVcsBranchListOutput = {
|
|
2316
|
+
name: string
|
|
2317
|
+
commitSha: string
|
|
2318
|
+
}[]
|
|
2319
|
+
|
|
2320
|
+
export interface DeploymentVcsConnectionListInput {
|
|
2321
|
+
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
export type DeploymentVcsConnectionListOutput = {
|
|
2325
|
+
status: string
|
|
2326
|
+
connectorId: string
|
|
2327
|
+
accountLogin: string
|
|
2328
|
+
installationId: string
|
|
2329
|
+
}[]
|
|
2330
|
+
|
|
2331
|
+
export interface DeploymentVcsRepoListInput {
|
|
2332
|
+
page?: number
|
|
2333
|
+
search?: string
|
|
2334
|
+
connectorId: string
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
export type DeploymentVcsRepoListOutput = {
|
|
2338
|
+
private: boolean
|
|
2339
|
+
fullName: string
|
|
2340
|
+
defaultBranch: string
|
|
2341
|
+
}[]
|
|
2342
|
+
|
|
2343
|
+
export interface DeploymentVolumeCreateInput {
|
|
2344
|
+
name: string
|
|
2345
|
+
slug?: string
|
|
2346
|
+
sizeGb: number
|
|
2347
|
+
mountPath: string
|
|
2348
|
+
environmentId: string
|
|
2349
|
+
attachedServiceId?: string
|
|
2350
|
+
}
|
|
2351
|
+
|
|
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
|
+
}
|
|
2365
|
+
|
|
2366
|
+
export interface DeploymentVolumeDeleteInput {
|
|
2367
|
+
id: string
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
export interface DeploymentVolumeDeleteOutput {
|
|
2371
|
+
[k: string]: unknown
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
export interface DeploymentVolumeDetachInput {
|
|
2375
|
+
id: string
|
|
2376
|
+
}
|
|
2377
|
+
|
|
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
|
+
}
|
|
2391
|
+
|
|
2392
|
+
export interface DeploymentVolumeGetInput {
|
|
2393
|
+
id: string
|
|
2394
|
+
}
|
|
2395
|
+
|
|
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
|
+
}
|
|
2409
|
+
|
|
2410
|
+
export interface DeploymentVolumeListInput {
|
|
2411
|
+
environmentId: string
|
|
2412
|
+
}
|
|
2413
|
+
|
|
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
|
+
}[]
|
|
2427
|
+
|
|
2428
|
+
export interface DeploymentVolumeResizeInput {
|
|
2429
|
+
id: string
|
|
2430
|
+
sizeGb: number
|
|
2431
|
+
}
|
|
2432
|
+
|
|
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
|
+
}
|
|
2446
|
+
|
|
3
2447
|
export interface OrganizationAuthMeInput {
|
|
4
2448
|
|
|
5
2449
|
}
|