@lessly/sdk-app 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.gen-DH0z4Tfa.d.cts +1711 -0
- package/dist/client.gen-DH0z4Tfa.d.ts +1711 -0
- package/dist/deployment/index.cjs +531 -0
- package/dist/deployment/index.cjs.map +1 -0
- package/dist/deployment/index.d.cts +425 -0
- package/dist/deployment/index.d.ts +425 -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 +838 -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,843 @@
|
|
|
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 type DeploymentAlertCreateOutput = unknown;
|
|
13
|
+
|
|
14
|
+
export interface DeploymentAlertDeleteInput {
|
|
15
|
+
id: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type DeploymentAlertDeleteOutput = unknown;
|
|
19
|
+
|
|
20
|
+
export interface DeploymentAlertEventsListInput {
|
|
21
|
+
limit?: number
|
|
22
|
+
environmentId: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type DeploymentAlertEventsListOutput = unknown;
|
|
26
|
+
|
|
27
|
+
export interface DeploymentAlertListInput {
|
|
28
|
+
environmentId: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DeploymentAlertListOutput = unknown;
|
|
32
|
+
|
|
33
|
+
export interface DeploymentAlertUpdateInput {
|
|
34
|
+
id: string
|
|
35
|
+
enabled?: boolean
|
|
36
|
+
threshold?: number
|
|
37
|
+
comparator?: ("gt" | "lt")
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type DeploymentAlertUpdateOutput = unknown;
|
|
41
|
+
|
|
42
|
+
export interface DeploymentAnalyticsQueryInput {
|
|
43
|
+
q: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type DeploymentAnalyticsQueryOutput = unknown;
|
|
47
|
+
|
|
48
|
+
export interface DeploymentAuditListInput {
|
|
49
|
+
limit?: number
|
|
50
|
+
action?: string
|
|
51
|
+
actorId?: string
|
|
52
|
+
serviceId?: string
|
|
53
|
+
entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
|
|
54
|
+
environmentId: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type DeploymentAuditListOutput = unknown;
|
|
58
|
+
|
|
59
|
+
export interface DeploymentBuildGetInput {
|
|
60
|
+
id: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type DeploymentBuildGetOutput = unknown;
|
|
64
|
+
|
|
65
|
+
export interface DeploymentBuildListInput {
|
|
66
|
+
serviceId: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type DeploymentBuildListOutput = unknown;
|
|
70
|
+
|
|
71
|
+
export interface DeploymentBuildLogsInput {
|
|
72
|
+
tail?: number
|
|
73
|
+
since?: string
|
|
74
|
+
serviceId: string
|
|
75
|
+
deploymentId: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type DeploymentBuildLogsOutput = unknown;
|
|
79
|
+
|
|
80
|
+
export interface DeploymentCanvasGetInput {
|
|
81
|
+
environmentId: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type DeploymentCanvasGetOutput = unknown;
|
|
85
|
+
|
|
86
|
+
export interface DeploymentCanvasMoveNodeInput {
|
|
87
|
+
x?: number
|
|
88
|
+
y?: number
|
|
89
|
+
width?: number
|
|
90
|
+
height?: number
|
|
91
|
+
nodeId: string
|
|
92
|
+
environmentId: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type DeploymentCanvasMoveNodeOutput = unknown;
|
|
96
|
+
|
|
97
|
+
export interface DeploymentCloudSqlBackfillLogFlagsInput {
|
|
98
|
+
instanceId?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type DeploymentCloudSqlBackfillLogFlagsOutput = unknown;
|
|
102
|
+
|
|
103
|
+
export interface DeploymentCloudSqlDatabaseAttachInput {
|
|
104
|
+
serviceId: string
|
|
105
|
+
databaseId: string
|
|
106
|
+
environmentId: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type DeploymentCloudSqlDatabaseAttachOutput = unknown;
|
|
110
|
+
|
|
111
|
+
export interface DeploymentCloudSqlDatabaseCreateInput {
|
|
112
|
+
label?: string
|
|
113
|
+
instanceId: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type DeploymentCloudSqlDatabaseCreateOutput = unknown;
|
|
117
|
+
|
|
118
|
+
export interface DeploymentCloudSqlDatabaseDeleteInput {
|
|
119
|
+
databaseId: string
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type DeploymentCloudSqlDatabaseDeleteOutput = unknown;
|
|
123
|
+
|
|
124
|
+
export interface DeploymentCloudSqlDatabaseDetachInput {
|
|
125
|
+
attachmentId: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type DeploymentCloudSqlDatabaseDetachOutput = unknown;
|
|
129
|
+
|
|
130
|
+
export interface DeploymentCloudSqlDatabaseGetInput {
|
|
131
|
+
databaseId: string
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type DeploymentCloudSqlDatabaseGetOutput = unknown;
|
|
135
|
+
|
|
136
|
+
export interface DeploymentCloudSqlDatabaseListInput {
|
|
137
|
+
instanceId: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type DeploymentCloudSqlDatabaseListOutput = unknown;
|
|
141
|
+
|
|
142
|
+
export interface DeploymentCloudSqlInstanceBackupInput {
|
|
143
|
+
instanceId: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type DeploymentCloudSqlInstanceBackupOutput = unknown;
|
|
147
|
+
|
|
148
|
+
export interface DeploymentCloudSqlInstanceBackupListInput {
|
|
149
|
+
instanceId: string
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type DeploymentCloudSqlInstanceBackupListOutput = unknown;
|
|
153
|
+
|
|
154
|
+
export interface DeploymentCloudSqlInstanceCreateInput {
|
|
155
|
+
tier?: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
156
|
+
label: string
|
|
157
|
+
pgVersion?: ("16" | "17" | "18")
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type DeploymentCloudSqlInstanceCreateOutput = unknown;
|
|
161
|
+
|
|
162
|
+
export interface DeploymentCloudSqlInstanceDeleteInput {
|
|
163
|
+
instanceId: string
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type DeploymentCloudSqlInstanceDeleteOutput = unknown;
|
|
167
|
+
|
|
168
|
+
export interface DeploymentCloudSqlInstanceGetInput {
|
|
169
|
+
instanceId: string
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type DeploymentCloudSqlInstanceGetOutput = unknown;
|
|
173
|
+
|
|
174
|
+
export interface DeploymentCloudSqlInstanceListInput {
|
|
175
|
+
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type DeploymentCloudSqlInstanceListOutput = unknown;
|
|
179
|
+
|
|
180
|
+
export interface DeploymentCloudSqlInstanceResizeInput {
|
|
181
|
+
tier: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
|
|
182
|
+
instanceId: string
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type DeploymentCloudSqlInstanceResizeOutput = unknown;
|
|
186
|
+
|
|
187
|
+
export interface DeploymentCloudSqlInstanceRestoreInput {
|
|
188
|
+
instanceId: string
|
|
189
|
+
backupRunId: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type DeploymentCloudSqlInstanceRestoreOutput = unknown;
|
|
193
|
+
|
|
194
|
+
export interface DeploymentCloudSqlLogsInput {
|
|
195
|
+
tail?: number
|
|
196
|
+
instanceId: string
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type DeploymentCloudSqlLogsOutput = unknown;
|
|
200
|
+
|
|
201
|
+
export interface DeploymentDeploymentCancelInput {
|
|
202
|
+
serviceId: string
|
|
203
|
+
deploymentId: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type DeploymentDeploymentCancelOutput = unknown;
|
|
207
|
+
|
|
208
|
+
export interface DeploymentDeploymentGetInput {
|
|
209
|
+
id: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type DeploymentDeploymentGetOutput = unknown;
|
|
213
|
+
|
|
214
|
+
export interface DeploymentDeploymentListInput {
|
|
215
|
+
serviceId: string
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type DeploymentDeploymentListOutput = unknown;
|
|
219
|
+
|
|
220
|
+
export interface DeploymentDomainAddInput {
|
|
221
|
+
hostname: string
|
|
222
|
+
pathPrefix?: string
|
|
223
|
+
redirectWww?: boolean
|
|
224
|
+
environmentId: string
|
|
225
|
+
defaultServiceId: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type DeploymentDomainAddOutput = unknown;
|
|
229
|
+
|
|
230
|
+
export interface DeploymentDomainAllowedListInput {
|
|
231
|
+
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type DeploymentDomainAllowedListOutput = unknown;
|
|
235
|
+
|
|
236
|
+
export interface DeploymentDomainGetInput {
|
|
237
|
+
id: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type DeploymentDomainGetOutput = unknown;
|
|
241
|
+
|
|
242
|
+
export interface DeploymentDomainListInput {
|
|
243
|
+
environmentId: string
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type DeploymentDomainListOutput = unknown;
|
|
247
|
+
|
|
248
|
+
export interface DeploymentDomainListByServiceInput {
|
|
249
|
+
serviceId: string
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type DeploymentDomainListByServiceOutput = unknown;
|
|
253
|
+
|
|
254
|
+
export interface DeploymentDomainRedirectWwwInput {
|
|
255
|
+
id: string
|
|
256
|
+
enabled: boolean
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type DeploymentDomainRedirectWwwOutput = unknown;
|
|
260
|
+
|
|
261
|
+
export interface DeploymentDomainRemoveInput {
|
|
262
|
+
id: string
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type DeploymentDomainRemoveOutput = unknown;
|
|
266
|
+
|
|
267
|
+
export interface DeploymentDomainRoutesAddInput {
|
|
268
|
+
domainId: string
|
|
269
|
+
priority?: number
|
|
270
|
+
isDefault?: boolean
|
|
271
|
+
serviceId: string
|
|
272
|
+
pathPrefix: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type DeploymentDomainRoutesAddOutput = unknown;
|
|
276
|
+
|
|
277
|
+
export interface DeploymentDomainRoutesListInput {
|
|
278
|
+
domainId: string
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type DeploymentDomainRoutesListOutput = unknown;
|
|
282
|
+
|
|
283
|
+
export interface DeploymentDomainRoutesRemoveInput {
|
|
284
|
+
routeId: string
|
|
285
|
+
domainId: string
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type DeploymentDomainRoutesRemoveOutput = unknown;
|
|
289
|
+
|
|
290
|
+
export interface DeploymentDomainRoutesUpdateInput {
|
|
291
|
+
routeId: string
|
|
292
|
+
domainId: string
|
|
293
|
+
priority?: number
|
|
294
|
+
serviceId?: string
|
|
295
|
+
pathPrefix?: string
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type DeploymentDomainRoutesUpdateOutput = unknown;
|
|
299
|
+
|
|
300
|
+
export interface DeploymentDomainVerifyInput {
|
|
301
|
+
id: string
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type DeploymentDomainVerifyOutput = unknown;
|
|
305
|
+
|
|
306
|
+
export interface DeploymentEnvironmentCreateInput {
|
|
307
|
+
name: string
|
|
308
|
+
slug?: string
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type DeploymentEnvironmentCreateOutput = unknown;
|
|
312
|
+
|
|
313
|
+
export interface DeploymentEnvironmentDeleteInput {
|
|
314
|
+
id: string
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type DeploymentEnvironmentDeleteOutput = unknown;
|
|
318
|
+
|
|
319
|
+
export interface DeploymentEnvironmentForkInput {
|
|
320
|
+
name: string
|
|
321
|
+
slug?: string
|
|
322
|
+
baseEnvironmentId: string
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type DeploymentEnvironmentForkOutput = unknown;
|
|
326
|
+
|
|
327
|
+
export interface DeploymentEnvironmentGetInput {
|
|
328
|
+
id: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type DeploymentEnvironmentGetOutput = unknown;
|
|
332
|
+
|
|
333
|
+
export interface DeploymentEnvironmentListInput {
|
|
334
|
+
type?: ("persistent" | "pr-preview")
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type DeploymentEnvironmentListOutput = unknown;
|
|
338
|
+
|
|
339
|
+
export interface DeploymentEnvironmentReconcileInput {
|
|
340
|
+
id: string
|
|
341
|
+
force?: boolean
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export type DeploymentEnvironmentReconcileOutput = unknown;
|
|
345
|
+
|
|
346
|
+
export interface DeploymentEnvironmentUpdateInput {
|
|
347
|
+
id: string
|
|
348
|
+
name?: string
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export type DeploymentEnvironmentUpdateOutput = unknown;
|
|
352
|
+
|
|
353
|
+
export interface DeploymentEventsListByEnvironmentInput {
|
|
354
|
+
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")
|
|
355
|
+
limit?: number
|
|
356
|
+
since?: string
|
|
357
|
+
until?: string
|
|
358
|
+
environmentId: string
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export type DeploymentEventsListByEnvironmentOutput = unknown;
|
|
362
|
+
|
|
363
|
+
export interface DeploymentEventsListByServiceInput {
|
|
364
|
+
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")
|
|
365
|
+
limit?: number
|
|
366
|
+
since?: string
|
|
367
|
+
until?: string
|
|
368
|
+
serviceId: string
|
|
369
|
+
deploymentId?: string
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type DeploymentEventsListByServiceOutput = unknown;
|
|
373
|
+
|
|
374
|
+
export interface DeploymentManagedServiceBackupInput {
|
|
375
|
+
id: string
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export type DeploymentManagedServiceBackupOutput = unknown;
|
|
379
|
+
|
|
380
|
+
export interface DeploymentManagedServiceBackupListInput {
|
|
381
|
+
id: string
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export type DeploymentManagedServiceBackupListOutput = unknown;
|
|
385
|
+
|
|
386
|
+
export interface DeploymentManagedServiceConnectInfoInput {
|
|
387
|
+
id: string
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type DeploymentManagedServiceConnectInfoOutput = unknown;
|
|
391
|
+
|
|
392
|
+
export interface DeploymentManagedServiceDeleteInput {
|
|
393
|
+
id: string
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type DeploymentManagedServiceDeleteOutput = unknown;
|
|
397
|
+
|
|
398
|
+
export interface DeploymentManagedServiceGetInput {
|
|
399
|
+
id: string
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export type DeploymentManagedServiceGetOutput = unknown;
|
|
403
|
+
|
|
404
|
+
export interface DeploymentManagedServiceListInput {
|
|
405
|
+
environmentId: string
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export type DeploymentManagedServiceListOutput = unknown;
|
|
409
|
+
|
|
410
|
+
export interface DeploymentManagedServiceLogsInput {
|
|
411
|
+
id: string
|
|
412
|
+
tail?: number
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export type DeploymentManagedServiceLogsOutput = unknown;
|
|
416
|
+
|
|
417
|
+
export interface DeploymentManagedServiceProvisionInput {
|
|
418
|
+
name: string
|
|
419
|
+
slug?: string
|
|
420
|
+
engine: ("postgres" | "redis" | "mysql" | "mongodb")
|
|
421
|
+
version?: string
|
|
422
|
+
storageGiB?: number
|
|
423
|
+
databaseName?: string
|
|
424
|
+
environmentId: string
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export type DeploymentManagedServiceProvisionOutput = unknown;
|
|
428
|
+
|
|
429
|
+
export interface DeploymentManagedServiceReconcileInput {
|
|
430
|
+
id: string
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export type DeploymentManagedServiceReconcileOutput = unknown;
|
|
434
|
+
|
|
435
|
+
export interface DeploymentManagedServiceResizeInput {
|
|
436
|
+
id: string
|
|
437
|
+
storageGiB: number
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export type DeploymentManagedServiceResizeOutput = unknown;
|
|
441
|
+
|
|
442
|
+
export interface DeploymentManagedServiceRestoreInput {
|
|
443
|
+
id: string
|
|
444
|
+
snapshotName: string
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type DeploymentManagedServiceRestoreOutput = unknown;
|
|
448
|
+
|
|
449
|
+
export interface DeploymentManagedServiceStartInput {
|
|
450
|
+
id: string
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export type DeploymentManagedServiceStartOutput = unknown;
|
|
454
|
+
|
|
455
|
+
export interface DeploymentManagedServiceStopInput {
|
|
456
|
+
id: string
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export type DeploymentManagedServiceStopOutput = unknown;
|
|
460
|
+
|
|
461
|
+
export interface DeploymentManagedServiceTypesInput {
|
|
462
|
+
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export type DeploymentManagedServiceTypesOutput = unknown;
|
|
466
|
+
|
|
467
|
+
export interface DeploymentMetricsGetInput {
|
|
468
|
+
window?: ("15m" | "1h" | "6h" | "24h" | "7d")
|
|
469
|
+
targetId: string
|
|
470
|
+
targetKind: ("service" | "managed-service")
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export type DeploymentMetricsGetOutput = unknown;
|
|
474
|
+
|
|
475
|
+
export interface DeploymentPreviewEnvironmentCreateInput {
|
|
476
|
+
prBranch?: string
|
|
477
|
+
prNumber: number
|
|
478
|
+
baseEnvironmentId: string
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export type DeploymentPreviewEnvironmentCreateOutput = unknown;
|
|
482
|
+
|
|
483
|
+
export interface DeploymentPreviewEnvironmentDeleteInput {
|
|
484
|
+
id: string
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export type DeploymentPreviewEnvironmentDeleteOutput = unknown;
|
|
488
|
+
|
|
489
|
+
export interface DeploymentPreviewEnvironmentListInput {
|
|
490
|
+
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export type DeploymentPreviewEnvironmentListOutput = unknown;
|
|
494
|
+
|
|
495
|
+
export interface DeploymentPreviewPolicyGetInput {
|
|
496
|
+
baseEnvironmentId: string
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export type DeploymentPreviewPolicyGetOutput = unknown;
|
|
500
|
+
|
|
501
|
+
export interface DeploymentPreviewPolicySetInput {
|
|
502
|
+
enabled?: boolean
|
|
503
|
+
ttlHours?: number
|
|
504
|
+
maxPreviews?: number
|
|
505
|
+
baseEnvironmentId: string
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export type DeploymentPreviewPolicySetOutput = unknown;
|
|
509
|
+
|
|
510
|
+
export interface DeploymentServiceCreateInput {
|
|
511
|
+
name: string
|
|
512
|
+
slug?: string
|
|
513
|
+
canvas?: {
|
|
514
|
+
x: number
|
|
515
|
+
y: number
|
|
516
|
+
}
|
|
517
|
+
probes?: {
|
|
518
|
+
liveness?: Readiness
|
|
519
|
+
readiness?: Readiness
|
|
520
|
+
}
|
|
521
|
+
source: ({
|
|
522
|
+
url?: string
|
|
523
|
+
path?: string
|
|
524
|
+
type: "git"
|
|
525
|
+
branch: string
|
|
526
|
+
connectorId?: string
|
|
527
|
+
repoFullName?: string
|
|
528
|
+
} | {
|
|
529
|
+
tag: string
|
|
530
|
+
type: "image"
|
|
531
|
+
registry: string
|
|
532
|
+
} | {
|
|
533
|
+
spa?: boolean
|
|
534
|
+
repo?: {
|
|
535
|
+
url?: string
|
|
536
|
+
path?: string
|
|
537
|
+
branch: string
|
|
538
|
+
connectorId?: string
|
|
539
|
+
repoFullName?: string
|
|
540
|
+
}
|
|
541
|
+
type: "static"
|
|
542
|
+
build?: {
|
|
543
|
+
command?: string
|
|
544
|
+
outputDir?: string
|
|
545
|
+
}
|
|
546
|
+
})
|
|
547
|
+
replicas?: number
|
|
548
|
+
resources?: {
|
|
549
|
+
limits?: {
|
|
550
|
+
cpu?: string
|
|
551
|
+
memory?: string
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
containerPort?: number
|
|
555
|
+
environmentId: string
|
|
556
|
+
}
|
|
557
|
+
export interface Readiness {
|
|
558
|
+
path: string
|
|
559
|
+
port?: number
|
|
560
|
+
periodSeconds?: number
|
|
561
|
+
timeoutSeconds?: number
|
|
562
|
+
failureThreshold?: number
|
|
563
|
+
successThreshold?: number
|
|
564
|
+
initialDelaySeconds?: number
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export type DeploymentServiceCreateOutput = unknown;
|
|
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 {
|
|
585
|
+
id: string
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export type DeploymentServiceGetOutput = unknown;
|
|
589
|
+
|
|
590
|
+
export interface DeploymentServiceListInput {
|
|
591
|
+
environmentId: string
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export type DeploymentServiceListOutput = unknown;
|
|
595
|
+
|
|
596
|
+
export interface DeploymentServiceLogsInput {
|
|
597
|
+
tail?: number
|
|
598
|
+
serviceId: string
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export type DeploymentServiceLogsOutput = unknown;
|
|
602
|
+
|
|
603
|
+
export interface DeploymentServiceRedeployInput {
|
|
604
|
+
serviceId: string
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export type DeploymentServiceRedeployOutput = unknown;
|
|
608
|
+
|
|
609
|
+
export interface DeploymentServiceRestartInput {
|
|
610
|
+
id: string
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export type DeploymentServiceRestartOutput = unknown;
|
|
614
|
+
|
|
615
|
+
export interface DeploymentServiceRollbackInput {
|
|
616
|
+
serviceId: string
|
|
617
|
+
deploymentId: string
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export type DeploymentServiceRollbackOutput = unknown;
|
|
621
|
+
|
|
622
|
+
export interface DeploymentServiceScaleInput {
|
|
623
|
+
id: string
|
|
624
|
+
replicas: number
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export type DeploymentServiceScaleOutput = unknown;
|
|
628
|
+
|
|
629
|
+
export interface DeploymentServiceUpdateInput {
|
|
630
|
+
id: string
|
|
631
|
+
name?: string
|
|
632
|
+
probes?: {
|
|
633
|
+
liveness?: Readiness
|
|
634
|
+
readiness?: Readiness
|
|
635
|
+
}
|
|
636
|
+
source?: ({
|
|
637
|
+
url?: string
|
|
638
|
+
path?: string
|
|
639
|
+
type: "git"
|
|
640
|
+
branch: string
|
|
641
|
+
connectorId?: string
|
|
642
|
+
repoFullName?: string
|
|
643
|
+
} | {
|
|
644
|
+
tag: string
|
|
645
|
+
type: "image"
|
|
646
|
+
registry: string
|
|
647
|
+
} | {
|
|
648
|
+
spa?: boolean
|
|
649
|
+
repo?: {
|
|
650
|
+
url?: string
|
|
651
|
+
path?: string
|
|
652
|
+
branch: string
|
|
653
|
+
connectorId?: string
|
|
654
|
+
repoFullName?: string
|
|
655
|
+
}
|
|
656
|
+
type: "static"
|
|
657
|
+
build?: {
|
|
658
|
+
command?: string
|
|
659
|
+
outputDir?: string
|
|
660
|
+
}
|
|
661
|
+
})
|
|
662
|
+
replicas?: number
|
|
663
|
+
resources?: {
|
|
664
|
+
limits?: {
|
|
665
|
+
cpu?: string
|
|
666
|
+
memory?: string
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
containerPort?: number
|
|
670
|
+
}
|
|
671
|
+
export interface Readiness {
|
|
672
|
+
path: string
|
|
673
|
+
port?: number
|
|
674
|
+
periodSeconds?: number
|
|
675
|
+
timeoutSeconds?: number
|
|
676
|
+
failureThreshold?: number
|
|
677
|
+
successThreshold?: number
|
|
678
|
+
initialDelaySeconds?: number
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export type DeploymentServiceUpdateOutput = unknown;
|
|
682
|
+
|
|
683
|
+
export interface DeploymentSshCommandInput {
|
|
684
|
+
serviceId: string
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export type DeploymentSshCommandOutput = unknown;
|
|
688
|
+
|
|
689
|
+
export interface DeploymentSshKeyDeleteInput {
|
|
690
|
+
id: string
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export type DeploymentSshKeyDeleteOutput = unknown;
|
|
694
|
+
|
|
695
|
+
export interface DeploymentSshKeyListInput {
|
|
696
|
+
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export type DeploymentSshKeyListOutput = unknown;
|
|
700
|
+
|
|
701
|
+
export interface DeploymentSshKeyRegisterInput {
|
|
702
|
+
/**
|
|
703
|
+
* Human label for the key, e.g. "my-laptop"
|
|
704
|
+
*/
|
|
705
|
+
name: string
|
|
706
|
+
/**
|
|
707
|
+
* OpenSSH public key line (ssh-ed25519 / ssh-rsa ...)
|
|
708
|
+
*/
|
|
709
|
+
publicKey: string
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
export type DeploymentSshKeyRegisterOutput = unknown;
|
|
713
|
+
|
|
714
|
+
export interface DeploymentVariableListInput {
|
|
715
|
+
serviceId: string
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export type DeploymentVariableListOutput = unknown;
|
|
719
|
+
|
|
720
|
+
export interface DeploymentVariableListEnvInput {
|
|
721
|
+
environmentId: string
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export type DeploymentVariableListEnvOutput = unknown;
|
|
725
|
+
|
|
726
|
+
export interface DeploymentVariableListProductInput {
|
|
727
|
+
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export type DeploymentVariableListProductOutput = unknown;
|
|
731
|
+
|
|
732
|
+
export interface DeploymentVariableSetInput {
|
|
733
|
+
key: string
|
|
734
|
+
value: string
|
|
735
|
+
isSecret?: boolean
|
|
736
|
+
serviceId: string
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export type DeploymentVariableSetOutput = unknown;
|
|
740
|
+
|
|
741
|
+
export interface DeploymentVariableSetEnvInput {
|
|
742
|
+
key: string
|
|
743
|
+
value: string
|
|
744
|
+
isSecret?: boolean
|
|
745
|
+
environmentId: string
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export type DeploymentVariableSetEnvOutput = unknown;
|
|
749
|
+
|
|
750
|
+
export interface DeploymentVariableSetProductInput {
|
|
751
|
+
key: string
|
|
752
|
+
value: string
|
|
753
|
+
isSecret?: boolean
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export type DeploymentVariableSetProductOutput = unknown;
|
|
757
|
+
|
|
758
|
+
export interface DeploymentVariableUnsetInput {
|
|
759
|
+
key: string
|
|
760
|
+
serviceId: string
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export type DeploymentVariableUnsetOutput = unknown;
|
|
764
|
+
|
|
765
|
+
export interface DeploymentVariableUnsetEnvInput {
|
|
766
|
+
key: string
|
|
767
|
+
environmentId: string
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export type DeploymentVariableUnsetEnvOutput = unknown;
|
|
771
|
+
|
|
772
|
+
export interface DeploymentVariableUnsetProductInput {
|
|
773
|
+
key: string
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export type DeploymentVariableUnsetProductOutput = unknown;
|
|
777
|
+
|
|
778
|
+
export interface DeploymentVcsBranchListInput {
|
|
779
|
+
connectorId: string
|
|
780
|
+
repoFullName: string
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export type DeploymentVcsBranchListOutput = unknown;
|
|
784
|
+
|
|
785
|
+
export interface DeploymentVcsConnectionListInput {
|
|
786
|
+
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export type DeploymentVcsConnectionListOutput = unknown;
|
|
790
|
+
|
|
791
|
+
export interface DeploymentVcsRepoListInput {
|
|
792
|
+
page?: number
|
|
793
|
+
search?: string
|
|
794
|
+
connectorId: string
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export type DeploymentVcsRepoListOutput = unknown;
|
|
798
|
+
|
|
799
|
+
export interface DeploymentVolumeCreateInput {
|
|
800
|
+
name: string
|
|
801
|
+
slug?: string
|
|
802
|
+
sizeGb: number
|
|
803
|
+
mountPath: string
|
|
804
|
+
environmentId: string
|
|
805
|
+
attachedServiceId?: string
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export type DeploymentVolumeCreateOutput = unknown;
|
|
809
|
+
|
|
810
|
+
export interface DeploymentVolumeDeleteInput {
|
|
811
|
+
id: string
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export type DeploymentVolumeDeleteOutput = unknown;
|
|
815
|
+
|
|
816
|
+
export interface DeploymentVolumeDetachInput {
|
|
817
|
+
id: string
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export type DeploymentVolumeDetachOutput = unknown;
|
|
821
|
+
|
|
822
|
+
export interface DeploymentVolumeGetInput {
|
|
823
|
+
id: string
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export type DeploymentVolumeGetOutput = unknown;
|
|
827
|
+
|
|
828
|
+
export interface DeploymentVolumeListInput {
|
|
829
|
+
environmentId: string
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export type DeploymentVolumeListOutput = unknown;
|
|
833
|
+
|
|
834
|
+
export interface DeploymentVolumeResizeInput {
|
|
835
|
+
id: string
|
|
836
|
+
sizeGb: number
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export type DeploymentVolumeResizeOutput = unknown;
|
|
840
|
+
|
|
3
841
|
export interface OrganizationAuthMeInput {
|
|
4
842
|
|
|
5
843
|
}
|