@trigger.dev/core 4.3.3 → 4.4.1

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 (118) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +8 -1
  2. package/dist/commonjs/v3/apiClient/index.js +15 -0
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/config.d.ts +13 -0
  5. package/dist/commonjs/v3/imports/superjson-cjs.cjs.map +1 -1
  6. package/dist/commonjs/v3/imports/superjson.js +5 -3
  7. package/dist/commonjs/v3/index.d.ts +1 -0
  8. package/dist/commonjs/v3/index.js +4 -1
  9. package/dist/commonjs/v3/index.js.map +1 -1
  10. package/dist/commonjs/v3/isomorphic/duration.d.ts +11 -0
  11. package/dist/commonjs/v3/isomorphic/duration.js +18 -6
  12. package/dist/commonjs/v3/isomorphic/duration.js.map +1 -1
  13. package/dist/commonjs/v3/otel/diskIoMetrics.d.ts +2 -0
  14. package/dist/commonjs/v3/otel/diskIoMetrics.js +94 -0
  15. package/dist/commonjs/v3/otel/diskIoMetrics.js.map +1 -0
  16. package/dist/commonjs/v3/otel/filesystemMetrics.d.ts +2 -0
  17. package/dist/commonjs/v3/otel/filesystemMetrics.js +137 -0
  18. package/dist/commonjs/v3/otel/filesystemMetrics.js.map +1 -0
  19. package/dist/commonjs/v3/otel/machineId.d.ts +1 -0
  20. package/dist/commonjs/v3/otel/machineId.js +7 -0
  21. package/dist/commonjs/v3/otel/machineId.js.map +1 -0
  22. package/dist/commonjs/v3/otel/nodejsRuntimeMetrics.d.ts +2 -0
  23. package/dist/commonjs/v3/otel/nodejsRuntimeMetrics.js +69 -0
  24. package/dist/commonjs/v3/otel/nodejsRuntimeMetrics.js.map +1 -0
  25. package/dist/commonjs/v3/otel/tracingSDK.d.ts +16 -0
  26. package/dist/commonjs/v3/otel/tracingSDK.js +75 -6
  27. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  28. package/dist/commonjs/v3/schemas/api-type.test.d.ts +1 -0
  29. package/dist/commonjs/v3/schemas/api-type.test.js +127 -0
  30. package/dist/commonjs/v3/schemas/api-type.test.js.map +1 -0
  31. package/dist/commonjs/v3/schemas/api.d.ts +375 -46
  32. package/dist/commonjs/v3/schemas/api.js +44 -27
  33. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  34. package/dist/commonjs/v3/schemas/index.d.ts +1 -0
  35. package/dist/commonjs/v3/schemas/index.js +1 -0
  36. package/dist/commonjs/v3/schemas/index.js.map +1 -1
  37. package/dist/commonjs/v3/schemas/messages.d.ts +3 -0
  38. package/dist/commonjs/v3/schemas/messages.js +1 -0
  39. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/query.d.ts +215 -0
  41. package/dist/commonjs/v3/schemas/query.js +58 -0
  42. package/dist/commonjs/v3/schemas/query.js.map +1 -0
  43. package/dist/commonjs/v3/semanticInternalAttributes.d.ts +2 -0
  44. package/dist/commonjs/v3/semanticInternalAttributes.js +2 -0
  45. package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
  46. package/dist/commonjs/v3/taskContext/index.d.ts +2 -0
  47. package/dist/commonjs/v3/taskContext/index.js +7 -2
  48. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  49. package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +24 -0
  50. package/dist/commonjs/v3/taskContext/otelProcessors.js +173 -1
  51. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  52. package/dist/commonjs/v3/types/tasks.d.ts +16 -0
  53. package/dist/commonjs/v3/utils/ioSerialization.d.ts +1 -1
  54. package/dist/commonjs/v3/vendor/superjson.cjs +833 -0
  55. package/dist/commonjs/v3/workers/index.d.ts +1 -1
  56. package/dist/commonjs/v3/workers/index.js +2 -1
  57. package/dist/commonjs/v3/workers/index.js.map +1 -1
  58. package/dist/commonjs/version.js +1 -1
  59. package/dist/esm/v3/apiClient/index.d.ts +8 -1
  60. package/dist/esm/v3/apiClient/index.js +16 -1
  61. package/dist/esm/v3/apiClient/index.js.map +1 -1
  62. package/dist/esm/v3/config.d.ts +13 -0
  63. package/dist/esm/v3/imports/superjson.d.ts +1 -1
  64. package/dist/esm/v3/imports/superjson.js +3 -1
  65. package/dist/esm/v3/imports/superjson.js.map +1 -1
  66. package/dist/esm/v3/index.d.ts +1 -0
  67. package/dist/esm/v3/index.js +1 -0
  68. package/dist/esm/v3/index.js.map +1 -1
  69. package/dist/esm/v3/isomorphic/duration.d.ts +11 -0
  70. package/dist/esm/v3/isomorphic/duration.js +17 -6
  71. package/dist/esm/v3/isomorphic/duration.js.map +1 -1
  72. package/dist/esm/v3/otel/diskIoMetrics.d.ts +2 -0
  73. package/dist/esm/v3/otel/diskIoMetrics.js +68 -0
  74. package/dist/esm/v3/otel/diskIoMetrics.js.map +1 -0
  75. package/dist/esm/v3/otel/filesystemMetrics.d.ts +2 -0
  76. package/dist/esm/v3/otel/filesystemMetrics.js +111 -0
  77. package/dist/esm/v3/otel/filesystemMetrics.js.map +1 -0
  78. package/dist/esm/v3/otel/machineId.d.ts +1 -0
  79. package/dist/esm/v3/otel/machineId.js +4 -0
  80. package/dist/esm/v3/otel/machineId.js.map +1 -0
  81. package/dist/esm/v3/otel/nodejsRuntimeMetrics.d.ts +2 -0
  82. package/dist/esm/v3/otel/nodejsRuntimeMetrics.js +66 -0
  83. package/dist/esm/v3/otel/nodejsRuntimeMetrics.js.map +1 -0
  84. package/dist/esm/v3/otel/tracingSDK.d.ts +16 -0
  85. package/dist/esm/v3/otel/tracingSDK.js +77 -8
  86. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  87. package/dist/esm/v3/schemas/api-type.test.d.ts +1 -0
  88. package/dist/esm/v3/schemas/api-type.test.js +125 -0
  89. package/dist/esm/v3/schemas/api-type.test.js.map +1 -0
  90. package/dist/esm/v3/schemas/api.d.ts +375 -46
  91. package/dist/esm/v3/schemas/api.js +43 -26
  92. package/dist/esm/v3/schemas/api.js.map +1 -1
  93. package/dist/esm/v3/schemas/index.d.ts +1 -0
  94. package/dist/esm/v3/schemas/index.js +1 -0
  95. package/dist/esm/v3/schemas/index.js.map +1 -1
  96. package/dist/esm/v3/schemas/messages.d.ts +3 -0
  97. package/dist/esm/v3/schemas/messages.js +1 -0
  98. package/dist/esm/v3/schemas/messages.js.map +1 -1
  99. package/dist/esm/v3/schemas/query.d.ts +215 -0
  100. package/dist/esm/v3/schemas/query.js +55 -0
  101. package/dist/esm/v3/schemas/query.js.map +1 -0
  102. package/dist/esm/v3/semanticInternalAttributes.d.ts +2 -0
  103. package/dist/esm/v3/semanticInternalAttributes.js +2 -0
  104. package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
  105. package/dist/esm/v3/taskContext/index.d.ts +2 -0
  106. package/dist/esm/v3/taskContext/index.js +8 -3
  107. package/dist/esm/v3/taskContext/index.js.map +1 -1
  108. package/dist/esm/v3/taskContext/otelProcessors.d.ts +24 -0
  109. package/dist/esm/v3/taskContext/otelProcessors.js +170 -0
  110. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  111. package/dist/esm/v3/types/tasks.d.ts +16 -0
  112. package/dist/esm/v3/utils/ioSerialization.d.ts +1 -1
  113. package/dist/esm/v3/vendor/superjson.mjs +800 -0
  114. package/dist/esm/v3/workers/index.d.ts +1 -1
  115. package/dist/esm/v3/workers/index.js +1 -1
  116. package/dist/esm/v3/workers/index.js.map +1 -1
  117. package/dist/esm/version.js +1 -1
  118. package/package.json +11 -6
