@ablehi/server-execution-contract 0.3.6 → 0.3.7

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/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { C as ContractParseResult, W as WorkflowExecutionGeneration, E as ExecutionLease } from './action-transform-D9pBy-mj.js';
1
+ import { C as ContractParseResult, E as ExecutionLease, W as WorkflowExecutionGeneration } from './action-transform-D9pBy-mj.js';
2
2
  export { A as ACTION_TRANSFORM_ROUTE_SUBPATH, a as ACTION_TRANSFORM_SCHEMA_VERSION, b as AcquireExecutionLeaseData, c as AcquireExecutionLeaseRequest, d as ActionTransformData, e as ActionTransformFailureValue, f as ActionTransformOperation, g as ActionTransformRequest, h as EXECUTION_LEASE_INVALID, i as EXECUTION_LEASE_ROUTE_SUBPATH, j as EXECUTION_LEASE_SUPERSEDED, k as ExecutionAnchor, G as GenerationCallbackErrorCode, H as HUMAN_INPUT_CANCELLED_BY_RESET, R as RUN_DISPATCH_UNAVAILABLE, l as WAIT_EXECUTION_SUPERSEDED, m as WORKFLOW_RESTART_INSTANCE_UNAVAILABLE, n as WORKFLOW_RESTART_REJECTED, o as WORKFLOW_RESTART_REQUEST_INVALID, p as WORKFLOW_RESTART_ROUTE, q as WorkflowDispatchRestartRequest, r as WorkflowDispatchRestartResponse, s as WorkflowRestartErrorCode, t as acquireExecutionLeasePath, u as actionTransformIdempotencyIdentity, v as actionTransformPath, w as actionTransformValueDigest, x as parseAcquireExecutionLeaseData, y as parseAcquireExecutionLeaseRequest, z as parseActionTransformData, B as parseActionTransformRequest, D as parseExecutionAnchor, F as parseExecutionLease, I as parseWorkflowDispatchRestartRequest, J as parseWorkflowDispatchRestartResponse } from './action-transform-D9pBy-mj.js';
3
3
  import { FLOW_IR_SCHEMA_VERSION, FLOW_INTERPRETER_CONTRACT_VERSION, PublishedFlowDefinition, RuntimeHumanInputSpec } from '@ablehi/flow-contract';
4
4
  import { PackageToolDescriptor, InstalledIntegrationDescriptor } from '@ablehi/ais-package-contract/edge';
5
- import { AblehiErrorDigest } from '@ablehi/error-contract';
5
+ import { AblehiErrorDigest, RegisteredErrorCode } from '@ablehi/error-contract';
6
6
 
7
- declare const SERVER_EXECUTION_CONTRACT_VERSION = "0.5.0";
7
+ declare const SERVER_EXECUTION_CONTRACT_VERSION = "0.6.0";
8
8
  type ServerExecutionContractVersion = typeof SERVER_EXECUTION_CONTRACT_VERSION;
9
9
 
10
10
  declare const CONTEXT_STATE_CLEANUP_ROUTE_PATH = "/cleanup-state-scopes";
@@ -33,6 +33,157 @@ declare function parseContextStateScope(value: unknown): ContractParseResult<Con
33
33
  declare function parseContextStateCleanupRequestBody(body: unknown): ContractParseResult<ContextStateCleanupRequestBody>;
34
34
  declare function parseContextStateCleanupResponseData(data: unknown): ContractParseResult<ContextStateCleanupResponseData>;
35
35
 
