@ablehi/server-contract 0.2.1 → 0.2.3

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/edge.d.ts CHANGED
@@ -1,934 +1 @@
1
- declare const SERVER_CONTRACT_VERSION = "0.2.1";
2
- type ServerContractVersion = typeof SERVER_CONTRACT_VERSION;
3
-
4
- declare const FLOW_IR_SCHEMA_VERSION = "flow.ir.v1";
5
- type JsonObject = {
6
- [key: string]: JsonValue;
7
- };
8
- type JsonArray = JsonValue[];
9
- type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
10
- type ValueExpression = JsonValue;
11
- type Mapping = {
12
- [key: string]: ValueExpression;
13
- };
14
- type Operand = string | number | boolean | null;
15
- type Collection = JsonArray | string;
16
- type BooleanExpression = {
17
- and: BooleanExpression[];
18
- } | {
19
- or: BooleanExpression[];
20
- } | {
21
- not: BooleanExpression;
22
- } | {
23
- eq: [Operand, Operand];
24
- } | {
25
- ne: [Operand, Operand];
26
- } | {
27
- in: [Operand, Collection];
28
- } | {
29
- exists: Operand;
30
- };
31
- type TriggerBinding = ScheduleTriggerBinding | IntegrationTriggerBinding | ManualTriggerBinding;
32
- type ScheduleTriggerBinding = {
33
- id: string;
34
- kind: "schedule";
35
- cron: string;
36
- timezone: string;
37
- inputMapping?: Mapping;
38
- };
39
- type IntegrationTriggerBinding = {
40
- id: string;
41
- kind: "integration";
42
- triggerRef: string;
43
- connectionRef: string;
44
- config?: JsonObject;
45
- inputMapping?: Mapping;
46
- dedupeKey?: ValueExpression;
47
- };
48
- type ManualTriggerBinding = {
49
- id: string;
50
- kind: "manual";
51
- label?: string;
52
- };
53
- type NodeCommon = {
54
- id: string;
55
- runIf?: BooleanExpression;
56
- dependsOn?: string[];
57
- };
58
- type ActionNode = NodeCommon & {
59
- kind: "action";
60
- toolRef: string;
61
- connectionRef: string;
62
- inputs: Mapping;
63
- idempotent?: boolean;
64
- retry?: {
65
- on: string[];
66
- limit: number;
67
- backoff: "exponential" | "fixed";
68
- };
69
- timeout?: string;
70
- };
71
- type WaitEventNode = NodeCommon & {
72
- kind: "wait_event";
73
- eventType: string;
74
- correlation: {
75
- key: ValueExpression;
76
- };
77
- timeout: string;
78
- onTimeout: "fail" | string;
79
- };
80
- type SleepNode = NodeCommon & {
81
- kind: "sleep";
82
- duration: string;
83
- };
84
- type HumanInputPrompt = {
85
- title: TextExpression;
86
- body?: TextExpression;
87
- format?: "plain" | "markdown";
88
- };
89
- type HumanInputChoice = {
90
- id: string;
91
- label: string;
92
- style?: "primary" | "secondary" | "danger";
93
- };
94
- type HumanChoiceInput = {
95
- kind: "choice";
96
- choices: HumanInputChoice[];
97
- allowComment?: boolean;
98
- };
99
- type HumanTextInput = {
100
- kind: "text";
101
- multiline?: boolean;
102
- placeholder?: string;
103
- required?: boolean;
104
- };
105
- type HumanFormField = {
106
- id: string;
107
- label: string;
108
- type: "text" | "textarea" | "number" | "boolean" | "select";
109
- required?: boolean;
110
- options?: Array<{
111
- id: string;
112
- label: string;
113
- }>;
114
- };
115
- type HumanFormInput = {
116
- kind: "form";
117
- fields: HumanFormField[];
118
- };
119
- type HumanInputSpec = HumanChoiceInput | HumanTextInput | HumanFormInput;
120
- type HumanInputDeliveryAction = {
121
- id: string;
122
- toolRef: string;
123
- connectionRef: string;
124
- inputs: Mapping;
125
- };
126
- type HumanInputDelivery = {
127
- actions?: HumanInputDeliveryAction[];
128
- };
129
- type HumanInputNode = NodeCommon & {
130
- kind: "human_input";
131
- prompt: HumanInputPrompt;
132
- input: HumanInputSpec;
133
- timeout: string;
134
- delivery?: HumanInputDelivery;
135
- };
136
- type FlowNode = ActionNode | WaitEventNode | SleepNode | HumanInputNode;
137
- type TextExpression = string;
138
- type FlowCompositionSpec = {
139
- title: TextExpression;
140
- detail: {
141
- format: "markdown";
142
- body: TextExpression;
143
- data?: Mapping;
144
- };
145
- report?: {
146
- title?: TextExpression;
147
- format: "markdown";
148
- body: TextExpression;
149
- data?: Mapping;
150
- };
151
- };
152
- type FlowDefinition = {
153
- flow: string;
154
- triggers?: TriggerBinding[];
155
- inputSchema: JsonObject;
156
- nodes: FlowNode[];
157
- outputs?: Mapping;
158
- composition: FlowCompositionSpec;
159
- };
160
- type FlowIrValidationCode = "INVALID_IR_SHAPE" | "INVALID_NODE_ID" | "INVALID_TRIGGER_ID" | "INVALID_TRIGGER_KIND" | "INVALID_CRON" | "INVALID_NODE_KIND" | "MISSING_NODE_FIELD" | "INVALID_EVENT_TYPE" | "INVALID_DURATION" | "INVALID_RETRY" | "INVALID_HUMAN_INPUT" | "DUPLICATE_NODE_ID" | "DUPLICATE_TRIGGER_ID" | "DANGLING_DEPENDS_ON" | "DATA_REF_TARGET_MISSING" | "DATA_REF_TARGET_NO_OUTPUT" | "DATA_REF_FORWARD_REFERENCE" | "CYCLE_DETECTED" | "INVALID_ON_TIMEOUT_TARGET" | "INVALID_DSL_OPERATOR" | "INVALID_DSL_OPERAND" | "INVALID_DSL_ARITY" | "TRIGGER_REF_SCOPE_VIOLATION" | "NODE_REF_SCOPE_VIOLATION" | "HUMAN_INPUT_REF_SCOPE_VIOLATION" | "NOW_REF_SCOPE_VIOLATION" | "UNKNOWN_REF_ROOT" | "MALFORMED_TEMPLATE_REFERENCE" | "MALFORMED_NOW_EXPR";
161
- type FlowIrValidationIssue = {
162
- code: FlowIrValidationCode;
163
- message: string;
164
- path: string;
165
- };
166
- type FlowIrValidationResult = {
167
- valid: boolean;
168
- issues: FlowIrValidationIssue[];
169
- };
170
-
171
- declare const FLOW_INTERPRETER_CONTRACT_VERSION = "flow.interp.v2";
172
- type FlowInterpreterContractVersion = typeof FLOW_INTERPRETER_CONTRACT_VERSION;
173
-
174
- type ContractParseResult<T> = {
175
- ok: true;
176
- value: T;
177
- } | {
178
- ok: false;
179
- reason: string;
180
- };
181
- declare function contractParseOk<T>(value: T): ContractParseResult<T>;
182
- declare function contractParseFail<T>(reason: string): ContractParseResult<T>;
183
- declare function isJsonRecord(value: unknown): value is Record<string, unknown>;
184
-
185
- type AblehiSuccess<T> = {
186
- ok: true;
187
- data: T;
188
- };
189
- type AblehiFailure = {
190
- ok: false;
191
- error: {
192
- code: string;
193
- message: string;
194
- issues?: unknown;
195
- retryable?: boolean;
196
- };
197
- };
198
- type AblehiEnvelope<T> = AblehiSuccess<T> | AblehiFailure;
199
-
200
- declare const INTERNAL_FLOW_RUNS_ROUTE_PREFIX = "/internal/flow-runs";
201
- declare const EXECUTION_CONTEXT_ROUTE_SUBPATH = "/:flowRunId/execution-context";
202
- declare function executionContextPath(flowRunId: string): string;
203
- type ExecutionBindingConnection = {
204
- installationId: string;
205
- connectionRef: string;
206
- connectionId: string;
207
- authType: string;
208
- connectionConfig?: Record<string, unknown>;
209
- };
210
- type ExecutionBinding<TToolDescriptor = Record<string, unknown>, TIntegrationDescriptor = Record<string, unknown>> = {
211
- nodeId: string;
212
- toolRef: string;
213
- toolDescriptor: TToolDescriptor;
214
- integrationDescriptor: TIntegrationDescriptor;
215
- connection: ExecutionBindingConnection;
216
- };
217
- type FileRuntimeLimits = {
218
- fileMaxBytes: number;
219
- fileReadMaxBytes: number;
220
- inlineMultipartBytesMax: number;
221
- };
222
- type FlowExecutionContextFileRuntime = {
223
- limits: FileRuntimeLimits;
224
- } | null;
225
- type ExecutionContextCompiled = {
226
- irSchemaVersion: string;
227
- interpreterContractVersion: string;
228
- ir: FlowDefinition;
229
- compiledArtifactId: string;
230
- };
231
- type ExecutionContextData<TToolDescriptor = Record<string, unknown>, TIntegrationDescriptor = Record<string, unknown>> = {
232
- flowRunId: string;
233
- workspaceId: string;
234
- input: Record<string, unknown>;
235
- compiled: ExecutionContextCompiled;
236
- executionBindings: Array<ExecutionBinding<TToolDescriptor, TIntegrationDescriptor>>;
237
- fileRuntime: FlowExecutionContextFileRuntime;
238
- };
239
- declare function parseFileRuntimeLimits(value: unknown): ContractParseResult<FileRuntimeLimits>;
240
- declare function parseExecutionContextData(data: unknown): ContractParseResult<ExecutionContextData>;
241
-
242
- declare const STEP_RESULT_ROUTE_SUBPATH = "/:flowRunId/steps/:nodeId/result";
243
- declare const FLOW_RUN_RESULT_ROUTE_SUBPATH = "/:flowRunId/result";
244
- declare const EVENT_WAIT_ROUTE_SUBPATH = "/:flowRunId/event-waits/:nodeId";
245
- declare function stepResultPath(flowRunId: string, nodeId: string): string;
246
- declare function flowRunResultPath(flowRunId: string): string;
247
- declare function eventWaitPath(flowRunId: string, nodeId: string): string;
248
- type StepRecordResult = {
249
- status: "succeeded";
250
- output: unknown;
251
- } | {
252
- status: "failed";
253
- errorCode: string;
254
- issues?: unknown;
255
- };
256
- type StepRecordBody = {
257
- attempt: number;
258
- result: StepRecordResult;
259
- durationMs?: number;
260
- };
261
- type StepRecordData = {
262
- flowRunId: string;
263
- nodeId: string;
264
- recorded: "succeeded" | "failed";
265
- };
266
- type StepRecordBodyParseResult = {
267
- ok: true;
268
- value: StepRecordBody;
269
- } | {
270
- ok: false;
271
- kind: "validation" | "step_result_invalid";
272
- reason: string;
273
- };
274
- declare function parseStepRecordBody(body: unknown): StepRecordBodyParseResult;
275
- declare function parseStepRecordData(data: unknown): ContractParseResult<StepRecordData>;
276
- type RenderedFlowComposition = {
277
- title: string;
278
- detail: {
279
- format: "markdown";
280
- body: string;
281
- data?: unknown;
282
- };
283
- report?: {
284
- origin: "flow_node";
285
- title?: string;
286
- format: "markdown";
287
- body: string;
288
- data?: unknown;
289
- };
290
- };
291
- type FlowRunResultRequestBody = {
292
- status: "succeeded";
293
- output?: unknown;
294
- composition?: RenderedFlowComposition;
295
- } | {
296
- status: "failed";
297
- error: {
298
- code: string;
299
- message: string;
300
- };
301
- };
302
- type ParsedFlowRunResultBody = {
303
- status: "succeeded" | "failed";
304
- output?: unknown;
305
- error?: {
306
- code: string;
307
- message: string;
308
- };
309
- composition?: unknown;
310
- };
311
- declare function parseFlowRunResultBody(body: unknown): ContractParseResult<ParsedFlowRunResultBody>;
312
- type FlowRunResultData = {
313
- run: unknown;
314
- };
315
- declare function parseFlowRunResultData(data: unknown): ContractParseResult<FlowRunResultData>;
316
- type RegisterFlowRunWaitBody = {
317
- eventType: string;
318
- correlationKey: string;
319
- };
320
- type CompleteFlowRunWaitBody = {
321
- eventType: string;
322
- correlationKey: string;
323
- outcome: "received" | "timed_out";
324
- eventId?: string;
325
- };
326
- type RegisterFlowRunWaitData = {
327
- registered: true;
328
- };
329
- type CompleteFlowRunWaitData = {
330
- completed: true;
331
- };
332
- declare function parseRegisterFlowRunWaitBody(body: unknown): ContractParseResult<RegisterFlowRunWaitBody>;
333
- declare function parseCompleteFlowRunWaitBody(body: unknown): ContractParseResult<CompleteFlowRunWaitBody>;
334
- declare function parseRegisterFlowRunWaitData(data: unknown): ContractParseResult<RegisterFlowRunWaitData>;
335
-
336
- declare const INTERNAL_FLOW_VERSIONS_ROUTE_PREFIX = "/internal/flow-versions";
337
- declare const HANDLER_BUNDLES_ROUTE_SUBPATH = "/:flowVersionId/handler-bundles";
338
- declare const INTERNAL_INSTALLATIONS_ROUTE_PREFIX = "/internal/installations";
339
- declare const TOOL_HANDLER_BUNDLES_ROUTE_SUBPATH = "/:installationId/handler-bundles";
340
- declare function handlerBundlesPath(flowVersionId: string, compiledArtifactId: string): string;
341
- declare function toolHandlerBundlesPath(args: {
342
- installationId: string;
343
- workspaceId: string;
344
- artifactDigest: string;
345
- }): string;
346
- type RuntimeNetworkModel = "managed_only" | "managed_plus_unmanaged_sdk";
347
- type RuntimeNetwork = {
348
- networkModel: RuntimeNetworkModel;
349
- apiHosts: string[];
350
- authHosts: string[];
351
- httpsOnly: boolean;
352
- };
353
- type HandlerBundleModule = {
354
- entry: string;
355
- files: Record<string, string>;
356
- };
357
- type HandlerBundle = {
358
- toolRef: string;
359
- kind: "request";
360
- runtimeNetwork: RuntimeNetwork;
361
- } | {
362
- toolRef: string;
363
- kind: "handler";
364
- module: HandlerBundleModule;
365
- runtimeNetwork: RuntimeNetwork;
366
- };
367
- type HandlerBundlesData = {
368
- flowVersionId: string;
369
- compiledArtifactId: string;
370
- bundles: HandlerBundle[];
371
- };
372
- type ToolHandlerBundlesData = {
373
- installationId: string;
374
- artifactDigest: string;
375
- bundles: HandlerBundle[];
376
- };
377
- type HandlerBundlesParseResult<T> = {
378
- ok: true;
379
- value: T;
380
- } | {
381
- ok: false;
382
- kind: "shape" | "runtime_network";
383
- reason: string;
384
- };
385
- declare function parseRuntimeNetwork(value: unknown): HandlerBundlesParseResult<RuntimeNetwork>;
386
- declare function parseHandlerBundlesData(data: unknown): HandlerBundlesParseResult<HandlerBundlesData>;
387
- declare function parseToolHandlerBundlesData(data: unknown): HandlerBundlesParseResult<ToolHandlerBundlesData>;
388
- declare function parseHandlerBundle(value: unknown): HandlerBundlesParseResult<HandlerBundle>;
389
-
390
- declare const INTERNAL_WEBHOOK_TRIGGER_INSTANCES_ROUTE_PREFIX = "/internal/webhook-trigger-instances";
391
- declare const WEBHOOK_TRIGGER_CONTEXT_ROUTE_SUBPATH = "/:triggerInstanceId/context";
392
- declare const WEBHOOK_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH = "/:triggerInstanceId/handler-bundles";
393
- declare const WEBHOOK_TRIGGER_DELIVERY_ROUTE_SUBPATH = "/:triggerInstanceId/deliveries/:deliveryId";
394
- declare const WEBHOOK_TRIGGER_EVENTS_ROUTE_SUBPATH = "/:triggerInstanceId/events";
395
- declare const WEBHOOK_TRIGGER_REARM_ROUTE_SUBPATH = "/:triggerInstanceId/rearm";
396
- declare const WEBHOOK_TRIGGER_STORE_ROUTE_SUBPATH = "/:triggerInstanceId/store/:namespace/:key";
397
- declare function webhookTriggerContextPath(triggerInstanceId: string, artifactDigest: string): string;
398
- declare function webhookTriggerHandlerBundlesPath(triggerInstanceId: string, artifactDigest: string): string;
399
- declare function webhookTriggerDeliveryPath(triggerInstanceId: string, deliveryId: string): string;
400
- declare function webhookTriggerEventsPath(triggerInstanceId: string): string;
401
- declare function webhookTriggerRearmPath(triggerInstanceId: string): string;
402
- declare function webhookTriggerStorePath(triggerInstanceId: string, namespace: string, key: string): string;
403
- declare const WEBHOOK_PROTOCOL_ADAPTER_BUNDLE_ROUTE_SUBPATH = "/:installationId/webhook-protocol-adapter-bundle";
404
- declare function webhookProtocolAdapterBundlePath(args: {
405
- installationId: string;
406
- workspaceId: string;
407
- artifactDigest: string;
408
- }): string;
409
- type WebhookTriggerVerificationMethod = "header_exact_match" | "hmac_sha256" | "hmac_sha1";
410
- type PackageWebhookTriggerRuntimeDescriptor = {
411
- trigger_id: string;
412
- trigger_ref: string;
413
- type: "webhook";
414
- webhook: {
415
- verification_method: WebhookTriggerVerificationMethod;
416
- signature_header: string;
417
- timestamp_header?: string;
418
- tolerance_seconds?: number;
419
- binding_policy: "per_instance";
420
- endpoint_mode: "instance";
421
- ack_mode: "platform_managed";
422
- event_handler_module: string;
423
- enable_handler_module: string;
424
- disable_handler_module: string;
425
- renew_handler_module?: string;
426
- };
427
- };
428
- type TriggerConnectionInfo = {
429
- connectionId: string;
430
- connectionRef: string;
431
- integrationRef: string;
432
- authType: "oauth2" | "oauth1" | "api_key" | "basic_auth" | "bearer" | "jwt" | "custom" | "two_step";
433
- connectionConfig?: Record<string, unknown>;
434
- };
435
- type WebhookWatcherContext = {
436
- artifactDigest: string;
437
- triggerRef: string;
438
- triggerName: string;
439
- integrationRef: string;
440
- inputs: Record<string, unknown>;
441
- connection: TriggerConnectionInfo | null;
442
- runtime: PackageWebhookTriggerRuntimeDescriptor;
443
- watcher?: {
444
- instanceId: string;
445
- generation: number;
446
- };
447
- };
448
- type WebhookDelivery = {
449
- deliveryId: string;
450
- receivedAt: string;
451
- request: {
452
- method: "POST";
453
- headers: Record<string, string>;
454
- rawBody: string;
455
- };
456
- };
457
- type TriggerHandlerModule = {
458
- specifier: string;
459
- source: string;
460
- };
461
- type TriggerHandlerBundlesData = {
462
- triggerRef: string;
463
- artifactDigest: string;
464
- modules: TriggerHandlerModule[];
465
- runtimeNetwork: RuntimeNetwork;
466
- };
467
- type WebhookPublishEvent = {
468
- eventId: string;
469
- occurredAt: string;
470
- dedupeKey?: string;
471
- payload: Record<string, unknown>;
472
- };
473
- type WebhookPublishEventsBody = {
474
- deliveryId: string;
475
- events: WebhookPublishEvent[];
476
- };
477
- type WebhookPublishEventsData = {
478
- deliveryId: string;
479
- results: {
480
- eventId: string;
481
- flowRunId: string;
482
- status: "dispatched" | "duplicate";
483
- }[];
484
- };
485
- type WebhookRearmBody = {
486
- expectedWatcherInstanceId: string;
487
- };
488
- type WebhookRearmData = {
489
- rearmed: boolean;
490
- };
491
- type WebhookStorePutBody = {
492
- value: unknown;
493
- };
494
- type WebhookStoreGetData = {
495
- found: boolean;
496
- value: unknown;
497
- };
498
- type WebhookProtocolAdapterModule = {
499
- specifier: string;
500
- source: string;
501
- };
502
- declare const WEBHOOK_PROTOCOL_ADAPTER_MODULE = "modules/webhook/protocol-adapter.js";
503
- type WebhookProtocolAdapterBundleData = {
504
- protocolId: string;
505
- artifactDigest: string;
506
- module: typeof WEBHOOK_PROTOCOL_ADAPTER_MODULE;
507
- modules: WebhookProtocolAdapterModule[];
508
- };
509
- declare function flowScriptProtocolAdapterModuleName(artifactDigest: string): string;
510
- declare function parseWebhookWatcherContext(data: unknown): ContractParseResult<WebhookWatcherContext>;
511
- declare function parseWebhookDelivery(data: unknown): ContractParseResult<WebhookDelivery>;
512
- declare function parseTriggerHandlerBundlesData(data: unknown): HandlerBundlesParseResult<TriggerHandlerBundlesData>;
513
- declare function parseWebhookStoreValue(data: unknown): ContractParseResult<unknown>;
514
- declare function parseWebhookPublishEventsBody(body: unknown): ContractParseResult<WebhookPublishEventsBody>;
515
- declare function parseWebhookRearmBody(body: unknown): ContractParseResult<WebhookRearmBody>;
516
- declare function parseWebhookStorePutBody(body: unknown): ContractParseResult<WebhookStorePutBody>;
517
-
518
- declare const INTERNAL_POLLING_TRIGGER_INSTANCES_ROUTE_PREFIX = "/internal/polling-trigger-instances";
519
- declare const POLLING_TRIGGER_CONTEXT_ROUTE_SUBPATH = "/:pollingInstanceId/context";
520
- declare const POLLING_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH = "/:pollingInstanceId/handler-bundles";
521
- declare const POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH = "/:pollingInstanceId/ticks/:tickId/events";
522
- declare const POLLING_TRIGGER_STORE_ROUTE_SUBPATH = "/:pollingInstanceId/store/:namespace/:key";
523
- declare function pollingTriggerContextPath(pollingInstanceId: string, artifactDigest: string, tickId: string): string;
524
- declare function pollingTriggerHandlerBundlesPath(pollingInstanceId: string, artifactDigest: string): string;
525
- declare function pollingTriggerTickEventsPath(pollingInstanceId: string, tickId: string): string;
526
- declare function pollingTriggerStorePath(pollingInstanceId: string, namespace: string, key: string): string;
527
- type PackagePollingTriggerRuntimeDescriptor = {
528
- trigger_id: string;
529
- trigger_ref: string;
530
- type: "polling";
531
- polling: {
532
- schedule: {
533
- type: "interval";
534
- every_seconds: number;
535
- };
536
- dedup: {
537
- strategy: "cursor" | "hash" | "id_field";
538
- cursor_field?: string;
539
- id_field?: string;
540
- };
541
- run_handler_module: string;
542
- };
543
- };
544
- type PollingTriggerContext = {
545
- artifactDigest: string;
546
- triggerRef: string;
547
- triggerName: string;
548
- integrationRef: string;
549
- inputs: Record<string, unknown>;
550
- connection: TriggerConnectionInfo | null;
551
- runtime: PackagePollingTriggerRuntimeDescriptor;
552
- tick: {
553
- tickId: string;
554
- scheduledAt: string;
555
- attempt: number;
556
- };
557
- limits: {
558
- maxEventsPerTick: number;
559
- };
560
- };
561
- type PollingPublishEvent = {
562
- eventId: string;
563
- occurredAt?: string;
564
- dedupeKey?: string;
565
- payload: Record<string, unknown>;
566
- };
567
- type PollingPublishBody = {
568
- events: PollingPublishEvent[];
569
- nextCursor?: string | null;
570
- };
571
- type PublishPollingTickEventResult = {
572
- eventId: string;
573
- dedupeKey: string;
574
- duplicate: boolean;
575
- flowRunId: string | null;
576
- };
577
- type PublishPollingTickEventsData = {
578
- tickId: string;
579
- cursorUpdated: boolean;
580
- results: PublishPollingTickEventResult[];
581
- };
582
-
583
- declare function parsePollingTriggerContext(data: unknown): ContractParseResult<PollingTriggerContext>;
584
- declare function parsePollingPublishBody(body: unknown): ContractParseResult<PollingPublishBody>;
585
- declare function parsePublishPollingTickEventsData(data: unknown): ContractParseResult<PublishPollingTickEventsData>;
586
-
587
- declare const INTERNAL_EGRESS_GRANTS_ROUTE_PREFIX = "/internal/egress-grants";
588
- declare const INTERNAL_TOOL_INVOCATIONS_ROUTE_PREFIX = "/internal/tool-invocations";
589
- declare const FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH = "/:flowRunId/egress-grant";
590
- declare const TOOL_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH = "/:invocationId/egress-grant";
591
- declare const POLLING_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH = "/:pollingInstanceId/egress-grant";
592
- declare const WEBHOOK_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH = "/:triggerInstanceId/egress-grant";
593
- declare const EGRESS_GRANT_CONSUME_ROUTE_SUBPATH = "/:grantId/consume";
594
- declare const EGRESS_GRANT_AUDIT_ROUTE_SUBPATH = "/:grantId/audit";
595
- declare const flowRunEgressGrantPath: (flowRunId: string) => string;
596
- declare const toolInvocationEgressGrantPath: (invocationId: string) => string;
597
- declare const pollingTriggerEgressGrantPath: (pollingInstanceId: string) => string;
598
- declare const webhookTriggerEgressGrantPath: (triggerInstanceId: string) => string;
599
- declare const egressGrantConsumePath: (grantId: string) => string;
600
- declare const egressGrantAuditPath: (grantId: string) => string;
601
- declare const EGRESS_GRANT_SCOPE_KINDS: readonly ["flow_action", "single_tool", "polling_trigger", "webhook_trigger"];
602
- type EgressGrantScopeKind = (typeof EGRESS_GRANT_SCOPE_KINDS)[number];
603
- type EgressGrantFileRuntime = {
604
- baseUrl: string;
605
- token: string;
606
- expiresAt: string;
607
- limits: {
608
- fileReadMaxBytes: number;
609
- inlineMultipartBytesMax: number;
610
- };
611
- };
612
- type EgressGrant<TDescriptor = unknown> = {
613
- grantId: string;
614
- scopeKind: EgressGrantScopeKind;
615
- scopeId: string;
616
- workspaceId: string;
617
- installationId: string;
618
- connectionId: string | null;
619
- artifactDigest: string;
620
- descriptorHash: string;
621
- requestDigest: string;
622
- issuedAt: string;
623
- expiresAt: string;
624
- networkPolicy: unknown;
625
- descriptor: TDescriptor;
626
- connection: unknown | null;
627
- credential: unknown | null;
628
- fileRuntime?: EgressGrantFileRuntime;
629
- signature: string;
630
- };
631
- type EgressGrantConsumeBody = {
632
- scopeKind: EgressGrantScopeKind;
633
- scopeId: string;
634
- requestDigest: string;
635
- };
636
- type EgressGrantAuditBody = {
637
- scopeKind: EgressGrantScopeKind;
638
- scopeId: string;
639
- providerHost: string;
640
- status?: number;
641
- durationMs: number;
642
- requestBytes?: number;
643
- responseBytes?: number;
644
- errorCode?: string;
645
- };
646
- type FlowActionGrantBody = {
647
- nodeId: string;
648
- requestDigest: string;
649
- requestHasMultipartFiles: boolean;
650
- };
651
- type SingleToolGrantBody = {
652
- requestDigest: string;
653
- };
654
- type PollingTriggerGrantBody = {
655
- tickId: string;
656
- requestDigest: string;
657
- };
658
- type WebhookTriggerGrantBody = {
659
- phase: "lifecycle" | "handler";
660
- lifecycle?: "enable" | "disable" | "renew";
661
- requestDigest: string;
662
- };
663
- declare function isValidRequestDigest(value: unknown): value is string;
664
- declare function requestHasMultipartFileParts(request: unknown): boolean;
665
- type EgressGrantBodyParseResult<T> = {
666
- ok: true;
667
- value: T;
668
- } | {
669
- ok: false;
670
- kind: "shape" | "request_digest";
671
- reason: string;
672
- };
673
- declare function parseFlowActionGrantBody(body: unknown): EgressGrantBodyParseResult<FlowActionGrantBody>;
674
- declare function parseSingleToolGrantBody(body: unknown): EgressGrantBodyParseResult<SingleToolGrantBody>;
675
- declare function parsePollingTriggerGrantBody(body: unknown): EgressGrantBodyParseResult<PollingTriggerGrantBody>;
676
- declare function parseWebhookTriggerGrantBody(body: unknown): EgressGrantBodyParseResult<WebhookTriggerGrantBody>;
677
- declare function parseEgressGrantConsumeBody(body: unknown): EgressGrantBodyParseResult<EgressGrantConsumeBody>;
678
- declare function parseEgressGrantAuditBody(body: unknown): EgressGrantBodyParseResult<EgressGrantAuditBody>;
679
- declare function parseEgressGrantData(data: unknown): ContractParseResult<EgressGrant<unknown>>;
680
- declare function parseEgressGrantConsumeData(data: unknown): ContractParseResult<{
681
- consumed: true;
682
- }>;
683
-
684
- declare const FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH = "/:flowRunId/runtime-credential";
685
- declare const TOOL_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH = "/:invocationId/runtime-credential";
686
- declare const POLLING_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH = "/:pollingInstanceId/runtime-credential";
687
- declare const WEBHOOK_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH = "/:triggerInstanceId/runtime-credential";
688
- declare const flowRunRuntimeCredentialPath: (flowRunId: string) => string;
689
- declare const toolInvocationRuntimeCredentialPath: (invocationId: string) => string;
690
- declare const pollingTriggerRuntimeCredentialPath: (pollingInstanceId: string) => string;
691
- declare const webhookTriggerRuntimeCredentialPath: (triggerInstanceId: string) => string;
692
- declare const RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS: readonly ["flow_action", "tool_invoke", "polling_trigger", "webhook_trigger"];
693
- type RuntimeCredentialSessionScopeKind = (typeof RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS)[number];
694
- type RuntimeCredentialSessionNetwork = {
695
- networkModel: "managed_plus_unmanaged_sdk";
696
- apiHosts: string[];
697
- authHosts: string[];
698
- httpsOnly: true;
699
- };
700
- type RuntimeCredentialSession<TCredential = unknown> = {
701
- sessionId: string;
702
- scopeKind: RuntimeCredentialSessionScopeKind;
703
- scopeId: string;
704
- workspaceId: string;
705
- installationId: string;
706
- artifactDigest: string;
707
- descriptorHash: string;
708
- connectionId: string;
709
- connectionRef: string;
710
- authType: string;
711
- credential: TCredential;
712
- network: RuntimeCredentialSessionNetwork;
713
- expiresAt: string;
714
- };
715
- type FlowRuntimeCredentialBody = {
716
- nodeId: string;
717
- };
718
- type PollingRuntimeCredentialBody = {
719
- tickId: string;
720
- };
721
- type WebhookRuntimeCredentialBody = {
722
- executionKind: "event_handler" | "lifecycle";
723
- deliveryId?: string;
724
- lifecycleOperation?: "enable" | "disable" | "renew";
725
- };
726
- declare function parseFlowRuntimeCredentialBody(body: unknown): ContractParseResult<FlowRuntimeCredentialBody>;
727
- declare function parseSingleToolRuntimeCredentialBody(body: unknown): ContractParseResult<null>;
728
- declare function parsePollingRuntimeCredentialBody(body: unknown): ContractParseResult<PollingRuntimeCredentialBody>;
729
- declare function parseWebhookRuntimeCredentialBody(body: unknown): ContractParseResult<WebhookRuntimeCredentialBody>;
730
- declare function parseRuntimeCredentialSessionCredential(data: unknown): ContractParseResult<Record<string, unknown>>;
731
-
732
- declare const INTERNAL_FILES_ROUTE_PREFIX = "/internal/files";
733
- declare const FILE_STAT_ROUTE_SUBPATH = "/:fileId/stat";
734
- declare const FILE_CONTENT_ROUTE_SUBPATH = "/:fileId/content";
735
- type FileRuntimeScopeKind = "flow_run" | "tool_invocation";
736
- type FileRuntimeScope = {
737
- scopeKind: FileRuntimeScopeKind;
738
- scopeId: string;
739
- };
740
- type FileRefData = {
741
- file_id: string;
742
- name: string;
743
- mime_type?: string;
744
- size_bytes: number;
745
- created_at: string;
746
- expires_at: string;
747
- sha256?: string;
748
- source?: string;
749
- };
750
- declare const internalFilesPath: () => string;
751
- declare const internalFileStatPath: (fileId: string, scope: FileRuntimeScope) => string;
752
- declare const internalFileContentPath: (fileId: string, scope: FileRuntimeScope) => string;
753
- declare function parseFileRefData(data: unknown): ContractParseResult<FileRefData>;
754
-
755
- declare const HUMAN_INPUTS_ROUTE_SUBPATH = "/:flowRunId/human-inputs";
756
- declare const HUMAN_INPUT_REQUEST_ROUTE_SUBPATH = "/:flowRunId/human-inputs/:requestId";
757
- declare const HUMAN_INPUT_EXPIRE_ROUTE_SUBPATH = "/:flowRunId/human-inputs/:requestId/expire";
758
- declare const HUMAN_INPUT_ACKNOWLEDGE_ROUTE_SUBPATH = "/:flowRunId/human-inputs/:requestId/acknowledge";
759
- declare const humanInputsPath: (flowRunId: string) => string;
760
- declare const humanInputRequestPath: (flowRunId: string, requestId: string) => string;
761
- declare const humanInputExpirePath: (flowRunId: string, requestId: string) => string;
762
- declare const humanInputAcknowledgePath: (flowRunId: string, requestId: string) => string;
763
- declare const HUMAN_INPUT_RESOLVED_EVENT_PREFIX = "human_input_resolved";
764
- declare function humanInputResolvedEventType(requestId: string): string;
765
- type HumanInputResolvedEvent = {
766
- requestId: string;
767
- flowRunId: string;
768
- nodeId: string;
769
- status: "submitted" | "expired";
770
- };
771
- type RenderedHumanInputPrompt = {
772
- title: string;
773
- body?: string;
774
- format?: "plain" | "markdown";
775
- };
776
- type PartiallyRenderedValue = {
777
- kind: "literal";
778
- value: unknown;
779
- } | {
780
- kind: "array";
781
- items: PartiallyRenderedValue[];
782
- } | {
783
- kind: "object";
784
- entries: Record<string, PartiallyRenderedValue>;
785
- } | {
786
- kind: "human_input_ref";
787
- path: string;
788
- } | {
789
- kind: "template";
790
- parts: PartiallyRenderedTemplatePart[];
791
- };
792
- type PartiallyRenderedTemplatePart = {
793
- kind: "literal";
794
- value: string;
795
- } | {
796
- kind: "human_input_ref";
797
- path: string;
798
- };
799
- type PartiallyRenderedMapping = Record<string, PartiallyRenderedValue>;
800
- type PartiallyRenderedHumanInputDelivery = {
801
- actions?: Array<{
802
- id: string;
803
- inputs: PartiallyRenderedMapping;
804
- }>;
805
- };
806
- type CreateHumanInputRequestBody = {
807
- nodeId: string;
808
- renderedPrompt: RenderedHumanInputPrompt;
809
- input: HumanInputSpec;
810
- partiallyRenderedDelivery?: PartiallyRenderedHumanInputDelivery;
811
- timeout: string;
812
- expiresAt: string;
813
- };
814
- type HumanInputResponse = {
815
- kind: "choice";
816
- choiceId: string;
817
- comment?: string;
818
- } | {
819
- kind: "text";
820
- text: string;
821
- } | {
822
- kind: "form";
823
- values: Record<string, unknown>;
824
- };
825
- type HumanInputActor = {
826
- type: "user";
827
- userId: string;
828
- } | {
829
- type: "api_key";
830
- apiKeyId: string;
831
- } | {
832
- type: "anonymous";
833
- } | {
834
- type: "provider";
835
- provider: string;
836
- providerActorId?: string;
837
- } | {
838
- type: "system";
839
- };
840
- type HumanInputOutput = {
841
- status: "submitted";
842
- response: HumanInputResponse;
843
- actor: Exclude<HumanInputActor, {
844
- type: "system";
845
- }>;
846
- submissionSource: string;
847
- submittedAt: string;
848
- } | {
849
- status: "expired";
850
- actor: {
851
- type: "system";
852
- };
853
- expiredAt: string;
854
- };
855
- type HumanInputRequestView = {
856
- id: string;
857
- workspaceId: string;
858
- flowRunId: string;
859
- nodeId: string;
860
- status: "pending" | "submitted" | "expired" | "cancelled";
861
- inputKind: string;
862
- timeout: string;
863
- expiresAt: string;
864
- createdAt: string;
865
- updatedAt: string;
866
- output: HumanInputOutput | null;
867
- };
868
- declare function parseCreateHumanInputBody(body: unknown): ContractParseResult<CreateHumanInputRequestBody>;
869
- declare function parseHumanInputRequestViewData(data: unknown): ContractParseResult<HumanInputRequestView>;
870
- declare function parseHumanInputCreateData(data: unknown): ContractParseResult<{
871
- created: boolean;
872
- request: HumanInputRequestView;
873
- }>;
874
- declare function parseHumanInputAcknowledgeData(data: unknown): ContractParseResult<{
875
- acknowledged: true;
876
- }>;
877
-
878
- declare const WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION = "ablehi-wfp-user-runtime-manifest/v1";
879
- type WfpUserRuntimeManifest = {
880
- formatVersion: typeof WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION;
881
- runtimeContractVersion: string;
882
- sha256: string;
883
- sourceRevision: string;
884
- };
885
- declare const WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION = "unknown";
886
- declare function wfpUserRuntimeManifestPath(bundlePath: string): string;
887
-
888
- declare const DEPLOYMENT_HANDSHAKE_ROUTE = "/internal/deployment-handshake";
889
- type DeploymentHandshakeRequestBody = {
890
- nonce: string;
891
- timestamp: string;
892
- contractVersion: string;
893
- dispatchNamespace: string;
894
- probe: string;
895
- };
896
- type DeploymentHandshakeData = {
897
- nonce: string;
898
- contractVersion: string;
899
- dispatchNamespace: string;
900
- capabilities: string[];
901
- proof: string;
902
- };
903
- type DeploymentHandshakeResponse = {
904
- ok: true;
905
- data: DeploymentHandshakeData;
906
- } | {
907
- ok: false;
908
- error: {
909
- code: string;
910
- message: string;
911
- };
912
- };
913
- declare const DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES: readonly ["start", "terminate", "send-event", "start-webhook-watcher", "run-polling-tick", "invoke-tool", "invoke-trigger-handler", "invoke-webhook-protocol-adapter", "deployment-handshake"];
914
- declare const DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES: readonly ["start", "terminate", "send-event", "start-webhook-watcher", "run-polling-tick", "invoke-tool", "invoke-trigger-handler", "invoke-webhook-protocol-adapter", "deployment-handshake"];
915
- declare const HANDSHAKE_REQUEST_INVALID = "HANDSHAKE_REQUEST_INVALID";
916
- declare const HANDSHAKE_SECRET_UNCONFIGURED = "HANDSHAKE_SECRET_UNCONFIGURED";
917
- declare const HANDSHAKE_SECRET_MISMATCH = "HANDSHAKE_SECRET_MISMATCH";
918
- declare const HANDSHAKE_CONTRACT_VERSION_MISMATCH = "HANDSHAKE_CONTRACT_VERSION_MISMATCH";
919
- declare const HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH = "HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH";
920
- declare const HANDSHAKE_CAPABILITY_MISSING = "HANDSHAKE_CAPABILITY_MISSING";
921
- declare function deploymentHandshakeProbePayload(input: {
922
- nonce: string;
923
- timestamp: string;
924
- contractVersion: string;
925
- dispatchNamespace: string;
926
- }): string;
927
- declare function deploymentHandshakeResponseProofPayload(input: {
928
- nonce: string;
929
- contractVersion: string;
930
- dispatchNamespace: string;
931
- capabilities: string[];
932
- }): string;
933
-
934
- export { type AblehiEnvelope, type AblehiFailure, type AblehiSuccess, type ActionNode, type BooleanExpression, type Collection, type CompleteFlowRunWaitBody, type CompleteFlowRunWaitData, type ContractParseResult, type CreateHumanInputRequestBody, DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, DEPLOYMENT_HANDSHAKE_ROUTE, type DeploymentHandshakeData, type DeploymentHandshakeRequestBody, type DeploymentHandshakeResponse, EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, EGRESS_GRANT_SCOPE_KINDS, EVENT_WAIT_ROUTE_SUBPATH, EXECUTION_CONTEXT_ROUTE_SUBPATH, type EgressGrant, type EgressGrantAuditBody, type EgressGrantBodyParseResult, type EgressGrantConsumeBody, type EgressGrantFileRuntime, type EgressGrantScopeKind, type ExecutionBinding, type ExecutionBindingConnection, type ExecutionContextCompiled, type ExecutionContextData, FILE_CONTENT_ROUTE_SUBPATH, FILE_STAT_ROUTE_SUBPATH, FLOW_INTERPRETER_CONTRACT_VERSION, FLOW_IR_SCHEMA_VERSION, FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, FLOW_RUN_RESULT_ROUTE_SUBPATH, FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, type FileRefData, type FileRuntimeLimits, type FileRuntimeScope, type FileRuntimeScopeKind, type FlowActionGrantBody, type FlowCompositionSpec, type FlowDefinition, type FlowExecutionContextFileRuntime, type FlowInterpreterContractVersion, type FlowIrValidationCode, type FlowIrValidationIssue, type FlowIrValidationResult, type FlowNode, type FlowRunResultData, type FlowRunResultRequestBody, type FlowRuntimeCredentialBody, 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_REQUEST_ROUTE_SUBPATH, HUMAN_INPUT_RESOLVED_EVENT_PREFIX, type HandlerBundle, type HandlerBundleModule, type HandlerBundlesData, type HandlerBundlesParseResult, type HumanChoiceInput, type HumanFormField, type HumanFormInput, type HumanInputActor, type HumanInputChoice, type HumanInputDelivery, type HumanInputDeliveryAction, type HumanInputNode, type HumanInputOutput, type HumanInputPrompt, type HumanInputRequestView, type HumanInputResolvedEvent, type HumanInputResponse, type HumanInputSpec, type HumanTextInput, 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 IntegrationTriggerBinding, type JsonArray, type JsonObject, type JsonValue, type ManualTriggerBinding, type Mapping, type NodeCommon, type Operand, 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_STORE_ROUTE_SUBPATH, POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH, type PackagePollingTriggerRuntimeDescriptor, type PackageWebhookTriggerRuntimeDescriptor, type ParsedFlowRunResultBody, type PartiallyRenderedHumanInputDelivery, type PartiallyRenderedMapping, type PartiallyRenderedTemplatePart, type PartiallyRenderedValue, type PollingPublishBody, type PollingPublishEvent, type PollingRuntimeCredentialBody, type WebhookStoreGetData as PollingStoreGetData, type WebhookStorePutBody as PollingStorePutBody, type PollingTriggerContext, type PollingTriggerGrantBody, type PublishPollingTickEventResult, type PublishPollingTickEventsData, RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS, type RegisterFlowRunWaitBody, type RegisterFlowRunWaitData, type RenderedFlowComposition, type RenderedHumanInputPrompt, type RuntimeCredentialSession, type RuntimeCredentialSessionNetwork, type RuntimeCredentialSessionScopeKind, type RuntimeNetwork, type RuntimeNetworkModel, SERVER_CONTRACT_VERSION, STEP_RESULT_ROUTE_SUBPATH, type ScheduleTriggerBinding, type ServerContractVersion, type SingleToolGrantBody, type SleepNode, 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 TextExpression, type ToolHandlerBundlesData, type TriggerBinding, type TriggerConnectionInfo, type TriggerHandlerBundlesData, type TriggerHandlerModule, type ValueExpression, 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, WEBHOOK_TRIGGER_STORE_ROUTE_SUBPATH, WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION, WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION, type WaitEventNode, type WebhookDelivery, type WebhookProtocolAdapterBundleData, type WebhookProtocolAdapterModule, type WebhookPublishEvent, type WebhookPublishEventsBody, type WebhookPublishEventsData, type WebhookRearmBody, type WebhookRearmData, type WebhookRuntimeCredentialBody, type WebhookStoreGetData, type WebhookStorePutBody, type WebhookTriggerGrantBody, type WebhookTriggerVerificationMethod, type WebhookWatcherContext, type WfpUserRuntimeManifest, contractParseFail, contractParseOk, deploymentHandshakeProbePayload, deploymentHandshakeResponseProofPayload, egressGrantAuditPath, egressGrantConsumePath, eventWaitPath, executionContextPath, flowRunEgressGrantPath, flowRunResultPath, flowRunRuntimeCredentialPath, flowScriptProtocolAdapterModuleName, handlerBundlesPath, humanInputAcknowledgePath, humanInputExpirePath, humanInputRequestPath, humanInputResolvedEventType, humanInputsPath, internalFileContentPath, internalFileStatPath, internalFilesPath, isJsonRecord, isValidRequestDigest, parseCompleteFlowRunWaitBody, parseCreateHumanInputBody, parseEgressGrantAuditBody, parseEgressGrantConsumeBody, parseEgressGrantConsumeData, parseEgressGrantData, parseExecutionContextData, parseFileRefData, parseFileRuntimeLimits, parseFlowActionGrantBody, parseFlowRunResultBody, parseFlowRunResultData, parseFlowRuntimeCredentialBody, parseHandlerBundle, parseHandlerBundlesData, parseHumanInputAcknowledgeData, parseHumanInputCreateData, parseHumanInputRequestViewData, parsePollingPublishBody, parsePollingRuntimeCredentialBody, parseWebhookStorePutBody as parsePollingStorePutBody, parseWebhookStoreValue as parsePollingStoreValue, parsePollingTriggerContext, parsePollingTriggerGrantBody, parsePublishPollingTickEventsData, parseRegisterFlowRunWaitBody, parseRegisterFlowRunWaitData, parseRuntimeCredentialSessionCredential, parseRuntimeNetwork, parseSingleToolGrantBody, parseSingleToolRuntimeCredentialBody, parseStepRecordBody, parseStepRecordData, parseToolHandlerBundlesData, parseTriggerHandlerBundlesData, parseWebhookDelivery, parseWebhookPublishEventsBody, parseWebhookRearmBody, parseWebhookRuntimeCredentialBody, parseWebhookStorePutBody, parseWebhookStoreValue, parseWebhookTriggerGrantBody, parseWebhookWatcherContext, pollingTriggerContextPath, pollingTriggerEgressGrantPath, pollingTriggerHandlerBundlesPath, pollingTriggerRuntimeCredentialPath, pollingTriggerStorePath, pollingTriggerTickEventsPath, requestHasMultipartFileParts, stepResultPath, toolHandlerBundlesPath, toolInvocationEgressGrantPath, toolInvocationRuntimeCredentialPath, webhookProtocolAdapterBundlePath, webhookTriggerContextPath, webhookTriggerDeliveryPath, webhookTriggerEgressGrantPath, webhookTriggerEventsPath, webhookTriggerHandlerBundlesPath, webhookTriggerRearmPath, webhookTriggerRuntimeCredentialPath, webhookTriggerStorePath, wfpUserRuntimeManifestPath };
1
+ export { A as AblehiEnvelope, d as AblehiFailure, e as AblehiSuccess, f as ActionNode, B as BooleanExpression, g as Collection, h as CompleteFlowRunWaitBody, i as CompleteFlowRunWaitData, m as ContractParseResult, n as CreateHumanInputRequestBody, D as DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, o as DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, p as DEPLOYMENT_HANDSHAKE_ROUTE, q as DeploymentHandshakeData, r as DeploymentHandshakeRequestBody, s as DeploymentHandshakeResponse, E as EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, t as EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, u as EGRESS_GRANT_SCOPE_KINDS, v as EVENT_WAIT_ROUTE_SUBPATH, w as EXECUTION_CONTEXT_ROUTE_SUBPATH, x as EgressGrant, y as EgressGrantAuditBody, z as EgressGrantBodyParseResult, G as EgressGrantConsumeBody, H as EgressGrantFileRuntime, I as EgressGrantScopeKind, K as ExecutionBinding, L as ExecutionBindingConnection, N as ExecutionContextCompiled, O as ExecutionContextData, P as FILE_CONTENT_ROUTE_SUBPATH, Q as FILE_STAT_ROUTE_SUBPATH, R as FLOW_INTERPRETER_CONTRACT_VERSION, S as FLOW_IR_SCHEMA_VERSION, U as FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, V as FLOW_RUN_RESULT_ROUTE_SUBPATH, W as FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, X as FileRefData, Y as FileRuntimeLimits, Z as FileRuntimeScope, _ as FileRuntimeScopeKind, $ as FlowActionGrantBody, c as FlowCompositionSpec, a0 as FlowDefinition, a1 as FlowExecutionContextFileRuntime, a2 as FlowInterpreterContractVersion, a3 as FlowIrValidationCode, a4 as FlowIrValidationIssue, a as FlowIrValidationResult, F as FlowNode, a5 as FlowRunResultData, a6 as FlowRunResultRequestBody, a7 as FlowRuntimeCredentialBody, a8 as HANDLER_BUNDLES_ROUTE_SUBPATH, a9 as HANDSHAKE_CAPABILITY_MISSING, aa as HANDSHAKE_CONTRACT_VERSION_MISMATCH, ab as HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH, ac as HANDSHAKE_REQUEST_INVALID, ad as HANDSHAKE_SECRET_MISMATCH, ae as HANDSHAKE_SECRET_UNCONFIGURED, af as HUMAN_INPUTS_ROUTE_SUBPATH, ag as HUMAN_INPUT_ACKNOWLEDGE_ROUTE_SUBPATH, ah as HUMAN_INPUT_EXPIRE_ROUTE_SUBPATH, ai as HUMAN_INPUT_REQUEST_ROUTE_SUBPATH, aj as HUMAN_INPUT_RESOLVED_EVENT_PREFIX, ak as HandlerBundle, al as HandlerBundleModule, am as HandlerBundlesData, an as HandlerBundlesParseResult, ao as HumanChoiceInput, ap as HumanFormField, aq as HumanFormInput, ar as HumanInputActor, as as HumanInputChoice, at as HumanInputDelivery, au as HumanInputDeliveryAction, av as HumanInputNode, aw as HumanInputOutput, ax as HumanInputPrompt, ay as HumanInputRequestView, az as HumanInputResolvedEvent, aA as HumanInputResponse, aB as HumanInputSpec, aC as HumanTextInput, aD as INTERNAL_EGRESS_GRANTS_ROUTE_PREFIX, aE as INTERNAL_FILES_ROUTE_PREFIX, aF as INTERNAL_FLOW_RUNS_ROUTE_PREFIX, aG as INTERNAL_FLOW_VERSIONS_ROUTE_PREFIX, aH as INTERNAL_INSTALLATIONS_ROUTE_PREFIX, aI as INTERNAL_POLLING_TRIGGER_INSTANCES_ROUTE_PREFIX, aJ as INTERNAL_TOOL_INVOCATIONS_ROUTE_PREFIX, aK as INTERNAL_WEBHOOK_TRIGGER_INSTANCES_ROUTE_PREFIX, aL as IntegrationTriggerBinding, aM as JsonArray, b as JsonObject, J as JsonValue, aN as ManualTriggerBinding, M as Mapping, aO as NodeCommon, aP as Operand, aQ as POLLING_TRIGGER_CONTEXT_ROUTE_SUBPATH, aR as POLLING_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, aS as POLLING_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, aT as POLLING_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, aU as POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH, aV as PackagePollingTriggerRuntimeDescriptor, aW as PackageWebhookTriggerRuntimeDescriptor, aX as ParsedFlowRunResultBody, aY as PartiallyRenderedHumanInputDelivery, aZ as PartiallyRenderedMapping, a_ as PartiallyRenderedTemplatePart, a$ as PartiallyRenderedValue, b0 as PollingPublishBody, b1 as PollingPublishEvent, b2 as PollingRuntimeCredentialBody, b3 as PollingTriggerContext, b4 as PollingTriggerGrantBody, b5 as PublishPollingTickEventResult, b6 as PublishPollingTickEventsData, b7 as RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS, b8 as RegisterFlowRunWaitBody, b9 as RegisterFlowRunWaitData, ba as RenderedFlowComposition, bb as RenderedHumanInputPrompt, bc as RuntimeCredentialSession, bd as RuntimeCredentialSessionNetwork, be as RuntimeCredentialSessionScopeKind, bf as RuntimeNetwork, bg as RuntimeNetworkModel, bh as SERVER_CONTRACT_VERSION, bi as STEP_RESULT_ROUTE_SUBPATH, bj as ScheduleTriggerBinding, bk as ServerContractVersion, bl as SingleToolGrantBody, bm as SleepNode, bn as StepRecordBody, bo as StepRecordBodyParseResult, bp as StepRecordData, bq as StepRecordResult, br as TOOL_HANDLER_BUNDLES_ROUTE_SUBPATH, bs as TOOL_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, bt as TOOL_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, bu as TextExpression, bv as ToolHandlerBundlesData, T as TriggerBinding, bw as TriggerConnectionInfo, bx as TriggerHandlerBundlesData, by as TriggerHandlerModule, bz as ValueExpression, bA as WEBHOOK_PROTOCOL_ADAPTER_BUNDLE_ROUTE_SUBPATH, bB as WEBHOOK_PROTOCOL_ADAPTER_MODULE, bC as WEBHOOK_TRIGGER_CONTEXT_ROUTE_SUBPATH, bD as WEBHOOK_TRIGGER_DELIVERY_ROUTE_SUBPATH, bE as WEBHOOK_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, bF as WEBHOOK_TRIGGER_EVENTS_ROUTE_SUBPATH, bG as WEBHOOK_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, bH as WEBHOOK_TRIGGER_REARM_ROUTE_SUBPATH, bI as WEBHOOK_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, bJ as WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION, bK as WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION, bL as WaitEventNode, bM as WebhookDelivery, bN as WebhookProtocolAdapterBundleData, bO as WebhookProtocolAdapterModule, bP as WebhookPublishEvent, bQ as WebhookPublishEventsBody, bR as WebhookPublishEventsData, bS as WebhookRearmBody, bT as WebhookRearmData, bU as WebhookRuntimeCredentialBody, bV as WebhookTriggerGrantBody, bW as WebhookTriggerVerificationMethod, bX as WebhookWatcherContext, bY as WfpUserRuntimeManifest, bZ as contractParseFail, b_ as contractParseOk, b$ as deploymentHandshakeProbePayload, c0 as deploymentHandshakeResponseProofPayload, c1 as egressGrantAuditPath, c2 as egressGrantConsumePath, c3 as eventWaitPath, c4 as executionContextPath, c5 as flowRunEgressGrantPath, c6 as flowRunResultPath, c7 as flowRunRuntimeCredentialPath, c8 as flowScriptProtocolAdapterModuleName, c9 as handlerBundlesPath, ca as humanInputAcknowledgePath, cb as humanInputExpirePath, cc as humanInputRequestPath, cd as humanInputResolvedEventType, ce as humanInputsPath, cf as internalFileContentPath, cg as internalFileStatPath, ch as internalFilesPath, ci as isJsonRecord, cj as isValidRequestDigest, ck as parseCompleteFlowRunWaitBody, co as parseCreateHumanInputBody, cp as parseEgressGrantAuditBody, cq as parseEgressGrantConsumeBody, cr as parseEgressGrantConsumeData, cs as parseEgressGrantData, ct as parseExecutionContextData, cu as parseFileRefData, cv as parseFileRuntimeLimits, cw as parseFlowActionGrantBody, cx as parseFlowRunResultBody, cy as parseFlowRunResultData, cz as parseFlowRuntimeCredentialBody, cA as parseHandlerBundle, cB as parseHandlerBundlesData, cC as parseHumanInputAcknowledgeData, cD as parseHumanInputCreateData, cE as parseHumanInputRequestViewData, cF as parsePollingPublishBody, cG as parsePollingRuntimeCredentialBody, cH as parsePollingTriggerContext, cI as parsePollingTriggerGrantBody, cJ as parsePublishPollingTickEventsData, cK as parseRegisterFlowRunWaitBody, cL as parseRegisterFlowRunWaitData, cM as parseRuntimeCredentialSessionCredential, cN as parseRuntimeNetwork, cO as parseSingleToolGrantBody, cP as parseSingleToolRuntimeCredentialBody, cQ as parseStepRecordBody, cR as parseStepRecordData, cS as parseToolHandlerBundlesData, cT as parseTriggerHandlerBundlesData, cU as parseWebhookDelivery, cV as parseWebhookPublishEventsBody, cW as parseWebhookRearmBody, cX as parseWebhookRuntimeCredentialBody, cY as parseWebhookTriggerGrantBody, cZ as parseWebhookWatcherContext, c_ as pollingTriggerContextPath, c$ as pollingTriggerEgressGrantPath, d0 as pollingTriggerHandlerBundlesPath, d1 as pollingTriggerRuntimeCredentialPath, d2 as pollingTriggerTickEventsPath, d3 as requestHasMultipartFileParts, d4 as stepResultPath, d5 as toolHandlerBundlesPath, d6 as toolInvocationEgressGrantPath, d7 as toolInvocationRuntimeCredentialPath, d8 as webhookProtocolAdapterBundlePath, d9 as webhookTriggerContextPath, da as webhookTriggerDeliveryPath, db as webhookTriggerEgressGrantPath, dc as webhookTriggerEventsPath, dd as webhookTriggerHandlerBundlesPath, de as webhookTriggerRearmPath, df as webhookTriggerRuntimeCredentialPath, dg as wfpUserRuntimeManifestPath } from './edge-BTl-jgfc.js';