@@ -822,14 +822,17 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
822
822
  key: z.ZodString;
823
823
  delay: z.ZodString;
824
824
  mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
825
+ maxDelay: z.ZodOptional<z.ZodString>;
825
826
  }, "strip", z.ZodTypeAny, {
826
827
  key: string;
827
828
  delay: string;
828
829
  mode?: "leading" | "trailing" | undefined;
830
+ maxDelay?: string | undefined;
829
831
  }, {
830
832
  key: string;
831
833
  delay: string;
832
834
  mode?: "leading" | "trailing" | undefined;
835
+ maxDelay?: string | undefined;
833
836
  }>>;
834
837
  }, "strip", z.ZodTypeAny, {
835
838
  metadata?: any;
@@ -853,6 +856,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
853
856
  key: string;
854
857
  delay: string;
855
858
  mode?: "leading" | "trailing" | undefined;
859
+ maxDelay?: string | undefined;
856
860
  } | undefined;
857
861
  dependentAttempt?: string | undefined;
858
862
  parentAttempt?: string | undefined;
@@ -890,6 +894,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
890
894
  key: string;
891
895
  delay: string;
892
896
  mode?: "leading" | "trailing" | undefined;
897
+ maxDelay?: string | undefined;
893
898
  } | undefined;
894
899
  dependentAttempt?: string | undefined;
895
900
  parentAttempt?: string | undefined;
@@ -929,6 +934,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
929
934
  key: string;
930
935
  delay: string;
931
936
  mode?: "leading" | "trailing" | undefined;
937
+ maxDelay?: string | undefined;
932
938
  } | undefined;
933
939
  dependentAttempt?: string | undefined;
934
940
  parentAttempt?: string | undefined;
@@ -970,6 +976,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
970
976
  key: string;
971
977
  delay: string;
972
978
  mode?: "leading" | "trailing" | undefined;
979
+ maxDelay?: string | undefined;
973
980
  } | undefined;
974
981
  dependentAttempt?: string | undefined;
975
982
  parentAttempt?: string | undefined;
@@ -1072,14 +1079,17 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1072
1079
  key: z.ZodString;
1073
1080
  delay: z.ZodString;
1074
1081
  mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
1082
+ maxDelay: z.ZodOptional<z.ZodString>;
1075
1083
  }, "strip", z.ZodTypeAny, {
1076
1084
  key: string;
1077
1085
  delay: string;
1078
1086
  mode?: "leading" | "trailing" | undefined;
1087
+ maxDelay?: string | undefined;
1079
1088
  }, {
1080
1089
  key: string;
1081
1090
  delay: string;
1082
1091
  mode?: "leading" | "trailing" | undefined;
1092
+ maxDelay?: string | undefined;
1083
1093
  }>>;
1084
1094
  }, "strip", z.ZodTypeAny, {
1085
1095
  metadata?: any;
@@ -1103,6 +1113,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1103
1113
  key: string;
1104
1114
  delay: string;
1105
1115
  mode?: "leading" | "trailing" | undefined;
1116
+ maxDelay?: string | undefined;
1106
1117
  } | undefined;
1107
1118
  dependentAttempt?: string | undefined;
1108
1119
  parentAttempt?: string | undefined;
@@ -1140,6 +1151,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1140
1151
  key: string;
1141
1152
  delay: string;
1142
1153
  mode?: "leading" | "trailing" | undefined;
1154
+ maxDelay?: string | undefined;
1143
1155
  } | undefined;
1144
1156
  dependentAttempt?: string | undefined;
1145
1157
  parentAttempt?: string | undefined;
@@ -1179,6 +1191,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1179
1191
  key: string;
1180
1192
  delay: string;
1181
1193
  mode?: "leading" | "trailing" | undefined;
1194
+ maxDelay?: string | undefined;
1182
1195
  } | undefined;
1183
1196
  dependentAttempt?: string | undefined;
1184
1197
  parentAttempt?: string | undefined;
@@ -1220,6 +1233,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1220
1233
  key: string;
1221
1234
  delay: string;
1222
1235
  mode?: "leading" | "trailing" | undefined;
1236
+ maxDelay?: string | undefined;
1223
1237
  } | undefined;
