@shipfox/api-agent-access-dto 21.1.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/diagnostic-tools.d.ts +3 -1
- package/dist/schemas/diagnostic-tools.d.ts.map +1 -1
- package/dist/schemas/diagnostic-tools.js +6 -2
- package/dist/schemas/diagnostic-tools.js.map +1 -1
- package/dist/schemas/workflow-execution-events.d.ts +272 -0
- package/dist/schemas/workflow-execution-events.d.ts.map +1 -0
- package/dist/schemas/workflow-execution-events.js +250 -0
- package/dist/schemas/workflow-execution-events.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +17 -0
- package/src/schemas/diagnostic-tools.test.ts +43 -0
- package/src/schemas/diagnostic-tools.ts +11 -2
- package/src/schemas/workflow-execution-events.test.ts +126 -0
- package/src/schemas/workflow-execution-events.ts +217 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled:
|
|
2
|
+
Successfully compiled: 9 files with swc (264.48ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 21.1.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { AGENT_ACCESS_ERROR_CODE_MAX_LENGTH, AGENT_ACCESS_ERROR_MESSAGE_MAX_LENG
|
|
|
3
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';
|
|
4
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
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';
|
|
6
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';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACnC,+BAA+B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sCA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C,EACrC,KAAK,iCAAiC,EACtC,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
|
@@ -3,6 +3,7 @@ export { AGENT_ACCESS_ERROR_CODE_MAX_LENGTH, AGENT_ACCESS_ERROR_MESSAGE_MAX_LENG
|
|
|
3
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';
|
|
4
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
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';
|
|
6
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';
|
|
7
8
|
|
|
8
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_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_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_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"],"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;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,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"}
|
|
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","listWorkflowStepA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tCC,2CAA2C,EAC3CC,uCAAuC,EACvCC,mCAAmC,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;AAQtB,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;AAStD,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;
|
|
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;AAQtB,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,e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;iCAAE,SAAS;;6BACjC,KAAK;iCAAG,IAAI,EAAE,SAAS;iCAAE,OAAO,EAAE,CAAC;;;6CAE1B,OAAO,EAAE,OAAO;;;;iBAYzB,MAAM;qBACJ,IAAI,EAAE,OAAO;qBACb,QAAQ;qBACR,KAAK;;;;;;;;;;;;;;;;iBAEP,OAAO;qBACL,IAAI,EAAE,OAAO;qBACb,QAAQ;qBACR,KAAK;;;;;;;;;;;;;;;;;;;CAKiC,CAAC"}
|
|
@@ -30,8 +30,10 @@ const triggerOutcomeSchema = z.enum([
|
|
|
30
30
|
]);
|
|
31
31
|
const triggerDecisionOutcomeSchema = z.enum([
|
|
32
32
|
'triggered',
|
|
33
|
+
'filtered',
|
|
33
34
|
'filter-error',
|
|
34
|
-
'dispatch-error'
|
|
35
|
+
'dispatch-error',
|
|
36
|
+
'rejected'
|
|
35
37
|
]);
|
|
36
38
|
const triggerDecisionSchema = z.object({
|
|
37
39
|
id: idSchema,
|
|
@@ -152,8 +154,10 @@ const triggerDecisionJsonSchema = {
|
|
|
152
154
|
type: 'string',
|
|
153
155
|
enum: [
|
|
154
156
|
'triggered',
|
|
157
|
+
'filtered',
|
|
155
158
|
'filter-error',
|
|
156
|
-
'dispatch-error'
|
|
159
|
+
'dispatch-error',
|
|
160
|
+
'rejected'
|
|
157
161
|
]
|
|
158
162
|
},
|
|
159
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';\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(['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","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;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B,iBAAiB2B;QACjB1B,2BAA2B;YAACyC,OAAO;QAAI;QACvCtC,6BAA6B;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"}
|
|
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,6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AAU;IAC1CC,sBAAsB;AACxB,EAA6C"}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Default page size for one execution's listener-event history. */
|
|
3
|
+
export declare const AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_LIMIT = 25;
|
|
4
|
+
/** Maximum number of execution listener-event summaries in one page. */
|
|
5
|
+
export declare const AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PAGE_MAX = 100;
|
|
6
|
+
/** Maximum serialized UTF-8 size of one untrusted payload preview. */
|
|
7
|
+
export declare const AGENT_ACCESS_EXECUTION_TRIGGER_EVENT_PREVIEW_MAX_BYTES: number;
|
|
8
|
+
export declare const listExecutionTriggerEventsInputSchema: z.ZodObject<{
|
|
9
|
+
job_id: z.ZodString;
|
|
10
|
+
execution_id: z.ZodString;
|
|
11
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export declare const getExecutionTriggerEventInputSchema: z.ZodObject<{
|
|
15
|
+
job_id: z.ZodString;
|
|
16
|
+
execution_id: z.ZodString;
|
|
17
|
+
event_ref: z.ZodString;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export type ListExecutionTriggerEventsInputDto = z.output<typeof listExecutionTriggerEventsInputSchema>;
|
|
20
|
+
export type GetExecutionTriggerEventInputDto = z.output<typeof getExecutionTriggerEventInputSchema>;
|
|
21
|
+
export declare const listExecutionTriggerEventsResultSchema: z.ZodObject<{
|
|
22
|
+
job_id: z.ZodString;
|
|
23
|
+
execution_id: z.ZodString;
|
|
24
|
+
trigger_events: z.ZodArray<z.ZodObject<{
|
|
25
|
+
event_ref: z.ZodString;
|
|
26
|
+
delivery_id: z.ZodString;
|
|
27
|
+
source: z.ZodString;
|
|
28
|
+
event: z.ZodString;
|
|
29
|
+
disposition: z.ZodEnum<{
|
|
30
|
+
fire: "fire";
|
|
31
|
+
resolve: "resolve";
|
|
32
|
+
}>;
|
|
33
|
+
outcome: z.ZodEnum<{
|
|
34
|
+
abandoned: "abandoned";
|
|
35
|
+
consumed: "consumed";
|
|
36
|
+
honored: "honored";
|
|
37
|
+
pending: "pending";
|
|
38
|
+
rejected: "rejected";
|
|
39
|
+
}>;
|
|
40
|
+
outcome_reason: z.ZodNullable<z.ZodEnum<{
|
|
41
|
+
cancelled: "cancelled";
|
|
42
|
+
max_executions: "max_executions";
|
|
43
|
+
payload_too_large: "payload_too_large";
|
|
44
|
+
timeout: "timeout";
|
|
45
|
+
until: "until";
|
|
46
|
+
}>>;
|
|
47
|
+
received_at: z.ZodString;
|
|
48
|
+
stored_payload_bytes: z.ZodNumber;
|
|
49
|
+
normalized_event_bytes: z.ZodNumber;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
52
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type ListExecutionTriggerEventsResultDto = z.infer<typeof listExecutionTriggerEventsResultSchema>;
|
|
55
|
+
export declare const getExecutionTriggerEventResultSchema: z.ZodObject<{
|
|
56
|
+
event_ref: z.ZodString;
|
|
57
|
+
delivery_id: z.ZodString;
|
|
58
|
+
source: z.ZodString;
|
|
59
|
+
event: z.ZodString;
|
|
60
|
+
disposition: z.ZodEnum<{
|
|
61
|
+
fire: "fire";
|
|
62
|
+
resolve: "resolve";
|
|
63
|
+
}>;
|
|
64
|
+
outcome: z.ZodEnum<{
|
|
65
|
+
abandoned: "abandoned";
|
|
66
|
+
consumed: "consumed";
|
|
67
|
+
honored: "honored";
|
|
68
|
+
pending: "pending";
|
|
69
|
+
rejected: "rejected";
|
|
70
|
+
}>;
|
|
71
|
+
outcome_reason: z.ZodNullable<z.ZodEnum<{
|
|
72
|
+
cancelled: "cancelled";
|
|
73
|
+
max_executions: "max_executions";
|
|
74
|
+
payload_too_large: "payload_too_large";
|
|
75
|
+
timeout: "timeout";
|
|
76
|
+
until: "until";
|
|
77
|
+
}>>;
|
|
78
|
+
received_at: z.ZodString;
|
|
79
|
+
stored_payload_bytes: z.ZodNumber;
|
|
80
|
+
normalized_event_bytes: z.ZodNumber;
|
|
81
|
+
payload_preview: z.ZodNullable<z.ZodString>;
|
|
82
|
+
payload_preview_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
83
|
+
payload_preview_total_bytes: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export type GetExecutionTriggerEventResultDto = z.infer<typeof getExecutionTriggerEventResultSchema>;
|
|
86
|
+
export declare const listExecutionTriggerEventsInputJsonSchema: {
|
|
87
|
+
readonly type: 'object';
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly job_id: {
|
|
90
|
+
readonly type: 'string';
|
|
91
|
+
readonly format: 'uuid';
|
|
92
|
+
};
|
|
93
|
+
readonly execution_id: {
|
|
94
|
+
readonly type: 'string';
|
|
95
|
+
readonly format: 'uuid';
|
|
96
|
+
};
|
|
97
|
+
readonly limit: {
|
|
98
|
+
readonly type: 'integer';
|
|
99
|
+
readonly minimum: 1;
|
|
100
|
+
readonly maximum: 100;
|
|
101
|
+
readonly default: 25;
|
|
102
|
+
};
|
|
103
|
+
readonly cursor: {
|
|
104
|
+
readonly type: 'string';
|
|
105
|
+
readonly minLength: 1;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly required: readonly ["job_id", "execution_id"];
|
|
109
|
+
readonly additionalProperties: false;
|
|
110
|
+
};
|
|
111
|
+
export declare const getExecutionTriggerEventInputJsonSchema: {
|
|
112
|
+
readonly type: 'object';
|
|
113
|
+
readonly properties: {
|
|
114
|
+
readonly job_id: {
|
|
115
|
+
readonly type: 'string';
|
|
116
|
+
readonly format: 'uuid';
|
|
117
|
+
};
|
|
118
|
+
readonly execution_id: {
|
|
119
|
+
readonly type: 'string';
|
|
120
|
+
readonly format: 'uuid';
|
|
121
|
+
};
|
|
122
|
+
readonly event_ref: {
|
|
123
|
+
readonly type: 'string';
|
|
124
|
+
readonly minLength: 1;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly required: readonly ["job_id", "execution_id", "event_ref"];
|
|
128
|
+
readonly additionalProperties: false;
|
|
129
|
+
};
|
|
130
|
+
export declare const listExecutionTriggerEventsResultJsonSchema: {
|
|
131
|
+
readonly type: 'object';
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly job_id: {
|
|
134
|
+
readonly type: 'string';
|
|
135
|
+
readonly format: 'uuid';
|
|
136
|
+
};
|
|
137
|
+
readonly execution_id: {
|
|
138
|
+
readonly type: 'string';
|
|
139
|
+
readonly format: 'uuid';
|
|
140
|
+
};
|
|
141
|
+
readonly trigger_events: {
|
|
142
|
+
readonly type: 'array';
|
|
143
|
+
readonly maxItems: 100;
|
|
144
|
+
readonly items: {
|
|
145
|
+
readonly type: 'object';
|
|
146
|
+
readonly properties: {
|
|
147
|
+
readonly event_ref: {
|
|
148
|
+
readonly type: 'string';
|
|
149
|
+
readonly minLength: 1;
|
|
150
|
+
};
|
|
151
|
+
readonly delivery_id: {
|
|
152
|
+
readonly type: 'string';
|
|
153
|
+
readonly maxLength: 512;
|
|
154
|
+
};
|
|
155
|
+
readonly source: {
|
|
156
|
+
readonly type: 'string';
|
|
157
|
+
readonly maxLength: 512;
|
|
158
|
+
};
|
|
159
|
+
readonly event: {
|
|
160
|
+
readonly type: 'string';
|
|
161
|
+
readonly maxLength: 512;
|
|
162
|
+
};
|
|
163
|
+
readonly disposition: {
|
|
164
|
+
readonly type: 'string';
|
|
165
|
+
readonly enum: readonly ['fire', 'resolve'];
|
|
166
|
+
};
|
|
167
|
+
readonly outcome: {
|
|
168
|
+
readonly type: 'string';
|
|
169
|
+
readonly enum: readonly ['pending', 'consumed', 'honored', 'rejected', 'abandoned'];
|
|
170
|
+
};
|
|
171
|
+
readonly outcome_reason: {
|
|
172
|
+
readonly anyOf: readonly [{
|
|
173
|
+
readonly type: 'string';
|
|
174
|
+
readonly enum: readonly ['payload_too_large', 'until', 'timeout', 'max_executions', 'cancelled'];
|
|
175
|
+
}, {
|
|
176
|
+
readonly type: 'null';
|
|
177
|
+
}];
|
|
178
|
+
};
|
|
179
|
+
readonly received_at: {
|
|
180
|
+
readonly type: 'string';
|
|
181
|
+
readonly format: 'date-time';
|
|
182
|
+
};
|
|
183
|
+
readonly stored_payload_bytes: {
|
|
184
|
+
readonly type: 'integer';
|
|
185
|
+
readonly minimum: 0;
|
|
186
|
+
};
|
|
187
|
+
readonly normalized_event_bytes: {
|
|
188
|
+
readonly type: 'integer';
|
|
189
|
+
readonly minimum: 0;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly required: readonly ['event_ref', 'delivery_id', 'source', 'event', 'disposition', 'outcome', 'outcome_reason', 'received_at', 'stored_payload_bytes', 'normalized_event_bytes'];
|
|
193
|
+
readonly additionalProperties: false;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly next_cursor: {
|
|
197
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
198
|
+
readonly type: 'null';
|
|
199
|
+
}];
|
|
200
|
+
};
|
|
201
|
+
readonly total: {
|
|
202
|
+
readonly type: 'integer';
|
|
203
|
+
readonly minimum: 0;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly required: readonly ["job_id", "execution_id", "trigger_events", "next_cursor"];
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
};
|
|
209
|
+
export declare const getExecutionTriggerEventResultJsonSchema: {
|
|
210
|
+
readonly type: 'object';
|
|
211
|
+
readonly additionalProperties: false;
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly event_ref: {
|
|
214
|
+
readonly type: 'string';
|
|
215
|
+
readonly minLength: 1;
|
|
216
|
+
};
|
|
217
|
+
readonly delivery_id: {
|
|
218
|
+
readonly type: 'string';
|
|
219
|
+
readonly maxLength: 512;
|
|
220
|
+
};
|
|
221
|
+
readonly source: {
|
|
222
|
+
readonly type: 'string';
|
|
223
|
+
readonly maxLength: 512;
|
|
224
|
+
};
|
|
225
|
+
readonly event: {
|
|
226
|
+
readonly type: 'string';
|
|
227
|
+
readonly maxLength: 512;
|
|
228
|
+
};
|
|
229
|
+
readonly disposition: {
|
|
230
|
+
readonly type: 'string';
|
|
231
|
+
readonly enum: readonly ['fire', 'resolve'];
|
|
232
|
+
};
|
|
233
|
+
readonly outcome: {
|
|
234
|
+
readonly type: 'string';
|
|
235
|
+
readonly enum: readonly ['pending', 'consumed', 'honored', 'rejected', 'abandoned'];
|
|
236
|
+
};
|
|
237
|
+
readonly outcome_reason: {
|
|
238
|
+
readonly anyOf: readonly [{
|
|
239
|
+
readonly type: 'string';
|
|
240
|
+
readonly enum: readonly ['payload_too_large', 'until', 'timeout', 'max_executions', 'cancelled'];
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: 'null';
|
|
243
|
+
}];
|
|
244
|
+
};
|
|
245
|
+
readonly received_at: {
|
|
246
|
+
readonly type: 'string';
|
|
247
|
+
readonly format: 'date-time';
|
|
248
|
+
};
|
|
249
|
+
readonly stored_payload_bytes: {
|
|
250
|
+
readonly type: 'integer';
|
|
251
|
+
readonly minimum: 0;
|
|
252
|
+
};
|
|
253
|
+
readonly normalized_event_bytes: {
|
|
254
|
+
readonly type: 'integer';
|
|
255
|
+
readonly minimum: 0;
|
|
256
|
+
};
|
|
257
|
+
readonly payload_preview: {
|
|
258
|
+
readonly anyOf: readonly [Record<string, unknown>, {
|
|
259
|
+
readonly type: 'null';
|
|
260
|
+
}];
|
|
261
|
+
};
|
|
262
|
+
readonly payload_preview_truncated: {
|
|
263
|
+
readonly const: true;
|
|
264
|
+
};
|
|
265
|
+
readonly payload_preview_total_bytes: {
|
|
266
|
+
readonly type: 'integer';
|
|
267
|
+
readonly minimum: 0;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly required: readonly ["event_ref", "delivery_id", "source", "event", "disposition", "outcome", "outcome_reason", "received_at", "stored_payload_bytes", "normalized_event_bytes", "payload_preview"];
|
|
271
|
+
};
|
|
272
|
+
//# sourceMappingURL=workflow-execution-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-execution-events.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-execution-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,oEAAoE;AACpE,eAAO,MAAM,+CAA+C,KAAK,CAAC;AAElE,wEAAwE;AACxE,eAAO,MAAM,6CAA6C,MAA8B,CAAC;AAEzF,sEAAsE;AACtE,eAAO,MAAM,sDAAsD,QAAY,CAAC;AAmChF,eAAO,MAAM,qCAAqC;;;;;kBAYvC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;kBAMrC,CAAC;AAEZ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CACvD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEpG,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUxC,CAAC;AAEZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOtC,CAAC;AAEZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,oCAAoC,CAC5C,CAAC;AAaF,eAAO,MAAM,yCAAyC;mBAC9C,QAAQ;;iBAEZ,MAAM;2BAdU,QAAQ;6BAAU,MAAM;;iBAexC,YAAY;;;;iBACZ,KAAK;qBACH,IAAI,EAAE,SAAS;qBACf,OAAO,EAAE,CAAC;qBACV,OAAO;qBACP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