@shipfox/api-agent-access-dto 21.0.0 → 21.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-type.log +0 -1
  3. package/CHANGELOG.md +19 -0
  4. package/dist/index.d.ts +4 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +4 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/schemas/diagnostic-tools.d.ts +3 -1
  9. package/dist/schemas/diagnostic-tools.d.ts.map +1 -1
  10. package/dist/schemas/diagnostic-tools.js +7 -8
  11. package/dist/schemas/diagnostic-tools.js.map +1 -1
  12. package/dist/schemas/log-tools.d.ts +215 -0
  13. package/dist/schemas/log-tools.d.ts.map +1 -0
  14. package/dist/schemas/log-tools.js +224 -0
  15. package/dist/schemas/log-tools.js.map +1 -0
  16. package/dist/schemas/paged-tools.d.ts.map +1 -1
  17. package/dist/schemas/paged-tools.js +1 -6
  18. package/dist/schemas/paged-tools.js.map +1 -1
  19. package/dist/schemas/primitives.d.ts +5 -0
  20. package/dist/schemas/primitives.d.ts.map +1 -0
  21. package/dist/schemas/primitives.js +9 -0
  22. package/dist/schemas/primitives.js.map +1 -0
  23. package/dist/schemas/workflow-diagnostics.d.ts +862 -0
  24. package/dist/schemas/workflow-diagnostics.d.ts.map +1 -0
  25. package/dist/schemas/workflow-diagnostics.js +876 -0
  26. package/dist/schemas/workflow-diagnostics.js.map +1 -0
  27. package/dist/schemas/workflow-execution-events.d.ts +272 -0
  28. package/dist/schemas/workflow-execution-events.d.ts.map +1 -0
  29. package/dist/schemas/workflow-execution-events.js +250 -0
  30. package/dist/schemas/workflow-execution-events.js.map +1 -0
  31. package/dist/schemas/workflow-tools.d.ts +1305 -0
  32. package/dist/schemas/workflow-tools.d.ts.map +1 -0
  33. package/dist/schemas/workflow-tools.js +938 -0
  34. package/dist/schemas/workflow-tools.js.map +1 -0
  35. package/dist/tsconfig.test.tsbuildinfo +1 -1
  36. package/package.json +3 -2
  37. package/src/index.ts +113 -0
  38. package/src/schemas/diagnostic-tools.test.ts +43 -0
  39. package/src/schemas/diagnostic-tools.ts +12 -14
  40. package/src/schemas/log-tools.ts +209 -0
  41. package/src/schemas/paged-tools.ts +1 -10
  42. package/src/schemas/primitives.ts +14 -0
  43. package/src/schemas/workflow-diagnostics.test.ts +277 -0
  44. package/src/schemas/workflow-diagnostics.ts +693 -0
  45. package/src/schemas/workflow-execution-events.test.ts +126 -0
  46. package/src/schemas/workflow-execution-events.ts +217 -0
  47. package/src/schemas/workflow-tools.test.ts +202 -0
  48. package/src/schemas/workflow-tools.ts +738 -0
  49. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 4 files with swc (214.7ms)
2
+ Successfully compiled: 9 files with swc (264.48ms)
@@ -1,2 +1 @@
1
1
  $ shipfox-tsc-check
2
- context canceled
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @shipfox/api-agent-access-dto
2
2
 
3
+ ## 21.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 12cc22e: Adds bounded Agent Access tools for workflow execution trigger-event diagnostics.
8
+
9
+ ### Patch Changes
10
+
11
+ - 8407bd1: Rejects oversized listener fire deliveries without suppressing matching resolve events.
12
+ - 41e1cfc: Surfaces precise, safe trigger event errors in the event detail callout.
13
+
14
+ ## 21.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - a0791a3: Adds a `get_step_logs` tool that reads a log tail for one exact workflow step attempt, or the first failed step attempts in a workflow run.
19
+ - 661868a: Adds bounded workflow traversal tools to Agent Access.
20
+ - 6d94ffc: Preserves structured workflow values in lazy Agent Access diagnostics.
21
+
3
22
  ## 21.0.0
4
23
 
5
24
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
1
  export { AGENT_ACCESS_FACET_MAX_ITEMS, AGENT_ACCESS_FACET_VALUE_MAX_BYTES, AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES, AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS, AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS, type GetTriggerEventFacetsInputDto, type GetTriggerEventFacetsResultDto, type GetTriggerEventInputDto, type GetTriggerEventResultDto, getTriggerEventFacetsInputJsonSchema, getTriggerEventFacetsInputSchema, getTriggerEventFacetsResultJsonSchema, getTriggerEventFacetsResultSchema, getTriggerEventInputJsonSchema, getTriggerEventInputSchema, getTriggerEventResultJsonSchema, getTriggerEventResultSchema, } from './schemas/diagnostic-tools.js';
2
2
  export { AGENT_ACCESS_ERROR_CODE_MAX_LENGTH, AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH, type AgentAccessEnvelopeDto, type AgentAccessErrorDto, type AgentAccessJsonSchema, type AgentAccessObjectSchema, agentAccessEnvelopeJsonSchema, agentAccessEnvelopeSchema, agentAccessErrorSchema, agentAccessOutputSchema, } from './schemas/envelope.js';
3
+ export { AGENT_ACCESS_LOG_ATTEMPT_MAX, AGENT_ACCESS_LOG_CONTENT_MAX_BYTES, AGENT_ACCESS_LOG_SECTION_MAX_ITEMS, AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT, AGENT_ACCESS_LOG_TAIL_LINES_MAX, type GetStepLogsInputDto, type GetStepLogsResultDto, getStepLogsInputJsonSchema, getStepLogsInputSchema, getStepLogsResultJsonSchema, getStepLogsResultSchema, } from './schemas/log-tools.js';
3
4
  export { AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES, AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES, AGENT_ACCESS_DEFAULT_PAGE_LIMIT, AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES, AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS, AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES, AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES, AGENT_ACCESS_PAGE_LIMIT_MAX, AGENT_ACCESS_RESPONSE_MAX_BYTES, AGENT_ACCESS_TEXT_MAX_BYTES, type GetRunAnnotationsInputDto, type GetRunAnnotationsResultDto, getRunAnnotationsInputJsonSchema, getRunAnnotationsInputSchema, getRunAnnotationsResultJsonSchema, getRunAnnotationsResultSchema, type ListProjectsInputDto, type ListProjectsResultDto, type ListTriggerEventsInputDto, type ListTriggerEventsResultDto, type ListWorkflowDefinitionsInputDto, type ListWorkflowDefinitionsResultDto, type ListWorkflowRunsInputDto, type ListWorkflowRunsResultDto, listProjectsInputJsonSchema, listProjectsInputSchema, listProjectsResultJsonSchema, listProjectsResultSchema, listTriggerEventsInputJsonSchema, listTriggerEventsInputSchema, listTriggerEventsResultJsonSchema, listTriggerEventsResultSchema, listWorkflowDefinitionsInputJsonSchema, listWorkflowDefinitionsInputSchema, listWorkflowDefinitionsResultJsonSchema, listWorkflowDefinitionsResultSchema, listWorkflowRunsInputJsonSchema, listWorkflowRunsInputSchema, listWorkflowRunsResultJsonSchema, listWorkflowRunsResultSchema, } from './schemas/paged-tools.js';