1224
1238
  dependentAttempt?: string | undefined;
1225
1239
  parentAttempt?: string | undefined;
@@ -1264,6 +1278,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1264
1278
  key: string;
1265
1279
  delay: string;
1266
1280
  mode?: "leading" | "trailing" | undefined;
1281
+ maxDelay?: string | undefined;
1267
1282
  } | undefined;
1268
1283
  dependentAttempt?: string | undefined;
1269
1284
  parentAttempt?: string | undefined;
@@ -1308,6 +1323,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1308
1323
  key: string;
1309
1324
  delay: string;
1310
1325
  mode?: "leading" | "trailing" | undefined;
1326
+ maxDelay?: string | undefined;
1311
1327
  } | undefined;
1312
1328
  dependentAttempt?: string | undefined;
1313
1329
  parentAttempt?: string | undefined;
@@ -1374,14 +1390,17 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1374
1390
  key: z.ZodString;
1375
1391
  delay: z.ZodString;
1376
1392
  mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
1393
+ maxDelay: z.ZodOptional<z.ZodString>;
1377
1394
  }, "strip", z.ZodTypeAny, {
1378
1395
  key: string;
1379
1396
  delay: string;
1380
1397
  mode?: "leading" | "trailing" | undefined;
1398
+ maxDelay?: string | undefined;
1381
1399
  }, {
1382
1400
  key: string;
1383
1401
  delay: string;
1384
1402
  mode?: "leading" | "trailing" | undefined;
1403
+ maxDelay?: string | undefined;
1385
1404
  }>>;
1386
1405
  }, "strip", z.ZodTypeAny, {
1387
1406
  metadata?: any;
@@ -1404,6 +1423,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1404
1423
  key: string;
1405
1424
  delay: string;
1406
1425
  mode?: "leading" | "trailing" | undefined;
1426
+ maxDelay?: string | undefined;
1407
1427
  } | undefined;
1408
1428
  parentAttempt?: string | undefined;
1409
1429
  lockToVersion?: string | undefined;
@@ -1434,6 +1454,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1434
1454
  key: string;
1435
1455
  delay: string;
1436
1456
  mode?: "leading" | "trailing" | undefined;
1457
+ maxDelay?: string | undefined;
1437
1458
  } | undefined;
1438
1459
  parentAttempt?: string | undefined;
1439
1460
  lockToVersion?: string | undefined;
@@ -1467,6 +1488,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1467
1488
  key: string;
1468
1489
  delay: string;
1469
1490
  mode?: "leading" | "trailing" | undefined;
1491
+ maxDelay?: string | undefined;
1470
1492
  } | undefined;
1471
1493
  parentAttempt?: string | undefined;
1472
1494
  lockToVersion?: string | undefined;
@@ -1502,6 +1524,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
1502
1524
  key: string;
1503
1525
  delay: string;
1504
1526
  mode?: "leading" | "trailing" | undefined;
1527
+ maxDelay?: string | undefined;
1505
1528
  } | undefined;
1506
1529
  parentAttempt?: string | undefined;
1507
1530
  lockToVersion?: string | undefined;
@@ -1561,14 +1584,17 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1561
1584
  key: z.ZodString;
1562
1585
  delay: z.ZodString;
1563
1586
  mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
1587
+ maxDelay: z.ZodOptional<z.ZodString>;
1564
1588
  }, "strip", z.ZodTypeAny, {
1565
1589
  key: string;
1566
1590
  delay: string;
1567
1591
  mode?: "leading" | "trailing" | undefined;
1592
+ maxDelay?: string | undefined;
1568
1593
  }, {
1569
1594
  key: string;
1570
1595
  delay: string;
1571
1596
  mode?: "leading" | "trailing" | undefined;
1597
+ maxDelay?: string | undefined;
1572
1598
  }>>;
1573
1599
  }, "strip", z.ZodTypeAny, {
1574
1600
  metadata?: any;
@@ -1591,6 +1617,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1591
1617
  key: string;
1592
1618
  delay: string;
1593
1619
  mode?: "leading" | "trailing" | undefined;
1620
+ maxDelay?: string | undefined;
1594
1621
  } | undefined;
1595
1622
  parentAttempt?: string | undefined;
1596
1623
  lockToVersion?: string | undefined;
@@ -1621,6 +1648,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1621
1648
  key: string;
1622
1649
  delay: string;
1623
1650
  mode?: "leading" | "trailing" | undefined;
1651
+ maxDelay?: string | undefined;
1624
1652
  } | undefined;
1625
1653
  parentAttempt?: string | undefined;
1626
1654
  lockToVersion?: string | undefined;
@@ -1654,6 +1682,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1654
1682
  key: string;
1655
1683
  delay: string;
1656
1684
  mode?: "leading" | "trailing" | undefined;
1685
+ maxDelay?: string | undefined;
1657
1686
  } | undefined;
1658
1687
  parentAttempt?: string | undefined;
1659
1688
  lockToVersion?: string | undefined;
@@ -1689,6 +1718,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1689
1718
  key: string;
1690
1719
  delay: string;
1691
1720
  mode?: "leading" | "trailing" | undefined;
1721
+ maxDelay?: string | undefined;
1692
1722
  } | undefined;
1693
1723
  parentAttempt?: string | undefined;
1694
1724
  lockToVersion?: string | undefined;
@@ -1738,6 +1768,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1738
1768
  key: string;
1739
1769
  delay: string;
1740
1770
  mode?: "leading" | "trailing" | undefined;
1771
+ maxDelay?: string | undefined;
1741
1772
  } | undefined;
1742
1773
  parentAttempt?: string | undefined;
1743
1774
  lockToVersion?: string | undefined;
@@ -1778,6 +1809,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1778
1809
  key: string;
1779
1810
  delay: string;
1780
1811
  mode?: "leading" | "trailing" | undefined;
1812
+ maxDelay?: string | undefined;
1781
1813
  } | undefined;
1782
1814
  parentAttempt?: string | undefined;
1783
1815
  lockToVersion?: string | undefined;
@@ -1883,14 +1915,17 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
1883
1915
  key: z.ZodString;
1884
1916
  delay: z.ZodString;
1885
1917
  mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
