@activepieces/shared 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/package.json +4 -4
  2. package/src/index.js +0 -4
  3. package/src/index.js.map +1 -1
  4. package/src/lib/automation/agents/index.d.ts +105 -118
  5. package/src/lib/automation/agents/index.js +23 -22
  6. package/src/lib/automation/agents/index.js.map +1 -1
  7. package/src/lib/automation/agents/mcp-tool-name-util.d.ts +15 -0
  8. package/src/lib/automation/agents/mcp-tool-name-util.js +40 -0
  9. package/src/lib/automation/agents/mcp-tool-name-util.js.map +1 -0
  10. package/src/lib/automation/agents/tools.d.ts +141 -144
  11. package/src/lib/automation/agents/tools.js +30 -43
  12. package/src/lib/automation/agents/tools.js.map +1 -1
  13. package/src/lib/automation/app-connection/app-connection.d.ts +40 -42
  14. package/src/lib/automation/app-connection/app-connection.js +6 -8
  15. package/src/lib/automation/app-connection/app-connection.js.map +1 -1
  16. package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +28 -28
  17. package/src/lib/automation/app-connection/dto/read-app-connection-request.js +15 -14
  18. package/src/lib/automation/app-connection/dto/read-app-connection-request.js.map +1 -1
  19. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +365 -365
  20. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js +61 -102
  21. package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js.map +1 -1
  22. package/src/lib/automation/engine/engine-operation.d.ts +21 -21
  23. package/src/lib/automation/engine/engine-operation.js +14 -14
  24. package/src/lib/automation/engine/engine-operation.js.map +1 -1
  25. package/src/lib/automation/engine/execution-errors.d.ts +3 -0
  26. package/src/lib/automation/engine/execution-errors.js +7 -1
  27. package/src/lib/automation/engine/execution-errors.js.map +1 -1
  28. package/src/lib/automation/engine/requests.d.ts +88 -88
  29. package/src/lib/automation/engine/requests.js +35 -35
  30. package/src/lib/automation/engine/requests.js.map +1 -1
  31. package/src/lib/automation/flow-run/dto/list-flow-runs-request.d.ts +15 -15
  32. package/src/lib/automation/flow-run/dto/list-flow-runs-request.js +13 -12
  33. package/src/lib/automation/flow-run/dto/list-flow-runs-request.js.map +1 -1
  34. package/src/lib/automation/flow-run/execution/execution-output.d.ts +5 -4
  35. package/src/lib/automation/flow-run/execution/execution-output.js +4 -4
  36. package/src/lib/automation/flow-run/execution/execution-output.js.map +1 -1
  37. package/src/lib/automation/flow-run/execution/flow-execution.d.ts +55 -54
  38. package/src/lib/automation/flow-run/execution/flow-execution.js +24 -22
  39. package/src/lib/automation/flow-run/execution/flow-execution.js.map +1 -1
  40. package/src/lib/automation/flow-run/flow-run.d.ts +54 -56
  41. package/src/lib/automation/flow-run/flow-run.js +12 -12
  42. package/src/lib/automation/flow-run/flow-run.js.map +1 -1
  43. package/src/lib/automation/flow-run/test-flow-run-request.d.ts +43 -43
  44. package/src/lib/automation/flow-run/test-flow-run-request.js +31 -31
  45. package/src/lib/automation/flow-run/test-flow-run-request.js.map +1 -1
  46. package/src/lib/automation/flows/actions/action.d.ts +483 -571
  47. package/src/lib/automation/flows/actions/action.js +113 -118
  48. package/src/lib/automation/flows/actions/action.js.map +1 -1
  49. package/src/lib/automation/flows/dto/count-flows-request.d.ts +6 -6
  50. package/src/lib/automation/flows/dto/count-flows-request.js +4 -4
  51. package/src/lib/automation/flows/dto/count-flows-request.js.map +1 -1
  52. package/src/lib/automation/flows/dto/create-flow-request.d.ts +10 -11
  53. package/src/lib/automation/flows/dto/create-flow-request.js +8 -8
  54. package/src/lib/automation/flows/dto/create-flow-request.js.map +1 -1
  55. package/src/lib/automation/flows/dto/flow-mcp.requests.d.ts +7 -7
  56. package/src/lib/automation/flows/dto/flow-mcp.requests.js +5 -5
  57. package/src/lib/automation/flows/dto/flow-mcp.requests.js.map +1 -1
  58. package/src/lib/automation/flows/dto/list-flows-request.d.ts +23 -23
  59. package/src/lib/automation/flows/dto/list-flows-request.js +18 -17
  60. package/src/lib/automation/flows/dto/list-flows-request.js.map +1 -1
  61. package/src/lib/automation/flows/flow-version.d.ts +89 -91
  62. package/src/lib/automation/flows/flow-version.js +4 -4
  63. package/src/lib/automation/flows/flow-version.js.map +1 -1
  64. package/src/lib/automation/flows/flow.d.ts +135 -143
  65. package/src/lib/automation/flows/flow.js +9 -15
  66. package/src/lib/automation/flows/flow.js.map +1 -1
  67. package/src/lib/automation/flows/folders/folder-requests.d.ts +20 -20
  68. package/src/lib/automation/flows/folders/folder-requests.js +12 -12
  69. package/src/lib/automation/flows/folders/folder-requests.js.map +1 -1
  70. package/src/lib/automation/flows/folders/folder.d.ts +10 -10
  71. package/src/lib/automation/flows/folders/folder.js +2 -2
  72. package/src/lib/automation/flows/folders/folder.js.map +1 -1
  73. package/src/lib/automation/flows/form.d.ts +49 -49
  74. package/src/lib/automation/flows/form.js +22 -22
  75. package/src/lib/automation/flows/form.js.map +1 -1
  76. package/src/lib/automation/flows/note.d.ts +18 -18
  77. package/src/lib/automation/flows/note.js +14 -14
  78. package/src/lib/automation/flows/note.js.map +1 -1
  79. package/src/lib/automation/flows/operations/add-action.js +2 -3
  80. package/src/lib/automation/flows/operations/add-action.js.map +1 -1
  81. package/src/lib/automation/flows/operations/index.d.ts +1117 -1133
  82. package/src/lib/automation/flows/operations/index.js +132 -178
  83. package/src/lib/automation/flows/operations/index.js.map +1 -1
  84. package/src/lib/automation/flows/operations/paste-operations.d.ts +205 -217
  85. package/src/lib/automation/flows/operations/update-action.js +2 -3
  86. package/src/lib/automation/flows/operations/update-action.js.map +1 -1
  87. package/src/lib/automation/flows/operations/update-trigger.js +2 -3
  88. package/src/lib/automation/flows/operations/update-trigger.js.map +1 -1
  89. package/src/lib/automation/flows/properties/property.d.ts +6 -6
  90. package/src/lib/automation/flows/properties/property.js +4 -4
  91. package/src/lib/automation/flows/properties/property.js.map +1 -1
  92. package/src/lib/automation/flows/sample-data/index.d.ts +46 -46
  93. package/src/lib/automation/flows/sample-data/index.js +31 -33
  94. package/src/lib/automation/flows/sample-data/index.js.map +1 -1
  95. package/src/lib/automation/flows/step-file/step-file.d.ts +16 -16
  96. package/src/lib/automation/flows/step-file/step-file.js +10 -10
  97. package/src/lib/automation/flows/step-file/step-file.js.map +1 -1
  98. package/src/lib/automation/flows/test-trigger.d.ts +13 -13
  99. package/src/lib/automation/flows/test-trigger.js +4 -4
  100. package/src/lib/automation/flows/test-trigger.js.map +1 -1
  101. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +18 -18
  102. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js +10 -13
  103. package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js.map +1 -1
  104. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.d.ts +14 -14
  105. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js +8 -8
  106. package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js.map +1 -1
  107. package/src/lib/automation/flows/triggers/trigger-run.d.ts +11 -11
  108. package/src/lib/automation/flows/triggers/trigger-run.js +7 -7
  109. package/src/lib/automation/flows/triggers/trigger-run.js.map +1 -1
  110. package/src/lib/automation/flows/triggers/trigger.d.ts +82 -82
  111. package/src/lib/automation/flows/triggers/trigger.js +15 -15
  112. package/src/lib/automation/flows/triggers/trigger.js.map +1 -1
  113. package/src/lib/automation/flows/util/flow-structure-util.d.ts +5 -5
  114. package/src/lib/automation/forms/index.d.ts +42 -42
  115. package/src/lib/automation/forms/index.js +21 -21
  116. package/src/lib/automation/forms/index.js.map +1 -1
  117. package/src/lib/automation/mcp/mcp.d.ts +105 -109
  118. package/src/lib/automation/mcp/mcp.js +7 -7
  119. package/src/lib/automation/mcp/mcp.js.map +1 -1
  120. package/src/lib/automation/mcp/pieces/mcp-piece.d.ts +24 -24
  121. package/src/lib/automation/mcp/pieces/mcp-piece.js +14 -14
  122. package/src/lib/automation/mcp/pieces/mcp-piece.js.map +1 -1
  123. package/src/lib/automation/pieces/dto/piece-requests.d.ts +67 -67
  124. package/src/lib/automation/pieces/dto/piece-requests.js +47 -58
  125. package/src/lib/automation/pieces/dto/piece-requests.js.map +1 -1
  126. package/src/lib/automation/pieces/piece.d.ts +56 -56
  127. package/src/lib/automation/pieces/piece.js +21 -21
  128. package/src/lib/automation/pieces/piece.js.map +1 -1
  129. package/src/lib/automation/project-release/project-release.d.ts +27 -27
  130. package/src/lib/automation/project-release/project-release.js +2 -2
  131. package/src/lib/automation/project-release/project-release.js.map +1 -1
  132. package/src/lib/automation/project-release/project-release.request.d.ts +65 -65
  133. package/src/lib/automation/project-release/project-release.request.js +25 -25
  134. package/src/lib/automation/project-release/project-release.request.js.map +1 -1
  135. package/src/lib/automation/project-release/project-state.d.ts +1246 -1286
  136. package/src/lib/automation/project-release/project-state.js +73 -73
  137. package/src/lib/automation/project-release/project-state.js.map +1 -1
  138. package/src/lib/automation/tables/cell.d.ts +11 -11
  139. package/src/lib/automation/tables/cell.js +2 -2
  140. package/src/lib/automation/tables/cell.js.map +1 -1
  141. package/src/lib/automation/tables/dto/fields.dto.d.ts +26 -26
  142. package/src/lib/automation/tables/dto/fields.dto.js +18 -18
  143. package/src/lib/automation/tables/dto/fields.dto.js.map +1 -1
  144. package/src/lib/automation/tables/dto/records.dto.d.ts +40 -40
  145. package/src/lib/automation/tables/dto/records.dto.js +26 -25
  146. package/src/lib/automation/tables/dto/records.dto.js.map +1 -1
  147. package/src/lib/automation/tables/dto/tables.dto.d.ts +55 -46
  148. package/src/lib/automation/tables/dto/tables.dto.js +35 -25
  149. package/src/lib/automation/tables/dto/tables.dto.js.map +1 -1
  150. package/src/lib/automation/tables/field.d.ts +26 -26
  151. package/src/lib/automation/tables/field.js +5 -5
  152. package/src/lib/automation/tables/field.js.map +1 -1
  153. package/src/lib/automation/tables/record.d.ts +23 -23
  154. package/src/lib/automation/tables/record.js +7 -13
  155. package/src/lib/automation/tables/record.js.map +1 -1
  156. package/src/lib/automation/tables/table-webhook.d.ts +11 -11
  157. package/src/lib/automation/tables/table-webhook.js +2 -2
  158. package/src/lib/automation/tables/table-webhook.js.map +1 -1
  159. package/src/lib/automation/tables/table.d.ts +49 -47
  160. package/src/lib/automation/tables/table.js +5 -8
  161. package/src/lib/automation/tables/table.js.map +1 -1
  162. package/src/lib/automation/trigger/index.d.ts +32 -32
  163. package/src/lib/automation/trigger/index.js +9 -9
  164. package/src/lib/automation/trigger/index.js.map +1 -1
  165. package/src/lib/automation/webhook/dto.d.ts +5 -5
  166. package/src/lib/automation/webhook/dto.js +2 -2
  167. package/src/lib/automation/webhook/dto.js.map +1 -1
  168. package/src/lib/automation/websocket/index.d.ts +6 -6
  169. package/src/lib/automation/websocket/index.js +4 -4
  170. package/src/lib/automation/websocket/index.js.map +1 -1
  171. package/src/lib/automation/workers/index.d.ts +365 -367
  172. package/src/lib/automation/workers/index.js +75 -75
  173. package/src/lib/automation/workers/index.js.map +1 -1
  174. package/src/lib/automation/workers/job-data.d.ts +773 -781
  175. package/src/lib/automation/workers/job-data.js +106 -106
  176. package/src/lib/automation/workers/job-data.js.map +1 -1
  177. package/src/lib/automation/workers/queue-metrics.d.ts +25 -25
  178. package/src/lib/automation/workers/queue-metrics.js +11 -11
  179. package/src/lib/automation/workers/queue-metrics.js.map +1 -1
  180. package/src/lib/core/authentication/dto/authentication-response.d.ts +25 -25
  181. package/src/lib/core/authentication/dto/authentication-response.js +6 -10
  182. package/src/lib/core/authentication/dto/authentication-response.js.map +1 -1
  183. package/src/lib/core/authentication/dto/sign-in-request.d.ts +6 -6
  184. package/src/lib/core/authentication/dto/sign-in-request.js +2 -2
  185. package/src/lib/core/authentication/dto/sign-in-request.js.map +1 -1
  186. package/src/lib/core/authentication/dto/sign-up-request.d.ts +14 -14
  187. package/src/lib/core/authentication/dto/sign-up-request.js +7 -11
  188. package/src/lib/core/authentication/dto/sign-up-request.js.map +1 -1
  189. package/src/lib/core/authentication/user-identity.d.ts +17 -17
  190. package/src/lib/core/authentication/user-identity.js +2 -2
  191. package/src/lib/core/authentication/user-identity.js.map +1 -1
  192. package/src/lib/core/common/activepieces-error.d.ts +6 -1
  193. package/src/lib/core/common/activepieces-error.js +1 -0
  194. package/src/lib/core/common/activepieces-error.js.map +1 -1
  195. package/src/lib/core/common/base-model.d.ts +9 -22
  196. package/src/lib/core/common/base-model.js +12 -21
  197. package/src/lib/core/common/base-model.js.map +1 -1
  198. package/src/lib/core/common/color.d.ts +3 -3
  199. package/src/lib/core/common/color.js +2 -4
  200. package/src/lib/core/common/color.js.map +1 -1
  201. package/src/lib/core/common/id-generator.d.ts +3 -3
  202. package/src/lib/core/common/id-generator.js +2 -4
  203. package/src/lib/core/common/id-generator.js.map +1 -1
  204. package/src/lib/core/common/metadata.d.ts +3 -3
  205. package/src/lib/core/common/metadata.js +2 -2
  206. package/src/lib/core/common/metadata.js.map +1 -1
  207. package/src/lib/core/common/multipart-file.d.ts +8 -8
  208. package/src/lib/core/common/multipart-file.js +6 -6
  209. package/src/lib/core/common/multipart-file.js.map +1 -1
  210. package/src/lib/core/common/seek-page.d.ts +2 -2
  211. package/src/lib/core/common/seek-page.js +5 -5
  212. package/src/lib/core/common/seek-page.js.map +1 -1
  213. package/src/lib/core/federated-authn/index.d.ts +50 -50
  214. package/src/lib/core/federated-authn/index.js +20 -20
  215. package/src/lib/core/federated-authn/index.js.map +1 -1
  216. package/src/lib/core/file/index.d.ts +17 -17
  217. package/src/lib/core/file/index.js +2 -2
  218. package/src/lib/core/file/index.js.map +1 -1
  219. package/src/lib/core/flag/flag.requests.d.ts +5 -5
  220. package/src/lib/core/flag/flag.requests.js +3 -3
  221. package/src/lib/core/flag/flag.requests.js.map +1 -1
  222. package/src/lib/core/health/index.d.ts +8 -8
  223. package/src/lib/core/health/index.js +6 -6
  224. package/src/lib/core/health/index.js.map +1 -1
  225. package/src/lib/core/license-keys/index.d.ts +58 -58
  226. package/src/lib/core/license-keys/index.js +35 -35
  227. package/src/lib/core/license-keys/index.js.map +1 -1
  228. package/src/lib/core/store-entry/dto/store-entry-request.d.ts +14 -14
  229. package/src/lib/core/store-entry/dto/store-entry-request.js +8 -10
  230. package/src/lib/core/store-entry/dto/store-entry-request.js.map +1 -1
  231. package/src/lib/core/tag/index.d.ts +32 -32
  232. package/src/lib/core/tag/index.js +11 -11
  233. package/src/lib/core/tag/index.js.map +1 -1
  234. package/src/lib/core/user/badges/index.d.ts +9 -9
  235. package/src/lib/core/user/badges/index.js +2 -2
  236. package/src/lib/core/user/badges/index.js.map +1 -1
  237. package/src/lib/core/user/index.d.ts +13 -13
  238. package/src/lib/core/user/index.js +9 -9
  239. package/src/lib/core/user/index.js.map +1 -1
  240. package/src/lib/core/user/user.d.ts +62 -62
  241. package/src/lib/core/user/user.js +27 -32
  242. package/src/lib/core/user/user.js.map +1 -1
  243. package/src/lib/ee/alerts/alerts-dto.d.ts +10 -10
  244. package/src/lib/ee/alerts/alerts-dto.js +2 -2
  245. package/src/lib/ee/alerts/alerts-dto.js.map +1 -1
  246. package/src/lib/ee/alerts/alerts-requests.d.ts +13 -13
  247. package/src/lib/ee/alerts/alerts-requests.js +7 -7
  248. package/src/lib/ee/alerts/alerts-requests.js.map +1 -1
  249. package/src/lib/ee/api-key/index.d.ts +37 -37
  250. package/src/lib/ee/api-key/index.js +8 -11
  251. package/src/lib/ee/api-key/index.js.map +1 -1
  252. package/src/lib/ee/audit-events/index.d.ts +1499 -1487
  253. package/src/lib/ee/audit-events/index.js +140 -113
  254. package/src/lib/ee/audit-events/index.js.map +1 -1
  255. package/src/lib/ee/authn/enterprise-local-authn/requests.d.ts +21 -21
  256. package/src/lib/ee/authn/enterprise-local-authn/requests.js +9 -12
  257. package/src/lib/ee/authn/enterprise-local-authn/requests.js.map +1 -1
  258. package/src/lib/ee/billing/index.d.ts +23 -23
  259. package/src/lib/ee/billing/index.js +15 -15
  260. package/src/lib/ee/billing/index.js.map +1 -1
  261. package/src/lib/ee/custom-domains/index.d.ts +19 -19
  262. package/src/lib/ee/custom-domains/index.js +7 -9
  263. package/src/lib/ee/custom-domains/index.js.map +1 -1
  264. package/src/lib/ee/event-destinations/dto.d.ts +20 -20
  265. package/src/lib/ee/event-destinations/dto.js +9 -9
  266. package/src/lib/ee/event-destinations/dto.js.map +1 -1
  267. package/src/lib/ee/event-destinations/index.d.ts +29 -29
  268. package/src/lib/ee/event-destinations/index.js +5 -5
  269. package/src/lib/ee/event-destinations/index.js.map +1 -1
  270. package/src/lib/ee/git-repo/index.d.ts +63 -63
  271. package/src/lib/ee/git-repo/index.js +22 -38
  272. package/src/lib/ee/git-repo/index.js.map +1 -1
  273. package/src/lib/ee/managed-authn/managed-authn-requests.d.ts +5 -5
  274. package/src/lib/ee/managed-authn/managed-authn-requests.js +4 -4
  275. package/src/lib/ee/managed-authn/managed-authn-requests.js.map +1 -1
  276. package/src/lib/ee/oauth-apps/oauth-app.d.ts +21 -21
  277. package/src/lib/ee/oauth-apps/oauth-app.js +9 -9
  278. package/src/lib/ee/oauth-apps/oauth-app.js.map +1 -1
  279. package/src/lib/ee/otp/otp-model.d.ts +11 -11
  280. package/src/lib/ee/otp/otp-model.js +2 -2
  281. package/src/lib/ee/otp/otp-model.js.map +1 -1
  282. package/src/lib/ee/otp/otp-requests.d.ts +6 -6
  283. package/src/lib/ee/otp/otp-requests.js +4 -4
  284. package/src/lib/ee/otp/otp-requests.js.map +1 -1
  285. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.d.ts +50 -50
  286. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js +24 -24
  287. package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js.map +1 -1
  288. package/src/lib/ee/product-embed/connection-keys/connection-requests.d.ts +46 -46
  289. package/src/lib/ee/product-embed/connection-keys/connection-requests.js +24 -24
  290. package/src/lib/ee/product-embed/connection-keys/connection-requests.js.map +1 -1
  291. package/src/lib/ee/project-members/project-member-request.d.ts +24 -24
  292. package/src/lib/ee/project-members/project-member-request.js +14 -14
  293. package/src/lib/ee/project-members/project-member-request.js.map +1 -1
  294. package/src/lib/ee/project-members/project-member.d.ts +49 -49
  295. package/src/lib/ee/project-members/project-member.js +6 -8
  296. package/src/lib/ee/project-members/project-member.js.map +1 -1
  297. package/src/lib/ee/scim/index.d.ts +167 -172
  298. package/src/lib/ee/scim/index.js +79 -79
  299. package/src/lib/ee/scim/index.js.map +1 -1
  300. package/src/lib/ee/secret-managers/dto.d.ts +59 -59
  301. package/src/lib/ee/secret-managers/dto.js +28 -29
  302. package/src/lib/ee/secret-managers/dto.js.map +1 -1
  303. package/src/lib/ee/secret-managers/index.d.ts +160 -208
  304. package/src/lib/ee/secret-managers/index.js +27 -27
  305. package/src/lib/ee/secret-managers/index.js.map +1 -1
  306. package/src/lib/ee/signing-key/signing-key-model.d.ts +11 -11
  307. package/src/lib/ee/signing-key/signing-key-model.js +3 -3
  308. package/src/lib/ee/signing-key/signing-key-model.js.map +1 -1
  309. package/src/lib/ee/signing-key/signing-key.request.d.ts +5 -5
  310. package/src/lib/ee/signing-key/signing-key.request.js +3 -3
  311. package/src/lib/ee/signing-key/signing-key.request.js.map +1 -1
  312. package/src/lib/management/ai-providers/index.d.ts +412 -419
  313. package/src/lib/management/ai-providers/index.js +74 -84
  314. package/src/lib/management/ai-providers/index.js.map +1 -1
  315. package/src/lib/management/analytics/index.d.ts +91 -91
  316. package/src/lib/management/analytics/index.js +29 -29
  317. package/src/lib/management/analytics/index.js.map +1 -1
  318. package/src/lib/management/invitations/index.d.ts +71 -71
  319. package/src/lib/management/invitations/index.js +23 -23
  320. package/src/lib/management/invitations/index.js.map +1 -1
  321. package/src/lib/management/platform/platform.model.d.ts +264 -270
  322. package/src/lib/management/platform/platform.model.js +39 -41
  323. package/src/lib/management/platform/platform.model.js.map +1 -1
  324. package/src/lib/management/platform/platform.request.d.ts +66 -66
  325. package/src/lib/management/platform/platform.request.js +28 -30
  326. package/src/lib/management/platform/platform.request.js.map +1 -1
  327. package/src/lib/management/project/project-requests.d.ts +32 -34
  328. package/src/lib/management/project/project-requests.js +23 -27
  329. package/src/lib/management/project/project-requests.js.map +1 -1
  330. package/src/lib/management/project/project.d.ts +118 -124
  331. package/src/lib/management/project/project.js +26 -31
  332. package/src/lib/management/project/project.js.map +1 -1
  333. package/src/lib/management/project-role/project-role.d.ts +12 -12
  334. package/src/lib/management/project-role/project-role.js +2 -2
  335. package/src/lib/management/project-role/project-role.js.map +1 -1
  336. package/src/lib/management/project-role/project-role.request.d.ts +17 -17
  337. package/src/lib/management/project-role/project-role.request.js +11 -15
  338. package/src/lib/management/project-role/project-role.request.js.map +1 -1
  339. package/src/lib/management/template/flow-template/flow-template.request.d.ts +5 -5
  340. package/src/lib/management/template/flow-template/flow-template.request.js +3 -3
  341. package/src/lib/management/template/flow-template/flow-template.request.js.map +1 -1
  342. package/src/lib/management/template/template-telemetry.d.ts +21 -21
  343. package/src/lib/management/template/template-telemetry.js +20 -21
  344. package/src/lib/management/template/template-telemetry.js.map +1 -1
  345. package/src/lib/management/template/template.d.ts +282 -286
  346. package/src/lib/management/template/template.js +44 -20
  347. package/src/lib/management/template/template.js.map +1 -1
  348. package/src/lib/management/template/template.requests.d.ts +219 -225
  349. package/src/lib/management/template/template.requests.js +26 -26
  350. package/src/lib/management/template/template.requests.js.map +1 -1
