@boboddy/sdk 0.0.7-alpha → 0.0.9-alpha

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 (215) hide show
  1. package/dist/apps/api/src/app.d.ts +1371 -575
  2. package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +477 -0
  3. package/dist/apps/api/src/http/routes/step-executions.d.ts +1 -0
  4. package/dist/packages/core/src/access/authorization/application/authorization-service.d.ts +12 -0
  5. package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +7 -0
  6. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +21 -0
  7. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +13 -0
  8. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +21 -0
  9. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +11 -0
  10. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +11 -0
  11. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +11 -0
  12. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +3 -0
  13. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +3 -0
  14. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +15 -0
  15. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +10 -0
  16. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +14 -0
  17. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +29 -0
  18. package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +10 -0
  19. package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +62 -0
  20. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +12 -0
  21. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +99 -0
  22. package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +16 -0
  23. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +6 -0
  24. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +8 -0
  25. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +11 -0
  26. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +4 -0
  27. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +4 -0
  28. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +42 -0
  29. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +24 -0
  30. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +5 -0
  31. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +17 -0
  32. package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +11 -0
  33. package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +11 -0
  34. package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +17 -0
  35. package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +11 -0
  36. package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +11 -0
  37. package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +26 -0
  38. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +1 -0
  39. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +3 -0
  40. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +4 -0
  41. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +20 -0
  42. package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +25 -0
  43. package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +194 -0
  44. package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +111 -0
  45. package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +20 -0
  46. package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +25 -0
  47. package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +12 -0
  48. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +24 -0
  49. package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +17 -0
  50. package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +35 -0
  51. package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +25 -0
  52. package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +17 -0
  53. package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +11 -0
  54. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +3 -0
  55. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +10 -0
  56. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +9 -0
  57. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +23 -0
  58. package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +19 -0
  59. package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +21 -0
  60. package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +32 -0
  61. package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +140 -0
  62. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +12 -0
  63. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +76 -0
  64. package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +20 -0
  65. package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +9 -0
  66. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +42 -0
  67. package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +32 -0
  68. package/dist/packages/core/src/common/contracts/json.d.ts +9 -0
  69. package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +73 -0
  70. package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +8 -0
  71. package/dist/packages/core/src/lib/db/db-executor.d.ts +4 -0
  72. package/dist/packages/core/src/lib/db/index.d.ts +7 -0
  73. package/dist/packages/core/src/lib/db/schema.d.ts +4950 -0
  74. package/dist/packages/core/src/lib/di.d.ts +112 -0
  75. package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +12 -0
  76. package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +7 -0
  77. package/dist/packages/core/src/lib/errors.d.ts +36 -0
  78. package/dist/packages/core/src/lib/logger.d.ts +7 -0
  79. package/dist/packages/core/src/lib/time-provider.d.ts +5 -0
  80. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +9 -0
  81. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +9 -0
  82. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +9 -0
  83. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +7 -0
  84. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +3 -0
  85. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +9 -0
  86. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +7 -0
  87. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +9 -0
  88. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +9 -0
  89. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +9 -0
  90. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +9 -0
  91. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +357 -0
  92. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +36 -0
  93. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +42 -0
  94. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +42 -0
  95. package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +11 -0
  96. package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +9 -0
  97. package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +9 -0
  98. package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +7 -0
  99. package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +7 -0
  100. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +3 -0
  101. package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +9 -0
  102. package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +9 -0
  103. package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +281 -0
  104. package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +53 -0
  105. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +31 -0
  106. package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +30 -0
  107. package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +11 -0
  108. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +6 -0
  109. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +11 -0
  110. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +5 -0
  111. package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +7 -0
  112. package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +98 -0
  113. package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +37 -0
  114. package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +9 -0
  115. package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +9 -0
  116. package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +14 -0
  117. package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +8 -0
  118. package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +15 -0
  119. package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +21 -0
  120. package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +29 -0
  121. package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +10 -0
  122. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +15 -0
  123. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +17 -0
  124. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +11 -0
  125. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +11 -0
  126. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +13 -0
  127. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +11 -0
  128. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +3 -0
  129. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +52 -0
  130. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +15 -0
  131. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +5 -0
  132. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +11 -0
  133. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +11 -0
  134. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +11 -0
  135. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +10 -0
  136. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +15 -0
  137. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +13 -0
  138. package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +15 -0
  139. package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +330 -0
  140. package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +43 -0
  141. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +25 -0
  142. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +45 -0
  143. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +24 -0
  144. package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +63 -0
  145. package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +19 -0
  146. package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +9 -0
  147. package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +17 -0
  148. package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +35 -0
  149. package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +9 -0
  150. package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +13 -0
  151. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +13 -0
  152. package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +9 -0
  153. package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +17 -0
  154. package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +9 -0
  155. package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +31 -0
  156. package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +9 -0
  157. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +13 -0
  158. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +7 -0
  159. package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +29 -0
  160. package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +325 -0
  161. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +61 -0
  162. package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +18 -0
  163. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +32 -0
  164. package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +36 -0
  165. package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +31 -0
  166. package/dist/packages/core/src/projects/project/application/create-project.d.ts +13 -0
  167. package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +4 -0
  168. package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +4 -0
  169. package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +4 -0
  170. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +9 -0
  171. package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +7 -0
  172. package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +8 -0
  173. package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +4 -0
  174. package/dist/packages/core/src/projects/project/application/get-project.d.ts +9 -0
  175. package/dist/packages/core/src/projects/project/application/list-projects.d.ts +9 -0
  176. package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +4 -0
  177. package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +3 -0
  178. package/dist/packages/core/src/projects/project/application/project-repo.d.ts +9 -0
  179. package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +12 -0
  180. package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +11 -0
  181. package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +37 -0
  182. package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +13 -0
  183. package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +31 -0
  184. package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +7 -0
  185. package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +21 -0
  186. package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +7 -0
  187. package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +11 -0
  188. package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +13 -0
  189. package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +10 -0
  190. package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +13 -0
  191. package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +8 -0
  192. package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +46 -0
  193. package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +27 -0
  194. package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +10 -0
  195. package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +17 -0
  196. package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +16 -0
  197. package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +14 -0
  198. package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +14 -0
  199. package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +11 -0
  200. package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +16 -0
  201. package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +4 -0
  202. package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +27 -0
  203. package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +119 -0
  204. package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +1 -0
  205. package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +58 -0
  206. package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +3 -0
  207. package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +6 -0
  208. package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +2 -0
  209. package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +18 -0
  210. package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +25 -0
  211. package/dist/packages/sdks/js/src/define-step.d.ts +72 -0
  212. package/dist/packages/sdks/js/src/step-definitions-client.d.ts +202 -0
  213. package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +1 -0
  214. package/dist/packages/sdks/js/test/define-step.test.d.ts +1 -0
  215. package/package.json +17 -2