5
+ export { AGENT_ACCESS_WORKFLOW_DIAGNOSTIC_VALUE_MAX_BYTES, AGENT_ACCESS_WORKFLOW_SOURCE_MAX_BYTES, type AgentAccessOversizedFieldDto, type AgentAccessWorkflowDiagnosticFieldDto, agentAccessOversizedFieldSchema, agentAccessWorkflowDiagnosticFieldSchema, type GetStepAttemptInputDto, type GetStepAttemptResultDto, type GetWorkflowExecutionContextInputDto, type GetWorkflowExecutionContextResultDto, type GetWorkflowRunSourceInputDto, type GetWorkflowRunSourceResultDto, getStepAttemptInputJsonSchema, getStepAttemptInputSchema, getStepAttemptResultJsonSchema, getStepAttemptResultSchema, getWorkflowExecutionContextInputJsonSchema, getWorkflowExecutionContextInputSchema, getWorkflowExecutionContextResultJsonSchema, getWorkflowExecutionContextResultSchema, getWorkflowRunSourceInputJsonSchema, getWorkflowRunSourceInputSchema, getWorkflowRunSourceResultJsonSchema, getWorkflowRunSourceResultSchema, type ListWorkflowRunJobExplanationsInputDto, type ListWorkflowRunJobExplanationsResultDto, listWorkflowRunJobExplanationsInputJsonSchema, listWorkflowRunJobExplanationsInputSchema, listWorkflowRunJobExplanationsResultJsonSchema, listWorkflowRunJobExplanationsResultSchema, } from './schemas/workflow-diagnostics.js';
6
+ export { AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_LIMIT, AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_MAX, AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PREVIEW_MAX_BYTES, type GetExecutionTriggerEventInputDto, type GetExecutionTriggerEventResultDto, getExecutionTriggerEventInputJsonSchema, getExecutionTriggerEventInputSchema, getExecutionTriggerEventResultJsonSchema, getExecutionTriggerEventResultSchema, type ListExecutionTriggerEventsInputDto, type ListExecutionTriggerEventsResultDto, listExecutionTriggerEventsInputJsonSchema, listExecutionTriggerEventsInputSchema, listExecutionTriggerEventsResultJsonSchema, listExecutionTriggerEventsResultSchema, } from './schemas/workflow-execution-events.js';
7
+ export { AGENT_ACCESS_WORKFLOW_ATTEMPT_MAX, AGENT_ACCESS_WORKFLOW_EXECUTION_COUNT_MAX, AGENT_ACCESS_WORKFLOW_EXECUTION_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_JOB_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_RUN_ATTEMPT_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_STEP_ATTEMPT_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_STEP_PAGE_LIMIT, type GetWorkflowJobInputDto, type GetWorkflowJobResultDto, type GetWorkflowRunInputDto, type GetWorkflowRunResultDto, getWorkflowJobInputJsonSchema, getWorkflowJobInputSchema, getWorkflowJobResultJsonSchema, getWorkflowJobResultSchema, getWorkflowRunInputJsonSchema, getWorkflowRunInputSchema, getWorkflowRunResultJsonSchema, getWorkflowRunResultSchema, type ListWorkflowExecutionStepsInputDto, type ListWorkflowExecutionStepsResultDto, type ListWorkflowJobExecutionsInputDto, type ListWorkflowJobExecutionsResultDto, type ListWorkflowRunAttemptsInputDto, type ListWorkflowRunAttemptsResultDto, type ListWorkflowRunJobsInputDto, type ListWorkflowRunJobsResultDto, type ListWorkflowStepAttemptsInputDto, type ListWorkflowStepAttemptsResultDto, listWorkflowExecutionStepsInputJsonSchema, listWorkflowExecutionStepsInputSchema, listWorkflowExecutionStepsResultJsonSchema, listWorkflowExecutionStepsResultSchema, listWorkflowJobExecutionsInputJsonSchema, listWorkflowJobExecutionsInputSchema, listWorkflowJobExecutionsResultJsonSchema, listWorkflowJobExecutionsResultSchema, listWorkflowRunAttemptsInputJsonSchema, listWorkflowRunAttemptsInputSchema, listWorkflowRunAttemptsResultJsonSchema, listWorkflowRunAttemptsResultSchema, listWorkflowRunJobsInputJsonSchema, listWorkflowRunJobsInputSchema, listWorkflowRunJobsResultJsonSchema, listWorkflowRunJobsResultSchema, listWorkflowStepAttemptsInputJsonSchema, listWorkflowStepAttemptsInputSchema, listWorkflowStepAttemptsResultJsonSchema, listWorkflowStepAttemptsResultSchema, } from './schemas/workflow-tools.js';
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,sCAAsC,EACtC,uCAAuC,EACvC,qCAAqC,EACrC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,oCAAoC,EACpC,gCAAgC,EAChC,qCAAqC,EACrC,iCAAiC,EACjC,8BAA8B,EAC9B,0BAA0B,EAC1B,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,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yCAAyC,EACzC,qCAAqC,EACrC,0CAA0C,EAC1C,sCAAsC,EACtC,wCAAwC,EACxC,oCAAoC,EACpC,yCAAyC,EACzC,qCAAqC,EACrC,sCAAsC,EACtC,kCAAkC,EAClC,uCAAuC,EACvC,mCAAmC,EACnC,kCAAkC,EAClC,8BAA8B,EAC9B,mCAAmC,EACnC,+BAA+B,EAC/B,uCAAuC,EACvC,mCAAmC,EACnC,wCAAwC,EACxC,oCAAoC,GACrC,MAAM,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  export { AGENT_ACCESS_FACET_MAX_ITEMS, AGENT_ACCESS_FACET_VALUE_MAX_BYTES, AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES, AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS, AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS, getTriggerEventFacetsInputJsonSchema, getTriggerEventFacetsInputSchema, getTriggerEventFacetsResultJsonSchema, getTriggerEventFacetsResultSchema, getTriggerEventInputJsonSchema, getTriggerEventInputSchema, getTriggerEventResultJsonSchema, getTriggerEventResultSchema } from './schemas/diagnostic-tools.js';
2
2
  export { AGENT_ACCESS_ERROR_CODE_MAX_LENGTH, AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH, agentAccessEnvelopeJsonSchema, agentAccessEnvelopeSchema, agentAccessErrorSchema, agentAccessOutputSchema } from './schemas/envelope.js';
3
+ export { AGENT_ACCESS_LOG_ATTEMPT_MAX, AGENT_ACCESS_LOG_CONTENT_MAX_BYTES, AGENT_ACCESS_LOG_SECTION_MAX_ITEMS, AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT, AGENT_ACCESS_LOG_TAIL_LINES_MAX, getStepLogsInputJsonSchema, getStepLogsInputSchema, getStepLogsResultJsonSchema, getStepLogsResultSchema } from './schemas/log-tools.js';
3
4
  export { AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES, AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES, AGENT_ACCESS_DEFAULT_PAGE_LIMIT, AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES, AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS, AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES, AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES, AGENT_ACCESS_PAGE_LIMIT_MAX, AGENT_ACCESS_RESPONSE_MAX_BYTES, AGENT_ACCESS_TEXT_MAX_BYTES, getRunAnnotationsInputJsonSchema, getRunAnnotationsInputSchema, getRunAnnotationsResultJsonSchema, getRunAnnotationsResultSchema, listProjectsInputJsonSchema, listProjectsInputSchema, listProjectsResultJsonSchema, listProjectsResultSchema, listTriggerEventsInputJsonSchema, listTriggerEventsInputSchema, listTriggerEventsResultJsonSchema, listTriggerEventsResultSchema, listWorkflowDefinitionsInputJsonSchema, listWorkflowDefinitionsInputSchema, listWorkflowDefinitionsResultJsonSchema, listWorkflowDefinitionsResultSchema, listWorkflowRunsInputJsonSchema, listWorkflowRunsInputSchema, listWorkflowRunsResultJsonSchema, listWorkflowRunsResultSchema } from './schemas/paged-tools.js';
5
+ export { AGENT_ACCESS_WORKFLOW_DIAGNOSTIC_VALUE_MAX_BYTES, AGENT_ACCESS_WORKFLOW_SOURCE_MAX_BYTES, agentAccessOversizedFieldSchema, agentAccessWorkflowDiagnosticFieldSchema, getStepAttemptInputJsonSchema, getStepAttemptInputSchema, getStepAttemptResultJsonSchema, getStepAttemptResultSchema, getWorkflowExecutionContextInputJsonSchema, getWorkflowExecutionContextInputSchema, getWorkflowExecutionContextResultJsonSchema, getWorkflowExecutionContextResultSchema, getWorkflowRunSourceInputJsonSchema, getWorkflowRunSourceInputSchema, getWorkflowRunSourceResultJsonSchema, getWorkflowRunSourceResultSchema, listWorkflowRunJobExplanationsInputJsonSchema, listWorkflowRunJobExplanationsInputSchema, listWorkflowRunJobExplanationsResultJsonSchema, listWorkflowRunJobExplanationsResultSchema } from './schemas/workflow-diagnostics.js';
6
+ export { AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_LIMIT, AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_MAX, AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PREVIEW_MAX_BYTES, getExecutionTriggerEventInputJsonSchema, getExecutionTriggerEventInputSchema, getExecutionTriggerEventResultJsonSchema, getExecutionTriggerEventResultSchema, listExecutionTriggerEventsInputJsonSchema, listExecutionTriggerEventsInputSchema, listExecutionTriggerEventsResultJsonSchema, listExecutionTriggerEventsResultSchema } from './schemas/workflow-execution-events.js';
7
+ export { AGENT_ACCESS_WORKFLOW_ATTEMPT_MAX, AGENT_ACCESS_WORKFLOW_EXECUTION_COUNT_MAX, AGENT_ACCESS_WORKFLOW_EXECUTION_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_JOB_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_RUN_ATTEMPT_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_STEP_ATTEMPT_PAGE_LIMIT, AGENT_ACCESS_WORKFLOW_STEP_PAGE_LIMIT, getWorkflowJobInputJsonSchema, getWorkflowJobInputSchema, getWorkflowJobResultJsonSchema, getWorkflowJobResultSchema, getWorkflowRunInputJsonSchema, getWorkflowRunInputSchema, getWorkflowRunResultJsonSchema, getWorkflowRunResultSchema, listWorkflowExecutionStepsInputJsonSchema, listWorkflowExecutionStepsInputSchema, listWorkflowExecutionStepsResultJsonSchema, listWorkflowExecutionStepsResultSchema, listWorkflowJobExecutionsInputJsonSchema, listWorkflowJobExecutionsInputSchema, listWorkflowJobExecutionsResultJsonSchema, listWorkflowJobExecutionsResultSchema, listWorkflowRunAttemptsInputJsonSchema, listWorkflowRunAttemptsInputSchema, listWorkflowRunAttemptsResultJsonSchema, listWorkflowRunAttemptsResultSchema, listWorkflowRunJobsInputJsonSchema, listWorkflowRunJobsInputSchema, listWorkflowRunJobsResultJsonSchema, listWorkflowRunJobsResultSchema, listWorkflowStepAttemptsInputJsonSchema, listWorkflowStepAttemptsInputSchema, listWorkflowStepAttemptsResultJsonSchema, listWorkflowStepAttemptsResultSchema } from './schemas/workflow-tools.js';
4
8
 