36
+ declare const EXECUTION_PAYLOAD_REF_SCHEMA_VERSION = "execution.payload-ref.v1";
37
+ declare const EXECUTION_CONTEXT_MAX_BYTES = 4194304;
38
+ declare const EXECUTION_COMPILED_BOOTSTRAP_MAX_BYTES = 716800;
39
+ declare const EXECUTION_BOOTSTRAP_MAX_BYTES = 786432;
40
+ declare const EXECUTION_VALUE_MAX_BYTES = 8388608;
41
+ declare const EXECUTION_REF_CALLBACK_MAX_BYTES = 262144;
42
+ declare const RUN_INPUT_MAX_BYTES = 4194304;
43
+ declare const HUMAN_WAIT_EVENT_INPUT_MAX_BYTES = 8388608;
44
+ declare const PUBLIC_INGRESS_ENVELOPE_OVERHEAD_BYTES = 65536;
45
+ declare const EXECUTION_PAYLOAD_RESERVATION_TTL_SECONDS = 900;
46
+ declare const ACTION_INVOCATION_CLAIM_TTL_SECONDS = 600;
47
+ declare const EXECUTION_RELEASE_DRAIN_SECONDS = 120;
48
+ declare const EXECUTION_PAYLOAD_RESERVATIONS_ROUTE = "/internal/execution-payloads/reservations";
49
+ declare const EXECUTION_PAYLOAD_TRIGGER_RESULTS_RESOLVE_ROUTE = "/internal/execution-payloads/trigger-results/resolve";
50
+ declare const EXECUTION_PAYLOAD_KINDS: readonly ["execution_context", "trigger_context", "trigger_delivery", "run_input", "step_input", "node_output", "transform_value", "wait_event", "human_input", "trigger_events", "step_output", "flow_terminal_output"];
51
+ type ExecutionPayloadKind = (typeof EXECUTION_PAYLOAD_KINDS)[number];
52
+ type ExecutionPayloadDigest = {
53
+ algorithm: "sha256";
54
+ value: string;
55
+ };
56
+ type ExecutionPayloadRef = {
57
+ schemaVersion: typeof EXECUTION_PAYLOAD_REF_SCHEMA_VERSION;
58
+ payloadRef: string;
59
+ kind: ExecutionPayloadKind;
60
+ digest: ExecutionPayloadDigest;
61
+ byteSize: number;
62
+ contentType: "application/json";
63
+ };
64
+ type ExecutionPayloadAuthority = {
65
+ kind: "run";
66
+ executionLease: ExecutionLease;
67
+ } | {
68
+ kind: "webhook_watcher";
69
+ triggerInstanceId: string;
70
+ watcherInstanceId: string;
71
+ watcherGeneration: number;
72
+ artifactDigest: string;
73
+ } | {
74
+ kind: "polling_tick";
75
+ pollingInstanceId: string;
76
+ tickId: string;
77
+ artifactDigest: string;
78
+ };
79
+ type ExecutionPayloadOwner = {
80
+ kind: "run";
81
+ phase: "execution_context" | "run_input" | "terminal_output";
82
+ } | {
83
+ kind: "node";
84
+ nodeId: string;
85
+ attempt: number;
86
+ phase: "provider_output";
87
+ invocationId: string;
88
+ claimEpoch: number;
89
+ } | {
90
+ kind: "node";
91
+ nodeId: string;
92
+ attempt: number;
93
+ phase: "mapped_input" | "success_transform" | "error_transform" | "step_output";
94
+ invocationId: string | null;
95
+ claimEpoch: null;
96
+ } | {
97
+ kind: "event";
98
+ nodeId: string;
99
+ eventId: string;
100
+ eventType: "wait_event" | "human_input";
101
+ } | {
102
+ kind: "webhook";
103
+ phase: "watcher_context" | "delivery_input" | "delivery_events";
104
+ deliveryId: string | null;
105
+ } | {
106
+ kind: "polling";
107
+ phase: "tick_context" | "tick_events";
108
+ };
109
+ type CreateExecutionPayloadReservationRequest = {
110
+ authority: ExecutionPayloadAuthority;
111
+ kind: ExecutionPayloadKind;
112
+ digest: ExecutionPayloadDigest;
113
+ byteSize: number;
114
+ contentType: "application/json";
115
+ owner: ExecutionPayloadOwner;
116
+ };
117
+ type CommitExecutionPayloadRequest = {
118
+ authority: ExecutionPayloadAuthority;
119
+ digest: ExecutionPayloadDigest;
120
+ byteSize: number;
121
+ };
122
+ type CreateExecutionPayloadAccessRequest = {
123
+ authority: ExecutionPayloadAuthority;
124
+ intent: "runtime-read";
125
+ };
126
+ type TriggerExecutionPayloadAuthority = Extract<ExecutionPayloadAuthority, {
127
+ kind: "webhook_watcher" | "polling_tick";
128
+ }>;
129
+ type TriggerEventsOwner = {
130
+ kind: "webhook";
131
+ phase: "delivery_events";
132
+ deliveryId: string;
133
+ } | {
134
+ kind: "polling";
135
+ phase: "tick_events";
136
+ };
137
+ type ResolveCommittedTriggerPayloadRequest = {
138
+ authority: TriggerExecutionPayloadAuthority;
139
+ owner: TriggerEventsOwner;
140
+ };
141
+ type CreateExecutionPayloadReservationData = {
142
+ disposition: "upload";
143
+ reservationId: string;
144
+ upload: {
145
+ method: "PUT";
146
+ url: string;
147
+ headers: Record<string, string>;
148
+ expiresAt: string;
149
+ };
150
+ } | {
151
+ disposition: "reuse";
152
+ payload: ExecutionPayloadRef;
153
+ };
154
+ type CommitExecutionPayloadData = {
155
+ payload: ExecutionPayloadRef;
156
+ status: "committed";
157
+ };
158
+ type CreateExecutionPayloadAccessData = {
159
+ payload: ExecutionPayloadRef;
160
+ access: {
161
+ method: "GET";
162
+ url: string;
163
+ headers: Record<string, string>;
164
+ expiresAt: string;
165
+ };
166
+ };
167
+ type ResolveCommittedTriggerPayloadData = {
168
+ disposition: "committed";
169
+ payload: ExecutionPayloadRef;
170
+ } | {
171
+ disposition: "missing";
172
+ };
173
+ declare function executionPayloadCommitPath(reservationId: string): string;
174
+ declare function executionPayloadAccessPath(payloadRef: string): string;
175
+ declare function executionPayloadMaxBytes(kind: ExecutionPayloadKind): number;
176
+ declare function canonicalizeExecutionPayload(value: unknown): string;
177
+ declare function parseExecutionPayloadRef(value: unknown): ContractParseResult<ExecutionPayloadRef>;
178
+ declare function parseCreateExecutionPayloadReservationRequest(value: unknown): ContractParseResult<CreateExecutionPayloadReservationRequest>;
179
+ declare function parseCommitExecutionPayloadRequest(value: unknown): ContractParseResult<CommitExecutionPayloadRequest>;
180
+ declare function parseCreateExecutionPayloadAccessRequest(value: unknown): ContractParseResult<CreateExecutionPayloadAccessRequest>;
181
+ declare function parseResolveCommittedTriggerPayloadRequest(value: unknown): ContractParseResult<ResolveCommittedTriggerPayloadRequest>;
182
+ declare function parseCreateExecutionPayloadReservationData(value: unknown): ContractParseResult<CreateExecutionPayloadReservationData>;
183
+ declare function parseCommitExecutionPayloadData(value: unknown): ContractParseResult<CommitExecutionPayloadData>;
184
+ declare function parseCreateExecutionPayloadAccessData(value: unknown): ContractParseResult<CreateExecutionPayloadAccessData>;
185
+ declare function parseResolveCommittedTriggerPayloadData(value: unknown): ContractParseResult<ResolveCommittedTriggerPayloadData>;
186
+
36
187
  declare const INTERNAL_FLOW_RUNS_ROUTE_PREFIX = "/internal/flow-runs";
37
188
  declare const EXECUTION_CONTEXT_ROUTE_SUBPATH = "/:flowRunId/execution-context";
38
189
  declare function executionContextPath(flowRunId: string): string;