1918
+ maxDelay: z.ZodOptional<z.ZodString>;
1886
1919
  }, "strip", z.ZodTypeAny, {
1887
1920
  key: string;
1888
1921
  delay: string;
1889
1922
  mode?: "leading" | "trailing" | undefined;
1923
+ maxDelay?: string | undefined;
1890
1924
  }, {
1891
1925
  key: string;
1892
1926
  delay: string;
1893
1927
  mode?: "leading" | "trailing" | undefined;
1928
+ maxDelay?: string | undefined;
1894
1929
  }>>;
1895
1930
  }, "strip", z.ZodTypeAny, {
1896
1931
  metadata?: any;
@@ -1913,6 +1948,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
1913
1948
  key: string;
1914
1949
  delay: string;
1915
1950
  mode?: "leading" | "trailing" | undefined;
1951
+ maxDelay?: string | undefined;
1916
1952
  } | undefined;
1917
1953
  parentAttempt?: string | undefined;
1918
1954
  lockToVersion?: string | undefined;
@@ -1943,6 +1979,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
1943
1979
  key: string;
1944
1980
  delay: string;
1945
1981
  mode?: "leading" | "trailing" | undefined;
1982
+ maxDelay?: string | undefined;
1946
1983
  } | undefined;
1947
1984
  parentAttempt?: string | undefined;
1948
1985
  lockToVersion?: string | undefined;
@@ -1976,6 +2013,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
1976
2013
  key: string;
1977
2014
  delay: string;
1978
2015
  mode?: "leading" | "trailing" | undefined;
2016
+ maxDelay?: string | undefined;
1979
2017
  } | undefined;
1980
2018
  parentAttempt?: string | undefined;
1981
2019
  lockToVersion?: string | undefined;
@@ -2011,6 +2049,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2011
2049
  key: string;
2012
2050
  delay: string;
2013
2051
  mode?: "leading" | "trailing" | undefined;
2052
+ maxDelay?: string | undefined;
2014
2053
  } | undefined;
2015
2054
  parentAttempt?: string | undefined;
2016
2055
  lockToVersion?: string | undefined;
@@ -2058,6 +2097,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2058
2097
  key: string;
2059
2098
  delay: string;
2060
2099
  mode?: "leading" | "trailing" | undefined;
2100
+ maxDelay?: string | undefined;
2061
2101
  } | undefined;
2062
2102
  parentAttempt?: string | undefined;
2063
2103
  lockToVersion?: string | undefined;
@@ -2097,6 +2137,7 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
2097
2137
  key: string;
2098
2138
  delay: string;
2099
2139
  mode?: "leading" | "trailing" | undefined;
2140
+ maxDelay?: string | undefined;
2100
2141
  } | undefined;
2101
2142
  parentAttempt?: string | undefined;
2102
2143
  lockToVersion?: string | undefined;
@@ -2355,6 +2396,29 @@ export declare const FinalizeDeploymentRequestBody: z.ZodObject<{
2355
2396
  skipPushToRegistry?: boolean | undefined;
2356
2397
  }>;
2357
2398
  export type FinalizeDeploymentRequestBody = z.infer<typeof FinalizeDeploymentRequestBody>;
