@lessly/sdk-app 7.0.0 → 8.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.
Files changed (55) hide show
  1. package/dist/analytics/index.cjs +11 -0
  2. package/dist/analytics/index.cjs.map +1 -0
  3. package/dist/analytics/index.d.cts +8 -0
  4. package/dist/analytics/index.d.ts +8 -0
  5. package/dist/analytics/index.js +9 -0
  6. package/dist/analytics/index.js.map +1 -0
  7. package/dist/brain/index.cjs +0 -10
  8. package/dist/brain/index.cjs.map +1 -1
  9. package/dist/brain/index.d.cts +2 -10
  10. package/dist/brain/index.d.ts +2 -10
  11. package/dist/brain/index.js +1 -9
  12. package/dist/brain/index.js.map +1 -1
  13. package/dist/{client.gen-oPZGjxpS.d.cts → client.gen-t1yMTANn.d.cts} +2899 -249
  14. package/dist/{client.gen-oPZGjxpS.d.ts → client.gen-t1yMTANn.d.ts} +2899 -249
  15. package/dist/consent/index.d.cts +1 -1
  16. package/dist/consent/index.d.ts +1 -1
  17. package/dist/deployment/index.cjs +531 -0
  18. package/dist/deployment/index.cjs.map +1 -0
  19. package/dist/deployment/index.d.cts +424 -0
  20. package/dist/deployment/index.d.ts +424 -0
  21. package/dist/deployment/index.js +425 -0
  22. package/dist/deployment/index.js.map +1 -0
  23. package/dist/index.cjs +1878 -150
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1878 -150
  28. package/dist/index.js.map +1 -1
  29. package/dist/mail/index.d.cts +2 -2
  30. package/dist/mail/index.d.ts +2 -2
  31. package/dist/organization/index.d.cts +1 -1
  32. package/dist/organization/index.d.ts +1 -1
  33. package/dist/playground/index.cjs +66 -0
  34. package/dist/playground/index.cjs.map +1 -0
  35. package/dist/playground/index.d.cts +52 -0
  36. package/dist/playground/index.d.ts +52 -0
  37. package/dist/playground/index.js +53 -0
  38. package/dist/playground/index.js.map +1 -0
  39. package/dist/tracking/index.d.cts +1 -1
  40. package/dist/tracking/index.d.ts +1 -1
  41. package/dist/waitlist/index.d.cts +1 -1
  42. package/dist/waitlist/index.d.ts +1 -1
  43. package/package.json +17 -2
  44. package/src/gen/analytics/index.ts +3 -0
  45. package/src/gen/analytics/queryOptions.gen.ts +11 -0
  46. package/src/gen/bindings.gen.ts +1878 -150
  47. package/src/gen/brain/index.ts +1 -1
  48. package/src/gen/brain/queryOptions.gen.ts +0 -14
  49. package/src/gen/client.gen.ts +450 -8
  50. package/src/gen/deployment/index.ts +3 -0
  51. package/src/gen/deployment/queryOptions.gen.ts +681 -0
  52. package/src/gen/manifest.gen.ts +1 -1
  53. package/src/gen/playground/index.ts +3 -0
  54. package/src/gen/playground/queryOptions.gen.ts +86 -0
  55. package/src/gen/types.gen.ts +2932 -242
@@ -1,5 +1,22 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
 
3
+ export interface AnalyticsQueryRunInput {
4
+ /**
5
+ * Natural-language analytics question
6
+ */
7
+ q: string
8
+ }
9
+
10
+ export interface AnalyticsQueryRunOutput {
11
+ sql: string
12
+ rows: {
13
+ [k: string]: unknown
14
+ }[]
15
+ answer: string
16
+ truncated: boolean
17
+ explanation: string
18
+ }
19
+
3
20
  export interface BrainBackupCreateInput {
4
21
 
5
22
  }
