@scarn/sdk 0.8.17 → 0.8.19

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 (62) hide show
  1. package/dist/{chunk-g2mzg278.js → chunk-0c60x3v8.js} +51 -59
  2. package/dist/{chunk-dhqeg0wf.js → chunk-2tmrw253.js} +1 -1
  3. package/dist/{chunk-r03knh9j.js → chunk-3zp2qtf8.js} +80 -1
  4. package/dist/{chunk-ar6hcj1r.js → chunk-6tra3gw8.js} +7 -1
  5. package/dist/{chunk-a04phj60.js → chunk-833ef6dg.js} +121 -260
  6. package/dist/{chunk-2ekz6tr5.js → chunk-aemxz9r7.js} +18 -2
  7. package/dist/chunk-e0pt5x0e.js +167 -0
  8. package/dist/chunk-mmy80pec.js +64 -0
  9. package/dist/chunk-mzj1j0p5.js +116 -0
  10. package/dist/{chunk-cdj0yqgs.js → chunk-pqtd0hr7.js} +12 -2
  11. package/dist/chunk-qgkx89eg.js +210 -0
  12. package/dist/chunk-rphfy0fj.js +167 -0
  13. package/dist/chunk-t1dq2c2s.js +224 -0
  14. package/dist/{chunk-qs7p11rp.js → chunk-tvjcfh6s.js} +5 -1
  15. package/dist/{chunk-1wnv6rb2.js → chunk-ymywp5ht.js} +1 -1
  16. package/dist/client.js +8 -2
  17. package/dist/connectors/catalog.d.ts +49 -0
  18. package/dist/connectors/index.d.ts +45 -0
  19. package/dist/connectors/index.js +41 -0
  20. package/dist/defaults/index.js +2 -2
  21. package/dist/definitions/automations/index.js +2 -2
  22. package/dist/definitions/environments/define-environment.d.ts +39 -0
  23. package/dist/definitions/environments/environments-client.d.ts +50 -0
  24. package/dist/definitions/environments/index.d.ts +6 -0
  25. package/dist/definitions/environments/index.js +97 -0
  26. package/dist/definitions/pipelines/index.js +2 -2
  27. package/dist/definitions/steps/compile-mcps.d.ts +8 -12
  28. package/dist/definitions/steps/define-code-step.d.ts +18 -11
  29. package/dist/definitions/steps/define-step.d.ts +14 -25
  30. package/dist/definitions/steps/env.d.ts +30 -8
  31. package/dist/definitions/steps/index.js +30 -13
  32. package/dist/definitions/steps/mcp-server-config.d.ts +19 -9
  33. package/dist/definitions/steps/repo.d.ts +56 -28
  34. package/dist/definitions/steps/runtime.d.ts +54 -39
  35. package/dist/definitions/steps/step-definitions-client.d.ts +222 -63
  36. package/dist/definitions/steps/step-handle.d.ts +8 -1
  37. package/dist/definitions/validation/index.js +6 -3
  38. package/dist/definitions/validation/validate-repo.d.ts +3 -7
  39. package/dist/definitions/validation/validate-runtime.d.ts +2 -7
  40. package/dist/env-vars.d.ts +57 -1
  41. package/dist/env-vars.js +7 -1
  42. package/dist/environment.d.ts +564 -0
  43. package/dist/environment.js +46 -0
  44. package/dist/generated/index.d.ts +2 -2
  45. package/dist/generated/sdk.gen.d.ts +27 -2
  46. package/dist/generated/types.gen.d.ts +2141 -187
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.js +94 -28
  49. package/dist/opencode-mcp.d.ts +75 -4
  50. package/dist/opencode-mcp.js +2 -1
  51. package/dist/push/code-step-lookup.d.ts +6 -0
  52. package/dist/push/code-step-lookup.js +3 -1
  53. package/dist/push/collect-definitions.d.ts +13 -0
  54. package/dist/push/index.js +127 -15
  55. package/dist/push/push-from-directory.d.ts +11 -2
  56. package/dist/repo-config.d.ts +88 -30
  57. package/dist/repo-config.js +21 -5
  58. package/dist/resolve-environment.d.ts +19 -0
  59. package/dist/resolve-environment.js +19 -0
  60. package/dist/task-plane-client.d.ts +132 -22
  61. package/package.json +17 -1
  62. package/dist/chunk-2sk92cnd.js +0 -103