2399
+ export declare const BuildServerMetadata: z.ZodObject<{
2400
+ buildId: z.ZodOptional<z.ZodString>;
2401
+ isNativeBuild: z.ZodOptional<z.ZodBoolean>;
2402
+ artifactKey: z.ZodOptional<z.ZodString>;
2403
+ skipPromotion: z.ZodOptional<z.ZodBoolean>;
2404
+ configFilePath: z.ZodOptional<z.ZodString>;
2405
+ skipEnqueue: z.ZodOptional<z.ZodBoolean>;
2406
+ }, "strip", z.ZodTypeAny, {
2407
+ skipPromotion?: boolean | undefined;
2408
+ buildId?: string | undefined;
2409
+ isNativeBuild?: boolean | undefined;
2410
+ artifactKey?: string | undefined;
2411
+ configFilePath?: string | undefined;
2412
+ skipEnqueue?: boolean | undefined;
2413
+ }, {
2414
+ skipPromotion?: boolean | undefined;
2415
+ buildId?: string | undefined;
2416
+ isNativeBuild?: boolean | undefined;
2417
+ artifactKey?: string | undefined;
2418
+ configFilePath?: string | undefined;
2419
+ skipEnqueue?: boolean | undefined;
2420
+ }>;
2421
+ export type BuildServerMetadata = z.infer<typeof BuildServerMetadata>;
2358
2422
  export declare const ProgressDeploymentRequestBody: z.ZodObject<{
2359
2423
  contentHash: z.ZodOptional<z.ZodString>;
2360
2424
  gitMeta: z.ZodOptional<z.ZodObject<{
@@ -2401,6 +2465,28 @@ export declare const ProgressDeploymentRequestBody: z.ZodObject<{
2401
2465
  pullRequestState?: "open" | "closed" | "merged" | undefined;
2402
2466
  }>>;
2403
2467
  runtime: z.ZodOptional<z.ZodString>;
2468
+ buildServerMetadata: z.ZodOptional<z.ZodObject<{
2469
+ buildId: z.ZodOptional<z.ZodString>;
2470
+ isNativeBuild: z.ZodOptional<z.ZodBoolean>;
2471
+ artifactKey: z.ZodOptional<z.ZodString>;
2472
+ skipPromotion: z.ZodOptional<z.ZodBoolean>;
2473
+ configFilePath: z.ZodOptional<z.ZodString>;
2474
+ skipEnqueue: z.ZodOptional<z.ZodBoolean>;
2475
+ }, "strip", z.ZodTypeAny, {
2476
+ skipPromotion?: boolean | undefined;
2477
+ buildId?: string | undefined;
2478
+ isNativeBuild?: boolean | undefined;
2479
+ artifactKey?: string | undefined;
2480
+ configFilePath?: string | undefined;
2481
+ skipEnqueue?: boolean | undefined;
2482
+ }, {
2483
+ skipPromotion?: boolean | undefined;
2484
+ buildId?: string | undefined;
2485
+ isNativeBuild?: boolean | undefined;
2486
+ artifactKey?: string | undefined;
2487
+ configFilePath?: string | undefined;
2488
+ skipEnqueue?: boolean | undefined;
2489
+ }>>;
2404
2490
  }, "strip", z.ZodTypeAny, {
2405
2491
  runtime?: string | undefined;
2406
2492
  contentHash?: string | undefined;
@@ -2419,6 +2505,14 @@ export declare const ProgressDeploymentRequestBody: z.ZodObject<{
2419
2505
  pullRequestTitle?: string | undefined;
2420
2506
  pullRequestState?: "open" | "closed" | "merged" | undefined;
2421
2507
  } | undefined;
2508
+ buildServerMetadata?: {
2509
+ skipPromotion?: boolean | undefined;
2510
+ buildId?: string | undefined;
2511
+ isNativeBuild?: boolean | undefined;
2512
+ artifactKey?: string | undefined;
2513
+ configFilePath?: string | undefined;
2514
+ skipEnqueue?: boolean | undefined;
2515
+ } | undefined;
2422
2516
  }, {
2423
2517
  runtime?: string | undefined;
2424
2518
  contentHash?: string | undefined;
@@ -2437,6 +2531,14 @@ export declare const ProgressDeploymentRequestBody: z.ZodObject<{
2437
2531
  pullRequestTitle?: string | undefined;
2438
2532
  pullRequestState?: "open" | "closed" | "merged" | undefined;
2439
2533
  } | undefined;
2534
+ buildServerMetadata?: {
2535
+ skipPromotion?: boolean | undefined;
2536
+ buildId?: string | undefined;
2537
+ isNativeBuild?: boolean | undefined;
2538
+ artifactKey?: string | undefined;
2539
+ configFilePath?: string | undefined;
2540
+ skipEnqueue?: boolean | undefined;
2541
+ } | undefined;
2440
2542
  }>;
2441
2543
  export type ProgressDeploymentRequestBody = z.infer<typeof ProgressDeploymentRequestBody>;
2442
2544
  export declare const CancelDeploymentRequestBody: z.ZodObject<{
@@ -2463,26 +2565,6 @@ export declare const ExternalBuildData: z.ZodObject<{
2463
2565
  export type ExternalBuildData = z.infer<typeof ExternalBuildData>;
2464
2566
  export declare const DeploymentTriggeredVia: z.ZodUnion<[z.ZodEnum<["cli:manual", "cli:ci_other", "cli:github_actions", "cli:gitlab_ci", "cli:circleci", "cli:jenkins", "cli:azure_pipelines", "cli:bitbucket_pipelines", "cli:travis_ci", "cli:buildkite", "git_integration:github", "dashboard"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>;
2465
2567
  export type DeploymentTriggeredVia = z.infer<typeof DeploymentTriggeredVia>;
2466
- export declare const BuildServerMetadata: z.ZodObject<{
2467
- buildId: z.ZodOptional<z.ZodString>;
2468
- isNativeBuild: z.ZodOptional<z.ZodBoolean>;
2469
- artifactKey: z.ZodOptional<z.ZodString>;
2470
- skipPromotion: z.ZodOptional<z.ZodBoolean>;
2471
- configFilePath: z.ZodOptional<z.ZodString>;
2472
- }, "strip", z.ZodTypeAny, {
2473
- skipPromotion?: boolean | undefined;
2474
- buildId?: string | undefined;
2475
- isNativeBuild?: boolean | undefined;
2476
- artifactKey?: string | undefined;
2477
- configFilePath?: string | undefined;
2478
- }, {
2479
- skipPromotion?: boolean | undefined;
2480
- buildId?: string | undefined;
2481
- isNativeBuild?: boolean | undefined;
2482
- artifactKey?: string | undefined;
2483
- configFilePath?: string | undefined;
2484
- }>;
2485
- export type BuildServerMetadata = z.infer<typeof BuildServerMetadata>;
2486
2568
  export declare const UpsertBranchRequestBody: z.ZodObject<{
2487
2569
  git: z.ZodOptional<z.ZodObject<{
2488
2570
  provider: z.ZodOptional<z.ZodString>;
@@ -2693,7 +2775,7 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
2693
2775
  } | undefined;
2694
2776
  }>;
2695
2777
  export type InitializeDeploymentResponseBody = z.infer<typeof InitializeDeploymentResponseBody>;
2696
- export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObject<{
2778
+ declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{
2697
2779
  contentHash: z.ZodString;
2698
2780
  userId: z.ZodOptional<z.ZodString>;
2699
2781
  /** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
@@ -2744,6 +2826,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObj
2744
2826
  type: z.ZodOptional<z.ZodEnum<["MANAGED", "UNMANAGED", "V1"]>>;
2745
2827
  runtime: z.ZodOptional<z.ZodString>;
2746
2828
  initialStatus: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING"]>>;
2829
+ isLocalBuild: z.ZodOptional<z.ZodBoolean>;
2747
2830
  triggeredVia: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["cli:manual", "cli:ci_other", "cli:github_actions", "cli:gitlab_ci", "cli:circleci", "cli:jenkins", "cli:azure_pipelines", "cli:bitbucket_pipelines", "cli:travis_ci", "cli:buildkite", "git_integration:github", "dashboard"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
2748
2831
  buildId: z.ZodOptional<z.ZodString>;
2749
2832
  }, "strip", z.ZodTypeAny, {
@@ -2752,6 +2835,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObj
2752
2835
  runtime?: string | undefined;
2753
2836
  userId?: string | undefined;
2754
2837
  selfHosted?: boolean | undefined;
2838
+ buildId?: string | undefined;
2755
2839
  gitMeta?: {
2756
2840
  dirty?: boolean | undefined;
2757
2841
  source?: "trigger_github_app" | "github_actions" | "local" | undefined;
@@ -2767,8 +2851,8 @@ export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObj
2767
2851
  pullRequestTitle?: string | undefined;
2768
2852
  pullRequestState?: "open" | "closed" | "merged" | undefined;
2769
2853
  } | undefined;
2770
- buildId?: string | undefined;
2771
2854
  initialStatus?: "PENDING" | "BUILDING" | undefined;
2855
+ isLocalBuild?: boolean | undefined;
2772
2856
  triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | "dashboard" | undefined;
2773
2857
  }, {
2774
2858
  contentHash: string;
@@ -2776,6 +2860,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObj
2776
2860
  runtime?: string | undefined;
2777
2861
  userId?: string | undefined;
2778
2862
  selfHosted?: boolean | undefined;
2863
+ buildId?: string | undefined;
2779
2864
  gitMeta?: {
2780
2865
  dirty?: boolean | undefined;
2781
2866
  source?: "trigger_github_app" | "github_actions" | "local" | undefined;
@@ -2791,38 +2876,176 @@ export declare const InitializeDeploymentRequestBody: z.ZodIntersection<z.ZodObj
2791
2876
  pullRequestTitle?: string | undefined;
2792
2877
  pullRequestState?: "open" | "closed" | "merged" | undefined;
2793
2878
  } | undefined;
2794
- buildId?: string | undefined;
2795
2879
  initialStatus?: "PENDING" | "BUILDING" | undefined;
2880
+ isLocalBuild?: boolean | undefined;
2796
2881
  triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | "dashboard" | undefined;
2797
- }>, z.ZodEffects<z.ZodDiscriminatedUnion<"isNativeBuild", [z.ZodObject<{
2798
- isNativeBuild: z.ZodLiteral<true>;
2799
- skipPromotion: z.ZodBoolean;
2800
- artifactKey: z.ZodString;
2882
+ }>;
2883
+ type BaseOutput = z.output<typeof InitializeDeploymentRequestBodyBase>;
2884
+ type NativeBuildOutput = BaseOutput & {
2885
+ isNativeBuild: true;
2886
+ skipPromotion?: boolean;
2887
+ artifactKey?: string;
2888
+ configFilePath?: string;
2889
+ skipEnqueue?: boolean;
2890
+ };
2891
+ type NonNativeBuildOutput = BaseOutput & {
2892
+ isNativeBuild: false;
2893
+ skipPromotion?: never;
2894
+ artifactKey?: never;
2895
+ configFilePath?: never;
2896
+ skipEnqueue?: never;
2897
+ };
2898
+ export declare const InitializeDeploymentRequestBody: z.ZodEffects<z.ZodObject<{
2899
+ contentHash: z.ZodString;
2900
+ userId: z.ZodOptional<z.ZodString>;
2901
+ /** @deprecated This is now determined by the webapp. This is only used to warn users with old CLI versions. */
2902
+ selfHosted: z.ZodOptional<z.ZodBoolean>;
2903
+ gitMeta: z.ZodOptional<z.ZodObject<{
2904
+ provider: z.ZodOptional<z.ZodString>;
2905
+ source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
2906
+ ghUsername: z.ZodOptional<z.ZodString>;
2907
+ ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
2908
+ commitAuthorName: z.ZodOptional<z.ZodString>;
2909
+ commitMessage: z.ZodOptional<z.ZodString>;
2910
+ commitRef: z.ZodOptional<z.ZodString>;
2911
+ commitSha: z.ZodOptional<z.ZodString>;
2912
+ dirty: z.ZodOptional<z.ZodBoolean>;
2913
+ remoteUrl: z.ZodOptional<z.ZodString>;
2914
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
2915
+ pullRequestTitle: z.ZodOptional<z.ZodString>;
2916
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
2917
+ }, "strip", z.ZodTypeAny, {
2918
+ dirty?: boolean | undefined;
2919
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
2920
+ provider?: string | undefined;
2921
+ ghUsername?: string | undefined;
2922
+ ghUserAvatarUrl?: string | undefined;
2923
+ commitAuthorName?: string | undefined;
2924
+ commitMessage?: string | undefined;
2925
+ commitRef?: string | undefined;
2926
+ commitSha?: string | undefined;
2927
+ remoteUrl?: string | undefined;
2928
+ pullRequestNumber?: number | undefined;
2929
+ pullRequestTitle?: string | undefined;
2930
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2931
+ }, {
2932
+ dirty?: boolean | undefined;
2933
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
2934
+ provider?: string | undefined;
2935
+ ghUsername?: string | undefined;
2936
+ ghUserAvatarUrl?: string | undefined;
2937
+ commitAuthorName?: string | undefined;
2938
+ commitMessage?: string | undefined;
2939
+ commitRef?: string | undefined;
2940
+ commitSha?: string | undefined;
2941
+ remoteUrl?: string | undefined;
2942
+ pullRequestNumber?: number | undefined;
2943
+ pullRequestTitle?: string | undefined;
2944
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2945
+ }>>;
2946
+ type: z.ZodOptional<z.ZodEnum<["MANAGED", "UNMANAGED", "V1"]>>;
2947
+ runtime: z.ZodOptional<z.ZodString>;
2948
+ initialStatus: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING"]>>;
2949
+ isLocalBuild: z.ZodOptional<z.ZodBoolean>;
2950
+ triggeredVia: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["cli:manual", "cli:ci_other", "cli:github_actions", "cli:gitlab_ci", "cli:circleci", "cli:jenkins", "cli:azure_pipelines", "cli:bitbucket_pipelines", "cli:travis_ci", "cli:buildkite", "git_integration:github", "dashboard"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
2951
+ buildId: z.ZodOptional<z.ZodString>;
2952
+ } & {
2953
+ isNativeBuild: z.ZodDefault<z.ZodBoolean>;
2954
+ skipPromotion: z.ZodOptional<z.ZodBoolean>;
2955
+ artifactKey: z.ZodOptional<z.ZodString>;
2801
2956
  configFilePath: z.ZodOptional<z.ZodString>;
2957
+ skipEnqueue: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2802
2958
  }, "strip", z.ZodTypeAny, {
2803
- skipPromotion: boolean;
2804
- isNativeBuild: true;
2805
- artifactKey: string;
2959
+ contentHash: string;
2960
+ isNativeBuild: boolean;
2961
+ skipEnqueue: boolean;
2962
+ type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
2963
+ runtime?: string | undefined;
2964
+ userId?: string | undefined;
2965
+ selfHosted?: boolean | undefined;
2966
+ skipPromotion?: boolean | undefined;
2967
+ buildId?: string | undefined;
2968
+ artifactKey?: string | undefined;
2806
2969
  configFilePath?: string | undefined;
2970
+ gitMeta?: {
2971
+ dirty?: boolean | undefined;
2972
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
2973
+ provider?: string | undefined;
2974
+ ghUsername?: string | undefined;
2975
+ ghUserAvatarUrl?: string | undefined;
2976
+ commitAuthorName?: string | undefined;
2977
+ commitMessage?: string | undefined;
2978
+ commitRef?: string | undefined;
2979
+ commitSha?: string | undefined;
2980
+ remoteUrl?: string | undefined;
2981
+ pullRequestNumber?: number | undefined;
2982
+ pullRequestTitle?: string | undefined;
2983
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2984
+ } | undefined;
2985
+ initialStatus?: "PENDING" | "BUILDING" | undefined;
2986
+ isLocalBuild?: boolean | undefined;
2987
+ triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | "dashboard" | undefined;
2807
2988
  }, {
2808
- skipPromotion: boolean;
2809
- isNativeBuild: true;
2810
- artifactKey: string;
2989
+ contentHash: string;
2990
+ type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
2991
+ runtime?: string | undefined;
2992
+ userId?: string | undefined;
2993
+ selfHosted?: boolean | undefined;
2994
+ skipPromotion?: boolean | undefined;
2995
+ buildId?: string | undefined;
2996
+ isNativeBuild?: boolean | undefined;
2997
+ artifactKey?: string | undefined;
2811
2998
  configFilePath?: string | undefined;
2812
- }>, z.ZodObject<{
2813
- isNativeBuild: z.ZodLiteral<false>;
2814
- }, "strip", z.ZodTypeAny, {
2815
- isNativeBuild: false;
2816
- }, {
2817
- isNativeBuild: false;
2818
- }>]>, {
2819
- skipPromotion: boolean;
2820
- isNativeBuild: true;
2821
- artifactKey: string;
2999
+ skipEnqueue?: boolean | undefined;
3000
+ gitMeta?: {
3001
+ dirty?: boolean | undefined;
3002
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
3003
+ provider?: string | undefined;
3004
+ ghUsername?: string | undefined;
3005
+ ghUserAvatarUrl?: string | undefined;
3006
+ commitAuthorName?: string | undefined;
3007
+ commitMessage?: string | undefined;
3008
+ commitRef?: string | undefined;
3009
+ commitSha?: string | undefined;
3010
+ remoteUrl?: string | undefined;
3011
+ pullRequestNumber?: number | undefined;
3012
+ pullRequestTitle?: string | undefined;
3013
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
3014
+ } | undefined;
3015
+ initialStatus?: "PENDING" | "BUILDING" | undefined;
3016
+ isLocalBuild?: boolean | undefined;
3017
+ triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | "dashboard" | undefined;
3018
+ }>, NativeBuildOutput | NonNativeBuildOutput, {
3019
+ contentHash: string;
3020
+ type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
3021
+ runtime?: string | undefined;
3022
+ userId?: string | undefined;
3023
+ selfHosted?: boolean | undefined;
3024
+ skipPromotion?: boolean | undefined;
3025
+ buildId?: string | undefined;
3026
+ isNativeBuild?: boolean | undefined;
3027
+ artifactKey?: string | undefined;
2822
3028
  configFilePath?: string | undefined;
2823
- } | {
2824
- isNativeBuild: false;
2825
- }, unknown>>;
3029
+ skipEnqueue?: boolean | undefined;
3030
+ gitMeta?: {
3031
+ dirty?: boolean | undefined;
3032
+ source?: "trigger_github_app" | "github_actions" | "local" | undefined;
3033
+ provider?: string | undefined;
3034
+ ghUsername?: string | undefined;
3035
+ ghUserAvatarUrl?: string | undefined;
3036
+ commitAuthorName?: string | undefined;
3037
+ commitMessage?: string | undefined;
3038
+ commitRef?: string | undefined;
3039
+ commitSha?: string | undefined;
3040
+ remoteUrl?: string | undefined;
3041
+ pullRequestNumber?: number | undefined;
3042
+ pullRequestTitle?: string | undefined;
3043
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
3044
+ } | undefined;
3045
+ initialStatus?: "PENDING" | "BUILDING" | undefined;
3046
+ isLocalBuild?: boolean | undefined;
3047
+ triggeredVia?: (string & {}) | "cli:manual" | "cli:ci_other" | "cli:github_actions" | "cli:gitlab_ci" | "cli:circleci" | "cli:jenkins" | "cli:azure_pipelines" | "cli:bitbucket_pipelines" | "cli:travis_ci" | "cli:buildkite" | "git_integration:github" | "dashboard" | undefined;
3048
+ }>;
2826
3049
  export type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
2827
3050
  export declare const RemoteBuildProviderStatusResponseBody: z.ZodObject<{
2828
3051
  status: z.ZodEnum<["operational", "degraded", "unknown"]>;
@@ -2932,6 +3155,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2932
3155
  version: z.ZodString;
2933
3156
  imageReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2934
3157
  imagePlatform: z.ZodString;
3158
+ commitSHA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2935
3159
  externalBuildData: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2936
3160
  buildId: z.ZodString;
2937
3161
  buildToken: z.ZodString;
@@ -2999,6 +3223,25 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2999
3223
  exportName?: string | undefined;
3000
3224
  }[];
3001
3225
  }>>;
3226
+ integrationDeployments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3227
+ id: z.ZodString;
3228
+ integrationName: z.ZodString;
3229
+ integrationDeploymentId: z.ZodString;
3230
+ commitSHA: z.ZodString;
3231
+ createdAt: z.ZodDate;
3232
+ }, "strip", z.ZodTypeAny, {
3233
+ id: string;
3234
+ createdAt: Date;
3235
+ commitSHA: string;
3236
+ integrationName: string;
3237
+ integrationDeploymentId: string;
3238
+ }, {
3239
+ id: string;
3240
+ createdAt: Date;
3241
+ commitSHA: string;
3242
+ integrationName: string;
3243
+ integrationDeploymentId: string;
3244
+ }>, "many">>>;
3002
3245
  }, "strip", z.ZodTypeAny, {
3003
3246
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "INSTALLING" | "DEPLOYING" | "DEPLOYED";
3004
3247
  id: string;
@@ -3022,12 +3265,20 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
3022
3265
  buildId: string;
3023
3266
  buildToken: string;
3024
3267
  } | null | undefined;
3268
+ commitSHA?: string | null | undefined;
3025
3269
  errorData?: {
3026
3270
  message: string;
3027
3271
  name: string;
3028
3272
  stack?: string | undefined;
3029
3273
  stderr?: string | undefined;
3030
3274
  } | null | undefined;
3275
+ integrationDeployments?: {
3276
+ id: string;
3277
+ createdAt: Date;
3278
+ commitSHA: string;
3279
+ integrationName: string;
3280
+ integrationDeploymentId: string;
3281
+ }[] | null | undefined;
3031
3282
  }, {
3032
3283
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "INSTALLING" | "DEPLOYING" | "DEPLOYED";
3033
3284
  id: string;
@@ -3051,12 +3302,20 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
3051
3302
  buildId: string;
3052
3303
  buildToken: string;
3053
3304
  } | null | undefined;
3305
+ commitSHA?: string | null | undefined;
3054
3306
  errorData?: {
3055
3307
  message: string;
3056
3308
  name: string;
3057
3309
  stack?: string | undefined;
3058
3310
  stderr?: string | undefined;
3059
3311
  } | null | undefined;
3312
+ integrationDeployments?: {
3313
+ id: string;
3314
+ createdAt: Date;
3315
+ commitSHA: string;
3316
+ integrationName: string;
3317
+ integrationDeploymentId: string;
3318
+ }[] | null | undefined;
3060
3319
  }>;
