@ablehi/server-execution-contract 0.3.0 → 0.3.2

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,17 +1,12 @@
1
- import { PublishedFlowDefinition, RuntimeHumanInputSpec, JsonObject } from '@ablehi/flow-contract';
1
+ import { C as ContractParseResult, W as WorkflowExecutionGeneration, E as ExecutionLease } from './action-transform-D9pBy-mj.js';
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
+ import { FLOW_IR_SCHEMA_VERSION, FLOW_INTERPRETER_CONTRACT_VERSION, PublishedFlowDefinition, RuntimeHumanInputSpec } from '@ablehi/flow-contract';
4
+ import { PackageToolDescriptor, InstalledIntegrationDescriptor } from '@ablehi/ais-package-contract/edge';
2
5
  import { AblehiErrorDigest } from '@ablehi/error-contract';
3
6
 
4
- declare const SERVER_EXECUTION_CONTRACT_VERSION = "0.4.0";
7
+ declare const SERVER_EXECUTION_CONTRACT_VERSION = "0.5.0";
5
8
  type ServerExecutionContractVersion = typeof SERVER_EXECUTION_CONTRACT_VERSION;
6
9
 
7
- type ContractParseResult<T> = {
8
- ok: true;
9
- value: T;
10
- } | {
11
- ok: false;
12
- reason: string;
13
- };
14
-
15
10
  declare const CONTEXT_STATE_CLEANUP_ROUTE_PATH = "/cleanup-state-scopes";