@@ -0,0 +1,330 @@
1
+ import { z } from "zod";
2
+ export declare const linearPipelineStepEvaluationSchema: z.ZodObject<{
3
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
4
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
5
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
6
+ linearPipelineStepRunAttemptId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
7
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
8
+ stepExecutionResultId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
9
+ stepExecutionResultStatus: z.ZodNullable<z.ZodEnum<{
10
+ succeeded: "succeeded";
11
+ failed: "failed";
12
+ }>>;
13
+ linearPipelineStepAdvancementPolicyDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
14
+ factsSnapshotJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>;
15
+ ruleResultsJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
16
+ finalStatus: z.ZodEnum<{
17
+ pass: "pass";
18
+ fail: "fail";
19
+ }>;
20
+ finalAction: z.ZodEnum<{
21
+ continue: "continue";
22
+ block: "block";
23
+ needs_review: "needs_review";
24
+ complete: "complete";
25
+ }>;
26
+ finalPayloadJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
27
+ createdAt: z.ZodISODateTime;
28
+ }, z.core.$strip>;
29
+ export declare const linearPipelineStepRunAttemptSchema: z.ZodObject<{
30
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
31
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
32
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
33
+ attemptNumber: z.ZodNumber;
34
+ status: z.ZodEnum<{
35
+ queued: "queued";
36
+ running: "running";
37
+ succeeded: "succeeded";
38
+ failed: "failed";
39
+ cancelled: "cancelled";
40
+ skipped: "skipped";
41
+ timeout: "timeout";
42
+ abandoned: "abandoned";
43
+ }>;
44
+ evaluationId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
45
+ createdAt: z.ZodISODateTime;
46
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
47
+ }, z.core.$strip>;
48
+ export declare const linearPipelineExecutionEventSchema: z.ZodObject<{
49
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
50
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
51
+ type: z.ZodEnum<{
52
+ pipeline_queued: "pipeline_queued";
53
+ pipeline_started: "pipeline_started";
54
+ step_run_created: "step_run_created";
55
+ step_attempt_queued: "step_attempt_queued";
56
+ step_attempt_started: "step_attempt_started";
57
+ step_attempt_succeeded: "step_attempt_succeeded";
58
+ step_attempt_failed: "step_attempt_failed";
59
+ step_evaluated: "step_evaluated";
60
+ step_satisfied_by_policy: "step_satisfied_by_policy";
61
+ step_satisfied_by_user: "step_satisfied_by_user";
62
+ step_unsatisfied_by_policy: "step_unsatisfied_by_policy";
63
+ step_retriggered: "step_retriggered";
64
+ step_blocked: "step_blocked";
65
+ step_needs_review: "step_needs_review";
66
+ pipeline_succeeded: "pipeline_succeeded";
67
+ pipeline_failed: "pipeline_failed";
68
+ pipeline_blocked: "pipeline_blocked";
69
+ pipeline_needs_review: "pipeline_needs_review";
70
+ pipeline_cancelled: "pipeline_cancelled";
71
+ }>;
72
+ payloadJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
73
+ createdAt: z.ZodISODateTime;
74
+ }, z.core.$strip>;
75
+ export declare const linearPipelineStepRunSchema: z.ZodObject<{
76
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
77
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
78
+ linearPipelineStepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
79
+ stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
80
+ stepDefinitionVersion: z.ZodNumber;
81
+ stepKey: z.ZodString;
82
+ position: z.ZodNumber;
83
+ status: z.ZodEnum<{
84
+ needs_review: "needs_review";
85
+ queued: "queued";
86
+ running: "running";
87
+ cancelled: "cancelled";
88
+ blocked: "blocked";
89
+ pending: "pending";
90
+ satisfied: "satisfied";
91
+ unsatisfied: "unsatisfied";
92
+ skipped: "skipped";
93
+ }>;
94
+ satisfactionStatus: z.ZodEnum<{
95
+ not_evaluated: "not_evaluated";
96
+ satisfied_by_policy: "satisfied_by_policy";
97
+ satisfied_by_user: "satisfied_by_user";
98
+ unsatisfied_by_policy: "unsatisfied_by_policy";
99
+ }>;
100
+ selectedStepExecutionId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
101
+ selectedStepExecutionResultId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
102
+ acceptedByUserId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
103
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
104
+ acceptanceReason: z.ZodNullable<z.ZodString>;
105
+ attemptCount: z.ZodNumber;
106
+ lastAttemptedAt: z.ZodNullable<z.ZodISODateTime>;
107
+ inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
108
+ outputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
109
+ attempts: z.ZodArray<z.ZodObject<{
110
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
111
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
112
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
113
+ attemptNumber: z.ZodNumber;
114
+ status: z.ZodEnum<{
115
+ queued: "queued";
116
+ running: "running";
117
+ succeeded: "succeeded";
118
+ failed: "failed";
119
+ cancelled: "cancelled";
120
+ skipped: "skipped";
121
+ timeout: "timeout";
122
+ abandoned: "abandoned";
123
+ }>;
124
+ evaluationId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
125
+ createdAt: z.ZodISODateTime;
126
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
127
+ }, z.core.$strip>>;
128
+ evaluations: z.ZodArray<z.ZodObject<{
129
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
130
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
131
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
132
+ linearPipelineStepRunAttemptId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
133
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
134
+ stepExecutionResultId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
135
+ stepExecutionResultStatus: z.ZodNullable<z.ZodEnum<{
136
+ succeeded: "succeeded";
137
+ failed: "failed";
138
+ }>>;
139
+ linearPipelineStepAdvancementPolicyDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
140
+ factsSnapshotJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>;
141
+ ruleResultsJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
142
+ finalStatus: z.ZodEnum<{
143
+ pass: "pass";
144
+ fail: "fail";
145
+ }>;
146
+ finalAction: z.ZodEnum<{
147
+ continue: "continue";
148
+ block: "block";
149
+ needs_review: "needs_review";
150
+ complete: "complete";
151
+ }>;
152
+ finalPayloadJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
153
+ createdAt: z.ZodISODateTime;
154
+ }, z.core.$strip>>;
155
+ createdAt: z.ZodISODateTime;
156
+ updatedAt: z.ZodISODateTime;
157
+ }, z.core.$strip>;
158
+ export declare const linearPipelineExecutionSchema: z.ZodObject<{
159
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
160
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
161
+ linearPipelineDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
162
+ linearPipelineDefinitionVersion: z.ZodNumber;
163
+ status: z.ZodEnum<{
164
+ needs_review: "needs_review";
165
+ queued: "queued";
166
+ running: "running";
167
+ succeeded: "succeeded";
168
+ failed: "failed";
169
+ cancelled: "cancelled";
170
+ blocked: "blocked";
171
+ }>;
172
+ currentStepKey: z.ZodNullable<z.ZodString>;
173
+ inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
174
+ stepRuns: z.ZodArray<z.ZodObject<{
175
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
176
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
177
+ linearPipelineStepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
178
+ stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
179
+ stepDefinitionVersion: z.ZodNumber;
180
+ stepKey: z.ZodString;
181
+ position: z.ZodNumber;
182
+ status: z.ZodEnum<{
183
+ needs_review: "needs_review";
184
+ queued: "queued";
185
+ running: "running";
186
+ cancelled: "cancelled";
187
+ blocked: "blocked";
188
+ pending: "pending";
189
+ satisfied: "satisfied";
190
+ unsatisfied: "unsatisfied";
191
+ skipped: "skipped";
192
+ }>;
193
+ satisfactionStatus: z.ZodEnum<{
194
+ not_evaluated: "not_evaluated";
195
+ satisfied_by_policy: "satisfied_by_policy";
196
+ satisfied_by_user: "satisfied_by_user";
197
+ unsatisfied_by_policy: "unsatisfied_by_policy";
198
+ }>;
199
+ selectedStepExecutionId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
200
+ selectedStepExecutionResultId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
201
+ acceptedByUserId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
202
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
203
+ acceptanceReason: z.ZodNullable<z.ZodString>;
204
+ attemptCount: z.ZodNumber;
205
+ lastAttemptedAt: z.ZodNullable<z.ZodISODateTime>;
206
+ inputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
207
+ outputJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
208
+ attempts: z.ZodArray<z.ZodObject<{
209
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
210
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
211
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
212
+ attemptNumber: z.ZodNumber;
213
+ status: z.ZodEnum<{
214
+ queued: "queued";
215
+ running: "running";
216
+ succeeded: "succeeded";
217
+ failed: "failed";
218
+ cancelled: "cancelled";
219
+ skipped: "skipped";
220
+ timeout: "timeout";
221
+ abandoned: "abandoned";
222
+ }>;
223
+ evaluationId: z.ZodNullable<z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>>;
224
+ createdAt: z.ZodISODateTime;
225
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
226
+ }, z.core.$strip>>;
227
+ evaluations: z.ZodArray<z.ZodObject<{
228
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
229
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
230
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
231
+ linearPipelineStepRunAttemptId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
232
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
233
+ stepExecutionResultId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
234
+ stepExecutionResultStatus: z.ZodNullable<z.ZodEnum<{
235
+ succeeded: "succeeded";
236
+ failed: "failed";
237
+ }>>;
238
+ linearPipelineStepAdvancementPolicyDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
239
+ factsSnapshotJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>;
240
+ ruleResultsJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
241
+ finalStatus: z.ZodEnum<{
242
+ pass: "pass";
243
+ fail: "fail";
244
+ }>;
245
+ finalAction: z.ZodEnum<{
246
+ continue: "continue";
247
+ block: "block";
248
+ needs_review: "needs_review";
249
+ complete: "complete";
250
+ }>;
251
+ finalPayloadJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
252
+ createdAt: z.ZodISODateTime;
253
+ }, z.core.$strip>>;
254
+ createdAt: z.ZodISODateTime;
255
+ updatedAt: z.ZodISODateTime;
256
+ }, z.core.$strip>>;
257
+ events: z.ZodArray<z.ZodObject<{
258
+ id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
259
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
260
+ type: z.ZodEnum<{
261
+ pipeline_queued: "pipeline_queued";
262
+ pipeline_started: "pipeline_started";
263
+ step_run_created: "step_run_created";
264
+ step_attempt_queued: "step_attempt_queued";
265
+ step_attempt_started: "step_attempt_started";
266
+ step_attempt_succeeded: "step_attempt_succeeded";
267
+ step_attempt_failed: "step_attempt_failed";
268
+ step_evaluated: "step_evaluated";
269
+ step_satisfied_by_policy: "step_satisfied_by_policy";
270
+ step_satisfied_by_user: "step_satisfied_by_user";
271
+ step_unsatisfied_by_policy: "step_unsatisfied_by_policy";
272
+ step_retriggered: "step_retriggered";
273
+ step_blocked: "step_blocked";
274
+ step_needs_review: "step_needs_review";
275
+ pipeline_succeeded: "pipeline_succeeded";
276
+ pipeline_failed: "pipeline_failed";
277
+ pipeline_blocked: "pipeline_blocked";
278
+ pipeline_needs_review: "pipeline_needs_review";
279
+ pipeline_cancelled: "pipeline_cancelled";
280
+ }>;
281
+ payloadJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
282
+ createdAt: z.ZodISODateTime;
283
+ }, z.core.$strip>>;
284
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
285
+ completedAt: z.ZodNullable<z.ZodISODateTime>;
286
+ createdAt: z.ZodISODateTime;
287
+ updatedAt: z.ZodISODateTime;
288
+ }, z.core.$strip>;
289
+ export declare const createLinearPipelineExecutionInputSchema: z.ZodObject<{
290
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
291
+ linearPipelineDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
292
+ inputJson: z.ZodOptional<z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>>;
293
+ }, z.core.$strip>;
294
+ export declare const applyLinearPipelineStepResultInputSchema: z.ZodObject<{
295
+ status: z.ZodEnum<{
296
+ succeeded: "succeeded";
297
+ failed: "failed";
298
+ }>;
299
+ resultJson: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
300
+ errorJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>>;
301
+ }, z.core.$strip>;
302
+ export declare const acceptLinearPipelineStepRunInputSchema: z.ZodObject<{
303
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
304
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
305
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
306
+ stepExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
307
+ stepExecutionResultId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
308
+ acceptedByUserId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
309
+ acceptanceReason: z.ZodString;
310
+ }, z.core.$strip>;
311
+ export declare const retriggerLinearPipelineStepRunInputSchema: z.ZodObject<{
312
+ projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
313
+ linearPipelineExecutionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
314
+ linearPipelineStepRunId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
315
+ }, z.core.$strip>;
316
+ export declare const getLinearPipelineExecutionInputSchema: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
317
+ export declare const listLinearPipelineExecutionsByProjectIdInputSchema: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
318
+ export declare const listLinearPipelineExecutionsByDefinitionIdInputSchema: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
319
+ export type LinearPipelineStepEvaluationContract = z.infer<typeof linearPipelineStepEvaluationSchema>;
320
+ export type LinearPipelineStepRunAttemptContract = z.infer<typeof linearPipelineStepRunAttemptSchema>;
321
+ export type LinearPipelineExecutionEventContract = z.infer<typeof linearPipelineExecutionEventSchema>;
322
+ export type LinearPipelineStepRunContract = z.infer<typeof linearPipelineStepRunSchema>;
323
+ export type LinearPipelineExecutionContract = z.infer<typeof linearPipelineExecutionSchema>;
324
+ export type CreateLinearPipelineExecutionInput = z.input<typeof createLinearPipelineExecutionInputSchema>;
325
+ export type ApplyLinearPipelineStepResultInput = z.input<typeof applyLinearPipelineStepResultInputSchema>;
326
+ export type AcceptLinearPipelineStepRunInput = z.input<typeof acceptLinearPipelineStepRunInputSchema>;
327
+ export type RetriggerLinearPipelineStepRunInput = z.input<typeof retriggerLinearPipelineStepRunInputSchema>;
328
+ export type GetLinearPipelineExecutionInput = z.input<typeof getLinearPipelineExecutionInputSchema>;
329
+ export type ListLinearPipelineExecutionsByProjectIdInput = z.input<typeof listLinearPipelineExecutionsByProjectIdInputSchema>;
330
+ export type ListLinearPipelineExecutionsByDefinitionIdInput = z.input<typeof listLinearPipelineExecutionsByDefinitionIdInputSchema>;
@@ -0,0 +1,43 @@
1
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
3
+ import { LinearPipelineExecutionEventEntity, type LinearPipelineExecutionEventEntityProps } from "../entities/linear-pipeline-execution-event-entity";
4
+ import { LinearPipelineStepRunEntity, type LinearPipelineStepRunEntityProps } from "../entities/linear-pipeline-step-run-entity";
5
+ export declare const linearPipelineExecutionStatusValues: readonly ["queued", "running", "succeeded", "failed", "cancelled", "blocked", "needs_review"];
6
+ export type LinearPipelineExecutionStatus = (typeof linearPipelineExecutionStatusValues)[number];
7
+ export type LinearPipelineExecutionEntityProps = {
8
+ id: UuidV7;
9
+ projectId: UuidV7;
10
+ linearPipelineDefinitionId: UuidV7;
11
+ linearPipelineDefinitionVersion: number;
12
+ status: LinearPipelineExecutionStatus;
13
+ currentStepKey?: string | null | undefined;
14
+ inputJson?: AnyJsonValue | null | undefined;
15
+ stepRuns: readonly LinearPipelineStepRunEntityProps[];
16
+ events: readonly LinearPipelineExecutionEventEntityProps[];
17
+ startedAt?: Date | string | null | undefined;
18
+ completedAt?: Date | string | null | undefined;
19
+ createdAt?: Date | string | null | undefined;
20
+ updatedAt?: Date | string | null | undefined;
21
+ };
22
+ export type CreateLinearPipelineExecutionEntityProps = Omit<LinearPipelineExecutionEntityProps, "id"> & {
23
+ id?: UuidV7 | undefined;
24
+ };
25
+ export declare class LinearPipelineExecutionEntity {
26
+ readonly id: UuidV7;
27
+ readonly projectId: UuidV7;
28
+ readonly linearPipelineDefinitionId: UuidV7;
29
+ readonly linearPipelineDefinitionVersion: number;
30
+ readonly status: LinearPipelineExecutionStatus;
31
+ readonly currentStepKey: string | null;
32
+ readonly inputJson: AnyJsonValue | null;
33
+ readonly stepRuns: LinearPipelineStepRunEntity[];
34
+ readonly events: LinearPipelineExecutionEventEntity[];
35
+ readonly startedAt: Date | null | undefined;
36
+ readonly completedAt: Date | null | undefined;
37
+ readonly createdAt: Date | null | undefined;
38
+ readonly updatedAt: Date | null | undefined;
39
+ private constructor();
40
+ static create(props: CreateLinearPipelineExecutionEntityProps): LinearPipelineExecutionEntity;
41
+ static rehydrate(props: LinearPipelineExecutionEntityProps): LinearPipelineExecutionEntity;
42
+ toJSON(): LinearPipelineExecutionEntityProps;
43
+ }
@@ -0,0 +1,25 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ export declare const linearPipelineExecutionEventTypeValues: readonly ["pipeline_queued", "pipeline_started", "step_run_created", "step_attempt_queued", "step_attempt_started", "step_attempt_succeeded", "step_attempt_failed", "step_evaluated", "step_satisfied_by_policy", "step_satisfied_by_user", "step_unsatisfied_by_policy", "step_retriggered", "step_blocked", "step_needs_review", "pipeline_succeeded", "pipeline_failed", "pipeline_blocked", "pipeline_needs_review", "pipeline_cancelled"];
4
+ export type LinearPipelineExecutionEventType = (typeof linearPipelineExecutionEventTypeValues)[number];
5
+ export type LinearPipelineExecutionEventEntityProps = {
6
+ id: UuidV7;
7
+ linearPipelineExecutionId: UuidV7;
8
+ type: LinearPipelineExecutionEventType;
9
+ payloadJson?: AnyJsonObject | null | undefined;
10
+ createdAt?: Date | string | null | undefined;
11
+ };
12
+ export type CreateLinearPipelineExecutionEventEntityProps = Omit<LinearPipelineExecutionEventEntityProps, "id"> & {
13
+ id?: UuidV7 | undefined;
14
+ };
15
+ export declare class LinearPipelineExecutionEventEntity {
16
+ readonly id: UuidV7;
17
+ readonly linearPipelineExecutionId: UuidV7;
18
+ readonly type: LinearPipelineExecutionEventType;
19
+ readonly payloadJson: AnyJsonObject | null;
20
+ readonly createdAt: Date | null | undefined;
21
+ private constructor();
22
+ static create(props: CreateLinearPipelineExecutionEventEntityProps): LinearPipelineExecutionEventEntity;
23
+ static rehydrate(props: LinearPipelineExecutionEventEntityProps): LinearPipelineExecutionEventEntity;
24
+ toJSON(): LinearPipelineExecutionEventEntityProps;
25
+ }
@@ -0,0 +1,45 @@
1
+ import type { AnyJsonObject, AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import type { LinearPipelineStepAdvancementPolicyEventType } from "@boboddy/core/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity";
4
+ import type { StepExecutionResultStatus } from "@boboddy/core/pipeline-executions/step-execution/entities/step-execution-result-entity";
5
+ export declare const linearPipelineStepEvaluationFinalStatusValues: readonly ["pass", "fail"];
6
+ export type LinearPipelineStepEvaluationFinalStatus = (typeof linearPipelineStepEvaluationFinalStatusValues)[number];
7
+ export type LinearPipelineStepEvaluationEntityProps = {
8
+ id: UuidV7;
9
+ linearPipelineExecutionId: UuidV7;
10
+ linearPipelineStepRunId: UuidV7;
11
+ linearPipelineStepRunAttemptId: UuidV7;
12
+ stepExecutionId: UuidV7;
13
+ stepExecutionResultId: UuidV7;
14
+ stepExecutionResultStatus?: StepExecutionResultStatus | null | undefined;
15
+ linearPipelineStepAdvancementPolicyDefinitionId: UuidV7;
16
+ factsSnapshotJson: AnyJsonObject;
17
+ ruleResultsJson: AnyJsonValue;
18
+ finalStatus: LinearPipelineStepEvaluationFinalStatus;
19
+ finalAction: LinearPipelineStepAdvancementPolicyEventType;
20
+ finalPayloadJson?: AnyJsonObject | null | undefined;
21
+ createdAt?: Date | string | null | undefined;
22
+ };
23
+ export type CreateLinearPipelineStepEvaluationEntityProps = Omit<LinearPipelineStepEvaluationEntityProps, "id"> & {
24
+ id?: UuidV7 | undefined;
25
+ };
26
+ export declare class LinearPipelineStepEvaluationEntity {
27
+ readonly id: UuidV7;
28
+ readonly linearPipelineExecutionId: UuidV7;
29
+ readonly linearPipelineStepRunId: UuidV7;
30
+ readonly linearPipelineStepRunAttemptId: UuidV7;
31
+ readonly stepExecutionId: UuidV7;
32
+ readonly stepExecutionResultId: UuidV7;
33
+ readonly stepExecutionResultStatus: StepExecutionResultStatus | null;
34
+ readonly linearPipelineStepAdvancementPolicyDefinitionId: UuidV7;
35
+ readonly factsSnapshotJson: AnyJsonObject;
36
+ readonly ruleResultsJson: AnyJsonValue;
37
+ readonly finalStatus: LinearPipelineStepEvaluationFinalStatus;
38
+ readonly finalAction: LinearPipelineStepAdvancementPolicyEventType;
39
+ readonly finalPayloadJson: AnyJsonObject | null;
40
+ readonly createdAt: Date | null | undefined;
41
+ private constructor();
42
+ static create(props: CreateLinearPipelineStepEvaluationEntityProps): LinearPipelineStepEvaluationEntity;
43
+ static rehydrate(props: LinearPipelineStepEvaluationEntityProps): LinearPipelineStepEvaluationEntity;
44
+ toJSON(): LinearPipelineStepEvaluationEntityProps;
45
+ }
@@ -0,0 +1,24 @@
1
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ export type LinearPipelineStepRunAttemptEntityProps = {
3
+ id: UuidV7;
4
+ linearPipelineStepRunId: UuidV7;
5
+ stepExecutionId: UuidV7;
6
+ attemptNumber: number;
7
+ evaluationId?: UuidV7 | null | undefined;
8
+ createdAt?: Date | string | null | undefined;
9
+ };
10
+ export type CreateLinearPipelineStepRunAttemptEntityProps = Omit<LinearPipelineStepRunAttemptEntityProps, "id"> & {
11
+ id?: UuidV7 | undefined;
12
+ };
13
+ export declare class LinearPipelineStepRunAttemptEntity {
14
+ readonly id: UuidV7;
15
+ readonly linearPipelineStepRunId: UuidV7;
16
+ readonly stepExecutionId: UuidV7;
17
+ readonly attemptNumber: number;
18
+ readonly evaluationId: UuidV7 | null;
19
+ readonly createdAt: Date | null | undefined;
20
+ private constructor();
21
+ static create(props: CreateLinearPipelineStepRunAttemptEntityProps): LinearPipelineStepRunAttemptEntity;
22
+ static rehydrate(props: LinearPipelineStepRunAttemptEntityProps): LinearPipelineStepRunAttemptEntity;
23
+ toJSON(): LinearPipelineStepRunAttemptEntityProps;
24
+ }
@@ -0,0 +1,63 @@
1
+ import type { AnyJsonValue } from "@boboddy/core/common/contracts/json";
2
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import { LinearPipelineStepEvaluationEntity, type LinearPipelineStepEvaluationEntityProps } from "./linear-pipeline-step-evaluation-entity";
4
+ import { LinearPipelineStepRunAttemptEntity, type LinearPipelineStepRunAttemptEntityProps } from "./linear-pipeline-step-run-attempt-entity";
5
+ export declare const linearPipelineStepRunStatusValues: readonly ["pending", "queued", "running", "satisfied", "unsatisfied", "blocked", "needs_review", "skipped", "cancelled"];
6
+ export declare const linearPipelineStepRunSatisfactionStatusValues: readonly ["not_evaluated", "satisfied_by_policy", "satisfied_by_user", "unsatisfied_by_policy"];
7
+ export type LinearPipelineStepRunStatus = (typeof linearPipelineStepRunStatusValues)[number];
8
+ export type LinearPipelineStepRunSatisfactionStatus = (typeof linearPipelineStepRunSatisfactionStatusValues)[number];
9
+ export type LinearPipelineStepRunEntityProps = {
10
+ id: UuidV7;
11
+ linearPipelineExecutionId: UuidV7;
12
+ linearPipelineStepDefinitionId: UuidV7;
13
+ stepDefinitionId: UuidV7;
14
+ stepDefinitionVersion: number;
15
+ stepKey: string;
16
+ position: number;
17
+ status: LinearPipelineStepRunStatus;
18
+ satisfactionStatus: LinearPipelineStepRunSatisfactionStatus;
19
+ selectedStepExecutionId?: UuidV7 | null | undefined;
20
+ selectedStepExecutionResultId?: UuidV7 | null | undefined;
21
+ acceptedByUserId?: UuidV7 | null | undefined;
22
+ acceptedAt?: Date | string | null | undefined;
23
+ acceptanceReason?: string | null | undefined;
24
+ attemptCount: number;
25
+ lastAttemptedAt?: Date | string | null | undefined;
26
+ inputJson?: AnyJsonValue | null | undefined;
27
+ outputJson?: AnyJsonValue | null | undefined;
28
+ attempts?: readonly LinearPipelineStepRunAttemptEntityProps[] | undefined;
29
+ evaluations?: readonly LinearPipelineStepEvaluationEntityProps[] | undefined;
30
+ createdAt?: Date | string | null | undefined;
31
+ updatedAt?: Date | string | null | undefined;
32
+ };
33
+ export type CreateLinearPipelineStepRunEntityProps = Omit<LinearPipelineStepRunEntityProps, "id"> & {
34
+ id?: UuidV7 | undefined;
35
+ };
36
+ export declare class LinearPipelineStepRunEntity {
37
+ readonly id: UuidV7;
38
+ readonly linearPipelineExecutionId: UuidV7;
39
+ readonly linearPipelineStepDefinitionId: UuidV7;
40
+ readonly stepDefinitionId: UuidV7;
41
+ readonly stepDefinitionVersion: number;
42
+ readonly stepKey: string;
43
+ readonly position: number;
44
+ readonly status: LinearPipelineStepRunStatus;
45
+ readonly satisfactionStatus: LinearPipelineStepRunSatisfactionStatus;
46
+ readonly selectedStepExecutionId: UuidV7 | null;
47
+ readonly selectedStepExecutionResultId: UuidV7 | null;
48
+ readonly acceptedByUserId: UuidV7 | null;
49
+ readonly acceptedAt: Date | null | undefined;
50
+ readonly acceptanceReason: string | null;
51
+ readonly attemptCount: number;
52
+ readonly lastAttemptedAt: Date | null | undefined;
53
+ readonly inputJson: AnyJsonValue | null;
54
+ readonly outputJson: AnyJsonValue | null;
55
+ readonly attempts: LinearPipelineStepRunAttemptEntity[];
56
+ readonly evaluations: LinearPipelineStepEvaluationEntity[];
57
+ readonly createdAt: Date | null | undefined;
58
+ readonly updatedAt: Date | null | undefined;
59
+ private constructor();
60
+ static create(props: CreateLinearPipelineStepRunEntityProps): LinearPipelineStepRunEntity;
61
+ static rehydrate(props: LinearPipelineStepRunEntityProps): LinearPipelineStepRunEntity;
62
+ toJSON(): LinearPipelineStepRunEntityProps;
63
+ }
@@ -0,0 +1,19 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { LinearPipelineExecutionRepo } from "../application/linear-pipeline-execution-repo";
3
+ import { LinearPipelineExecutionEntity, type LinearPipelineExecutionEntityProps } from "../domain/linear-pipeline-execution-entity";
4
+ import type { LinearPipelineStepRunAttemptEntityProps } from "../entities/linear-pipeline-step-run-attempt-entity";
5
+ import type { LinearPipelineStepRunEntityProps } from "../entities/linear-pipeline-step-run-entity";
6
+ export declare class DrizzleLinearPipelineExecutionRepo implements LinearPipelineExecutionRepo {
7
+ loadStepExecutionLink(stepExecutionId: LinearPipelineStepRunAttemptEntityProps["stepExecutionId"], dbExecutor?: DbExecutor): Promise<{
8
+ linearPipelineExecutionId: LinearPipelineExecutionEntityProps["id"];
9
+ linearPipelineStepRunId: LinearPipelineStepRunEntityProps["id"];
10
+ linearPipelineStepRunAttemptId: LinearPipelineStepRunAttemptEntityProps["id"];
11
+ } | null>;
12
+ private toEntity;
13
+ private loadManyFromRows;
14
+ load(id: LinearPipelineExecutionEntityProps["id"], dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity | null>;
15
+ listByProjectId(projectId: LinearPipelineExecutionEntityProps["projectId"], dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity[]>;
16
+ listByDefinitionId(linearPipelineDefinitionId: LinearPipelineExecutionEntityProps["linearPipelineDefinitionId"], dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity[]>;
17
+ create(execution: LinearPipelineExecutionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity>;
18
+ save(execution: LinearPipelineExecutionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineExecutionEntity>;
19
+ }
@@ -0,0 +1,9 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
3
+ import { type AddStepExecutionResultInput, type StepExecutionResultContract } from "../contracts/step-execution-contracts";
4
+ import type { StepExecutionRepo } from "./step-execution-repo";
5
+ export declare const addStepExecutionResult: (input: AddStepExecutionResultInput, { stepExecutionRepo, timeProvider, dbExecutor, }: {
6
+ stepExecutionRepo: StepExecutionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepExecutionResultContract>;
@@ -0,0 +1,17 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { InMemoryDomainEventDispatcher } from "@boboddy/core/lib/domain-events/in-memory-domain-event-dispatcher";
3
+ import type { TimeProvider } from "@boboddy/core/lib/time-provider";
4
+ import type { LinearPipelineExecutionRepo } from "@boboddy/core/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo";
5
+ import { type ClaimStepExecutionsInput, type StepExecutionClaimContract } from "../contracts/step-execution-contracts";
6
+ import type { StepExecutionRepo } from "./step-execution-repo";
7
+ import type { StepDefinitionRepo } from "@boboddy/core/pipeline-definitions/step-definition/application/step-definition-repo";
8
+ import type { LinearPipelineDefinitionRepo } from "@boboddy/core/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo";
9
+ export declare const claimStepExecutions: (input: ClaimStepExecutionsInput, { stepExecutionRepo, stepDefinitionRepo, linearPipelineDefinitionRepo, linearPipelineExecutionRepo, timeProvider, domainEventDispatcher, dbExecutor, }: {
10
+ stepExecutionRepo: StepExecutionRepo;
11
+ stepDefinitionRepo: StepDefinitionRepo;
12
+ linearPipelineDefinitionRepo: LinearPipelineDefinitionRepo;
13
+ linearPipelineExecutionRepo: LinearPipelineExecutionRepo;
14
+ timeProvider: TimeProvider;
15
+ domainEventDispatcher?: InMemoryDomainEventDispatcher;
16
+ dbExecutor?: DbExecutor | undefined;
17
+ }) => Promise<StepExecutionClaimContract[]>;