3061
3320
  export type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
3062
3321
  export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
@@ -3067,6 +3326,7 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
3067
3326
  version: z.ZodString;
3068
3327
  imageReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3069
3328
  imagePlatform: z.ZodString;
3329
+ commitSHA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3070
3330
  externalBuildData: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3071
3331
  buildId: z.ZodString;
3072
3332
  buildToken: z.ZodString;
@@ -3134,6 +3394,25 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
3134
3394
  exportName?: string | undefined;
3135
3395
  }[];
3136
3396
  }>>;
3397
+ integrationDeployments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3398
+ id: z.ZodString;
3399
+ integrationName: z.ZodString;
3400
+ integrationDeploymentId: z.ZodString;
3401
+ commitSHA: z.ZodString;
3402
+ createdAt: z.ZodDate;
3403
+ }, "strip", z.ZodTypeAny, {
3404
+ id: string;
3405
+ createdAt: Date;
3406
+ commitSHA: string;
3407
+ integrationName: string;
3408
+ integrationDeploymentId: string;
3409
+ }, {
3410
+ id: string;
3411
+ createdAt: Date;
3412
+ commitSHA: string;
3413
+ integrationName: string;
3414
+ integrationDeploymentId: string;
3415
+ }>, "many">>>;
3137
3416
  }, "worker">, "strip", z.ZodTypeAny, {
3138
3417
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "INSTALLING" | "DEPLOYING" | "DEPLOYED";
3139
3418
  id: string;
@@ -3147,12 +3426,20 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
3147
3426
  buildId: string;
3148
3427
  buildToken: string;
3149
3428
  } | null | undefined;