16
11
  type ContextStateScope = {
17
12
  kind: "webhook-trigger";
@@ -38,80 +33,6 @@ declare function parseContextStateScope(value: unknown): ContractParseResult<Con
38
33
  declare function parseContextStateCleanupRequestBody(body: unknown): ContractParseResult<ContextStateCleanupRequestBody>;
39
34
  declare function parseContextStateCleanupResponseData(data: unknown): ContractParseResult<ContextStateCleanupResponseData>;
40
35
 
41
- declare const EXECUTION_LEASE_ROUTE_SUBPATH = "/:flowRunId/execution-leases";
42
- declare const WORKFLOW_RESTART_ROUTE = "/restart";
43
- declare const WORKFLOW_RESTART_REQUEST_INVALID = "WORKFLOW_RESTART_REQUEST_INVALID";
44
- declare const WORKFLOW_RESTART_INSTANCE_UNAVAILABLE = "WORKFLOW_RESTART_INSTANCE_UNAVAILABLE";
45
- declare const WORKFLOW_RESTART_REJECTED = "WORKFLOW_RESTART_REJECTED";
46
- declare const RUN_DISPATCH_UNAVAILABLE = "RUN_DISPATCH_UNAVAILABLE";
47
- type WorkflowRestartErrorCode = typeof WORKFLOW_RESTART_REQUEST_INVALID | typeof WORKFLOW_RESTART_INSTANCE_UNAVAILABLE | typeof WORKFLOW_RESTART_REJECTED;
48
- declare const EXECUTION_LEASE_INVALID = "EXECUTION_LEASE_INVALID";
49
- declare const EXECUTION_LEASE_SUPERSEDED = "EXECUTION_LEASE_SUPERSEDED";
50
- declare const WAIT_EXECUTION_SUPERSEDED = "WAIT_EXECUTION_SUPERSEDED";
51
- declare const HUMAN_INPUT_CANCELLED_BY_RESET = "HUMAN_INPUT_CANCELLED_BY_RESET";
52
- type GenerationCallbackErrorCode = typeof EXECUTION_LEASE_INVALID | typeof EXECUTION_LEASE_SUPERSEDED | typeof WAIT_EXECUTION_SUPERSEDED | typeof HUMAN_INPUT_CANCELLED_BY_RESET;
53
- declare function acquireExecutionLeasePath(flowRunId: string): string;
54
- type FlowExecutionScope = {
55
- kind: "standalone";
56
- } | {
57
- kind: "automation_app";
58
- productRunId: string;
59
- };
60
- type ExecutionAnchor = {
61
- kind: "node";
62
- nodeId: string;
63
- } | {
64
- kind: "terminal";
65
- };
66
- type ExecutionLease = {
67
- productRunId: string;
68
- flowRunId: string;
69
- generationId: string;
70
- generationNumber: number;
71
- anchor: ExecutionAnchor;
72
- leaseId: string;
73
- };
74
- type ExecutionWriteScope = {
75
- kind: "standalone";
76
- } | {
77
- kind: "automation_app";
78
- lease: ExecutionLease;
79
- };
80
- type AcquireExecutionLeaseRequest = {
81
- anchor: ExecutionAnchor;
82
- };
83
- type AcquireExecutionLeaseData = {
84
- executionScope: ExecutionWriteScope;
85
- };
86
- type WorkflowDispatchRestartRequest = {
87
- instanceId: string;
88
- flowRunId: string;
89
- commandId: string;
90
- generationId: string;
91
- from: {
92
- name: `generation:${string}`;
93
- count: 1;
94
- type: "do";
95
- };
96
- };
97
- type WorkflowDispatchRestartResponse = {
98
- ok: true;
99
- data: {
100
- accepted: true;
101
- instanceId: string;
102
- commandId: string;
103
- generationId: string;
104
- };
105
- };
106
- declare function parseFlowExecutionScope(value: unknown): ContractParseResult<FlowExecutionScope>;
107
- declare function parseExecutionAnchor(value: unknown): ContractParseResult<ExecutionAnchor>;
108
- declare function parseExecutionLease(value: unknown): ContractParseResult<ExecutionLease>;
109
- declare function parseExecutionWriteScope(value: unknown): ContractParseResult<ExecutionWriteScope>;
110
- declare function parseAcquireExecutionLeaseRequest(value: unknown): ContractParseResult<AcquireExecutionLeaseRequest>;
111
- declare function parseAcquireExecutionLeaseData(value: unknown): ContractParseResult<AcquireExecutionLeaseData>;
112
- declare function parseWorkflowDispatchRestartRequest(value: unknown): ContractParseResult<WorkflowDispatchRestartRequest>;
113
- declare function parseWorkflowDispatchRestartResponse(value: unknown): ContractParseResult<WorkflowDispatchRestartResponse>;
114
-
115
36
  declare const INTERNAL_FLOW_RUNS_ROUTE_PREFIX = "/internal/flow-runs";
116
37
  declare const EXECUTION_CONTEXT_ROUTE_SUBPATH = "/:flowRunId/execution-context";
117
38
  declare function executionContextPath(flowRunId: string): string;
@@ -123,14 +44,31 @@ type ExecutionBindingConnection = {
123
44
  authType: string;
124
45
  connectionConfig?: Record<string, unknown>;
125
46
  };
126
- type ExecutionBinding<TToolDescriptor = Record<string, unknown>, TIntegrationDescriptor = Record<string, unknown>> = {
47
+ type SanitizedToolDescriptor = Omit<PackageToolDescriptor, "spec_path" | "source_tool_id">;
48
+ type DirectActionExecutionBinding = {
49
+ executionKind: "direct";
127
50
  nodeId: string;
51
+ stateScope: ContextStateScope;
128
52
  toolRef: string;
129
- toolDescriptor: TToolDescriptor;
130
- integrationDescriptor: TIntegrationDescriptor;
131
- connection: ExecutionBindingConnection;
53
+ toolDescriptor: SanitizedToolDescriptor;
54
+ integrationDescriptor: InstalledIntegrationDescriptor;
55
+ connection: ExecutionBindingConnection | null;
56
+ };
57
+ type ServerTransformedActionExecutionBinding = {
58
+ executionKind: "server_transformed";
59
+ nodeId: string;
132
60
  stateScope: ContextStateScope;
61
+ canonicalToolRef: string;
62
+ serverTransformRef: string;
63
+ serverTransformContractDigest: string;
64
+ realAction: {
65
+ toolRef: string;
66
+ toolDescriptor: SanitizedToolDescriptor;
67
+ integrationDescriptor: InstalledIntegrationDescriptor;
68
+ connection: ExecutionBindingConnection | null;
69
+ };
133
70
  };
71
+ type ExecutionBinding = DirectActionExecutionBinding | ServerTransformedActionExecutionBinding;
134
72
  type FileRuntimeLimits = {
135
73
  fileMaxBytes: number;
136
74
  fileReadMaxBytes: number;
@@ -140,18 +78,18 @@ type FlowExecutionContextFileRuntime = {
140
78
  limits: FileRuntimeLimits;
141
79
  } | null;
142
80
  type ExecutionContextCompiled = {
143
- irSchemaVersion: string;
144
- interpreterContractVersion: string;
81
+ irSchemaVersion: typeof FLOW_IR_SCHEMA_VERSION;
82
+ interpreterContractVersion: typeof FLOW_INTERPRETER_CONTRACT_VERSION;
145
83
  ir: PublishedFlowDefinition;
146
84
  compiledArtifactId: string;
147
85
  };
148
- type ExecutionContextData<TToolDescriptor = Record<string, unknown>, TIntegrationDescriptor = Record<string, unknown>> = {
86
+ type ExecutionContextData = {
149
87
  flowRunId: string;
150
88
  workspaceId: string;
151
89
  input: Record<string, unknown>;
152
- executionScope: FlowExecutionScope;
90
+ executionGeneration: WorkflowExecutionGeneration;
153
91
  compiled: ExecutionContextCompiled;
154
- executionBindings: Array<ExecutionBinding<TToolDescriptor, TIntegrationDescriptor>>;
92
+ executionBindings: ExecutionBinding[];
155
93
  fileRuntime: FlowExecutionContextFileRuntime;
156
94
  };
157
95
  declare function parseFileRuntimeLimits(value: unknown): ContractParseResult<FileRuntimeLimits>;
@@ -181,7 +119,7 @@ type StepRecordResult = {
181
119
  error: AblehiErrorDigest;
182
120
  };
183
121
  type StepRecordBody = {
184
- executionScope: ExecutionWriteScope;
122
+ executionLease: ExecutionLease;
185
123
  attempt: number;
186
124
  result: StepRecordResult;
187
125
  durationMs?: number;
@@ -202,16 +140,16 @@ type StepRecordBodyParseResult = {
202
140
  declare function parseStepRecordBody(body: unknown): StepRecordBodyParseResult;
203
141
  declare function parseStepRecordData(data: unknown): ContractParseResult<StepRecordData>;
204
142
  type FlowRunResultRequestBody = {
205
- executionScope: ExecutionWriteScope;
143
+ executionLease: ExecutionLease;
206
144
  status: "succeeded";
207
145
  output?: unknown;
208
146
  } | {
209
- executionScope: ExecutionWriteScope;
147
+ executionLease: ExecutionLease;
210
148
  status: "failed";
211
149
  error: AblehiErrorDigest;
212
150
  };
213
151
  type ParsedFlowRunResultBody = {
214
- executionScope: ExecutionWriteScope;
152
+ executionLease: ExecutionLease;
215
153
  status: "succeeded" | "failed";
216
154
  output?: unknown;
217
155
  error?: AblehiErrorDigest;
@@ -221,8 +159,8 @@ type FlowRunResultData = {
221
159
  run: unknown;
222
160
  };
223
161
  declare function parseFlowRunResultData(data: unknown): ContractParseResult<FlowRunResultData>;
224
- declare const FLOW_RUN_EXECUTION_EVENT_TYPES: readonly ["flow_run_started", "step_started", "step_retry_scheduled", "wait_registered", "wait_event_received", "wait_event_timed_out", "human_input_created", "human_input_submitted", "human_input_expired", "flow_run_succeeded", "flow_run_failed", "flow_run_interrupted", "flow_run_cancelled"];
225
- type FlowRunExecutionEventType = (typeof FLOW_RUN_EXECUTION_EVENT_TYPES)[number];
162
+ declare const RUNTIME_REPORTED_EXECUTION_EVENT_TYPES: readonly ["step_started", "step_retry_scheduled"];
163
+ type RuntimeReportedExecutionEventType = (typeof RUNTIME_REPORTED_EXECUTION_EVENT_TYPES)[number];
226
164
  type FlowRunInputFactBody = {
227
165
  digestAlgorithm: "sha256";
228
166
  digest: string;
@@ -235,9 +173,9 @@ type FlowRunInputFactBody = {
235
173
  };
236
174
  };
237
175
  type FlowRunExecutionEventBody = {
238
- executionScope: ExecutionWriteScope;
176
+ executionLease: ExecutionLease;
239
177
  eventId: string;
240
- eventType: FlowRunExecutionEventType;
178
+ eventType: RuntimeReportedExecutionEventType;
241
179
  nodeId?: string;
242
180
  stepRunId?: string;
243
181
  attempt?: number;
@@ -255,12 +193,12 @@ type FlowRunExecutionEventData = {
255
193
  declare function parseFlowRunExecutionEventData(data: unknown): ContractParseResult<FlowRunExecutionEventData>;
256
194
  declare function parseFlowRunExecutionEventBody(body: unknown): ContractParseResult<FlowRunExecutionEventBody>;
257
195
  type RegisterFlowRunWaitBody = {
258
- executionScope: ExecutionWriteScope;
196
+ executionLease: ExecutionLease;
259
197
  eventType: string;
260
198
  correlationKey: string;
261
199
  };
262
200
  type CompleteFlowRunWaitBody = {
263
- executionScope: ExecutionWriteScope;
201
+ executionLease: ExecutionLease;
264
202
  waitExecutionId: string;
265
203
  outcome: "received" | "timed_out";
266
204
  eventId?: string;
@@ -874,7 +812,7 @@ type PartiallyRenderedHumanInputDelivery = {
874
812
  }>;
875
813
  };
876
814
  type CreateHumanInputRequestBody = {
877
- executionScope: ExecutionWriteScope;
815
+ executionLease: ExecutionLease;
878
816
  nodeId: string;
879
817
  renderedPrompt: RenderedHumanInputPrompt;
880
818
  input: RuntimeHumanInputSpec;
@@ -1026,78 +964,4 @@ type ServerExecutionErrorEnvelope = {
1026
964
  */
1027
965
  declare function parseServerExecutionErrorEnvelope(value: unknown): ContractParseResult<ServerExecutionErrorEnvelope>;
1028
966
 
1029
- declare const INBOX_MESSAGE_EMISSION_ROUTE_SUBPATH = "/:flowRunId/inbox-message-emissions/:nodeId";
1030
- declare function inboxMessageEmissionPath(flowRunId: string, nodeId: string): string;
1031
- type EmitInboxMessageRequest = {
1032
- executionScope: ExecutionWriteScope;
1033
- idempotencyKey: string;
1034
- payload: JsonObject;
1035
- };
1036
- type EmitInboxMessageData = {
1037
- emissionId: string;
1038
- outcome: "created" | "replayed";
1039
- occurredAt: string;
1040
- };
1041
- declare const INBOX_MESSAGE_EXECUTION_ERROR_REGISTRY: Readonly<{
1042
- readonly INBOX_MESSAGE_IDEMPOTENCY_KEY_INVALID: {
1043
- readonly httpStatus: 422;
1044
- readonly retryable: boolean;
1045
- };
1046
- readonly INBOX_MESSAGE_PAYLOAD_INVALID: {
1047
- readonly httpStatus: 422;
1048
- readonly retryable: boolean;
1049
- };
1050
- readonly INBOX_MESSAGE_PAYLOAD_TOO_LARGE: {
1051
- readonly httpStatus: 413;
1052
- readonly retryable: boolean;
1053
- };
1054
- readonly INBOX_MESSAGE_RENDER_INVALID: {
1055
- readonly httpStatus: 422;
1056
- readonly retryable: boolean;
1057
- };
1058
- readonly INBOX_MESSAGE_CONTENT_TOO_LARGE: {
1059
- readonly httpStatus: 413;
1060
- readonly retryable: boolean;
1061
- };
1062
- readonly INBOX_MESSAGE_ATTACHMENT_INVALID: {
1063
- readonly httpStatus: 422;
1064
- readonly retryable: boolean;
1065
- };
1066
- readonly INBOX_MESSAGE_ATTACHMENT_UNAVAILABLE: {
1067
- readonly httpStatus: 409;
1068
- readonly retryable: boolean;
1069
- };
1070
- readonly FLOW_INBOX_MESSAGE_INVALID: {
1071
- readonly httpStatus: 422;
1072
- readonly retryable: boolean;
1073
- };
1074
- readonly EXECUTION_LEASE_INVALID: {
1075
- readonly httpStatus: 409;
1076
- readonly retryable: boolean;
1077
- };
1078
- readonly EXECUTION_LEASE_SUPERSEDED: {
1079
- readonly httpStatus: 409;
1080
- readonly retryable: boolean;
1081
- };
1082
- readonly AUTOMATION_APP_INSTALLATION_DISABLED: {
1083
- readonly httpStatus: 409;
1084
- readonly retryable: boolean;
1085
- };
1086
- readonly INBOX_MESSAGE_EMISSION_WINDOW_CLOSED: {
1087
- readonly httpStatus: 409;
1088
- readonly retryable: boolean;
1089
- };
1090
- readonly INBOX_MESSAGE_EMISSION_CONFLICT: {
1091
- readonly httpStatus: 409;
1092
- readonly retryable: boolean;
1093
- };
1094
- readonly INBOX_MESSAGE_EMISSION_UNAVAILABLE: {
1095
- readonly httpStatus: 503;
1096
- readonly retryable: boolean;
1097
- };
1098
- }>;
1099
- type InboxMessageExecutionErrorCode = keyof typeof INBOX_MESSAGE_EXECUTION_ERROR_REGISTRY;
1100
- declare function parseEmitInboxMessageRequest(value: unknown): ContractParseResult<EmitInboxMessageRequest>;
1101
- declare function parseEmitInboxMessageData(value: unknown): ContractParseResult<EmitInboxMessageData>;
1102
-
1103
- export { type AcquireExecutionLeaseData, type AcquireExecutionLeaseRequest, 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 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, EXECUTION_LEASE_INVALID, EXECUTION_LEASE_ROUTE_SUBPATH, EXECUTION_LEASE_SUPERSEDED, type EgressGrant, type EgressGrantAuditBody, type EgressGrantBodyParseResult, type EgressGrantConsumeBody, type EgressGrantCredentialMaterial, type EgressGrantFileRuntime, type EgressGrantScopeKind, type EmitInboxMessageData, type EmitInboxMessageRequest, type ExecutionAnchor, type ExecutionBinding, type ExecutionBindingConnection, type ExecutionContextCompiled, type ExecutionContextData, type ExecutionLease, type ExecutionWriteScope, 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_EXECUTION_EVENT_TYPES, 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 FlowExecutionScope, type FlowRunExecutionEventBody, type FlowRunExecutionEventData, type FlowRunExecutionEventType, type FlowRunInputFactBody, type FlowRunResultData, type FlowRunResultRequestBody, type FlowRuntimeCredentialBody, type FlowWaitResolvedEvent, type GenerationCallbackErrorCode, 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_CANCELLED_BY_RESET, 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, INBOX_MESSAGE_EMISSION_ROUTE_SUBPATH, INBOX_MESSAGE_EXECUTION_ERROR_REGISTRY, 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 InboxMessageExecutionErrorCode, 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, RUN_DISPATCH_UNAVAILABLE, type RegisterFlowRunWaitBody, type RegisterFlowRunWaitData, type RenderedHumanInputPrompt, type RuntimeCredentialSession, type RuntimeCredentialSessionNetwork, type RuntimeCredentialSessionScopeKind, type RuntimeNetwork, type RuntimeNetworkModel, SERVER_EXECUTION_CONTRACT_VERSION, STEP_RESULT_ROUTE_SUBPATH, type ServerExecutionContractVersion, type ServerExecutionError, type ServerExecutionErrorEnvelope, 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, WAIT_EXECUTION_SUPERSEDED, 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_RESTART_INSTANCE_UNAVAILABLE, WORKFLOW_RESTART_REJECTED, WORKFLOW_RESTART_REQUEST_INVALID, WORKFLOW_RESTART_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 WorkflowDispatchRestartRequest, type WorkflowDispatchRestartResponse, type WorkflowRestartErrorCode, acquireExecutionLeasePath, completeEventWaitPath, deploymentHandshakeProbePayload, deploymentHandshakeResponseProofPayload, discoveryInvocationEgressGrantPath, discoveryInvocationRuntimeCredentialPath, egressGrantAuditPath, egressGrantConsumePath, executionContextPath, flowRunEgressGrantPath, flowRunExecutionEventsPath, flowRunResultPath, flowRunRuntimeCredentialPath, flowScriptProtocolAdapterModuleName, handlerBundlesPath, humanInputAcknowledgePath, humanInputExpirePath, humanInputRequestPath, humanInputResolvedEventType, humanInputsPath, inboxMessageEmissionPath, internalFileAccessPath, internalFileCompletePath, internalFileContentPath, internalFileStatPath, internalFileUploadSessionPath, internalFilesPath, isValidRequestDigest, parseAcquireExecutionLeaseData, parseAcquireExecutionLeaseRequest, parseCompleteFlowRunWaitBody, parseCompleteFlowRunWaitData, parseContextStateCleanupRequestBody, parseContextStateCleanupResponseData, parseContextStateScope, parseCreateHumanInputBody, parseDiscoveryGrantBody, parseDiscoveryRuntimeCredentialBody, parseEgressGrantAuditBody, parseEgressGrantConsumeBody, parseEgressGrantConsumeData, parseEgressGrantData, parseEmitInboxMessageData, parseEmitInboxMessageRequest, parseExecutionAnchor, parseExecutionContextData, parseExecutionLease, parseExecutionWriteScope, parseFileMetadataData, parseFileRefData, parseFileRuntimeLimits, parseFileUploadSessionData, parseFlowActionGrantBody, parseFlowExecutionScope, 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, parseWorkflowDispatchRestartRequest, parseWorkflowDispatchRestartResponse, pollingTriggerContextPath, pollingTriggerEgressGrantPath, pollingTriggerHandlerBundlesPath, pollingTriggerRuntimeCredentialPath, pollingTriggerTickEventsPath, registerEventWaitPath, requestHasMultipartFileParts, stepResultPath, toolHandlerBundlesPath, toolInvocationEgressGrantPath, toolInvocationRuntimeCredentialPath, webhookProtocolAdapterBundlePath, webhookTriggerContextPath, webhookTriggerDeliveryPath, webhookTriggerEgressGrantPath, webhookTriggerEventsPath, webhookTriggerHandlerBundlesPath, webhookTriggerRearmPath, webhookTriggerRuntimeCredentialPath, wfpUserRuntimeManifestPath };
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 };