5
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n AGENT_ACCESS_FACET_MAX_ITEMS,\n AGENT_ACCESS_FACET_VALUE_MAX_BYTES,\n AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,\n AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,\n AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,\n type GetTriggerEventFacetsInputDto,\n type GetTriggerEventFacetsResultDto,\n type GetTriggerEventInputDto,\n type GetTriggerEventResultDto,\n getTriggerEventFacetsInputJsonSchema,\n getTriggerEventFacetsInputSchema,\n getTriggerEventFacetsResultJsonSchema,\n getTriggerEventFacetsResultSchema,\n getTriggerEventInputJsonSchema,\n getTriggerEventInputSchema,\n getTriggerEventResultJsonSchema,\n getTriggerEventResultSchema,\n} from './schemas/diagnostic-tools.js';\nexport {\n AGENT_ACCESS_ERROR_CODE_MAX_LENGTH,\n AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH,\n type AgentAccessEnvelopeDto,\n type AgentAccessErrorDto,\n type AgentAccessJsonSchema,\n type AgentAccessObjectSchema,\n agentAccessEnvelopeJsonSchema,\n agentAccessEnvelopeSchema,\n agentAccessErrorSchema,\n agentAccessOutputSchema,\n} from './schemas/envelope.js';\nexport {\n AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES,\n AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n AGENT_ACCESS_DEFAULT_PAGE_LIMIT,\n AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES,\n AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS,\n AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES,\n AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES,\n AGENT_ACCESS_PAGE_LIMIT_MAX,\n AGENT_ACCESS_RESPONSE_MAX_BYTES,\n AGENT_ACCESS_TEXT_MAX_BYTES,\n type GetRunAnnotationsInputDto,\n type GetRunAnnotationsResultDto,\n getRunAnnotationsInputJsonSchema,\n getRunAnnotationsInputSchema,\n getRunAnnotationsResultJsonSchema,\n getRunAnnotationsResultSchema,\n type ListProjectsInputDto,\n type ListProjectsResultDto,\n type ListTriggerEventsInputDto,\n type ListTriggerEventsResultDto,\n type ListWorkflowDefinitionsInputDto,\n type ListWorkflowDefinitionsResultDto,\n type ListWorkflowRunsInputDto,\n type ListWorkflowRunsResultDto,\n listProjectsInputJsonSchema,\n listProjectsInputSchema,\n listProjectsResultJsonSchema,\n listProjectsResultSchema,\n listTriggerEventsInputJsonSchema,\n listTriggerEventsInputSchema,\n listTriggerEventsResultJsonSchema,\n listTriggerEventsResultSchema,\n listWorkflowDefinitionsInputJsonSchema,\n listWorkflowDefinitionsInputSchema,\n listWorkflowDefinitionsResultJsonSchema,\n listWorkflowDefinitionsResultSchema,\n listWorkflowRunsInputJsonSchema,\n listWorkflowRunsInputSchema,\n listWorkflowRunsResultJsonSchema,\n listWorkflowRunsResultSchema,\n} from './schemas/paged-tools.js';\n"],"names":["AGENT_ACCESS_FACET_MAX_ITEMS","AGENT_ACCESS_FACET_VALUE_MAX_BYTES","AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES","AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS","AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS","getTriggerEventFacetsInputJsonSchema","getTriggerEventFacetsInputSchema","getTriggerEventFacetsResultJsonSchema","getTriggerEventFacetsResultSchema","getTriggerEventInputJsonSchema","getTriggerEventInputSchema","getTriggerEventResultJsonSchema","getTriggerEventResultSchema","AGENT_ACCESS_ERROR_CODE_MAX_LENGTH","AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH","agentAccessEnvelopeJsonSchema","agentAccessEnvelopeSchema","agentAccessErrorSchema","agentAccessOutputSchema","AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES","AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES","AGENT_ACCESS_DEFAULT_PAGE_LIMIT","AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES","AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS","AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES","AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES","AGENT_ACCESS_PAGE_LIMIT_MAX","AGENT_ACCESS_RESPONSE_MAX_BYTES","AGENT_ACCESS_TEXT_MAX_BYTES","getRunAnnotationsInputJsonSchema","getRunAnnotationsInputSchema","getRunAnnotationsResultJsonSchema","getRunAnnotationsResultSchema","listProjectsInputJsonSchema","listProjectsInputSchema","listProjectsResultJsonSchema","listProjectsResultSchema","listTriggerEventsInputJsonSchema","listTriggerEventsInputSchema","listTriggerEventsResultJsonSchema","listTriggerEventsResultSchema","listWorkflowDefinitionsInputJsonSchema","listWorkflowDefinitionsInputSchema","listWorkflowDefinitionsResultJsonSchema","listWorkflowDefinitionsResultSchema","listWorkflowRunsInputJsonSchema","listWorkflowRunsInputSchema","listWorkflowRunsResultJsonSchema","listWorkflowRunsResultSchema"],"mappings":"AAAA,SACEA,4BAA4B,EAC5BC,kCAAkC,EAClCC,sCAAsC,EACtCC,uCAAuC,EACvCC,qCAAqC,EAKrCC,oCAAoC,EACpCC,gCAAgC,EAChCC,qCAAqC,EACrCC,iCAAiC,EACjCC,8BAA8B,EAC9BC,0BAA0B,EAC1BC,+BAA+B,EAC/BC,2BAA2B,QACtB,gCAAgC;AACvC,SACEC,kCAAkC,EAClCC,qCAAqC,EAKrCC,6BAA6B,EAC7BC,yBAAyB,EACzBC,sBAAsB,EACtBC,uBAAuB,QAClB,wBAAwB;AAC/B,SACEC,sCAAsC,EACtCC,sCAAsC,EACtCC,+BAA+B,EAC/BC,sCAAsC,EACtCC,iCAAiC,EACjCC,yCAAyC,EACzCC,sCAAsC,EACtCC,2BAA2B,EAC3BC,+BAA+B,EAC/BC,2BAA2B,EAG3BC,gCAAgC,EAChCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,6BAA6B,EAS7BC,2BAA2B,EAC3BC,uBAAuB,EACvBC,4BAA4B,EAC5BC,wBAAwB,EACxBC,gCAAgC,EAChCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,6BAA6B,EAC7BC,sCAAsC,EACtCC,kCAAkC,EAClCC,uCAAuC,EACvCC,mCAAmC,EACnCC,+BAA+B,EAC/BC,2BAA2B,EAC3BC,gCAAgC,EAChCC,4BAA4B,QACvB,2BAA2B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n AGENT_ACCESS_FACET_MAX_ITEMS,\n AGENT_ACCESS_FACET_VALUE_MAX_BYTES,\n AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,\n AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,\n AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,\n type GetTriggerEventFacetsInputDto,\n type GetTriggerEventFacetsResultDto,\n type GetTriggerEventInputDto,\n type GetTriggerEventResultDto,\n getTriggerEventFacetsInputJsonSchema,\n getTriggerEventFacetsInputSchema,\n getTriggerEventFacetsResultJsonSchema,\n getTriggerEventFacetsResultSchema,\n getTriggerEventInputJsonSchema,\n getTriggerEventInputSchema,\n getTriggerEventResultJsonSchema,\n getTriggerEventResultSchema,\n} from './schemas/diagnostic-tools.js';\nexport {\n AGENT_ACCESS_ERROR_CODE_MAX_LENGTH,\n AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH,\n type AgentAccessEnvelopeDto,\n type AgentAccessErrorDto,\n type AgentAccessJsonSchema,\n type AgentAccessObjectSchema,\n agentAccessEnvelopeJsonSchema,\n agentAccessEnvelopeSchema,\n agentAccessErrorSchema,\n agentAccessOutputSchema,\n} from './schemas/envelope.js';\nexport {\n AGENT_ACCESS_LOG_ATTEMPT_MAX,\n AGENT_ACCESS_LOG_CONTENT_MAX_BYTES,\n AGENT_ACCESS_LOG_SECTION_MAX_ITEMS,\n AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT,\n AGENT_ACCESS_LOG_TAIL_LINES_MAX,\n type GetStepLogsInputDto,\n type GetStepLogsResultDto,\n getStepLogsInputJsonSchema,\n getStepLogsInputSchema,\n getStepLogsResultJsonSchema,\n getStepLogsResultSchema,\n} from './schemas/log-tools.js';\nexport {\n AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES,\n AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n AGENT_ACCESS_DEFAULT_PAGE_LIMIT,\n AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES,\n AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS,\n AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES,\n AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES,\n AGENT_ACCESS_PAGE_LIMIT_MAX,\n AGENT_ACCESS_RESPONSE_MAX_BYTES,\n AGENT_ACCESS_TEXT_MAX_BYTES,\n type GetRunAnnotationsInputDto,\n type GetRunAnnotationsResultDto,\n getRunAnnotationsInputJsonSchema,\n getRunAnnotationsInputSchema,\n getRunAnnotationsResultJsonSchema,\n getRunAnnotationsResultSchema,\n type ListProjectsInputDto,\n type ListProjectsResultDto,\n type ListTriggerEventsInputDto,\n type ListTriggerEventsResultDto,\n type ListWorkflowDefinitionsInputDto,\n type ListWorkflowDefinitionsResultDto,\n type ListWorkflowRunsInputDto,\n type ListWorkflowRunsResultDto,\n listProjectsInputJsonSchema,\n listProjectsInputSchema,\n listProjectsResultJsonSchema,\n listProjectsResultSchema,\n listTriggerEventsInputJsonSchema,\n listTriggerEventsInputSchema,\n listTriggerEventsResultJsonSchema,\n listTriggerEventsResultSchema,\n listWorkflowDefinitionsInputJsonSchema,\n listWorkflowDefinitionsInputSchema,\n listWorkflowDefinitionsResultJsonSchema,\n listWorkflowDefinitionsResultSchema,\n listWorkflowRunsInputJsonSchema,\n listWorkflowRunsInputSchema,\n listWorkflowRunsResultJsonSchema,\n listWorkflowRunsResultSchema,\n} from './schemas/paged-tools.js';\nexport {\n AGENT_ACCESS_WORKFLOW_DIAGNOSTIC_VALUE_MAX_BYTES,\n AGENT_ACCESS_WORKFLOW_SOURCE_MAX_BYTES,\n type AgentAccessOversizedFieldDto,\n type AgentAccessWorkflowDiagnosticFieldDto,\n agentAccessOversizedFieldSchema,\n agentAccessWorkflowDiagnosticFieldSchema,\n type GetStepAttemptInputDto,\n type GetStepAttemptResultDto,\n type GetWorkflowExecutionContextInputDto,\n type GetWorkflowExecutionContextResultDto,\n type GetWorkflowRunSourceInputDto,\n type GetWorkflowRunSourceResultDto,\n getStepAttemptInputJsonSchema,\n getStepAttemptInputSchema,\n getStepAttemptResultJsonSchema,\n getStepAttemptResultSchema,\n getWorkflowExecutionContextInputJsonSchema,\n getWorkflowExecutionContextInputSchema,\n getWorkflowExecutionContextResultJsonSchema,\n getWorkflowExecutionContextResultSchema,\n getWorkflowRunSourceInputJsonSchema,\n getWorkflowRunSourceInputSchema,\n getWorkflowRunSourceResultJsonSchema,\n getWorkflowRunSourceResultSchema,\n type ListWorkflowRunJobExplanationsInputDto,\n type ListWorkflowRunJobExplanationsResultDto,\n listWorkflowRunJobExplanationsInputJsonSchema,\n listWorkflowRunJobExplanationsInputSchema,\n listWorkflowRunJobExplanationsResultJsonSchema,\n listWorkflowRunJobExplanationsResultSchema,\n} from './schemas/workflow-diagnostics.js';\nexport {\n AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_LIMIT,\n AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_MAX,\n AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PREVIEW_MAX_BYTES,\n type GetExecutionTriggerEventInputDto,\n type GetExecutionTriggerEventResultDto,\n getExecutionTriggerEventInputJsonSchema,\n getExecutionTriggerEventInputSchema,\n getExecutionTriggerEventResultJsonSchema,\n getExecutionTriggerEventResultSchema,\n type ListExecutionTriggerEventsInputDto,\n type ListExecutionTriggerEventsResultDto,\n listExecutionTriggerEventsInputJsonSchema,\n listExecutionTriggerEventsInputSchema,\n listExecutionTriggerEventsResultJsonSchema,\n listExecutionTriggerEventsResultSchema,\n} from './schemas/workflow-execution-events.js';\nexport {\n AGENT_ACCESS_WORKFLOW_ATTEMPT_MAX,\n AGENT_ACCESS_WORKFLOW_EXECUTION_COUNT_MAX,\n AGENT_ACCESS_WORKFLOW_EXECUTION_PAGE_LIMIT,\n AGENT_ACCESS_WORKFLOW_JOB_PAGE_LIMIT,\n AGENT_ACCESS_WORKFLOW_RUN_ATTEMPT_PAGE_LIMIT,\n AGENT_ACCESS_WORKFLOW_STEP_ATTEMPT_PAGE_LIMIT,\n AGENT_ACCESS_WORKFLOW_STEP_PAGE_LIMIT,\n type GetWorkflowJobInputDto,\n type GetWorkflowJobResultDto,\n type GetWorkflowRunInputDto,\n type GetWorkflowRunResultDto,\n getWorkflowJobInputJsonSchema,\n getWorkflowJobInputSchema,\n getWorkflowJobResultJsonSchema,\n getWorkflowJobResultSchema,\n getWorkflowRunInputJsonSchema,\n getWorkflowRunInputSchema,\n getWorkflowRunResultJsonSchema,\n getWorkflowRunResultSchema,\n type ListWorkflowExecutionStepsInputDto,\n type ListWorkflowExecutionStepsResultDto,\n type ListWorkflowJobExecutionsInputDto,\n type ListWorkflowJobExecutionsResultDto,\n type ListWorkflowRunAttemptsInputDto,\n type ListWorkflowRunAttemptsResultDto,\n type ListWorkflowRunJobsInputDto,\n type ListWorkflowRunJobsResultDto,\n type ListWorkflowStepAttemptsInputDto,\n type ListWorkflowStepAttemptsResultDto,\n listWorkflowExecutionStepsInputJsonSchema,\n listWorkflowExecutionStepsInputSchema,\n listWorkflowExecutionStepsResultJsonSchema,\n listWorkflowExecutionStepsResultSchema,\n listWorkflowJobExecutionsInputJsonSchema,\n listWorkflowJobExecutionsInputSchema,\n listWorkflowJobExecutionsResultJsonSchema,\n listWorkflowJobExecutionsResultSchema,\n listWorkflowRunAttemptsInputJsonSchema,\n listWorkflowRunAttemptsInputSchema,\n listWorkflowRunAttemptsResultJsonSchema,\n listWorkflowRunAttemptsResultSchema,\n listWorkflowRunJobsInputJsonSchema,\n listWorkflowRunJobsInputSchema,\n listWorkflowRunJobsResultJsonSchema,\n listWorkflowRunJobsResultSchema,\n listWorkflowStepAttemptsInputJsonSchema,\n listWorkflowStepAttemptsInputSchema,\n listWorkflowStepAttemptsResultJsonSchema,\n listWorkflowStepAttemptsResultSchema,\n} from './schemas/workflow-tools.js';\n"],"names":["AGENT_ACCESS_FACET_MAX_ITEMS","AGENT_ACCESS_FACET_VALUE_MAX_BYTES","AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES","AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS","AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS","getTriggerEventFacetsInputJsonSchema","getTriggerEventFacetsInputSchema","getTriggerEventFacetsResultJsonSchema","getTriggerEventFacetsResultSchema","getTriggerEventInputJsonSchema","getTriggerEventInputSchema","getTriggerEventResultJsonSchema","getTriggerEventResultSchema","AGENT_ACCESS_ERROR_CODE_MAX_LENGTH","AGENT_ACCESS_ERROR_MESSAGE_MAX_LENGTH","agentAccessEnvelopeJsonSchema","agentAccessEnvelopeSchema","agentAccessErrorSchema","agentAccessOutputSchema","AGENT_ACCESS_LOG_ATTEMPT_MAX","AGENT_ACCESS_LOG_CONTENT_MAX_BYTES","AGENT_ACCESS_LOG_SECTION_MAX_ITEMS","AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT","AGENT_ACCESS_LOG_TAIL_LINES_MAX","getStepLogsInputJsonSchema","getStepLogsInputSchema","getStepLogsResultJsonSchema","getStepLogsResultSchema","AGENT_ACCESS_ANNOTATION_BODY_MAX_BYTES","AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES","AGENT_ACCESS_DEFAULT_PAGE_LIMIT","AGENT_ACCESS_DIAGNOSTIC_CODE_MAX_BYTES","AGENT_ACCESS_DIAGNOSTIC_MAX_ITEMS","AGENT_ACCESS_DIAGNOSTIC_MESSAGE_MAX_BYTES","AGENT_ACCESS_DIAGNOSTIC_PATH_MAX_BYTES","AGENT_ACCESS_PAGE_LIMIT_MAX","AGENT_ACCESS_RESPONSE_MAX_BYTES","AGENT_ACCESS_TEXT_MAX_BYTES","getRunAnnotationsInputJsonSchema","getRunAnnotationsInputSchema","getRunAnnotationsResultJsonSchema","getRunAnnotationsResultSchema","listProjectsInputJsonSchema","listProjectsInputSchema","listProjectsResultJsonSchema","listProjectsResultSchema","listTriggerEventsInputJsonSchema","listTriggerEventsInputSchema","listTriggerEventsResultJsonSchema","listTriggerEventsResultSchema","listWorkflowDefinitionsInputJsonSchema","listWorkflowDefinitionsInputSchema","listWorkflowDefinitionsResultJsonSchema","listWorkflowDefinitionsResultSchema","listWorkflowRunsInputJsonSchema","listWorkflowRunsInputSchema","listWorkflowRunsResultJsonSchema","listWorkflowRunsResultSchema","AGENT_ACCESS_WORKFLOW_DIAGNOSTIC_VALUE_MAX_BYTES","AGENT_ACCESS_WORKFLOW_SOURCE_MAX_BYTES","agentAccessOversizedFieldSchema","agentAccessWorkflowDiagnosticFieldSchema","getStepAttemptInputJsonSchema","getStepAttemptInputSchema","getStepAttemptResultJsonSchema","getStepAttemptResultSchema","getWorkflowExecutionContextInputJsonSchema","getWorkflowExecutionContextInputSchema","getWorkflowExecutionContextResultJsonSchema","getWorkflowExecutionContextResultSchema","getWorkflowRunSourceInputJsonSchema","getWorkflowRunSourceInputSchema","getWorkflowRunSourceResultJsonSchema","getWorkflowRunSourceResultSchema","listWorkflowRunJobExplanationsInputJsonSchema","listWorkflowRunJobExplanationsInputSchema","listWorkflowRunJobExplanationsResultJsonSchema","listWorkflowRunJobExplanationsResultSchema","AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_LIMIT","AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_MAX","AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PREVIEW_MAX_BYTES","getExecutionTriggerEventInputJsonSchema","getExecutionTriggerEventInputSchema","getExecutionTriggerEventResultJsonSchema","getExecutionTriggerEventResultSchema","listExecutionTriggerEventsInputJsonSchema","listExecutionTriggerEventsInputSchema","listExecutionTriggerEventsResultJsonSchema","listExecutionTriggerEventsResultSchema","AGENT_ACCESS_WORKFLOW_ATTEMPT_MAX","AGENT_ACCESS_WORKFLOW_EXECUTION_COUNT_MAX","AGENT_ACCESS_WORKFLOW_EXECUTION_PAGE_LIMIT","AGENT_ACCESS_WORKFLOW_JOB_PAGE_LIMIT","AGENT_ACCESS_WORKFLOW_RUN_ATTEMPT_PAGE_LIMIT","AGENT_ACCESS_WORKFLOW_STEP_ATTEMPT_PAGE_LIMIT","AGENT_ACCESS_WORKFLOW_STEP_PAGE_LIMIT","getWorkflowJobInputJsonSchema","getWorkflowJobInputSchema","getWorkflowJobResultJsonSchema","getWorkflowJobResultSchema","getWorkflowRunInputJsonSchema","getWorkflowRunInputSchema","getWorkflowRunResultJsonSchema","getWorkflowRunResultSchema","listWorkflowExecutionStepsInputJsonSchema","listWorkflowExecutionStepsInputSchema","listWorkflowExecutionStepsResultJsonSchema","listWorkflowExecutionStepsResultSchema","listWorkflowJobExecutionsInputJsonSchema","listWorkflowJobExecutionsInputSchema","listWorkflowJobExecutionsResultJsonSchema","listWorkflowJobExecutionsResultSchema","listWorkflowRunAttemptsInputJsonSchema","listWorkflowRunAttemptsInputSchema","listWorkflowRunAttemptsResultJsonSchema","listWorkflowRunAttemptsResultSchema","listWorkflowRunJobsInputJsonSchema","listWorkflowRunJobsInputSchema","listWorkflowRunJobsResultJsonSchema","listWorkflowRunJobsResultSchema","listWorkflowStepAttemptsInputJsonSchema","listWorkflowStepAttemptsInputSchema","listWorkflowStepAttemptsResultJsonSchema","listWorkflowStepAttemptsResultSchema"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CAAmC,EACnCC,+BAA+B,EAC/BC,oCAAoC,EACpCC,gCAAgC,EAGhCC,6CAA6C,EAC7CC,yCAAyC,EACzCC,8CAA8C,EAC9CC,0CAA0C,QACrC,oCAAoC;AAC3C,SACEC,+CAA+C,EAC/CC,6CAA6C,EAC7CC,sDAAsD,EAGtDC,uCAAuC,EACvCC,mCAAmC,EACnCC,wCAAwC,EACxCC,oCAAoC,EAGpCC,yCAAyC,EACzCC,qCAAqC,EACrCC,0CAA0C,EAC1CC,sCAAsC,QACjC,yCAAyC;AAChD,SACEC,iCAAiC,EACjCC,yCAAyC,EACzCC,0CAA0C,EAC1CC,oCAAoC,EACpCC,4CAA4C,EAC5CC,6CAA6C,EAC7CC,qCAAqC,EAKrCC,6BAA6B,EAC7BC,yBAAyB,EACzBC,8BAA8B,EAC9BC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,yBAAyB,EACzBC,8BAA8B,EAC9BC,0BAA0B,EAW1BC,yCAAyC,EACzCC,qCAAqC,EACrCC,0CAA0C,EAC1CC,sCAAsC,EACtCC,wCAAwC,EACxCC,oCAAoC,EACpCC,yCAAyC,EACzCC,qCAAqC,EACrCC,sCAAsC,EACtCC,kCAAkC,EAClCC,uCAAuC,EACvCC,mCAAmC,EACnCC,kCAAkC,EAClCC,8BAA8B,EAC9BC,mCAAmC,EACnCC,+BAA+B,EAC/BC,uCAAuC,EACvCC,mCAAmC,EACnCC,wCAAwC,EACxCC,oCAAoC,QAC/B,8BAA8B"}
@@ -47,6 +47,8 @@ export declare const getTriggerEventResultSchema: z.ZodObject<{
47
47
  outcome: z.ZodEnum<{
48
48
  "dispatch-error": "dispatch-error";
49
49
  "filter-error": "filter-error";
50
+ filtered: "filtered";
51
+ rejected: "rejected";
50
52
  triggered: "triggered";
51
53
  }>;
52
54
  reason: z.ZodNullable<z.ZodString>;
@@ -181,7 +183,7 @@ export declare const getTriggerEventResultJsonSchema: {
181
183
  };
182
184
  readonly outcome: {
183
185
  readonly type: 'string';
184
- readonly enum: readonly ['triggered', 'filter-error', 'dispatch-error'];
186
+ readonly enum: readonly ['triggered', 'filtered', 'filter-error', 'dispatch-error', 'rejected'];
185
187
  };
186
188
  readonly reason: {
187
189
  readonly anyOf: readonly [Record<string, unknown>, {
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic-tools.d.ts","sourceRoot":"","sources":["../../src/schemas/diagnostic-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sCAAsC,QAAY,CAAC;AAChE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAC1D,eAAO,MAAM,qCAAqC,KAAK,CAAC;AACxD,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAqBtD,eAAO,MAAM,0BAA0B;;kBAA0C,CAAC;AAElF,eAAO,MAAM,gCAAgC,iCAAwB,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AA0B7F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwB7B,CAAC;AASZ,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;kBAMnC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAgB/F,eAAO,MAAM,8BAA8B;mBACnC,QAAQ;;iBACD,QAAQ;2BAhBH,QAAQ;6BAAU,MAAM;;;;;CAmBA,CAAC;AAW7C,eAAO,MAAM,oCAAoC;mBACzC,QAAQ;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;;;;;;iBAEP,OAAO;qBACL,IAAI,EAAE,OAAO;qBACb,QAAQ;qBACR,KAAK;;;;;;;;;;;;;;;;;;;CAKiC,CAAC"}
@@ -1,16 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES, AGENT_ACCESS_TEXT_MAX_BYTES } from './paged-tools.js';
3
+ import { dateTimeSchema, idSchema, utf8CappedString } from './primitives.js';
3
4
  export const AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES = 16 * 1024;
4
5
  export const AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS = 50;
5
6
  export const AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS = 20;
6
7
  export const AGENT_ACCESS_FACET_MAX_ITEMS = 50;
7
8
  export const AGENT_ACCESS_FACET_VALUE_MAX_BYTES = 256;
8
- const idSchema = z.string().uuid();
9
- const dateTimeSchema = z.string().datetime();
10
- const utf8Encoder = new TextEncoder();
11
- const utf8CappedString = (maxBytes)=>z.string().max(maxBytes).refine((value)=>utf8Encoder.encode(value).byteLength <= maxBytes, {
12
- message: `String must contain at most ${maxBytes} UTF-8 bytes`
13
- });
14
9
  const textSchema = utf8CappedString(AGENT_ACCESS_TEXT_MAX_BYTES);
15
10
  const shortTextSchema = utf8CappedString(AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES);
16
11
  const serializedJsonSchema = utf8CappedString(AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES).refine(isSerializedJson, {
@@ -35,8 +30,10 @@ const triggerOutcomeSchema = z.enum([
35
30
  ]);
36
31
  const triggerDecisionOutcomeSchema = z.enum([
37
32
  'triggered',
33
+ 'filtered',
38
34
  'filter-error',
39
- 'dispatch-error'
35
+ 'dispatch-error',
36
+ 'rejected'
40
37
  ]);
41
38
  const triggerDecisionSchema = z.object({
42
39
  id: idSchema,
@@ -157,8 +154,10 @@ const triggerDecisionJsonSchema = {
157
154
  type: 'string',
158
155
  enum: [
159
156
  'triggered',
157
+ 'filtered',
160
158
  'filter-error',
161
- 'dispatch-error'
159
+ 'dispatch-error',
160
+ 'rejected'
162
161
  ]
163
162
  },
164
163
  reason: nullable(text),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/diagnostic-tools.ts"],"sourcesContent":["import {z} from 'zod';\nimport type {AgentAccessObjectSchema} from './envelope.js';\nimport {\n AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n AGENT_ACCESS_TEXT_MAX_BYTES,\n} from './paged-tools.js';\n\nexport const AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES = 16 * 1024;\nexport const AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS = 20;\nexport const AGENT_ACCESS_FACET_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_FACET_VALUE_MAX_BYTES = 256;\n\nconst idSchema = z.string().uuid();\nconst dateTimeSchema = z.string().datetime();\nconst utf8Encoder = new TextEncoder();\n\nconst utf8CappedString = (maxBytes: number) =>\n z\n .string()\n .max(maxBytes)\n .refine((value) => utf8Encoder.encode(value).byteLength <= maxBytes, {\n message: `String must contain at most ${maxBytes} UTF-8 bytes`,\n });\n\nconst textSchema = utf8CappedString(AGENT_ACCESS_TEXT_MAX_BYTES);\nconst shortTextSchema = utf8CappedString(AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES);\nconst serializedJsonSchema = utf8CappedString(AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES).refine(\n isSerializedJson,\n {message: 'String must contain valid serialized JSON'},\n);\n\nexport const getTriggerEventInputSchema = z.object({event_id: idSchema}).strict();\n\nexport const getTriggerEventFacetsInputSchema = z.object({}).strict();\n\nexport type GetTriggerEventInputDto = z.infer<typeof getTriggerEventInputSchema>;\nexport type GetTriggerEventFacetsInputDto = z.infer<typeof getTriggerEventFacetsInputSchema>;\n\nconst triggerOriginSchema = z.enum(['integration', 'manual', 'cron', 'dev']);\nconst triggerOutcomeSchema = z.enum(['received', 'routed', 'discarded', 'failed', 'errored']);\nconst triggerDecisionOutcomeSchema = z.enum(['triggered', 'filter-error', 'dispatch-error']);\nconst triggerDecisionSchema = z\n .object({\n id: idSchema,\n subscription_kind: z.enum(['trigger', 'listener', 'dev']),\n outcome: triggerDecisionOutcomeSchema,\n reason: textSchema.nullable(),\n workflow_definition_id: idSchema.nullable(),\n project_id: idSchema.nullable(),\n workflow_run_id: idSchema.nullable(),\n job_id: idSchema.nullable(),\n })\n .strict();\n\nconst triggerReplaySchema = z\n .object({\n id: idSchema,\n workflow_run_id: idSchema.nullable(),\n created_at: dateTimeSchema,\n })\n .strict();\n\nexport const getTriggerEventResultSchema = z\n .object({\n id: idSchema,\n origin: triggerOriginSchema,\n provider: textSchema.nullable(),\n source: textSchema,\n event: textSchema,\n outcome: triggerOutcomeSchema,\n matched_count: z.number().int().nonnegative(),\n connection_id: idSchema.nullable(),\n connection_name: shortTextSchema.nullable(),\n replay_of_event_id: idSchema.nullable(),\n received_at: dateTimeSchema,\n processed_at: dateTimeSchema.nullable(),\n payload_preview: serializedJsonSchema,\n payload_preview_truncated: z.literal(true).optional(),\n payload_preview_total_bytes: z.number().int().nonnegative().optional(),\n decisions: z.array(triggerDecisionSchema).max(AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS),\n decisions_truncated: z.literal(true).optional(),\n decisions_total_count: z.number().int().nonnegative(),\n replays: z.array(triggerReplaySchema).max(AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS),\n replays_truncated: z.literal(true).optional(),\n replays_total_count: z.number().int().nonnegative(),\n })\n .strict();\n\nconst facetSchema = z\n .object({\n value: utf8CappedString(AGENT_ACCESS_FACET_VALUE_MAX_BYTES),\n count: z.number().int().nonnegative(),\n })\n .strict();\n\nexport const getTriggerEventFacetsResultSchema = z\n .object({\n sources: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n events: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n origins: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n })\n .strict();\n\nexport type GetTriggerEventResultDto = z.infer<typeof getTriggerEventResultSchema>;\nexport type GetTriggerEventFacetsResultDto = z.infer<typeof getTriggerEventFacetsResultSchema>;\n\nconst uuid = {type: 'string', format: 'uuid'} as const;\nconst dateTime = {type: 'string', format: 'date-time'} as const;\nconst text = {type: 'string', maxLength: AGENT_ACCESS_TEXT_MAX_BYTES} as const;\nconst shortText = {\n type: 'string',\n maxLength: AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n} as const;\nconst serializedJson = {\n type: 'string',\n maxLength: AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,\n contentMediaType: 'application/json',\n} as const;\nconst nullable = (schema: Record<string, unknown>) => ({anyOf: [schema, {type: 'null'}]}) as const;\n\nexport const getTriggerEventInputJsonSchema = {\n type: 'object',\n properties: {event_id: uuid},\n required: ['event_id'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nfunction isSerializedJson(value: string): boolean {\n try {\n JSON.parse(value);\n return true;\n } catch {\n return false;\n }\n}\n\nexport const getTriggerEventFacetsInputJsonSchema = {\n type: 'object',\n properties: {},\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst triggerDecisionJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n subscription_kind: {type: 'string', enum: ['trigger', 'listener', 'dev']},\n outcome: {type: 'string', enum: ['triggered', 'filter-error', 'dispatch-error']},\n reason: nullable(text),\n workflow_definition_id: nullable(uuid),\n project_id: nullable(uuid),\n workflow_run_id: nullable(uuid),\n job_id: nullable(uuid),\n },\n required: [\n 'id',\n 'subscription_kind',\n 'outcome',\n 'reason',\n 'workflow_definition_id',\n 'project_id',\n 'workflow_run_id',\n 'job_id',\n ],\n additionalProperties: false,\n} as const;\n\nconst triggerReplayJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n workflow_run_id: nullable(uuid),\n created_at: dateTime,\n },\n required: ['id', 'workflow_run_id', 'created_at'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventResultJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n origin: {type: 'string', enum: ['integration', 'manual', 'cron', 'dev']},\n provider: nullable(text),\n source: text,\n event: text,\n outcome: {type: 'string', enum: ['received', 'routed', 'discarded', 'failed', 'errored']},\n matched_count: {type: 'integer', minimum: 0},\n connection_id: nullable(uuid),\n connection_name: nullable(shortText),\n replay_of_event_id: nullable(uuid),\n received_at: dateTime,\n processed_at: nullable(dateTime),\n payload_preview: serializedJson,\n payload_preview_truncated: {const: true},\n payload_preview_total_bytes: {type: 'integer', minimum: 0},\n decisions: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,\n items: triggerDecisionJsonSchema,\n },\n decisions_truncated: {const: true},\n decisions_total_count: {type: 'integer', minimum: 0},\n replays: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,\n items: triggerReplayJsonSchema,\n },\n replays_truncated: {const: true},\n replays_total_count: {type: 'integer', minimum: 0},\n },\n required: [\n 'id',\n 'origin',\n 'provider',\n 'source',\n 'event',\n 'outcome',\n 'matched_count',\n 'connection_id',\n 'connection_name',\n 'replay_of_event_id',\n 'received_at',\n 'processed_at',\n 'payload_preview',\n 'decisions',\n 'decisions_total_count',\n 'replays',\n 'replays_total_count',\n ],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst facetJsonSchema = {\n type: 'object',\n properties: {\n value: {type: 'string', maxLength: AGENT_ACCESS_FACET_VALUE_MAX_BYTES},\n count: {type: 'integer', minimum: 0},\n },\n required: ['value', 'count'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventFacetsResultJsonSchema = {\n type: 'object',\n properties: {\n sources: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n events: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n origins: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n },\n required: ['sources', 'events', 'origins'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n"],"names":["z","AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES","AGENT_ACCESS_TEXT_MAX_BYTES","AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES","AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS","AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS","AGENT_ACCESS_FACET_MAX_ITEMS","AGENT_ACCESS_FACET_VALUE_MAX_BYTES","idSchema","string","uuid","dateTimeSchema","datetime","utf8Encoder","TextEncoder","utf8CappedString","maxBytes","max","refine","value","encode","byteLength","message","textSchema","shortTextSchema","serializedJsonSchema","isSerializedJson","getTriggerEventInputSchema","object","event_id","strict","getTriggerEventFacetsInputSchema","triggerOriginSchema","enum","triggerOutcomeSchema","triggerDecisionOutcomeSchema","triggerDecisionSchema","id","subscription_kind","outcome","reason","nullable","workflow_definition_id","project_id","workflow_run_id","job_id","triggerReplaySchema","created_at","getTriggerEventResultSchema","origin","provider","source","event","matched_count","number","int","nonnegative","connection_id","connection_name","replay_of_event_id","received_at","processed_at","payload_preview","payload_preview_truncated","literal","optional","payload_preview_total_bytes","decisions","array","decisions_truncated","decisions_total_count","replays","replays_truncated","replays_total_count","facetSchema","count","getTriggerEventFacetsResultSchema","sources","events","origins","type","format","dateTime","text","maxLength","shortText","serializedJson","contentMediaType","schema","anyOf","getTriggerEventInputJsonSchema","properties","required","additionalProperties","JSON","parse","getTriggerEventFacetsInputJsonSchema","triggerDecisionJsonSchema","triggerReplayJsonSchema","getTriggerEventResultJsonSchema","minimum","const","maxItems","items","facetJsonSchema","getTriggerEventFacetsResultJsonSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,M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G;YACVkG,OAAOL;QACT;QACA1B,mBAAmB;YAAC6B,OAAO;QAAI;QAC/B5B,qBAAqB;YAACO,MAAM;YAAWoB,SAAS;QAAC;IACnD;IACAR,UAAU;QACR;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACDC,sBAAsB;AACxB,EAA6C;AAE7C,MAAMW,kBAAkB;IACtBxB,MAAM;IACNW,YAAY;QACVxE,OAAO;YAAC6D,MAAM;YAAUI,WAAW7E;QAAkC;QACrEoE,OAAO;YAACK,MAAM;YAAWoB,SAAS;QAAC;IACrC;IACAR,UAAU;QAAC;QAAS;KAAQ;IAC5BC,sBAAsB;AACxB;AAEA,OAAO,MAAMY,wCAAwC;IACnDzB,MAAM;IACNW,YAAY;QACVd,SAAS;YACPG,MAAM;YACNsB,UAAUhG;YACViG,OAAOC;QACT;QACA1B,QAAQ;YACNE,MAAM;YACNsB,UAAUhG;YACViG,OAAOC;QACT;QACAzB,SAAS;YACPC,MAAM;YACNsB,UAAUhG;YACViG,OAAOC;QACT;IACF;IACAZ,UAAU;QAAC;QAAW;QAAU;KAAU;IAC1CC,sBAAsB;AACxB,EAA6C"}
1
+ {"version":3,"sources":["../../src/schemas/diagnostic-tools.ts"],"sourcesContent":["import {z} from 'zod';\nimport type {AgentAccessObjectSchema} from './envelope.js';\nimport {\n AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n AGENT_ACCESS_TEXT_MAX_BYTES,\n} from './paged-tools.js';\nimport {dateTimeSchema, idSchema, utf8CappedString} from './primitives.js';\n\nexport const AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES = 16 * 1024;\nexport const AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS = 20;\nexport const AGENT_ACCESS_FACET_MAX_ITEMS = 50;\nexport const AGENT_ACCESS_FACET_VALUE_MAX_BYTES = 256;\n\nconst textSchema = utf8CappedString(AGENT_ACCESS_TEXT_MAX_BYTES);\nconst shortTextSchema = utf8CappedString(AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES);\nconst serializedJsonSchema = utf8CappedString(AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES).refine(\n isSerializedJson,\n {message: 'String must contain valid serialized JSON'},\n);\n\nexport const getTriggerEventInputSchema = z.object({event_id: idSchema}).strict();\n\nexport const getTriggerEventFacetsInputSchema = z.object({}).strict();\n\nexport type GetTriggerEventInputDto = z.infer<typeof getTriggerEventInputSchema>;\nexport type GetTriggerEventFacetsInputDto = z.infer<typeof getTriggerEventFacetsInputSchema>;\n\nconst triggerOriginSchema = z.enum(['integration', 'manual', 'cron', 'dev']);\nconst triggerOutcomeSchema = z.enum(['received', 'routed', 'discarded', 'failed', 'errored']);\nconst triggerDecisionOutcomeSchema = z.enum([\n 'triggered',\n 'filtered',\n 'filter-error',\n 'dispatch-error',\n 'rejected',\n]);\nconst triggerDecisionSchema = z\n .object({\n id: idSchema,\n subscription_kind: z.enum(['trigger', 'listener', 'dev']),\n outcome: triggerDecisionOutcomeSchema,\n reason: textSchema.nullable(),\n workflow_definition_id: idSchema.nullable(),\n project_id: idSchema.nullable(),\n workflow_run_id: idSchema.nullable(),\n job_id: idSchema.nullable(),\n })\n .strict();\n\nconst triggerReplaySchema = z\n .object({\n id: idSchema,\n workflow_run_id: idSchema.nullable(),\n created_at: dateTimeSchema,\n })\n .strict();\n\nexport const getTriggerEventResultSchema = z\n .object({\n id: idSchema,\n origin: triggerOriginSchema,\n provider: textSchema.nullable(),\n source: textSchema,\n event: textSchema,\n outcome: triggerOutcomeSchema,\n matched_count: z.number().int().nonnegative(),\n connection_id: idSchema.nullable(),\n connection_name: shortTextSchema.nullable(),\n replay_of_event_id: idSchema.nullable(),\n received_at: dateTimeSchema,\n processed_at: dateTimeSchema.nullable(),\n payload_preview: serializedJsonSchema,\n payload_preview_truncated: z.literal(true).optional(),\n payload_preview_total_bytes: z.number().int().nonnegative().optional(),\n decisions: z.array(triggerDecisionSchema).max(AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS),\n decisions_truncated: z.literal(true).optional(),\n decisions_total_count: z.number().int().nonnegative(),\n replays: z.array(triggerReplaySchema).max(AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS),\n replays_truncated: z.literal(true).optional(),\n replays_total_count: z.number().int().nonnegative(),\n })\n .strict();\n\nconst facetSchema = z\n .object({\n value: utf8CappedString(AGENT_ACCESS_FACET_VALUE_MAX_BYTES),\n count: z.number().int().nonnegative(),\n })\n .strict();\n\nexport const getTriggerEventFacetsResultSchema = z\n .object({\n sources: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n events: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n origins: z.array(facetSchema).max(AGENT_ACCESS_FACET_MAX_ITEMS),\n })\n .strict();\n\nexport type GetTriggerEventResultDto = z.infer<typeof getTriggerEventResultSchema>;\nexport type GetTriggerEventFacetsResultDto = z.infer<typeof getTriggerEventFacetsResultSchema>;\n\nconst uuid = {type: 'string', format: 'uuid'} as const;\nconst dateTime = {type: 'string', format: 'date-time'} as const;\nconst text = {type: 'string', maxLength: AGENT_ACCESS_TEXT_MAX_BYTES} as const;\nconst shortText = {\n type: 'string',\n maxLength: AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES,\n} as const;\nconst serializedJson = {\n type: 'string',\n maxLength: AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES,\n contentMediaType: 'application/json',\n} as const;\nconst nullable = (schema: Record<string, unknown>) => ({anyOf: [schema, {type: 'null'}]}) as const;\n\nexport const getTriggerEventInputJsonSchema = {\n type: 'object',\n properties: {event_id: uuid},\n required: ['event_id'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nfunction isSerializedJson(value: string): boolean {\n try {\n JSON.parse(value);\n return true;\n } catch {\n return false;\n }\n}\n\nexport const getTriggerEventFacetsInputJsonSchema = {\n type: 'object',\n properties: {},\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst triggerDecisionJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n subscription_kind: {type: 'string', enum: ['trigger', 'listener', 'dev']},\n outcome: {\n type: 'string',\n enum: ['triggered', 'filtered', 'filter-error', 'dispatch-error', 'rejected'],\n },\n reason: nullable(text),\n workflow_definition_id: nullable(uuid),\n project_id: nullable(uuid),\n workflow_run_id: nullable(uuid),\n job_id: nullable(uuid),\n },\n required: [\n 'id',\n 'subscription_kind',\n 'outcome',\n 'reason',\n 'workflow_definition_id',\n 'project_id',\n 'workflow_run_id',\n 'job_id',\n ],\n additionalProperties: false,\n} as const;\n\nconst triggerReplayJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n workflow_run_id: nullable(uuid),\n created_at: dateTime,\n },\n required: ['id', 'workflow_run_id', 'created_at'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventResultJsonSchema = {\n type: 'object',\n properties: {\n id: uuid,\n origin: {type: 'string', enum: ['integration', 'manual', 'cron', 'dev']},\n provider: nullable(text),\n source: text,\n event: text,\n outcome: {type: 'string', enum: ['received', 'routed', 'discarded', 'failed', 'errored']},\n matched_count: {type: 'integer', minimum: 0},\n connection_id: nullable(uuid),\n connection_name: nullable(shortText),\n replay_of_event_id: nullable(uuid),\n received_at: dateTime,\n processed_at: nullable(dateTime),\n payload_preview: serializedJson,\n payload_preview_truncated: {const: true},\n payload_preview_total_bytes: {type: 'integer', minimum: 0},\n decisions: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS,\n items: triggerDecisionJsonSchema,\n },\n decisions_truncated: {const: true},\n decisions_total_count: {type: 'integer', minimum: 0},\n replays: {\n type: 'array',\n maxItems: AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS,\n items: triggerReplayJsonSchema,\n },\n replays_truncated: {const: true},\n replays_total_count: {type: 'integer', minimum: 0},\n },\n required: [\n 'id',\n 'origin',\n 'provider',\n 'source',\n 'event',\n 'outcome',\n 'matched_count',\n 'connection_id',\n 'connection_name',\n 'replay_of_event_id',\n 'received_at',\n 'processed_at',\n 'payload_preview',\n 'decisions',\n 'decisions_total_count',\n 'replays',\n 'replays_total_count',\n ],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n\nconst facetJsonSchema = {\n type: 'object',\n properties: {\n value: {type: 'string', maxLength: AGENT_ACCESS_FACET_VALUE_MAX_BYTES},\n count: {type: 'integer', minimum: 0},\n },\n required: ['value', 'count'],\n additionalProperties: false,\n} as const;\n\nexport const getTriggerEventFacetsResultJsonSchema = {\n type: 'object',\n properties: {\n sources: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n events: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n origins: {\n type: 'array',\n maxItems: AGENT_ACCESS_FACET_MAX_ITEMS,\n items: facetJsonSchema,\n },\n },\n required: ['sources', 'events', 'origins'],\n additionalProperties: false,\n} as const satisfies AgentAccessObjectSchema;\n"],"names":["z","AGENT_ACCESS_CONNECTION_NAME_MAX_BYTES","AGENT_ACCESS_TEXT_MAX_BYTES","dateTimeSchema","idSchema","utf8CappedString","AGENT_ACCESS_SERIALIZED_JSON_MAX_BYTES","AGENT_ACCESS_TRIGGER_DECISION_MAX_ITEMS","AGENT_ACCESS_TRIGGER_REPLAY_MAX_ITEMS","AGENT_ACCESS_FACET_MAX_ITEMS","AGENT_ACCESS_FACET_VALUE_MAX_BYTES","textSchema","shortTextSchema","serializedJsonSchema","refine","isSerializedJson","message","getTriggerEventInputSchema","object","event_id","strict","getTriggerEventFacetsInputSchema","triggerOriginSchema","enum","triggerOutcomeSchema","triggerDecisionOutcomeSchema","triggerDecisionSchema","id","subscription_kind","outcome","reason","nullable","workflow_definition_id","project_id","workflow_run_id","job_id","triggerReplaySchema","created_at","getTriggerEventResultSchema","origin","provider","source","event","matched_count","number","int","nonnegative","connection_id","connection_name","replay_of_event_id","received_at","processed_at","payload_preview","payload_preview_truncated","literal","optional","payload_preview_total_bytes","decisions","array","max","decisions_truncated","decisions_total_count","replays","replays_truncated","replays_total_count","facetSchema","value","count","getTriggerEventFacetsResultSchema","sources","events","origins","uuid","type","format","dateTime","text","maxLength","shortText","serializedJson","contentMediaType","schema","anyOf","getTriggerEventInputJsonSchema","properties","required","additionalProperties","JSON","parse","getTriggerEventFacetsInputJsonSchema","triggerDecisionJsonSchema","triggerReplayJsonSchema","getTriggerEventResultJsonSchema","minimum","const","maxItems","items","facetJsonSchema","getTriggerEventFacetsResultJsonSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,SACEC,sCAAsC,EACtCC,2BAA2B,QACtB,mBAAmB;AAC1B,SAAQC,cAAc,EAAEC,QAAQ,EAAEC,gBAAgB,QAAO,kBAAkB;AAE3E,OAAO,MAAMC,yCAAyC,KAAK,KAAK;AAChE,OAAO,MAAMC,0CAA0C,GAAG;AAC1D,OAAO,MAAMC,wCAAwC,GAAG;AACxD,OAAO,MAAMC,+BAA+B,GAAG;AAC/C,OAAO,MAAMC,qCAAqC,IAAI;AAEtD,MAAMC,aAAaN,iBAAiBH;AACpC,MAAMU,kBAAkBP,iBAAiBJ;AACzC,MAAMY,uBAAuBR,iBAAiBC,wCAAwCQ,MAAM,CAC1FC,kBACA;IAACC,SAAS;AAA2C;AAGvD,OAAO,MAAMC,6BAA6BjB,EAAEkB,MAAM,CAAC;IAACC,UAAUf;AAAQ,GAAGgB,MAAM,GAAG;AAElF,OAAO,MAAMC,mCAAmCrB,EAAEkB,MAAM,CAAC,CAAC,GAAGE,MAAM,GAAG;AAKtE,MAAME,sBAAsBtB,EAAEuB,IAAI,CAAC;IAAC;IAAe;IAAU;IAAQ;CAAM;AAC3E,MAAMC,uBAAuBxB,EAAEuB,IAAI,CAAC;IAAC;IAAY;IAAU;IAAa;I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B;YAACiB,MAAM;YAAWoB,SAAS;QAAC;QACzDpC,WAAW;YACTgB,MAAM;YACNsB,UAAUxF;YACVyF,OAAON;QACT;QACA9B,qBAAqB;YAACkC,OAAO;QAAI;QACjCjC,uBAAuB;YAACY,MAAM;YAAWoB,SAAS;QAAC;QACnD/B,SAAS;YACPW,MAAM;YACNsB,UAAUvF;YACVwF,OAAOL;QACT;QACA5B,mBAAmB;YAAC+B,OAAO;QAAI;QAC/B9B,qBAAqB;YAACS,MAAM;YAAWoB,SAAS;QAAC;IACnD;IACAR,UAAU;QACR;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACDC,sBAAsB;AACxB,EAA6C;AAE7C,MAAMW,kBAAkB;IACtBxB,MAAM;IACNW,YAAY;QACVlB,OAAO;YAACO,MAAM;YAAUI,WAAWnE;QAAkC;QACrEyD,OAAO;YAACM,MAAM;YAAWoB,SAAS;QAAC;IACrC;IACAR,UAAU;QAAC;QAAS;KAAQ;IAC5BC,sBAAsB;AACxB;AAEA,OAAO,MAAMY,wCAAwC;IACnDzB,MAAM;IACNW,YAAY;QACVf,SAAS;YACPI,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;QACA3B,QAAQ;YACNG,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;QACA1B,SAAS;YACPE,MAAM;YACNsB,UAAUtF;YACVuF,OAAOC;QACT;IACF;IACAZ,UAAU;QAAC;QAAW;QAAU;KAAU;IAC1CC,sBAAsB;AACxB,EAA6C"}
@@ -0,0 +1,215 @@
1
+ import { z } from 'zod';
2
+ export declare const AGENT_ACCESS_LOG_CONTENT_MAX_BYTES: number;
3
+ export declare const AGENT_ACCESS_LOG_SECTION_MAX_ITEMS = 10;
4
+ export declare const AGENT_ACCESS_LOG_TAIL_LINES_DEFAULT = 500;
5
+ export declare const AGENT_ACCESS_LOG_TAIL_LINES_MAX = 2000;
6
+ export declare const AGENT_ACCESS_LOG_ATTEMPT_MAX = 2147483647;
7
+ export declare const getStepLogsInputSchema: z.ZodObject<{
8
+ step_id: z.ZodOptional<z.ZodString>;
9
+ run_id: z.ZodOptional<z.ZodString>;
10
+ attempt: z.ZodOptional<z.ZodNumber>;
11
+ failed_only: z.ZodOptional<z.ZodLiteral<true>>;
12
+ tail_lines: z.ZodDefault<z.ZodNumber>;
13
+ }, z.core.$strict>;
14
+ export type GetStepLogsInputDto = z.output<typeof getStepLogsInputSchema>;
15
+ export declare const getStepLogsResultSchema: z.ZodObject<{
16
+ run_id: z.ZodOptional<z.ZodString>;
17
+ workflow_run_attempt: z.ZodOptional<z.ZodNumber>;
18
+ sections: z.ZodArray<z.ZodObject<{
19
+ workflow_run_id: z.ZodOptional<z.ZodString>;
20
+ workflow_run_attempt: z.ZodOptional<z.ZodNumber>;
21
+ job_id: z.ZodOptional<z.ZodString>;
22
+ job_execution_id: z.ZodOptional<z.ZodString>;
23
+ step_id: z.ZodString;
24
+ step_attempt_id: z.ZodOptional<z.ZodString>;
25
+ attempt: z.ZodNumber;
26
+ content: z.ZodString;
27
+ total_lines: z.ZodOptional<z.ZodNumber>;
28
+ content_truncated: z.ZodOptional<z.ZodLiteral<true>>;
29
+ content_total_bytes: z.ZodOptional<z.ZodNumber>;
30
+ }, z.core.$strict>>;
31
+ }, z.core.$strict>;
32
+ export type GetStepLogsResultDto = z.output<typeof getStepLogsResultSchema>;
33
+ export declare const getStepLogsInputJsonSchema: {
34
+ readonly type: 'object';
35
+ readonly oneOf: readonly [{
36
+ readonly type: 'object';
37
+ readonly properties: {
38
+ readonly step_id: {
39
+ readonly type: 'string';
40
+ readonly format: 'uuid';
41
+ };
42
+ readonly attempt: {
43
+ readonly type: 'integer';
44
+ readonly minimum: 1;
45
+ readonly maximum: 2147483647;
46
+ };
47
+ readonly tail_lines: {
48
+ readonly type: 'integer';
49
+ readonly minimum: 1;
50
+ readonly maximum: 2000;
51
+ readonly default: 500;
52
+ };
53
+ };
54
+ readonly required: readonly ['step_id'];
55
+ readonly additionalProperties: false;
56
+ }, {
57
+ readonly type: 'object';
58
+ readonly properties: {
59
+ readonly run_id: {
60
+ readonly type: 'string';
61
+ readonly format: 'uuid';
62
+ };
63
+ readonly failed_only: {
64
+ readonly const: true;
65
+ };
66
+ readonly tail_lines: {
67
+ readonly type: 'integer';
68
+ readonly minimum: 1;
69
+ readonly maximum: 2000;
70
+ readonly default: 500;
71
+ };
72
+ };
73
+ readonly required: readonly ['run_id', 'failed_only'];
74
+ readonly additionalProperties: false;
75
+ }];
76
+ };
77
+ export declare const getStepLogsResultJsonSchema: {
78
+ readonly type: 'object';
79
+ readonly oneOf: readonly [{
80
+ readonly type: 'object';
81
+ readonly properties: {
82
+ readonly sections: {
83
+ readonly type: 'array';
84
+ readonly minItems: 1;
85
+ readonly maxItems: 1;
86
+ readonly items: {
87
+ readonly type: 'object';
88
+ readonly properties: {
89
+ readonly workflow_run_id: {
90
+ readonly type: 'string';
91
+ readonly format: 'uuid';
92
+ };
93
+ readonly workflow_run_attempt: {
94
+ readonly type: 'integer';
95
+ readonly minimum: 1;
96
+ readonly maximum: 2147483647;
97
+ };
98
+ readonly job_id: {
99
+ readonly type: 'string';
100
+ readonly format: 'uuid';
101
+ };
102
+ readonly job_execution_id: {
103
+ readonly type: 'string';
104
+ readonly format: 'uuid';
105
+ };
106
+ readonly step_id: {
107
+ readonly type: 'string';
108
+ readonly format: 'uuid';
109
+ };
110
+ readonly step_attempt_id: {
111
+ readonly type: 'string';
112
+ readonly format: 'uuid';
113
+ };
114
+ readonly attempt: {
115
+ readonly type: 'integer';
116
+ readonly minimum: 1;
117
+ readonly maximum: 2147483647;
118
+ };
119
+ readonly content: {
120
+ readonly type: 'string';
121
+ readonly maxLength: number;
122
+ };
123
+ readonly total_lines: {
124
+ readonly type: 'integer';
125
+ readonly minimum: 0;
126
+ };
127
+ readonly content_truncated: {
128
+ readonly const: true;
129
+ };
130
+ readonly content_total_bytes: {
131
+ readonly type: 'integer';
132
+ readonly minimum: 0;
133
+ };
134
+ };
135
+ readonly required: readonly ['step_id', 'attempt', 'content'];
136
+ readonly additionalProperties: false;
137
+ };
138
+ };
139
+ };
140
+ readonly required: readonly ['sections'];
141
+ readonly additionalProperties: false;
142
+ }, {
143
+ readonly type: 'object';
144
+ readonly properties: {
145
+ readonly run_id: {
146
+ readonly type: 'string';
147
+ readonly format: 'uuid';
148
+ };
149
+ readonly workflow_run_attempt: {
150
+ readonly type: 'integer';
151
+ readonly minimum: 1;
152
+ readonly maximum: 2147483647;
153
+ };
154
+ readonly sections: {
155
+ readonly type: 'array';
156
+ readonly maxItems: 10;
157
+ readonly items: {
158
+ readonly type: 'object';
159
+ readonly properties: {
160
+ readonly workflow_run_id: {
161
+ readonly type: 'string';
162
+ readonly format: 'uuid';
163
+ };
164
+ readonly workflow_run_attempt: {
165
+ readonly type: 'integer';
166
+ readonly minimum: 1;
167
+ readonly maximum: 2147483647;
168
+ };
169
+ readonly job_id: {
170
+ readonly type: 'string';
171
+ readonly format: 'uuid';
172
+ };
173
+ readonly job_execution_id: {
174
+ readonly type: 'string';
175
+ readonly format: 'uuid';
176
+ };
177
+ readonly step_id: {
178
+ readonly type: 'string';
179
+ readonly format: 'uuid';
180
+ };
181
+ readonly step_attempt_id: {
182
+ readonly type: 'string';
183
+ readonly format: 'uuid';
184
+ };
185
+ readonly attempt: {
186
+ readonly type: 'integer';
187
+ readonly minimum: 1;
188
+ readonly maximum: 2147483647;
189
+ };
190
+ readonly content: {
191
+ readonly type: 'string';
192
+ readonly maxLength: number;
193
+ };
194
+ readonly total_lines: {
195
+ readonly type: 'integer';
196
+ readonly minimum: 0;
197
+ };
198
+ readonly content_truncated: {
199
+ readonly const: true;
200
+ };
201
+ readonly content_total_bytes: {
202
+ readonly type: 'integer';
203
+ readonly minimum: 0;
204
+ };
205
+ };
206
+ readonly required: readonly ['step_id', 'attempt', 'content'];
207
+ readonly additionalProperties: false;
208
+ };
209
+ };
210
+ };
211
+ readonly required: readonly ['run_id', 'workflow_run_attempt', 'sections'];
212
+ readonly additionalProperties: false;
213
+ }];
214
+ };
215
+ //# sourceMappingURL=log-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-tools.d.ts","sourceRoot":"","sources":["../../src/schemas/log-tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,kCAAkC,QAAY,CAAC;AAC5D,eAAO,MAAM,kCAAkC,KAAK,CAAC;AACrD,eAAO,MAAM,mCAAmC,MAA8B,CAAC;AAC/E,eAAO,MAAM,+BAA+B,OAA0B,CAAC;AACvE,eAAO,MAAM,4BAA4B,aAAgB,CAAC;AAW1D,eAAO,MAAM,sBAAsB;;;;;;kBAyCxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAkB1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;kBAyBzB,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAyC5E,eAAO,MAAM,0BAA0B;mBAC/B,QAAQ;;uBAhCR,QAAQ;;;+BARI,QAAQ;iCAAU,MAAM;;;+BAEpC,SAAS;kCACN,CAAC;;;;yBAUN,IAAI,EAAE,SAAS;yBACf,OAAO,EAAE,CAAC;yBACV,OAAO;yBACP,OAAO;;;qCAGA,SAAS;;;uBAKd,QAAQ;;qBAEZ,MAAM;;;;qBACN,WAAW;yBAAG,KAAK;;qBACnB,UAAU;yBACR,IAAI,EAAE,SAAS;yBACf,OAAO,EAAE,CAAC;yBACV,OAAO;yBACP,OAAO;;;qCAGA,QAAQ,EAAE,aAAa;;;CAOQ,CAAC;AAkD7C,eAAO,MAAM,2BAA2B;mBAChC,QAAQ;;uBA7BR,QAAQ;;qBAEZ,QAAQ;yBACN,IAAI,EAAE,OAAO;yBACb,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