3429
+ commitSHA?: string | null | undefined;
3150
3430
  errorData?: {
3151
3431
  message: string;
3152
3432
  name: string;
3153
3433
  stack?: string | undefined;
3154
3434
  stderr?: string | undefined;
3155
3435
  } | null | undefined;
3436
+ integrationDeployments?: {
3437
+ id: string;
3438
+ createdAt: Date;
3439
+ commitSHA: string;
3440
+ integrationName: string;
3441
+ integrationDeploymentId: string;
3442
+ }[] | null | undefined;
3156
3443
  }, {
3157
3444
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "INSTALLING" | "DEPLOYING" | "DEPLOYED";
3158
3445
  id: string;
@@ -3166,12 +3453,20 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
3166
3453
  buildId: string;
3167
3454
  buildToken: string;
3168
3455
  } | null | undefined;
3456
+ commitSHA?: string | null | undefined;
3169
3457
  errorData?: {
3170
3458
  message: string;
3171
3459
  name: string;
3172
3460
  stack?: string | undefined;
3173
3461
  stderr?: string | undefined;
3174
3462
  } | null | undefined;
3463
+ integrationDeployments?: {
3464
+ id: string;
3465
+ createdAt: Date;
3466
+ commitSHA: string;
3467
+ integrationName: string;
3468
+ integrationDeploymentId: string;
3469
+ }[] | null | undefined;
3175
3470
  }>;