@@ -1,4 +1,4 @@
1
- import { Static } from '@sinclair/typebox';
1
+ import { z } from 'zod';
2
2
  import { TableAutomationStatus, TableAutomationTrigger } from '../tables/table';
3
3
  export declare enum FlowProjectOperationType {
4
4
  UPDATE_FLOW = "UPDATE_FLOW",
@@ -14,1288 +14,1248 @@ export declare enum TableOperationType {
14
14
  CREATE_TABLE = "CREATE_TABLE",
15
15
  DELETE_TABLE = "DELETE_TABLE"
16
16
  }
17
- export declare const FlowState: import("@sinclair/typebox").TObject<{
18
- projectId: import("@sinclair/typebox").TString;
19
- id: import("@sinclair/typebox").TString;
20
- created: import("@sinclair/typebox").TString;
21
- updated: import("@sinclair/typebox").TString;
22
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
23
- externalId: import("@sinclair/typebox").TString;
24
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
25
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
26
- [x: string]: unknown;
27
- } | null>>;
28
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
29
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
30
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
31
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
32
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
33
- version: import("@sinclair/typebox").TObject<{
34
- flowId: import("@sinclair/typebox").TString;
35
- displayName: import("@sinclair/typebox").TString;
36
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
37
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
38
- settings: import("@sinclair/typebox").TObject<{
39
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
40
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
41
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
42
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
43
- }>>;
44
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
45
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
46
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
47
- }>>;
48
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
49
- pieceName: import("@sinclair/typebox").TString;
50
- pieceVersion: import("@sinclair/typebox").TString;
51
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
52
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
53
- }>;
54
- name: import("@sinclair/typebox").TString;
55
- valid: import("@sinclair/typebox").TBoolean;
56
- displayName: import("@sinclair/typebox").TString;
57
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
58
- }>, import("@sinclair/typebox").TObject<{
59
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
60
- settings: import("@sinclair/typebox").TAny;
61
- name: import("@sinclair/typebox").TString;
62
- valid: import("@sinclair/typebox").TBoolean;
63
- displayName: import("@sinclair/typebox").TString;
64
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
65
- }>]>;
66
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
67
- valid: import("@sinclair/typebox").TBoolean;
68
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
69
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
70
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
71
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
72
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
73
- [x: string]: string;
74
- } | null>>;
75
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
76
- id: import("@sinclair/typebox").TString;
77
- content: import("@sinclair/typebox").TString;
78
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
79
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
80
- position: import("@sinclair/typebox").TObject<{
81
- x: import("@sinclair/typebox").TNumber;
82
- y: import("@sinclair/typebox").TNumber;
83
- }>;
84
- size: import("@sinclair/typebox").TObject<{
85
- width: import("@sinclair/typebox").TNumber;
86
- height: import("@sinclair/typebox").TNumber;
87
- }>;
88
- createdAt: import("@sinclair/typebox").TString;
89
- updatedAt: import("@sinclair/typebox").TString;
90
- }>>;
91
- id: import("@sinclair/typebox").TString;
92
- created: import("@sinclair/typebox").TString;
93
- updated: import("@sinclair/typebox").TString;
94
- }>;
95
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
96
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
97
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
98
- cronExpression: string;
99
- timezone: string;
100
- } | null>>;
101
- }>>;
102
- }>;
103
- export type FlowState = Static<typeof FlowState>;
104
- export declare const ConnectionState: import("@sinclair/typebox").TObject<{
105
- externalId: import("@sinclair/typebox").TString;
106
- pieceName: import("@sinclair/typebox").TString;
107
- displayName: import("@sinclair/typebox").TString;
108
- }>;
109
- export type ConnectionState = Static<typeof ConnectionState>;
110
- export declare const FieldState: import("@sinclair/typebox").TObject<{
111
- name: import("@sinclair/typebox").TString;
112
- type: import("@sinclair/typebox").TString;
113
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
114
- options: {
115
- value: string;
116
- }[];
117
- } | null>>;
118
- externalId: import("@sinclair/typebox").TString;
119
- }>;
120
- export type FieldState = Static<typeof FieldState>;
121
- export declare const TableState: import("@sinclair/typebox").TObject<{
122
- id: import("@sinclair/typebox").TString;
123
- name: import("@sinclair/typebox").TString;
124
- externalId: import("@sinclair/typebox").TString;
125
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
126
- name: import("@sinclair/typebox").TString;
127
- type: import("@sinclair/typebox").TString;
128
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
129
- options: {
130
- value: string;
131
- }[];
132
- } | null>>;
133
- externalId: import("@sinclair/typebox").TString;
134
- }>>;
135
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
136
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
137
- }>;
138
- export type TableState = Static<typeof TableState>;
139
- export declare const ProjectState: import("@sinclair/typebox").TObject<{
140
- flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
141
- projectId: import("@sinclair/typebox").TString;
142
- id: import("@sinclair/typebox").TString;
143
- created: import("@sinclair/typebox").TString;
144
- updated: import("@sinclair/typebox").TString;
145
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
146
- externalId: import("@sinclair/typebox").TString;
147
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
148
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
149
- [x: string]: unknown;
150
- } | null>>;
151
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
152
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
153
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
154
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
155
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
156
- version: import("@sinclair/typebox").TObject<{
157
- flowId: import("@sinclair/typebox").TString;
158
- displayName: import("@sinclair/typebox").TString;
159
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
160
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
161
- settings: import("@sinclair/typebox").TObject<{
162
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
163
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
164
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
165
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
166
- }>>;
167
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
168
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
169
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
170
- }>>;
171
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
172
- pieceName: import("@sinclair/typebox").TString;
173
- pieceVersion: import("@sinclair/typebox").TString;
174
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
175
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
176
- }>;
177
- name: import("@sinclair/typebox").TString;
178
- valid: import("@sinclair/typebox").TBoolean;
179
- displayName: import("@sinclair/typebox").TString;
180
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
181
- }>, import("@sinclair/typebox").TObject<{
182
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
183
- settings: import("@sinclair/typebox").TAny;
184
- name: import("@sinclair/typebox").TString;
185
- valid: import("@sinclair/typebox").TBoolean;
186
- displayName: import("@sinclair/typebox").TString;
187
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
188
- }>]>;
189
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
190
- valid: import("@sinclair/typebox").TBoolean;
191
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
192
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
193
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
194
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
195
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
196
- [x: string]: string;
197
- } | null>>;
198
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
199
- id: import("@sinclair/typebox").TString;
200
- content: import("@sinclair/typebox").TString;
201
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
202
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
203
- position: import("@sinclair/typebox").TObject<{
204
- x: import("@sinclair/typebox").TNumber;
205
- y: import("@sinclair/typebox").TNumber;
206
- }>;
207
- size: import("@sinclair/typebox").TObject<{
208
- width: import("@sinclair/typebox").TNumber;
209
- height: import("@sinclair/typebox").TNumber;
210
- }>;
211
- createdAt: import("@sinclair/typebox").TString;
212
- updatedAt: import("@sinclair/typebox").TString;
213
- }>>;
214
- id: import("@sinclair/typebox").TString;
215
- created: import("@sinclair/typebox").TString;
216
- updated: import("@sinclair/typebox").TString;
217
- }>;
218
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
219
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
220
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
221
- cronExpression: string;
222
- timezone: string;
223
- } | null>>;
224
- }>>;
225
- }>>;
226
- connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
227
- externalId: import("@sinclair/typebox").TString;
228
- pieceName: import("@sinclair/typebox").TString;
229
- displayName: import("@sinclair/typebox").TString;
230
- }>>>;
231
- tables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
232
- id: import("@sinclair/typebox").TString;
233
- name: import("@sinclair/typebox").TString;
234
- externalId: import("@sinclair/typebox").TString;
235
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
236
- name: import("@sinclair/typebox").TString;
237
- type: import("@sinclair/typebox").TString;
238
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
239
- options: {
240
- value: string;
241
- }[];
242
- } | null>>;
243
- externalId: import("@sinclair/typebox").TString;
244
- }>>;
245
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
246
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
247
- }>>>;
248
- }>;
249
- export type ProjectState = Static<typeof ProjectState>;
250
- export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
251
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
252
- newFlowState: import("@sinclair/typebox").TObject<{
253
- projectId: import("@sinclair/typebox").TString;
254
- id: import("@sinclair/typebox").TString;
255
- created: import("@sinclair/typebox").TString;
256
- updated: import("@sinclair/typebox").TString;
257
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
258
- externalId: import("@sinclair/typebox").TString;
259
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
260
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
261
- [x: string]: unknown;
262
- } | null>>;
263
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
264
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
265
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
266
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
267
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
268
- version: import("@sinclair/typebox").TObject<{
269
- flowId: import("@sinclair/typebox").TString;
270
- displayName: import("@sinclair/typebox").TString;
271
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
272
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
273
- settings: import("@sinclair/typebox").TObject<{
274
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
275
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
276
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
277
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
278
- }>>;
279
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
280
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
281
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
282
- }>>;
283
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
284
- pieceName: import("@sinclair/typebox").TString;
285
- pieceVersion: import("@sinclair/typebox").TString;
286
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
287
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
288
- }>;
289
- name: import("@sinclair/typebox").TString;
290
- valid: import("@sinclair/typebox").TBoolean;
291
- displayName: import("@sinclair/typebox").TString;
292
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
293
- }>, import("@sinclair/typebox").TObject<{
294
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
295
- settings: import("@sinclair/typebox").TAny;
296
- name: import("@sinclair/typebox").TString;
297
- valid: import("@sinclair/typebox").TBoolean;
298
- displayName: import("@sinclair/typebox").TString;
299
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
300
- }>]>;
301
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
302
- valid: import("@sinclair/typebox").TBoolean;
303
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
304
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
305
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
306
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
307
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
308
- [x: string]: string;
309
- } | null>>;
310
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
311
- id: import("@sinclair/typebox").TString;
312
- content: import("@sinclair/typebox").TString;
313
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
314
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
315
- position: import("@sinclair/typebox").TObject<{
316
- x: import("@sinclair/typebox").TNumber;
317
- y: import("@sinclair/typebox").TNumber;
318
- }>;
319
- size: import("@sinclair/typebox").TObject<{
320
- width: import("@sinclair/typebox").TNumber;
321
- height: import("@sinclair/typebox").TNumber;
322
- }>;
323
- createdAt: import("@sinclair/typebox").TString;
324
- updatedAt: import("@sinclair/typebox").TString;
325
- }>>;
326
- id: import("@sinclair/typebox").TString;
327
- created: import("@sinclair/typebox").TString;
328
- updated: import("@sinclair/typebox").TString;
329
- }>;
330
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
331
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
332
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
333
- cronExpression: string;
334
- timezone: string;
335
- } | null>>;
336
- }>>;
337
- }>;
338
- flowState: import("@sinclair/typebox").TObject<{
339
- projectId: import("@sinclair/typebox").TString;
340
- id: import("@sinclair/typebox").TString;
341
- created: import("@sinclair/typebox").TString;
342
- updated: import("@sinclair/typebox").TString;
343
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
344
- externalId: import("@sinclair/typebox").TString;
345
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
346
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
347
- [x: string]: unknown;
348
- } | null>>;
349
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
350
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
351
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
352
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
353
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
354
- version: import("@sinclair/typebox").TObject<{
355
- flowId: import("@sinclair/typebox").TString;
356
- displayName: import("@sinclair/typebox").TString;
357
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
358
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
359
- settings: import("@sinclair/typebox").TObject<{
360
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
361
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
362
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
363
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
364
- }>>;
365
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
366
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
367
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
368
- }>>;
369
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
370
- pieceName: import("@sinclair/typebox").TString;
371
- pieceVersion: import("@sinclair/typebox").TString;
372
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
373
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
374
- }>;
375
- name: import("@sinclair/typebox").TString;
376
- valid: import("@sinclair/typebox").TBoolean;
377
- displayName: import("@sinclair/typebox").TString;
378
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
379
- }>, import("@sinclair/typebox").TObject<{
380
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
381
- settings: import("@sinclair/typebox").TAny;
382
- name: import("@sinclair/typebox").TString;
383
- valid: import("@sinclair/typebox").TBoolean;
384
- displayName: import("@sinclair/typebox").TString;
385
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
386
- }>]>;
387
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
388
- valid: import("@sinclair/typebox").TBoolean;
389
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
390
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
391
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
392
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
393
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
394
- [x: string]: string;
395
- } | null>>;
396
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
397
- id: import("@sinclair/typebox").TString;
398
- content: import("@sinclair/typebox").TString;
399
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
400
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
401
- position: import("@sinclair/typebox").TObject<{
402
- x: import("@sinclair/typebox").TNumber;
403
- y: import("@sinclair/typebox").TNumber;
404
- }>;
405
- size: import("@sinclair/typebox").TObject<{
406
- width: import("@sinclair/typebox").TNumber;
407
- height: import("@sinclair/typebox").TNumber;
408
- }>;
409
- createdAt: import("@sinclair/typebox").TString;
410
- updatedAt: import("@sinclair/typebox").TString;
411
- }>>;
412
- id: import("@sinclair/typebox").TString;
413
- created: import("@sinclair/typebox").TString;
414
- updated: import("@sinclair/typebox").TString;
415
- }>;
416
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
417
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
418
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
419
- cronExpression: string;
420
- timezone: string;
421
- } | null>>;
422
- }>>;
423
- }>;
424
- }>, import("@sinclair/typebox").TObject<{
425
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
426
- flowState: import("@sinclair/typebox").TObject<{
427
- projectId: import("@sinclair/typebox").TString;
428
- id: import("@sinclair/typebox").TString;
429
- created: import("@sinclair/typebox").TString;
430
- updated: import("@sinclair/typebox").TString;
431
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
432
- externalId: import("@sinclair/typebox").TString;
433
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
434
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
435
- [x: string]: unknown;
436
- } | null>>;
437
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
438
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
439
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
440
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
441
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
442
- version: import("@sinclair/typebox").TObject<{
443
- flowId: import("@sinclair/typebox").TString;
444
- displayName: import("@sinclair/typebox").TString;
445
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
446
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
447
- settings: import("@sinclair/typebox").TObject<{
448
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
449
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
450
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
451
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
452
- }>>;
453
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
454
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
455
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
456
- }>>;
457
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
458
- pieceName: import("@sinclair/typebox").TString;
459
- pieceVersion: import("@sinclair/typebox").TString;
460
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
461
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
462
- }>;
463
- name: import("@sinclair/typebox").TString;
464
- valid: import("@sinclair/typebox").TBoolean;
465
- displayName: import("@sinclair/typebox").TString;
466
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
467
- }>, import("@sinclair/typebox").TObject<{
468
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
469
- settings: import("@sinclair/typebox").TAny;
470
- name: import("@sinclair/typebox").TString;
471
- valid: import("@sinclair/typebox").TBoolean;
472
- displayName: import("@sinclair/typebox").TString;
473
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
474
- }>]>;
475
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
476
- valid: import("@sinclair/typebox").TBoolean;
477
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
478
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
479
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
480
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
481
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
482
- [x: string]: string;
483
- } | null>>;
484
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
485
- id: import("@sinclair/typebox").TString;
486
- content: import("@sinclair/typebox").TString;
487
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
488
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
489
- position: import("@sinclair/typebox").TObject<{
490
- x: import("@sinclair/typebox").TNumber;
491
- y: import("@sinclair/typebox").TNumber;
492
- }>;
493
- size: import("@sinclair/typebox").TObject<{
494
- width: import("@sinclair/typebox").TNumber;
495
- height: import("@sinclair/typebox").TNumber;
496
- }>;
497
- createdAt: import("@sinclair/typebox").TString;
498
- updatedAt: import("@sinclair/typebox").TString;
499
- }>>;
500
- id: import("@sinclair/typebox").TString;
501
- created: import("@sinclair/typebox").TString;
502
- updated: import("@sinclair/typebox").TString;
503
- }>;
504
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
505
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
506
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
507
- cronExpression: string;
508
- timezone: string;
509
- } | null>>;
510
- }>>;
511
- }>;
512
- }>, import("@sinclair/typebox").TObject<{
513
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
514
- flowState: import("@sinclair/typebox").TObject<{
515
- projectId: import("@sinclair/typebox").TString;
516
- id: import("@sinclair/typebox").TString;
517
- created: import("@sinclair/typebox").TString;
518
- updated: import("@sinclair/typebox").TString;
519
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
520
- externalId: import("@sinclair/typebox").TString;
521
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
522
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
523
- [x: string]: unknown;
524
- } | null>>;
525
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
526
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
527
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
528
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
529
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
530
- version: import("@sinclair/typebox").TObject<{
531
- flowId: import("@sinclair/typebox").TString;
532
- displayName: import("@sinclair/typebox").TString;
533
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
534
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
535
- settings: import("@sinclair/typebox").TObject<{
536
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
537
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
538
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
539
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
540
- }>>;
541
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
542
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
543
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
544
- }>>;
545
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
546
- pieceName: import("@sinclair/typebox").TString;
547
- pieceVersion: import("@sinclair/typebox").TString;
548
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
549
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
550
- }>;
551
- name: import("@sinclair/typebox").TString;
552
- valid: import("@sinclair/typebox").TBoolean;
553
- displayName: import("@sinclair/typebox").TString;
554
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
555
- }>, import("@sinclair/typebox").TObject<{
556
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
557
- settings: import("@sinclair/typebox").TAny;
558
- name: import("@sinclair/typebox").TString;
559
- valid: import("@sinclair/typebox").TBoolean;
560
- displayName: import("@sinclair/typebox").TString;
561
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
562
- }>]>;
563
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
564
- valid: import("@sinclair/typebox").TBoolean;
565
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
566
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
567
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
568
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
569
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
570
- [x: string]: string;
571
- } | null>>;
572
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
573
- id: import("@sinclair/typebox").TString;
574
- content: import("@sinclair/typebox").TString;
575
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
576
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
577
- position: import("@sinclair/typebox").TObject<{
578
- x: import("@sinclair/typebox").TNumber;
579
- y: import("@sinclair/typebox").TNumber;
580
- }>;
581
- size: import("@sinclair/typebox").TObject<{
582
- width: import("@sinclair/typebox").TNumber;
583
- height: import("@sinclair/typebox").TNumber;
584
- }>;
585
- createdAt: import("@sinclair/typebox").TString;
586
- updatedAt: import("@sinclair/typebox").TString;
587
- }>>;
588
- id: import("@sinclair/typebox").TString;
589
- created: import("@sinclair/typebox").TString;
590
- updated: import("@sinclair/typebox").TString;
591
- }>;
592
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
593
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
594
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
595
- cronExpression: string;
596
- timezone: string;
597
- } | null>>;
598
- }>>;
599
- }>;
600
- }>]>;
601
- export type ProjectOperation = Static<typeof ProjectOperation>;
602
- export declare const ConnectionOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
603
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
604
- newConnectionState: import("@sinclair/typebox").TObject<{
605
- externalId: import("@sinclair/typebox").TString;
606
- pieceName: import("@sinclair/typebox").TString;
607
- displayName: import("@sinclair/typebox").TString;
608
- }>;
609
- connectionState: import("@sinclair/typebox").TObject<{
610
- externalId: import("@sinclair/typebox").TString;
611
- pieceName: import("@sinclair/typebox").TString;
612
- displayName: import("@sinclair/typebox").TString;
613
- }>;
614
- }>, import("@sinclair/typebox").TObject<{
615
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.CREATE_CONNECTION>;
616
- connectionState: import("@sinclair/typebox").TObject<{
617
- externalId: import("@sinclair/typebox").TString;
618
- pieceName: import("@sinclair/typebox").TString;
619
- displayName: import("@sinclair/typebox").TString;
620
- }>;
621
- }>]>;
622
- export type ConnectionOperation = Static<typeof ConnectionOperation>;
623
- export declare const TableOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
624
- type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
625
- newTableState: import("@sinclair/typebox").TObject<{
626
- id: import("@sinclair/typebox").TString;
627
- name: import("@sinclair/typebox").TString;
628
- externalId: import("@sinclair/typebox").TString;
629
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
630
- name: import("@sinclair/typebox").TString;
631
- type: import("@sinclair/typebox").TString;
632
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
633
- options: {
634
- value: string;
635
- }[];
636
- } | null>>;
637
- externalId: import("@sinclair/typebox").TString;
638
- }>>;
639
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
640
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
641
- }>;
642
- tableState: import("@sinclair/typebox").TObject<{
643
- id: import("@sinclair/typebox").TString;
644
- name: import("@sinclair/typebox").TString;
645
- externalId: import("@sinclair/typebox").TString;
646
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
647
- name: import("@sinclair/typebox").TString;
648
- type: import("@sinclair/typebox").TString;
649
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
650
- options: {
651
- value: string;
652
- }[];
653
- } | null>>;
654
- externalId: import("@sinclair/typebox").TString;
655
- }>>;
656
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
657
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
658
- }>;
659
- }>, import("@sinclair/typebox").TObject<{
660
- type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
661
- tableState: import("@sinclair/typebox").TObject<{
662
- id: import("@sinclair/typebox").TString;
663
- name: import("@sinclair/typebox").TString;
664
- externalId: import("@sinclair/typebox").TString;
665
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
666
- name: import("@sinclair/typebox").TString;
667
- type: import("@sinclair/typebox").TString;
668
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
669
- options: {
670
- value: string;
671
- }[];
672
- } | null>>;
673
- externalId: import("@sinclair/typebox").TString;
674
- }>>;
675
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
676
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
677
- }>;
678
- }>, import("@sinclair/typebox").TObject<{
679
- type: import("@sinclair/typebox").TLiteral<TableOperationType.DELETE_TABLE>;
680
- tableState: import("@sinclair/typebox").TObject<{
681
- id: import("@sinclair/typebox").TString;
682
- name: import("@sinclair/typebox").TString;
683
- externalId: import("@sinclair/typebox").TString;
684
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
685
- name: import("@sinclair/typebox").TString;
686
- type: import("@sinclair/typebox").TString;
687
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
688
- options: {
689
- value: string;
690
- }[];
691
- } | null>>;
692
- externalId: import("@sinclair/typebox").TString;
693
- }>>;
694
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
695
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
696
- }>;
697
- }>]>;
698
- export type TableOperation = Static<typeof TableOperation>;
699
- export declare const DiffState: import("@sinclair/typebox").TObject<{
700
- flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
701
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
702
- newFlowState: import("@sinclair/typebox").TObject<{
703
- projectId: import("@sinclair/typebox").TString;
704
- id: import("@sinclair/typebox").TString;
705
- created: import("@sinclair/typebox").TString;
706
- updated: import("@sinclair/typebox").TString;
707
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
708
- externalId: import("@sinclair/typebox").TString;
709
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
710
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
711
- [x: string]: unknown;
712
- } | null>>;
713
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
714
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
715
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
716
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
717
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
718
- version: import("@sinclair/typebox").TObject<{
719
- flowId: import("@sinclair/typebox").TString;
720
- displayName: import("@sinclair/typebox").TString;
721
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
722
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
723
- settings: import("@sinclair/typebox").TObject<{
724
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
725
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
726
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
727
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
728
- }>>;
729
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
730
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
731
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
732
- }>>;
733
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
734
- pieceName: import("@sinclair/typebox").TString;
735
- pieceVersion: import("@sinclair/typebox").TString;
736
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
737
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
738
- }>;
739
- name: import("@sinclair/typebox").TString;
740
- valid: import("@sinclair/typebox").TBoolean;
741
- displayName: import("@sinclair/typebox").TString;
742
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
743
- }>, import("@sinclair/typebox").TObject<{
744
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
745
- settings: import("@sinclair/typebox").TAny;
746
- name: import("@sinclair/typebox").TString;
747
- valid: import("@sinclair/typebox").TBoolean;
748
- displayName: import("@sinclair/typebox").TString;
749
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
750
- }>]>;
751
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
752
- valid: import("@sinclair/typebox").TBoolean;
753
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
754
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
755
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
756
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
757
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
758
- [x: string]: string;
759
- } | null>>;
760
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
761
- id: import("@sinclair/typebox").TString;
762
- content: import("@sinclair/typebox").TString;
763
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
764
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
765
- position: import("@sinclair/typebox").TObject<{
766
- x: import("@sinclair/typebox").TNumber;
767
- y: import("@sinclair/typebox").TNumber;
768
- }>;
769
- size: import("@sinclair/typebox").TObject<{
770
- width: import("@sinclair/typebox").TNumber;
771
- height: import("@sinclair/typebox").TNumber;
772
- }>;
773
- createdAt: import("@sinclair/typebox").TString;
774
- updatedAt: import("@sinclair/typebox").TString;
775
- }>>;
776
- id: import("@sinclair/typebox").TString;
777
- created: import("@sinclair/typebox").TString;
778
- updated: import("@sinclair/typebox").TString;
779
- }>;
780
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
781
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
782
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
783
- cronExpression: string;
784
- timezone: string;
785
- } | null>>;
786
- }>>;
787
- }>;
788
- flowState: import("@sinclair/typebox").TObject<{
789
- projectId: import("@sinclair/typebox").TString;
790
- id: import("@sinclair/typebox").TString;
791
- created: import("@sinclair/typebox").TString;
792
- updated: import("@sinclair/typebox").TString;
793
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
794
- externalId: import("@sinclair/typebox").TString;
795
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
796
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
797
- [x: string]: unknown;
798
- } | null>>;
799
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
800
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
801
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
802
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
803
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
804
- version: import("@sinclair/typebox").TObject<{
805
- flowId: import("@sinclair/typebox").TString;
806
- displayName: import("@sinclair/typebox").TString;
807
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
808
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
809
- settings: import("@sinclair/typebox").TObject<{
810
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
811
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
812
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
813
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
814
- }>>;
815
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
816
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
817
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
818
- }>>;
819
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
820
- pieceName: import("@sinclair/typebox").TString;
821
- pieceVersion: import("@sinclair/typebox").TString;
822
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
823
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
824
- }>;
825
- name: import("@sinclair/typebox").TString;
826
- valid: import("@sinclair/typebox").TBoolean;
827
- displayName: import("@sinclair/typebox").TString;
828
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
829
- }>, import("@sinclair/typebox").TObject<{
830
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
831
- settings: import("@sinclair/typebox").TAny;
832
- name: import("@sinclair/typebox").TString;
833
- valid: import("@sinclair/typebox").TBoolean;
834
- displayName: import("@sinclair/typebox").TString;
835
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
836
- }>]>;
837
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
838
- valid: import("@sinclair/typebox").TBoolean;
839
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
840
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
841
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
842
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
843
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
844
- [x: string]: string;
845
- } | null>>;
846
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
847
- id: import("@sinclair/typebox").TString;
848
- content: import("@sinclair/typebox").TString;
849
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
850
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
851
- position: import("@sinclair/typebox").TObject<{
852
- x: import("@sinclair/typebox").TNumber;
853
- y: import("@sinclair/typebox").TNumber;
854
- }>;
855
- size: import("@sinclair/typebox").TObject<{
856
- width: import("@sinclair/typebox").TNumber;
857
- height: import("@sinclair/typebox").TNumber;
858
- }>;
859
- createdAt: import("@sinclair/typebox").TString;
860
- updatedAt: import("@sinclair/typebox").TString;
861
- }>>;
862
- id: import("@sinclair/typebox").TString;
863
- created: import("@sinclair/typebox").TString;
864
- updated: import("@sinclair/typebox").TString;
865
- }>;
866
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
867
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
868
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
869
- cronExpression: string;
870
- timezone: string;
871
- } | null>>;
872
- }>>;
873
- }>;
874
- }>, import("@sinclair/typebox").TObject<{
875
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
876
- flowState: import("@sinclair/typebox").TObject<{
877
- projectId: import("@sinclair/typebox").TString;
878
- id: import("@sinclair/typebox").TString;
879
- created: import("@sinclair/typebox").TString;
880
- updated: import("@sinclair/typebox").TString;
881
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
882
- externalId: import("@sinclair/typebox").TString;
883
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
884
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
885
- [x: string]: unknown;
886
- } | null>>;
887
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
888
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
889
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
890
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
891
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
892
- version: import("@sinclair/typebox").TObject<{
893
- flowId: import("@sinclair/typebox").TString;
894
- displayName: import("@sinclair/typebox").TString;
895
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
896
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
897
- settings: import("@sinclair/typebox").TObject<{
898
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
899
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
900
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
901
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
902
- }>>;
903
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
904
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
905
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
906
- }>>;
907
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
908
- pieceName: import("@sinclair/typebox").TString;
909
- pieceVersion: import("@sinclair/typebox").TString;
910
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
911
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
912
- }>;
913
- name: import("@sinclair/typebox").TString;
914
- valid: import("@sinclair/typebox").TBoolean;
915
- displayName: import("@sinclair/typebox").TString;
916
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
917
- }>, import("@sinclair/typebox").TObject<{
918
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
919
- settings: import("@sinclair/typebox").TAny;
920
- name: import("@sinclair/typebox").TString;
921
- valid: import("@sinclair/typebox").TBoolean;
922
- displayName: import("@sinclair/typebox").TString;
923
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
924
- }>]>;
925
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
926
- valid: import("@sinclair/typebox").TBoolean;
927
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
928
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
929
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
930
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
931
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
932
- [x: string]: string;
933
- } | null>>;
934
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
935
- id: import("@sinclair/typebox").TString;
936
- content: import("@sinclair/typebox").TString;
937
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
938
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
939
- position: import("@sinclair/typebox").TObject<{
940
- x: import("@sinclair/typebox").TNumber;
941
- y: import("@sinclair/typebox").TNumber;
942
- }>;
943
- size: import("@sinclair/typebox").TObject<{
944
- width: import("@sinclair/typebox").TNumber;
945
- height: import("@sinclair/typebox").TNumber;
946
- }>;
947
- createdAt: import("@sinclair/typebox").TString;
948
- updatedAt: import("@sinclair/typebox").TString;
949
- }>>;
950
- id: import("@sinclair/typebox").TString;
951
- created: import("@sinclair/typebox").TString;
952
- updated: import("@sinclair/typebox").TString;
953
- }>;
954
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
955
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
956
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
957
- cronExpression: string;
958
- timezone: string;
959
- } | null>>;
960
- }>>;
961
- }>;
962
- }>, import("@sinclair/typebox").TObject<{
963
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
964
- flowState: import("@sinclair/typebox").TObject<{
965
- projectId: import("@sinclair/typebox").TString;
966
- id: import("@sinclair/typebox").TString;
967
- created: import("@sinclair/typebox").TString;
968
- updated: import("@sinclair/typebox").TString;
969
- status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
970
- externalId: import("@sinclair/typebox").TString;
971
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
972
- metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
973
- [x: string]: unknown;
974
- } | null>>;
975
- folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
976
- publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
977
- operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
978
- timeSavedPerRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number | null>>;
979
- templateId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
980
- version: import("@sinclair/typebox").TObject<{
981
- flowId: import("@sinclair/typebox").TString;
982
- displayName: import("@sinclair/typebox").TString;
983
- trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
984
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.PIECE>;
985
- settings: import("@sinclair/typebox").TObject<{
986
- sampleData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
987
- sampleDataFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
988
- sampleDataInputFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
989
- lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
990
- }>>;
991
- propertySettings: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
992
- type: import("@sinclair/typebox").TEnum<typeof import("../flows").PropertyExecutionType>;
993
- schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
994
- }>>;
995
- customLogoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
996
- pieceName: import("@sinclair/typebox").TString;
997
- pieceVersion: import("@sinclair/typebox").TString;
998
- triggerName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
999
- input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
1000
- }>;
1001
- name: import("@sinclair/typebox").TString;
1002
- valid: import("@sinclair/typebox").TBoolean;
1003
- displayName: import("@sinclair/typebox").TString;
1004
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
1005
- }>, import("@sinclair/typebox").TObject<{
1006
- type: import("@sinclair/typebox").TLiteral<import("../../..").FlowTriggerType.EMPTY>;
1007
- settings: import("@sinclair/typebox").TAny;
1008
- name: import("@sinclair/typebox").TString;
1009
- valid: import("@sinclair/typebox").TBoolean;
1010
- displayName: import("@sinclair/typebox").TString;
1011
- nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
1012
- }>]>;
1013
- updatedBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
1014
- valid: import("@sinclair/typebox").TBoolean;
1015
- schemaVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
1016
- agentIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1017
- state: import("@sinclair/typebox").TEnum<typeof import("../flows/flow-version").FlowVersionState>;
1018
- connectionIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
1019
- backupFiles: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1020
- [x: string]: string;
1021
- } | null>>;
1022
- notes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1023
- id: import("@sinclair/typebox").TString;
1024
- content: import("@sinclair/typebox").TString;
1025
- ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
1026
- color: import("@sinclair/typebox").TEnum<typeof import("../flows").NoteColorVariant>;
1027
- position: import("@sinclair/typebox").TObject<{
1028
- x: import("@sinclair/typebox").TNumber;
1029
- y: import("@sinclair/typebox").TNumber;
1030
- }>;
1031
- size: import("@sinclair/typebox").TObject<{
1032
- width: import("@sinclair/typebox").TNumber;
1033
- height: import("@sinclair/typebox").TNumber;
1034
- }>;
1035
- createdAt: import("@sinclair/typebox").TString;
1036
- updatedAt: import("@sinclair/typebox").TString;
1037
- }>>;
1038
- id: import("@sinclair/typebox").TString;
1039
- created: import("@sinclair/typebox").TString;
1040
- updated: import("@sinclair/typebox").TString;
1041
- }>;
1042
- triggerSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1043
- schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1044
- type: import("../trigger").TriggerSourceScheduleType.CRON_EXPRESSION;
1045
- cronExpression: string;
1046
- timezone: string;
1047
- } | null>>;
1048
- }>>;
1049
- }>;
1050
- }>]>>;
1051
- connections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1052
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
1053
- newConnectionState: import("@sinclair/typebox").TObject<{
1054
- externalId: import("@sinclair/typebox").TString;
1055
- pieceName: import("@sinclair/typebox").TString;
1056
- displayName: import("@sinclair/typebox").TString;
1057
- }>;
1058
- connectionState: import("@sinclair/typebox").TObject<{
1059
- externalId: import("@sinclair/typebox").TString;
1060
- pieceName: import("@sinclair/typebox").TString;
1061
- displayName: import("@sinclair/typebox").TString;
1062
- }>;
1063
- }>, import("@sinclair/typebox").TObject<{
1064
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.CREATE_CONNECTION>;
1065
- connectionState: import("@sinclair/typebox").TObject<{
1066
- externalId: import("@sinclair/typebox").TString;
1067
- pieceName: import("@sinclair/typebox").TString;
1068
- displayName: import("@sinclair/typebox").TString;
1069
- }>;
1070
- }>]>>;
1071
- tables: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1072
- type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
1073
- newTableState: import("@sinclair/typebox").TObject<{
1074
- id: import("@sinclair/typebox").TString;
1075
- name: import("@sinclair/typebox").TString;
1076
- externalId: import("@sinclair/typebox").TString;
1077
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1078
- name: import("@sinclair/typebox").TString;
1079
- type: import("@sinclair/typebox").TString;
1080
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1081
- options: {
1082
- value: string;
1083
- }[];
1084
- } | null>>;
1085
- externalId: import("@sinclair/typebox").TString;
1086
- }>>;
1087
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1088
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1089
- }>;
1090
- tableState: import("@sinclair/typebox").TObject<{
1091
- id: import("@sinclair/typebox").TString;
1092
- name: import("@sinclair/typebox").TString;
1093
- externalId: import("@sinclair/typebox").TString;
1094
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1095
- name: import("@sinclair/typebox").TString;
1096
- type: import("@sinclair/typebox").TString;
1097
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1098
- options: {
1099
- value: string;
1100
- }[];
1101
- } | null>>;
1102
- externalId: import("@sinclair/typebox").TString;
1103
- }>>;
1104
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1105
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1106
- }>;
1107
- }>, import("@sinclair/typebox").TObject<{
1108
- type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
1109
- tableState: import("@sinclair/typebox").TObject<{
1110
- id: import("@sinclair/typebox").TString;
1111
- name: import("@sinclair/typebox").TString;
1112
- externalId: import("@sinclair/typebox").TString;
1113
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1114
- name: import("@sinclair/typebox").TString;
1115
- type: import("@sinclair/typebox").TString;
1116
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1117
- options: {
1118
- value: string;
1119
- }[];
1120
- } | null>>;
1121
- externalId: import("@sinclair/typebox").TString;
1122
- }>>;
1123
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1124
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1125
- }>;
1126
- }>, import("@sinclair/typebox").TObject<{
1127
- type: import("@sinclair/typebox").TLiteral<TableOperationType.DELETE_TABLE>;
1128
- tableState: import("@sinclair/typebox").TObject<{
1129
- id: import("@sinclair/typebox").TString;
1130
- name: import("@sinclair/typebox").TString;
1131
- externalId: import("@sinclair/typebox").TString;
1132
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1133
- name: import("@sinclair/typebox").TString;
1134
- type: import("@sinclair/typebox").TString;
1135
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1136
- options: {
1137
- value: string;
1138
- }[];
1139
- } | null>>;
1140
- externalId: import("@sinclair/typebox").TString;
1141
- }>>;
1142
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1143
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1144
- }>;
1145
- }>]>>;
1146
- }>;
1147
- export type DiffState = Static<typeof DiffState>;
1148
- export declare const FlowSyncError: import("@sinclair/typebox").TObject<{
1149
- flowId: import("@sinclair/typebox").TString;
1150
- message: import("@sinclair/typebox").TString;
1151
- }>;
1152
- export type FlowSyncError = Static<typeof FlowSyncError>;
1153
- export declare const FlowProjectOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1154
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
1155
- flow: import("@sinclair/typebox").TObject<{
1156
- id: import("@sinclair/typebox").TString;
1157
- displayName: import("@sinclair/typebox").TString;
1158
- }>;
1159
- }>, import("@sinclair/typebox").TObject<{
1160
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
1161
- flow: import("@sinclair/typebox").TObject<{
1162
- id: import("@sinclair/typebox").TString;
1163
- displayName: import("@sinclair/typebox").TString;
1164
- }>;
1165
- targetFlow: import("@sinclair/typebox").TObject<{
1166
- id: import("@sinclair/typebox").TString;
1167
- displayName: import("@sinclair/typebox").TString;
1168
- }>;
1169
- }>, import("@sinclair/typebox").TObject<{
1170
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
1171
- flow: import("@sinclair/typebox").TObject<{
1172
- id: import("@sinclair/typebox").TString;
1173
- displayName: import("@sinclair/typebox").TString;
1174
- }>;
1175
- }>]>;
1176
- export type FlowProjectOperation = Static<typeof FlowProjectOperation>;
1177
- export declare const ProjectSyncPlan: import("@sinclair/typebox").TObject<{
1178
- flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1179
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
1180
- flow: import("@sinclair/typebox").TObject<{
1181
- id: import("@sinclair/typebox").TString;
1182
- displayName: import("@sinclair/typebox").TString;
1183
- }>;
1184
- }>, import("@sinclair/typebox").TObject<{
1185
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
1186
- flow: import("@sinclair/typebox").TObject<{
1187
- id: import("@sinclair/typebox").TString;
1188
- displayName: import("@sinclair/typebox").TString;
1189
- }>;
1190
- targetFlow: import("@sinclair/typebox").TObject<{
1191
- id: import("@sinclair/typebox").TString;
1192
- displayName: import("@sinclair/typebox").TString;
1193
- }>;
1194
- }>, import("@sinclair/typebox").TObject<{
1195
- type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
1196
- flow: import("@sinclair/typebox").TObject<{
1197
- id: import("@sinclair/typebox").TString;
1198
- displayName: import("@sinclair/typebox").TString;
1199
- }>;
1200
- }>]>>;
1201
- connections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1202
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
1203
- newConnectionState: import("@sinclair/typebox").TObject<{
1204
- externalId: import("@sinclair/typebox").TString;
1205
- pieceName: import("@sinclair/typebox").TString;
1206
- displayName: import("@sinclair/typebox").TString;
1207
- }>;
1208
- connectionState: import("@sinclair/typebox").TObject<{
1209
- externalId: import("@sinclair/typebox").TString;
1210
- pieceName: import("@sinclair/typebox").TString;
1211
- displayName: import("@sinclair/typebox").TString;
1212
- }>;
1213
- }>, import("@sinclair/typebox").TObject<{
1214
- type: import("@sinclair/typebox").TLiteral<ConnectionOperationType.CREATE_CONNECTION>;
1215
- connectionState: import("@sinclair/typebox").TObject<{
1216
- externalId: import("@sinclair/typebox").TString;
1217
- pieceName: import("@sinclair/typebox").TString;
1218
- displayName: import("@sinclair/typebox").TString;
1219
- }>;
1220
- }>]>>;
1221
- tables: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1222
- type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
1223
- newTableState: import("@sinclair/typebox").TObject<{
1224
- id: import("@sinclair/typebox").TString;
1225
- name: import("@sinclair/typebox").TString;
1226
- externalId: import("@sinclair/typebox").TString;
1227
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1228
- name: import("@sinclair/typebox").TString;
1229
- type: import("@sinclair/typebox").TString;
1230
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1231
- options: {
1232
- value: string;
1233
- }[];
1234
- } | null>>;
1235
- externalId: import("@sinclair/typebox").TString;
1236
- }>>;
1237
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1238
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1239
- }>;
1240
- tableState: import("@sinclair/typebox").TObject<{
1241
- id: import("@sinclair/typebox").TString;
1242
- name: import("@sinclair/typebox").TString;
1243
- externalId: import("@sinclair/typebox").TString;
1244
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1245
- name: import("@sinclair/typebox").TString;
1246
- type: import("@sinclair/typebox").TString;
1247
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1248
- options: {
1249
- value: string;
1250
- }[];
1251
- } | null>>;
1252
- externalId: import("@sinclair/typebox").TString;
1253
- }>>;
1254
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1255
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1256
- }>;
1257
- }>, import("@sinclair/typebox").TObject<{
1258
- type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
1259
- tableState: import("@sinclair/typebox").TObject<{
1260
- id: import("@sinclair/typebox").TString;
1261
- name: import("@sinclair/typebox").TString;
1262
- externalId: import("@sinclair/typebox").TString;
1263
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1264
- name: import("@sinclair/typebox").TString;
1265
- type: import("@sinclair/typebox").TString;
1266
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1267
- options: {
1268
- value: string;
1269
- }[];
1270
- } | null>>;
1271
- externalId: import("@sinclair/typebox").TString;
1272
- }>>;
1273
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1274
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1275
- }>;
1276
- }>, import("@sinclair/typebox").TObject<{
1277
- type: import("@sinclair/typebox").TLiteral<TableOperationType.DELETE_TABLE>;
1278
- tableState: import("@sinclair/typebox").TObject<{
1279
- id: import("@sinclair/typebox").TString;
1280
- name: import("@sinclair/typebox").TString;
1281
- externalId: import("@sinclair/typebox").TString;
1282
- fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1283
- name: import("@sinclair/typebox").TString;
1284
- type: import("@sinclair/typebox").TString;
1285
- data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
1286
- options: {
1287
- value: string;
1288
- }[];
1289
- } | null>>;
1290
- externalId: import("@sinclair/typebox").TString;
1291
- }>>;
1292
- status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
1293
- trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
1294
- }>;
1295
- }>]>>;
1296
- errors: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1297
- flowId: import("@sinclair/typebox").TString;
1298
- message: import("@sinclair/typebox").TString;
1299
- }>>;
1300
- }>;
1301
- export type ProjectSyncPlan = Static<typeof ProjectSyncPlan>;
17
+ export declare const FlowState: z.ZodObject<{
18
+ projectId: z.ZodString;
19
+ externalId: z.ZodString;
20
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
23
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
25
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
26
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ id: z.ZodString;
29
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
30
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
31
+ version: z.ZodObject<{
32
+ flowId: z.ZodString;
33
+ displayName: z.ZodString;
34
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
35
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
36
+ settings: z.ZodObject<{
37
+ sampleData: z.ZodOptional<z.ZodObject<{
38
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
39
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
40
+ lastTestDate: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$loose>>;
42
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
43
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
44
+ schema: z.ZodOptional<z.ZodAny>;
45
+ }, z.core.$strip>>;
46
+ customLogoUrl: z.ZodOptional<z.ZodString>;
47
+ pieceName: z.ZodString;
48
+ pieceVersion: z.ZodString;
49
+ triggerName: z.ZodOptional<z.ZodString>;
50
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
51
+ }, z.core.$strip>;
52
+ name: z.ZodString;
53
+ valid: z.ZodBoolean;
54
+ displayName: z.ZodString;
55
+ nextAction: z.ZodOptional<z.ZodAny>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
58
+ settings: z.ZodAny;
59
+ name: z.ZodString;
60
+ valid: z.ZodBoolean;
61
+ displayName: z.ZodString;
62
+ nextAction: z.ZodOptional<z.ZodAny>;
63
+ }, z.core.$strip>]>;
64
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ valid: z.ZodBoolean;
66
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ agentIds: z.ZodArray<z.ZodString>;
68
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
69
+ connectionIds: z.ZodArray<z.ZodString>;
70
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
71
+ notes: z.ZodArray<z.ZodObject<{
72
+ id: z.ZodString;
73
+ content: z.ZodString;
74
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
76
+ position: z.ZodObject<{
77
+ x: z.ZodNumber;
78
+ y: z.ZodNumber;
79
+ }, z.core.$strip>;
80
+ size: z.ZodObject<{
81
+ width: z.ZodNumber;
82
+ height: z.ZodNumber;
83
+ }, z.core.$strip>;
84
+ createdAt: z.ZodString;
85
+ updatedAt: z.ZodString;
86
+ }, z.core.$strip>>;
87
+ id: z.ZodString;
88
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
89
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
90
+ }, z.core.$strip>;
91
+ triggerSource: z.ZodOptional<z.ZodObject<{
92
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
93
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
94
+ cronExpression: z.ZodString;
95
+ timezone: z.ZodString;
96
+ }, z.core.$strip>>>;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>;
99
+ export type FlowState = z.infer<typeof FlowState>;
100
+ export declare const ConnectionState: z.ZodObject<{
101
+ externalId: z.ZodString;
102
+ pieceName: z.ZodString;
103
+ displayName: z.ZodString;
104
+ }, z.core.$strip>;
105
+ export type ConnectionState = z.infer<typeof ConnectionState>;
106
+ export declare const FieldState: z.ZodObject<{
107
+ name: z.ZodString;
108
+ type: z.ZodString;
109
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
110
+ options: z.ZodArray<z.ZodObject<{
111
+ value: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>>>;
114
+ externalId: z.ZodString;
115
+ }, z.core.$strip>;
116
+ export type FieldState = z.infer<typeof FieldState>;
117
+ export declare const TableState: z.ZodObject<{
118
+ id: z.ZodString;
119
+ name: z.ZodString;
120
+ externalId: z.ZodString;
121
+ fields: z.ZodArray<z.ZodObject<{
122
+ name: z.ZodString;
123
+ type: z.ZodString;
124
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
125
+ options: z.ZodArray<z.ZodObject<{
126
+ value: z.ZodString;
127
+ }, z.core.$strip>>;
128
+ }, z.core.$strip>>>;
129
+ externalId: z.ZodString;
130
+ }, z.core.$strip>>;
131
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
132
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
133
+ }, z.core.$strip>;
134
+ export type TableState = z.infer<typeof TableState>;
135
+ export declare const ProjectState: z.ZodObject<{
136
+ flows: z.ZodArray<z.ZodObject<{
137
+ projectId: z.ZodString;
138
+ externalId: z.ZodString;
139
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
142
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
144
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
145
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ id: z.ZodString;
148
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
149
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
150
+ version: z.ZodObject<{
151
+ flowId: z.ZodString;
152
+ displayName: z.ZodString;
153
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
154
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
155
+ settings: z.ZodObject<{
156
+ sampleData: z.ZodOptional<z.ZodObject<{
157
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
158
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
159
+ lastTestDate: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$loose>>;
161
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
162
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
163
+ schema: z.ZodOptional<z.ZodAny>;
164
+ }, z.core.$strip>>;
165
+ customLogoUrl: z.ZodOptional<z.ZodString>;
166
+ pieceName: z.ZodString;
167
+ pieceVersion: z.ZodString;
168
+ triggerName: z.ZodOptional<z.ZodString>;
169
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
170
+ }, z.core.$strip>;
171
+ name: z.ZodString;
172
+ valid: z.ZodBoolean;
173
+ displayName: z.ZodString;
174
+ nextAction: z.ZodOptional<z.ZodAny>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
177
+ settings: z.ZodAny;
178
+ name: z.ZodString;
179
+ valid: z.ZodBoolean;
180
+ displayName: z.ZodString;
181
+ nextAction: z.ZodOptional<z.ZodAny>;
182
+ }, z.core.$strip>]>;
183
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ valid: z.ZodBoolean;
185
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ agentIds: z.ZodArray<z.ZodString>;
187
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
188
+ connectionIds: z.ZodArray<z.ZodString>;
189
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
190
+ notes: z.ZodArray<z.ZodObject<{
191
+ id: z.ZodString;
192
+ content: z.ZodString;
193
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
195
+ position: z.ZodObject<{
196
+ x: z.ZodNumber;
197
+ y: z.ZodNumber;
198
+ }, z.core.$strip>;
199
+ size: z.ZodObject<{
200
+ width: z.ZodNumber;
201
+ height: z.ZodNumber;
202
+ }, z.core.$strip>;
203
+ createdAt: z.ZodString;
204
+ updatedAt: z.ZodString;
205
+ }, z.core.$strip>>;
206
+ id: z.ZodString;
207
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
208
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
209
+ }, z.core.$strip>;
210
+ triggerSource: z.ZodOptional<z.ZodObject<{
211
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
213
+ cronExpression: z.ZodString;
214
+ timezone: z.ZodString;
215
+ }, z.core.$strip>>>;
216
+ }, z.core.$strip>>;
217
+ }, z.core.$strip>>;
218
+ connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ externalId: z.ZodString;
220
+ pieceName: z.ZodString;
221
+ displayName: z.ZodString;
222
+ }, z.core.$strip>>>;
223
+ tables: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
+ id: z.ZodString;
225
+ name: z.ZodString;
226
+ externalId: z.ZodString;
227
+ fields: z.ZodArray<z.ZodObject<{
228
+ name: z.ZodString;
229
+ type: z.ZodString;
230
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
231
+ options: z.ZodArray<z.ZodObject<{
232
+ value: z.ZodString;
233
+ }, z.core.$strip>>;
234
+ }, z.core.$strip>>>;
235
+ externalId: z.ZodString;
236
+ }, z.core.$strip>>;
237
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
238
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
239
+ }, z.core.$strip>>>;
240
+ }, z.core.$strip>;
241
+ export type ProjectState = z.infer<typeof ProjectState>;
242
+ export declare const ProjectOperation: z.ZodUnion<readonly [z.ZodObject<{
243
+ type: z.ZodLiteral<FlowProjectOperationType.UPDATE_FLOW>;
244
+ newFlowState: z.ZodObject<{
245
+ projectId: z.ZodString;
246
+ externalId: z.ZodString;
247
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
250
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
252
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
253
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
254
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ id: z.ZodString;
256
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
257
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
258
+ version: z.ZodObject<{
259
+ flowId: z.ZodString;
260
+ displayName: z.ZodString;
261
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
262
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
263
+ settings: z.ZodObject<{
264
+ sampleData: z.ZodOptional<z.ZodObject<{
265
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
266
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
267
+ lastTestDate: z.ZodOptional<z.ZodString>;
268
+ }, z.core.$loose>>;
269
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
270
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
271
+ schema: z.ZodOptional<z.ZodAny>;
272
+ }, z.core.$strip>>;
273
+ customLogoUrl: z.ZodOptional<z.ZodString>;
274
+ pieceName: z.ZodString;
275
+ pieceVersion: z.ZodString;
276
+ triggerName: z.ZodOptional<z.ZodString>;
277
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
278
+ }, z.core.$strip>;
279
+ name: z.ZodString;
280
+ valid: z.ZodBoolean;
281
+ displayName: z.ZodString;
282
+ nextAction: z.ZodOptional<z.ZodAny>;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
285
+ settings: z.ZodAny;
286
+ name: z.ZodString;
287
+ valid: z.ZodBoolean;
288
+ displayName: z.ZodString;
289
+ nextAction: z.ZodOptional<z.ZodAny>;
290
+ }, z.core.$strip>]>;
291
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ valid: z.ZodBoolean;
293
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ agentIds: z.ZodArray<z.ZodString>;
295
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
296
+ connectionIds: z.ZodArray<z.ZodString>;
297
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
298
+ notes: z.ZodArray<z.ZodObject<{
299
+ id: z.ZodString;
300
+ content: z.ZodString;
301
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
303
+ position: z.ZodObject<{
304
+ x: z.ZodNumber;
305
+ y: z.ZodNumber;
306
+ }, z.core.$strip>;
307
+ size: z.ZodObject<{
308
+ width: z.ZodNumber;
309
+ height: z.ZodNumber;
310
+ }, z.core.$strip>;
311
+ createdAt: z.ZodString;
312
+ updatedAt: z.ZodString;
313
+ }, z.core.$strip>>;
314
+ id: z.ZodString;
315
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
316
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
317
+ }, z.core.$strip>;
318
+ triggerSource: z.ZodOptional<z.ZodObject<{
319
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
320
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
321
+ cronExpression: z.ZodString;
322
+ timezone: z.ZodString;
323
+ }, z.core.$strip>>>;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>;
326
+ flowState: z.ZodObject<{
327
+ projectId: z.ZodString;
328
+ externalId: z.ZodString;
329
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
332
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
334
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
335
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ id: z.ZodString;
338
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
339
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
340
+ version: z.ZodObject<{
341
+ flowId: z.ZodString;
342
+ displayName: z.ZodString;
343
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
344
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
345
+ settings: z.ZodObject<{
346
+ sampleData: z.ZodOptional<z.ZodObject<{
347
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
348
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
349
+ lastTestDate: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$loose>>;
351
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
352
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
353
+ schema: z.ZodOptional<z.ZodAny>;
354
+ }, z.core.$strip>>;
355
+ customLogoUrl: z.ZodOptional<z.ZodString>;
356
+ pieceName: z.ZodString;
357
+ pieceVersion: z.ZodString;
358
+ triggerName: z.ZodOptional<z.ZodString>;
359
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
360
+ }, z.core.$strip>;
361
+ name: z.ZodString;
362
+ valid: z.ZodBoolean;
363
+ displayName: z.ZodString;
364
+ nextAction: z.ZodOptional<z.ZodAny>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
367
+ settings: z.ZodAny;
368
+ name: z.ZodString;
369
+ valid: z.ZodBoolean;
370
+ displayName: z.ZodString;
371
+ nextAction: z.ZodOptional<z.ZodAny>;
372
+ }, z.core.$strip>]>;
373
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ valid: z.ZodBoolean;
375
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ agentIds: z.ZodArray<z.ZodString>;
377
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
378
+ connectionIds: z.ZodArray<z.ZodString>;
379
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
380
+ notes: z.ZodArray<z.ZodObject<{
381
+ id: z.ZodString;
382
+ content: z.ZodString;
383
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
385
+ position: z.ZodObject<{
386
+ x: z.ZodNumber;
387
+ y: z.ZodNumber;
388
+ }, z.core.$strip>;
389
+ size: z.ZodObject<{
390
+ width: z.ZodNumber;
391
+ height: z.ZodNumber;
392
+ }, z.core.$strip>;
393
+ createdAt: z.ZodString;
394
+ updatedAt: z.ZodString;
395
+ }, z.core.$strip>>;
396
+ id: z.ZodString;
397
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
398
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
399
+ }, z.core.$strip>;
400
+ triggerSource: z.ZodOptional<z.ZodObject<{
401
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
402
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
403
+ cronExpression: z.ZodString;
404
+ timezone: z.ZodString;
405
+ }, z.core.$strip>>>;
406
+ }, z.core.$strip>>;
407
+ }, z.core.$strip>;
408
+ }, z.core.$strip>, z.ZodObject<{
409
+ type: z.ZodLiteral<FlowProjectOperationType.CREATE_FLOW>;
410
+ flowState: z.ZodObject<{
411
+ projectId: z.ZodString;
412
+ externalId: z.ZodString;
413
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
416
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
418
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
419
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
420
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ id: z.ZodString;
422
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
423
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
424
+ version: z.ZodObject<{
425
+ flowId: z.ZodString;
426
+ displayName: z.ZodString;
427
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
428
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
429
+ settings: z.ZodObject<{
430
+ sampleData: z.ZodOptional<z.ZodObject<{
431
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
432
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
433
+ lastTestDate: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$loose>>;
435
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
436
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
437
+ schema: z.ZodOptional<z.ZodAny>;
438
+ }, z.core.$strip>>;
439
+ customLogoUrl: z.ZodOptional<z.ZodString>;
440
+ pieceName: z.ZodString;
441
+ pieceVersion: z.ZodString;
442
+ triggerName: z.ZodOptional<z.ZodString>;
443
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
444
+ }, z.core.$strip>;
445
+ name: z.ZodString;
446
+ valid: z.ZodBoolean;
447
+ displayName: z.ZodString;
448
+ nextAction: z.ZodOptional<z.ZodAny>;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
451
+ settings: z.ZodAny;
452
+ name: z.ZodString;
453
+ valid: z.ZodBoolean;
454
+ displayName: z.ZodString;
455
+ nextAction: z.ZodOptional<z.ZodAny>;
456
+ }, z.core.$strip>]>;
457
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ valid: z.ZodBoolean;
459
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ agentIds: z.ZodArray<z.ZodString>;
461
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
462
+ connectionIds: z.ZodArray<z.ZodString>;
463
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
464
+ notes: z.ZodArray<z.ZodObject<{
465
+ id: z.ZodString;
466
+ content: z.ZodString;
467
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
469
+ position: z.ZodObject<{
470
+ x: z.ZodNumber;
471
+ y: z.ZodNumber;
472
+ }, z.core.$strip>;
473
+ size: z.ZodObject<{
474
+ width: z.ZodNumber;
475
+ height: z.ZodNumber;
476
+ }, z.core.$strip>;
477
+ createdAt: z.ZodString;
478
+ updatedAt: z.ZodString;
479
+ }, z.core.$strip>>;
480
+ id: z.ZodString;
481
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
482
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
483
+ }, z.core.$strip>;
484
+ triggerSource: z.ZodOptional<z.ZodObject<{
485
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
486
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
487
+ cronExpression: z.ZodString;
488
+ timezone: z.ZodString;
489
+ }, z.core.$strip>>>;
490
+ }, z.core.$strip>>;
491
+ }, z.core.$strip>;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodLiteral<FlowProjectOperationType.DELETE_FLOW>;
494
+ flowState: z.ZodObject<{
495
+ projectId: z.ZodString;
496
+ externalId: z.ZodString;
497
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
500
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
502
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
503
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
504
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ id: z.ZodString;
506
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
507
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
508
+ version: z.ZodObject<{
509
+ flowId: z.ZodString;
510
+ displayName: z.ZodString;
511
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
512
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
513
+ settings: z.ZodObject<{
514
+ sampleData: z.ZodOptional<z.ZodObject<{
515
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
516
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
517
+ lastTestDate: z.ZodOptional<z.ZodString>;
518
+ }, z.core.$loose>>;
519
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
520
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
521
+ schema: z.ZodOptional<z.ZodAny>;
522
+ }, z.core.$strip>>;
523
+ customLogoUrl: z.ZodOptional<z.ZodString>;
524
+ pieceName: z.ZodString;
525
+ pieceVersion: z.ZodString;
526
+ triggerName: z.ZodOptional<z.ZodString>;
527
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
528
+ }, z.core.$strip>;
529
+ name: z.ZodString;
530
+ valid: z.ZodBoolean;
531
+ displayName: z.ZodString;
532
+ nextAction: z.ZodOptional<z.ZodAny>;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
535
+ settings: z.ZodAny;
536
+ name: z.ZodString;
537
+ valid: z.ZodBoolean;
538
+ displayName: z.ZodString;
539
+ nextAction: z.ZodOptional<z.ZodAny>;
540
+ }, z.core.$strip>]>;
541
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ valid: z.ZodBoolean;
543
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ agentIds: z.ZodArray<z.ZodString>;
545
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
546
+ connectionIds: z.ZodArray<z.ZodString>;
547
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
548
+ notes: z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ content: z.ZodString;
551
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
553
+ position: z.ZodObject<{
554
+ x: z.ZodNumber;
555
+ y: z.ZodNumber;
556
+ }, z.core.$strip>;
557
+ size: z.ZodObject<{
558
+ width: z.ZodNumber;
559
+ height: z.ZodNumber;
560
+ }, z.core.$strip>;
561
+ createdAt: z.ZodString;
562
+ updatedAt: z.ZodString;
563
+ }, z.core.$strip>>;
564
+ id: z.ZodString;
565
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
566
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
567
+ }, z.core.$strip>;
568
+ triggerSource: z.ZodOptional<z.ZodObject<{
569
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
570
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
571
+ cronExpression: z.ZodString;
572
+ timezone: z.ZodString;
573
+ }, z.core.$strip>>>;
574
+ }, z.core.$strip>>;
575
+ }, z.core.$strip>;
576
+ }, z.core.$strip>]>;
577
+ export type ProjectOperation = z.infer<typeof ProjectOperation>;
578
+ export declare const ConnectionOperation: z.ZodUnion<readonly [z.ZodObject<{
579
+ type: z.ZodLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
580
+ newConnectionState: z.ZodObject<{
581
+ externalId: z.ZodString;
582
+ pieceName: z.ZodString;
583
+ displayName: z.ZodString;
584
+ }, z.core.$strip>;
585
+ connectionState: z.ZodObject<{
586
+ externalId: z.ZodString;
587
+ pieceName: z.ZodString;
588
+ displayName: z.ZodString;
589
+ }, z.core.$strip>;
590
+ }, z.core.$strip>, z.ZodObject<{
591
+ type: z.ZodLiteral<ConnectionOperationType.CREATE_CONNECTION>;
592
+ connectionState: z.ZodObject<{
593
+ externalId: z.ZodString;
594
+ pieceName: z.ZodString;
595
+ displayName: z.ZodString;
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>]>;
598
+ export type ConnectionOperation = z.infer<typeof ConnectionOperation>;
599
+ export declare const TableOperation: z.ZodUnion<readonly [z.ZodObject<{
600
+ type: z.ZodLiteral<TableOperationType.UPDATE_TABLE>;
601
+ newTableState: z.ZodObject<{
602
+ id: z.ZodString;
603
+ name: z.ZodString;
604
+ externalId: z.ZodString;
605
+ fields: z.ZodArray<z.ZodObject<{
606
+ name: z.ZodString;
607
+ type: z.ZodString;
608
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
609
+ options: z.ZodArray<z.ZodObject<{
610
+ value: z.ZodString;
611
+ }, z.core.$strip>>;
612
+ }, z.core.$strip>>>;
613
+ externalId: z.ZodString;
614
+ }, z.core.$strip>>;
615
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
616
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
617
+ }, z.core.$strip>;
618
+ tableState: z.ZodObject<{
619
+ id: z.ZodString;
620
+ name: z.ZodString;
621
+ externalId: z.ZodString;
622
+ fields: z.ZodArray<z.ZodObject<{
623
+ name: z.ZodString;
624
+ type: z.ZodString;
625
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
626
+ options: z.ZodArray<z.ZodObject<{
627
+ value: z.ZodString;
628
+ }, z.core.$strip>>;
629
+ }, z.core.$strip>>>;
630
+ externalId: z.ZodString;
631
+ }, z.core.$strip>>;
632
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
633
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
634
+ }, z.core.$strip>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<TableOperationType.CREATE_TABLE>;
637
+ tableState: z.ZodObject<{
638
+ id: z.ZodString;
639
+ name: z.ZodString;
640
+ externalId: z.ZodString;
641
+ fields: z.ZodArray<z.ZodObject<{
642
+ name: z.ZodString;
643
+ type: z.ZodString;
644
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
645
+ options: z.ZodArray<z.ZodObject<{
646
+ value: z.ZodString;
647
+ }, z.core.$strip>>;
648
+ }, z.core.$strip>>>;
649
+ externalId: z.ZodString;
650
+ }, z.core.$strip>>;
651
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
652
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
653
+ }, z.core.$strip>;
654
+ }, z.core.$strip>, z.ZodObject<{
655
+ type: z.ZodLiteral<TableOperationType.DELETE_TABLE>;
656
+ tableState: z.ZodObject<{
657
+ id: z.ZodString;
658
+ name: z.ZodString;
659
+ externalId: z.ZodString;
660
+ fields: z.ZodArray<z.ZodObject<{
661
+ name: z.ZodString;
662
+ type: z.ZodString;
663
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
664
+ options: z.ZodArray<z.ZodObject<{
665
+ value: z.ZodString;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>>>;
668
+ externalId: z.ZodString;
669
+ }, z.core.$strip>>;
670
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
671
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
672
+ }, z.core.$strip>;
673
+ }, z.core.$strip>]>;
674
+ export type TableOperation = z.infer<typeof TableOperation>;
675
+ export declare const DiffState: z.ZodObject<{
676
+ flows: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
677
+ type: z.ZodLiteral<FlowProjectOperationType.UPDATE_FLOW>;
678
+ newFlowState: z.ZodObject<{
679
+ projectId: z.ZodString;
680
+ externalId: z.ZodString;
681
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
684
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
686
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
687
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
688
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ id: z.ZodString;
690
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
691
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
692
+ version: z.ZodObject<{
693
+ flowId: z.ZodString;
694
+ displayName: z.ZodString;
695
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
696
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
697
+ settings: z.ZodObject<{
698
+ sampleData: z.ZodOptional<z.ZodObject<{
699
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
700
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
701
+ lastTestDate: z.ZodOptional<z.ZodString>;
702
+ }, z.core.$loose>>;
703
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
704
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
705
+ schema: z.ZodOptional<z.ZodAny>;
706
+ }, z.core.$strip>>;
707
+ customLogoUrl: z.ZodOptional<z.ZodString>;
708
+ pieceName: z.ZodString;
709
+ pieceVersion: z.ZodString;
710
+ triggerName: z.ZodOptional<z.ZodString>;
711
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
712
+ }, z.core.$strip>;
713
+ name: z.ZodString;
714
+ valid: z.ZodBoolean;
715
+ displayName: z.ZodString;
716
+ nextAction: z.ZodOptional<z.ZodAny>;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
719
+ settings: z.ZodAny;
720
+ name: z.ZodString;
721
+ valid: z.ZodBoolean;
722
+ displayName: z.ZodString;
723
+ nextAction: z.ZodOptional<z.ZodAny>;
724
+ }, z.core.$strip>]>;
725
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
+ valid: z.ZodBoolean;
727
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
728
+ agentIds: z.ZodArray<z.ZodString>;
729
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
730
+ connectionIds: z.ZodArray<z.ZodString>;
731
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
732
+ notes: z.ZodArray<z.ZodObject<{
733
+ id: z.ZodString;
734
+ content: z.ZodString;
735
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
737
+ position: z.ZodObject<{
738
+ x: z.ZodNumber;
739
+ y: z.ZodNumber;
740
+ }, z.core.$strip>;
741
+ size: z.ZodObject<{
742
+ width: z.ZodNumber;
743
+ height: z.ZodNumber;
744
+ }, z.core.$strip>;
745
+ createdAt: z.ZodString;
746
+ updatedAt: z.ZodString;
747
+ }, z.core.$strip>>;
748
+ id: z.ZodString;
749
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
750
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
751
+ }, z.core.$strip>;
752
+ triggerSource: z.ZodOptional<z.ZodObject<{
753
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
754
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
755
+ cronExpression: z.ZodString;
756
+ timezone: z.ZodString;
757
+ }, z.core.$strip>>>;
758
+ }, z.core.$strip>>;
759
+ }, z.core.$strip>;
760
+ flowState: z.ZodObject<{
761
+ projectId: z.ZodString;
762
+ externalId: z.ZodString;
763
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
765
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
766
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
768
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
769
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
770
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
+ id: z.ZodString;
772
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
773
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
774
+ version: z.ZodObject<{
775
+ flowId: z.ZodString;
776
+ displayName: z.ZodString;
777
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
778
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
779
+ settings: z.ZodObject<{
780
+ sampleData: z.ZodOptional<z.ZodObject<{
781
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
782
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
783
+ lastTestDate: z.ZodOptional<z.ZodString>;
784
+ }, z.core.$loose>>;
785
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
786
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
787
+ schema: z.ZodOptional<z.ZodAny>;
788
+ }, z.core.$strip>>;
789
+ customLogoUrl: z.ZodOptional<z.ZodString>;
790
+ pieceName: z.ZodString;
791
+ pieceVersion: z.ZodString;
792
+ triggerName: z.ZodOptional<z.ZodString>;
793
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
794
+ }, z.core.$strip>;
795
+ name: z.ZodString;
796
+ valid: z.ZodBoolean;
797
+ displayName: z.ZodString;
798
+ nextAction: z.ZodOptional<z.ZodAny>;
799
+ }, z.core.$strip>, z.ZodObject<{
800
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
801
+ settings: z.ZodAny;
802
+ name: z.ZodString;
803
+ valid: z.ZodBoolean;
804
+ displayName: z.ZodString;
805
+ nextAction: z.ZodOptional<z.ZodAny>;
806
+ }, z.core.$strip>]>;
807
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
+ valid: z.ZodBoolean;
809
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ agentIds: z.ZodArray<z.ZodString>;
811
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
812
+ connectionIds: z.ZodArray<z.ZodString>;
813
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
814
+ notes: z.ZodArray<z.ZodObject<{
815
+ id: z.ZodString;
816
+ content: z.ZodString;
817
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
819
+ position: z.ZodObject<{
820
+ x: z.ZodNumber;
821
+ y: z.ZodNumber;
822
+ }, z.core.$strip>;
823
+ size: z.ZodObject<{
824
+ width: z.ZodNumber;
825
+ height: z.ZodNumber;
826
+ }, z.core.$strip>;
827
+ createdAt: z.ZodString;
828
+ updatedAt: z.ZodString;
829
+ }, z.core.$strip>>;
830
+ id: z.ZodString;
831
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
832
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
833
+ }, z.core.$strip>;
834
+ triggerSource: z.ZodOptional<z.ZodObject<{
835
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
836
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
837
+ cronExpression: z.ZodString;
838
+ timezone: z.ZodString;
839
+ }, z.core.$strip>>>;
840
+ }, z.core.$strip>>;
841
+ }, z.core.$strip>;
842
+ }, z.core.$strip>, z.ZodObject<{
843
+ type: z.ZodLiteral<FlowProjectOperationType.CREATE_FLOW>;
844
+ flowState: z.ZodObject<{
845
+ projectId: z.ZodString;
846
+ externalId: z.ZodString;
847
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
849
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
850
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
852
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
853
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
854
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
855
+ id: z.ZodString;
856
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
857
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
858
+ version: z.ZodObject<{
859
+ flowId: z.ZodString;
860
+ displayName: z.ZodString;
861
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
862
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
863
+ settings: z.ZodObject<{
864
+ sampleData: z.ZodOptional<z.ZodObject<{
865
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
866
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
867
+ lastTestDate: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$loose>>;
869
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
870
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
871
+ schema: z.ZodOptional<z.ZodAny>;
872
+ }, z.core.$strip>>;
873
+ customLogoUrl: z.ZodOptional<z.ZodString>;
874
+ pieceName: z.ZodString;
875
+ pieceVersion: z.ZodString;
876
+ triggerName: z.ZodOptional<z.ZodString>;
877
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
878
+ }, z.core.$strip>;
879
+ name: z.ZodString;
880
+ valid: z.ZodBoolean;
881
+ displayName: z.ZodString;
882
+ nextAction: z.ZodOptional<z.ZodAny>;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
885
+ settings: z.ZodAny;
886
+ name: z.ZodString;
887
+ valid: z.ZodBoolean;
888
+ displayName: z.ZodString;
889
+ nextAction: z.ZodOptional<z.ZodAny>;
890
+ }, z.core.$strip>]>;
891
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
+ valid: z.ZodBoolean;
893
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ agentIds: z.ZodArray<z.ZodString>;
895
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
896
+ connectionIds: z.ZodArray<z.ZodString>;
897
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
898
+ notes: z.ZodArray<z.ZodObject<{
899
+ id: z.ZodString;
900
+ content: z.ZodString;
901
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
902
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
903
+ position: z.ZodObject<{
904
+ x: z.ZodNumber;
905
+ y: z.ZodNumber;
906
+ }, z.core.$strip>;
907
+ size: z.ZodObject<{
908
+ width: z.ZodNumber;
909
+ height: z.ZodNumber;
910
+ }, z.core.$strip>;
911
+ createdAt: z.ZodString;
912
+ updatedAt: z.ZodString;
913
+ }, z.core.$strip>>;
914
+ id: z.ZodString;
915
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
916
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
917
+ }, z.core.$strip>;
918
+ triggerSource: z.ZodOptional<z.ZodObject<{
919
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
920
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
921
+ cronExpression: z.ZodString;
922
+ timezone: z.ZodString;
923
+ }, z.core.$strip>>>;
924
+ }, z.core.$strip>>;
925
+ }, z.core.$strip>;
926
+ }, z.core.$strip>, z.ZodObject<{
927
+ type: z.ZodLiteral<FlowProjectOperationType.DELETE_FLOW>;
928
+ flowState: z.ZodObject<{
929
+ projectId: z.ZodString;
930
+ externalId: z.ZodString;
931
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ status: z.ZodEnum<typeof import("../flows/flow").FlowStatus>;
934
+ publishedVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
935
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
936
+ operationStatus: z.ZodEnum<typeof import("../flows/flow").FlowOperationStatus>;
937
+ timeSavedPerRun: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
938
+ templateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
+ id: z.ZodString;
940
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
941
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
942
+ version: z.ZodObject<{
943
+ flowId: z.ZodString;
944
+ displayName: z.ZodString;
945
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
946
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.PIECE>;
947
+ settings: z.ZodObject<{
948
+ sampleData: z.ZodOptional<z.ZodObject<{
949
+ sampleDataFileId: z.ZodOptional<z.ZodString>;
950
+ sampleDataInputFileId: z.ZodOptional<z.ZodString>;
951
+ lastTestDate: z.ZodOptional<z.ZodString>;
952
+ }, z.core.$loose>>;
953
+ propertySettings: z.ZodRecord<z.ZodString, z.ZodObject<{
954
+ type: z.ZodEnum<typeof import("../flows").PropertyExecutionType>;
955
+ schema: z.ZodOptional<z.ZodAny>;
956
+ }, z.core.$strip>>;
957
+ customLogoUrl: z.ZodOptional<z.ZodString>;
958
+ pieceName: z.ZodString;
959
+ pieceVersion: z.ZodString;
960
+ triggerName: z.ZodOptional<z.ZodString>;
961
+ input: z.ZodRecord<z.ZodString, z.ZodAny>;
962
+ }, z.core.$strip>;
963
+ name: z.ZodString;
964
+ valid: z.ZodBoolean;
965
+ displayName: z.ZodString;
966
+ nextAction: z.ZodOptional<z.ZodAny>;
967
+ }, z.core.$strip>, z.ZodObject<{
968
+ type: z.ZodLiteral<import("../../..").FlowTriggerType.EMPTY>;
969
+ settings: z.ZodAny;
970
+ name: z.ZodString;
971
+ valid: z.ZodBoolean;
972
+ displayName: z.ZodString;
973
+ nextAction: z.ZodOptional<z.ZodAny>;
974
+ }, z.core.$strip>]>;
975
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
+ valid: z.ZodBoolean;
977
+ schemaVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
978
+ agentIds: z.ZodArray<z.ZodString>;
979
+ state: z.ZodEnum<typeof import("../flows/flow-version").FlowVersionState>;
980
+ connectionIds: z.ZodArray<z.ZodString>;
981
+ backupFiles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
982
+ notes: z.ZodArray<z.ZodObject<{
983
+ id: z.ZodString;
984
+ content: z.ZodString;
985
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ color: z.ZodEnum<typeof import("../flows").NoteColorVariant>;
987
+ position: z.ZodObject<{
988
+ x: z.ZodNumber;
989
+ y: z.ZodNumber;
990
+ }, z.core.$strip>;
991
+ size: z.ZodObject<{
992
+ width: z.ZodNumber;
993
+ height: z.ZodNumber;
994
+ }, z.core.$strip>;
995
+ createdAt: z.ZodString;
996
+ updatedAt: z.ZodString;
997
+ }, z.core.$strip>>;
998
+ id: z.ZodString;
999
+ created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
1000
+ updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
1001
+ }, z.core.$strip>;
1002
+ triggerSource: z.ZodOptional<z.ZodObject<{
1003
+ schedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1004
+ type: z.ZodEnum<typeof import("../trigger").TriggerSourceScheduleType>;
1005
+ cronExpression: z.ZodString;
1006
+ timezone: z.ZodString;
1007
+ }, z.core.$strip>>>;
1008
+ }, z.core.$strip>>;
1009
+ }, z.core.$strip>;
1010
+ }, z.core.$strip>]>>;
1011
+ connections: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1012
+ type: z.ZodLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
1013
+ newConnectionState: z.ZodObject<{
1014
+ externalId: z.ZodString;
1015
+ pieceName: z.ZodString;
1016
+ displayName: z.ZodString;
1017
+ }, z.core.$strip>;
1018
+ connectionState: z.ZodObject<{
1019
+ externalId: z.ZodString;
1020
+ pieceName: z.ZodString;
1021
+ displayName: z.ZodString;
1022
+ }, z.core.$strip>;
1023
+ }, z.core.$strip>, z.ZodObject<{
1024
+ type: z.ZodLiteral<ConnectionOperationType.CREATE_CONNECTION>;
1025
+ connectionState: z.ZodObject<{
1026
+ externalId: z.ZodString;
1027
+ pieceName: z.ZodString;
1028
+ displayName: z.ZodString;
1029
+ }, z.core.$strip>;
1030
+ }, z.core.$strip>]>>;
1031
+ tables: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1032
+ type: z.ZodLiteral<TableOperationType.UPDATE_TABLE>;
1033
+ newTableState: z.ZodObject<{
1034
+ id: z.ZodString;
1035
+ name: z.ZodString;
1036
+ externalId: z.ZodString;
1037
+ fields: z.ZodArray<z.ZodObject<{
1038
+ name: z.ZodString;
1039
+ type: z.ZodString;
1040
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1041
+ options: z.ZodArray<z.ZodObject<{
1042
+ value: z.ZodString;
1043
+ }, z.core.$strip>>;
1044
+ }, z.core.$strip>>>;
1045
+ externalId: z.ZodString;
1046
+ }, z.core.$strip>>;
1047
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1048
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1049
+ }, z.core.$strip>;
1050
+ tableState: z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ name: z.ZodString;
1053
+ externalId: z.ZodString;
1054
+ fields: z.ZodArray<z.ZodObject<{
1055
+ name: z.ZodString;
1056
+ type: z.ZodString;
1057
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1058
+ options: z.ZodArray<z.ZodObject<{
1059
+ value: z.ZodString;
1060
+ }, z.core.$strip>>;
1061
+ }, z.core.$strip>>>;
1062
+ externalId: z.ZodString;
1063
+ }, z.core.$strip>>;
1064
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1065
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1066
+ }, z.core.$strip>;
1067
+ }, z.core.$strip>, z.ZodObject<{
1068
+ type: z.ZodLiteral<TableOperationType.CREATE_TABLE>;
1069
+ tableState: z.ZodObject<{
1070
+ id: z.ZodString;
1071
+ name: z.ZodString;
1072
+ externalId: z.ZodString;
1073
+ fields: z.ZodArray<z.ZodObject<{
1074
+ name: z.ZodString;
1075
+ type: z.ZodString;
1076
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1077
+ options: z.ZodArray<z.ZodObject<{
1078
+ value: z.ZodString;
1079
+ }, z.core.$strip>>;
1080
+ }, z.core.$strip>>>;
1081
+ externalId: z.ZodString;
1082
+ }, z.core.$strip>>;
1083
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1084
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1085
+ }, z.core.$strip>;
1086
+ }, z.core.$strip>, z.ZodObject<{
1087
+ type: z.ZodLiteral<TableOperationType.DELETE_TABLE>;
1088
+ tableState: z.ZodObject<{
1089
+ id: z.ZodString;
1090
+ name: z.ZodString;
1091
+ externalId: z.ZodString;
1092
+ fields: z.ZodArray<z.ZodObject<{
1093
+ name: z.ZodString;
1094
+ type: z.ZodString;
1095
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1096
+ options: z.ZodArray<z.ZodObject<{
1097
+ value: z.ZodString;
1098
+ }, z.core.$strip>>;
1099
+ }, z.core.$strip>>>;
1100
+ externalId: z.ZodString;
1101
+ }, z.core.$strip>>;
1102
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1103
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1104
+ }, z.core.$strip>;
1105
+ }, z.core.$strip>]>>;
1106
+ }, z.core.$strip>;
1107
+ export type DiffState = z.infer<typeof DiffState>;
1108
+ export declare const FlowSyncError: z.ZodObject<{
1109
+ flowId: z.ZodString;
1110
+ message: z.ZodString;
1111
+ }, z.core.$strip>;
1112
+ export type FlowSyncError = z.infer<typeof FlowSyncError>;
1113
+ export declare const FlowProjectOperation: z.ZodUnion<readonly [z.ZodObject<{
1114
+ type: z.ZodLiteral<FlowProjectOperationType.CREATE_FLOW>;
1115
+ flow: z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ displayName: z.ZodString;
1118
+ }, z.core.$strip>;
1119
+ }, z.core.$strip>, z.ZodObject<{
1120
+ type: z.ZodLiteral<FlowProjectOperationType.UPDATE_FLOW>;
1121
+ flow: z.ZodObject<{
1122
+ id: z.ZodString;
1123
+ displayName: z.ZodString;
1124
+ }, z.core.$strip>;
1125
+ targetFlow: z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ displayName: z.ZodString;
1128
+ }, z.core.$strip>;
1129
+ }, z.core.$strip>, z.ZodObject<{
1130
+ type: z.ZodLiteral<FlowProjectOperationType.DELETE_FLOW>;
1131
+ flow: z.ZodObject<{
1132
+ id: z.ZodString;
1133
+ displayName: z.ZodString;
1134
+ }, z.core.$strip>;
1135
+ }, z.core.$strip>]>;
1136
+ export type FlowProjectOperation = z.infer<typeof FlowProjectOperation>;
1137
+ export declare const ProjectSyncPlan: z.ZodObject<{
1138
+ flows: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1139
+ type: z.ZodLiteral<FlowProjectOperationType.CREATE_FLOW>;
1140
+ flow: z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ displayName: z.ZodString;
1143
+ }, z.core.$strip>;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ type: z.ZodLiteral<FlowProjectOperationType.UPDATE_FLOW>;
1146
+ flow: z.ZodObject<{
1147
+ id: z.ZodString;
1148
+ displayName: z.ZodString;
1149
+ }, z.core.$strip>;
1150
+ targetFlow: z.ZodObject<{
1151
+ id: z.ZodString;
1152
+ displayName: z.ZodString;
1153
+ }, z.core.$strip>;
1154
+ }, z.core.$strip>, z.ZodObject<{
1155
+ type: z.ZodLiteral<FlowProjectOperationType.DELETE_FLOW>;
1156
+ flow: z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ displayName: z.ZodString;
1159
+ }, z.core.$strip>;
1160
+ }, z.core.$strip>]>>;
1161
+ connections: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1162
+ type: z.ZodLiteral<ConnectionOperationType.UPDATE_CONNECTION>;
1163
+ newConnectionState: z.ZodObject<{
1164
+ externalId: z.ZodString;
1165
+ pieceName: z.ZodString;
1166
+ displayName: z.ZodString;
1167
+ }, z.core.$strip>;
1168
+ connectionState: z.ZodObject<{
1169
+ externalId: z.ZodString;
1170
+ pieceName: z.ZodString;
1171
+ displayName: z.ZodString;
1172
+ }, z.core.$strip>;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ type: z.ZodLiteral<ConnectionOperationType.CREATE_CONNECTION>;
1175
+ connectionState: z.ZodObject<{
1176
+ externalId: z.ZodString;
1177
+ pieceName: z.ZodString;
1178
+ displayName: z.ZodString;
1179
+ }, z.core.$strip>;
1180
+ }, z.core.$strip>]>>;
1181
+ tables: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1182
+ type: z.ZodLiteral<TableOperationType.UPDATE_TABLE>;
1183
+ newTableState: z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ name: z.ZodString;
1186
+ externalId: z.ZodString;
1187
+ fields: z.ZodArray<z.ZodObject<{
1188
+ name: z.ZodString;
1189
+ type: z.ZodString;
1190
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1191
+ options: z.ZodArray<z.ZodObject<{
1192
+ value: z.ZodString;
1193
+ }, z.core.$strip>>;
1194
+ }, z.core.$strip>>>;
1195
+ externalId: z.ZodString;
1196
+ }, z.core.$strip>>;
1197
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1198
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1199
+ }, z.core.$strip>;
1200
+ tableState: z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ name: z.ZodString;
1203
+ externalId: z.ZodString;
1204
+ fields: z.ZodArray<z.ZodObject<{
1205
+ name: z.ZodString;
1206
+ type: z.ZodString;
1207
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1208
+ options: z.ZodArray<z.ZodObject<{
1209
+ value: z.ZodString;
1210
+ }, z.core.$strip>>;
1211
+ }, z.core.$strip>>>;
1212
+ externalId: z.ZodString;
1213
+ }, z.core.$strip>>;
1214
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1215
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1216
+ }, z.core.$strip>;
1217
+ }, z.core.$strip>, z.ZodObject<{
1218
+ type: z.ZodLiteral<TableOperationType.CREATE_TABLE>;
1219
+ tableState: z.ZodObject<{
1220
+ id: z.ZodString;
1221
+ name: z.ZodString;
1222
+ externalId: z.ZodString;
1223
+ fields: z.ZodArray<z.ZodObject<{
1224
+ name: z.ZodString;
1225
+ type: z.ZodString;
1226
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1227
+ options: z.ZodArray<z.ZodObject<{
1228
+ value: z.ZodString;
1229
+ }, z.core.$strip>>;
1230
+ }, z.core.$strip>>>;
1231
+ externalId: z.ZodString;
1232
+ }, z.core.$strip>>;
1233
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1234
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1235
+ }, z.core.$strip>;
1236
+ }, z.core.$strip>, z.ZodObject<{
1237
+ type: z.ZodLiteral<TableOperationType.DELETE_TABLE>;
1238
+ tableState: z.ZodObject<{
1239
+ id: z.ZodString;
1240
+ name: z.ZodString;
1241
+ externalId: z.ZodString;
1242
+ fields: z.ZodArray<z.ZodObject<{
1243
+ name: z.ZodString;
1244
+ type: z.ZodString;
1245
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1246
+ options: z.ZodArray<z.ZodObject<{
1247
+ value: z.ZodString;
1248
+ }, z.core.$strip>>;
1249
+ }, z.core.$strip>>>;
1250
+ externalId: z.ZodString;
1251
+ }, z.core.$strip>>;
1252
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationStatus>>>;
1253
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TableAutomationTrigger>>>;
1254
+ }, z.core.$strip>;
1255
+ }, z.core.$strip>]>>;
1256
+ errors: z.ZodArray<z.ZodObject<{
1257
+ flowId: z.ZodString;
1258
+ message: z.ZodString;
1259
+ }, z.core.$strip>>;
1260
+ }, z.core.$strip>;
1261
+ export type ProjectSyncPlan = z.infer<typeof ProjectSyncPlan>;