@boboddy/sdk 0.0.7-alpha → 0.0.8-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,357 @@
1
+ import { z } from "zod";
2
+ declare const inputBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ source: z.ZodLiteral<"pipeline_input">;
4
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
+ }, z.core.$strip>, z.ZodObject<{
6
+ source: z.ZodLiteral<"step_output">;
7
+ stepKey: z.ZodString;
8
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ source: z.ZodLiteral<"step_signal">;
11
+ stepKey: z.ZodString;
12
+ signalKey: z.ZodString;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ source: z.ZodLiteral<"literal">;
15
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
16
+ }, z.core.$strip>], "source">;
17
+ declare const inputBindingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
18
+ source: z.ZodLiteral<"pipeline_input">;
19
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ source: z.ZodLiteral<"step_output">;
22
+ stepKey: z.ZodString;
23
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ source: z.ZodLiteral<"step_signal">;
26
+ stepKey: z.ZodString;
27
+ signalKey: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ source: z.ZodLiteral<"literal">;
30
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
31
+ }, z.core.$strip>], "source">>;
32
+ export declare const linearPipelineStepInputBindingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ source: z.ZodLiteral<"pipeline_input">;
34
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ source: z.ZodLiteral<"step_output">;
37
+ stepKey: z.ZodString;
38
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ source: z.ZodLiteral<"step_signal">;
41
+ stepKey: z.ZodString;
42
+ signalKey: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ source: z.ZodLiteral<"literal">;
45
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
46
+ }, z.core.$strip>], "source">>;
47
+ export declare const linearPipelineStepAdvancementPolicyDefinitionSchema: z.ZodObject<{
48
+ 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>>;
49
+ 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>>;
50
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
51
+ defaultEventType: z.ZodEnum<{
52
+ continue: "continue";
53
+ block: "block";
54
+ needs_review: "needs_review";
55
+ complete: "complete";
56
+ }>;
57
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
58
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
59
+ continue: "continue";
60
+ block: "block";
61
+ needs_review: "needs_review";
62
+ complete: "complete";
63
+ }>>;
64
+ createdAt: z.ZodISODateTime;
65
+ updatedAt: z.ZodISODateTime;
66
+ }, z.core.$strip>;
67
+ export declare const linearPipelineStepDefinitionSchema: z.ZodObject<{
68
+ 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>>;
69
+ 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>>;
70
+ 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>>;
71
+ stepDefinitionVersion: z.ZodNumber;
72
+ key: z.ZodString;
73
+ name: z.ZodString;
74
+ description: z.ZodNullable<z.ZodString>;
75
+ position: z.ZodNumber;
76
+ inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
77
+ source: z.ZodLiteral<"pipeline_input">;
78
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ source: z.ZodLiteral<"step_output">;
81
+ stepKey: z.ZodString;
82
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ source: z.ZodLiteral<"step_signal">;
85
+ stepKey: z.ZodString;
86
+ signalKey: z.ZodString;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ source: z.ZodLiteral<"literal">;
89
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
90
+ }, z.core.$strip>], "source">>>;
91
+ timeoutSeconds: z.ZodNullable<z.ZodNumber>;
92
+ retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
93
+ advancementPolicyDefinition: z.ZodObject<{
94
+ 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>>;
95
+ 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>>;
96
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
97
+ defaultEventType: z.ZodEnum<{
98
+ continue: "continue";
99
+ block: "block";
100
+ needs_review: "needs_review";
101
+ complete: "complete";
102
+ }>;
103
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
104
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
105
+ continue: "continue";
106
+ block: "block";
107
+ needs_review: "needs_review";
108
+ complete: "complete";
109
+ }>>;
110
+ createdAt: z.ZodISODateTime;
111
+ updatedAt: z.ZodISODateTime;
112
+ }, z.core.$strip>;
113
+ createdAt: z.ZodISODateTime;
114
+ updatedAt: z.ZodISODateTime;
115
+ }, z.core.$strip>;
116
+ export declare const linearPipelineDefinitionSchema: z.ZodObject<{
117
+ 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>>;
118
+ 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>>;
119
+ key: z.ZodString;
120
+ name: z.ZodString;
121
+ description: z.ZodNullable<z.ZodString>;
122
+ version: z.ZodNumber;
123
+ status: z.ZodEnum<{
124
+ draft: "draft";
125
+ active: "active";
126
+ archived: "archived";
127
+ }>;
128
+ stepDefinitions: 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
+ 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>>;
131
+ 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>>;
132
+ stepDefinitionVersion: z.ZodNumber;
133
+ key: z.ZodString;
134
+ name: z.ZodString;
135
+ description: z.ZodNullable<z.ZodString>;
136
+ position: z.ZodNumber;
137
+ inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
138
+ source: z.ZodLiteral<"pipeline_input">;
139
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ source: z.ZodLiteral<"step_output">;
142
+ stepKey: z.ZodString;
143
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ source: z.ZodLiteral<"step_signal">;
146
+ stepKey: z.ZodString;
147
+ signalKey: z.ZodString;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ source: z.ZodLiteral<"literal">;
150
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
151
+ }, z.core.$strip>], "source">>>;
152
+ timeoutSeconds: z.ZodNullable<z.ZodNumber>;
153
+ retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
154
+ advancementPolicyDefinition: z.ZodObject<{
155
+ 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>>;
156
+ 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>>;
157
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
158
+ defaultEventType: z.ZodEnum<{
159
+ continue: "continue";
160
+ block: "block";
161
+ needs_review: "needs_review";
162
+ complete: "complete";
163
+ }>;
164
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
165
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
166
+ continue: "continue";
167
+ block: "block";
168
+ needs_review: "needs_review";
169
+ complete: "complete";
170
+ }>>;
171
+ createdAt: z.ZodISODateTime;
172
+ updatedAt: z.ZodISODateTime;
173
+ }, z.core.$strip>;
174
+ createdAt: z.ZodISODateTime;
175
+ updatedAt: z.ZodISODateTime;
176
+ }, z.core.$strip>>;
177
+ createdAt: z.ZodISODateTime;
178
+ updatedAt: z.ZodISODateTime;
179
+ }, z.core.$strip>;
180
+ export declare const createLinearPipelineStepDefinitionInputSchema: z.ZodObject<{
181
+ name: z.ZodString;
182
+ description: z.ZodNullable<z.ZodString>;
183
+ key: z.ZodString;
184
+ 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>>;
185
+ stepDefinitionVersion: z.ZodNumber;
186
+ position: z.ZodNumber;
187
+ inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
188
+ source: z.ZodLiteral<"pipeline_input">;
189
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ source: z.ZodLiteral<"step_output">;
192
+ stepKey: z.ZodString;
193
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ source: z.ZodLiteral<"step_signal">;
196
+ stepKey: z.ZodString;
197
+ signalKey: z.ZodString;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ source: z.ZodLiteral<"literal">;
200
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
201
+ }, z.core.$strip>], "source">>>;
202
+ timeoutSeconds: z.ZodNullable<z.ZodNumber>;
203
+ retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
204
+ advancementPolicyDefinition: z.ZodObject<{
205
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
206
+ defaultEventType: z.ZodEnum<{
207
+ continue: "continue";
208
+ block: "block";
209
+ needs_review: "needs_review";
210
+ complete: "complete";
211
+ }>;
212
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
213
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
214
+ continue: "continue";
215
+ block: "block";
216
+ needs_review: "needs_review";
217
+ complete: "complete";
218
+ }>>;
219
+ }, z.core.$strip>;
220
+ }, z.core.$strip>;
221
+ export declare const createLinearPipelineDefinitionInputSchema: z.ZodObject<{
222
+ 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>>;
223
+ key: z.ZodString;
224
+ name: z.ZodString;
225
+ description: z.ZodNullable<z.ZodString>;
226
+ version: z.ZodNumber;
227
+ status: z.ZodEnum<{
228
+ draft: "draft";
229
+ active: "active";
230
+ archived: "archived";
231
+ }>;
232
+ stepDefinitions: z.ZodArray<z.ZodObject<{
233
+ name: z.ZodString;
234
+ description: z.ZodNullable<z.ZodString>;
235
+ key: z.ZodString;
236
+ 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>>;
237
+ stepDefinitionVersion: z.ZodNumber;
238
+ position: z.ZodNumber;
239
+ inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ source: z.ZodLiteral<"pipeline_input">;
241
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ source: z.ZodLiteral<"step_output">;
244
+ stepKey: z.ZodString;
245
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ source: z.ZodLiteral<"step_signal">;
248
+ stepKey: z.ZodString;
249
+ signalKey: z.ZodString;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ source: z.ZodLiteral<"literal">;
252
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
253
+ }, z.core.$strip>], "source">>>;
254
+ timeoutSeconds: z.ZodNullable<z.ZodNumber>;
255
+ retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
256
+ advancementPolicyDefinition: z.ZodObject<{
257
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
258
+ defaultEventType: z.ZodEnum<{
259
+ continue: "continue";
260
+ block: "block";
261
+ needs_review: "needs_review";
262
+ complete: "complete";
263
+ }>;
264
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
265
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
266
+ continue: "continue";
267
+ block: "block";
268
+ needs_review: "needs_review";
269
+ complete: "complete";
270
+ }>>;
271
+ }, z.core.$strip>;
272
+ }, z.core.$strip>>;
273
+ }, z.core.$strip>;
274
+ export declare const updateLinearPipelineDefinitionInputSchema: z.ZodObject<{
275
+ status: z.ZodEnum<{
276
+ draft: "draft";
277
+ active: "active";
278
+ archived: "archived";
279
+ }>;
280
+ name: z.ZodString;
281
+ description: z.ZodNullable<z.ZodString>;
282
+ 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>>;
283
+ key: z.ZodString;
284
+ version: z.ZodNumber;
285
+ }, z.core.$strip>;
286
+ export declare const updateLinearPipelineStepDefinitionInputSchema: z.ZodObject<{
287
+ name: z.ZodString;
288
+ description: z.ZodNullable<z.ZodString>;
289
+ key: z.ZodString;
290
+ 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>>;
291
+ stepDefinitionVersion: z.ZodNumber;
292
+ position: z.ZodNumber;
293
+ inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
294
+ source: z.ZodLiteral<"pipeline_input">;
295
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
296
+ }, z.core.$strip>, z.ZodObject<{
297
+ source: z.ZodLiteral<"step_output">;
298
+ stepKey: z.ZodString;
299
+ path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ source: z.ZodLiteral<"step_signal">;
302
+ stepKey: z.ZodString;
303
+ signalKey: z.ZodString;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ source: z.ZodLiteral<"literal">;
306
+ value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
307
+ }, z.core.$strip>], "source">>>;
308
+ timeoutSeconds: z.ZodNullable<z.ZodNumber>;
309
+ retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
310
+ advancementPolicyDefinition: z.ZodObject<{
311
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
312
+ defaultEventType: z.ZodEnum<{
313
+ continue: "continue";
314
+ block: "block";
315
+ needs_review: "needs_review";
316
+ complete: "complete";
317
+ }>;
318
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
319
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
320
+ continue: "continue";
321
+ block: "block";
322
+ needs_review: "needs_review";
323
+ complete: "complete";
324
+ }>>;
325
+ }, z.core.$strip>;
326
+ }, z.core.$strip>;
327
+ export declare const setLinearPipelineStepAdvancementPolicyDefinitionInputSchema: z.ZodObject<{
328
+ rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
329
+ defaultEventType: z.ZodEnum<{
330
+ continue: "continue";
331
+ block: "block";
332
+ needs_review: "needs_review";
333
+ complete: "complete";
334
+ }>;
335
+ defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
336
+ allowedEventTypes: z.ZodArray<z.ZodEnum<{
337
+ continue: "continue";
338
+ block: "block";
339
+ needs_review: "needs_review";
340
+ complete: "complete";
341
+ }>>;
342
+ }, z.core.$strip>;
343
+ export declare const getLinearPipelineDefinitionInputSchema: 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>>;
344
+ export declare const listLinearPipelineDefinitionsByProjectIdInputSchema: 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>>;
345
+ export type LinearPipelineStepAdvancementPolicyDefinitionContract = z.infer<typeof linearPipelineStepAdvancementPolicyDefinitionSchema>;
346
+ export type LinearPipelineStepDefinitionContract = z.infer<typeof linearPipelineStepDefinitionSchema>;
347
+ export type LinearPipelineStepInputBinding = z.infer<typeof inputBindingSchema>;
348
+ export type LinearPipelineStepInputBindings = z.infer<typeof inputBindingsSchema>;
349
+ export type LinearPipelineDefinitionContract = z.infer<typeof linearPipelineDefinitionSchema>;
350
+ export type CreateLinearPipelineStepDefinitionInput = z.input<typeof createLinearPipelineStepDefinitionInputSchema>;
351
+ export type CreateLinearPipelineDefinitionInput = z.input<typeof createLinearPipelineDefinitionInputSchema>;
352
+ export type UpdateLinearPipelineDefinitionInput = z.input<typeof updateLinearPipelineDefinitionInputSchema>;
353
+ export type UpdateLinearPipelineStepDefinitionInput = z.input<typeof updateLinearPipelineStepDefinitionInputSchema>;
354
+ export type SetLinearPipelineStepAdvancementPolicyDefinitionInput = z.input<typeof setLinearPipelineStepAdvancementPolicyDefinitionInputSchema>;
355
+ export type GetLinearPipelineDefinitionInput = z.input<typeof getLinearPipelineDefinitionInputSchema>;
356
+ export type ListLinearPipelineDefinitionsByProjectIdInput = z.input<typeof listLinearPipelineDefinitionsByProjectIdInputSchema>;
357
+ export {};
@@ -0,0 +1,36 @@
1
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import { LinearPipelineStepDefinitionEntity, type LinearPipelineStepDefinitionEntityProps } from "../entities/linear-pipeline-step-definition-entity";
3
+ export declare const linearPipelineDefinitionStatusValues: readonly ["draft", "active", "archived"];
4
+ export type LinearPipelineDefinitionStatus = (typeof linearPipelineDefinitionStatusValues)[number];
5
+ export type LinearPipelineDefinitionEntityProps = {
6
+ id: UuidV7;
7
+ projectId: UuidV7;
8
+ key: string;
9
+ name: string;
10
+ description?: string | null | undefined;
11
+ version: number;
12
+ status: LinearPipelineDefinitionStatus;
13
+ stepDefinitions: readonly LinearPipelineStepDefinitionEntityProps[];
14
+ createdAt?: Date | string | null | undefined;
15
+ updatedAt?: Date | string | null | undefined;
16
+ };
17
+ export type CreateLinearPipelineDefinitionEntityProps = Omit<LinearPipelineDefinitionEntityProps, "id"> & {
18
+ id?: UuidV7 | undefined;
19
+ };
20
+ export declare class LinearPipelineDefinitionEntity {
21
+ readonly id: UuidV7;
22
+ readonly projectId: UuidV7;
23
+ readonly key: string;
24
+ readonly name: string;
25
+ readonly description: string | null;
26
+ readonly version: number;
27
+ readonly status: LinearPipelineDefinitionStatus;
28
+ readonly stepDefinitions: LinearPipelineStepDefinitionEntity[];
29
+ readonly createdAt: Date | null | undefined;
30
+ readonly updatedAt: Date | null | undefined;
31
+ private constructor();
32
+ static create(props: CreateLinearPipelineDefinitionEntityProps): LinearPipelineDefinitionEntity;
33
+ static rehydrate(props: LinearPipelineDefinitionEntityProps): LinearPipelineDefinitionEntity;
34
+ archive(now: Date): LinearPipelineDefinitionEntity;
35
+ toJSON(): LinearPipelineDefinitionEntityProps;
36
+ }
@@ -0,0 +1,42 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import type { RuleProperties } from "json-rules-engine";
4
+ import { z } from "zod";
5
+ export declare const linearPipelineStepAdvancementPolicyEventTypeValues: readonly ["continue", "block", "needs_review", "complete"];
6
+ export type LinearPipelineStepAdvancementPolicyEventType = (typeof linearPipelineStepAdvancementPolicyEventTypeValues)[number];
7
+ export type LinearPipelineStepAdvancementPolicyRule = Omit<RuleProperties, "onSuccess" | "onFailure"> & Record<string, unknown>;
8
+ export type LinearPipelineStepAdvancementPolicyRulesJson = {
9
+ rules: LinearPipelineStepAdvancementPolicyRule[];
10
+ };
11
+ export type LinearPipelineStepAdvancementPolicyDefinitionEntityProps = {
12
+ id: UuidV7;
13
+ linearPipelineStepDefinitionId: UuidV7;
14
+ rulesJson: LinearPipelineStepAdvancementPolicyRulesJson;
15
+ defaultEventType: LinearPipelineStepAdvancementPolicyEventType;
16
+ defaultEventParamsJson?: AnyJsonObject | null | undefined;
17
+ allowedEventTypes: LinearPipelineStepAdvancementPolicyEventType[];
18
+ createdAt?: Date | string | null | undefined;
19
+ updatedAt?: Date | string | null | undefined;
20
+ };
21
+ export type CreateLinearPipelineStepAdvancementPolicyDefinitionEntityProps = Omit<LinearPipelineStepAdvancementPolicyDefinitionEntityProps, "id"> & {
22
+ id?: UuidV7 | undefined;
23
+ };
24
+ export declare const linearPipelineStepAdvancementPolicyRuleSchema: z.ZodCustom<LinearPipelineStepAdvancementPolicyRule, LinearPipelineStepAdvancementPolicyRule>;
25
+ export declare const linearPipelineStepAdvancementPolicyRulesJsonSchema: z.ZodCustom<LinearPipelineStepAdvancementPolicyRulesJson, LinearPipelineStepAdvancementPolicyRulesJson>;
26
+ export declare const parseLinearPipelineStepAdvancementPolicyRules: (rulesJson: LinearPipelineStepAdvancementPolicyRulesJson, allowedEventTypes: readonly LinearPipelineStepAdvancementPolicyEventType[]) => LinearPipelineStepAdvancementPolicyRule[];
27
+ export declare const validateLinearPipelineStepAdvancementPolicyDefinition: (rulesJson: LinearPipelineStepAdvancementPolicyRulesJson, allowedEventTypes: readonly LinearPipelineStepAdvancementPolicyEventType[]) => void;
28
+ export declare class LinearPipelineStepAdvancementPolicyDefinitionEntity {
29
+ readonly id: UuidV7;
30
+ readonly linearPipelineStepDefinitionId: UuidV7;
31
+ readonly rulesJson: LinearPipelineStepAdvancementPolicyRulesJson;
32
+ readonly rules: LinearPipelineStepAdvancementPolicyRule[];
33
+ readonly defaultEventType: LinearPipelineStepAdvancementPolicyEventType;
34
+ readonly defaultEventParamsJson: AnyJsonObject | null;
35
+ readonly allowedEventTypes: LinearPipelineStepAdvancementPolicyEventType[];
36
+ readonly createdAt: Date | null | undefined;
37
+ readonly updatedAt: Date | null | undefined;
38
+ private constructor();
39
+ static create(props: CreateLinearPipelineStepAdvancementPolicyDefinitionEntityProps): LinearPipelineStepAdvancementPolicyDefinitionEntity;
40
+ static rehydrate(props: LinearPipelineStepAdvancementPolicyDefinitionEntityProps): LinearPipelineStepAdvancementPolicyDefinitionEntity;
41
+ toJSON(): LinearPipelineStepAdvancementPolicyDefinitionEntityProps;
42
+ }
@@ -0,0 +1,42 @@
1
+ import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
2
+ import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
3
+ import { LinearPipelineStepAdvancementPolicyDefinitionEntity, type LinearPipelineStepAdvancementPolicyDefinitionEntityProps } from "./linear-pipeline-step-advancement-policy-definition-entity";
4
+ export type LinearPipelineStepDefinitionEntityProps = {
5
+ id: UuidV7;
6
+ linearPipelineDefinitionId: UuidV7;
7
+ stepDefinitionId: UuidV7;
8
+ stepDefinitionVersion: number;
9
+ key: string;
10
+ name: string;
11
+ description?: string | null | undefined;
12
+ position: number;
13
+ inputBindingsJson?: AnyJsonObject | null | undefined;
14
+ timeoutSeconds?: number | null | undefined;
15
+ retryPolicyJson?: AnyJsonObject | null | undefined;
16
+ advancementPolicyDefinition: LinearPipelineStepAdvancementPolicyDefinitionEntityProps | null | undefined;
17
+ createdAt?: Date | string | null | undefined;
18
+ updatedAt?: Date | string | null | undefined;
19
+ };
20
+ export type CreateLinearPipelineStepDefinitionEntityProps = Omit<LinearPipelineStepDefinitionEntityProps, "id"> & {
21
+ id?: UuidV7 | undefined;
22
+ };
23
+ export declare class LinearPipelineStepDefinitionEntity {
24
+ readonly id: UuidV7;
25
+ readonly linearPipelineDefinitionId: UuidV7;
26
+ readonly stepDefinitionId: UuidV7;
27
+ readonly stepDefinitionVersion: number;
28
+ readonly key: string;
29
+ readonly name: string;
30
+ readonly description: string | null;
31
+ readonly position: number;
32
+ readonly inputBindingsJson: AnyJsonObject | null;
33
+ readonly timeoutSeconds: number | null;
34
+ readonly retryPolicyJson: AnyJsonObject | null;
35
+ readonly advancementPolicyDefinition: LinearPipelineStepAdvancementPolicyDefinitionEntity | null;
36
+ readonly createdAt: Date | null | undefined;
37
+ readonly updatedAt: Date | null | undefined;
38
+ private constructor();
39
+ static create(props: CreateLinearPipelineStepDefinitionEntityProps): LinearPipelineStepDefinitionEntity;
40
+ static rehydrate(props: LinearPipelineStepDefinitionEntityProps): LinearPipelineStepDefinitionEntity;
41
+ toJSON(): LinearPipelineStepDefinitionEntityProps;
42
+ }
@@ -0,0 +1,11 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import type { LinearPipelineDefinitionRepo } from "../application/linear-pipeline-definition-repo";
3
+ import { LinearPipelineDefinitionEntity, type LinearPipelineDefinitionEntityProps } from "../domain/linear-pipeline-definition-entity";
4
+ export declare class DrizzleLinearPipelineDefinitionRepo implements LinearPipelineDefinitionRepo {
5
+ private toEntity;
6
+ private loadManyFromRows;
7
+ load(id: LinearPipelineDefinitionEntityProps["id"], dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity | null>;
8
+ listByProjectId(projectId: LinearPipelineDefinitionEntityProps["projectId"], dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity[]>;
9
+ create(linearPipelineDefinition: LinearPipelineDefinitionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity>;
10
+ save(linearPipelineDefinition: LinearPipelineDefinitionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity>;
11
+ }
@@ -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 GetStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
4
+ import type { StepDefinitionRepo } from "./step-definition-repo";
5
+ export declare const archiveStepDefinition: (input: GetStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
6
+ stepDefinitionRepo: StepDefinitionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepDefinitionContract>;
@@ -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 CreateStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
4
+ import type { StepDefinitionRepo } from "./step-definition-repo";
5
+ export declare const createStepDefinition: (input: CreateStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
6
+ stepDefinitionRepo: StepDefinitionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepDefinitionContract>;
@@ -0,0 +1,7 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import { type GetStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
3
+ import type { StepDefinitionRepo } from "./step-definition-repo";
4
+ export declare const getStepDefinition: (input: GetStepDefinitionInput, { stepDefinitionRepo, dbExecutor, }: {
5
+ stepDefinitionRepo: StepDefinitionRepo;
6
+ dbExecutor?: DbExecutor | undefined;
7
+ }) => Promise<StepDefinitionContract>;
@@ -0,0 +1,7 @@
1
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
2
+ import { type ListStepDefinitionsByProjectIdInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
3
+ import type { StepDefinitionRepo } from "./step-definition-repo";
4
+ export declare const listStepDefinitionsByProjectId: (input: ListStepDefinitionsByProjectIdInput, { stepDefinitionRepo, dbExecutor, }: {
5
+ stepDefinitionRepo: StepDefinitionRepo;
6
+ dbExecutor?: DbExecutor | undefined;
7
+ }) => Promise<StepDefinitionContract[]>;
@@ -0,0 +1,3 @@
1
+ import type { StepDefinitionContract } from "../contracts/step-definition-contracts";
2
+ import type { StepDefinitionEntity } from "../domain/step-definition-entity";
3
+ export declare const stepDefinitionEntityToContract: (stepDefinition: StepDefinitionEntity) => StepDefinitionContract;
@@ -0,0 +1,9 @@
1
+ import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
2
+ import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
3
+ import type { StepDefinitionEntity } from "../domain/step-definition-entity";
4
+ export type StepDefinitionRepo = {
5
+ load(id: UuidV7, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity | null>;
6
+ listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity[]>;
7
+ create(stepDefinition: StepDefinitionEntity, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity>;
8
+ save(stepDefinition: StepDefinitionEntity, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity>;
9
+ };
@@ -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 GetStepDefinitionInput, type StepDefinitionContract, type UpdateStepDefinitionInput } from "../contracts/step-definition-contracts";
4
+ import type { StepDefinitionRepo } from "./step-definition-repo";
5
+ export declare const updateStepDefinition: (stepDefinitionIdInput: GetStepDefinitionInput, input: UpdateStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
6
+ stepDefinitionRepo: StepDefinitionRepo;
7
+ timeProvider: TimeProvider;
8
+ dbExecutor?: DbExecutor | undefined;
9
+ }) => Promise<StepDefinitionContract>;