3176
3471
  export type GetLatestDeploymentResponseBody = z.infer<typeof GetLatestDeploymentResponseBody>;
3177
3472
  export declare const DeploymentLogEvent: z.ZodObject<{
@@ -5752,12 +6047,45 @@ export declare const ImportEnvironmentVariablesRequestBody: z.ZodObject<{
5752
6047
  variables: z.ZodRecord<z.ZodString, z.ZodString>;
5753
6048
  parentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5754
6049
  override: z.ZodOptional<z.ZodBoolean>;
6050
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6051
+ type: z.ZodLiteral<"user">;
6052
+ userId: z.ZodString;
6053
+ }, "strip", z.ZodTypeAny, {
6054
+ type: "user";
6055
+ userId: string;
6056
+ }, {
6057
+ type: "user";
6058
+ userId: string;
6059
+ }>, z.ZodObject<{
6060
+ type: z.ZodLiteral<"integration">;
6061
+ integration: z.ZodString;
6062
+ }, "strip", z.ZodTypeAny, {
6063
+ type: "integration";
6064
+ integration: string;
6065
+ }, {
6066
+ type: "integration";
6067
+ integration: string;
6068
+ }>]>>;
5755
6069
  }, "strip", z.ZodTypeAny, {
5756
6070
  variables: Record<string, string>;
6071
+ source?: {
6072
+ type: "user";
6073
+ userId: string;
6074
+ } | {
6075
+ type: "integration";
6076
+ integration: string;
6077
+ } | undefined;
5757
6078
  parentVariables?: Record<string, string> | undefined;
5758
6079
  override?: boolean | undefined;
5759
6080
  }, {
5760
6081
  variables: Record<string, string>;
6082
+ source?: {
6083
+ type: "user";
6084
+ userId: string;
6085
+ } | {
6086
+ type: "integration";
6087
+ integration: string;
6088
+ } | undefined;
5761
6089
  parentVariables?: Record<string, string> | undefined;
5762
6090
  override?: boolean | undefined;
5763
6091
  }>;
@@ -7125,3 +7453,4 @@ export declare const AppendToStreamResponseBody: z.ZodObject<{
7125
7453
  message?: string | undefined;
7126
7454
  }>;
7127
7455
  export type AppendToStreamResponseBody = z.infer<typeof AppendToStreamResponseBody>;
7456
+ export {};