@@ -86,14 +237,18 @@ type ExecutionContextCompiled = {
86
237
  type ExecutionContextData = {
87
238
  flowRunId: string;
88
239
  workspaceId: string;
89
- input: Record<string, unknown>;
90
240
  executionGeneration: WorkflowExecutionGeneration;
91
241
  compiled: ExecutionContextCompiled;
242
+ context: ExecutionPayloadRef;
243
+ };
244
+ type ExecutionContextPayloadData = {
245
+ input: ExecutionPayloadRef;
92
246
  executionBindings: ExecutionBinding[];
93
247
  fileRuntime: FlowExecutionContextFileRuntime;
94
248
  };
95
249
  declare function parseFileRuntimeLimits(value: unknown): ContractParseResult<FileRuntimeLimits>;
96
250
  declare function parseExecutionContextData(data: unknown): ContractParseResult<ExecutionContextData>;
251
+ declare function parseExecutionContextPayloadData(data: unknown): ContractParseResult<ExecutionContextPayloadData>;
97
252
 
98
253
  declare const STEP_RESULT_ROUTE_SUBPATH = "/:flowRunId/steps/:nodeId/result";
99
254
  declare const FLOW_RUN_RESULT_ROUTE_SUBPATH = "/:flowRunId/result";
@@ -107,7 +262,7 @@ declare function registerEventWaitPath(flowRunId: string, nodeId: string): strin
107
262
  declare function completeEventWaitPath(flowRunId: string, nodeId: string): string;
108
263
  type StepRecordResult = {
109
264
  status: "succeeded";
110
- output: unknown;
265
+ output: ExecutionPayloadRef;
111
266
  } | {
112
267
  status: "failed";
113
268
  error: AblehiErrorDigest;
@@ -142,7 +297,7 @@ declare function parseStepRecordData(data: unknown): ContractParseResult<StepRec
142
297
  type FlowRunResultRequestBody = {
143
298
  executionLease: ExecutionLease;
144
299
  status: "succeeded";
145
- output?: unknown;
300
+ output: ExecutionPayloadRef;
146
301
  } | {
147
302
  executionLease: ExecutionLease;
148
303
  status: "failed";
@@ -151,7 +306,7 @@ type FlowRunResultRequestBody = {
151
306
  type ParsedFlowRunResultBody = {
152
307
  executionLease: ExecutionLease;
153
308
  status: "succeeded" | "failed";
154
- output?: unknown;
309
+ output?: ExecutionPayloadRef;
155
310
  error?: AblehiErrorDigest;
156
311
  };
157
312
  declare function parseFlowRunResultBody(body: unknown): ContractParseResult<ParsedFlowRunResultBody>;
@@ -964,4 +1119,225 @@ type ServerExecutionErrorEnvelope = {
964
1119
  */
965
1120
  declare function parseServerExecutionErrorEnvelope(value: unknown): ContractParseResult<ServerExecutionErrorEnvelope>;
966
1121
 
967
- export { COMPLETE_EVENT_WAIT_ROUTE_SUBPATH, CONTEXT_STATE_CLEANUP_ROUTE_PATH, type CompleteFlowRunWaitBody, type CompleteFlowRunWaitData, type ContextStateCleanupRequestBody, type ContextStateCleanupResponseData, type ContextStateScope, type CreateHumanInputRequestBody, DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, DEPLOYMENT_HANDSHAKE_ROUTE, DISCOVERY_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, DISCOVERY_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type DeploymentHandshakeData, type DeploymentHandshakeRequestBody, type DeploymentHandshakeResponse, type DirectActionExecutionBinding, type DiscoveryDispatchBody, type DiscoveryEgressGrantBinding, type DiscoveryExecutionBinding, type DiscoveryGrantBody, type DiscoveryInvokeRequest, type DiscoveryRuntimeCredentialBinding, EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, EGRESS_GRANT_SCOPE_KINDS, EXECUTION_CONTEXT_ROUTE_SUBPATH, type EgressGrant, type EgressGrantAuditBody, type EgressGrantBodyParseResult, type EgressGrantConsumeBody, type EgressGrantCredentialMaterial, type EgressGrantFileRuntime, type EgressGrantScopeKind, type ExecutionBinding, type ExecutionBindingConnection, type ExecutionContextCompiled, type ExecutionContextData, ExecutionLease, FILE_ACCESS_ROUTE_SUBPATH, FILE_COMPLETE_ROUTE_SUBPATH, FILE_CONTENT_ROUTE_SUBPATH, FILE_STAT_ROUTE_SUBPATH, FILE_UPLOAD_SESSION_ROUTE_SUBPATH, FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, FLOW_RUN_EXECUTION_EVENTS_ROUTE_SUBPATH, FLOW_RUN_RESULT_ROUTE_SUBPATH, FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type FileMetadataData, type FileRefData, type FileRuntimeLimits, type FileRuntimeScope, type FileRuntimeScopeKind, type FileUploadSessionData, type FlowActionGrantBody, type FlowExecutionContextFileRuntime, type FlowRunExecutionEventBody, type FlowRunExecutionEventData, type FlowRunInputFactBody, type FlowRunResultData, type FlowRunResultRequestBody, type FlowRuntimeCredentialBody, type FlowWaitResolvedEvent, HANDLER_BUNDLES_ROUTE_SUBPATH, HANDSHAKE_CAPABILITY_MISSING, HANDSHAKE_CONTRACT_VERSION_MISMATCH, HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH, HANDSHAKE_REQUEST_INVALID, HANDSHAKE_SECRET_MISMATCH, HANDSHAKE_SECRET_UNCONFIGURED, HUMAN_INPUTS_ROUTE_SUBPATH, HUMAN_INPUT_ACKNOWLEDGE_ROUTE_SUBPATH, HUMAN_INPUT_EXPIRE_ROUTE_SUBPATH, HUMAN_INPUT_PROMPT_BODY_MAX_CODE_POINTS, HUMAN_INPUT_PROMPT_TITLE_MAX_CODE_POINTS, HUMAN_INPUT_REQUEST_ROUTE_SUBPATH, HUMAN_INPUT_RESOLVED_EVENT_PREFIX, type HandlerBundle, type HandlerBundleModule, type HandlerBundlesData, type HandlerBundlesParseResult, type HumanInputActor, type HumanInputOutput, type HumanInputRequestView, type HumanInputResolvedEvent, type HumanInputResponse, INTERNAL_DISCOVERY_INVOCATIONS_ROUTE_PREFIX, INTERNAL_EGRESS_GRANTS_ROUTE_PREFIX, INTERNAL_FILES_ROUTE_PREFIX, INTERNAL_FLOW_RUNS_ROUTE_PREFIX, INTERNAL_FLOW_VERSIONS_ROUTE_PREFIX, INTERNAL_INSTALLATIONS_ROUTE_PREFIX, INTERNAL_POLLING_TRIGGER_INSTANCES_ROUTE_PREFIX, INTERNAL_TOOL_INVOCATIONS_ROUTE_PREFIX, INTERNAL_WEBHOOK_TRIGGER_INSTANCES_ROUTE_PREFIX, type IntegrationDiscoverySubject, type InternalFileAccessData, type InternalFileAccessIntent, POLLING_TRIGGER_CONTEXT_ROUTE_SUBPATH, POLLING_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, POLLING_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, POLLING_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH, type PackageInputDiscoveryDescriptor, type PackageInputDiscoveryKind, type PackagePollingTriggerRuntimeDescriptor, type PackageTriggerFileOutput, type PackageWebhookTriggerRuntimeDescriptor, type ParsedFlowRunResultBody, type PartiallyRenderedHumanInputDelivery, type PartiallyRenderedMapping, type PartiallyRenderedTemplatePart, type PartiallyRenderedValue, type PollingPublishBody, type PollingPublishEvent, type PollingRuntimeCredentialBody, type PollingTriggerContext, type PollingTriggerDispatchData, type PollingTriggerGrantBody, type PresignedFileUrlData, type PublishPollingTickEventResult, type PublishPollingTickEventsData, REGISTER_EVENT_WAIT_ROUTE_SUBPATH, RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS, RUNTIME_REPORTED_EXECUTION_EVENT_TYPES, type RegisterFlowRunWaitBody, type RegisterFlowRunWaitData, type RenderedHumanInputPrompt, type RuntimeCredentialSession, type RuntimeCredentialSessionNetwork, type RuntimeCredentialSessionScopeKind, type RuntimeNetwork, type RuntimeNetworkModel, type RuntimeReportedExecutionEventType, SERVER_EXECUTION_CONTRACT_VERSION, STEP_RESULT_ROUTE_SUBPATH, type SanitizedToolDescriptor, type ServerExecutionContractVersion, type ServerExecutionError, type ServerExecutionErrorEnvelope, type ServerTransformedActionExecutionBinding, type SingleToolGrantBody, type StepRecordBody, type StepRecordBodyParseResult, type StepRecordData, type StepRecordResult, TOOL_HANDLER_BUNDLES_ROUTE_SUBPATH, TOOL_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, TOOL_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type ToolHandlerBundlesData, type TriggerConnectionInfo, type TriggerFileRuntimeDispatch, type TriggerHandlerBundlesData, type TriggerHandlerModule, WEBHOOK_PROTOCOL_ADAPTER_BUNDLE_ROUTE_SUBPATH, WEBHOOK_PROTOCOL_ADAPTER_MODULE, WEBHOOK_TRIGGER_CONTEXT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_DELIVERY_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EVENTS_ROUTE_SUBPATH, WEBHOOK_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, WEBHOOK_TRIGGER_REARM_ROUTE_SUBPATH, WEBHOOK_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION, WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION, type WebhookDelivery, type WebhookDeliveryDispatchData, type WebhookProtocolAdapterBundleData, type WebhookProtocolAdapterModule, type WebhookPublishEvent, type WebhookPublishEventsBody, type WebhookPublishEventsData, type WebhookRearmBody, type WebhookRearmData, type WebhookRuntimeCredentialBody, type WebhookTriggerGrantBody, type WebhookTriggerVerificationMethod, type WebhookWatcherContext, type WfpUserRuntimeManifest, WorkflowExecutionGeneration, completeEventWaitPath, deploymentHandshakeProbePayload, deploymentHandshakeResponseProofPayload, discoveryInvocationEgressGrantPath, discoveryInvocationRuntimeCredentialPath, egressGrantAuditPath, egressGrantConsumePath, executionContextPath, flowRunEgressGrantPath, flowRunExecutionEventsPath, flowRunResultPath, flowRunRuntimeCredentialPath, flowScriptProtocolAdapterModuleName, handlerBundlesPath, humanInputAcknowledgePath, humanInputExpirePath, humanInputRequestPath, humanInputResolvedEventType, humanInputsPath, internalFileAccessPath, internalFileCompletePath, internalFileContentPath, internalFileStatPath, internalFileUploadSessionPath, internalFilesPath, isValidRequestDigest, parseCompleteFlowRunWaitBody, parseCompleteFlowRunWaitData, parseContextStateCleanupRequestBody, parseContextStateCleanupResponseData, parseContextStateScope, parseCreateHumanInputBody, parseDiscoveryGrantBody, parseDiscoveryRuntimeCredentialBody, parseEgressGrantAuditBody, parseEgressGrantConsumeBody, parseEgressGrantConsumeData, parseEgressGrantData, parseExecutionContextData, parseFileMetadataData, parseFileRefData, parseFileRuntimeLimits, parseFileUploadSessionData, parseFlowActionGrantBody, parseFlowRunExecutionEventBody, parseFlowRunExecutionEventData, parseFlowRunResultBody, parseFlowRunResultData, parseFlowRuntimeCredentialBody, parseFlowWaitResolvedEvent, parseHandlerBundle, parseHandlerBundlesData, parseHumanInputAcknowledgeData, parseHumanInputCreateData, parseHumanInputRequestViewData, parseHumanInputResolvedEvent, parseHumanInputResponse, parseHumanInputResponseForSpec, parseHumanInputSpec, parseInternalFileAccessData, parsePollingPublishBody, parsePollingRuntimeCredentialBody, parsePollingTriggerContext, parsePollingTriggerDispatchData, parsePollingTriggerGrantBody, parsePublishPollingTickEventsData, parseRegisterFlowRunWaitBody, parseRegisterFlowRunWaitData, parseRenderedHumanInputPrompt, parseRuntimeCredentialSessionCredential, parseRuntimeNetwork, parseServerExecutionErrorEnvelope, parseSingleToolGrantBody, parseSingleToolRuntimeCredentialBody, parseStepRecordBody, parseStepRecordData, parseToolHandlerBundlesData, parseTriggerFileRuntimeDispatch, parseTriggerHandlerBundlesData, parseWebhookDelivery, parseWebhookDeliveryDispatchData, parseWebhookPublishEventsBody, parseWebhookRearmBody, parseWebhookRuntimeCredentialBody, parseWebhookTriggerGrantBody, parseWebhookWatcherContext, pollingTriggerContextPath, pollingTriggerEgressGrantPath, pollingTriggerHandlerBundlesPath, pollingTriggerRuntimeCredentialPath, pollingTriggerTickEventsPath, registerEventWaitPath, requestHasMultipartFileParts, stepResultPath, toolHandlerBundlesPath, toolInvocationEgressGrantPath, toolInvocationRuntimeCredentialPath, webhookProtocolAdapterBundlePath, webhookTriggerContextPath, webhookTriggerDeliveryPath, webhookTriggerEgressGrantPath, webhookTriggerEventsPath, webhookTriggerHandlerBundlesPath, webhookTriggerRearmPath, webhookTriggerRuntimeCredentialPath, wfpUserRuntimeManifestPath };
1122
+ type ExecutionSuccessEnvelope<T> = {
1123
+ ok: true;
1124
+ data: T;
1125
+ };
1126
+ type ExecutionErrorEnvelope = {
1127
+ ok: false;
1128
+ error: {
1129
+ code: RegisteredErrorCode;
1130
+ requestId?: string;
1131
+ details?: Record<string, unknown>;
1132
+ };
1133
+ };
1134
+ type ExecutionEnvelope<T> = ExecutionSuccessEnvelope<T> | ExecutionErrorEnvelope;
1135
+ declare function parseExecutionSuccessEnvelope<T>(value: unknown, parseData: (value: unknown) => ContractParseResult<T>): ContractParseResult<ExecutionSuccessEnvelope<T>>;
1136
+ declare function parseExecutionErrorEnvelope(value: unknown): ContractParseResult<ExecutionErrorEnvelope>;
1137
+ declare function parseExecutionEnvelope<T>(value: unknown, parseData: (value: unknown) => ContractParseResult<T>): ContractParseResult<ExecutionEnvelope<T>>;
1138
+
1139
+ declare const EXECUTION_RUNTIME_RELEASES_ROUTE: "/internal/execution-runtime/releases";
1140
+ declare const EXECUTION_RUNTIME_RELEASE_TOKEN_HEADER: "x-ablehi-execution-release-token";
1141
+ declare const EXECUTION_RUNTIME_PROBE_ROUTE: "/release-probe";
1142
+ type ExecutionReleaseEnvironment = "staging" | "production";
1143
+ type ExecutionRuntimeReleaseMode = "bootstrap_cutover" | "paired_release";
1144
+ type ExecutionRuntimeReleaseStatus = "created" | "quiescing" | "deploying" | "verifying" | "succeeded" | "rolling_back" | "rolled_back" | "failed";
1145
+ type ExecutionRuntimeGateState = "open" | "quiescing" | "closed";
1146
+ type ExecutionRuntimeVersionPair = {
1147
+ mainVersionId: string;
1148
+ outboundVersionId: string;
1149
+ };
1150
+ type CreateExecutionRuntimeReleaseRequest = {
1151
+ releaseId: string;
1152
+ environment: ExecutionReleaseEnvironment;
1153
+ expectedContractVersion: typeof SERVER_EXECUTION_CONTRACT_VERSION;
1154
+ previous: ExecutionRuntimeVersionPair;
1155
+ };
1156
+ type CompleteExecutionRuntimeReleaseRequest = {
1157
+ deployed: ExecutionRuntimeVersionPair;
1158
+ };
1159
+ type ProbeExecutionRuntimeReleaseRequest = {
1160
+ observed: ExecutionRuntimeVersionPair;
1161
+ };
1162
+ type ExecutionRuntimeProbeRequest = {
1163
+ releaseId: string;
1164
+ nonce: string;
1165
+ expectedContractVersion: typeof SERVER_EXECUTION_CONTRACT_VERSION;
1166
+ probeScriptName: string;
1167
+ probeArtifactDigest: string;
1168
+ };
1169
+ type ExecutionRuntimeProbeData = {
1170
+ contractVersion: typeof SERVER_EXECUTION_CONTRACT_VERSION;
1171
+ mainVersionId: string;
1172
+ outboundVersionId: string;
1173
+ dispatchNamespace: string;
1174
+ probeArtifactDigest: string;
1175
+ capabilityEchoDigest: string;
1176
+ };
1177
+ type ExecutionRuntimeReleaseFailurePhase = "outbound_deploy" | "main_deploy" | "candidate_probe";
1178
+ type RollbackExecutionRuntimeReleaseRequest = {
1179
+ phase: "begin";
1180
+ failure: {
1181
+ code: RegisteredErrorCode;
1182
+ at: ExecutionRuntimeReleaseFailurePhase;
1183
+ detailDigest: string;
1184
+ };
1185
+ } | {
1186
+ phase: "complete";
1187
+ rolledBack: ExecutionRuntimeVersionPair;
1188
+ };
1189
+ type ResumeExecutionRuntimeReleaseRequest = Record<string, never>;
1190
+ type CreateExecutionRuntimeReleaseData = {
1191
+ releaseId: string;
1192
+ mode: ExecutionRuntimeReleaseMode;
1193
+ status: "created" | "retrying";
1194
+ };
1195
+ type QuiesceExecutionRuntimeReleaseData = {
1196
+ status: "quiescing";
1197
+ };
1198
+ type ExecutionRuntimeDrainData = {
1199
+ status: "draining" | "ready";
1200
+ queuedRunDispatches: number;
1201
+ queuedTriggerDeliveries: number;
1202
+ activeActionClaims: number;
1203
+ activeFlowInstances: number;
1204
+ activeWatcherInstances: number;
1205
+ activeWebhookInvocations: number;
1206
+ activePollingTicks: number;
1207
+ deadlineAt: string;
1208
+ };
1209
+ type CompleteExecutionRuntimeReleaseData = {
1210
+ status: "succeeded";
1211
+ deployed: ExecutionRuntimeVersionPair;
1212
+ };
1213
+ type ExecutionRuntimeReleaseStatusData = {
1214
+ releaseId: string;
1215
+ environment: ExecutionReleaseEnvironment;
1216
+ mode: ExecutionRuntimeReleaseMode;
1217
+ status: ExecutionRuntimeReleaseStatus;
1218
+ gateState: ExecutionRuntimeGateState;
1219
+ previous: ExecutionRuntimeVersionPair;
1220
+ recoveryDisposition: "rollback" | "fix_forward" | "resume" | "none";
1221
+ };
1222
+ type ProbeExecutionRuntimeReleaseData = {
1223
+ target: "candidate" | "previous";
1224
+ probe: ExecutionRuntimeProbeData;
1225
+ };
1226
+ type RollbackExecutionRuntimeReleaseData = {
1227
+ disposition: "rollback";
1228
+ previous: ExecutionRuntimeVersionPair;
1229
+ status: "rolling_back";
1230
+ } | {
1231
+ disposition: "fix_forward";
1232
+ status: "failed";
1233
+ } | {
1234
+ disposition: "rolled_back";
1235
+ status: "rolled_back";
1236
+ };
1237
+ type ResumeExecutionRuntimeReleaseData = {
1238
+ status: "open";
1239
+ };
1240
+ declare function executionRuntimeReleasePath(releaseId: string): string;
1241
+ declare function executionRuntimeReleaseQuiescePath(releaseId: string): string;
1242
+ declare function executionRuntimeReleaseDrainPath(releaseId: string): string;
1243
+ declare function executionRuntimeReleaseProbePath(releaseId: string): string;
1244
+ declare function executionRuntimeReleaseCompletePath(releaseId: string): string;
1245
+ declare function executionRuntimeReleaseRollbackPath(releaseId: string): string;
1246
+ declare function executionRuntimeReleaseResumePath(releaseId: string): string;
1247
+ declare function parseCreateExecutionRuntimeReleaseRequest(value: unknown): ContractParseResult<CreateExecutionRuntimeReleaseRequest>;
1248
+ declare function parseCompleteExecutionRuntimeReleaseRequest(value: unknown): ContractParseResult<CompleteExecutionRuntimeReleaseRequest>;
1249
+ declare function parseProbeExecutionRuntimeReleaseRequest(value: unknown): ContractParseResult<ProbeExecutionRuntimeReleaseRequest>;
1250
+ declare function parseExecutionRuntimeProbeRequest(value: unknown): ContractParseResult<ExecutionRuntimeProbeRequest>;
1251
+ declare function parseRollbackExecutionRuntimeReleaseRequest(value: unknown): ContractParseResult<RollbackExecutionRuntimeReleaseRequest>;
1252
+ declare function parseResumeExecutionRuntimeReleaseRequest(value: unknown): ContractParseResult<ResumeExecutionRuntimeReleaseRequest>;
1253
+ declare function parseCreateExecutionRuntimeReleaseData(value: unknown): ContractParseResult<CreateExecutionRuntimeReleaseData>;
1254
+ declare function parseQuiesceExecutionRuntimeReleaseData(value: unknown): ContractParseResult<QuiesceExecutionRuntimeReleaseData>;
1255
+ declare function parseExecutionRuntimeDrainData(value: unknown): ContractParseResult<ExecutionRuntimeDrainData>;
1256
+ declare function parseCompleteExecutionRuntimeReleaseData(value: unknown): ContractParseResult<CompleteExecutionRuntimeReleaseData>;
1257
+ declare function parseExecutionRuntimeReleaseStatusData(value: unknown): ContractParseResult<ExecutionRuntimeReleaseStatusData>;
1258
+ declare function parseExecutionRuntimeProbeData(value: unknown): ContractParseResult<ExecutionRuntimeProbeData>;
1259
+ declare function parseProbeExecutionRuntimeReleaseData(value: unknown): ContractParseResult<ProbeExecutionRuntimeReleaseData>;
1260
+ declare function parseRollbackExecutionRuntimeReleaseData(value: unknown): ContractParseResult<RollbackExecutionRuntimeReleaseData>;
1261
+ declare function parseResumeExecutionRuntimeReleaseData(value: unknown): ContractParseResult<ResumeExecutionRuntimeReleaseData>;
1262
+
1263
+ type ClaimActionInvocationRequest = {
1264
+ executionLease: ExecutionLease;
1265
+ nodeId: string;
1266
+ attempt: number;
1267
+ };
1268
+ type FinishActionInvocationRequest = {
1269
+ executionLease: ExecutionLease;
1270
+ claimEpoch: number;
1271
+ outcome: "succeeded";
1272
+ output: ExecutionPayloadRef;
1273
+ } | {
1274
+ executionLease: ExecutionLease;
1275
+ claimEpoch: number;
1276
+ outcome: "failed";
1277
+ error: AblehiErrorDigest;
1278
+ };
1279
+ type ClaimActionInvocationData = {
1280
+ disposition: "execute";
1281
+ claimEpoch: number;
1282
+ claimExpiresAt: string;
1283
+ } | {
1284
+ disposition: "reuse";
1285
+ output: ExecutionPayloadRef;
1286
+ } | {
1287
+ disposition: "retry_later";
1288
+ retryAfterMs: number;
1289
+ } | {
1290
+ disposition: "failed";
1291
+ error: AblehiErrorDigest;
1292
+ } | {
1293
+ disposition: "outcome_unknown";
1294
+ errorCode: "ACTION_OUTCOME_UNKNOWN";
1295
+ };
1296
+ type FinishActionInvocationData = {
1297
+ disposition: "succeeded";
1298
+ output: ExecutionPayloadRef;
1299
+ } | {
1300
+ disposition: "failed";
1301
+ error: AblehiErrorDigest;
1302
+ } | {
1303
+ disposition: "in_progress";
1304
+ retryAfterMs: number;
1305
+ } | {
1306
+ disposition: "outcome_unknown";
1307
+ errorCode: "ACTION_OUTCOME_UNKNOWN";
1308
+ };
1309
+ declare function actionInvocationClaimPath(flowRunId: string, invocationId: string): string;
1310
+ declare function actionInvocationFinishPath(flowRunId: string, invocationId: string): string;
1311
+ declare function actionInvocationId(input: {
1312
+ flowRunId: string;
1313
+ nodeId: string;
1314
+ attempt: number;
1315
+ }): string;
1316
+ declare function parseClaimActionInvocationRequest(value: unknown): ContractParseResult<ClaimActionInvocationRequest>;
1317
+ declare function parseFinishActionInvocationRequest(value: unknown): ContractParseResult<FinishActionInvocationRequest>;
1318
+ declare function parseClaimActionInvocationData(value: unknown): ContractParseResult<ClaimActionInvocationData>;
1319
+ declare function parseFinishActionInvocationData(value: unknown): ContractParseResult<FinishActionInvocationData>;
1320
+
1321
+ declare const WORKFLOW_START_ROUTE: "/start";
1322
+ type FlowRunDispatchMetadata = {
1323
+ workspaceId: string;
1324
+ flowId: string;
1325
+ flowVersionId: string;
1326
+ compiledArtifactId: string;
1327
+ scriptName: string;
1328
+ };
1329
+ type WorkflowDispatchStartRequest = {
1330
+ flowRunId: string;
1331
+ instanceId: string;
1332
+ metadata: FlowRunDispatchMetadata;
1333
+ serverCallbackBaseUrl: string;
1334
+ };
1335
+ type WorkflowDispatchStartData = {
1336
+ instanceId: string;
1337
+ };
1338
+ type WorkflowDispatchStartResponse = ExecutionEnvelope<WorkflowDispatchStartData>;
1339
+ declare function parseWorkflowDispatchStartRequest(value: unknown): ContractParseResult<WorkflowDispatchStartRequest>;
1340
+ declare function parseWorkflowDispatchStartData(value: unknown): ContractParseResult<WorkflowDispatchStartData>;
1341
+ declare function parseWorkflowDispatchStartResponse(value: unknown): ContractParseResult<WorkflowDispatchStartResponse>;
1342
+
1343
+ export { ACTION_INVOCATION_CLAIM_TTL_SECONDS, COMPLETE_EVENT_WAIT_ROUTE_SUBPATH, CONTEXT_STATE_CLEANUP_ROUTE_PATH, type ClaimActionInvocationData, type ClaimActionInvocationRequest, type CommitExecutionPayloadData, type CommitExecutionPayloadRequest, type CompleteExecutionRuntimeReleaseData, type CompleteExecutionRuntimeReleaseRequest, type CompleteFlowRunWaitBody, type CompleteFlowRunWaitData, type ContextStateCleanupRequestBody, type ContextStateCleanupResponseData, type ContextStateScope, ContractParseResult, type CreateExecutionPayloadAccessData, type CreateExecutionPayloadAccessRequest, type CreateExecutionPayloadReservationData, type CreateExecutionPayloadReservationRequest, type CreateExecutionRuntimeReleaseData, type CreateExecutionRuntimeReleaseRequest, type CreateHumanInputRequestBody, DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, DEPLOYMENT_HANDSHAKE_ROUTE, DISCOVERY_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, DISCOVERY_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type DeploymentHandshakeData, type DeploymentHandshakeRequestBody, type DeploymentHandshakeResponse, type DirectActionExecutionBinding, type DiscoveryDispatchBody, type DiscoveryEgressGrantBinding, type DiscoveryExecutionBinding, type DiscoveryGrantBody, type DiscoveryInvokeRequest, type DiscoveryRuntimeCredentialBinding, EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, EGRESS_GRANT_SCOPE_KINDS, EXECUTION_BOOTSTRAP_MAX_BYTES, EXECUTION_COMPILED_BOOTSTRAP_MAX_BYTES, EXECUTION_CONTEXT_MAX_BYTES, EXECUTION_CONTEXT_ROUTE_SUBPATH, EXECUTION_PAYLOAD_KINDS, EXECUTION_PAYLOAD_REF_SCHEMA_VERSION, EXECUTION_PAYLOAD_RESERVATIONS_ROUTE, EXECUTION_PAYLOAD_RESERVATION_TTL_SECONDS, EXECUTION_PAYLOAD_TRIGGER_RESULTS_RESOLVE_ROUTE, EXECUTION_REF_CALLBACK_MAX_BYTES, EXECUTION_RELEASE_DRAIN_SECONDS, EXECUTION_RUNTIME_PROBE_ROUTE, EXECUTION_RUNTIME_RELEASES_ROUTE, EXECUTION_RUNTIME_RELEASE_TOKEN_HEADER, EXECUTION_VALUE_MAX_BYTES, type EgressGrant, type EgressGrantAuditBody, type EgressGrantBodyParseResult, type EgressGrantConsumeBody, type EgressGrantCredentialMaterial, type EgressGrantFileRuntime, type EgressGrantScopeKind, type ExecutionBinding, type ExecutionBindingConnection, type ExecutionContextCompiled, type ExecutionContextData, type ExecutionContextPayloadData, type ExecutionEnvelope, type ExecutionErrorEnvelope, ExecutionLease, type ExecutionPayloadAuthority, type ExecutionPayloadDigest, type ExecutionPayloadKind, type ExecutionPayloadOwner, type ExecutionPayloadRef, type ExecutionReleaseEnvironment, type ExecutionRuntimeDrainData, type ExecutionRuntimeGateState, type ExecutionRuntimeProbeData, type ExecutionRuntimeProbeRequest, type ExecutionRuntimeReleaseFailurePhase, type ExecutionRuntimeReleaseMode, type ExecutionRuntimeReleaseStatus, type ExecutionRuntimeReleaseStatusData, type ExecutionRuntimeVersionPair, type ExecutionSuccessEnvelope, FILE_ACCESS_ROUTE_SUBPATH, FILE_COMPLETE_ROUTE_SUBPATH, FILE_CONTENT_ROUTE_SUBPATH, FILE_STAT_ROUTE_SUBPATH, FILE_UPLOAD_SESSION_ROUTE_SUBPATH, FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, FLOW_RUN_EXECUTION_EVENTS_ROUTE_SUBPATH, FLOW_RUN_RESULT_ROUTE_SUBPATH, FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type FileMetadataData, type FileRefData, type FileRuntimeLimits, type FileRuntimeScope, type FileRuntimeScopeKind, type FileUploadSessionData, type FinishActionInvocationData, type FinishActionInvocationRequest, type FlowActionGrantBody, type FlowExecutionContextFileRuntime, type FlowRunDispatchMetadata, type FlowRunExecutionEventBody, type FlowRunExecutionEventData, type FlowRunInputFactBody, type FlowRunResultData, type FlowRunResultRequestBody, type FlowRuntimeCredentialBody, type FlowWaitResolvedEvent, HANDLER_BUNDLES_ROUTE_SUBPATH, HANDSHAKE_CAPABILITY_MISSING, HANDSHAKE_CONTRACT_VERSION_MISMATCH, HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH, HANDSHAKE_REQUEST_INVALID, HANDSHAKE_SECRET_MISMATCH, HANDSHAKE_SECRET_UNCONFIGURED, HUMAN_INPUTS_ROUTE_SUBPATH, HUMAN_INPUT_ACKNOWLEDGE_ROUTE_SUBPATH, HUMAN_INPUT_EXPIRE_ROUTE_SUBPATH, HUMAN_INPUT_PROMPT_BODY_MAX_CODE_POINTS, HUMAN_INPUT_PROMPT_TITLE_MAX_CODE_POINTS, HUMAN_INPUT_REQUEST_ROUTE_SUBPATH, HUMAN_INPUT_RESOLVED_EVENT_PREFIX, HUMAN_WAIT_EVENT_INPUT_MAX_BYTES, type HandlerBundle, type HandlerBundleModule, type HandlerBundlesData, type HandlerBundlesParseResult, type HumanInputActor, type HumanInputOutput, type HumanInputRequestView, type HumanInputResolvedEvent, type HumanInputResponse, INTERNAL_DISCOVERY_INVOCATIONS_ROUTE_PREFIX, INTERNAL_EGRESS_GRANTS_ROUTE_PREFIX, INTERNAL_FILES_ROUTE_PREFIX, INTERNAL_FLOW_RUNS_ROUTE_PREFIX, INTERNAL_FLOW_VERSIONS_ROUTE_PREFIX, INTERNAL_INSTALLATIONS_ROUTE_PREFIX, INTERNAL_POLLING_TRIGGER_INSTANCES_ROUTE_PREFIX, INTERNAL_TOOL_INVOCATIONS_ROUTE_PREFIX, INTERNAL_WEBHOOK_TRIGGER_INSTANCES_ROUTE_PREFIX, type IntegrationDiscoverySubject, type InternalFileAccessData, type InternalFileAccessIntent, POLLING_TRIGGER_CONTEXT_ROUTE_SUBPATH, POLLING_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, POLLING_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, POLLING_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH, PUBLIC_INGRESS_ENVELOPE_OVERHEAD_BYTES, type PackageInputDiscoveryDescriptor, type PackageInputDiscoveryKind, type PackagePollingTriggerRuntimeDescriptor, type PackageTriggerFileOutput, type PackageWebhookTriggerRuntimeDescriptor, type ParsedFlowRunResultBody, type PartiallyRenderedHumanInputDelivery, type PartiallyRenderedMapping, type PartiallyRenderedTemplatePart, type PartiallyRenderedValue, type PollingPublishBody, type PollingPublishEvent, type PollingRuntimeCredentialBody, type PollingTriggerContext, type PollingTriggerDispatchData, type PollingTriggerGrantBody, type PresignedFileUrlData, type ProbeExecutionRuntimeReleaseData, type ProbeExecutionRuntimeReleaseRequest, type PublishPollingTickEventResult, type PublishPollingTickEventsData, type QuiesceExecutionRuntimeReleaseData, REGISTER_EVENT_WAIT_ROUTE_SUBPATH, RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS, RUNTIME_REPORTED_EXECUTION_EVENT_TYPES, RUN_INPUT_MAX_BYTES, type RegisterFlowRunWaitBody, type RegisterFlowRunWaitData, type RenderedHumanInputPrompt, type ResolveCommittedTriggerPayloadData, type ResolveCommittedTriggerPayloadRequest, type ResumeExecutionRuntimeReleaseData, type ResumeExecutionRuntimeReleaseRequest, type RollbackExecutionRuntimeReleaseData, type RollbackExecutionRuntimeReleaseRequest, type RuntimeCredentialSession, type RuntimeCredentialSessionNetwork, type RuntimeCredentialSessionScopeKind, type RuntimeNetwork, type RuntimeNetworkModel, type RuntimeReportedExecutionEventType, SERVER_EXECUTION_CONTRACT_VERSION, STEP_RESULT_ROUTE_SUBPATH, type SanitizedToolDescriptor, type ServerExecutionContractVersion, type ServerExecutionError, type ServerExecutionErrorEnvelope, type ServerTransformedActionExecutionBinding, type SingleToolGrantBody, type StepRecordBody, type StepRecordBodyParseResult, type StepRecordData, type StepRecordResult, TOOL_HANDLER_BUNDLES_ROUTE_SUBPATH, TOOL_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, TOOL_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type ToolHandlerBundlesData, type TriggerConnectionInfo, type TriggerEventsOwner, type TriggerExecutionPayloadAuthority, type TriggerFileRuntimeDispatch, type TriggerHandlerBundlesData, type TriggerHandlerModule, WEBHOOK_PROTOCOL_ADAPTER_BUNDLE_ROUTE_SUBPATH, WEBHOOK_PROTOCOL_ADAPTER_MODULE, WEBHOOK_TRIGGER_CONTEXT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_DELIVERY_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EVENTS_ROUTE_SUBPATH, WEBHOOK_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, WEBHOOK_TRIGGER_REARM_ROUTE_SUBPATH, WEBHOOK_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION, WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION, WORKFLOW_START_ROUTE, type WebhookDelivery, type WebhookDeliveryDispatchData, type WebhookProtocolAdapterBundleData, type WebhookProtocolAdapterModule, type WebhookPublishEvent, type WebhookPublishEventsBody, type WebhookPublishEventsData, type WebhookRearmBody, type WebhookRearmData, type WebhookRuntimeCredentialBody, type WebhookTriggerGrantBody, type WebhookTriggerVerificationMethod, type WebhookWatcherContext, type WfpUserRuntimeManifest, type WorkflowDispatchStartData, type WorkflowDispatchStartRequest, type WorkflowDispatchStartResponse, WorkflowExecutionGeneration, actionInvocationClaimPath, actionInvocationFinishPath, actionInvocationId, canonicalizeExecutionPayload, completeEventWaitPath, deploymentHandshakeProbePayload, deploymentHandshakeResponseProofPayload, discoveryInvocationEgressGrantPath, discoveryInvocationRuntimeCredentialPath, egressGrantAuditPath, egressGrantConsumePath, executionContextPath, executionPayloadAccessPath, executionPayloadCommitPath, executionPayloadMaxBytes, executionRuntimeReleaseCompletePath, executionRuntimeReleaseDrainPath, executionRuntimeReleasePath, executionRuntimeReleaseProbePath, executionRuntimeReleaseQuiescePath, executionRuntimeReleaseResumePath, executionRuntimeReleaseRollbackPath, flowRunEgressGrantPath, flowRunExecutionEventsPath, flowRunResultPath, flowRunRuntimeCredentialPath, flowScriptProtocolAdapterModuleName, handlerBundlesPath, humanInputAcknowledgePath, humanInputExpirePath, humanInputRequestPath, humanInputResolvedEventType, humanInputsPath, internalFileAccessPath, internalFileCompletePath, internalFileContentPath, internalFileStatPath, internalFileUploadSessionPath, internalFilesPath, isValidRequestDigest, parseClaimActionInvocationData, parseClaimActionInvocationRequest, parseCommitExecutionPayloadData, parseCommitExecutionPayloadRequest, parseCompleteExecutionRuntimeReleaseData, parseCompleteExecutionRuntimeReleaseRequest, parseCompleteFlowRunWaitBody, parseCompleteFlowRunWaitData, parseContextStateCleanupRequestBody, parseContextStateCleanupResponseData, parseContextStateScope, parseCreateExecutionPayloadAccessData, parseCreateExecutionPayloadAccessRequest, parseCreateExecutionPayloadReservationData, parseCreateExecutionPayloadReservationRequest, parseCreateExecutionRuntimeReleaseData, parseCreateExecutionRuntimeReleaseRequest, parseCreateHumanInputBody, parseDiscoveryGrantBody, parseDiscoveryRuntimeCredentialBody, parseEgressGrantAuditBody, parseEgressGrantConsumeBody, parseEgressGrantConsumeData, parseEgressGrantData, parseExecutionContextData, parseExecutionContextPayloadData, parseExecutionEnvelope, parseExecutionErrorEnvelope, parseExecutionPayloadRef, parseExecutionRuntimeDrainData, parseExecutionRuntimeProbeData, parseExecutionRuntimeProbeRequest, parseExecutionRuntimeReleaseStatusData, parseExecutionSuccessEnvelope, parseFileMetadataData, parseFileRefData, parseFileRuntimeLimits, parseFileUploadSessionData, parseFinishActionInvocationData, parseFinishActionInvocationRequest, parseFlowActionGrantBody, parseFlowRunExecutionEventBody, parseFlowRunExecutionEventData, parseFlowRunResultBody, parseFlowRunResultData, parseFlowRuntimeCredentialBody, parseFlowWaitResolvedEvent, parseHandlerBundle, parseHandlerBundlesData, parseHumanInputAcknowledgeData, parseHumanInputCreateData, parseHumanInputRequestViewData, parseHumanInputResolvedEvent, parseHumanInputResponse, parseHumanInputResponseForSpec, parseHumanInputSpec, parseInternalFileAccessData, parsePollingPublishBody, parsePollingRuntimeCredentialBody, parsePollingTriggerContext, parsePollingTriggerDispatchData, parsePollingTriggerGrantBody, parseProbeExecutionRuntimeReleaseData, parseProbeExecutionRuntimeReleaseRequest, parsePublishPollingTickEventsData, parseQuiesceExecutionRuntimeReleaseData, parseRegisterFlowRunWaitBody, parseRegisterFlowRunWaitData, parseRenderedHumanInputPrompt, parseResolveCommittedTriggerPayloadData, parseResolveCommittedTriggerPayloadRequest, parseResumeExecutionRuntimeReleaseData, parseResumeExecutionRuntimeReleaseRequest, parseRollbackExecutionRuntimeReleaseData, parseRollbackExecutionRuntimeReleaseRequest, parseRuntimeCredentialSessionCredential, parseRuntimeNetwork, parseServerExecutionErrorEnvelope, parseSingleToolGrantBody, parseSingleToolRuntimeCredentialBody, parseStepRecordBody, parseStepRecordData, parseToolHandlerBundlesData, parseTriggerFileRuntimeDispatch, parseTriggerHandlerBundlesData, parseWebhookDelivery, parseWebhookDeliveryDispatchData, parseWebhookPublishEventsBody, parseWebhookRearmBody, parseWebhookRuntimeCredentialBody, parseWebhookTriggerGrantBody, parseWebhookWatcherContext, parseWorkflowDispatchStartData, parseWorkflowDispatchStartRequest, parseWorkflowDispatchStartResponse, pollingTriggerContextPath, pollingTriggerEgressGrantPath, pollingTriggerHandlerBundlesPath, pollingTriggerRuntimeCredentialPath, pollingTriggerTickEventsPath, registerEventWaitPath, requestHasMultipartFileParts, stepResultPath, toolHandlerBundlesPath, toolInvocationEgressGrantPath, toolInvocationRuntimeCredentialPath, webhookProtocolAdapterBundlePath, webhookTriggerContextPath, webhookTriggerDeliveryPath, webhookTriggerEgressGrantPath, webhookTriggerEventsPath, webhookTriggerHandlerBundlesPath, webhookTriggerRearmPath, webhookTriggerRuntimeCredentialPath, wfpUserRuntimeManifestPath };