@@ -1490,7 +1490,43 @@ export type GetApiStepDefinitionsResponses = {
1490
1490
  entrypointJson: {
1491
1491
  sourceFile: string;
1492
1492
  } | null;
1493
- executionMode: 'workspace' | 'no_workspace';
1493
+ environment: {
1494
+ kind: 'named';
1495
+ name: string;
1496
+ } | {
1497
+ kind: 'inline';
1498
+ runtime?: {
1499
+ kind: 'devcontainer';
1500
+ config?: string;
1501
+ } | {
1502
+ kind: 'managed';
1503
+ id: 'bun1' | 'node24';
1504
+ } | {
1505
+ kind: 'host';
1506
+ };
1507
+ envJson?: Array<{
1508
+ name: string;
1509
+ source: 'value';
1510
+ value: string;
1511
+ secret: boolean;
1512
+ applies: 'agent' | 'setup' | 'both';
1513
+ } | {
1514
+ name: string;
1515
+ source: 'inherit';
1516
+ from: string;
1517
+ secret: boolean;
1518
+ optional: boolean;
1519
+ default?: string;
1520
+ mcp?: string;
1521
+ applies: 'agent' | 'setup' | 'both';
1522
+ } | {
1523
+ name: string;
1524
+ source: 'secret';
1525
+ secretName: string;
1526
+ applies: 'agent' | 'setup' | 'both';
1527
+ }> | null;
1528
+ connectors?: Array<string>;
1529
+ } | null;
1494
1530
  inputSchemaJson: {
1495
1531
  [key: string]: unknown;
1496
1532
  };
@@ -1554,6 +1590,16 @@ export type GetApiStepDefinitionsResponses = {
1554
1590
  execution?: number;
1555
1591
  };
1556
1592
  protocol?: 'legacy' | 'auto' | '2026-07-28';
1593
+ workerVars?: Array<{
1594
+ name: string;
1595
+ source: 'inherit';
1596
+ from: string;
1597
+ secret: boolean;
1598
+ optional: boolean;
1599
+ default?: string;
1600
+ mcp?: string;
1601
+ applies: 'agent';
1602
+ }>;
1557
1603
  } | {
1558
1604
  type: 'remote';
1559
1605
  url: string;
@@ -1576,9 +1622,29 @@ export type GetApiStepDefinitionsResponses = {
1576
1622
  execution?: number;
1577
1623
  };
1578
1624
  protocol?: 'legacy' | 'auto' | '2026-07-28';
1625
+ workerVars?: Array<{
1626
+ name: string;
1627
+ source: 'inherit';
1628
+ from: string;
1629
+ secret: boolean;
1630
+ optional: boolean;
1631
+ default?: string;
1632
+ mcp?: string;
1633
+ applies: 'agent';
1634
+ }>;
1579
1635
  } | {
1580
1636
  type: 'ref';
1581
1637
  name?: string;
1638
+ workerVars?: Array<{
1639
+ name: string;
1640
+ source: 'inherit';
1641
+ from: string;
1642
+ secret: boolean;
1643
+ optional: boolean;
1644
+ default?: string;
1645
+ mcp?: string;
1646
+ applies: 'agent';
1647
+ }>;
1582
1648
  disabled?: boolean;
1583
1649
  codemode?: boolean;
1584
1650
  timeout?: {
@@ -1609,34 +1675,21 @@ export type GetApiStepDefinitionsResponses = {
1609
1675
  command: Array<string>;
1610
1676
  expectExitCode: number;
1611
1677
  }> | null;
1612
- envJson: Array<{
1613
- name: string;
1614
- source: 'value';
1615
- value: string;
1616
- secret: boolean;
1617
- applies: 'agent' | 'setup' | 'both';
1618
- } | {
1619
- name: string;
1620
- source: 'inherit';
1621
- from: string;
1622
- secret: boolean;
1623
- optional: boolean;
1624
- default?: string;
1625
- mcp?: string;
1626
- applies: 'agent' | 'setup' | 'both';
1627
- }> | null;
1628
- devcontainerConfigPath: string | null;
1629
- managedRuntime: 'bun1' | 'node24' | null;
1630
1678
  repo: {
1631
- mode: 'none';
1632
- } | {
1633
1679
  mode: 'readOnly';
1634
1680
  gitCredentials: 'auto' | 'none';
1681
+ baseBranch: string | null;
1635
1682
  } | {
1636
1683
  mode: 'readWrite';
1637
1684
  message: string | null;
1638
1685
  onPushFailure: 'fail' | 'warn';
1639
1686
  gitCredentials: 'auto' | 'none';
1687
+ baseBranch: string | null;
1688
+ workBranch: {
1689
+ kind: 'create';
1690
+ } | {
1691
+ kind: 'base';
1692
+ };
1640
1693
  };
1641
1694
  status: 'draft' | 'active' | 'archived';
1642
1695
  createdAt: string;
@@ -1656,7 +1709,43 @@ export type PostApiStepDefinitionsData = {
1656
1709
  entrypointJson?: {
1657
1710
  sourceFile: string;
1658
1711
  } | null;
1659
- executionMode?: 'workspace' | 'no_workspace';
1712
+ environment?: {
1713
+ kind: 'named';
1714
+ name: string;
1715
+ } | {
1716
+ kind: 'inline';
1717
+ runtime?: {
1718
+ kind: 'devcontainer';
1719
+ config?: string;
1720
+ } | {
1721
+ kind: 'managed';
1722
+ id: 'bun1' | 'node24';
1723
+ } | {
1724
+ kind: 'host';
1725
+ };
1726
+ envJson?: Array<{
1727
+ name: string;
1728
+ source: 'value';
1729
+ value: string;
1730
+ secret: boolean;
1731
+ applies?: 'agent' | 'setup' | 'both';
1732
+ } | {
1733
+ name: string;
1734
+ source: 'inherit';
1735
+ from: string;
1736
+ secret: boolean;
1737
+ optional: boolean;
1738
+ default?: string;
1739
+ mcp?: string;
1740
+ applies?: 'agent' | 'setup' | 'both';
1741
+ } | {
1742
+ name: string;
1743
+ source: 'secret';
1744
+ secretName: string;
1745
+ applies?: 'agent' | 'setup' | 'both';
1746
+ }> | null;
1747
+ connectors?: Array<string>;
1748
+ } | null;
1660
1749
  inputSchemaJson: {
1661
1750
  [key: string]: unknown;
1662
1751
  };
@@ -1720,6 +1809,16 @@ export type PostApiStepDefinitionsData = {
1720
1809
  execution?: number;
1721
1810
  };
1722
1811
  protocol?: 'legacy' | 'auto' | '2026-07-28';
1812
+ workerVars?: Array<{
1813
+ name: string;
1814
+ source: 'inherit';
1815
+ from: string;
1816
+ secret: boolean;
1817
+ optional: boolean;
1818
+ default?: string;
1819
+ mcp?: string;
1820
+ applies: 'agent';
1821
+ }>;
1723
1822
  } | {
1724
1823
  type: 'remote';
1725
1824
  url: string;
@@ -1742,9 +1841,29 @@ export type PostApiStepDefinitionsData = {
1742
1841
  execution?: number;
1743
1842
  };
1744
1843
  protocol?: 'legacy' | 'auto' | '2026-07-28';
1844
+ workerVars?: Array<{
1845
+ name: string;
1846
+ source: 'inherit';
1847
+ from: string;
1848
+ secret: boolean;
1849
+ optional: boolean;
1850
+ default?: string;
1851
+ mcp?: string;
1852
+ applies: 'agent';
1853
+ }>;
1745
1854
  } | {
1746
1855
  type: 'ref';
1747
1856
  name?: string;
1857
+ workerVars?: Array<{
1858
+ name: string;
1859
+ source: 'inherit';
1860
+ from: string;
1861
+ secret: boolean;
1862
+ optional: boolean;
1863
+ default?: string;
1864
+ mcp?: string;
1865
+ applies: 'agent';
1866
+ }>;
1748
1867
  disabled?: boolean;
1749
1868
  codemode?: boolean;
1750
1869
  timeout?: {
@@ -1775,34 +1894,21 @@ export type PostApiStepDefinitionsData = {
1775
1894
  command: Array<string>;
1776
1895
  expectExitCode?: number;
1777
1896
  }> | null;
1778
- envJson?: Array<{
1779
- name: string;
1780
- source: 'value';
1781
- value: string;
1782
- secret: boolean;
1783
- applies?: 'agent' | 'setup' | 'both';
1784
- } | {
1785
- name: string;
1786
- source: 'inherit';
1787
- from: string;
1788
- secret: boolean;
1789
- optional: boolean;
1790
- default?: string;
1791
- mcp?: string;
1792
- applies?: 'agent' | 'setup' | 'both';
1793
- }> | null;
1794
- devcontainerConfigPath?: string | null;
1795
- managedRuntime?: 'bun1' | 'node24' | null;
1796
1897
  repo?: {
1797
- mode: 'none';
1798
- } | {
1799
1898
  mode: 'readOnly';
1800
1899
  gitCredentials?: 'auto' | 'none';
1900
+ baseBranch?: string | null;
1801
1901
  } | {
1802
1902
  mode: 'readWrite';
1803
1903
  message?: string | null;
1804
1904
  onPushFailure?: 'fail' | 'warn';
1805
1905
  gitCredentials?: 'auto' | 'none';
1906
+ baseBranch?: string | null;
1907
+ workBranch?: {
1908
+ kind: 'create';
1909
+ } | {
1910
+ kind: 'base';
1911
+ };
1806
1912
  };
1807
1913
  status: 'draft' | 'active' | 'archived';
1808
1914
  };
@@ -1962,7 +2068,43 @@ export type PostApiStepDefinitionsResponses = {
1962
2068
  entrypointJson: {
1963
2069
  sourceFile: string;
1964
2070
  } | null;
1965
- executionMode: 'workspace' | 'no_workspace';
2071
+ environment: {
2072
+ kind: 'named';
2073
+ name: string;
2074
+ } | {
2075
+ kind: 'inline';
2076
+ runtime?: {
2077
+ kind: 'devcontainer';
2078
+ config?: string;
2079
+ } | {
2080
+ kind: 'managed';
2081
+ id: 'bun1' | 'node24';
2082
+ } | {
2083
+ kind: 'host';
2084
+ };
2085
+ envJson?: Array<{
2086
+ name: string;
2087
+ source: 'value';
2088
+ value: string;
2089
+ secret: boolean;
2090
+ applies: 'agent' | 'setup' | 'both';
2091
+ } | {
2092
+ name: string;
2093
+ source: 'inherit';
2094
+ from: string;
2095
+ secret: boolean;
2096
+ optional: boolean;
2097
+ default?: string;
2098
+ mcp?: string;
2099
+ applies: 'agent' | 'setup' | 'both';
2100
+ } | {
2101
+ name: string;
2102
+ source: 'secret';
2103
+ secretName: string;
2104
+ applies: 'agent' | 'setup' | 'both';
2105
+ }> | null;
2106
+ connectors?: Array<string>;
2107
+ } | null;
1966
2108
  inputSchemaJson: {
1967
2109
  [key: string]: unknown;
1968
2110
  };
@@ -2026,6 +2168,16 @@ export type PostApiStepDefinitionsResponses = {
2026
2168
  execution?: number;
2027
2169
  };
2028
2170
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2171
+ workerVars?: Array<{
2172
+ name: string;
2173
+ source: 'inherit';
2174
+ from: string;
2175
+ secret: boolean;
2176
+ optional: boolean;
2177
+ default?: string;
2178
+ mcp?: string;
2179
+ applies: 'agent';
2180
+ }>;
2029
2181
  } | {
2030
2182
  type: 'remote';
2031
2183
  url: string;
@@ -2048,9 +2200,29 @@ export type PostApiStepDefinitionsResponses = {
2048
2200
  execution?: number;
2049
2201
  };
2050
2202
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2203
+ workerVars?: Array<{
2204
+ name: string;
2205
+ source: 'inherit';
2206
+ from: string;
2207
+ secret: boolean;
2208
+ optional: boolean;
2209
+ default?: string;
2210
+ mcp?: string;
2211
+ applies: 'agent';
2212
+ }>;
2051
2213
  } | {
2052
2214
  type: 'ref';
2053
2215
  name?: string;
2216
+ workerVars?: Array<{
2217
+ name: string;
2218
+ source: 'inherit';
2219
+ from: string;
2220
+ secret: boolean;
2221
+ optional: boolean;
2222
+ default?: string;
2223
+ mcp?: string;
2224
+ applies: 'agent';
2225
+ }>;
2054
2226
  disabled?: boolean;
2055
2227
  codemode?: boolean;
2056
2228
  timeout?: {
@@ -2081,34 +2253,21 @@ export type PostApiStepDefinitionsResponses = {
2081
2253
  command: Array<string>;
2082
2254
  expectExitCode: number;
2083
2255
  }> | null;
2084
- envJson: Array<{
2085
- name: string;
2086
- source: 'value';
2087
- value: string;
2088
- secret: boolean;
2089
- applies: 'agent' | 'setup' | 'both';
2090
- } | {
2091
- name: string;
2092
- source: 'inherit';
2093
- from: string;
2094
- secret: boolean;
2095
- optional: boolean;
2096
- default?: string;
2097
- mcp?: string;
2098
- applies: 'agent' | 'setup' | 'both';
2099
- }> | null;
2100
- devcontainerConfigPath: string | null;
2101
- managedRuntime: 'bun1' | 'node24' | null;
2102
2256
  repo: {
2103
- mode: 'none';
2104
- } | {
2105
2257
  mode: 'readOnly';
2106
2258
  gitCredentials: 'auto' | 'none';
2259
+ baseBranch: string | null;
2107
2260
  } | {
2108
2261
  mode: 'readWrite';
2109
2262
  message: string | null;
2110
2263
  onPushFailure: 'fail' | 'warn';
2111
2264
  gitCredentials: 'auto' | 'none';
2265
+ baseBranch: string | null;
2266
+ workBranch: {
2267
+ kind: 'create';
2268
+ } | {
2269
+ kind: 'base';
2270
+ };
2112
2271
  };
2113
2272
  status: 'draft' | 'active' | 'archived';
2114
2273
  createdAt: string;
@@ -2128,7 +2287,43 @@ export type PutApiStepDefinitionsData = {
2128
2287
  entrypointJson?: {
2129
2288
  sourceFile: string;
2130
2289
  } | null;
2131
- executionMode?: 'workspace' | 'no_workspace';
2290
+ environment?: {
2291
+ kind: 'named';
2292
+ name: string;
2293
+ } | {
2294
+ kind: 'inline';
2295
+ runtime?: {
2296
+ kind: 'devcontainer';
2297
+ config?: string;
2298
+ } | {
2299
+ kind: 'managed';
2300
+ id: 'bun1' | 'node24';
2301
+ } | {
2302
+ kind: 'host';
2303
+ };
2304
+ envJson?: Array<{
2305
+ name: string;
2306
+ source: 'value';
2307
+ value: string;
2308
+ secret: boolean;
2309
+ applies?: 'agent' | 'setup' | 'both';
2310
+ } | {
2311
+ name: string;
2312
+ source: 'inherit';
2313
+ from: string;
2314
+ secret: boolean;
2315
+ optional: boolean;
2316
+ default?: string;
2317
+ mcp?: string;
2318
+ applies?: 'agent' | 'setup' | 'both';
2319
+ } | {
2320
+ name: string;
2321
+ source: 'secret';
2322
+ secretName: string;
2323
+ applies?: 'agent' | 'setup' | 'both';
2324
+ }> | null;
2325
+ connectors?: Array<string>;
2326
+ } | null;
2132
2327
  inputSchemaJson: {
2133
2328
  [key: string]: unknown;
2134
2329
  };
@@ -2192,6 +2387,16 @@ export type PutApiStepDefinitionsData = {
2192
2387
  execution?: number;
2193
2388
  };
2194
2389
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2390
+ workerVars?: Array<{
2391
+ name: string;
2392
+ source: 'inherit';
2393
+ from: string;
2394
+ secret: boolean;
2395
+ optional: boolean;
2396
+ default?: string;
2397
+ mcp?: string;
2398
+ applies: 'agent';
2399
+ }>;
2195
2400
  } | {
2196
2401
  type: 'remote';
2197
2402
  url: string;
@@ -2214,9 +2419,29 @@ export type PutApiStepDefinitionsData = {
2214
2419
  execution?: number;
2215
2420
  };
2216
2421
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2422
+ workerVars?: Array<{
2423
+ name: string;
2424
+ source: 'inherit';
2425
+ from: string;
2426
+ secret: boolean;
2427
+ optional: boolean;
2428
+ default?: string;
2429
+ mcp?: string;
2430
+ applies: 'agent';
2431
+ }>;
2217
2432
  } | {
2218
2433
  type: 'ref';
2219
2434
  name?: string;
2435
+ workerVars?: Array<{
2436
+ name: string;
2437
+ source: 'inherit';
2438
+ from: string;
2439
+ secret: boolean;
2440
+ optional: boolean;
2441
+ default?: string;
2442
+ mcp?: string;
2443
+ applies: 'agent';
2444
+ }>;
2220
2445
  disabled?: boolean;
2221
2446
  codemode?: boolean;
2222
2447
  timeout?: {
@@ -2247,34 +2472,21 @@ export type PutApiStepDefinitionsData = {
2247
2472
  command: Array<string>;
2248
2473
  expectExitCode?: number;
2249
2474
  }> | null;
2250
- envJson?: Array<{
2251
- name: string;
2252
- source: 'value';
2253
- value: string;
2254
- secret: boolean;
2255
- applies?: 'agent' | 'setup' | 'both';
2256
- } | {
2257
- name: string;
2258
- source: 'inherit';
2259
- from: string;
2260
- secret: boolean;
2261
- optional: boolean;
2262
- default?: string;
2263
- mcp?: string;
2264
- applies?: 'agent' | 'setup' | 'both';
2265
- }> | null;
2266
- devcontainerConfigPath?: string | null;
2267
- managedRuntime?: 'bun1' | 'node24' | null;
2268
2475
  repo?: {
2269
- mode: 'none';
2270
- } | {
2271
2476
  mode: 'readOnly';
2272
2477
  gitCredentials?: 'auto' | 'none';
2478
+ baseBranch?: string | null;
2273
2479
  } | {
2274
2480
  mode: 'readWrite';
2275
2481
  message?: string | null;
2276
2482
  onPushFailure?: 'fail' | 'warn';
2277
2483
  gitCredentials?: 'auto' | 'none';
2484
+ baseBranch?: string | null;
2485
+ workBranch?: {
2486
+ kind: 'create';
2487
+ } | {
2488
+ kind: 'base';
2489
+ };
2278
2490
  };
2279
2491
  status: 'draft' | 'active' | 'archived';
2280
2492
  };
@@ -2396,7 +2608,43 @@ export type PutApiStepDefinitionsResponses = {
2396
2608
  entrypointJson: {
2397
2609
  sourceFile: string;
2398
2610
  } | null;
2399
- executionMode: 'workspace' | 'no_workspace';
2611
+ environment: {
2612
+ kind: 'named';
2613
+ name: string;
2614
+ } | {
2615
+ kind: 'inline';
2616
+ runtime?: {
2617
+ kind: 'devcontainer';
2618
+ config?: string;
2619
+ } | {
2620
+ kind: 'managed';
2621
+ id: 'bun1' | 'node24';
2622
+ } | {
2623
+ kind: 'host';
2624
+ };
2625
+ envJson?: Array<{
2626
+ name: string;
2627
+ source: 'value';
2628
+ value: string;
2629
+ secret: boolean;
2630
+ applies: 'agent' | 'setup' | 'both';
2631
+ } | {
2632
+ name: string;
2633
+ source: 'inherit';
2634
+ from: string;
2635
+ secret: boolean;
2636
+ optional: boolean;
2637
+ default?: string;
2638
+ mcp?: string;
2639
+ applies: 'agent' | 'setup' | 'both';
2640
+ } | {
2641
+ name: string;
2642
+ source: 'secret';
2643
+ secretName: string;
2644
+ applies: 'agent' | 'setup' | 'both';
2645
+ }> | null;
2646
+ connectors?: Array<string>;
2647
+ } | null;
2400
2648
  inputSchemaJson: {
2401
2649
  [key: string]: unknown;
2402
2650
  };
@@ -2460,6 +2708,16 @@ export type PutApiStepDefinitionsResponses = {
2460
2708
  execution?: number;
2461
2709
  };
2462
2710
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2711
+ workerVars?: Array<{
2712
+ name: string;
2713
+ source: 'inherit';
2714
+ from: string;
2715
+ secret: boolean;
2716
+ optional: boolean;
2717
+ default?: string;
2718
+ mcp?: string;
2719
+ applies: 'agent';
2720
+ }>;
2463
2721
  } | {
2464
2722
  type: 'remote';
2465
2723
  url: string;
@@ -2482,9 +2740,29 @@ export type PutApiStepDefinitionsResponses = {
2482
2740
  execution?: number;
2483
2741
  };
2484
2742
  protocol?: 'legacy' | 'auto' | '2026-07-28';
2743
+ workerVars?: Array<{
2744
+ name: string;
2745
+ source: 'inherit';
2746
+ from: string;
2747
+ secret: boolean;
2748
+ optional: boolean;
2749
+ default?: string;
2750
+ mcp?: string;
2751
+ applies: 'agent';
2752
+ }>;
2485
2753
  } | {
2486
2754
  type: 'ref';
2487
2755
  name?: string;
2756
+ workerVars?: Array<{
2757
+ name: string;
2758
+ source: 'inherit';
2759
+ from: string;
2760
+ secret: boolean;
2761
+ optional: boolean;
2762
+ default?: string;
2763
+ mcp?: string;
2764
+ applies: 'agent';
2765
+ }>;
2488
2766
  disabled?: boolean;
2489
2767
  codemode?: boolean;
2490
2768
  timeout?: {
@@ -2515,34 +2793,21 @@ export type PutApiStepDefinitionsResponses = {
2515
2793
  command: Array<string>;
2516
2794
  expectExitCode: number;
2517
2795
  }> | null;
2518
- envJson: Array<{
2519
- name: string;
2520
- source: 'value';
2521
- value: string;
2522
- secret: boolean;
2523
- applies: 'agent' | 'setup' | 'both';
2524
- } | {
2525
- name: string;
2526
- source: 'inherit';
2527
- from: string;
2528
- secret: boolean;
2529
- optional: boolean;
2530
- default?: string;
2531
- mcp?: string;
2532
- applies: 'agent' | 'setup' | 'both';
2533
- }> | null;
2534
- devcontainerConfigPath: string | null;
2535
- managedRuntime: 'bun1' | 'node24' | null;
2536
2796
  repo: {
2537
- mode: 'none';
2538
- } | {
2539
2797
  mode: 'readOnly';
2540
2798
  gitCredentials: 'auto' | 'none';
2799
+ baseBranch: string | null;
2541
2800
  } | {
2542
2801
  mode: 'readWrite';
2543
2802
  message: string | null;
2544
2803
  onPushFailure: 'fail' | 'warn';
2545
2804
  gitCredentials: 'auto' | 'none';
2805
+ baseBranch: string | null;
2806
+ workBranch: {
2807
+ kind: 'create';
2808
+ } | {
2809
+ kind: 'base';
2810
+ };
2546
2811
  };
2547
2812
  status: 'draft' | 'active' | 'archived';
2548
2813
  createdAt: string;
@@ -2672,7 +2937,43 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2672
2937
  entrypointJson: {
2673
2938
  sourceFile: string;
2674
2939
  } | null;
2675
- executionMode: 'workspace' | 'no_workspace';
2940
+ environment: {
2941
+ kind: 'named';
2942
+ name: string;
2943
+ } | {
2944
+ kind: 'inline';
2945
+ runtime?: {
2946
+ kind: 'devcontainer';
2947
+ config?: string;
2948
+ } | {
2949
+ kind: 'managed';
2950
+ id: 'bun1' | 'node24';
2951
+ } | {
2952
+ kind: 'host';
2953
+ };
2954
+ envJson?: Array<{
2955
+ name: string;
2956
+ source: 'value';
2957
+ value: string;
2958
+ secret: boolean;
2959
+ applies: 'agent' | 'setup' | 'both';
2960
+ } | {
2961
+ name: string;
2962
+ source: 'inherit';
2963
+ from: string;
2964
+ secret: boolean;
2965
+ optional: boolean;
2966
+ default?: string;
2967
+ mcp?: string;
2968
+ applies: 'agent' | 'setup' | 'both';
2969
+ } | {
2970
+ name: string;
2971
+ source: 'secret';
2972
+ secretName: string;
2973
+ applies: 'agent' | 'setup' | 'both';
2974
+ }> | null;
2975
+ connectors?: Array<string>;
2976
+ } | null;
2676
2977
  inputSchemaJson: {
2677
2978
  [key: string]: unknown;
2678
2979
  };
@@ -2736,6 +3037,16 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2736
3037
  execution?: number;
2737
3038
  };
2738
3039
  protocol?: 'legacy' | 'auto' | '2026-07-28';
3040
+ workerVars?: Array<{
3041
+ name: string;
3042
+ source: 'inherit';
3043
+ from: string;
3044
+ secret: boolean;
3045
+ optional: boolean;
3046
+ default?: string;
3047
+ mcp?: string;
3048
+ applies: 'agent';
3049
+ }>;
2739
3050
  } | {
2740
3051
  type: 'remote';
2741
3052
  url: string;
@@ -2758,9 +3069,29 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2758
3069
  execution?: number;
2759
3070
  };
2760
3071
  protocol?: 'legacy' | 'auto' | '2026-07-28';
3072
+ workerVars?: Array<{
3073
+ name: string;
3074
+ source: 'inherit';
3075
+ from: string;
3076
+ secret: boolean;
3077
+ optional: boolean;
3078
+ default?: string;
3079
+ mcp?: string;
3080
+ applies: 'agent';
3081
+ }>;
2761
3082
  } | {
2762
3083
  type: 'ref';
2763
3084
  name?: string;
3085
+ workerVars?: Array<{
3086
+ name: string;
3087
+ source: 'inherit';
3088
+ from: string;
3089
+ secret: boolean;
3090
+ optional: boolean;
3091
+ default?: string;
3092
+ mcp?: string;
3093
+ applies: 'agent';
3094
+ }>;
2764
3095
  disabled?: boolean;
2765
3096
  codemode?: boolean;
2766
3097
  timeout?: {
@@ -2791,34 +3122,21 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
2791
3122
  command: Array<string>;
2792
3123
  expectExitCode: number;
2793
3124
  }> | null;
2794
- envJson: Array<{
2795
- name: string;
2796
- source: 'value';
2797
- value: string;
2798
- secret: boolean;
2799
- applies: 'agent' | 'setup' | 'both';
2800
- } | {
2801
- name: string;
2802
- source: 'inherit';
2803
- from: string;
2804
- secret: boolean;
2805
- optional: boolean;
2806
- default?: string;
2807
- mcp?: string;
2808
- applies: 'agent' | 'setup' | 'both';
2809
- }> | null;
2810
- devcontainerConfigPath: string | null;
2811
- managedRuntime: 'bun1' | 'node24' | null;
2812
3125
  repo: {
2813
- mode: 'none';
2814
- } | {
2815
3126
  mode: 'readOnly';
2816
3127
  gitCredentials: 'auto' | 'none';
3128
+ baseBranch: string | null;
2817
3129
  } | {
2818
3130
  mode: 'readWrite';
2819
3131
  message: string | null;
2820
3132
  onPushFailure: 'fail' | 'warn';
2821
3133
  gitCredentials: 'auto' | 'none';
3134
+ baseBranch: string | null;
3135
+ workBranch: {
3136
+ kind: 'create';
3137
+ } | {
3138
+ kind: 'base';
3139
+ };
2822
3140
  };
2823
3141
  status: 'draft' | 'active' | 'archived';
2824
3142
  createdAt: string;
@@ -2948,26 +3266,62 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
2948
3266
  entrypointJson: {
2949
3267
  sourceFile: string;
2950
3268
  } | null;
2951
- executionMode: 'workspace' | 'no_workspace';
2952
- inputSchemaJson: {
2953
- [key: string]: unknown;
2954
- };
2955
- resultSchemaJson: {
2956
- [key: string]: unknown;
2957
- } | null;
2958
- errors: Array<string>;
2959
- retry: Array<{
2960
- on: Array<string>;
2961
- maxAttempts: number;
2962
- }>;
2963
- grants: Array<{
2964
- resource: 'workItem';
2965
- action: 'read';
2966
- scope: 'self' | 'children' | 'project';
2967
- } | {
2968
- resource: 'workItem';
2969
- action: 'update';
2970
- scope: 'self' | 'children';
3269
+ environment: {
3270
+ kind: 'named';
3271
+ name: string;
3272
+ } | {
3273
+ kind: 'inline';
3274
+ runtime?: {
3275
+ kind: 'devcontainer';
3276
+ config?: string;
3277
+ } | {
3278
+ kind: 'managed';
3279
+ id: 'bun1' | 'node24';
3280
+ } | {
3281
+ kind: 'host';
3282
+ };
3283
+ envJson?: Array<{
3284
+ name: string;
3285
+ source: 'value';
3286
+ value: string;
3287
+ secret: boolean;
3288
+ applies: 'agent' | 'setup' | 'both';
3289
+ } | {
3290
+ name: string;
3291
+ source: 'inherit';
3292
+ from: string;
3293
+ secret: boolean;
3294
+ optional: boolean;
3295
+ default?: string;
3296
+ mcp?: string;
3297
+ applies: 'agent' | 'setup' | 'both';
3298
+ } | {
3299
+ name: string;
3300
+ source: 'secret';
3301
+ secretName: string;
3302
+ applies: 'agent' | 'setup' | 'both';
3303
+ }> | null;
3304
+ connectors?: Array<string>;
3305
+ } | null;
3306
+ inputSchemaJson: {
3307
+ [key: string]: unknown;
3308
+ };
3309
+ resultSchemaJson: {
3310
+ [key: string]: unknown;
3311
+ } | null;
3312
+ errors: Array<string>;
3313
+ retry: Array<{
3314
+ on: Array<string>;
3315
+ maxAttempts: number;
3316
+ }>;
3317
+ grants: Array<{
3318
+ resource: 'workItem';
3319
+ action: 'read';
3320
+ scope: 'self' | 'children' | 'project';
3321
+ } | {
3322
+ resource: 'workItem';
3323
+ action: 'update';
3324
+ scope: 'self' | 'children';
2971
3325
  } | {
2972
3326
  resource: 'workItem';
2973
3327
  action: 'comment';
@@ -3012,6 +3366,16 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
3012
3366
  execution?: number;
3013
3367
  };
3014
3368
  protocol?: 'legacy' | 'auto' | '2026-07-28';
3369
+ workerVars?: Array<{
3370
+ name: string;
3371
+ source: 'inherit';
3372
+ from: string;
3373
+ secret: boolean;
3374
+ optional: boolean;
3375
+ default?: string;
3376
+ mcp?: string;
3377
+ applies: 'agent';
3378
+ }>;
3015
3379
  } | {
3016
3380
  type: 'remote';
3017
3381
  url: string;
@@ -3034,9 +3398,29 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
3034
3398
  execution?: number;
3035
3399
  };
3036
3400
  protocol?: 'legacy' | 'auto' | '2026-07-28';
3401
+ workerVars?: Array<{
3402
+ name: string;
3403
+ source: 'inherit';
3404
+ from: string;
3405
+ secret: boolean;
3406
+ optional: boolean;
3407
+ default?: string;
3408
+ mcp?: string;
3409
+ applies: 'agent';
3410
+ }>;
3037
3411
  } | {
3038
3412
  type: 'ref';
3039
3413
  name?: string;
3414
+ workerVars?: Array<{
3415
+ name: string;
3416
+ source: 'inherit';
3417
+ from: string;
3418
+ secret: boolean;
3419
+ optional: boolean;
3420
+ default?: string;
3421
+ mcp?: string;
3422
+ applies: 'agent';
3423
+ }>;
3040
3424
  disabled?: boolean;
3041
3425
  codemode?: boolean;
3042
3426
  timeout?: {
@@ -3067,34 +3451,21 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
3067
3451
  command: Array<string>;
3068
3452
  expectExitCode: number;
3069
3453
  }> | null;
3070
- envJson: Array<{
3071
- name: string;
3072
- source: 'value';
3073
- value: string;
3074
- secret: boolean;
3075
- applies: 'agent' | 'setup' | 'both';
3076
- } | {
3077
- name: string;
3078
- source: 'inherit';
3079
- from: string;
3080
- secret: boolean;
3081
- optional: boolean;
3082
- default?: string;
3083
- mcp?: string;
3084
- applies: 'agent' | 'setup' | 'both';
3085
- }> | null;
3086
- devcontainerConfigPath: string | null;
3087
- managedRuntime: 'bun1' | 'node24' | null;
3088
3454
  repo: {
3089
- mode: 'none';
3090
- } | {
3091
3455
  mode: 'readOnly';
3092
3456
  gitCredentials: 'auto' | 'none';
3457
+ baseBranch: string | null;
3093
3458
  } | {
3094
3459
  mode: 'readWrite';
3095
3460
  message: string | null;
3096
3461
  onPushFailure: 'fail' | 'warn';
3097
3462
  gitCredentials: 'auto' | 'none';
3463
+ baseBranch: string | null;
3464
+ workBranch: {
3465
+ kind: 'create';
3466
+ } | {
3467
+ kind: 'base';
3468
+ };
3098
3469
  };
3099
3470
  status: 'draft' | 'active' | 'archived';
3100
3471
  createdAt: string;
@@ -3108,6 +3479,17 @@ export type PostApiTasksData = {
3108
3479
  workItemId: string;
3109
3480
  inputJson?: unknown | null;
3110
3481
  executionTimeoutSeconds?: number | null;
3482
+ environment?: {
3483
+ name?: string;
3484
+ extraConnectors?: Array<{
3485
+ connectorId: string;
3486
+ vars?: {
3487
+ [key: string]: {
3488
+ secret: string;
3489
+ };
3490
+ };
3491
+ }>;
3492
+ };
3111
3493
  stepDefinitionId: string;
3112
3494
  stepDefinitionVersion: number;
3113
3495
  } | {
@@ -3115,7 +3497,19 @@ export type PostApiTasksData = {
3115
3497
  workItemId: string;
3116
3498
  inputJson?: unknown | null;
3117
3499
  executionTimeoutSeconds?: number | null;
3500
+ environment?: {
3501
+ name?: string;
3502
+ extraConnectors?: Array<{
3503
+ connectorId: string;
3504
+ vars?: {
3505
+ [key: string]: {
3506
+ secret: string;
3507
+ };
3508
+ };
3509
+ }>;
3510
+ };
3118
3511
  prompt: string;
3512
+ repoWrite?: boolean;
3119
3513
  };
3120
3514
  path?: never;
3121
3515
  query?: never;
@@ -3270,6 +3664,16 @@ export type PostApiTasksResponses = {
3270
3664
  kind: 'agent' | 'code';
3271
3665
  name: string | null;
3272
3666
  taskExecutionConfigId: string | null;
3667
+ environmentSelection: {
3668
+ extraConnectors: Array<{
3669
+ connectorId: string;
3670
+ vars: {
3671
+ [key: string]: {
3672
+ secret: string;
3673
+ };
3674
+ };
3675
+ }>;
3676
+ } | null;
3273
3677
  inputJson: unknown | null;
3274
3678
  retryJson: unknown | null;
3275
3679
  grants: Array<{
@@ -3719,6 +4123,16 @@ export type GetApiTasksByTaskIdResponses = {
3719
4123
  kind: 'agent' | 'code';
3720
4124
  name: string | null;
3721
4125
  taskExecutionConfigId: string | null;
4126
+ environmentSelection: {
4127
+ extraConnectors: Array<{
4128
+ connectorId: string;
4129
+ vars: {
4130
+ [key: string]: {
4131
+ secret: string;
4132
+ };
4133
+ };
4134
+ }>;
4135
+ } | null;
3722
4136
  inputJson: unknown | null;
3723
4137
  retryJson: unknown | null;
3724
4138
  grants: Array<{
@@ -4829,36 +5243,98 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
4829
5243
  }>;
4830
5244
  };
4831
5245
  runtime: {
4832
- executionMode: 'workspace' | 'no_workspace';
4833
- devcontainerConfigPath: string | null;
4834
- managedRuntime: 'bun1' | 'node24' | null;
4835
- repo: {
4836
- mode: 'none';
5246
+ environment: {
5247
+ kind: 'inline';
5248
+ runtime?: {
5249
+ kind: 'devcontainer';
5250
+ config?: string;
5251
+ } | {
5252
+ kind: 'managed';
5253
+ id: 'bun1' | 'node24';
5254
+ } | {
5255
+ kind: 'host';
5256
+ };
5257
+ envJson?: Array<{
5258
+ name: string;
5259
+ source: 'value';
5260
+ value: string;
5261
+ secret: boolean;
5262
+ applies: 'agent' | 'setup' | 'both';
5263
+ } | {
5264
+ name: string;
5265
+ source: 'inherit';
5266
+ from: string;
5267
+ secret: boolean;
5268
+ optional: boolean;
5269
+ default?: string;
5270
+ mcp?: string;
5271
+ applies: 'agent' | 'setup' | 'both';
5272
+ } | {
5273
+ name: string;
5274
+ source: 'secret';
5275
+ secretName: string;
5276
+ applies: 'agent' | 'setup' | 'both';
5277
+ }> | null;
5278
+ connectors?: Array<string>;
5279
+ } | {
5280
+ kind: 'named';
5281
+ name: string;
5282
+ version: number;
5283
+ content: {
5284
+ runtime?: {
5285
+ kind: 'devcontainer';
5286
+ config?: string;
5287
+ } | {
5288
+ kind: 'managed';
5289
+ id: 'bun1' | 'node24';
5290
+ } | {
5291
+ kind: 'host';
5292
+ };
5293
+ vars?: Array<{
5294
+ name: string;
5295
+ source: 'value';
5296
+ value: string;
5297
+ secret: boolean;
5298
+ applies: 'agent' | 'setup' | 'both';
5299
+ } | {
5300
+ name: string;
5301
+ source: 'inherit';
5302
+ from: string;
5303
+ secret: boolean;
5304
+ optional: boolean;
5305
+ default?: string;
5306
+ mcp?: string;
5307
+ applies: 'agent' | 'setup' | 'both';
5308
+ } | {
5309
+ name: string;
5310
+ source: 'secret';
5311
+ secretName: string;
5312
+ applies: 'agent' | 'setup' | 'both';
5313
+ }>;
5314
+ connectors?: Array<string>;
5315
+ description?: string;
5316
+ };
4837
5317
  } | {
5318
+ kind: 'named';
5319
+ name: string;
5320
+ notFound: true;
5321
+ } | null;
5322
+ repo: {
4838
5323
  mode: 'readOnly';
4839
5324
  gitCredentials: 'auto' | 'none';
5325
+ baseBranch: string | null;
4840
5326
  } | {
4841
5327
  mode: 'readWrite';
4842
5328
  message: string | null;
4843
5329
  onPushFailure: 'fail' | 'warn';
4844
5330
  gitCredentials: 'auto' | 'none';
5331
+ baseBranch: string | null;
5332
+ workBranch: {
5333
+ kind: 'create';
5334
+ } | {
5335
+ kind: 'base';
5336
+ };
4845
5337
  };
4846
- envJson: Array<{
4847
- name: string;
4848
- source: 'value';
4849
- value: string;
4850
- secret: boolean;
4851
- applies: 'agent' | 'setup' | 'both';
4852
- } | {
4853
- name: string;
4854
- source: 'inherit';
4855
- from: string;
4856
- secret: boolean;
4857
- optional: boolean;
4858
- default?: string;
4859
- mcp?: string;
4860
- applies: 'agent' | 'setup' | 'both';
4861
- }> | null;
4862
5338
  healthChecksJson: Array<{
4863
5339
  name?: string;
4864
5340
  severity: 'required' | 'warn';
@@ -4895,6 +5371,16 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
4895
5371
  execution?: number;
4896
5372
  };
4897
5373
  protocol?: 'legacy' | 'auto' | '2026-07-28';
5374
+ workerVars?: Array<{
5375
+ name: string;
5376
+ source: 'inherit';
5377
+ from: string;
5378
+ secret: boolean;
5379
+ optional: boolean;
5380
+ default?: string;
5381
+ mcp?: string;
5382
+ applies: 'agent';
5383
+ }>;
4898
5384
  } | {
4899
5385
  type: 'remote';
4900
5386
  url: string;
@@ -4917,9 +5403,29 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
4917
5403
  execution?: number;
4918
5404
  };
4919
5405
  protocol?: 'legacy' | 'auto' | '2026-07-28';
5406
+ workerVars?: Array<{
5407
+ name: string;
5408
+ source: 'inherit';
5409
+ from: string;
5410
+ secret: boolean;
5411
+ optional: boolean;
5412
+ default?: string;
5413
+ mcp?: string;
5414
+ applies: 'agent';
5415
+ }>;
4920
5416
  } | {
4921
5417
  type: 'ref';
4922
5418
  name?: string;
5419
+ workerVars?: Array<{
5420
+ name: string;
5421
+ source: 'inherit';
5422
+ from: string;
5423
+ secret: boolean;
5424
+ optional: boolean;
5425
+ default?: string;
5426
+ mcp?: string;
5427
+ applies: 'agent';
5428
+ }>;
4923
5429
  disabled?: boolean;
4924
5430
  codemode?: boolean;
4925
5431
  timeout?: {
@@ -4930,6 +5436,14 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
4930
5436
  protocol?: 'legacy' | 'auto' | '2026-07-28';
4931
5437
  };
4932
5438
  } | null;
5439
+ extraConnectors: Array<{
5440
+ connectorId: string;
5441
+ vars: {
5442
+ [key: string]: {
5443
+ secret: string;
5444
+ };
5445
+ };
5446
+ }>;
4933
5447
  };
4934
5448
  agentPrompt: {
4935
5449
  sessionTitle: string;
@@ -23916,3 +24430,1443 @@ export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses = {
23916
24430
  };
23917
24431
  };
23918
24432
  export type DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponse = DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses[keyof DeleteApiMeSecretsBySecretIdUsesByIntegrationIdResponses];
24433
+ export type GetApiProjectsByProjectIdSecretsData = {
24434
+ body?: never;
24435
+ path: {
24436
+ projectId: string;
24437
+ };
24438
+ query?: never;
24439
+ url: '/api/projects/{projectId}/secrets';
24440
+ };
24441
+ export type GetApiProjectsByProjectIdSecretsErrors = {
24442
+ /**
24443
+ * Response for status 401
24444
+ */
24445
+ 401: {
24446
+ type: string;
24447
+ title: string;
24448
+ status: number;
24449
+ detail?: string;
24450
+ instance?: string;
24451
+ code?: string;
24452
+ errors?: Array<{
24453
+ path: string;
24454
+ message: string;
24455
+ summary?: string;
24456
+ }>;
24457
+ meta?: {
24458
+ [key: string]: unknown;
24459
+ };
24460
+ };
24461
+ /**
24462
+ * Response for status 403
24463
+ */
24464
+ 403: {
24465
+ type: string;
24466
+ title: string;
24467
+ status: number;
24468
+ detail?: string;
24469
+ instance?: string;
24470
+ code?: string;
24471
+ errors?: Array<{
24472
+ path: string;
24473
+ message: string;
24474
+ summary?: string;
24475
+ }>;
24476
+ meta?: {
24477
+ [key: string]: unknown;
24478
+ };
24479
+ };
24480
+ /**
24481
+ * Response for status 404
24482
+ */
24483
+ 404: {
24484
+ type: string;
24485
+ title: string;
24486
+ status: number;
24487
+ detail?: string;
24488
+ instance?: string;
24489
+ code?: string;
24490
+ errors?: Array<{
24491
+ path: string;
24492
+ message: string;
24493
+ summary?: string;
24494
+ }>;
24495
+ meta?: {
24496
+ [key: string]: unknown;
24497
+ };
24498
+ };
24499
+ /**
24500
+ * Response for status 422
24501
+ */
24502
+ 422: {
24503
+ type: string;
24504
+ title: string;
24505
+ status: number;
24506
+ detail?: string;
24507
+ instance?: string;
24508
+ code?: string;
24509
+ errors?: Array<{
24510
+ path: string;
24511
+ message: string;
24512
+ summary?: string;
24513
+ }>;
24514
+ meta?: {
24515
+ [key: string]: unknown;
24516
+ };
24517
+ };
24518
+ /**
24519
+ * Response for status 500
24520
+ */
24521
+ 500: {
24522
+ type: string;
24523
+ title: string;
24524
+ status: number;
24525
+ detail?: string;
24526
+ instance?: string;
24527
+ code?: string;
24528
+ errors?: Array<{
24529
+ path: string;
24530
+ message: string;
24531
+ summary?: string;
24532
+ }>;
24533
+ meta?: {
24534
+ [key: string]: unknown;
24535
+ };
24536
+ };
24537
+ };
24538
+ export type GetApiProjectsByProjectIdSecretsError = GetApiProjectsByProjectIdSecretsErrors[keyof GetApiProjectsByProjectIdSecretsErrors];
24539
+ export type GetApiProjectsByProjectIdSecretsResponses = {
24540
+ /**
24541
+ * Response for status 200
24542
+ */
24543
+ 200: Array<{
24544
+ id: string;
24545
+ projectId: string;
24546
+ name: string;
24547
+ lastFour: string;
24548
+ updatedBy: {
24549
+ userId: string;
24550
+ username: string | null;
24551
+ } | null;
24552
+ lastUsedAt: string | null;
24553
+ createdAt: string;
24554
+ updatedAt: string;
24555
+ }>;
24556
+ };
24557
+ export type GetApiProjectsByProjectIdSecretsResponse = GetApiProjectsByProjectIdSecretsResponses[keyof GetApiProjectsByProjectIdSecretsResponses];
24558
+ export type PostApiProjectsByProjectIdSecretsData = {
24559
+ body: {
24560
+ name: string;
24561
+ value: string;
24562
+ };
24563
+ path: {
24564
+ projectId: string;
24565
+ };
24566
+ query?: never;
24567
+ url: '/api/projects/{projectId}/secrets';
24568
+ };
24569
+ export type PostApiProjectsByProjectIdSecretsErrors = {
24570
+ /**
24571
+ * Response for status 401
24572
+ */
24573
+ 401: {
24574
+ type: string;
24575
+ title: string;
24576
+ status: number;
24577
+ detail?: string;
24578
+ instance?: string;
24579
+ code?: string;
24580
+ errors?: Array<{
24581
+ path: string;
24582
+ message: string;
24583
+ summary?: string;
24584
+ }>;
24585
+ meta?: {
24586
+ [key: string]: unknown;
24587
+ };
24588
+ };
24589
+ /**
24590
+ * Response for status 403
24591
+ */
24592
+ 403: {
24593
+ type: string;
24594
+ title: string;
24595
+ status: number;
24596
+ detail?: string;
24597
+ instance?: string;
24598
+ code?: string;
24599
+ errors?: Array<{
24600
+ path: string;
24601
+ message: string;
24602
+ summary?: string;
24603
+ }>;
24604
+ meta?: {
24605
+ [key: string]: unknown;
24606
+ };
24607
+ };
24608
+ /**
24609
+ * Response for status 404
24610
+ */
24611
+ 404: {
24612
+ type: string;
24613
+ title: string;
24614
+ status: number;
24615
+ detail?: string;
24616
+ instance?: string;
24617
+ code?: string;
24618
+ errors?: Array<{
24619
+ path: string;
24620
+ message: string;
24621
+ summary?: string;
24622
+ }>;
24623
+ meta?: {
24624
+ [key: string]: unknown;
24625
+ };
24626
+ };
24627
+ /**
24628
+ * Response for status 409
24629
+ */
24630
+ 409: {
24631
+ type: string;
24632
+ title: string;
24633
+ status: number;
24634
+ detail?: string;
24635
+ instance?: string;
24636
+ code?: string;
24637
+ errors?: Array<{
24638
+ path: string;
24639
+ message: string;
24640
+ summary?: string;
24641
+ }>;
24642
+ meta?: {
24643
+ [key: string]: unknown;
24644
+ };
24645
+ };
24646
+ /**
24647
+ * Response for status 422
24648
+ */
24649
+ 422: {
24650
+ type: string;
24651
+ title: string;
24652
+ status: number;
24653
+ detail?: string;
24654
+ instance?: string;
24655
+ code?: string;
24656
+ errors?: Array<{
24657
+ path: string;
24658
+ message: string;
24659
+ summary?: string;
24660
+ }>;
24661
+ meta?: {
24662
+ [key: string]: unknown;
24663
+ };
24664
+ };
24665
+ /**
24666
+ * Response for status 500
24667
+ */
24668
+ 500: {
24669
+ type: string;
24670
+ title: string;
24671
+ status: number;
24672
+ detail?: string;
24673
+ instance?: string;
24674
+ code?: string;
24675
+ errors?: Array<{
24676
+ path: string;
24677
+ message: string;
24678
+ summary?: string;
24679
+ }>;
24680
+ meta?: {
24681
+ [key: string]: unknown;
24682
+ };
24683
+ };
24684
+ };
24685
+ export type PostApiProjectsByProjectIdSecretsError = PostApiProjectsByProjectIdSecretsErrors[keyof PostApiProjectsByProjectIdSecretsErrors];
24686
+ export type PostApiProjectsByProjectIdSecretsResponses = {
24687
+ /**
24688
+ * Response for status 201
24689
+ */
24690
+ 201: {
24691
+ id: string;
24692
+ projectId: string;
24693
+ name: string;
24694
+ lastFour: string;
24695
+ updatedBy: {
24696
+ userId: string;
24697
+ username: string | null;
24698
+ } | null;
24699
+ lastUsedAt: string | null;
24700
+ createdAt: string;
24701
+ updatedAt: string;
24702
+ };
24703
+ };
24704
+ export type PostApiProjectsByProjectIdSecretsResponse = PostApiProjectsByProjectIdSecretsResponses[keyof PostApiProjectsByProjectIdSecretsResponses];
24705
+ export type DeleteApiProjectsByProjectIdSecretsBySecretIdData = {
24706
+ body?: never;
24707
+ path: {
24708
+ projectId: string;
24709
+ secretId: string;
24710
+ };
24711
+ query?: never;
24712
+ url: '/api/projects/{projectId}/secrets/{secretId}';
24713
+ };
24714
+ export type DeleteApiProjectsByProjectIdSecretsBySecretIdErrors = {
24715
+ /**
24716
+ * Response for status 401
24717
+ */
24718
+ 401: {
24719
+ type: string;
24720
+ title: string;
24721
+ status: number;
24722
+ detail?: string;
24723
+ instance?: string;
24724
+ code?: string;
24725
+ errors?: Array<{
24726
+ path: string;
24727
+ message: string;
24728
+ summary?: string;
24729
+ }>;
24730
+ meta?: {
24731
+ [key: string]: unknown;
24732
+ };
24733
+ };
24734
+ /**
24735
+ * Response for status 403
24736
+ */
24737
+ 403: {
24738
+ type: string;
24739
+ title: string;
24740
+ status: number;
24741
+ detail?: string;
24742
+ instance?: string;
24743
+ code?: string;
24744
+ errors?: Array<{
24745
+ path: string;
24746
+ message: string;
24747
+ summary?: string;
24748
+ }>;
24749
+ meta?: {
24750
+ [key: string]: unknown;
24751
+ };
24752
+ };
24753
+ /**
24754
+ * Response for status 404
24755
+ */
24756
+ 404: {
24757
+ type: string;
24758
+ title: string;
24759
+ status: number;
24760
+ detail?: string;
24761
+ instance?: string;
24762
+ code?: string;
24763
+ errors?: Array<{
24764
+ path: string;
24765
+ message: string;
24766
+ summary?: string;
24767
+ }>;
24768
+ meta?: {
24769
+ [key: string]: unknown;
24770
+ };
24771
+ };
24772
+ /**
24773
+ * Response for status 422
24774
+ */
24775
+ 422: {
24776
+ type: string;
24777
+ title: string;
24778
+ status: number;
24779
+ detail?: string;
24780
+ instance?: string;
24781
+ code?: string;
24782
+ errors?: Array<{
24783
+ path: string;
24784
+ message: string;
24785
+ summary?: string;
24786
+ }>;
24787
+ meta?: {
24788
+ [key: string]: unknown;
24789
+ };
24790
+ };
24791
+ /**
24792
+ * Response for status 500
24793
+ */
24794
+ 500: {
24795
+ type: string;
24796
+ title: string;
24797
+ status: number;
24798
+ detail?: string;
24799
+ instance?: string;
24800
+ code?: string;
24801
+ errors?: Array<{
24802
+ path: string;
24803
+ message: string;
24804
+ summary?: string;
24805
+ }>;
24806
+ meta?: {
24807
+ [key: string]: unknown;
24808
+ };
24809
+ };
24810
+ };
24811
+ export type DeleteApiProjectsByProjectIdSecretsBySecretIdError = DeleteApiProjectsByProjectIdSecretsBySecretIdErrors[keyof DeleteApiProjectsByProjectIdSecretsBySecretIdErrors];
24812
+ export type DeleteApiProjectsByProjectIdSecretsBySecretIdResponses = {
24813
+ /**
24814
+ * Response for status 200
24815
+ */
24816
+ 200: {
24817
+ deleted: true;
24818
+ };
24819
+ };
24820
+ export type DeleteApiProjectsByProjectIdSecretsBySecretIdResponse = DeleteApiProjectsByProjectIdSecretsBySecretIdResponses[keyof DeleteApiProjectsByProjectIdSecretsBySecretIdResponses];
24821
+ export type PatchApiProjectsByProjectIdSecretsBySecretIdData = {
24822
+ body: {
24823
+ name?: string;
24824
+ value?: string;
24825
+ };
24826
+ path: {
24827
+ projectId: string;
24828
+ secretId: string;
24829
+ };
24830
+ query?: never;
24831
+ url: '/api/projects/{projectId}/secrets/{secretId}';
24832
+ };
24833
+ export type PatchApiProjectsByProjectIdSecretsBySecretIdErrors = {
24834
+ /**
24835
+ * Response for status 401
24836
+ */
24837
+ 401: {
24838
+ type: string;
24839
+ title: string;
24840
+ status: number;
24841
+ detail?: string;
24842
+ instance?: string;
24843
+ code?: string;
24844
+ errors?: Array<{
24845
+ path: string;
24846
+ message: string;
24847
+ summary?: string;
24848
+ }>;
24849
+ meta?: {
24850
+ [key: string]: unknown;
24851
+ };
24852
+ };
24853
+ /**
24854
+ * Response for status 403
24855
+ */
24856
+ 403: {
24857
+ type: string;
24858
+ title: string;
24859
+ status: number;
24860
+ detail?: string;
24861
+ instance?: string;
24862
+ code?: string;
24863
+ errors?: Array<{
24864
+ path: string;
24865
+ message: string;
24866
+ summary?: string;
24867
+ }>;
24868
+ meta?: {
24869
+ [key: string]: unknown;
24870
+ };
24871
+ };
24872
+ /**
24873
+ * Response for status 404
24874
+ */
24875
+ 404: {
24876
+ type: string;
24877
+ title: string;
24878
+ status: number;
24879
+ detail?: string;
24880
+ instance?: string;
24881
+ code?: string;
24882
+ errors?: Array<{
24883
+ path: string;
24884
+ message: string;
24885
+ summary?: string;
24886
+ }>;
24887
+ meta?: {
24888
+ [key: string]: unknown;
24889
+ };
24890
+ };
24891
+ /**
24892
+ * Response for status 409
24893
+ */
24894
+ 409: {
24895
+ type: string;
24896
+ title: string;
24897
+ status: number;
24898
+ detail?: string;
24899
+ instance?: string;
24900
+ code?: string;
24901
+ errors?: Array<{
24902
+ path: string;
24903
+ message: string;
24904
+ summary?: string;
24905
+ }>;
24906
+ meta?: {
24907
+ [key: string]: unknown;
24908
+ };
24909
+ };
24910
+ /**
24911
+ * Response for status 422
24912
+ */
24913
+ 422: {
24914
+ type: string;
24915
+ title: string;
24916
+ status: number;
24917
+ detail?: string;
24918
+ instance?: string;
24919
+ code?: string;
24920
+ errors?: Array<{
24921
+ path: string;
24922
+ message: string;
24923
+ summary?: string;
24924
+ }>;
24925
+ meta?: {
24926
+ [key: string]: unknown;
24927
+ };
24928
+ };
24929
+ /**
24930
+ * Response for status 500
24931
+ */
24932
+ 500: {
24933
+ type: string;
24934
+ title: string;
24935
+ status: number;
24936
+ detail?: string;
24937
+ instance?: string;
24938
+ code?: string;
24939
+ errors?: Array<{
24940
+ path: string;
24941
+ message: string;
24942
+ summary?: string;
24943
+ }>;
24944
+ meta?: {
24945
+ [key: string]: unknown;
24946
+ };
24947
+ };
24948
+ };
24949
+ export type PatchApiProjectsByProjectIdSecretsBySecretIdError = PatchApiProjectsByProjectIdSecretsBySecretIdErrors[keyof PatchApiProjectsByProjectIdSecretsBySecretIdErrors];
24950
+ export type PatchApiProjectsByProjectIdSecretsBySecretIdResponses = {
24951
+ /**
24952
+ * Response for status 200
24953
+ */
24954
+ 200: {
24955
+ id: string;
24956
+ projectId: string;
24957
+ name: string;
24958
+ lastFour: string;
24959
+ updatedBy: {
24960
+ userId: string;
24961
+ username: string | null;
24962
+ } | null;
24963
+ lastUsedAt: string | null;
24964
+ createdAt: string;
24965
+ updatedAt: string;
24966
+ };
24967
+ };
24968
+ export type PatchApiProjectsByProjectIdSecretsBySecretIdResponse = PatchApiProjectsByProjectIdSecretsBySecretIdResponses[keyof PatchApiProjectsByProjectIdSecretsBySecretIdResponses];
24969
+ export type GetApiProjectsByProjectIdEnvironmentsData = {
24970
+ body?: never;
24971
+ path: {
24972
+ projectId: string;
24973
+ };
24974
+ query?: never;
24975
+ url: '/api/projects/{projectId}/environments';
24976
+ };
24977
+ export type GetApiProjectsByProjectIdEnvironmentsErrors = {
24978
+ /**
24979
+ * Response for status 401
24980
+ */
24981
+ 401: {
24982
+ type: string;
24983
+ title: string;
24984
+ status: number;
24985
+ detail?: string;
24986
+ instance?: string;
24987
+ code?: string;
24988
+ errors?: Array<{
24989
+ path: string;
24990
+ message: string;
24991
+ summary?: string;
24992
+ }>;
24993
+ meta?: {
24994
+ [key: string]: unknown;
24995
+ };
24996
+ };
24997
+ /**
24998
+ * Response for status 403
24999
+ */
25000
+ 403: {
25001
+ type: string;
25002
+ title: string;
25003
+ status: number;
25004
+ detail?: string;
25005
+ instance?: string;
25006
+ code?: string;
25007
+ errors?: Array<{
25008
+ path: string;
25009
+ message: string;
25010
+ summary?: string;
25011
+ }>;
25012
+ meta?: {
25013
+ [key: string]: unknown;
25014
+ };
25015
+ };
25016
+ /**
25017
+ * Response for status 404
25018
+ */
25019
+ 404: {
25020
+ type: string;
25021
+ title: string;
25022
+ status: number;
25023
+ detail?: string;
25024
+ instance?: string;
25025
+ code?: string;
25026
+ errors?: Array<{
25027
+ path: string;
25028
+ message: string;
25029
+ summary?: string;
25030
+ }>;
25031
+ meta?: {
25032
+ [key: string]: unknown;
25033
+ };
25034
+ };
25035
+ /**
25036
+ * Response for status 422
25037
+ */
25038
+ 422: {
25039
+ type: string;
25040
+ title: string;
25041
+ status: number;
25042
+ detail?: string;
25043
+ instance?: string;
25044
+ code?: string;
25045
+ errors?: Array<{
25046
+ path: string;
25047
+ message: string;
25048
+ summary?: string;
25049
+ }>;
25050
+ meta?: {
25051
+ [key: string]: unknown;
25052
+ };
25053
+ };
25054
+ /**
25055
+ * Response for status 500
25056
+ */
25057
+ 500: {
25058
+ type: string;
25059
+ title: string;
25060
+ status: number;
25061
+ detail?: string;
25062
+ instance?: string;
25063
+ code?: string;
25064
+ errors?: Array<{
25065
+ path: string;
25066
+ message: string;
25067
+ summary?: string;
25068
+ }>;
25069
+ meta?: {
25070
+ [key: string]: unknown;
25071
+ };
25072
+ };
25073
+ };
25074
+ export type GetApiProjectsByProjectIdEnvironmentsError = GetApiProjectsByProjectIdEnvironmentsErrors[keyof GetApiProjectsByProjectIdEnvironmentsErrors];
25075
+ export type GetApiProjectsByProjectIdEnvironmentsResponses = {
25076
+ /**
25077
+ * Response for status 200
25078
+ */
25079
+ 200: Array<{
25080
+ id: string;
25081
+ projectId: string;
25082
+ name: string;
25083
+ description: string | null;
25084
+ latestVersion: number;
25085
+ updatedBy: {
25086
+ userId: string;
25087
+ username: string | null;
25088
+ };
25089
+ updatedAt: string;
25090
+ }>;
25091
+ };
25092
+ export type GetApiProjectsByProjectIdEnvironmentsResponse = GetApiProjectsByProjectIdEnvironmentsResponses[keyof GetApiProjectsByProjectIdEnvironmentsResponses];
25093
+ export type DeleteApiProjectsByProjectIdEnvironmentsByNameData = {
25094
+ body?: never;
25095
+ path: {
25096
+ projectId: string;
25097
+ name: string;
25098
+ };
25099
+ query?: never;
25100
+ url: '/api/projects/{projectId}/environments/{name}';
25101
+ };
25102
+ export type DeleteApiProjectsByProjectIdEnvironmentsByNameErrors = {
25103
+ /**
25104
+ * Response for status 401
25105
+ */
25106
+ 401: {
25107
+ type: string;
25108
+ title: string;
25109
+ status: number;
25110
+ detail?: string;
25111
+ instance?: string;
25112
+ code?: string;
25113
+ errors?: Array<{
25114
+ path: string;
25115
+ message: string;
25116
+ summary?: string;
25117
+ }>;
25118
+ meta?: {
25119
+ [key: string]: unknown;
25120
+ };
25121
+ };
25122
+ /**
25123
+ * Response for status 403
25124
+ */
25125
+ 403: {
25126
+ type: string;
25127
+ title: string;
25128
+ status: number;
25129
+ detail?: string;
25130
+ instance?: string;
25131
+ code?: string;
25132
+ errors?: Array<{
25133
+ path: string;
25134
+ message: string;
25135
+ summary?: string;
25136
+ }>;
25137
+ meta?: {
25138
+ [key: string]: unknown;
25139
+ };
25140
+ };
25141
+ /**
25142
+ * Response for status 404
25143
+ */
25144
+ 404: {
25145
+ type: string;
25146
+ title: string;
25147
+ status: number;
25148
+ detail?: string;
25149
+ instance?: string;
25150
+ code?: string;
25151
+ errors?: Array<{
25152
+ path: string;
25153
+ message: string;
25154
+ summary?: string;
25155
+ }>;
25156
+ meta?: {
25157
+ [key: string]: unknown;
25158
+ };
25159
+ };
25160
+ /**
25161
+ * Response for status 409
25162
+ */
25163
+ 409: {
25164
+ type: string;
25165
+ title: string;
25166
+ status: number;
25167
+ detail?: string;
25168
+ instance?: string;
25169
+ code?: string;
25170
+ errors?: Array<{
25171
+ path: string;
25172
+ message: string;
25173
+ summary?: string;
25174
+ }>;
25175
+ meta?: {
25176
+ [key: string]: unknown;
25177
+ };
25178
+ };
25179
+ /**
25180
+ * Response for status 422
25181
+ */
25182
+ 422: {
25183
+ type: string;
25184
+ title: string;
25185
+ status: number;
25186
+ detail?: string;
25187
+ instance?: string;
25188
+ code?: string;
25189
+ errors?: Array<{
25190
+ path: string;
25191
+ message: string;
25192
+ summary?: string;
25193
+ }>;
25194
+ meta?: {
25195
+ [key: string]: unknown;
25196
+ };
25197
+ };
25198
+ /**
25199
+ * Response for status 500
25200
+ */
25201
+ 500: {
25202
+ type: string;
25203
+ title: string;
25204
+ status: number;
25205
+ detail?: string;
25206
+ instance?: string;
25207
+ code?: string;
25208
+ errors?: Array<{
25209
+ path: string;
25210
+ message: string;
25211
+ summary?: string;
25212
+ }>;
25213
+ meta?: {
25214
+ [key: string]: unknown;
25215
+ };
25216
+ };
25217
+ };
25218
+ export type DeleteApiProjectsByProjectIdEnvironmentsByNameError = DeleteApiProjectsByProjectIdEnvironmentsByNameErrors[keyof DeleteApiProjectsByProjectIdEnvironmentsByNameErrors];
25219
+ export type DeleteApiProjectsByProjectIdEnvironmentsByNameResponses = {
25220
+ /**
25221
+ * Response for status 200
25222
+ */
25223
+ 200: {
25224
+ deleted: true;
25225
+ };
25226
+ };
25227
+ export type DeleteApiProjectsByProjectIdEnvironmentsByNameResponse = DeleteApiProjectsByProjectIdEnvironmentsByNameResponses[keyof DeleteApiProjectsByProjectIdEnvironmentsByNameResponses];
25228
+ export type GetApiProjectsByProjectIdEnvironmentsByNameData = {
25229
+ body?: never;
25230
+ path: {
25231
+ projectId: string;
25232
+ name: string;
25233
+ };
25234
+ query?: {
25235
+ version?: number;
25236
+ };
25237
+ url: '/api/projects/{projectId}/environments/{name}';
25238
+ };
25239
+ export type GetApiProjectsByProjectIdEnvironmentsByNameErrors = {
25240
+ /**
25241
+ * Response for status 401
25242
+ */
25243
+ 401: {
25244
+ type: string;
25245
+ title: string;
25246
+ status: number;
25247
+ detail?: string;
25248
+ instance?: string;
25249
+ code?: string;
25250
+ errors?: Array<{
25251
+ path: string;
25252
+ message: string;
25253
+ summary?: string;
25254
+ }>;
25255
+ meta?: {
25256
+ [key: string]: unknown;
25257
+ };
25258
+ };
25259
+ /**
25260
+ * Response for status 403
25261
+ */
25262
+ 403: {
25263
+ type: string;
25264
+ title: string;
25265
+ status: number;
25266
+ detail?: string;
25267
+ instance?: string;
25268
+ code?: string;
25269
+ errors?: Array<{
25270
+ path: string;
25271
+ message: string;
25272
+ summary?: string;
25273
+ }>;
25274
+ meta?: {
25275
+ [key: string]: unknown;
25276
+ };
25277
+ };
25278
+ /**
25279
+ * Response for status 404
25280
+ */
25281
+ 404: {
25282
+ type: string;
25283
+ title: string;
25284
+ status: number;
25285
+ detail?: string;
25286
+ instance?: string;
25287
+ code?: string;
25288
+ errors?: Array<{
25289
+ path: string;
25290
+ message: string;
25291
+ summary?: string;
25292
+ }>;
25293
+ meta?: {
25294
+ [key: string]: unknown;
25295
+ };
25296
+ };
25297
+ /**
25298
+ * Response for status 422
25299
+ */
25300
+ 422: {
25301
+ type: string;
25302
+ title: string;
25303
+ status: number;
25304
+ detail?: string;
25305
+ instance?: string;
25306
+ code?: string;
25307
+ errors?: Array<{
25308
+ path: string;
25309
+ message: string;
25310
+ summary?: string;
25311
+ }>;
25312
+ meta?: {
25313
+ [key: string]: unknown;
25314
+ };
25315
+ };
25316
+ /**
25317
+ * Response for status 500
25318
+ */
25319
+ 500: {
25320
+ type: string;
25321
+ title: string;
25322
+ status: number;
25323
+ detail?: string;
25324
+ instance?: string;
25325
+ code?: string;
25326
+ errors?: Array<{
25327
+ path: string;
25328
+ message: string;
25329
+ summary?: string;
25330
+ }>;
25331
+ meta?: {
25332
+ [key: string]: unknown;
25333
+ };
25334
+ };
25335
+ };
25336
+ export type GetApiProjectsByProjectIdEnvironmentsByNameError = GetApiProjectsByProjectIdEnvironmentsByNameErrors[keyof GetApiProjectsByProjectIdEnvironmentsByNameErrors];
25337
+ export type GetApiProjectsByProjectIdEnvironmentsByNameResponses = {
25338
+ /**
25339
+ * Response for status 200
25340
+ */
25341
+ 200: {
25342
+ environment: {
25343
+ id: string;
25344
+ projectId: string;
25345
+ name: string;
25346
+ description: string | null;
25347
+ latestVersion: number;
25348
+ updatedBy: {
25349
+ userId: string;
25350
+ username: string | null;
25351
+ };
25352
+ updatedAt: string;
25353
+ };
25354
+ version: {
25355
+ id: string;
25356
+ environmentId: string;
25357
+ version: number;
25358
+ content: {
25359
+ runtime?: {
25360
+ kind: 'devcontainer';
25361
+ config?: string;
25362
+ } | {
25363
+ kind: 'managed';
25364
+ id: 'bun1' | 'node24';
25365
+ } | {
25366
+ kind: 'host';
25367
+ };
25368
+ vars?: Array<{
25369
+ name: string;
25370
+ source: 'value';
25371
+ value: string;
25372
+ secret: boolean;
25373
+ applies: 'agent' | 'setup' | 'both';
25374
+ } | {
25375
+ name: string;
25376
+ source: 'inherit';
25377
+ from: string;
25378
+ secret: boolean;
25379
+ optional: boolean;
25380
+ default?: string;
25381
+ mcp?: string;
25382
+ applies: 'agent' | 'setup' | 'both';
25383
+ } | {
25384
+ name: string;
25385
+ source: 'secret';
25386
+ secretName: string;
25387
+ applies: 'agent' | 'setup' | 'both';
25388
+ }>;
25389
+ connectors?: Array<string>;
25390
+ description?: string;
25391
+ };
25392
+ contentHash: string;
25393
+ createdBy: {
25394
+ userId: string;
25395
+ username: string | null;
25396
+ };
25397
+ createdAt: string;
25398
+ };
25399
+ };
25400
+ };
25401
+ export type GetApiProjectsByProjectIdEnvironmentsByNameResponse = GetApiProjectsByProjectIdEnvironmentsByNameResponses[keyof GetApiProjectsByProjectIdEnvironmentsByNameResponses];
25402
+ export type PutApiProjectsByProjectIdEnvironmentsByNameData = {
25403
+ body: {
25404
+ content: {
25405
+ runtime?: {
25406
+ kind: 'devcontainer';
25407
+ config?: string;
25408
+ } | {
25409
+ kind: 'managed';
25410
+ id: 'bun1' | 'node24';
25411
+ } | {
25412
+ kind: 'host';
25413
+ };
25414
+ vars?: Array<{
25415
+ name: string;
25416
+ source: 'value';
25417
+ value: string;
25418
+ secret: boolean;
25419
+ applies?: 'agent' | 'setup' | 'both';
25420
+ } | {
25421
+ name: string;
25422
+ source: 'inherit';
25423
+ from: string;
25424
+ secret: boolean;
25425
+ optional: boolean;
25426
+ default?: string;
25427
+ mcp?: string;
25428
+ applies?: 'agent' | 'setup' | 'both';
25429
+ } | {
25430
+ name: string;
25431
+ source: 'secret';
25432
+ secretName: string;
25433
+ applies?: 'agent' | 'setup' | 'both';
25434
+ }>;
25435
+ connectors?: Array<string>;
25436
+ description?: string;
25437
+ };
25438
+ };
25439
+ path: {
25440
+ projectId: string;
25441
+ name: string;
25442
+ };
25443
+ query?: never;
25444
+ url: '/api/projects/{projectId}/environments/{name}';
25445
+ };
25446
+ export type PutApiProjectsByProjectIdEnvironmentsByNameErrors = {
25447
+ /**
25448
+ * Response for status 401
25449
+ */
25450
+ 401: {
25451
+ type: string;
25452
+ title: string;
25453
+ status: number;
25454
+ detail?: string;
25455
+ instance?: string;
25456
+ code?: string;
25457
+ errors?: Array<{
25458
+ path: string;
25459
+ message: string;
25460
+ summary?: string;
25461
+ }>;
25462
+ meta?: {
25463
+ [key: string]: unknown;
25464
+ };
25465
+ };
25466
+ /**
25467
+ * Response for status 403
25468
+ */
25469
+ 403: {
25470
+ type: string;
25471
+ title: string;
25472
+ status: number;
25473
+ detail?: string;
25474
+ instance?: string;
25475
+ code?: string;
25476
+ errors?: Array<{
25477
+ path: string;
25478
+ message: string;
25479
+ summary?: string;
25480
+ }>;
25481
+ meta?: {
25482
+ [key: string]: unknown;
25483
+ };
25484
+ };
25485
+ /**
25486
+ * Response for status 404
25487
+ */
25488
+ 404: {
25489
+ type: string;
25490
+ title: string;
25491
+ status: number;
25492
+ detail?: string;
25493
+ instance?: string;
25494
+ code?: string;
25495
+ errors?: Array<{
25496
+ path: string;
25497
+ message: string;
25498
+ summary?: string;
25499
+ }>;
25500
+ meta?: {
25501
+ [key: string]: unknown;
25502
+ };
25503
+ };
25504
+ /**
25505
+ * Response for status 422
25506
+ */
25507
+ 422: {
25508
+ type: string;
25509
+ title: string;
25510
+ status: number;
25511
+ detail?: string;
25512
+ instance?: string;
25513
+ code?: string;
25514
+ errors?: Array<{
25515
+ path: string;
25516
+ message: string;
25517
+ summary?: string;
25518
+ }>;
25519
+ meta?: {
25520
+ [key: string]: unknown;
25521
+ };
25522
+ };
25523
+ /**
25524
+ * Response for status 500
25525
+ */
25526
+ 500: {
25527
+ type: string;
25528
+ title: string;
25529
+ status: number;
25530
+ detail?: string;
25531
+ instance?: string;
25532
+ code?: string;
25533
+ errors?: Array<{
25534
+ path: string;
25535
+ message: string;
25536
+ summary?: string;
25537
+ }>;
25538
+ meta?: {
25539
+ [key: string]: unknown;
25540
+ };
25541
+ };
25542
+ };
25543
+ export type PutApiProjectsByProjectIdEnvironmentsByNameError = PutApiProjectsByProjectIdEnvironmentsByNameErrors[keyof PutApiProjectsByProjectIdEnvironmentsByNameErrors];
25544
+ export type PutApiProjectsByProjectIdEnvironmentsByNameResponses = {
25545
+ /**
25546
+ * Response for status 200
25547
+ */
25548
+ 200: {
25549
+ environment: {
25550
+ id: string;
25551
+ projectId: string;
25552
+ name: string;
25553
+ description: string | null;
25554
+ latestVersion: number;
25555
+ updatedBy: {
25556
+ userId: string;
25557
+ username: string | null;
25558
+ };
25559
+ updatedAt: string;
25560
+ };
25561
+ version: {
25562
+ id: string;
25563
+ environmentId: string;
25564
+ version: number;
25565
+ content: {
25566
+ runtime?: {
25567
+ kind: 'devcontainer';
25568
+ config?: string;
25569
+ } | {
25570
+ kind: 'managed';
25571
+ id: 'bun1' | 'node24';
25572
+ } | {
25573
+ kind: 'host';
25574
+ };
25575
+ vars?: Array<{
25576
+ name: string;
25577
+ source: 'value';
25578
+ value: string;
25579
+ secret: boolean;
25580
+ applies: 'agent' | 'setup' | 'both';
25581
+ } | {
25582
+ name: string;
25583
+ source: 'inherit';
25584
+ from: string;
25585
+ secret: boolean;
25586
+ optional: boolean;
25587
+ default?: string;
25588
+ mcp?: string;
25589
+ applies: 'agent' | 'setup' | 'both';
25590
+ } | {
25591
+ name: string;
25592
+ source: 'secret';
25593
+ secretName: string;
25594
+ applies: 'agent' | 'setup' | 'both';
25595
+ }>;
25596
+ connectors?: Array<string>;
25597
+ description?: string;
25598
+ };
25599
+ contentHash: string;
25600
+ createdBy: {
25601
+ userId: string;
25602
+ username: string | null;
25603
+ };
25604
+ createdAt: string;
25605
+ };
25606
+ published: boolean;
25607
+ };
25608
+ };
25609
+ export type PutApiProjectsByProjectIdEnvironmentsByNameResponse = PutApiProjectsByProjectIdEnvironmentsByNameResponses[keyof PutApiProjectsByProjectIdEnvironmentsByNameResponses];
25610
+ export type PostApiTaskRunsByTaskRunIdEnvironmentData = {
25611
+ body: {
25612
+ claimToken: string;
25613
+ secretNames: Array<string>;
25614
+ };
25615
+ path: {
25616
+ taskRunId: string;
25617
+ };
25618
+ query?: never;
25619
+ url: '/api/task-runs/{taskRunId}/environment';
25620
+ };
25621
+ export type PostApiTaskRunsByTaskRunIdEnvironmentErrors = {
25622
+ /**
25623
+ * Response for status 400
25624
+ */
25625
+ 400: {
25626
+ type: string;
25627
+ title: string;
25628
+ status: number;
25629
+ detail?: string;
25630
+ instance?: string;
25631
+ code?: string;
25632
+ errors?: Array<{
25633
+ path: string;
25634
+ message: string;
25635
+ summary?: string;
25636
+ }>;
25637
+ meta?: {
25638
+ [key: string]: unknown;
25639
+ };
25640
+ };
25641
+ /**
25642
+ * Response for status 401
25643
+ */
25644
+ 401: {
25645
+ type: string;
25646
+ title: string;
25647
+ status: number;
25648
+ detail?: string;
25649
+ instance?: string;
25650
+ code?: string;
25651
+ errors?: Array<{
25652
+ path: string;
25653
+ message: string;
25654
+ summary?: string;
25655
+ }>;
25656
+ meta?: {
25657
+ [key: string]: unknown;
25658
+ };
25659
+ };
25660
+ /**
25661
+ * Response for status 403
25662
+ */
25663
+ 403: {
25664
+ type: string;
25665
+ title: string;
25666
+ status: number;
25667
+ detail?: string;
25668
+ instance?: string;
25669
+ code?: string;
25670
+ errors?: Array<{
25671
+ path: string;
25672
+ message: string;
25673
+ summary?: string;
25674
+ }>;
25675
+ meta?: {
25676
+ [key: string]: unknown;
25677
+ };
25678
+ };
25679
+ /**
25680
+ * Response for status 404
25681
+ */
25682
+ 404: {
25683
+ type: string;
25684
+ title: string;
25685
+ status: number;
25686
+ detail?: string;
25687
+ instance?: string;
25688
+ code?: string;
25689
+ errors?: Array<{
25690
+ path: string;
25691
+ message: string;
25692
+ summary?: string;
25693
+ }>;
25694
+ meta?: {
25695
+ [key: string]: unknown;
25696
+ };
25697
+ };
25698
+ /**
25699
+ * Response for status 409
25700
+ */
25701
+ 409: {
25702
+ type: string;
25703
+ title: string;
25704
+ status: number;
25705
+ detail?: string;
25706
+ instance?: string;
25707
+ code?: string;
25708
+ errors?: Array<{
25709
+ path: string;
25710
+ message: string;
25711
+ summary?: string;
25712
+ }>;
25713
+ meta?: {
25714
+ [key: string]: unknown;
25715
+ };
25716
+ };
25717
+ /**
25718
+ * Response for status 422
25719
+ */
25720
+ 422: {
25721
+ type: string;
25722
+ title: string;
25723
+ status: number;
25724
+ detail?: string;
25725
+ instance?: string;
25726
+ code?: string;
25727
+ errors?: Array<{
25728
+ path: string;
25729
+ message: string;
25730
+ summary?: string;
25731
+ }>;
25732
+ meta?: {
25733
+ [key: string]: unknown;
25734
+ };
25735
+ };
25736
+ /**
25737
+ * Response for status 500
25738
+ */
25739
+ 500: {
25740
+ type: string;
25741
+ title: string;
25742
+ status: number;
25743
+ detail?: string;
25744
+ instance?: string;
25745
+ code?: string;
25746
+ errors?: Array<{
25747
+ path: string;
25748
+ message: string;
25749
+ summary?: string;
25750
+ }>;
25751
+ meta?: {
25752
+ [key: string]: unknown;
25753
+ };
25754
+ };
25755
+ };
25756
+ export type PostApiTaskRunsByTaskRunIdEnvironmentError = PostApiTaskRunsByTaskRunIdEnvironmentErrors[keyof PostApiTaskRunsByTaskRunIdEnvironmentErrors];
25757
+ export type PostApiTaskRunsByTaskRunIdEnvironmentResponses = {
25758
+ /**
25759
+ * Response for status 200
25760
+ */
25761
+ 200: {
25762
+ secrets: {
25763
+ [key: string]: {
25764
+ value: string;
25765
+ expiresAt: string | null;
25766
+ };
25767
+ };
25768
+ missing: Array<string>;
25769
+ };
25770
+ };
25771
+ export type PostApiTaskRunsByTaskRunIdEnvironmentResponse = PostApiTaskRunsByTaskRunIdEnvironmentResponses[keyof PostApiTaskRunsByTaskRunIdEnvironmentResponses];
25772
+ export type GetApiConnectorsData = {
25773
+ body?: never;
25774
+ path?: never;
25775
+ query?: never;
25776
+ url: '/api/connectors';
25777
+ };
25778
+ export type GetApiConnectorsErrors = {
25779
+ /**
25780
+ * Response for status 401
25781
+ */
25782
+ 401: {
25783
+ type: string;
25784
+ title: string;
25785
+ status: number;
25786
+ detail?: string;
25787
+ instance?: string;
25788
+ code?: string;
25789
+ errors?: Array<{
25790
+ path: string;
25791
+ message: string;
25792
+ summary?: string;
25793
+ }>;
25794
+ meta?: {
25795
+ [key: string]: unknown;
25796
+ };
25797
+ };
25798
+ /**
25799
+ * Response for status 403
25800
+ */
25801
+ 403: {
25802
+ type: string;
25803
+ title: string;
25804
+ status: number;
25805
+ detail?: string;
25806
+ instance?: string;
25807
+ code?: string;
25808
+ errors?: Array<{
25809
+ path: string;
25810
+ message: string;
25811
+ summary?: string;
25812
+ }>;
25813
+ meta?: {
25814
+ [key: string]: unknown;
25815
+ };
25816
+ };
25817
+ /**
25818
+ * Response for status 422
25819
+ */
25820
+ 422: {
25821
+ type: string;
25822
+ title: string;
25823
+ status: number;
25824
+ detail?: string;
25825
+ instance?: string;
25826
+ code?: string;
25827
+ errors?: Array<{
25828
+ path: string;
25829
+ message: string;
25830
+ summary?: string;
25831
+ }>;
25832
+ meta?: {
25833
+ [key: string]: unknown;
25834
+ };
25835
+ };
25836
+ /**
25837
+ * Response for status 500
25838
+ */
25839
+ 500: {
25840
+ type: string;
25841
+ title: string;
25842
+ status: number;
25843
+ detail?: string;
25844
+ instance?: string;
25845
+ code?: string;
25846
+ errors?: Array<{
25847
+ path: string;
25848
+ message: string;
25849
+ summary?: string;
25850
+ }>;
25851
+ meta?: {
25852
+ [key: string]: unknown;
25853
+ };
25854
+ };
25855
+ };
25856
+ export type GetApiConnectorsError = GetApiConnectorsErrors[keyof GetApiConnectorsErrors];
25857
+ export type GetApiConnectorsResponses = {
25858
+ /**
25859
+ * Response for status 200
25860
+ */
25861
+ 200: Array<{
25862
+ id: string;
25863
+ name: string;
25864
+ description: string;
25865
+ auth: 'none' | 'apiKey';
25866
+ requiredVars: Array<{
25867
+ name: string;
25868
+ description: string;
25869
+ }>;
25870
+ }>;
25871
+ };
25872
+ export type GetApiConnectorsResponse = GetApiConnectorsResponses[keyof GetApiConnectorsResponses];