@@ -39,9 +56,15 @@ snapshotId?: string
39
56
  export type BrainBackupStatusOutput = ({
40
57
  id: string
41
58
  error: (string | null)
42
- status: ("running" | "completed" | "failed")
59
+ /**
60
+ * 'running' | 'completed' | 'failed'
61
+ */
62
+ status: string
43
63
  gcsPath: string
44
- trigger: ("scheduled" | "manual" | "pre-restore")
64
+ /**
65
+ * 'scheduled' | 'manual' | 'pre-restore'
66
+ */
67
+ trigger: string
45
68
  createdAt: string
46
69
  edgeCount: (number | null)
47
70
  nodeCount: (number | null)
@@ -60,9 +83,15 @@ export interface BrainBackupsListInput {
60
83
  export type BrainBackupsListOutput = {
61
84
  id: string
62
85
  error: (string | null)
63
- status: ("running" | "completed" | "failed")
86
+ /**
87
+ * 'running' | 'completed' | 'failed'
88
+ */
89
+ status: string
64
90
  gcsPath: string
65
- trigger: ("scheduled" | "manual" | "pre-restore")
91
+ /**
92
+ * 'scheduled' | 'manual' | 'pre-restore'
93
+ */
94
+ trigger: string
66
95
  createdAt: string
67
96
  edgeCount: (number | null)
68
97
  nodeCount: (number | null)
@@ -519,107 +548,6 @@ mimeType: string
519
548
  }[]
520
549
  }[]
521
550
 
522
- export interface BrainKnowledgeEntityMemoriesInput {
523
- /**
524
- * Max memories (default 50)
525
- */
526
- limit?: number
527
- /**
528
- * Read scope; 'both' (default) unions shared + your private
529
- */
530
- scope?: ("shared" | "private" | "both")
531
- /**
532
- * Pagination offset
533
- */
534
- offset?: number
535
- /**
536
- * Entity id, name, or alias to fetch backing memories for
537
- */
538
- entity_ref: string
539
- }
540
-
541
- export interface BrainKnowledgeEntityMemoriesOutput {
542
- total: number
543
- entity: ({
544
- score?: number
545
- aliases: string[]
546
- entity_id: string
547
- description: (string | null)
548
- entity_type: string
549
- display_name: string
550
- canonical_name: string
551
- evidence_count: number
552
- } | null)
553
- memories: {
554
- /**
555
- * Consumer-facing label derived from the layer; 'unknown' for an unrecognised layer
556
- */
557
- kind: ("schema" | "intention" | "identity" | "basic" | "fact" | "summary" | "knowledge" | "raw" | "unknown")
558
- tags: string[]
559
- /**
560
- * Engine memory layer (l0_basic_info…l7_intention)
561
- */
562
- layer: ("l6_schema" | "l7_intention" | "l4_identity" | "l0_basic_info" | "l2_fact" | "l3_summary" | "l5_knowledge" | "l1_raw")
563
- custom: {
564
- [k: string]: unknown
565
- }
566
- status: string
567
- content: string
568
- user_id: string
569
- agent_id: string
570
- memory_at: (number | null)
571
- memory_id: string
572
- speculate: (string | null)
573
- session_id: string
574
- gmt_created: number
575
- /**
576
- * Source authority (highest→lowest): policy > official > team > informal
577
- */
578
- source_authority: ("policy" | "official" | "team" | "informal")
579
- source_raw_memory_id: (string | null)
580
- }[]
581
- elapsed_ms: number
582
- request_id: string
583
- }
584
-
585
- export interface BrainKnowledgeGraphInput {
586
- /**
587
- * Max nodes (default 5000). When the cap applies the HIGHEST-DEGREE nodes are kept, so a small limit (e.g. 100) returns the hub concepts — that is usually what you want
588
- */
589
- limit?: number
590
- /**
591
- * Read scope; 'both' (default) unions shared + your private
592
- */
593
- scope?: ("shared" | "private" | "both")
594
- }
595
-
596
- export interface BrainKnowledgeGraphOutput {
597
- edges: {
598
- reason: (string | null)
599
- source: string
600
- target: string
601
- symmetric: boolean
602
- relation_type: string
603
- }[]
604
- nodes: {
605
- id: string
606
- degree: number
607
- aliases: string[]
608
- description: (string | null)
609
- entity_type: string
610
- display_name: string
611
- canonical_name: string
612
- evidence_count: number
613
- }[]
614
- totals: {
615
- edgeCount: number
616
- nodeCount: number
617
- }
618
- truncated: boolean
619
- elapsed_ms: number
620
- request_id: string
621
- }
622
-
623
551
  export interface BrainKnowledgeNeighborhoodInput {
624
552
  /**
625
553
  * Hops to expand (engine clamps to 3)
@@ -1000,7 +928,10 @@ restoreId: string
1000
928
 
1001
929
  export type BrainRestoreStatusOutput = ({
1002
930
  error: (string | null)
1003
- status: ("pending" | "wiped" | "importing" | "completed" | "failed")
931
+ /**
932
+ * 'pending' | 'wiped' | 'importing' | 'completed' | 'failed'
933
+ */
934
+ status: string
1004
935
  edgeCount: (number | null)
1005
936
  nodeCount: (number | null)
1006
937
  productId: string
@@ -1229,167 +1160,2709 @@ privacyUrl: (string | null)
1229
1160
  description: string
1230
1161
  }
1231
1162
 
1232
- export interface ConsentProvidersDeleteInput {
1233
- /**
1234
- * Provider id
1235
- */
1163
+ export interface ConsentProvidersDeleteInput {
1164
+ /**
1165
+ * Provider id
1166
+ */
1167
+ id: string
1168
+ }
1169
+
1170
+ export interface ConsentProvidersDeleteOutput {
1171
+ id: string
1172
+ deleted: true
1173
+ }
1174
+
1175
+ export interface ConsentProvidersListInput {
1176
+
1177
+ }
1178
+
1179
+ export type ConsentProvidersListOutput = {
1180
+ id: string
1181
+ name: string
1182
+ hosts: string[]
1183
+ cookies: {
1184
+ id: string
1185
+ name: string
1186
+ type: ("http_cookie" | "local_storage" | "session_storage")
1187
+ purpose: string
1188
+ storageDuration: string
1189
+ }[]
1190
+ category: ("necessary" | "preferences" | "statistics" | "marketing")
1191
+ isSystem?: boolean
1192
+ createdAt: string
1193
+ updatedAt: string
1194
+ catalogKey?: (string | null)
1195
+ orderIndex: number
1196
+ privacyUrl: (string | null)
1197
+ description: string
1198
+ }[]
1199
+
1200
+ export interface ConsentProvidersUpdateInput {
1201
+ /**
1202
+ * Provider id
1203
+ */
1204
+ id: string
1205
+ name?: string
1206
+ /**
1207
+ * If provided, REPLACES the hosts list. Omit to leave unchanged.
1208
+ *
1209
+ * @maxItems 50
1210
+ */
1211
+ hosts?: string[]
1212
+ /**
1213
+ * If provided, REPLACES the whole cookies set for this provider. Omit to leave unchanged.
1214
+ *
1215
+ * @maxItems 200
1216
+ */
1217
+ cookies?: {
1218
+ /**
1219
+ * Cookie/storage key name, e.g. "_ga"
1220
+ */
1221
+ name: string
1222
+ /**
1223
+ * Storage mechanism — matches CHECK constraint on consent_cookies.type
1224
+ */
1225
+ type: ("http_cookie" | "local_storage" | "session_storage")
1226
+ /**
1227
+ * Human-readable description of why the cookie is set
1228
+ */
1229
+ purpose?: string
1230
+ /**
1231
+ * Duration like "2 years", "session", "30 days"
1232
+ */
1233
+ storageDuration?: string
1234
+ }[]
1235
+ /**
1236
+ * Consent category bucket — matches CHECK constraint on consent_providers.category
1237
+ */
1238
+ category?: ("necessary" | "preferences" | "statistics" | "marketing")
1239
+ orderIndex?: number
1240
+ /**
1241
+ * null clears the field, undefined leaves it unchanged
1242
+ */
1243
+ privacyUrl?: (string | null)
1244
+ /**
1245
+ * Pass empty string to clear; undefined leaves unchanged
1246
+ */
1247
+ description?: string
1248
+ }
1249
+
1250
+ export interface ConsentProvidersUpdateOutput {
1251
+ id: string
1252
+ name: string
1253
+ hosts: string[]
1254
+ cookies: {
1255
+ id: string
1256
+ name: string
1257
+ type: ("http_cookie" | "local_storage" | "session_storage")
1258
+ purpose: string
1259
+ storageDuration: string
1260
+ }[]
1261
+ category: ("necessary" | "preferences" | "statistics" | "marketing")
1262
+ isSystem?: boolean
1263
+ createdAt: string
1264
+ updatedAt: string
1265
+ catalogKey?: (string | null)
1266
+ orderIndex: number
1267
+ privacyUrl: (string | null)
1268
+ description: string
1269
+ }
1270
+
1271
+ export interface ConsentRecordsExportInput {
1272
+ /**
1273
+ * Inclusive upper bound for created_at, ISO-8601. Example: "2026-01-01T00:00:00Z". Omit for "up to now".
1274
+ */
1275
+ to?: string
1276
+ /**
1277
+ * Inclusive lower bound for created_at (server clock), ISO-8601. Example: "2025-01-01T00:00:00Z". Omit for "from the beginning".
1278
+ */
1279
+ from?: string
1280
+ /**
1281
+ * Maximum rows to return inline. Default 1000, hard cap 10000. If more rows match, the response sets truncated=true and includes download_url for the full dataset via HTTP.
1282
+ */
1283
+ limit?: number
1284
+ /**
1285
+ * DSAR (Art. 15) lookup: a visitor-presented record_id (the UUID from their consent cookie). When set, the export is filtered to that visitor's full decision chain (transitive closure over replaces_id), scoped to the current product. Omit for a product-wide admin export.
1286
+ */
1287
+ record_id?: string
1288
+ }
1289
+
1290
+ export interface ConsentRecordsExportOutput {
1291
+ csv: string
1292
+ filters: {
1293
+ to: (string | null)
1294
+ from: (string | null)
1295
+ limit: number
1296
+ }
1297
+ truncated: boolean
1298
+ total_count: number
1299
+ download_url?: string
1300
+ returned_count: number
1301
+ }
1302
+
1303
+ export interface ConsentStatsGetInput {
1304
+ /**
1305
+ * Time window for aggregation in days, e.g. "30d". Omit to use the server default (30d). Maximum: 365d.
1306
+ */
1307
+ range?: string
1308
+ }
1309
+
1310
+ export interface ConsentStatsGetOutput {
1311
+ range: {
1312
+ to: string
1313
+ from: string
1314
+ }
1315
+ total: number
1316
+ custom_pct: number
1317
+ by_category: {
1318
+ marketing_pct: number
1319
+ statistics_pct: number
1320
+ preferences_pct: number
1321
+ }
1322
+ deny_all_pct: number
1323
+ accept_all_pct: number
1324
+ }
1325
+
1326
+ export interface DeploymentAlertCreateInput {
1327
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1328
+ enabled?: boolean
1329
+ targetId: string
1330
+ threshold: number
1331
+ comparator: ("gt" | "lt")
1332
+ targetKind: ("service" | "managed-service")
1333
+ }
1334
+
1335
+ export interface DeploymentAlertCreateOutput {
1336
+ id: string
1337
+ state: ("ok" | "firing")
1338
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1339
+ enabled: boolean
1340
+ targetId: string
1341
+ createdAt: string
1342
+ productId: string
1343
+ threshold: number
1344
+ updatedAt: string
1345
+ comparator: ("gt" | "lt")
1346
+ targetKind: ("service" | "managed-service")
1347
+ environmentId: string
1348
+ lastEvaluatedAt: (string | null)
1349
+ lastStateChangeAt: (string | null)
1350
+ }
1351
+
1352
+ export interface DeploymentAlertDeleteInput {
1353
+ id: string
1354
+ }
1355
+
1356
+ export interface DeploymentAlertDeleteOutput {
1357
+ deleted: boolean
1358
+ }
1359
+
1360
+ export interface DeploymentAlertEventsListInput {
1361
+ limit?: number
1362
+ environmentId: string
1363
+ }
1364
+
1365
+ export type DeploymentAlertEventsListOutput = {
1366
+ id: string
1367
+ type: ("firing" | "resolved")
1368
+ value: number
1369
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1370
+ ruleId: string
1371
+ targetId: string
1372
+ createdAt: string
1373
+ productId: string
1374
+ threshold: number
1375
+ targetKind: ("service" | "managed-service")
1376
+ }[]
1377
+
1378
+ export interface DeploymentAlertListInput {
1379
+ environmentId: string
1380
+ }
1381
+
1382
+ export type DeploymentAlertListOutput = {
1383
+ id: string
1384
+ state: ("ok" | "firing")
1385
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1386
+ enabled: boolean
1387
+ targetId: string
1388
+ createdAt: string
1389
+ productId: string
1390
+ threshold: number
1391
+ updatedAt: string
1392
+ comparator: ("gt" | "lt")
1393
+ targetKind: ("service" | "managed-service")
1394
+ environmentId: string
1395
+ lastEvaluatedAt: (string | null)
1396
+ lastStateChangeAt: (string | null)
1397
+ }[]
1398
+
1399
+ export interface DeploymentAlertUpdateInput {
1400
+ id: string
1401
+ enabled?: boolean
1402
+ threshold?: number
1403
+ comparator?: ("gt" | "lt")
1404
+ }
1405
+
1406
+ export interface DeploymentAlertUpdateOutput {
1407
+ id: string
1408
+ state: ("ok" | "firing")
1409
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1410
+ enabled: boolean
1411
+ targetId: string
1412
+ createdAt: string
1413
+ productId: string
1414
+ threshold: number
1415
+ updatedAt: string
1416
+ comparator: ("gt" | "lt")
1417
+ targetKind: ("service" | "managed-service")
1418
+ environmentId: string
1419
+ lastEvaluatedAt: (string | null)
1420
+ lastStateChangeAt: (string | null)
1421
+ }
1422
+
1423
+ export interface DeploymentAnalyticsQueryInput {
1424
+ q: string
1425
+ }
1426
+
1427
+ export interface DeploymentAnalyticsQueryOutput {
1428
+ sql: string
1429
+ rows: {
1430
+ [k: string]: unknown
1431
+ }[]
1432
+ answer: string
1433
+ truncated: boolean
1434
+ explanation: string
1435
+ }
1436
+
1437
+ export interface DeploymentAuditListInput {
1438
+ limit?: number
1439
+ action?: string
1440
+ actorId?: string
1441
+ serviceId?: string
1442
+ entityType?: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
1443
+ environmentId: string
1444
+ }
1445
+
1446
+ export type DeploymentAuditListOutput = {
1447
+ id: string
1448
+ action: string
1449
+ actorId: string
1450
+ entityId: (string | null)
1451
+ metadata: {
1452
+ [k: string]: unknown
1453
+ }
1454
+ createdAt: string
1455
+ productId: string
1456
+ serviceId: (string | null)
1457
+ actorEmail: string
1458
+ entityType: ("variable" | "domain" | "service" | "environment" | "deployment" | "managed_service" | "volume" | "cloud-sql-instance" | "cloud-sql-database" | "cloud-sql-attachment" | "ssh_key" | "ssh_session")
1459
+ environmentId: (string | null)
1460
+ }[]
1461
+
1462
+ export interface DeploymentBuildGetInput {
1463
+ id: string
1464
+ }
1465
+
1466
+ export interface DeploymentBuildGetOutput {
1467
+ id: string
1468
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1469
+ builtAt: (string | null)
1470
+ imageRef: (string | null)
1471
+ commitSha: (string | null)
1472
+ createdAt: string
1473
+ serviceId: string
1474
+ startedAt: (string | null)
1475
+ finishedAt: (string | null)
1476
+ cloudBuildId: (string | null)
1477
+ lastErrorMessage: (string | null)
1478
+ }
1479
+
1480
+ export interface DeploymentBuildListInput {
1481
+ serviceId: string
1482
+ }
1483
+
1484
+ export type DeploymentBuildListOutput = {
1485
+ id: string
1486
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1487
+ builtAt: (string | null)
1488
+ imageRef: (string | null)
1489
+ commitSha: (string | null)
1490
+ createdAt: string
1491
+ serviceId: string
1492
+ startedAt: (string | null)
1493
+ finishedAt: (string | null)
1494
+ cloudBuildId: (string | null)
1495
+ lastErrorMessage: (string | null)
1496
+ }[]
1497
+
1498
+ export interface DeploymentBuildLogsInput {
1499
+ tail?: number
1500
+ since?: string
1501
+ serviceId: string
1502
+ deploymentId: string
1503
+ }
1504
+
1505
+ export interface DeploymentBuildLogsOutput {
1506
+ lines: {
1507
+ ts: string
1508
+ text: string
1509
+ }[]
1510
+ cursor: (string | null)
1511
+ complete: boolean
1512
+ }
1513
+
1514
+ export interface DeploymentCanvasGetInput {
1515
+ environmentId: string
1516
+ }
1517
+
1518
+ export interface DeploymentCanvasGetOutput {
1519
+ edges: {
1520
+ id: string
1521
+ kind: ("cloud-sql" | "reference" | "host")
1522
+ label: string
1523
+ toKind: ("service" | "managed-service" | "cloud-sql")
1524
+ fromKind: "service"
1525
+ toNodeId: string
1526
+ fromNodeId: string
1527
+ }[]
1528
+ nodes: {
1529
+ x: number
1530
+ y: number
1531
+ id: string
1532
+ width: (number | null)
1533
+ height: (number | null)
1534
+ nodeId: string
1535
+ nodeKind: ("service" | "volume" | "managed-service" | "cloud-sql")
1536
+ createdAt: string
1537
+ updatedAt: string
1538
+ }[]
1539
+ services: {
1540
+ id: string
1541
+ name: string
1542
+ slug: string
1543
+ probes: {
1544
+ liveness?: DeploymentCanvasGetOutputReadiness
1545
+ readiness?: DeploymentCanvasGetOutputReadiness
1546
+ }
1547
+ source: ({
1548
+ url?: string
1549
+ path?: string
1550
+ type: "git"
1551
+ branch: string
1552
+ connectorId?: string
1553
+ repoFullName?: string
1554
+ } | {
1555
+ tag: string
1556
+ type: "image"
1557
+ registry: string
1558
+ } | {
1559
+ spa?: boolean
1560
+ repo?: {
1561
+ url?: string
1562
+ path?: string
1563
+ branch: string
1564
+ connectorId?: string
1565
+ repoFullName?: string
1566
+ }
1567
+ type: "static"
1568
+ build?: {
1569
+ command?: string
1570
+ outputDir?: string
1571
+ }
1572
+ })
1573
+ replicas: number
1574
+ createdAt: string
1575
+ dependsOn: string[]
1576
+ resources?: {
1577
+ limits?: {
1578
+ cpu?: string
1579
+ memory?: string
1580
+ }
1581
+ }
1582
+ updatedAt: string
1583
+ containerPort: number
1584
+ environmentId: string
1585
+ lastReplicasRunning: number
1586
+ }[]
1587
+ environmentId: string
1588
+ }
1589
+ export interface DeploymentCanvasGetOutputReadiness {
1590
+ path: string
1591
+ port?: number
1592
+ periodSeconds?: number
1593
+ timeoutSeconds?: number
1594
+ failureThreshold?: number
1595
+ successThreshold?: number
1596
+ initialDelaySeconds?: number
1597
+ }
1598
+
1599
+ export interface DeploymentCanvasMoveNodeInput {
1600
+ x?: number
1601
+ y?: number
1602
+ width?: number
1603
+ height?: number
1604
+ nodeId: string
1605
+ environmentId: string
1606
+ }
1607
+
1608
+ export interface DeploymentCanvasMoveNodeOutput {
1609
+ x: number
1610
+ y: number
1611
+ id: string
1612
+ width: (number | null)
1613
+ height: (number | null)
1614
+ nodeId: string
1615
+ nodeKind: ("service" | "volume" | "managed-service" | "cloud-sql")
1616
+ createdAt: string
1617
+ updatedAt: string
1618
+ }
1619
+
1620
+ export interface DeploymentCloudSqlBackfillLogFlagsInput {
1621
+ instanceId?: string
1622
+ }
1623
+
1624
+ export interface DeploymentCloudSqlBackfillLogFlagsOutput {
1625
+ failed: {
1626
+ id: string
1627
+ name: string
1628
+ error: string
1629
+ }[]
1630
+ patched: number
1631
+ scanned: number
1632
+ skippedNoDrift: number
1633
+ restartRequired: {
1634
+ id: string
1635
+ name: string
1636
+ flags: string[]
1637
+ }[]
1638
+ skippedNotReady: number
1639
+ skippedRestartRequired: number
1640
+ }
1641
+
1642
+ export interface DeploymentCloudSqlDatabaseAttachInput {
1643
+ serviceId: string
1644
+ databaseId: string
1645
+ environmentId: string
1646
+ }
1647
+
1648
+ export interface DeploymentCloudSqlDatabaseAttachOutput {
1649
+ id: string
1650
+ status: string
1651
+ serviceId: string
1652
+ databaseId: string
1653
+ environmentId: string
1654
+ }
1655
+
1656
+ export interface DeploymentCloudSqlDatabaseCreateInput {
1657
+ label?: string
1658
+ instanceId: string
1659
+ }
1660
+
1661
+ export interface DeploymentCloudSqlDatabaseCreateOutput {
1662
+ id: string
1663
+ dbName: string
1664
+ status: string
1665
+ roleName: string
1666
+ createdAt: string
1667
+ productId: string
1668
+ updatedAt: string
1669
+ instanceId: string
1670
+ lastErrorMessage: (string | null)
1671
+ }
1672
+
1673
+ export interface DeploymentCloudSqlDatabaseDeleteInput {
1674
+ databaseId: string
1675
+ }
1676
+
1677
+ export interface DeploymentCloudSqlDatabaseDeleteOutput {
1678
+ [k: string]: unknown
1679
+ }
1680
+
1681
+ export interface DeploymentCloudSqlDatabaseDetachInput {
1682
+ attachmentId: string
1683
+ }
1684
+
1685
+ export interface DeploymentCloudSqlDatabaseDetachOutput {
1686
+ [k: string]: unknown
1687
+ }
1688
+
1689
+ export interface DeploymentCloudSqlDatabaseGetInput {
1690
+ databaseId: string
1691
+ }
1692
+
1693
+ export interface DeploymentCloudSqlDatabaseGetOutput {
1694
+ id: string
1695
+ dbName: string
1696
+ status: string
1697
+ roleName: string
1698
+ createdAt: string
1699
+ productId: string
1700
+ updatedAt: string
1701
+ instanceId: string
1702
+ lastErrorMessage: (string | null)
1703
+ }
1704
+
1705
+ export interface DeploymentCloudSqlDatabaseListInput {
1706
+ instanceId: string
1707
+ }
1708
+
1709
+ export type DeploymentCloudSqlDatabaseListOutput = {
1710
+ id: string
1711
+ dbName: string
1712
+ status: string
1713
+ roleName: string
1714
+ createdAt: string
1715
+ productId: string
1716
+ updatedAt: string
1717
+ instanceId: string
1718
+ lastErrorMessage: (string | null)
1719
+ }[]
1720
+
1721
+ export interface DeploymentCloudSqlInstanceBackupInput {
1722
+ instanceId: string
1723
+ }
1724
+
1725
+ export interface DeploymentCloudSqlInstanceBackupOutput {
1726
+ id: string
1727
+ name: string
1728
+ tier: string
1729
+ label: string
1730
+ region: string
1731
+ status: string
1732
+ createdAt: string
1733
+ pgVersion: string
1734
+ privateIp: (string | null)
1735
+ productId: string
1736
+ updatedAt: string
1737
+ pitrEnabled: (boolean | null)
1738
+ backupsEnabled: (boolean | null)
1739
+ connectionName: (string | null)
1740
+ lastErrorMessage: (string | null)
1741
+ backupConfigObservedAt: (string | null)
1742
+ }
1743
+
1744
+ export interface DeploymentCloudSqlInstanceBackupListInput {
1745
+ instanceId: string
1746
+ }
1747
+
1748
+ export type DeploymentCloudSqlInstanceBackupListOutput = {
1749
+ id: string
1750
+ type: string
1751
+ error: (string | null)
1752
+ status: string
1753
+ endTime: (string | null)
1754
+ startTime: (string | null)
1755
+ description: (string | null)
1756
+ }[]
1757
+
1758
+ export interface DeploymentCloudSqlInstanceCreateInput {
1759
+ tier?: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
1760
+ label: string
1761
+ pgVersion?: ("16" | "17" | "18")
1762
+ }
1763
+
1764
+ export interface DeploymentCloudSqlInstanceCreateOutput {
1765
+ id: string
1766
+ name: string
1767
+ tier: string
1768
+ label: string
1769
+ region: string
1770
+ status: string
1771
+ createdAt: string
1772
+ pgVersion: string
1773
+ privateIp: (string | null)
1774
+ productId: string
1775
+ updatedAt: string
1776
+ pitrEnabled: (boolean | null)
1777
+ backupsEnabled: (boolean | null)
1778
+ connectionName: (string | null)
1779
+ lastErrorMessage: (string | null)
1780
+ backupConfigObservedAt: (string | null)
1781
+ }
1782
+
1783
+ export interface DeploymentCloudSqlInstanceDeleteInput {
1784
+ instanceId: string
1785
+ }
1786
+
1787
+ export interface DeploymentCloudSqlInstanceDeleteOutput {
1788
+ [k: string]: unknown
1789
+ }
1790
+
1791
+ export interface DeploymentCloudSqlInstanceGetInput {
1792
+ instanceId: string
1793
+ }
1794
+
1795
+ export interface DeploymentCloudSqlInstanceGetOutput {
1796
+ id: string
1797
+ name: string
1798
+ tier: string
1799
+ label: string
1800
+ region: string
1801
+ status: string
1802
+ createdAt: string
1803
+ pgVersion: string
1804
+ privateIp: (string | null)
1805
+ productId: string
1806
+ updatedAt: string
1807
+ pitrEnabled: (boolean | null)
1808
+ backupsEnabled: (boolean | null)
1809
+ connectionName: (string | null)
1810
+ lastErrorMessage: (string | null)
1811
+ backupConfigObservedAt: (string | null)
1812
+ }
1813
+
1814
+ export interface DeploymentCloudSqlInstanceListInput {
1815
+
1816
+ }
1817
+
1818
+ export type DeploymentCloudSqlInstanceListOutput = {
1819
+ id: string
1820
+ name: string
1821
+ tier: string
1822
+ label: string
1823
+ region: string
1824
+ status: string
1825
+ createdAt: string
1826
+ pgVersion: string
1827
+ privateIp: (string | null)
1828
+ productId: string
1829
+ updatedAt: string
1830
+ pitrEnabled: (boolean | null)
1831
+ backupsEnabled: (boolean | null)
1832
+ connectionName: (string | null)
1833
+ lastErrorMessage: (string | null)
1834
+ backupConfigObservedAt: (string | null)
1835
+ }[]
1836
+
1837
+ export interface DeploymentCloudSqlInstanceResizeInput {
1838
+ tier: ("db-custom-1-3840" | "db-custom-2-7680" | "db-custom-4-15360")
1839
+ instanceId: string
1840
+ }
1841
+
1842
+ export interface DeploymentCloudSqlInstanceResizeOutput {
1843
+ id: string
1844
+ name: string
1845
+ tier: string
1846
+ label: string
1847
+ region: string
1848
+ status: string
1849
+ createdAt: string
1850
+ pgVersion: string
1851
+ privateIp: (string | null)
1852
+ productId: string
1853
+ updatedAt: string
1854
+ pitrEnabled: (boolean | null)
1855
+ backupsEnabled: (boolean | null)
1856
+ connectionName: (string | null)
1857
+ lastErrorMessage: (string | null)
1858
+ backupConfigObservedAt: (string | null)
1859
+ }
1860
+
1861
+ export interface DeploymentCloudSqlInstanceRestoreInput {
1862
+ instanceId: string
1863
+ backupRunId: string
1864
+ }
1865
+
1866
+ export interface DeploymentCloudSqlInstanceRestoreOutput {
1867
+ id: string
1868
+ name: string
1869
+ tier: string
1870
+ label: string
1871
+ region: string
1872
+ status: string
1873
+ createdAt: string
1874
+ pgVersion: string
1875
+ privateIp: (string | null)
1876
+ productId: string
1877
+ updatedAt: string
1878
+ pitrEnabled: (boolean | null)
1879
+ backupsEnabled: (boolean | null)
1880
+ connectionName: (string | null)
1881
+ lastErrorMessage: (string | null)
1882
+ backupConfigObservedAt: (string | null)
1883
+ }
1884
+
1885
+ export interface DeploymentCloudSqlLogsInput {
1886
+ tail?: number
1887
+ instanceId: string
1888
+ }
1889
+
1890
+ export interface DeploymentCloudSqlLogsOutput {
1891
+ lines: string[]
1892
+ }
1893
+
1894
+ export interface DeploymentDeploymentCancelInput {
1895
+ serviceId: string
1896
+ deploymentId: string
1897
+ }
1898
+
1899
+ export interface DeploymentDeploymentCancelOutput {
1900
+ id: string
1901
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1902
+ builtAt: (string | null)
1903
+ imageRef: (string | null)
1904
+ commitSha: (string | null)
1905
+ createdAt: string
1906
+ serviceId: string
1907
+ startedAt: (string | null)
1908
+ updatedAt: string
1909
+ deployedAt: (string | null)
1910
+ finishedAt: (string | null)
1911
+ cloudBuildId: (string | null)
1912
+ configSnapshot: {
1913
+ source?: unknown
1914
+ variables: {
1915
+ key: string
1916
+ value: string
1917
+ }[]
1918
+ }
1919
+ lastErrorMessage: (string | null)
1920
+ rolledBackFromDeploymentId: (string | null)
1921
+ }
1922
+
1923
+ export interface DeploymentDeploymentGetInput {
1924
+ id: string
1925
+ }
1926
+
1927
+ export interface DeploymentDeploymentGetOutput {
1928
+ id: string
1929
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1930
+ builtAt: (string | null)
1931
+ imageRef: (string | null)
1932
+ commitSha: (string | null)
1933
+ createdAt: string
1934
+ serviceId: string
1935
+ startedAt: (string | null)
1936
+ updatedAt: string
1937
+ deployedAt: (string | null)
1938
+ finishedAt: (string | null)
1939
+ cloudBuildId: (string | null)
1940
+ configSnapshot: {
1941
+ source?: unknown
1942
+ variables: {
1943
+ key: string
1944
+ value: string
1945
+ }[]
1946
+ }
1947
+ lastErrorMessage: (string | null)
1948
+ rolledBackFromDeploymentId: (string | null)
1949
+ }
1950
+
1951
+ export interface DeploymentDeploymentListInput {
1952
+ serviceId: string
1953
+ }
1954
+
1955
+ export type DeploymentDeploymentListOutput = {
1956
+ id: string
1957
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1958
+ builtAt: (string | null)
1959
+ imageRef: (string | null)
1960
+ commitSha: (string | null)
1961
+ createdAt: string
1962
+ serviceId: string
1963
+ startedAt: (string | null)
1964
+ updatedAt: string
1965
+ deployedAt: (string | null)
1966
+ finishedAt: (string | null)
1967
+ cloudBuildId: (string | null)
1968
+ configSnapshot: {
1969
+ source?: unknown
1970
+ variables: {
1971
+ key: string
1972
+ value: string
1973
+ }[]
1974
+ }
1975
+ lastErrorMessage: (string | null)
1976
+ rolledBackFromDeploymentId: (string | null)
1977
+ }[]
1978
+
1979
+ export interface DeploymentDomainAddInput {
1980
+ hostname: string
1981
+ pathPrefix?: string
1982
+ redirectWww?: boolean
1983
+ environmentId: string
1984
+ defaultServiceId: string
1985
+ }
1986
+
1987
+ export interface DeploymentDomainAddOutput {
1988
+ id: string
1989
+ kind: ("auto" | "custom")
1990
+ routes: {
1991
+ id: string
1992
+ domainId: string
1993
+ priority: number
1994
+ createdAt: string
1995
+ isDefault: boolean
1996
+ serviceId: string
1997
+ updatedAt: string
1998
+ pathPrefix: string
1999
+ }[]
2000
+ hostname: string
2001
+ createdAt: string
2002
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2003
+ updatedAt: string
2004
+ lastProbeAt: (string | null)
2005
+ redirectWww: boolean
2006
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2007
+ environmentId: string
2008
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2009
+ lastProbeError: (string | null)
2010
+ dnsInstructions: ({
2011
+ txt: {
2012
+ name: string
2013
+ value: string
2014
+ }
2015
+ routing: DeploymentDomainAddOutputItems[]
2016
+ acmeChallenge?: DeploymentDomainAddOutputItems
2017
+ routingUnavailable?: boolean
2018
+ } | null)
2019
+ routingRecordType: ("A" | "CNAME")
2020
+ verificationToken: (string | null)
2021
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2022
+ lastVerificationError: (({
2023
+ code: (string | null)
2024
+ reason: "transient"
2025
+ checkedAt: string
2026
+ } | {
2027
+ txt?: {
2028
+ got: string[]
2029
+ want: string
2030
+ }
2031
+ host?: {
2032
+ got: string[]
2033
+ want: string[]
2034
+ }
2035
+ reason: "mismatch"
2036
+ checkedAt: string
2037
+ }) | null)
2038
+ lastVerificationCheckAt: (string | null)
2039
+ tlsCertificateExpiresAt: (string | null)
2040
+ }
2041
+ export interface DeploymentDomainAddOutputItems {
2042
+ name: string
2043
+ value: string
2044
+ recordType: ("A" | "CNAME")
2045
+ }
2046
+
2047
+ export interface DeploymentDomainAllowedListInput {
2048
+
2049
+ }
2050
+
2051
+ export interface DeploymentDomainAllowedListOutput {
2052
+ domains: {
2053
+ mode: ("external" | "managed")
2054
+ domain: string
2055
+ domainId: string
2056
+ }[]
2057
+ }
2058
+
2059
+ export interface DeploymentDomainGetInput {
2060
+ id: string
2061
+ }
2062
+
2063
+ export interface DeploymentDomainGetOutput {
2064
+ id: string
2065
+ kind: ("auto" | "custom")
2066
+ hostname: string
2067
+ createdAt: string
2068
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2069
+ updatedAt: string
2070
+ lastProbeAt: (string | null)
2071
+ redirectWww: boolean
2072
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2073
+ environmentId: string
2074
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2075
+ lastProbeError: (string | null)
2076
+ dnsInstructions: ({
2077
+ txt: {
2078
+ name: string
2079
+ value: string
2080
+ }
2081
+ routing: DeploymentDomainGetOutputItems[]
2082
+ acmeChallenge?: DeploymentDomainGetOutputItems
2083
+ routingUnavailable?: boolean
2084
+ } | null)
2085
+ routingRecordType: ("A" | "CNAME")
2086
+ verificationToken: (string | null)
2087
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2088
+ lastVerificationError: (({
2089
+ code: (string | null)
2090
+ reason: "transient"
2091
+ checkedAt: string
2092
+ } | {
2093
+ txt?: {
2094
+ got: string[]
2095
+ want: string
2096
+ }
2097
+ host?: {
2098
+ got: string[]
2099
+ want: string[]
2100
+ }
2101
+ reason: "mismatch"
2102
+ checkedAt: string
2103
+ }) | null)
2104
+ lastVerificationCheckAt: (string | null)
2105
+ tlsCertificateExpiresAt: (string | null)
2106
+ }
2107
+ export interface DeploymentDomainGetOutputItems {
2108
+ name: string
2109
+ value: string
2110
+ recordType: ("A" | "CNAME")
2111
+ }
2112
+
2113
+ export interface DeploymentDomainListInput {
2114
+ environmentId: string
2115
+ }
2116
+
2117
+ export type DeploymentDomainListOutput = {
2118
+ id: string
2119
+ kind: ("auto" | "custom")
2120
+ hostname: string
2121
+ createdAt: string
2122
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2123
+ updatedAt: string
2124
+ lastProbeAt: (string | null)
2125
+ redirectWww: boolean
2126
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2127
+ environmentId: string
2128
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2129
+ lastProbeError: (string | null)
2130
+ dnsInstructions: ({
2131
+ txt: {
2132
+ name: string
2133
+ value: string
2134
+ }
2135
+ routing: DeploymentDomainListOutputItems[]
2136
+ acmeChallenge?: DeploymentDomainListOutputItems
2137
+ routingUnavailable?: boolean
2138
+ } | null)
2139
+ routingRecordType: ("A" | "CNAME")
2140
+ verificationToken: (string | null)
2141
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2142
+ lastVerificationError: (({
2143
+ code: (string | null)
2144
+ reason: "transient"
2145
+ checkedAt: string
2146
+ } | {
2147
+ txt?: {
2148
+ got: string[]
2149
+ want: string
2150
+ }
2151
+ host?: {
2152
+ got: string[]
2153
+ want: string[]
2154
+ }
2155
+ reason: "mismatch"
2156
+ checkedAt: string
2157
+ }) | null)
2158
+ lastVerificationCheckAt: (string | null)
2159
+ tlsCertificateExpiresAt: (string | null)
2160
+ }[]
2161
+
2162
+ export interface DeploymentDomainListOutputItems {
2163
+ name: string
2164
+ value: string
2165
+ recordType: ("A" | "CNAME")
2166
+ }
2167
+
2168
+ export interface DeploymentDomainListByServiceInput {
2169
+ serviceId: string
2170
+ }
2171
+
2172
+ export type DeploymentDomainListByServiceOutput = {
2173
+ id: string
2174
+ kind: ("auto" | "custom")
2175
+ hostname: string
2176
+ createdAt: string
2177
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2178
+ updatedAt: string
2179
+ lastProbeAt: (string | null)
2180
+ redirectWww: boolean
2181
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2182
+ environmentId: string
2183
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2184
+ lastProbeError: (string | null)
2185
+ dnsInstructions: ({
2186
+ txt: {
2187
+ name: string
2188
+ value: string
2189
+ }
2190
+ routing: DeploymentDomainListByServiceOutputItems[]
2191
+ acmeChallenge?: DeploymentDomainListByServiceOutputItems
2192
+ routingUnavailable?: boolean
2193
+ } | null)
2194
+ routingRecordType: ("A" | "CNAME")
2195
+ verificationToken: (string | null)
2196
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2197
+ lastVerificationError: (({
2198
+ code: (string | null)
2199
+ reason: "transient"
2200
+ checkedAt: string
2201
+ } | {
2202
+ txt?: {
2203
+ got: string[]
2204
+ want: string
2205
+ }
2206
+ host?: {
2207
+ got: string[]
2208
+ want: string[]
2209
+ }
2210
+ reason: "mismatch"
2211
+ checkedAt: string
2212
+ }) | null)
2213
+ lastVerificationCheckAt: (string | null)
2214
+ tlsCertificateExpiresAt: (string | null)
2215
+ }[]
2216
+
2217
+ export interface DeploymentDomainListByServiceOutputItems {
2218
+ name: string
2219
+ value: string
2220
+ recordType: ("A" | "CNAME")
2221
+ }
2222
+
2223
+ export interface DeploymentDomainRedirectWwwInput {
2224
+ id: string
2225
+ enabled: boolean
2226
+ }
2227
+
2228
+ export interface DeploymentDomainRedirectWwwOutput {
2229
+ id: string
2230
+ kind: ("auto" | "custom")
2231
+ hostname: string
2232
+ createdAt: string
2233
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2234
+ updatedAt: string
2235
+ lastProbeAt: (string | null)
2236
+ redirectWww: boolean
2237
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2238
+ environmentId: string
2239
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2240
+ lastProbeError: (string | null)
2241
+ dnsInstructions: ({
2242
+ txt: {
2243
+ name: string
2244
+ value: string
2245
+ }
2246
+ routing: DeploymentDomainRedirectWwwOutputItems[]
2247
+ acmeChallenge?: DeploymentDomainRedirectWwwOutputItems
2248
+ routingUnavailable?: boolean
2249
+ } | null)
2250
+ routingRecordType: ("A" | "CNAME")
2251
+ verificationToken: (string | null)
2252
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2253
+ lastVerificationError: (({
2254
+ code: (string | null)
2255
+ reason: "transient"
2256
+ checkedAt: string
2257
+ } | {
2258
+ txt?: {
2259
+ got: string[]
2260
+ want: string
2261
+ }
2262
+ host?: {
2263
+ got: string[]
2264
+ want: string[]
2265
+ }
2266
+ reason: "mismatch"
2267
+ checkedAt: string
2268
+ }) | null)
2269
+ lastVerificationCheckAt: (string | null)
2270
+ tlsCertificateExpiresAt: (string | null)
2271
+ }
2272
+ export interface DeploymentDomainRedirectWwwOutputItems {
2273
+ name: string
2274
+ value: string
2275
+ recordType: ("A" | "CNAME")
2276
+ }
2277
+
2278
+ export interface DeploymentDomainRemoveInput {
2279
+ id: string
2280
+ }
2281
+
2282
+ export interface DeploymentDomainRemoveOutput {
2283
+ [k: string]: unknown
2284
+ }
2285
+
2286
+ export interface DeploymentDomainRoutesAddInput {
2287
+ domainId: string
2288
+ priority?: number
2289
+ isDefault?: boolean
2290
+ serviceId: string
2291
+ pathPrefix: string
2292
+ }
2293
+
2294
+ export interface DeploymentDomainRoutesAddOutput {
2295
+ id: string
2296
+ domainId: string
2297
+ priority: number
2298
+ createdAt: string
2299
+ isDefault: boolean
2300
+ serviceId: string
2301
+ updatedAt: string
2302
+ pathPrefix: string
2303
+ }
2304
+
2305
+ export interface DeploymentDomainRoutesListInput {
2306
+ domainId: string
2307
+ }
2308
+
2309
+ export type DeploymentDomainRoutesListOutput = {
2310
+ id: string
2311
+ domainId: string
2312
+ priority: number
2313
+ createdAt: string
2314
+ isDefault: boolean
2315
+ serviceId: string
2316
+ updatedAt: string
2317
+ pathPrefix: string
2318
+ }[]
2319
+
2320
+ export interface DeploymentDomainRoutesRemoveInput {
2321
+ routeId: string
2322
+ domainId: string
2323
+ }
2324
+
2325
+ export interface DeploymentDomainRoutesRemoveOutput {
2326
+ [k: string]: unknown
2327
+ }
2328
+
2329
+ export interface DeploymentDomainRoutesUpdateInput {
2330
+ routeId: string
2331
+ domainId: string
2332
+ priority?: number
2333
+ serviceId?: string
2334
+ pathPrefix?: string
2335
+ }
2336
+
2337
+ export interface DeploymentDomainRoutesUpdateOutput {
2338
+ id: string
2339
+ domainId: string
2340
+ priority: number
2341
+ createdAt: string
2342
+ isDefault: boolean
2343
+ serviceId: string
2344
+ updatedAt: string
2345
+ pathPrefix: string
2346
+ }
2347
+
2348
+ export interface DeploymentDomainVerifyInput {
2349
+ id: string
2350
+ }
2351
+
2352
+ export interface DeploymentDomainVerifyOutput {
2353
+ id: string
2354
+ kind: ("auto" | "custom")
2355
+ hostname: string
2356
+ createdAt: string
2357
+ tlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2358
+ updatedAt: string
2359
+ lastProbeAt: (string | null)
2360
+ redirectWww: boolean
2361
+ wwwTlsStatus: ("none" | "pending" | "issuing" | "active" | "failed")
2362
+ environmentId: string
2363
+ routingStatus: ("provisioning" | "propagating" | "active" | "failed")
2364
+ lastProbeError: (string | null)
2365
+ dnsInstructions: ({
2366
+ txt: {
2367
+ name: string
2368
+ value: string
2369
+ }
2370
+ routing: DeploymentDomainVerifyOutputItems[]
2371
+ acmeChallenge?: DeploymentDomainVerifyOutputItems
2372
+ routingUnavailable?: boolean
2373
+ } | null)
2374
+ routingRecordType: ("A" | "CNAME")
2375
+ verificationToken: (string | null)
2376
+ verificationStatus: ("pending_dns" | "verified" | "dns_failed")
2377
+ lastVerificationError: (({
2378
+ code: (string | null)
2379
+ reason: "transient"
2380
+ checkedAt: string
2381
+ } | {
2382
+ txt?: {
2383
+ got: string[]
2384
+ want: string
2385
+ }
2386
+ host?: {
2387
+ got: string[]
2388
+ want: string[]
2389
+ }
2390
+ reason: "mismatch"
2391
+ checkedAt: string
2392
+ }) | null)
2393
+ lastVerificationCheckAt: (string | null)
2394
+ tlsCertificateExpiresAt: (string | null)
2395
+ }
2396
+ export interface DeploymentDomainVerifyOutputItems {
2397
+ name: string
2398
+ value: string
2399
+ recordType: ("A" | "CNAME")
2400
+ }
2401
+
2402
+ export interface DeploymentEnvironmentCreateInput {
2403
+ name: string
2404
+ slug?: string
2405
+ }
2406
+
2407
+ export interface DeploymentEnvironmentCreateOutput {
2408
+ id: string
2409
+ name: string
2410
+ slug: string
2411
+ type: ("persistent" | "pr-preview")
2412
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2413
+ prBranch: (string | null)
2414
+ prNumber: (number | null)
2415
+ createdAt: string
2416
+ expiresAt: (string | null)
2417
+ updatedAt: string
2418
+ isProduction: boolean
2419
+ lastErrorMessage: (string | null)
2420
+ baseEnvironmentId: (string | null)
2421
+ }
2422
+
2423
+ export interface DeploymentEnvironmentDeleteInput {
2424
+ id: string
2425
+ }
2426
+
2427
+ export interface DeploymentEnvironmentDeleteOutput {
2428
+ [k: string]: unknown
2429
+ }
2430
+
2431
+ export interface DeploymentEnvironmentForkInput {
2432
+ name: string
2433
+ slug?: string
2434
+ baseEnvironmentId: string
2435
+ }
2436
+
2437
+ export interface DeploymentEnvironmentForkOutput {
2438
+ id: string
2439
+ name: string
2440
+ slug: string
2441
+ type: ("persistent" | "pr-preview")
2442
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2443
+ prBranch: (string | null)
2444
+ prNumber: (number | null)
2445
+ createdAt: string
2446
+ expiresAt: (string | null)
2447
+ updatedAt: string
2448
+ isProduction: boolean
2449
+ lastErrorMessage: (string | null)
2450
+ baseEnvironmentId: (string | null)
2451
+ }
2452
+
2453
+ export interface DeploymentEnvironmentGetInput {
2454
+ id: string
2455
+ }
2456
+
2457
+ export interface DeploymentEnvironmentGetOutput {
2458
+ id: string
2459
+ name: string
2460
+ slug: string
2461
+ type: ("persistent" | "pr-preview")
2462
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2463
+ prBranch: (string | null)
2464
+ prNumber: (number | null)
2465
+ createdAt: string
2466
+ expiresAt: (string | null)
2467
+ updatedAt: string
2468
+ isProduction: boolean
2469
+ lastErrorMessage: (string | null)
2470
+ baseEnvironmentId: (string | null)
2471
+ }
2472
+
2473
+ export interface DeploymentEnvironmentListInput {
2474
+ type?: ("persistent" | "pr-preview")
2475
+ }
2476
+
2477
+ export type DeploymentEnvironmentListOutput = {
2478
+ id: string
2479
+ name: string
2480
+ slug: string
2481
+ type: ("persistent" | "pr-preview")
2482
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2483
+ prBranch: (string | null)
2484
+ prNumber: (number | null)
2485
+ createdAt: string
2486
+ expiresAt: (string | null)
2487
+ updatedAt: string
2488
+ isProduction: boolean
2489
+ lastErrorMessage: (string | null)
2490
+ baseEnvironmentId: (string | null)
2491
+ }[]
2492
+
2493
+ export interface DeploymentEnvironmentReconcileInput {
2494
+ id: string
2495
+ force?: boolean
2496
+ }
2497
+
2498
+ export interface DeploymentEnvironmentReconcileOutput {
2499
+ id: string
2500
+ name: string
2501
+ slug: string
2502
+ type: ("persistent" | "pr-preview")
2503
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2504
+ prBranch: (string | null)
2505
+ prNumber: (number | null)
2506
+ createdAt: string
2507
+ expiresAt: (string | null)
2508
+ updatedAt: string
2509
+ isProduction: boolean
2510
+ lastErrorMessage: (string | null)
2511
+ baseEnvironmentId: (string | null)
2512
+ }
2513
+
2514
+ export interface DeploymentEnvironmentUpdateInput {
2515
+ id: string
2516
+ name?: string
2517
+ }
2518
+
2519
+ export interface DeploymentEnvironmentUpdateOutput {
2520
+ id: string
2521
+ name: string
2522
+ slug: string
2523
+ type: ("persistent" | "pr-preview")
2524
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2525
+ prBranch: (string | null)
2526
+ prNumber: (number | null)
2527
+ createdAt: string
2528
+ expiresAt: (string | null)
2529
+ updatedAt: string
2530
+ isProduction: boolean
2531
+ lastErrorMessage: (string | null)
2532
+ baseEnvironmentId: (string | null)
2533
+ }
2534
+
2535
+ export interface DeploymentEventsListByEnvironmentInput {
2536
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "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" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
2537
+ limit?: number
2538
+ since?: string
2539
+ until?: string
2540
+ environmentId: string
2541
+ }
2542
+
2543
+ export type DeploymentEventsListByEnvironmentOutput = {
2544
+ id: string
2545
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "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" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
2546
+ payload: {
2547
+ [k: string]: unknown
2548
+ }
2549
+ domainId: (string | null)
2550
+ createdAt: string
2551
+ productId: string
2552
+ serviceId: (string | null)
2553
+ deploymentId: (string | null)
2554
+ environmentId: (string | null)
2555
+ }[]
2556
+
2557
+ export interface DeploymentEventsListByServiceInput {
2558
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "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" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
2559
+ limit?: number
2560
+ since?: string
2561
+ until?: string
2562
+ serviceId: string
2563
+ deploymentId?: string
2564
+ }
2565
+
2566
+ export type DeploymentEventsListByServiceOutput = {
2567
+ id: string
2568
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "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" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed")
2569
+ payload: {
2570
+ [k: string]: unknown
2571
+ }
2572
+ domainId: (string | null)
2573
+ createdAt: string
2574
+ productId: string
2575
+ serviceId: (string | null)
2576
+ deploymentId: (string | null)
2577
+ environmentId: (string | null)
2578
+ }[]
2579
+
2580
+ export interface DeploymentManagedServiceBackupInput {
2581
+ id: string
2582
+ }
2583
+
2584
+ export interface DeploymentManagedServiceBackupOutput {
2585
+ id: string
2586
+ name: string
2587
+ slug: string
2588
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2589
+ status: string
2590
+ version: string
2591
+ createdAt: string
2592
+ productId: string
2593
+ updatedAt: string
2594
+ storageGiB: number
2595
+ backupPolicy: {
2596
+ cron: string
2597
+ timezone: string
2598
+ retentionDays: number
2599
+ scheduleSummary: string
2600
+ manualBackupsExpire: boolean
2601
+ }
2602
+ databaseName: (string | null)
2603
+ lastBackupAt: (string | null)
2604
+ environmentId: string
2605
+ lastErrorMessage: (string | null)
2606
+ }
2607
+
2608
+ export interface DeploymentManagedServiceBackupListInput {
2609
+ id: string
2610
+ }
2611
+
2612
+ export type DeploymentManagedServiceBackupListOutput = {
2613
+ name: string
2614
+ pvcName: string
2615
+ createdAt: string
2616
+ readyToUse: boolean
2617
+ restoreSize: (string | null)
2618
+ }[]
2619
+
2620
+ export interface DeploymentManagedServiceConnectInfoInput {
2621
+ id: string
2622
+ }
2623
+
2624
+ export interface DeploymentManagedServiceConnectInfoOutput {
2625
+ id: string
2626
+ slug: string
2627
+ vars: {
2628
+ key: string
2629
+ isSecret: boolean
2630
+ refSyntax: string
2631
+ }[]
2632
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2633
+ }
2634
+
2635
+ export interface DeploymentManagedServiceDeleteInput {
2636
+ id: string
2637
+ }
2638
+
2639
+ export interface DeploymentManagedServiceDeleteOutput {
2640
+ id: string
2641
+ name: string
2642
+ slug: string
2643
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2644
+ status: string
2645
+ version: string
2646
+ createdAt: string
2647
+ productId: string
2648
+ updatedAt: string
2649
+ storageGiB: number
2650
+ backupPolicy: {
2651
+ cron: string
2652
+ timezone: string
2653
+ retentionDays: number
2654
+ scheduleSummary: string
2655
+ manualBackupsExpire: boolean
2656
+ }
2657
+ databaseName: (string | null)
2658
+ lastBackupAt: (string | null)
2659
+ environmentId: string
2660
+ lastErrorMessage: (string | null)
2661
+ }
2662
+
2663
+ export interface DeploymentManagedServiceGetInput {
2664
+ id: string
2665
+ }
2666
+
2667
+ export interface DeploymentManagedServiceGetOutput {
2668
+ id: string
2669
+ name: string
2670
+ slug: string
2671
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2672
+ status: string
2673
+ version: string
2674
+ createdAt: string
2675
+ productId: string
2676
+ updatedAt: string
2677
+ storageGiB: number
2678
+ backupPolicy: {
2679
+ cron: string
2680
+ timezone: string
2681
+ retentionDays: number
2682
+ scheduleSummary: string
2683
+ manualBackupsExpire: boolean
2684
+ }
2685
+ databaseName: (string | null)
2686
+ lastBackupAt: (string | null)
2687
+ environmentId: string
2688
+ lastErrorMessage: (string | null)
2689
+ }
2690
+
2691
+ export interface DeploymentManagedServiceListInput {
2692
+ environmentId: string
2693
+ }
2694
+
2695
+ export type DeploymentManagedServiceListOutput = {
2696
+ id: string
2697
+ name: string
2698
+ slug: string
2699
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2700
+ status: string
2701
+ version: string
2702
+ createdAt: string
2703
+ productId: string
2704
+ updatedAt: string
2705
+ storageGiB: number
2706
+ backupPolicy: {
2707
+ cron: string
2708
+ timezone: string
2709
+ retentionDays: number
2710
+ scheduleSummary: string
2711
+ manualBackupsExpire: boolean
2712
+ }
2713
+ databaseName: (string | null)
2714
+ lastBackupAt: (string | null)
2715
+ environmentId: string
2716
+ lastErrorMessage: (string | null)
2717
+ }[]
2718
+
2719
+ export interface DeploymentManagedServiceLogsInput {
2720
+ id: string
2721
+ tail?: number
2722
+ }
2723
+
2724
+ export interface DeploymentManagedServiceLogsOutput {
2725
+ lines: string[]
2726
+ }
2727
+
2728
+ export interface DeploymentManagedServiceProvisionInput {
2729
+ name: string
2730
+ slug?: string
2731
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2732
+ version?: string
2733
+ storageGiB?: number
2734
+ databaseName?: string
2735
+ environmentId: string
2736
+ }
2737
+
2738
+ export interface DeploymentManagedServiceProvisionOutput {
2739
+ id: string
2740
+ name: string
2741
+ slug: string
2742
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2743
+ status: string
2744
+ version: string
2745
+ createdAt: string
2746
+ productId: string
2747
+ updatedAt: string
2748
+ storageGiB: number
2749
+ backupPolicy: {
2750
+ cron: string
2751
+ timezone: string
2752
+ retentionDays: number
2753
+ scheduleSummary: string
2754
+ manualBackupsExpire: boolean
2755
+ }
2756
+ databaseName: (string | null)
2757
+ lastBackupAt: (string | null)
2758
+ environmentId: string
2759
+ lastErrorMessage: (string | null)
2760
+ }
2761
+
2762
+ export interface DeploymentManagedServiceReconcileInput {
2763
+ id: string
2764
+ }
2765
+
2766
+ export interface DeploymentManagedServiceReconcileOutput {
2767
+ id: string
2768
+ name: string
2769
+ slug: string
2770
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2771
+ status: string
2772
+ version: string
2773
+ createdAt: string
2774
+ productId: string
2775
+ updatedAt: string
2776
+ storageGiB: number
2777
+ backupPolicy: {
2778
+ cron: string
2779
+ timezone: string
2780
+ retentionDays: number
2781
+ scheduleSummary: string
2782
+ manualBackupsExpire: boolean
2783
+ }
2784
+ databaseName: (string | null)
2785
+ lastBackupAt: (string | null)
2786
+ environmentId: string
2787
+ lastErrorMessage: (string | null)
2788
+ }
2789
+
2790
+ export interface DeploymentManagedServiceResizeInput {
2791
+ id: string
2792
+ storageGiB: number
2793
+ }
2794
+
2795
+ export interface DeploymentManagedServiceResizeOutput {
2796
+ id: string
2797
+ name: string
2798
+ slug: string
2799
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2800
+ status: string
2801
+ version: string
2802
+ createdAt: string
2803
+ productId: string
2804
+ updatedAt: string
2805
+ storageGiB: number
2806
+ backupPolicy: {
2807
+ cron: string
2808
+ timezone: string
2809
+ retentionDays: number
2810
+ scheduleSummary: string
2811
+ manualBackupsExpire: boolean
2812
+ }
2813
+ databaseName: (string | null)
2814
+ lastBackupAt: (string | null)
2815
+ environmentId: string
2816
+ lastErrorMessage: (string | null)
2817
+ }
2818
+
2819
+ export interface DeploymentManagedServiceRestoreInput {
2820
+ id: string
2821
+ snapshotName: string
2822
+ }
2823
+
2824
+ export interface DeploymentManagedServiceRestoreOutput {
2825
+ id: string
2826
+ name: string
2827
+ slug: string
2828
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2829
+ status: string
2830
+ version: string
2831
+ createdAt: string
2832
+ productId: string
2833
+ updatedAt: string
2834
+ storageGiB: number
2835
+ backupPolicy: {
2836
+ cron: string
2837
+ timezone: string
2838
+ retentionDays: number
2839
+ scheduleSummary: string
2840
+ manualBackupsExpire: boolean
2841
+ }
2842
+ databaseName: (string | null)
2843
+ lastBackupAt: (string | null)
2844
+ environmentId: string
2845
+ lastErrorMessage: (string | null)
2846
+ }
2847
+
2848
+ export interface DeploymentManagedServiceStartInput {
2849
+ id: string
2850
+ }
2851
+
2852
+ export interface DeploymentManagedServiceStartOutput {
2853
+ id: string
2854
+ name: string
2855
+ slug: string
2856
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2857
+ status: string
2858
+ version: string
2859
+ createdAt: string
2860
+ productId: string
2861
+ updatedAt: string
2862
+ storageGiB: number
2863
+ backupPolicy: {
2864
+ cron: string
2865
+ timezone: string
2866
+ retentionDays: number
2867
+ scheduleSummary: string
2868
+ manualBackupsExpire: boolean
2869
+ }
2870
+ databaseName: (string | null)
2871
+ lastBackupAt: (string | null)
2872
+ environmentId: string
2873
+ lastErrorMessage: (string | null)
2874
+ }
2875
+
2876
+ export interface DeploymentManagedServiceStopInput {
2877
+ id: string
2878
+ }
2879
+
2880
+ export interface DeploymentManagedServiceStopOutput {
2881
+ id: string
2882
+ name: string
2883
+ slug: string
2884
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2885
+ status: string
2886
+ version: string
2887
+ createdAt: string
2888
+ productId: string
2889
+ updatedAt: string
2890
+ storageGiB: number
2891
+ backupPolicy: {
2892
+ cron: string
2893
+ timezone: string
2894
+ retentionDays: number
2895
+ scheduleSummary: string
2896
+ manualBackupsExpire: boolean
2897
+ }
2898
+ databaseName: (string | null)
2899
+ lastBackupAt: (string | null)
2900
+ environmentId: string
2901
+ lastErrorMessage: (string | null)
2902
+ }
2903
+
2904
+ export interface DeploymentManagedServiceTypesInput {
2905
+
2906
+ }
2907
+
2908
+ export interface DeploymentManagedServiceTypesOutput {
2909
+ engines: {
2910
+ engine: ("postgres" | "redis" | "mysql" | "mongodb")
2911
+ versions: string[]
2912
+ displayName: string
2913
+ defaultVersion: string
2914
+ managedVarKeys: string[]
2915
+ }[]
2916
+ }
2917
+
2918
+ export interface DeploymentMetricsGetInput {
2919
+ window?: ("15m" | "1h" | "6h" | "24h" | "7d")
2920
+ targetId: string
2921
+ targetKind: ("service" | "managed-service")
2922
+ }
2923
+
2924
+ export interface DeploymentMetricsGetOutput {
2925
+ series: {
2926
+ unit: ("cores" | "bytes" | "bytes_per_s" | "requests_per_s" | "milliseconds" | "percent")
2927
+ metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk" | "rps" | "p50" | "p95" | "p99" | "error_rate")
2928
+ points: {
2929
+ t: number
2930
+ v: number
2931
+ }[]
2932
+ }[]
2933
+ window: ("15m" | "1h" | "6h" | "24h" | "7d")
2934
+ capacity: {
2935
+ cpuCores: (number | null)
2936
+ memoryBytes: (number | null)
2937
+ }
2938
+ targetId: string
2939
+ targetKind: ("service" | "managed-service")
2940
+ stepSeconds: number
2941
+ }
2942
+
2943
+ export interface DeploymentPreviewEnvironmentCreateInput {
2944
+ prBranch?: string
2945
+ prNumber: number
2946
+ baseEnvironmentId: string
2947
+ }
2948
+
2949
+ export interface DeploymentPreviewEnvironmentCreateOutput {
2950
+ id: string
2951
+ name: string
2952
+ slug: string
2953
+ type: ("persistent" | "pr-preview")
2954
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2955
+ prBranch: (string | null)
2956
+ prNumber: (number | null)
2957
+ createdAt: string
2958
+ expiresAt: (string | null)
2959
+ updatedAt: string
2960
+ isProduction: boolean
2961
+ lastErrorMessage: (string | null)
2962
+ baseEnvironmentId: (string | null)
2963
+ }
2964
+
2965
+ export interface DeploymentPreviewEnvironmentDeleteInput {
2966
+ id: string
2967
+ }
2968
+
2969
+ export interface DeploymentPreviewEnvironmentDeleteOutput {
2970
+ [k: string]: unknown
2971
+ }
2972
+
2973
+ export interface DeploymentPreviewEnvironmentListInput {
2974
+
2975
+ }
2976
+
2977
+ export type DeploymentPreviewEnvironmentListOutput = {
2978
+ id: string
2979
+ name: string
2980
+ slug: string
2981
+ type: ("persistent" | "pr-preview")
2982
+ status: ("provisioning" | "ready" | "provisioning_failed" | "deprovisioning" | "deprovisioning_failed")
2983
+ prBranch: (string | null)
2984
+ prNumber: (number | null)
2985
+ createdAt: string
2986
+ expiresAt: (string | null)
2987
+ updatedAt: string
2988
+ isProduction: boolean
2989
+ lastErrorMessage: (string | null)
2990
+ baseEnvironmentId: (string | null)
2991
+ }[]
2992
+
2993
+ export interface DeploymentPreviewPolicyGetInput {
2994
+ baseEnvironmentId: string
2995
+ }
2996
+
2997
+ export interface DeploymentPreviewPolicyGetOutput {
2998
+ id: string
2999
+ enabled: boolean
3000
+ ttlHours: number
3001
+ createdAt: string
3002
+ updatedAt: string
3003
+ maxPreviews: number
3004
+ baseEnvironmentId: string
3005
+ }
3006
+
3007
+ export interface DeploymentPreviewPolicySetInput {
3008
+ enabled?: boolean
3009
+ ttlHours?: number
3010
+ maxPreviews?: number
3011
+ baseEnvironmentId: string
3012
+ }
3013
+
3014
+ export interface DeploymentPreviewPolicySetOutput {
3015
+ id: string
3016
+ enabled: boolean
3017
+ ttlHours: number
3018
+ createdAt: string
3019
+ updatedAt: string
3020
+ maxPreviews: number
3021
+ baseEnvironmentId: string
3022
+ }
3023
+
3024
+ export interface DeploymentServiceCreateInput {
3025
+ name: string
3026
+ slug?: string
3027
+ canvas?: {
3028
+ x: number
3029
+ y: number
3030
+ }
3031
+ probes?: {
3032
+ liveness?: DeploymentServiceCreateInputReadiness
3033
+ readiness?: DeploymentServiceCreateInputReadiness
3034
+ }
3035
+ source: ({
3036
+ url?: string
3037
+ path?: string
3038
+ type: "git"
3039
+ branch: string
3040
+ connectorId?: string
3041
+ repoFullName?: string
3042
+ } | {
3043
+ tag: string
3044
+ type: "image"
3045
+ registry: string
3046
+ } | {
3047
+ spa?: boolean
3048
+ repo?: {
3049
+ url?: string
3050
+ path?: string
3051
+ branch: string
3052
+ connectorId?: string
3053
+ repoFullName?: string
3054
+ }
3055
+ type: "static"
3056
+ build?: {
3057
+ command?: string
3058
+ outputDir?: string
3059
+ }
3060
+ })
3061
+ replicas?: number
3062
+ resources?: {
3063
+ limits?: {
3064
+ cpu?: string
3065
+ memory?: string
3066
+ }
3067
+ }
3068
+ containerPort?: number
3069
+ environmentId: string
3070
+ }
3071
+ export interface DeploymentServiceCreateInputReadiness {
3072
+ path: string
3073
+ port?: number
3074
+ periodSeconds?: number
3075
+ timeoutSeconds?: number
3076
+ failureThreshold?: number
3077
+ successThreshold?: number
3078
+ initialDelaySeconds?: number
3079
+ }
3080
+
3081
+ export interface DeploymentServiceCreateOutput {
3082
+ id: string
3083
+ name: string
3084
+ slug: string
3085
+ probes: {
3086
+ liveness?: DeploymentServiceCreateOutputReadiness
3087
+ readiness?: DeploymentServiceCreateOutputReadiness
3088
+ }
3089
+ source: ({
3090
+ url?: string
3091
+ path?: string
3092
+ type: "git"
3093
+ branch: string
3094
+ connectorId?: string
3095
+ repoFullName?: string
3096
+ } | {
3097
+ tag: string
3098
+ type: "image"
3099
+ registry: string
3100
+ } | {
3101
+ spa?: boolean
3102
+ repo?: {
3103
+ url?: string
3104
+ path?: string
3105
+ branch: string
3106
+ connectorId?: string
3107
+ repoFullName?: string
3108
+ }
3109
+ type: "static"
3110
+ build?: {
3111
+ command?: string
3112
+ outputDir?: string
3113
+ }
3114
+ })
3115
+ replicas: number
3116
+ createdAt: string
3117
+ dependsOn: string[]
3118
+ resources?: {
3119
+ limits?: {
3120
+ cpu?: string
3121
+ memory?: string
3122
+ }
3123
+ }
3124
+ updatedAt: string
3125
+ containerPort: number
3126
+ environmentId: string
3127
+ lastReplicasRunning: number
3128
+ }
3129
+ export interface DeploymentServiceCreateOutputReadiness {
3130
+ path: string
3131
+ port?: number
3132
+ periodSeconds?: number
3133
+ timeoutSeconds?: number
3134
+ failureThreshold?: number
3135
+ successThreshold?: number
3136
+ initialDelaySeconds?: number
3137
+ }
3138
+
3139
+ export interface DeploymentServiceDeleteInput {
3140
+ id: string
3141
+ }
3142
+
3143
+ export interface DeploymentServiceDeleteOutput {
3144
+ [k: string]: unknown
3145
+ }
3146
+
3147
+ export interface DeploymentServiceExecInput {
3148
+ mode?: ("exec" | "job")
3149
+ command: string
3150
+ serviceId: string
3151
+ timeoutSec?: number
3152
+ }
3153
+
3154
+ export interface DeploymentServiceExecOutput {
3155
+ mode: ("exec" | "job")
3156
+ output: string
3157
+ stderr: string
3158
+ stdout: string
3159
+ target: ({
3160
+ kind: "pod"
3161
+ podName: string
3162
+ container: string
3163
+ } | {
3164
+ kind: "job"
3165
+ jobName: string
3166
+ })
3167
+ exitCode: number
3168
+ timedOut: boolean
3169
+ truncated: boolean
3170
+ }
3171
+
3172
+ export interface DeploymentServiceGetInput {
3173
+ id: string
3174
+ }
3175
+
3176
+ export interface DeploymentServiceGetOutput {
3177
+ id: string
3178
+ name: string
3179
+ slug: string
3180
+ probes: {
3181
+ liveness?: DeploymentServiceGetOutputReadiness
3182
+ readiness?: DeploymentServiceGetOutputReadiness
3183
+ }
3184
+ source: ({
3185
+ url?: string
3186
+ path?: string
3187
+ type: "git"
3188
+ branch: string
3189
+ connectorId?: string
3190
+ repoFullName?: string
3191
+ } | {
3192
+ tag: string
3193
+ type: "image"
3194
+ registry: string
3195
+ } | {
3196
+ spa?: boolean
3197
+ repo?: {
3198
+ url?: string
3199
+ path?: string
3200
+ branch: string
3201
+ connectorId?: string
3202
+ repoFullName?: string
3203
+ }
3204
+ type: "static"
3205
+ build?: {
3206
+ command?: string
3207
+ outputDir?: string
3208
+ }
3209
+ })
3210
+ replicas: number
3211
+ createdAt: string
3212
+ dependsOn: string[]
3213
+ resources?: {
3214
+ limits?: {
3215
+ cpu?: string
3216
+ memory?: string
3217
+ }
3218
+ }
3219
+ updatedAt: string
3220
+ containerPort: number
3221
+ environmentId: string
3222
+ lastReplicasRunning: number
3223
+ }
3224
+ export interface DeploymentServiceGetOutputReadiness {
3225
+ path: string
3226
+ port?: number
3227
+ periodSeconds?: number
3228
+ timeoutSeconds?: number
3229
+ failureThreshold?: number
3230
+ successThreshold?: number
3231
+ initialDelaySeconds?: number
3232
+ }
3233
+
3234
+ export interface DeploymentServiceListInput {
3235
+ environmentId: string
3236
+ }
3237
+
3238
+ export type DeploymentServiceListOutput = {
3239
+ id: string
3240
+ name: string
3241
+ slug: string
3242
+ probes: {
3243
+ liveness?: DeploymentServiceListOutputReadiness
3244
+ readiness?: DeploymentServiceListOutputReadiness
3245
+ }
3246
+ source: ({
3247
+ url?: string
3248
+ path?: string
3249
+ type: "git"
3250
+ branch: string
3251
+ connectorId?: string
3252
+ repoFullName?: string
3253
+ } | {
3254
+ tag: string
3255
+ type: "image"
3256
+ registry: string
3257
+ } | {
3258
+ spa?: boolean
3259
+ repo?: {
3260
+ url?: string
3261
+ path?: string
3262
+ branch: string
3263
+ connectorId?: string
3264
+ repoFullName?: string
3265
+ }
3266
+ type: "static"
3267
+ build?: {
3268
+ command?: string
3269
+ outputDir?: string
3270
+ }
3271
+ })
3272
+ replicas: number
3273
+ createdAt: string
3274
+ dependsOn: string[]
3275
+ resources?: {
3276
+ limits?: {
3277
+ cpu?: string
3278
+ memory?: string
3279
+ }
3280
+ }
3281
+ updatedAt: string
3282
+ containerPort: number
3283
+ environmentId: string
3284
+ lastReplicasRunning: number
3285
+ }[]
3286
+
3287
+ export interface DeploymentServiceListOutputReadiness {
3288
+ path: string
3289
+ port?: number
3290
+ periodSeconds?: number
3291
+ timeoutSeconds?: number
3292
+ failureThreshold?: number
3293
+ successThreshold?: number
3294
+ initialDelaySeconds?: number
3295
+ }
3296
+
3297
+ export interface DeploymentServiceLogsInput {
3298
+ tail?: number
3299
+ serviceId: string
3300
+ }
3301
+
3302
+ export interface DeploymentServiceLogsOutput {
3303
+ lines: string[]
3304
+ }
3305
+
3306
+ export interface DeploymentServiceRedeployInput {
3307
+ serviceId: string
3308
+ }
3309
+
3310
+ export interface DeploymentServiceRedeployOutput {
3311
+ id: string
3312
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
3313
+ builtAt: (string | null)
3314
+ imageRef: (string | null)
3315
+ commitSha: (string | null)
3316
+ createdAt: string
3317
+ serviceId: string
3318
+ startedAt: (string | null)
3319
+ updatedAt: string
3320
+ deployedAt: (string | null)
3321
+ finishedAt: (string | null)
3322
+ cloudBuildId: (string | null)
3323
+ configSnapshot: {
3324
+ source?: unknown
3325
+ variables: {
3326
+ key: string
3327
+ value: string
3328
+ }[]
3329
+ }
3330
+ lastErrorMessage: (string | null)
3331
+ rolledBackFromDeploymentId: (string | null)
3332
+ }
3333
+
3334
+ export interface DeploymentServiceRestartInput {
3335
+ id: string
3336
+ }
3337
+
3338
+ export interface DeploymentServiceRestartOutput {
3339
+ [k: string]: unknown
3340
+ }
3341
+
3342
+ export interface DeploymentServiceRollbackInput {
3343
+ serviceId: string
3344
+ deploymentId: string
3345
+ }
3346
+
3347
+ export interface DeploymentServiceRollbackOutput {
3348
+ id: string
3349
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
3350
+ builtAt: (string | null)
3351
+ imageRef: (string | null)
3352
+ commitSha: (string | null)
3353
+ createdAt: string
3354
+ serviceId: string
3355
+ startedAt: (string | null)
3356
+ updatedAt: string
3357
+ deployedAt: (string | null)
3358
+ finishedAt: (string | null)
3359
+ cloudBuildId: (string | null)
3360
+ configSnapshot: {
3361
+ source?: unknown
3362
+ variables: {
3363
+ key: string
3364
+ value: string
3365
+ }[]
3366
+ }
3367
+ lastErrorMessage: (string | null)
3368
+ rolledBackFromDeploymentId: (string | null)
3369
+ }
3370
+
3371
+ export interface DeploymentServiceScaleInput {
3372
+ id: string
3373
+ replicas: number
3374
+ }
3375
+
3376
+ export interface DeploymentServiceScaleOutput {
3377
+ id: string
3378
+ name: string
3379
+ slug: string
3380
+ probes: {
3381
+ liveness?: DeploymentServiceScaleOutputReadiness
3382
+ readiness?: DeploymentServiceScaleOutputReadiness
3383
+ }
3384
+ source: ({
3385
+ url?: string
3386
+ path?: string
3387
+ type: "git"
3388
+ branch: string
3389
+ connectorId?: string
3390
+ repoFullName?: string
3391
+ } | {
3392
+ tag: string
3393
+ type: "image"
3394
+ registry: string
3395
+ } | {
3396
+ spa?: boolean
3397
+ repo?: {
3398
+ url?: string
3399
+ path?: string
3400
+ branch: string
3401
+ connectorId?: string
3402
+ repoFullName?: string
3403
+ }
3404
+ type: "static"
3405
+ build?: {
3406
+ command?: string
3407
+ outputDir?: string
3408
+ }
3409
+ })
3410
+ replicas: number
3411
+ createdAt: string
3412
+ dependsOn: string[]
3413
+ resources?: {
3414
+ limits?: {
3415
+ cpu?: string
3416
+ memory?: string
3417
+ }
3418
+ }
3419
+ updatedAt: string
3420
+ containerPort: number
3421
+ environmentId: string
3422
+ lastReplicasRunning: number
3423
+ }
3424
+ export interface DeploymentServiceScaleOutputReadiness {
3425
+ path: string
3426
+ port?: number
3427
+ periodSeconds?: number
3428
+ timeoutSeconds?: number
3429
+ failureThreshold?: number
3430
+ successThreshold?: number
3431
+ initialDelaySeconds?: number
3432
+ }
3433
+
3434
+ export interface DeploymentServiceUpdateInput {
3435
+ id: string
3436
+ name?: string
3437
+ probes?: {
3438
+ liveness?: DeploymentServiceUpdateInputReadiness
3439
+ readiness?: DeploymentServiceUpdateInputReadiness
3440
+ }
3441
+ source?: ({
3442
+ url?: string
3443
+ path?: string
3444
+ type: "git"
3445
+ branch: string
3446
+ connectorId?: string
3447
+ repoFullName?: string
3448
+ } | {
3449
+ tag: string
3450
+ type: "image"
3451
+ registry: string
3452
+ } | {
3453
+ spa?: boolean
3454
+ repo?: {
3455
+ url?: string
3456
+ path?: string
3457
+ branch: string
3458
+ connectorId?: string
3459
+ repoFullName?: string
3460
+ }
3461
+ type: "static"
3462
+ build?: {
3463
+ command?: string
3464
+ outputDir?: string
3465
+ }
3466
+ })
3467
+ replicas?: number
3468
+ resources?: {
3469
+ limits?: {
3470
+ cpu?: string
3471
+ memory?: string
3472
+ }
3473
+ }
3474
+ containerPort?: number
3475
+ }
3476
+ export interface DeploymentServiceUpdateInputReadiness {
3477
+ path: string
3478
+ port?: number
3479
+ periodSeconds?: number
3480
+ timeoutSeconds?: number
3481
+ failureThreshold?: number
3482
+ successThreshold?: number
3483
+ initialDelaySeconds?: number
3484
+ }
3485
+
3486
+ export interface DeploymentServiceUpdateOutput {
3487
+ id: string
3488
+ name: string
3489
+ slug: string
3490
+ probes: {
3491
+ liveness?: DeploymentServiceUpdateOutputReadiness
3492
+ readiness?: DeploymentServiceUpdateOutputReadiness
3493
+ }
3494
+ source: ({
3495
+ url?: string
3496
+ path?: string
3497
+ type: "git"
3498
+ branch: string
3499
+ connectorId?: string
3500
+ repoFullName?: string
3501
+ } | {
3502
+ tag: string
3503
+ type: "image"
3504
+ registry: string
3505
+ } | {
3506
+ spa?: boolean
3507
+ repo?: {
3508
+ url?: string
3509
+ path?: string
3510
+ branch: string
3511
+ connectorId?: string
3512
+ repoFullName?: string
3513
+ }
3514
+ type: "static"
3515
+ build?: {
3516
+ command?: string
3517
+ outputDir?: string
3518
+ }
3519
+ })
3520
+ replicas: number
3521
+ createdAt: string
3522
+ dependsOn: string[]
3523
+ resources?: {
3524
+ limits?: {
3525
+ cpu?: string
3526
+ memory?: string
3527
+ }
3528
+ }
3529
+ updatedAt: string
3530
+ containerPort: number
3531
+ environmentId: string
3532
+ lastReplicasRunning: number
3533
+ }
3534
+ export interface DeploymentServiceUpdateOutputReadiness {
3535
+ path: string
3536
+ port?: number
3537
+ periodSeconds?: number
3538
+ timeoutSeconds?: number
3539
+ failureThreshold?: number
3540
+ successThreshold?: number
3541
+ initialDelaySeconds?: number
3542
+ }
3543
+
3544
+ export interface DeploymentSshCommandInput {
3545
+ serviceId: string
3546
+ }
3547
+
3548
+ export interface DeploymentSshCommandOutput {
3549
+ host: string
3550
+ command: string
3551
+ username: string
3552
+ }
3553
+
3554
+ export interface DeploymentSshKeyDeleteInput {
3555
+ id: string
3556
+ }
3557
+
3558
+ export interface DeploymentSshKeyDeleteOutput {
3559
+ deleted: boolean
3560
+ }
3561
+
3562
+ export interface DeploymentSshKeyListInput {
3563
+
3564
+ }
3565
+
3566
+ export type DeploymentSshKeyListOutput = {
3567
+ id: string
3568
+ algo: string
3569
+ name: string
3570
+ scope: ("workspace" | "personal")
3571
+ createdAt: string
3572
+ productId: string
3573
+ lastUsedAt: (string | null)
3574
+ ownerIdentityId: string
3575
+ fingerprintSha256: string
3576
+ }[]
3577
+
3578
+ export interface DeploymentSshKeyRegisterInput {
3579
+ /**
3580
+ * Human label for the key, e.g. "my-laptop"
3581
+ */
3582
+ name: string
3583
+ /**
3584
+ * OpenSSH public key line (ssh-ed25519 / ssh-rsa ...)
3585
+ */
3586
+ publicKey: string
3587
+ }
3588
+
3589
+ export interface DeploymentSshKeyRegisterOutput {
3590
+ id: string
3591
+ algo: string
3592
+ name: string
3593
+ scope: ("workspace" | "personal")
3594
+ createdAt: string
3595
+ productId: string
3596
+ lastUsedAt: (string | null)
3597
+ ownerIdentityId: string
3598
+ fingerprintSha256: string
3599
+ }
3600
+
3601
+ export interface DeploymentVariableListInput {
3602
+ serviceId: string
3603
+ }
3604
+
3605
+ export type DeploymentVariableListOutput = {
3606
+ id: string
3607
+ key: string
3608
+ scope: ("service" | "environment" | "product")
3609
+ value: (string | null)
3610
+ isSecret: boolean
3611
+ createdAt: string
3612
+ serviceId: (string | null)
3613
+ updatedAt: string
3614
+ environmentId: (string | null)
3615
+ }[]
3616
+
3617
+ export interface DeploymentVariableListEnvInput {
3618
+ environmentId: string
3619
+ }
3620
+
3621
+ export type DeploymentVariableListEnvOutput = {
3622
+ id: string
3623
+ key: string
3624
+ scope: ("service" | "environment" | "product")
3625
+ value: (string | null)
3626
+ isSecret: boolean
3627
+ createdAt: string
3628
+ serviceId: (string | null)
3629
+ updatedAt: string
3630
+ environmentId: (string | null)
3631
+ }[]
3632
+
3633
+ export interface DeploymentVariableListProductInput {
3634
+
3635
+ }
3636
+
3637
+ export type DeploymentVariableListProductOutput = {
3638
+ id: string
3639
+ key: string
3640
+ scope: ("service" | "environment" | "product")
3641
+ value: (string | null)
3642
+ isSecret: boolean
3643
+ createdAt: string
3644
+ serviceId: (string | null)
3645
+ updatedAt: string
3646
+ environmentId: (string | null)
3647
+ }[]
3648
+
3649
+ export interface DeploymentVariableSetInput {
3650
+ key: string
3651
+ value: string
3652
+ isSecret?: boolean
3653
+ serviceId: string
3654
+ }
3655
+
3656
+ export interface DeploymentVariableSetOutput {
3657
+ id: string
3658
+ key: string
3659
+ scope: ("service" | "environment" | "product")
3660
+ value: (string | null)
3661
+ isSecret: boolean
3662
+ createdAt: string
3663
+ serviceId: (string | null)
3664
+ updatedAt: string
3665
+ environmentId: (string | null)
3666
+ }
3667
+
3668
+ export interface DeploymentVariableSetEnvInput {
3669
+ key: string
3670
+ value: string
3671
+ isSecret?: boolean
3672
+ environmentId: string
3673
+ }
3674
+
3675
+ export interface DeploymentVariableSetEnvOutput {
3676
+ id: string
3677
+ key: string
3678
+ scope: ("service" | "environment" | "product")
3679
+ value: (string | null)
3680
+ isSecret: boolean
3681
+ createdAt: string
3682
+ serviceId: (string | null)
3683
+ updatedAt: string
3684
+ environmentId: (string | null)
3685
+ }
3686
+
3687
+ export interface DeploymentVariableSetProductInput {
3688
+ key: string
3689
+ value: string
3690
+ isSecret?: boolean
3691
+ }
3692
+
3693
+ export interface DeploymentVariableSetProductOutput {
3694
+ id: string
3695
+ key: string
3696
+ scope: ("service" | "environment" | "product")
3697
+ value: (string | null)
3698
+ isSecret: boolean
3699
+ createdAt: string
3700
+ serviceId: (string | null)
3701
+ updatedAt: string
3702
+ environmentId: (string | null)
3703
+ }
3704
+
3705
+ export interface DeploymentVariableUnsetInput {
3706
+ key: string
3707
+ serviceId: string
3708
+ }
3709
+
3710
+ export interface DeploymentVariableUnsetOutput {
3711
+ [k: string]: unknown
3712
+ }
3713
+
3714
+ export interface DeploymentVariableUnsetEnvInput {
3715
+ key: string
3716
+ environmentId: string
3717
+ }
3718
+
3719
+ export interface DeploymentVariableUnsetEnvOutput {
3720
+ [k: string]: unknown
3721
+ }
3722
+
3723
+ export interface DeploymentVariableUnsetProductInput {
3724
+ key: string
3725
+ }
3726
+
3727
+ export interface DeploymentVariableUnsetProductOutput {
3728
+ [k: string]: unknown
3729
+ }
3730
+
3731
+ export interface DeploymentVcsBranchListInput {
3732
+ connectorId: string
3733
+ repoFullName: string
3734
+ }
3735
+
3736
+ export type DeploymentVcsBranchListOutput = {
3737
+ name: string
3738
+ commitSha: string
3739
+ }[]
3740
+
3741
+ export interface DeploymentVcsConnectionListInput {
3742
+
3743
+ }
3744
+
3745
+ export type DeploymentVcsConnectionListOutput = {
3746
+ status: string
3747
+ connectorId: string
3748
+ accountLogin: string
3749
+ installationId: string
3750
+ }[]
3751
+
3752
+ export interface DeploymentVcsRepoListInput {
3753
+ page?: number
3754
+ search?: string
3755
+ connectorId: string
3756
+ }
3757
+
3758
+ export type DeploymentVcsRepoListOutput = {
3759
+ private: boolean
3760
+ fullName: string
3761
+ defaultBranch: string
3762
+ }[]
3763
+
3764
+ export interface DeploymentVolumeCreateInput {
3765
+ name: string
3766
+ slug?: string
3767
+ sizeGb: number
3768
+ mountPath: string
3769
+ environmentId: string
3770
+ attachedServiceId?: string
3771
+ }
3772
+
3773
+ export interface DeploymentVolumeCreateOutput {
1236
3774
  id: string
3775
+ name: string
3776
+ slug: string
3777
+ sizeGb: number
3778
+ status: ("provisioning" | "ready" | "detached" | "failed")
3779
+ createdAt: string
3780
+ mountPath: string
3781
+ updatedAt: string
3782
+ environmentId: string
3783
+ lastErrorMessage: (string | null)
3784
+ attachedServiceId: (string | null)
1237
3785
  }
1238
3786
 
1239
- export interface ConsentProvidersDeleteOutput {
3787
+ export interface DeploymentVolumeDeleteInput {
1240
3788
  id: string
1241
- deleted: true
1242
3789
  }
1243
3790
 
1244
- export interface ConsentProvidersListInput {
1245
-
3791
+ export interface DeploymentVolumeDeleteOutput {
3792
+ [k: string]: unknown
1246
3793
  }
1247
3794
 
1248
- export type ConsentProvidersListOutput = {
3795
+ export interface DeploymentVolumeDetachInput {
1249
3796
  id: string
1250
- name: string
1251
- hosts: string[]
1252
- cookies: {
3797
+ }
3798
+
3799
+ export interface DeploymentVolumeDetachOutput {
1253
3800
  id: string
1254
3801
  name: string
1255
- type: ("http_cookie" | "local_storage" | "session_storage")
1256
- purpose: string
1257
- storageDuration: string
1258
- }[]
1259
- category: ("necessary" | "preferences" | "statistics" | "marketing")
1260
- isSystem?: boolean
3802
+ slug: string
3803
+ sizeGb: number
3804
+ status: ("provisioning" | "ready" | "detached" | "failed")
1261
3805
  createdAt: string
3806
+ mountPath: string
1262
3807
  updatedAt: string
1263
- catalogKey?: (string | null)
1264
- orderIndex: number
1265
- privacyUrl: (string | null)
1266
- description: string
1267
- }[]
3808
+ environmentId: string
3809
+ lastErrorMessage: (string | null)
3810
+ attachedServiceId: (string | null)
3811
+ }
1268
3812
 
1269
- export interface ConsentProvidersUpdateInput {
1270
- /**
1271
- * Provider id
1272
- */
3813
+ export interface DeploymentVolumeGetInput {
1273
3814
  id: string
1274
- name?: string
1275
- /**
1276
- * If provided, REPLACES the hosts list. Omit to leave unchanged.
1277
- *
1278
- * @maxItems 50
1279
- */
1280
- hosts?: string[]
1281
- /**
1282
- * If provided, REPLACES the whole cookies set for this provider. Omit to leave unchanged.
1283
- *
1284
- * @maxItems 200
1285
- */
1286
- cookies?: {
1287
- /**
1288
- * Cookie/storage key name, e.g. "_ga"
1289
- */
1290
- name: string
1291
- /**
1292
- * Storage mechanism — matches CHECK constraint on consent_cookies.type
1293
- */
1294
- type: ("http_cookie" | "local_storage" | "session_storage")
1295
- /**
1296
- * Human-readable description of why the cookie is set
1297
- */
1298
- purpose?: string
1299
- /**
1300
- * Duration like "2 years", "session", "30 days"
1301
- */
1302
- storageDuration?: string
1303
- }[]
1304
- /**
1305
- * Consent category bucket — matches CHECK constraint on consent_providers.category
1306
- */
1307
- category?: ("necessary" | "preferences" | "statistics" | "marketing")
1308
- orderIndex?: number
1309
- /**
1310
- * null clears the field, undefined leaves it unchanged
1311
- */
1312
- privacyUrl?: (string | null)
1313
- /**
1314
- * Pass empty string to clear; undefined leaves unchanged
1315
- */
1316
- description?: string
1317
3815
  }
1318
3816
 
1319
- export interface ConsentProvidersUpdateOutput {
1320
- id: string
1321
- name: string
1322
- hosts: string[]
1323
- cookies: {
3817
+ export interface DeploymentVolumeGetOutput {
1324
3818
  id: string
1325
3819
  name: string
1326
- type: ("http_cookie" | "local_storage" | "session_storage")
1327
- purpose: string
1328
- storageDuration: string
1329
- }[]
1330
- category: ("necessary" | "preferences" | "statistics" | "marketing")
1331
- isSystem?: boolean
3820
+ slug: string
3821
+ sizeGb: number
3822
+ status: ("provisioning" | "ready" | "detached" | "failed")
1332
3823
  createdAt: string
3824
+ mountPath: string
1333
3825
  updatedAt: string
1334
- catalogKey?: (string | null)
1335
- orderIndex: number
1336
- privacyUrl: (string | null)
1337
- description: string
3826
+ environmentId: string
3827
+ lastErrorMessage: (string | null)
3828
+ attachedServiceId: (string | null)
1338
3829
  }
1339
3830
 
1340
- export interface ConsentRecordsExportInput {
1341
- /**
1342
- * Inclusive upper bound for created_at, ISO-8601. Example: "2026-01-01T00:00:00Z". Omit for "up to now".
1343
- */
1344
- to?: string
1345
- /**
1346
- * Inclusive lower bound for created_at (server clock), ISO-8601. Example: "2025-01-01T00:00:00Z". Omit for "from the beginning".
1347
- */
1348
- from?: string
1349
- /**
1350
- * Maximum rows to return inline. Default 1000, hard cap 10000. If more rows match, the response sets truncated=true and includes download_url for the full dataset via HTTP.
1351
- */
1352
- limit?: number
1353
- /**
1354
- * DSAR (Art. 15) lookup: a visitor-presented record_id (the UUID from their consent cookie). When set, the export is filtered to that visitor's full decision chain (transitive closure over replaces_id), scoped to the current product. Omit for a product-wide admin export.
1355
- */
1356
- record_id?: string
3831
+ export interface DeploymentVolumeListInput {
3832
+ environmentId: string
1357
3833
  }
1358
3834
 
1359
- export interface ConsentRecordsExportOutput {
1360
- csv: string
1361
- filters: {
1362
- to: (string | null)
1363
- from: (string | null)
1364
- limit: number
1365
- }
1366
- truncated: boolean
1367
- total_count: number
1368
- download_url?: string
1369
- returned_count: number
1370
- }
3835
+ export type DeploymentVolumeListOutput = {
3836
+ id: string
3837
+ name: string
3838
+ slug: string
3839
+ sizeGb: number
3840
+ status: ("provisioning" | "ready" | "detached" | "failed")
3841
+ createdAt: string
3842
+ mountPath: string
3843
+ updatedAt: string
3844
+ environmentId: string
3845
+ lastErrorMessage: (string | null)
3846
+ attachedServiceId: (string | null)
3847
+ }[]
1371
3848
 
1372
- export interface ConsentStatsGetInput {
1373
- /**
1374
- * Time window for aggregation in days, e.g. "30d". Omit to use the server default (30d). Maximum: 365d.
1375
- */
1376
- range?: string
3849
+ export interface DeploymentVolumeResizeInput {
3850
+ id: string
3851
+ sizeGb: number
1377
3852
  }
1378
3853
 
1379
- export interface ConsentStatsGetOutput {
1380
- range: {
1381
- to: string
1382
- from: string
1383
- }
1384
- total: number
1385
- custom_pct: number
1386
- by_category: {
1387
- marketing_pct: number
1388
- statistics_pct: number
1389
- preferences_pct: number
1390
- }
1391
- deny_all_pct: number
1392
- accept_all_pct: number
3854
+ export interface DeploymentVolumeResizeOutput {
3855
+ id: string
3856
+ name: string
3857
+ slug: string
3858
+ sizeGb: number
3859
+ status: ("provisioning" | "ready" | "detached" | "failed")
3860
+ createdAt: string
3861
+ mountPath: string
3862
+ updatedAt: string
3863
+ environmentId: string
3864
+ lastErrorMessage: (string | null)
3865
+ attachedServiceId: (string | null)
1393
3866
  }
1394
3867
 
1395
3868
  export interface MailApikeyCreateInput {
@@ -10495,7 +12968,6 @@ id: string
10495
12968
  name: string
10496
12969
  role: string
10497
12970
  slug: string
10498
- demoAt: (string | null)
10499
12971
  status: string
10500
12972
  blockedAt: (string | null)
10501
12973
  createdAt: string
@@ -10513,7 +12985,6 @@ id: string
10513
12985
  name: string
10514
12986
  role: string
10515
12987
  slug: string
10516
- demoAt: (string | null)
10517
12988
  status: string
10518
12989
  blockedAt: (string | null)
10519
12990
  createdAt: string
@@ -10545,7 +13016,6 @@ id: string
10545
13016
  name: string
10546
13017
  role: string
10547
13018
  slug: string
10548
- demoAt: (string | null)
10549
13019
  status: string
10550
13020
  blockedAt: (string | null)
10551
13021
  createdAt: string
@@ -10715,6 +13185,226 @@ name: string
10715
13185
  activeProductId: (string | null)
10716
13186
  }
10717
13187
 
13188
+ export interface PlaygroundAnalyticsOverviewInput {
13189
+ /**
13190
+ * Max records per entity in recent[]; omit for the endpoint default
13191
+ */
13192
+ limit?: number
13193
+ }
13194
+
13195
+ export interface PlaygroundAnalyticsOverviewOutput {
13196
+ ok: boolean
13197
+ minted: boolean
13198
+ overview?: unknown
13199
+ http_status: number
13200
+ }
13201
+
13202
+ export interface PlaygroundBillingEntitlementsInput {
13203
+
13204
+ }
13205
+
13206
+ export interface PlaygroundBillingEntitlementsOutput {
13207
+ ok: boolean
13208
+ minted: boolean
13209
+ http_status: number
13210
+ entitlements?: unknown
13211
+ }
13212
+
13213
+ export interface PlaygroundBillingRecordUsageInput {
13214
+ /**
13215
+ * Quantity of events to record against playground-events (SUM); defaults to 1
13216
+ */
13217
+ value?: number
13218
+ }
13219
+
13220
+ export interface PlaygroundBillingRecordUsageOutput {
13221
+ minted: boolean
13222
+ accepted: (number | null)
13223
+ recorded: boolean
13224
+ duplicates: (number | null)
13225
+ http_status: number
13226
+ }
13227
+
13228
+ export interface PlaygroundClickupCreateTaskInput {
13229
+ /**
13230
+ * Task title; defaults to a fixture label
13231
+ */
13232
+ name?: string
13233
+ /**
13234
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13235
+ */
13236
+ listId?: string
13237
+ }
13238
+
13239
+ export interface PlaygroundClickupCreateTaskOutput {
13240
+ minted: boolean
13241
+ task_id: (string | null)
13242
+ list_status: number
13243
+ vend_status: number
13244
+ clickup_status: number
13245
+ installation_count: number
13246
+ }
13247
+
13248
+ export interface PlaygroundClickupGetLastWebhookInput {
13249
+
13250
+ }
13251
+
13252
+ export type PlaygroundClickupGetLastWebhookOutput = ({
13253
+ payload: string
13254
+ event_id: string
13255
+ provider: string
13256
+ verified: boolean
13257
+ product_id: string
13258
+ occurred_at: string
13259
+ connector_id: string
13260
+ clickup_event: (string | null)
13261
+ receipt_count: number
13262
+ } | {
13263
+ found: false
13264
+ })
13265
+
13266
+ export interface PlaygroundClickupGetOverviewInput {
13267
+
13268
+ }
13269
+
13270
+ export interface PlaygroundClickupGetOverviewOutput {
13271
+ team: ({
13272
+ teamId: string
13273
+ teamName: string
13274
+ } | null)
13275
+ lists: PlaygroundClickupGetOverviewOutputItems[]
13276
+ tasks: {
13277
+ id: string
13278
+ name: string
13279
+ status: (string | null)
13280
+ }[]
13281
+ minted: boolean
13282
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
13283
+ list_status: number
13284
+ vend_status: number
13285
+ lists_status: number
13286
+ tasks_status: number
13287
+ spaces_status: number
13288
+ folders_status: number
13289
+ installation_count: number
13290
+ }
13291
+ export interface PlaygroundClickupGetOverviewOutputItems {
13292
+ id: string
13293
+ name: string
13294
+ }
13295
+
13296
+ export interface PlaygroundGdriveGetLastChangeInput {
13297
+
13298
+ }
13299
+
13300
+ export type PlaygroundGdriveGetLastChangeOutput = ({
13301
+ file_id: string
13302
+ removed: boolean
13303
+ file_name: (string | null)
13304
+ mime_type: (string | null)
13305
+ product_id: string
13306
+ occurred_at: string
13307
+ connector_id: string
13308
+ resource_state: string
13309
+ } | {
13310
+ found: false
13311
+ })
13312
+
13313
+ export interface PlaygroundGdriveReadFileInput {
13314
+ /**
13315
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13316
+ */
13317
+ fileId?: string
13318
+ }
13319
+
13320
+ export interface PlaygroundGdriveReadFileOutput {
13321
+ minted: boolean
13322
+ file_id: (string | null)
13323
+ file_name: (string | null)
13324
+ mime_type: (string | null)
13325
+ file_count: number
13326
+ get_status: number
13327
+ list_status: number
13328
+ vend_status: number
13329
+ content_bytes: (number | null)
13330
+ }
13331
+
13332
+ export interface PlaygroundGoogleadsReadCustomerInput {
13333
+
13334
+ }
13335
+
13336
+ export interface PlaygroundGoogleadsReadCustomerOutput {
13337
+ minted: boolean
13338
+ vended: boolean
13339
+ customer_id: (string | null)
13340
+ vend_status: number
13341
+ result_count: number
13342
+ search_status: number
13343
+ login_customer_id: (string | null)
13344
+ }
13345
+
13346
+ export interface PlaygroundLifecycleGetStateInput {
13347
+
13348
+ }
13349
+
13350
+ export interface PlaygroundLifecycleGetStateOutput {
13351
+ blocked: boolean
13352
+ archived: boolean
13353
+ productId: string
13354
+ lastBlockTransition: ({
13355
+ eventId: string
13356
+ eventName: string
13357
+ productId: string
13358
+ occurredAt: string
13359
+ recordedAt: string
13360
+ receiptCount: number
13361
+ organizationId: string
13362
+ cascadedFromOrg: boolean
13363
+ } | null)
13364
+ lastArchiveTransition: ({
13365
+ eventId: string
13366
+ eventName: string
13367
+ productId: string
13368
+ occurredAt: string
13369
+ recordedAt: string
13370
+ receiptCount: number
13371
+ organizationId: string
13372
+ cascadedFromOrg: boolean
13373
+ } | null)
13374
+ }
13375
+
13376
+ export interface PlaygroundLifecycleListEventsInput {
13377
+
13378
+ }
13379
+
13380
+ export type PlaygroundLifecycleListEventsOutput = {
13381
+ eventId: string
13382
+ eventName: string
13383
+ productId: string
13384
+ occurredAt: string
13385
+ recordedAt: string
13386
+ receiptCount: number
13387
+ organizationId: string
13388
+ cascadedFromOrg: boolean
13389
+ }[]
13390
+
13391
+ export interface PlaygroundWebhookGetLastInput {
13392
+
13393
+ }
13394
+
13395
+ export type PlaygroundWebhookGetLastOutput = ({
13396
+ payload?: unknown
13397
+ event_id: string
13398
+ provider: string
13399
+ verified: boolean
13400
+ product_id: string
13401
+ occurred_at: string
13402
+ connector_id: string
13403
+ delivery_count: number
13404
+ } | {
13405
+ found: false
13406
+ })
13407
+
10718
13408
  export interface TrackingApiKeysCreateInput {
10719
13409
  name: string
10720
13410
  }