@melra/protocol 0.3.0-alpha.10 → 0.3.0-alpha.11

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,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const PROTOCOL_VERSION = "2025-11-25";
3
- export declare const PRODUCT_VERSION = "0.3.0-alpha.10";
3
+ export declare const PRODUCT_VERSION = "0.3.0-alpha.11";
4
4
  export declare const FileOperationSchema: z.ZodObject<{
5
5
  kind: z.ZodLiteral<"file">;
6
6
  action: z.ZodEnum<{
@@ -202,6 +202,30 @@ export declare const ComputerOperationSchema: z.ZodObject<{
202
202
  }, z.core.$strict>>;
203
203
  timeoutMs: z.ZodDefault<z.ZodNumber>;
204
204
  }, z.core.$strict>;
205
+ export declare const HttpOperationSchema: z.ZodObject<{
206
+ kind: z.ZodLiteral<"http">;
207
+ action: z.ZodLiteral<"request">;
208
+ method: z.ZodDefault<z.ZodEnum<{
209
+ DELETE: "DELETE";
210
+ GET: "GET";
211
+ HEAD: "HEAD";
212
+ POST: "POST";
213
+ PUT: "PUT";
214
+ PATCH: "PATCH";
215
+ }>>;
216
+ url: z.ZodString;
217
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
218
+ content: z.ZodOptional<z.ZodString>;
219
+ idempotencyKey: z.ZodOptional<z.ZodString>;
220
+ spend: z.ZodOptional<z.ZodObject<{
221
+ provider: z.ZodString;
222
+ account: z.ZodOptional<z.ZodString>;
223
+ amount: z.ZodNumber;
224
+ currency: z.ZodString;
225
+ }, z.core.$strict>>;
226
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
227
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
228
+ }, z.core.$strict>;
205
229
  export declare const SystemOperationSchema: z.ZodObject<{
206
230
  kind: z.ZodLiteral<"system">;
207
231
  action: z.ZodLiteral<"info">;
@@ -387,6 +411,29 @@ export declare const OperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
387
411
  name: z.ZodOptional<z.ZodString>;
388
412
  }, z.core.$strict>>;
389
413
  timeoutMs: z.ZodDefault<z.ZodNumber>;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"http">;
416
+ action: z.ZodLiteral<"request">;
417
+ method: z.ZodDefault<z.ZodEnum<{
418
+ DELETE: "DELETE";
419
+ GET: "GET";
420
+ HEAD: "HEAD";
421
+ POST: "POST";
422
+ PUT: "PUT";
423
+ PATCH: "PATCH";
424
+ }>>;
425
+ url: z.ZodString;
426
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
427
+ content: z.ZodOptional<z.ZodString>;
428
+ idempotencyKey: z.ZodOptional<z.ZodString>;
429
+ spend: z.ZodOptional<z.ZodObject<{
430
+ provider: z.ZodString;
431
+ account: z.ZodOptional<z.ZodString>;
432
+ amount: z.ZodNumber;
433
+ currency: z.ZodString;
434
+ }, z.core.$strict>>;
435
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
436
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
390
437
  }, z.core.$strict>, z.ZodObject<{
391
438
  kind: z.ZodLiteral<"system">;
392
439
  action: z.ZodLiteral<"info">;
@@ -397,6 +444,7 @@ export type BrowserTarget = z.infer<typeof BrowserTargetSchema>;
397
444
  export type BrowserOperation = z.infer<typeof BrowserOperationSchema>;
398
445
  export type MemoryOperation = z.infer<typeof MemoryOperationSchema>;
399
446
  export type ComputerOperation = z.infer<typeof ComputerOperationSchema>;
447
+ export type HttpOperation = z.infer<typeof HttpOperationSchema>;
400
448
  export type SystemOperation = z.infer<typeof SystemOperationSchema>;
401
449
  export type Operation = z.infer<typeof OperationSchema>;
402
450
  export declare const EvidencePredicateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -426,6 +474,16 @@ export declare const EvidencePredicateSchema: z.ZodDiscriminatedUnion<[z.ZodObje
426
474
  }, z.core.$strict>, z.ZodObject<{
427
475
  type: z.ZodLiteral<"page_contains">;
428
476
  text: z.ZodString;
477
+ }, z.core.$strict>, z.ZodObject<{
478
+ type: z.ZodLiteral<"http_resource_matches">;
479
+ url: z.ZodString;
480
+ method: z.ZodDefault<z.ZodEnum<{
481
+ GET: "GET";
482
+ HEAD: "HEAD";
483
+ }>>;
484
+ path: z.ZodString;
485
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
486
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
429
487
  }, z.core.$strict>], "type">;
430
488
  export type EvidencePredicate = z.infer<typeof EvidencePredicateSchema>;
431
489
  export declare const PrincipalKindSchema: z.ZodEnum<{
@@ -692,6 +750,29 @@ export declare const TaskRequestSchema: z.ZodObject<{
692
750
  name: z.ZodOptional<z.ZodString>;
693
751
  }, z.core.$strict>>;
694
752
  timeoutMs: z.ZodDefault<z.ZodNumber>;
753
+ }, z.core.$strict>, z.ZodObject<{
754
+ kind: z.ZodLiteral<"http">;
755
+ action: z.ZodLiteral<"request">;
756
+ method: z.ZodDefault<z.ZodEnum<{
757
+ DELETE: "DELETE";
758
+ GET: "GET";
759
+ HEAD: "HEAD";
760
+ POST: "POST";
761
+ PUT: "PUT";
762
+ PATCH: "PATCH";
763
+ }>>;
764
+ url: z.ZodString;
765
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
766
+ content: z.ZodOptional<z.ZodString>;
767
+ idempotencyKey: z.ZodOptional<z.ZodString>;
768
+ spend: z.ZodOptional<z.ZodObject<{
769
+ provider: z.ZodString;
770
+ account: z.ZodOptional<z.ZodString>;
771
+ amount: z.ZodNumber;
772
+ currency: z.ZodString;
773
+ }, z.core.$strict>>;
774
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
775
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
695
776
  }, z.core.$strict>, z.ZodObject<{
696
777
  kind: z.ZodLiteral<"system">;
697
778
  action: z.ZodLiteral<"info">;
@@ -734,6 +815,54 @@ export declare const TaskRequestSchema: z.ZodObject<{
734
815
  }, z.core.$strict>, z.ZodObject<{
735
816
  type: z.ZodLiteral<"page_contains">;
736
817
  text: z.ZodString;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ type: z.ZodLiteral<"http_resource_matches">;
820
+ url: z.ZodString;
821
+ method: z.ZodDefault<z.ZodEnum<{
822
+ GET: "GET";
823
+ HEAD: "HEAD";
824
+ }>>;
825
+ path: z.ZodString;
826
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
827
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
828
+ }, z.core.$strict>], "type">>>;
829
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
830
+ type: z.ZodLiteral<"result_equals">;
831
+ path: z.ZodString;
832
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
833
+ }, z.core.$strict>, z.ZodObject<{
834
+ type: z.ZodLiteral<"result_contains">;
835
+ path: z.ZodString;
836
+ value: z.ZodString;
837
+ }, z.core.$strict>, z.ZodObject<{
838
+ type: z.ZodLiteral<"file_exists">;
839
+ path: z.ZodString;
840
+ }, z.core.$strict>, z.ZodObject<{
841
+ type: z.ZodLiteral<"file_absent">;
842
+ path: z.ZodString;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ type: z.ZodLiteral<"file_hash">;
845
+ path: z.ZodString;
846
+ sha256: z.ZodString;
847
+ }, z.core.$strict>, z.ZodObject<{
848
+ type: z.ZodLiteral<"exit_code">;
849
+ value: z.ZodNumber;
850
+ }, z.core.$strict>, z.ZodObject<{
851
+ type: z.ZodLiteral<"url_matches">;
852
+ pattern: z.ZodString;
853
+ }, z.core.$strict>, z.ZodObject<{
854
+ type: z.ZodLiteral<"page_contains">;
855
+ text: z.ZodString;
856
+ }, z.core.$strict>, z.ZodObject<{
857
+ type: z.ZodLiteral<"http_resource_matches">;
858
+ url: z.ZodString;
859
+ method: z.ZodDefault<z.ZodEnum<{
860
+ GET: "GET";
861
+ HEAD: "HEAD";
862
+ }>>;
863
+ path: z.ZodString;
864
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
865
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
737
866
  }, z.core.$strict>], "type">>>;
738
867
  identity: z.ZodOptional<z.ZodObject<{
739
868
  principal: z.ZodObject<{
@@ -855,8 +984,128 @@ export declare const CapabilityGrantSchema: z.ZodObject<{
855
984
  principal: z.ZodDefault<z.ZodString>;
856
985
  validUntil: z.ZodOptional<z.ZodString>;
857
986
  policyVersion: z.ZodOptional<z.ZodString>;
987
+ maxOperations: z.ZodOptional<z.ZodNumber>;
988
+ provider: z.ZodOptional<z.ZodObject<{
989
+ name: z.ZodString;
990
+ account: z.ZodOptional<z.ZodString>;
991
+ amountMax: z.ZodOptional<z.ZodNumber>;
992
+ dailyMax: z.ZodOptional<z.ZodNumber>;
993
+ }, z.core.$strict>>;
858
994
  }, z.core.$strict>;
859
995
  export type CapabilityGrant = z.infer<typeof CapabilityGrantSchema>;
996
+ /**
997
+ * One secret the kernel holds so the agent does not have to.
998
+ *
999
+ * The whole point is the asymmetry between the two lists. `hosts` says where
1000
+ * the secret may travel; `capability` says what may be done while holding it.
1001
+ * A request to a host outside `hosts` is sent *without* the credential, because
1002
+ * a secret that follows the caller wherever it points is not scoped to
1003
+ * anything. A request to a host inside `hosts` that the capability does not
1004
+ * cover is *refused* — that is the caller reaching past the authority it was
1005
+ * delegated, and it is the difference between possessing a credential and
1006
+ * possessing authority.
1007
+ */
1008
+ export declare const CredentialDefinitionSchema: z.ZodObject<{
1009
+ source: z.ZodUnion<readonly [z.ZodObject<{
1010
+ env: z.ZodString;
1011
+ }, z.core.$strict>, z.ZodObject<{
1012
+ file: z.ZodString;
1013
+ }, z.core.$strict>]>;
1014
+ inject: z.ZodObject<{
1015
+ header: z.ZodString;
1016
+ scheme: z.ZodOptional<z.ZodString>;
1017
+ }, z.core.$strict>;
1018
+ hosts: z.ZodArray<z.ZodString>;
1019
+ capability: z.ZodString;
1020
+ }, z.core.$strict>;
1021
+ export type CredentialDefinition = z.infer<typeof CredentialDefinitionSchema>;
1022
+ export declare const CredentialsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1023
+ source: z.ZodUnion<readonly [z.ZodObject<{
1024
+ env: z.ZodString;
1025
+ }, z.core.$strict>, z.ZodObject<{
1026
+ file: z.ZodString;
1027
+ }, z.core.$strict>]>;
1028
+ inject: z.ZodObject<{
1029
+ header: z.ZodString;
1030
+ scheme: z.ZodOptional<z.ZodString>;
1031
+ }, z.core.$strict>;
1032
+ hosts: z.ZodArray<z.ZodString>;
1033
+ capability: z.ZodString;
1034
+ }, z.core.$strict>>;
1035
+ /**
1036
+ * What MELRA promises about how many times an effect can run.
1037
+ *
1038
+ * Stating it is the point. The rule that mutations are never retried already
1039
+ * governed execution, but it lived inside the controller, so a caller setting
1040
+ * `budget.maxRetries: 3` on a write had no way to learn that the number would
1041
+ * be ignored. Derived from the classified effect, never taken from the caller —
1042
+ * a caller that could declare its own `POST` `provider-idempotent` would have
1043
+ * bought itself a retry it is not entitled to.
1044
+ */
1045
+ export type ExecutionGuarantee =
1046
+ /** No state change, so there is nothing to guarantee. Freely retried. */
1047
+ "read-only"
1048
+ /** Executed zero or one times. Never retried. */
1049
+ | "at-most-once"
1050
+ /** May run more than once; the caller must tolerate a repeat. */
1051
+ | "at-least-once"
1052
+ /** Retry-safe because the provider dedupes on a key MELRA sends. */
1053
+ | "provider-idempotent"
1054
+ /** Outcome may be unknown after a crash; a reconciliation pass decides. */
1055
+ | "reconciliation-required"
1056
+ /** Undone by a declared compensating effect. */
1057
+ | "compensatable";
1058
+ /**
1059
+ * How the kernel is deployed. Not a property of a request — a property of the
1060
+ * process, recorded on every effect that process runs.
1061
+ *
1062
+ * `developer` is the default and the reason MELRA can be tried in thirty
1063
+ * seconds: it governs the effects it is asked for, and says plainly that a
1064
+ * harness holding a native terminal as well makes it optional. `enforced` is the
1065
+ * operator asserting the alternative has been removed. MELRA cannot check that
1066
+ * assertion from inside the process, so it does the part it can: it closes every
1067
+ * door of its own that would contradict the claim.
1068
+ */
1069
+ export type DeploymentMode = "developer" | "enforced";
1070
+ /**
1071
+ * Only the exact word counts. A stray `MELRA_MODE=Enforced` left in a shell
1072
+ * profile is a typo, and quietly reading it as developer mode would hand back
1073
+ * the bypasses the operator thought they had turned off.
1074
+ */
1075
+ export declare function deploymentMode(value: string | undefined): DeploymentMode;
1076
+ /**
1077
+ * `at-least-once`, `provider-idempotent` and `compensatable` still need an
1078
+ * adapter that can offer them, so nothing derives those three yet.
1079
+ * `reconciliation-required` is real: a caller that declared `reconciliation`
1080
+ * predicates has given MELRA a way to settle an outcome it could not observe,
1081
+ * and that is a different promise from `at-most-once`, which says the effect
1082
+ * ran zero or one times but not which.
1083
+ */
1084
+ export declare function executionGuaranteeFor(effect: Effect,
1085
+ /** Whether the request declared a way to settle an unknown outcome. */
1086
+ reconcilable?: boolean): ExecutionGuarantee;
1087
+ /**
1088
+ * Prefix on an adapter error that does *not* claim the effect failed to happen.
1089
+ *
1090
+ * The distinction is the whole of it. A request that never left the machine —
1091
+ * DNS failure, connection refused — definitely did nothing, and `failed` is the
1092
+ * truth. A request that was written to the socket and went unanswered is a
1093
+ * different fact: the far end may have done the work and lost the reply.
1094
+ * Reporting the second as `failed` is the one lie a kernel that owns effects
1095
+ * cannot afford to tell, so an adapter that can tell the two apart marks it and
1096
+ * the executor parks the task for reconciliation instead of asserting either
1097
+ * outcome.
1098
+ */
1099
+ export declare const OUTCOME_UNKNOWN_PREFIX = "effect_outcome_unknown:";
1100
+ /** Wraps a reason as an error whose outcome MELRA cannot determine. */
1101
+ export declare function outcomeUnknown(reason: string): Error;
1102
+ export declare function isOutcomeUnknown(message: string): boolean;
1103
+ /**
1104
+ * Whether more than one attempt is permitted. The executor asks the guarantee
1105
+ * rather than re-deriving the rule from the effect, so the promise on the
1106
+ * contract and the behaviour in the loop cannot drift apart.
1107
+ */
1108
+ export declare function allowsRetry(guarantee: ExecutionGuarantee): boolean;
860
1109
  /**
861
1110
  * One bounded effect, named as a single object.
862
1111
  *
@@ -875,6 +1124,8 @@ export interface EffectContract {
875
1124
  risk: Risk;
876
1125
  target: string;
877
1126
  traits: CapabilityTrait[];
1127
+ /** How many times this effect can run. See `ExecutionGuarantee`. */
1128
+ executionGuarantee: ExecutionGuarantee;
878
1129
  /** Effects this request refuses for itself, honoured even in unhinged mode. */
879
1130
  forbiddenEffects: Effect[];
880
1131
  /** What must hold afterwards for the effect to count as a success. */
@@ -1075,6 +1326,29 @@ export declare const OperationNodeSchema: z.ZodObject<{
1075
1326
  name: z.ZodOptional<z.ZodString>;
1076
1327
  }, z.core.$strict>>;
1077
1328
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1329
+ }, z.core.$strict>, z.ZodObject<{
1330
+ kind: z.ZodLiteral<"http">;
1331
+ action: z.ZodLiteral<"request">;
1332
+ method: z.ZodDefault<z.ZodEnum<{
1333
+ DELETE: "DELETE";
1334
+ GET: "GET";
1335
+ HEAD: "HEAD";
1336
+ POST: "POST";
1337
+ PUT: "PUT";
1338
+ PATCH: "PATCH";
1339
+ }>>;
1340
+ url: z.ZodString;
1341
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1342
+ content: z.ZodOptional<z.ZodString>;
1343
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1344
+ spend: z.ZodOptional<z.ZodObject<{
1345
+ provider: z.ZodString;
1346
+ account: z.ZodOptional<z.ZodString>;
1347
+ amount: z.ZodNumber;
1348
+ currency: z.ZodString;
1349
+ }, z.core.$strict>>;
1350
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1351
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1078
1352
  }, z.core.$strict>, z.ZodObject<{
1079
1353
  kind: z.ZodLiteral<"system">;
1080
1354
  action: z.ZodLiteral<"info">;
@@ -1117,6 +1391,54 @@ export declare const OperationNodeSchema: z.ZodObject<{
1117
1391
  }, z.core.$strict>, z.ZodObject<{
1118
1392
  type: z.ZodLiteral<"page_contains">;
1119
1393
  text: z.ZodString;
1394
+ }, z.core.$strict>, z.ZodObject<{
1395
+ type: z.ZodLiteral<"http_resource_matches">;
1396
+ url: z.ZodString;
1397
+ method: z.ZodDefault<z.ZodEnum<{
1398
+ GET: "GET";
1399
+ HEAD: "HEAD";
1400
+ }>>;
1401
+ path: z.ZodString;
1402
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1403
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1404
+ }, z.core.$strict>], "type">>>;
1405
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1406
+ type: z.ZodLiteral<"result_equals">;
1407
+ path: z.ZodString;
1408
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1409
+ }, z.core.$strict>, z.ZodObject<{
1410
+ type: z.ZodLiteral<"result_contains">;
1411
+ path: z.ZodString;
1412
+ value: z.ZodString;
1413
+ }, z.core.$strict>, z.ZodObject<{
1414
+ type: z.ZodLiteral<"file_exists">;
1415
+ path: z.ZodString;
1416
+ }, z.core.$strict>, z.ZodObject<{
1417
+ type: z.ZodLiteral<"file_absent">;
1418
+ path: z.ZodString;
1419
+ }, z.core.$strict>, z.ZodObject<{
1420
+ type: z.ZodLiteral<"file_hash">;
1421
+ path: z.ZodString;
1422
+ sha256: z.ZodString;
1423
+ }, z.core.$strict>, z.ZodObject<{
1424
+ type: z.ZodLiteral<"exit_code">;
1425
+ value: z.ZodNumber;
1426
+ }, z.core.$strict>, z.ZodObject<{
1427
+ type: z.ZodLiteral<"url_matches">;
1428
+ pattern: z.ZodString;
1429
+ }, z.core.$strict>, z.ZodObject<{
1430
+ type: z.ZodLiteral<"page_contains">;
1431
+ text: z.ZodString;
1432
+ }, z.core.$strict>, z.ZodObject<{
1433
+ type: z.ZodLiteral<"http_resource_matches">;
1434
+ url: z.ZodString;
1435
+ method: z.ZodDefault<z.ZodEnum<{
1436
+ GET: "GET";
1437
+ HEAD: "HEAD";
1438
+ }>>;
1439
+ path: z.ZodString;
1440
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1441
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1120
1442
  }, z.core.$strict>], "type">>>;
1121
1443
  identity: z.ZodOptional<z.ZodObject<{
1122
1444
  principal: z.ZodObject<{
@@ -1184,6 +1506,16 @@ export declare const ConditionNodeSchema: z.ZodObject<{
1184
1506
  }, z.core.$strict>, z.ZodObject<{
1185
1507
  type: z.ZodLiteral<"page_contains">;
1186
1508
  text: z.ZodString;
1509
+ }, z.core.$strict>, z.ZodObject<{
1510
+ type: z.ZodLiteral<"http_resource_matches">;
1511
+ url: z.ZodString;
1512
+ method: z.ZodDefault<z.ZodEnum<{
1513
+ GET: "GET";
1514
+ HEAD: "HEAD";
1515
+ }>>;
1516
+ path: z.ZodString;
1517
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1518
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1187
1519
  }, z.core.$strict>], "type">;
1188
1520
  whenTrue: z.ZodDefault<z.ZodArray<z.ZodObject<{
1189
1521
  goal: z.ZodString;
@@ -1368,6 +1700,29 @@ export declare const ConditionNodeSchema: z.ZodObject<{
1368
1700
  name: z.ZodOptional<z.ZodString>;
1369
1701
  }, z.core.$strict>>;
1370
1702
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1703
+ }, z.core.$strict>, z.ZodObject<{
1704
+ kind: z.ZodLiteral<"http">;
1705
+ action: z.ZodLiteral<"request">;
1706
+ method: z.ZodDefault<z.ZodEnum<{
1707
+ DELETE: "DELETE";
1708
+ GET: "GET";
1709
+ HEAD: "HEAD";
1710
+ POST: "POST";
1711
+ PUT: "PUT";
1712
+ PATCH: "PATCH";
1713
+ }>>;
1714
+ url: z.ZodString;
1715
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1716
+ content: z.ZodOptional<z.ZodString>;
1717
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1718
+ spend: z.ZodOptional<z.ZodObject<{
1719
+ provider: z.ZodString;
1720
+ account: z.ZodOptional<z.ZodString>;
1721
+ amount: z.ZodNumber;
1722
+ currency: z.ZodString;
1723
+ }, z.core.$strict>>;
1724
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1725
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1371
1726
  }, z.core.$strict>, z.ZodObject<{
1372
1727
  kind: z.ZodLiteral<"system">;
1373
1728
  action: z.ZodLiteral<"info">;
@@ -1410,6 +1765,54 @@ export declare const ConditionNodeSchema: z.ZodObject<{
1410
1765
  }, z.core.$strict>, z.ZodObject<{
1411
1766
  type: z.ZodLiteral<"page_contains">;
1412
1767
  text: z.ZodString;
1768
+ }, z.core.$strict>, z.ZodObject<{
1769
+ type: z.ZodLiteral<"http_resource_matches">;
1770
+ url: z.ZodString;
1771
+ method: z.ZodDefault<z.ZodEnum<{
1772
+ GET: "GET";
1773
+ HEAD: "HEAD";
1774
+ }>>;
1775
+ path: z.ZodString;
1776
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1777
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1778
+ }, z.core.$strict>], "type">>>;
1779
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1780
+ type: z.ZodLiteral<"result_equals">;
1781
+ path: z.ZodString;
1782
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1783
+ }, z.core.$strict>, z.ZodObject<{
1784
+ type: z.ZodLiteral<"result_contains">;
1785
+ path: z.ZodString;
1786
+ value: z.ZodString;
1787
+ }, z.core.$strict>, z.ZodObject<{
1788
+ type: z.ZodLiteral<"file_exists">;
1789
+ path: z.ZodString;
1790
+ }, z.core.$strict>, z.ZodObject<{
1791
+ type: z.ZodLiteral<"file_absent">;
1792
+ path: z.ZodString;
1793
+ }, z.core.$strict>, z.ZodObject<{
1794
+ type: z.ZodLiteral<"file_hash">;
1795
+ path: z.ZodString;
1796
+ sha256: z.ZodString;
1797
+ }, z.core.$strict>, z.ZodObject<{
1798
+ type: z.ZodLiteral<"exit_code">;
1799
+ value: z.ZodNumber;
1800
+ }, z.core.$strict>, z.ZodObject<{
1801
+ type: z.ZodLiteral<"url_matches">;
1802
+ pattern: z.ZodString;
1803
+ }, z.core.$strict>, z.ZodObject<{
1804
+ type: z.ZodLiteral<"page_contains">;
1805
+ text: z.ZodString;
1806
+ }, z.core.$strict>, z.ZodObject<{
1807
+ type: z.ZodLiteral<"http_resource_matches">;
1808
+ url: z.ZodString;
1809
+ method: z.ZodDefault<z.ZodEnum<{
1810
+ GET: "GET";
1811
+ HEAD: "HEAD";
1812
+ }>>;
1813
+ path: z.ZodString;
1814
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1815
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1413
1816
  }, z.core.$strict>], "type">>>;
1414
1817
  identity: z.ZodOptional<z.ZodObject<{
1415
1818
  principal: z.ZodObject<{
@@ -1621,6 +2024,29 @@ export declare const ConditionNodeSchema: z.ZodObject<{
1621
2024
  name: z.ZodOptional<z.ZodString>;
1622
2025
  }, z.core.$strict>>;
1623
2026
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2027
+ }, z.core.$strict>, z.ZodObject<{
2028
+ kind: z.ZodLiteral<"http">;
2029
+ action: z.ZodLiteral<"request">;
2030
+ method: z.ZodDefault<z.ZodEnum<{
2031
+ DELETE: "DELETE";
2032
+ GET: "GET";
2033
+ HEAD: "HEAD";
2034
+ POST: "POST";
2035
+ PUT: "PUT";
2036
+ PATCH: "PATCH";
2037
+ }>>;
2038
+ url: z.ZodString;
2039
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2040
+ content: z.ZodOptional<z.ZodString>;
2041
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2042
+ spend: z.ZodOptional<z.ZodObject<{
2043
+ provider: z.ZodString;
2044
+ account: z.ZodOptional<z.ZodString>;
2045
+ amount: z.ZodNumber;
2046
+ currency: z.ZodString;
2047
+ }, z.core.$strict>>;
2048
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2049
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1624
2050
  }, z.core.$strict>, z.ZodObject<{
1625
2051
  kind: z.ZodLiteral<"system">;
1626
2052
  action: z.ZodLiteral<"info">;
@@ -1663,6 +2089,54 @@ export declare const ConditionNodeSchema: z.ZodObject<{
1663
2089
  }, z.core.$strict>, z.ZodObject<{
1664
2090
  type: z.ZodLiteral<"page_contains">;
1665
2091
  text: z.ZodString;
2092
+ }, z.core.$strict>, z.ZodObject<{
2093
+ type: z.ZodLiteral<"http_resource_matches">;
2094
+ url: z.ZodString;
2095
+ method: z.ZodDefault<z.ZodEnum<{
2096
+ GET: "GET";
2097
+ HEAD: "HEAD";
2098
+ }>>;
2099
+ path: z.ZodString;
2100
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2101
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2102
+ }, z.core.$strict>], "type">>>;
2103
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2104
+ type: z.ZodLiteral<"result_equals">;
2105
+ path: z.ZodString;
2106
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2107
+ }, z.core.$strict>, z.ZodObject<{
2108
+ type: z.ZodLiteral<"result_contains">;
2109
+ path: z.ZodString;
2110
+ value: z.ZodString;
2111
+ }, z.core.$strict>, z.ZodObject<{
2112
+ type: z.ZodLiteral<"file_exists">;
2113
+ path: z.ZodString;
2114
+ }, z.core.$strict>, z.ZodObject<{
2115
+ type: z.ZodLiteral<"file_absent">;
2116
+ path: z.ZodString;
2117
+ }, z.core.$strict>, z.ZodObject<{
2118
+ type: z.ZodLiteral<"file_hash">;
2119
+ path: z.ZodString;
2120
+ sha256: z.ZodString;
2121
+ }, z.core.$strict>, z.ZodObject<{
2122
+ type: z.ZodLiteral<"exit_code">;
2123
+ value: z.ZodNumber;
2124
+ }, z.core.$strict>, z.ZodObject<{
2125
+ type: z.ZodLiteral<"url_matches">;
2126
+ pattern: z.ZodString;
2127
+ }, z.core.$strict>, z.ZodObject<{
2128
+ type: z.ZodLiteral<"page_contains">;
2129
+ text: z.ZodString;
2130
+ }, z.core.$strict>, z.ZodObject<{
2131
+ type: z.ZodLiteral<"http_resource_matches">;
2132
+ url: z.ZodString;
2133
+ method: z.ZodDefault<z.ZodEnum<{
2134
+ GET: "GET";
2135
+ HEAD: "HEAD";
2136
+ }>>;
2137
+ path: z.ZodString;
2138
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2139
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1666
2140
  }, z.core.$strict>], "type">>>;
1667
2141
  identity: z.ZodOptional<z.ZodObject<{
1668
2142
  principal: z.ZodObject<{
@@ -1879,6 +2353,29 @@ export declare const ParallelNodeSchema: z.ZodObject<{
1879
2353
  name: z.ZodOptional<z.ZodString>;
1880
2354
  }, z.core.$strict>>;
1881
2355
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2356
+ }, z.core.$strict>, z.ZodObject<{
2357
+ kind: z.ZodLiteral<"http">;
2358
+ action: z.ZodLiteral<"request">;
2359
+ method: z.ZodDefault<z.ZodEnum<{
2360
+ DELETE: "DELETE";
2361
+ GET: "GET";
2362
+ HEAD: "HEAD";
2363
+ POST: "POST";
2364
+ PUT: "PUT";
2365
+ PATCH: "PATCH";
2366
+ }>>;
2367
+ url: z.ZodString;
2368
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2369
+ content: z.ZodOptional<z.ZodString>;
2370
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2371
+ spend: z.ZodOptional<z.ZodObject<{
2372
+ provider: z.ZodString;
2373
+ account: z.ZodOptional<z.ZodString>;
2374
+ amount: z.ZodNumber;
2375
+ currency: z.ZodString;
2376
+ }, z.core.$strict>>;
2377
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2378
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1882
2379
  }, z.core.$strict>, z.ZodObject<{
1883
2380
  kind: z.ZodLiteral<"system">;
1884
2381
  action: z.ZodLiteral<"info">;
@@ -1921,31 +2418,79 @@ export declare const ParallelNodeSchema: z.ZodObject<{
1921
2418
  }, z.core.$strict>, z.ZodObject<{
1922
2419
  type: z.ZodLiteral<"page_contains">;
1923
2420
  text: z.ZodString;
2421
+ }, z.core.$strict>, z.ZodObject<{
2422
+ type: z.ZodLiteral<"http_resource_matches">;
2423
+ url: z.ZodString;
2424
+ method: z.ZodDefault<z.ZodEnum<{
2425
+ GET: "GET";
2426
+ HEAD: "HEAD";
2427
+ }>>;
2428
+ path: z.ZodString;
2429
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2430
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1924
2431
  }, z.core.$strict>], "type">>>;
1925
- identity: z.ZodOptional<z.ZodObject<{
1926
- principal: z.ZodObject<{
1927
- kind: z.ZodEnum<{
1928
- session: "session";
1929
- organization: "organization";
1930
- human: "human";
1931
- harness: "harness";
1932
- agent: "agent";
1933
- subagent: "subagent";
1934
- service: "service";
1935
- }>;
1936
- id: z.ZodString;
1937
- }, z.core.$strict>;
1938
- onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
1939
- kind: z.ZodEnum<{
1940
- session: "session";
1941
- organization: "organization";
1942
- human: "human";
1943
- harness: "harness";
1944
- agent: "agent";
1945
- subagent: "subagent";
1946
- service: "service";
1947
- }>;
1948
- id: z.ZodString;
2432
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2433
+ type: z.ZodLiteral<"result_equals">;
2434
+ path: z.ZodString;
2435
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2436
+ }, z.core.$strict>, z.ZodObject<{
2437
+ type: z.ZodLiteral<"result_contains">;
2438
+ path: z.ZodString;
2439
+ value: z.ZodString;
2440
+ }, z.core.$strict>, z.ZodObject<{
2441
+ type: z.ZodLiteral<"file_exists">;
2442
+ path: z.ZodString;
2443
+ }, z.core.$strict>, z.ZodObject<{
2444
+ type: z.ZodLiteral<"file_absent">;
2445
+ path: z.ZodString;
2446
+ }, z.core.$strict>, z.ZodObject<{
2447
+ type: z.ZodLiteral<"file_hash">;
2448
+ path: z.ZodString;
2449
+ sha256: z.ZodString;
2450
+ }, z.core.$strict>, z.ZodObject<{
2451
+ type: z.ZodLiteral<"exit_code">;
2452
+ value: z.ZodNumber;
2453
+ }, z.core.$strict>, z.ZodObject<{
2454
+ type: z.ZodLiteral<"url_matches">;
2455
+ pattern: z.ZodString;
2456
+ }, z.core.$strict>, z.ZodObject<{
2457
+ type: z.ZodLiteral<"page_contains">;
2458
+ text: z.ZodString;
2459
+ }, z.core.$strict>, z.ZodObject<{
2460
+ type: z.ZodLiteral<"http_resource_matches">;
2461
+ url: z.ZodString;
2462
+ method: z.ZodDefault<z.ZodEnum<{
2463
+ GET: "GET";
2464
+ HEAD: "HEAD";
2465
+ }>>;
2466
+ path: z.ZodString;
2467
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2468
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2469
+ }, z.core.$strict>], "type">>>;
2470
+ identity: z.ZodOptional<z.ZodObject<{
2471
+ principal: z.ZodObject<{
2472
+ kind: z.ZodEnum<{
2473
+ session: "session";
2474
+ organization: "organization";
2475
+ human: "human";
2476
+ harness: "harness";
2477
+ agent: "agent";
2478
+ subagent: "subagent";
2479
+ service: "service";
2480
+ }>;
2481
+ id: z.ZodString;
2482
+ }, z.core.$strict>;
2483
+ onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
2484
+ kind: z.ZodEnum<{
2485
+ session: "session";
2486
+ organization: "organization";
2487
+ human: "human";
2488
+ harness: "harness";
2489
+ agent: "agent";
2490
+ subagent: "subagent";
2491
+ service: "service";
2492
+ }>;
2493
+ id: z.ZodString;
1949
2494
  }, z.core.$strict>>>;
1950
2495
  }, z.core.$strict>>;
1951
2496
  }, z.core.$strict>>>;
@@ -2137,6 +2682,29 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
2137
2682
  name: z.ZodOptional<z.ZodString>;
2138
2683
  }, z.core.$strict>>;
2139
2684
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2685
+ }, z.core.$strict>, z.ZodObject<{
2686
+ kind: z.ZodLiteral<"http">;
2687
+ action: z.ZodLiteral<"request">;
2688
+ method: z.ZodDefault<z.ZodEnum<{
2689
+ DELETE: "DELETE";
2690
+ GET: "GET";
2691
+ HEAD: "HEAD";
2692
+ POST: "POST";
2693
+ PUT: "PUT";
2694
+ PATCH: "PATCH";
2695
+ }>>;
2696
+ url: z.ZodString;
2697
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2698
+ content: z.ZodOptional<z.ZodString>;
2699
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2700
+ spend: z.ZodOptional<z.ZodObject<{
2701
+ provider: z.ZodString;
2702
+ account: z.ZodOptional<z.ZodString>;
2703
+ amount: z.ZodNumber;
2704
+ currency: z.ZodString;
2705
+ }, z.core.$strict>>;
2706
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2707
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2140
2708
  }, z.core.$strict>, z.ZodObject<{
2141
2709
  kind: z.ZodLiteral<"system">;
2142
2710
  action: z.ZodLiteral<"info">;
@@ -2179,6 +2747,54 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
2179
2747
  }, z.core.$strict>, z.ZodObject<{
2180
2748
  type: z.ZodLiteral<"page_contains">;
2181
2749
  text: z.ZodString;
2750
+ }, z.core.$strict>, z.ZodObject<{
2751
+ type: z.ZodLiteral<"http_resource_matches">;
2752
+ url: z.ZodString;
2753
+ method: z.ZodDefault<z.ZodEnum<{
2754
+ GET: "GET";
2755
+ HEAD: "HEAD";
2756
+ }>>;
2757
+ path: z.ZodString;
2758
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2759
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2760
+ }, z.core.$strict>], "type">>>;
2761
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2762
+ type: z.ZodLiteral<"result_equals">;
2763
+ path: z.ZodString;
2764
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2765
+ }, z.core.$strict>, z.ZodObject<{
2766
+ type: z.ZodLiteral<"result_contains">;
2767
+ path: z.ZodString;
2768
+ value: z.ZodString;
2769
+ }, z.core.$strict>, z.ZodObject<{
2770
+ type: z.ZodLiteral<"file_exists">;
2771
+ path: z.ZodString;
2772
+ }, z.core.$strict>, z.ZodObject<{
2773
+ type: z.ZodLiteral<"file_absent">;
2774
+ path: z.ZodString;
2775
+ }, z.core.$strict>, z.ZodObject<{
2776
+ type: z.ZodLiteral<"file_hash">;
2777
+ path: z.ZodString;
2778
+ sha256: z.ZodString;
2779
+ }, z.core.$strict>, z.ZodObject<{
2780
+ type: z.ZodLiteral<"exit_code">;
2781
+ value: z.ZodNumber;
2782
+ }, z.core.$strict>, z.ZodObject<{
2783
+ type: z.ZodLiteral<"url_matches">;
2784
+ pattern: z.ZodString;
2785
+ }, z.core.$strict>, z.ZodObject<{
2786
+ type: z.ZodLiteral<"page_contains">;
2787
+ text: z.ZodString;
2788
+ }, z.core.$strict>, z.ZodObject<{
2789
+ type: z.ZodLiteral<"http_resource_matches">;
2790
+ url: z.ZodString;
2791
+ method: z.ZodDefault<z.ZodEnum<{
2792
+ GET: "GET";
2793
+ HEAD: "HEAD";
2794
+ }>>;
2795
+ path: z.ZodString;
2796
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2797
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2182
2798
  }, z.core.$strict>], "type">>>;
2183
2799
  identity: z.ZodOptional<z.ZodObject<{
2184
2800
  principal: z.ZodObject<{
@@ -2235,6 +2851,16 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
2235
2851
  }, z.core.$strict>, z.ZodObject<{
2236
2852
  type: z.ZodLiteral<"page_contains">;
2237
2853
  text: z.ZodString;
2854
+ }, z.core.$strict>, z.ZodObject<{
2855
+ type: z.ZodLiteral<"http_resource_matches">;
2856
+ url: z.ZodString;
2857
+ method: z.ZodDefault<z.ZodEnum<{
2858
+ GET: "GET";
2859
+ HEAD: "HEAD";
2860
+ }>>;
2861
+ path: z.ZodString;
2862
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2863
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2238
2864
  }, z.core.$strict>], "type">>;
2239
2865
  }, z.core.$strict>;
2240
2866
  export declare const CheckpointNodeSchema: z.ZodObject<{
@@ -2430,6 +3056,29 @@ export declare const CompensationNodeSchema: z.ZodObject<{
2430
3056
  name: z.ZodOptional<z.ZodString>;
2431
3057
  }, z.core.$strict>>;
2432
3058
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3059
+ }, z.core.$strict>, z.ZodObject<{
3060
+ kind: z.ZodLiteral<"http">;
3061
+ action: z.ZodLiteral<"request">;
3062
+ method: z.ZodDefault<z.ZodEnum<{
3063
+ DELETE: "DELETE";
3064
+ GET: "GET";
3065
+ HEAD: "HEAD";
3066
+ POST: "POST";
3067
+ PUT: "PUT";
3068
+ PATCH: "PATCH";
3069
+ }>>;
3070
+ url: z.ZodString;
3071
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3072
+ content: z.ZodOptional<z.ZodString>;
3073
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3074
+ spend: z.ZodOptional<z.ZodObject<{
3075
+ provider: z.ZodString;
3076
+ account: z.ZodOptional<z.ZodString>;
3077
+ amount: z.ZodNumber;
3078
+ currency: z.ZodString;
3079
+ }, z.core.$strict>>;
3080
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3081
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2433
3082
  }, z.core.$strict>, z.ZodObject<{
2434
3083
  kind: z.ZodLiteral<"system">;
2435
3084
  action: z.ZodLiteral<"info">;
@@ -2472,6 +3121,54 @@ export declare const CompensationNodeSchema: z.ZodObject<{
2472
3121
  }, z.core.$strict>, z.ZodObject<{
2473
3122
  type: z.ZodLiteral<"page_contains">;
2474
3123
  text: z.ZodString;
3124
+ }, z.core.$strict>, z.ZodObject<{
3125
+ type: z.ZodLiteral<"http_resource_matches">;
3126
+ url: z.ZodString;
3127
+ method: z.ZodDefault<z.ZodEnum<{
3128
+ GET: "GET";
3129
+ HEAD: "HEAD";
3130
+ }>>;
3131
+ path: z.ZodString;
3132
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3133
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3134
+ }, z.core.$strict>], "type">>>;
3135
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3136
+ type: z.ZodLiteral<"result_equals">;
3137
+ path: z.ZodString;
3138
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3139
+ }, z.core.$strict>, z.ZodObject<{
3140
+ type: z.ZodLiteral<"result_contains">;
3141
+ path: z.ZodString;
3142
+ value: z.ZodString;
3143
+ }, z.core.$strict>, z.ZodObject<{
3144
+ type: z.ZodLiteral<"file_exists">;
3145
+ path: z.ZodString;
3146
+ }, z.core.$strict>, z.ZodObject<{
3147
+ type: z.ZodLiteral<"file_absent">;
3148
+ path: z.ZodString;
3149
+ }, z.core.$strict>, z.ZodObject<{
3150
+ type: z.ZodLiteral<"file_hash">;
3151
+ path: z.ZodString;
3152
+ sha256: z.ZodString;
3153
+ }, z.core.$strict>, z.ZodObject<{
3154
+ type: z.ZodLiteral<"exit_code">;
3155
+ value: z.ZodNumber;
3156
+ }, z.core.$strict>, z.ZodObject<{
3157
+ type: z.ZodLiteral<"url_matches">;
3158
+ pattern: z.ZodString;
3159
+ }, z.core.$strict>, z.ZodObject<{
3160
+ type: z.ZodLiteral<"page_contains">;
3161
+ text: z.ZodString;
3162
+ }, z.core.$strict>, z.ZodObject<{
3163
+ type: z.ZodLiteral<"http_resource_matches">;
3164
+ url: z.ZodString;
3165
+ method: z.ZodDefault<z.ZodEnum<{
3166
+ GET: "GET";
3167
+ HEAD: "HEAD";
3168
+ }>>;
3169
+ path: z.ZodString;
3170
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3171
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2475
3172
  }, z.core.$strict>], "type">>>;
2476
3173
  identity: z.ZodOptional<z.ZodObject<{
2477
3174
  principal: z.ZodObject<{
@@ -2542,6 +3239,16 @@ export declare const DelegationNodeSchema: z.ZodObject<{
2542
3239
  }, z.core.$strict>, z.ZodObject<{
2543
3240
  type: z.ZodLiteral<"page_contains">;
2544
3241
  text: z.ZodString;
3242
+ }, z.core.$strict>, z.ZodObject<{
3243
+ type: z.ZodLiteral<"http_resource_matches">;
3244
+ url: z.ZodString;
3245
+ method: z.ZodDefault<z.ZodEnum<{
3246
+ GET: "GET";
3247
+ HEAD: "HEAD";
3248
+ }>>;
3249
+ path: z.ZodString;
3250
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3251
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2545
3252
  }, z.core.$strict>], "type">>>;
2546
3253
  }, z.core.$strict>;
2547
3254
  export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2731,6 +3438,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2731
3438
  name: z.ZodOptional<z.ZodString>;
2732
3439
  }, z.core.$strict>>;
2733
3440
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3441
+ }, z.core.$strict>, z.ZodObject<{
3442
+ kind: z.ZodLiteral<"http">;
3443
+ action: z.ZodLiteral<"request">;
3444
+ method: z.ZodDefault<z.ZodEnum<{
3445
+ DELETE: "DELETE";
3446
+ GET: "GET";
3447
+ HEAD: "HEAD";
3448
+ POST: "POST";
3449
+ PUT: "PUT";
3450
+ PATCH: "PATCH";
3451
+ }>>;
3452
+ url: z.ZodString;
3453
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3454
+ content: z.ZodOptional<z.ZodString>;
3455
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3456
+ spend: z.ZodOptional<z.ZodObject<{
3457
+ provider: z.ZodString;
3458
+ account: z.ZodOptional<z.ZodString>;
3459
+ amount: z.ZodNumber;
3460
+ currency: z.ZodString;
3461
+ }, z.core.$strict>>;
3462
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3463
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2734
3464
  }, z.core.$strict>, z.ZodObject<{
2735
3465
  kind: z.ZodLiteral<"system">;
2736
3466
  action: z.ZodLiteral<"info">;
@@ -2773,6 +3503,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2773
3503
  }, z.core.$strict>, z.ZodObject<{
2774
3504
  type: z.ZodLiteral<"page_contains">;
2775
3505
  text: z.ZodString;
3506
+ }, z.core.$strict>, z.ZodObject<{
3507
+ type: z.ZodLiteral<"http_resource_matches">;
3508
+ url: z.ZodString;
3509
+ method: z.ZodDefault<z.ZodEnum<{
3510
+ GET: "GET";
3511
+ HEAD: "HEAD";
3512
+ }>>;
3513
+ path: z.ZodString;
3514
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3515
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3516
+ }, z.core.$strict>], "type">>>;
3517
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3518
+ type: z.ZodLiteral<"result_equals">;
3519
+ path: z.ZodString;
3520
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3521
+ }, z.core.$strict>, z.ZodObject<{
3522
+ type: z.ZodLiteral<"result_contains">;
3523
+ path: z.ZodString;
3524
+ value: z.ZodString;
3525
+ }, z.core.$strict>, z.ZodObject<{
3526
+ type: z.ZodLiteral<"file_exists">;
3527
+ path: z.ZodString;
3528
+ }, z.core.$strict>, z.ZodObject<{
3529
+ type: z.ZodLiteral<"file_absent">;
3530
+ path: z.ZodString;
3531
+ }, z.core.$strict>, z.ZodObject<{
3532
+ type: z.ZodLiteral<"file_hash">;
3533
+ path: z.ZodString;
3534
+ sha256: z.ZodString;
3535
+ }, z.core.$strict>, z.ZodObject<{
3536
+ type: z.ZodLiteral<"exit_code">;
3537
+ value: z.ZodNumber;
3538
+ }, z.core.$strict>, z.ZodObject<{
3539
+ type: z.ZodLiteral<"url_matches">;
3540
+ pattern: z.ZodString;
3541
+ }, z.core.$strict>, z.ZodObject<{
3542
+ type: z.ZodLiteral<"page_contains">;
3543
+ text: z.ZodString;
3544
+ }, z.core.$strict>, z.ZodObject<{
3545
+ type: z.ZodLiteral<"http_resource_matches">;
3546
+ url: z.ZodString;
3547
+ method: z.ZodDefault<z.ZodEnum<{
3548
+ GET: "GET";
3549
+ HEAD: "HEAD";
3550
+ }>>;
3551
+ path: z.ZodString;
3552
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3553
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2776
3554
  }, z.core.$strict>], "type">>>;
2777
3555
  identity: z.ZodOptional<z.ZodObject<{
2778
3556
  principal: z.ZodObject<{
@@ -2838,6 +3616,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2838
3616
  }, z.core.$strict>, z.ZodObject<{
2839
3617
  type: z.ZodLiteral<"page_contains">;
2840
3618
  text: z.ZodString;
3619
+ }, z.core.$strict>, z.ZodObject<{
3620
+ type: z.ZodLiteral<"http_resource_matches">;
3621
+ url: z.ZodString;
3622
+ method: z.ZodDefault<z.ZodEnum<{
3623
+ GET: "GET";
3624
+ HEAD: "HEAD";
3625
+ }>>;
3626
+ path: z.ZodString;
3627
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3628
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
2841
3629
  }, z.core.$strict>], "type">;
2842
3630
  whenTrue: z.ZodDefault<z.ZodArray<z.ZodObject<{
2843
3631
  goal: z.ZodString;
@@ -3022,6 +3810,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3022
3810
  name: z.ZodOptional<z.ZodString>;
3023
3811
  }, z.core.$strict>>;
3024
3812
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3813
+ }, z.core.$strict>, z.ZodObject<{
3814
+ kind: z.ZodLiteral<"http">;
3815
+ action: z.ZodLiteral<"request">;
3816
+ method: z.ZodDefault<z.ZodEnum<{
3817
+ DELETE: "DELETE";
3818
+ GET: "GET";
3819
+ HEAD: "HEAD";
3820
+ POST: "POST";
3821
+ PUT: "PUT";
3822
+ PATCH: "PATCH";
3823
+ }>>;
3824
+ url: z.ZodString;
3825
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3826
+ content: z.ZodOptional<z.ZodString>;
3827
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3828
+ spend: z.ZodOptional<z.ZodObject<{
3829
+ provider: z.ZodString;
3830
+ account: z.ZodOptional<z.ZodString>;
3831
+ amount: z.ZodNumber;
3832
+ currency: z.ZodString;
3833
+ }, z.core.$strict>>;
3834
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3835
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3025
3836
  }, z.core.$strict>, z.ZodObject<{
3026
3837
  kind: z.ZodLiteral<"system">;
3027
3838
  action: z.ZodLiteral<"info">;
@@ -3064,6 +3875,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3064
3875
  }, z.core.$strict>, z.ZodObject<{
3065
3876
  type: z.ZodLiteral<"page_contains">;
3066
3877
  text: z.ZodString;
3878
+ }, z.core.$strict>, z.ZodObject<{
3879
+ type: z.ZodLiteral<"http_resource_matches">;
3880
+ url: z.ZodString;
3881
+ method: z.ZodDefault<z.ZodEnum<{
3882
+ GET: "GET";
3883
+ HEAD: "HEAD";
3884
+ }>>;
3885
+ path: z.ZodString;
3886
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3887
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3888
+ }, z.core.$strict>], "type">>>;
3889
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3890
+ type: z.ZodLiteral<"result_equals">;
3891
+ path: z.ZodString;
3892
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3893
+ }, z.core.$strict>, z.ZodObject<{
3894
+ type: z.ZodLiteral<"result_contains">;
3895
+ path: z.ZodString;
3896
+ value: z.ZodString;
3897
+ }, z.core.$strict>, z.ZodObject<{
3898
+ type: z.ZodLiteral<"file_exists">;
3899
+ path: z.ZodString;
3900
+ }, z.core.$strict>, z.ZodObject<{
3901
+ type: z.ZodLiteral<"file_absent">;
3902
+ path: z.ZodString;
3903
+ }, z.core.$strict>, z.ZodObject<{
3904
+ type: z.ZodLiteral<"file_hash">;
3905
+ path: z.ZodString;
3906
+ sha256: z.ZodString;
3907
+ }, z.core.$strict>, z.ZodObject<{
3908
+ type: z.ZodLiteral<"exit_code">;
3909
+ value: z.ZodNumber;
3910
+ }, z.core.$strict>, z.ZodObject<{
3911
+ type: z.ZodLiteral<"url_matches">;
3912
+ pattern: z.ZodString;
3913
+ }, z.core.$strict>, z.ZodObject<{
3914
+ type: z.ZodLiteral<"page_contains">;
3915
+ text: z.ZodString;
3916
+ }, z.core.$strict>, z.ZodObject<{
3917
+ type: z.ZodLiteral<"http_resource_matches">;
3918
+ url: z.ZodString;
3919
+ method: z.ZodDefault<z.ZodEnum<{
3920
+ GET: "GET";
3921
+ HEAD: "HEAD";
3922
+ }>>;
3923
+ path: z.ZodString;
3924
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3925
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3067
3926
  }, z.core.$strict>], "type">>>;
3068
3927
  identity: z.ZodOptional<z.ZodObject<{
3069
3928
  principal: z.ZodObject<{
@@ -3275,6 +4134,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3275
4134
  name: z.ZodOptional<z.ZodString>;
3276
4135
  }, z.core.$strict>>;
3277
4136
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4137
+ }, z.core.$strict>, z.ZodObject<{
4138
+ kind: z.ZodLiteral<"http">;
4139
+ action: z.ZodLiteral<"request">;
4140
+ method: z.ZodDefault<z.ZodEnum<{
4141
+ DELETE: "DELETE";
4142
+ GET: "GET";
4143
+ HEAD: "HEAD";
4144
+ POST: "POST";
4145
+ PUT: "PUT";
4146
+ PATCH: "PATCH";
4147
+ }>>;
4148
+ url: z.ZodString;
4149
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4150
+ content: z.ZodOptional<z.ZodString>;
4151
+ idempotencyKey: z.ZodOptional<z.ZodString>;
4152
+ spend: z.ZodOptional<z.ZodObject<{
4153
+ provider: z.ZodString;
4154
+ account: z.ZodOptional<z.ZodString>;
4155
+ amount: z.ZodNumber;
4156
+ currency: z.ZodString;
4157
+ }, z.core.$strict>>;
4158
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
4159
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3278
4160
  }, z.core.$strict>, z.ZodObject<{
3279
4161
  kind: z.ZodLiteral<"system">;
3280
4162
  action: z.ZodLiteral<"info">;
@@ -3317,6 +4199,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3317
4199
  }, z.core.$strict>, z.ZodObject<{
3318
4200
  type: z.ZodLiteral<"page_contains">;
3319
4201
  text: z.ZodString;
4202
+ }, z.core.$strict>, z.ZodObject<{
4203
+ type: z.ZodLiteral<"http_resource_matches">;
4204
+ url: z.ZodString;
4205
+ method: z.ZodDefault<z.ZodEnum<{
4206
+ GET: "GET";
4207
+ HEAD: "HEAD";
4208
+ }>>;
4209
+ path: z.ZodString;
4210
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4211
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4212
+ }, z.core.$strict>], "type">>>;
4213
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4214
+ type: z.ZodLiteral<"result_equals">;
4215
+ path: z.ZodString;
4216
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4217
+ }, z.core.$strict>, z.ZodObject<{
4218
+ type: z.ZodLiteral<"result_contains">;
4219
+ path: z.ZodString;
4220
+ value: z.ZodString;
4221
+ }, z.core.$strict>, z.ZodObject<{
4222
+ type: z.ZodLiteral<"file_exists">;
4223
+ path: z.ZodString;
4224
+ }, z.core.$strict>, z.ZodObject<{
4225
+ type: z.ZodLiteral<"file_absent">;
4226
+ path: z.ZodString;
4227
+ }, z.core.$strict>, z.ZodObject<{
4228
+ type: z.ZodLiteral<"file_hash">;
4229
+ path: z.ZodString;
4230
+ sha256: z.ZodString;
4231
+ }, z.core.$strict>, z.ZodObject<{
4232
+ type: z.ZodLiteral<"exit_code">;
4233
+ value: z.ZodNumber;
4234
+ }, z.core.$strict>, z.ZodObject<{
4235
+ type: z.ZodLiteral<"url_matches">;
4236
+ pattern: z.ZodString;
4237
+ }, z.core.$strict>, z.ZodObject<{
4238
+ type: z.ZodLiteral<"page_contains">;
4239
+ text: z.ZodString;
4240
+ }, z.core.$strict>, z.ZodObject<{
4241
+ type: z.ZodLiteral<"http_resource_matches">;
4242
+ url: z.ZodString;
4243
+ method: z.ZodDefault<z.ZodEnum<{
4244
+ GET: "GET";
4245
+ HEAD: "HEAD";
4246
+ }>>;
4247
+ path: z.ZodString;
4248
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4249
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3320
4250
  }, z.core.$strict>], "type">>>;
3321
4251
  identity: z.ZodOptional<z.ZodObject<{
3322
4252
  principal: z.ZodObject<{
@@ -3532,6 +4462,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3532
4462
  name: z.ZodOptional<z.ZodString>;
3533
4463
  }, z.core.$strict>>;
3534
4464
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4465
+ }, z.core.$strict>, z.ZodObject<{
4466
+ kind: z.ZodLiteral<"http">;
4467
+ action: z.ZodLiteral<"request">;
4468
+ method: z.ZodDefault<z.ZodEnum<{
4469
+ DELETE: "DELETE";
4470
+ GET: "GET";
4471
+ HEAD: "HEAD";
4472
+ POST: "POST";
4473
+ PUT: "PUT";
4474
+ PATCH: "PATCH";
4475
+ }>>;
4476
+ url: z.ZodString;
4477
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4478
+ content: z.ZodOptional<z.ZodString>;
4479
+ idempotencyKey: z.ZodOptional<z.ZodString>;
4480
+ spend: z.ZodOptional<z.ZodObject<{
4481
+ provider: z.ZodString;
4482
+ account: z.ZodOptional<z.ZodString>;
4483
+ amount: z.ZodNumber;
4484
+ currency: z.ZodString;
4485
+ }, z.core.$strict>>;
4486
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
4487
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3535
4488
  }, z.core.$strict>, z.ZodObject<{
3536
4489
  kind: z.ZodLiteral<"system">;
3537
4490
  action: z.ZodLiteral<"info">;
@@ -3574,6 +4527,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3574
4527
  }, z.core.$strict>, z.ZodObject<{
3575
4528
  type: z.ZodLiteral<"page_contains">;
3576
4529
  text: z.ZodString;
4530
+ }, z.core.$strict>, z.ZodObject<{
4531
+ type: z.ZodLiteral<"http_resource_matches">;
4532
+ url: z.ZodString;
4533
+ method: z.ZodDefault<z.ZodEnum<{
4534
+ GET: "GET";
4535
+ HEAD: "HEAD";
4536
+ }>>;
4537
+ path: z.ZodString;
4538
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4539
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4540
+ }, z.core.$strict>], "type">>>;
4541
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4542
+ type: z.ZodLiteral<"result_equals">;
4543
+ path: z.ZodString;
4544
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4545
+ }, z.core.$strict>, z.ZodObject<{
4546
+ type: z.ZodLiteral<"result_contains">;
4547
+ path: z.ZodString;
4548
+ value: z.ZodString;
4549
+ }, z.core.$strict>, z.ZodObject<{
4550
+ type: z.ZodLiteral<"file_exists">;
4551
+ path: z.ZodString;
4552
+ }, z.core.$strict>, z.ZodObject<{
4553
+ type: z.ZodLiteral<"file_absent">;
4554
+ path: z.ZodString;
4555
+ }, z.core.$strict>, z.ZodObject<{
4556
+ type: z.ZodLiteral<"file_hash">;
4557
+ path: z.ZodString;
4558
+ sha256: z.ZodString;
4559
+ }, z.core.$strict>, z.ZodObject<{
4560
+ type: z.ZodLiteral<"exit_code">;
4561
+ value: z.ZodNumber;
4562
+ }, z.core.$strict>, z.ZodObject<{
4563
+ type: z.ZodLiteral<"url_matches">;
4564
+ pattern: z.ZodString;
4565
+ }, z.core.$strict>, z.ZodObject<{
4566
+ type: z.ZodLiteral<"page_contains">;
4567
+ text: z.ZodString;
4568
+ }, z.core.$strict>, z.ZodObject<{
4569
+ type: z.ZodLiteral<"http_resource_matches">;
4570
+ url: z.ZodString;
4571
+ method: z.ZodDefault<z.ZodEnum<{
4572
+ GET: "GET";
4573
+ HEAD: "HEAD";
4574
+ }>>;
4575
+ path: z.ZodString;
4576
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4577
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3577
4578
  }, z.core.$strict>], "type">>>;
3578
4579
  identity: z.ZodOptional<z.ZodObject<{
3579
4580
  principal: z.ZodObject<{
@@ -3789,6 +4790,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3789
4790
  name: z.ZodOptional<z.ZodString>;
3790
4791
  }, z.core.$strict>>;
3791
4792
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4793
+ }, z.core.$strict>, z.ZodObject<{
4794
+ kind: z.ZodLiteral<"http">;
4795
+ action: z.ZodLiteral<"request">;
4796
+ method: z.ZodDefault<z.ZodEnum<{
4797
+ DELETE: "DELETE";
4798
+ GET: "GET";
4799
+ HEAD: "HEAD";
4800
+ POST: "POST";
4801
+ PUT: "PUT";
4802
+ PATCH: "PATCH";
4803
+ }>>;
4804
+ url: z.ZodString;
4805
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4806
+ content: z.ZodOptional<z.ZodString>;
4807
+ idempotencyKey: z.ZodOptional<z.ZodString>;
4808
+ spend: z.ZodOptional<z.ZodObject<{
4809
+ provider: z.ZodString;
4810
+ account: z.ZodOptional<z.ZodString>;
4811
+ amount: z.ZodNumber;
4812
+ currency: z.ZodString;
4813
+ }, z.core.$strict>>;
4814
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
4815
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3792
4816
  }, z.core.$strict>, z.ZodObject<{
3793
4817
  kind: z.ZodLiteral<"system">;
3794
4818
  action: z.ZodLiteral<"info">;
@@ -3831,6 +4855,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3831
4855
  }, z.core.$strict>, z.ZodObject<{
3832
4856
  type: z.ZodLiteral<"page_contains">;
3833
4857
  text: z.ZodString;
4858
+ }, z.core.$strict>, z.ZodObject<{
4859
+ type: z.ZodLiteral<"http_resource_matches">;
4860
+ url: z.ZodString;
4861
+ method: z.ZodDefault<z.ZodEnum<{
4862
+ GET: "GET";
4863
+ HEAD: "HEAD";
4864
+ }>>;
4865
+ path: z.ZodString;
4866
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4867
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4868
+ }, z.core.$strict>], "type">>>;
4869
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4870
+ type: z.ZodLiteral<"result_equals">;
4871
+ path: z.ZodString;
4872
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4873
+ }, z.core.$strict>, z.ZodObject<{
4874
+ type: z.ZodLiteral<"result_contains">;
4875
+ path: z.ZodString;
4876
+ value: z.ZodString;
4877
+ }, z.core.$strict>, z.ZodObject<{
4878
+ type: z.ZodLiteral<"file_exists">;
4879
+ path: z.ZodString;
4880
+ }, z.core.$strict>, z.ZodObject<{
4881
+ type: z.ZodLiteral<"file_absent">;
4882
+ path: z.ZodString;
4883
+ }, z.core.$strict>, z.ZodObject<{
4884
+ type: z.ZodLiteral<"file_hash">;
4885
+ path: z.ZodString;
4886
+ sha256: z.ZodString;
4887
+ }, z.core.$strict>, z.ZodObject<{
4888
+ type: z.ZodLiteral<"exit_code">;
4889
+ value: z.ZodNumber;
4890
+ }, z.core.$strict>, z.ZodObject<{
4891
+ type: z.ZodLiteral<"url_matches">;
4892
+ pattern: z.ZodString;
4893
+ }, z.core.$strict>, z.ZodObject<{
4894
+ type: z.ZodLiteral<"page_contains">;
4895
+ text: z.ZodString;
4896
+ }, z.core.$strict>, z.ZodObject<{
4897
+ type: z.ZodLiteral<"http_resource_matches">;
4898
+ url: z.ZodString;
4899
+ method: z.ZodDefault<z.ZodEnum<{
4900
+ GET: "GET";
4901
+ HEAD: "HEAD";
4902
+ }>>;
4903
+ path: z.ZodString;
4904
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4905
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3834
4906
  }, z.core.$strict>], "type">>>;
3835
4907
  identity: z.ZodOptional<z.ZodObject<{
3836
4908
  principal: z.ZodObject<{
@@ -3887,6 +4959,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3887
4959
  }, z.core.$strict>, z.ZodObject<{
3888
4960
  type: z.ZodLiteral<"page_contains">;
3889
4961
  text: z.ZodString;
4962
+ }, z.core.$strict>, z.ZodObject<{
4963
+ type: z.ZodLiteral<"http_resource_matches">;
4964
+ url: z.ZodString;
4965
+ method: z.ZodDefault<z.ZodEnum<{
4966
+ GET: "GET";
4967
+ HEAD: "HEAD";
4968
+ }>>;
4969
+ path: z.ZodString;
4970
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
4971
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
3890
4972
  }, z.core.$strict>], "type">>;
3891
4973
  }, z.core.$strict>, z.ZodObject<{
3892
4974
  id: z.ZodString;
@@ -4080,6 +5162,29 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4080
5162
  name: z.ZodOptional<z.ZodString>;
4081
5163
  }, z.core.$strict>>;
4082
5164
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5165
+ }, z.core.$strict>, z.ZodObject<{
5166
+ kind: z.ZodLiteral<"http">;
5167
+ action: z.ZodLiteral<"request">;
5168
+ method: z.ZodDefault<z.ZodEnum<{
5169
+ DELETE: "DELETE";
5170
+ GET: "GET";
5171
+ HEAD: "HEAD";
5172
+ POST: "POST";
5173
+ PUT: "PUT";
5174
+ PATCH: "PATCH";
5175
+ }>>;
5176
+ url: z.ZodString;
5177
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5178
+ content: z.ZodOptional<z.ZodString>;
5179
+ idempotencyKey: z.ZodOptional<z.ZodString>;
5180
+ spend: z.ZodOptional<z.ZodObject<{
5181
+ provider: z.ZodString;
5182
+ account: z.ZodOptional<z.ZodString>;
5183
+ amount: z.ZodNumber;
5184
+ currency: z.ZodString;
5185
+ }, z.core.$strict>>;
5186
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
5187
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4083
5188
  }, z.core.$strict>, z.ZodObject<{
4084
5189
  kind: z.ZodLiteral<"system">;
4085
5190
  action: z.ZodLiteral<"info">;
@@ -4122,6 +5227,54 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4122
5227
  }, z.core.$strict>, z.ZodObject<{
4123
5228
  type: z.ZodLiteral<"page_contains">;
4124
5229
  text: z.ZodString;
5230
+ }, z.core.$strict>, z.ZodObject<{
5231
+ type: z.ZodLiteral<"http_resource_matches">;
5232
+ url: z.ZodString;
5233
+ method: z.ZodDefault<z.ZodEnum<{
5234
+ GET: "GET";
5235
+ HEAD: "HEAD";
5236
+ }>>;
5237
+ path: z.ZodString;
5238
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5239
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5240
+ }, z.core.$strict>], "type">>>;
5241
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5242
+ type: z.ZodLiteral<"result_equals">;
5243
+ path: z.ZodString;
5244
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5245
+ }, z.core.$strict>, z.ZodObject<{
5246
+ type: z.ZodLiteral<"result_contains">;
5247
+ path: z.ZodString;
5248
+ value: z.ZodString;
5249
+ }, z.core.$strict>, z.ZodObject<{
5250
+ type: z.ZodLiteral<"file_exists">;
5251
+ path: z.ZodString;
5252
+ }, z.core.$strict>, z.ZodObject<{
5253
+ type: z.ZodLiteral<"file_absent">;
5254
+ path: z.ZodString;
5255
+ }, z.core.$strict>, z.ZodObject<{
5256
+ type: z.ZodLiteral<"file_hash">;
5257
+ path: z.ZodString;
5258
+ sha256: z.ZodString;
5259
+ }, z.core.$strict>, z.ZodObject<{
5260
+ type: z.ZodLiteral<"exit_code">;
5261
+ value: z.ZodNumber;
5262
+ }, z.core.$strict>, z.ZodObject<{
5263
+ type: z.ZodLiteral<"url_matches">;
5264
+ pattern: z.ZodString;
5265
+ }, z.core.$strict>, z.ZodObject<{
5266
+ type: z.ZodLiteral<"page_contains">;
5267
+ text: z.ZodString;
5268
+ }, z.core.$strict>, z.ZodObject<{
5269
+ type: z.ZodLiteral<"http_resource_matches">;
5270
+ url: z.ZodString;
5271
+ method: z.ZodDefault<z.ZodEnum<{
5272
+ GET: "GET";
5273
+ HEAD: "HEAD";
5274
+ }>>;
5275
+ path: z.ZodString;
5276
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5277
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4125
5278
  }, z.core.$strict>], "type">>>;
4126
5279
  identity: z.ZodOptional<z.ZodObject<{
4127
5280
  principal: z.ZodObject<{
@@ -4190,6 +5343,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4190
5343
  }, z.core.$strict>, z.ZodObject<{
4191
5344
  type: z.ZodLiteral<"page_contains">;
4192
5345
  text: z.ZodString;
5346
+ }, z.core.$strict>, z.ZodObject<{
5347
+ type: z.ZodLiteral<"http_resource_matches">;
5348
+ url: z.ZodString;
5349
+ method: z.ZodDefault<z.ZodEnum<{
5350
+ GET: "GET";
5351
+ HEAD: "HEAD";
5352
+ }>>;
5353
+ path: z.ZodString;
5354
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5355
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4193
5356
  }, z.core.$strict>], "type">>>;
4194
5357
  }, z.core.$strict>], "type">;
4195
5358
  export declare const WorkflowInputSchema: z.ZodObject<{
@@ -4390,6 +5553,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4390
5553
  name: z.ZodOptional<z.ZodString>;
4391
5554
  }, z.core.$strict>>;
4392
5555
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5556
+ }, z.core.$strict>, z.ZodObject<{
5557
+ kind: z.ZodLiteral<"http">;
5558
+ action: z.ZodLiteral<"request">;
5559
+ method: z.ZodDefault<z.ZodEnum<{
5560
+ DELETE: "DELETE";
5561
+ GET: "GET";
5562
+ HEAD: "HEAD";
5563
+ POST: "POST";
5564
+ PUT: "PUT";
5565
+ PATCH: "PATCH";
5566
+ }>>;
5567
+ url: z.ZodString;
5568
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5569
+ content: z.ZodOptional<z.ZodString>;
5570
+ idempotencyKey: z.ZodOptional<z.ZodString>;
5571
+ spend: z.ZodOptional<z.ZodObject<{
5572
+ provider: z.ZodString;
5573
+ account: z.ZodOptional<z.ZodString>;
5574
+ amount: z.ZodNumber;
5575
+ currency: z.ZodString;
5576
+ }, z.core.$strict>>;
5577
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
5578
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4393
5579
  }, z.core.$strict>, z.ZodObject<{
4394
5580
  kind: z.ZodLiteral<"system">;
4395
5581
  action: z.ZodLiteral<"info">;
@@ -4432,6 +5618,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4432
5618
  }, z.core.$strict>, z.ZodObject<{
4433
5619
  type: z.ZodLiteral<"page_contains">;
4434
5620
  text: z.ZodString;
5621
+ }, z.core.$strict>, z.ZodObject<{
5622
+ type: z.ZodLiteral<"http_resource_matches">;
5623
+ url: z.ZodString;
5624
+ method: z.ZodDefault<z.ZodEnum<{
5625
+ GET: "GET";
5626
+ HEAD: "HEAD";
5627
+ }>>;
5628
+ path: z.ZodString;
5629
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5630
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5631
+ }, z.core.$strict>], "type">>>;
5632
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5633
+ type: z.ZodLiteral<"result_equals">;
5634
+ path: z.ZodString;
5635
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5636
+ }, z.core.$strict>, z.ZodObject<{
5637
+ type: z.ZodLiteral<"result_contains">;
5638
+ path: z.ZodString;
5639
+ value: z.ZodString;
5640
+ }, z.core.$strict>, z.ZodObject<{
5641
+ type: z.ZodLiteral<"file_exists">;
5642
+ path: z.ZodString;
5643
+ }, z.core.$strict>, z.ZodObject<{
5644
+ type: z.ZodLiteral<"file_absent">;
5645
+ path: z.ZodString;
5646
+ }, z.core.$strict>, z.ZodObject<{
5647
+ type: z.ZodLiteral<"file_hash">;
5648
+ path: z.ZodString;
5649
+ sha256: z.ZodString;
5650
+ }, z.core.$strict>, z.ZodObject<{
5651
+ type: z.ZodLiteral<"exit_code">;
5652
+ value: z.ZodNumber;
5653
+ }, z.core.$strict>, z.ZodObject<{
5654
+ type: z.ZodLiteral<"url_matches">;
5655
+ pattern: z.ZodString;
5656
+ }, z.core.$strict>, z.ZodObject<{
5657
+ type: z.ZodLiteral<"page_contains">;
5658
+ text: z.ZodString;
5659
+ }, z.core.$strict>, z.ZodObject<{
5660
+ type: z.ZodLiteral<"http_resource_matches">;
5661
+ url: z.ZodString;
5662
+ method: z.ZodDefault<z.ZodEnum<{
5663
+ GET: "GET";
5664
+ HEAD: "HEAD";
5665
+ }>>;
5666
+ path: z.ZodString;
5667
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5668
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4435
5669
  }, z.core.$strict>], "type">>>;
4436
5670
  identity: z.ZodOptional<z.ZodObject<{
4437
5671
  principal: z.ZodObject<{
@@ -4497,6 +5731,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4497
5731
  }, z.core.$strict>, z.ZodObject<{
4498
5732
  type: z.ZodLiteral<"page_contains">;
4499
5733
  text: z.ZodString;
5734
+ }, z.core.$strict>, z.ZodObject<{
5735
+ type: z.ZodLiteral<"http_resource_matches">;
5736
+ url: z.ZodString;
5737
+ method: z.ZodDefault<z.ZodEnum<{
5738
+ GET: "GET";
5739
+ HEAD: "HEAD";
5740
+ }>>;
5741
+ path: z.ZodString;
5742
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5743
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4500
5744
  }, z.core.$strict>], "type">;
4501
5745
  whenTrue: z.ZodDefault<z.ZodArray<z.ZodObject<{
4502
5746
  goal: z.ZodString;
@@ -4681,6 +5925,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4681
5925
  name: z.ZodOptional<z.ZodString>;
4682
5926
  }, z.core.$strict>>;
4683
5927
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5928
+ }, z.core.$strict>, z.ZodObject<{
5929
+ kind: z.ZodLiteral<"http">;
5930
+ action: z.ZodLiteral<"request">;
5931
+ method: z.ZodDefault<z.ZodEnum<{
5932
+ DELETE: "DELETE";
5933
+ GET: "GET";
5934
+ HEAD: "HEAD";
5935
+ POST: "POST";
5936
+ PUT: "PUT";
5937
+ PATCH: "PATCH";
5938
+ }>>;
5939
+ url: z.ZodString;
5940
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5941
+ content: z.ZodOptional<z.ZodString>;
5942
+ idempotencyKey: z.ZodOptional<z.ZodString>;
5943
+ spend: z.ZodOptional<z.ZodObject<{
5944
+ provider: z.ZodString;
5945
+ account: z.ZodOptional<z.ZodString>;
5946
+ amount: z.ZodNumber;
5947
+ currency: z.ZodString;
5948
+ }, z.core.$strict>>;
5949
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
5950
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4684
5951
  }, z.core.$strict>, z.ZodObject<{
4685
5952
  kind: z.ZodLiteral<"system">;
4686
5953
  action: z.ZodLiteral<"info">;
@@ -4723,6 +5990,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4723
5990
  }, z.core.$strict>, z.ZodObject<{
4724
5991
  type: z.ZodLiteral<"page_contains">;
4725
5992
  text: z.ZodString;
5993
+ }, z.core.$strict>, z.ZodObject<{
5994
+ type: z.ZodLiteral<"http_resource_matches">;
5995
+ url: z.ZodString;
5996
+ method: z.ZodDefault<z.ZodEnum<{
5997
+ GET: "GET";
5998
+ HEAD: "HEAD";
5999
+ }>>;
6000
+ path: z.ZodString;
6001
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6002
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6003
+ }, z.core.$strict>], "type">>>;
6004
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6005
+ type: z.ZodLiteral<"result_equals">;
6006
+ path: z.ZodString;
6007
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6008
+ }, z.core.$strict>, z.ZodObject<{
6009
+ type: z.ZodLiteral<"result_contains">;
6010
+ path: z.ZodString;
6011
+ value: z.ZodString;
6012
+ }, z.core.$strict>, z.ZodObject<{
6013
+ type: z.ZodLiteral<"file_exists">;
6014
+ path: z.ZodString;
6015
+ }, z.core.$strict>, z.ZodObject<{
6016
+ type: z.ZodLiteral<"file_absent">;
6017
+ path: z.ZodString;
6018
+ }, z.core.$strict>, z.ZodObject<{
6019
+ type: z.ZodLiteral<"file_hash">;
6020
+ path: z.ZodString;
6021
+ sha256: z.ZodString;
6022
+ }, z.core.$strict>, z.ZodObject<{
6023
+ type: z.ZodLiteral<"exit_code">;
6024
+ value: z.ZodNumber;
6025
+ }, z.core.$strict>, z.ZodObject<{
6026
+ type: z.ZodLiteral<"url_matches">;
6027
+ pattern: z.ZodString;
6028
+ }, z.core.$strict>, z.ZodObject<{
6029
+ type: z.ZodLiteral<"page_contains">;
6030
+ text: z.ZodString;
6031
+ }, z.core.$strict>, z.ZodObject<{
6032
+ type: z.ZodLiteral<"http_resource_matches">;
6033
+ url: z.ZodString;
6034
+ method: z.ZodDefault<z.ZodEnum<{
6035
+ GET: "GET";
6036
+ HEAD: "HEAD";
6037
+ }>>;
6038
+ path: z.ZodString;
6039
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6040
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4726
6041
  }, z.core.$strict>], "type">>>;
4727
6042
  identity: z.ZodOptional<z.ZodObject<{
4728
6043
  principal: z.ZodObject<{
@@ -4934,6 +6249,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4934
6249
  name: z.ZodOptional<z.ZodString>;
4935
6250
  }, z.core.$strict>>;
4936
6251
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6252
+ }, z.core.$strict>, z.ZodObject<{
6253
+ kind: z.ZodLiteral<"http">;
6254
+ action: z.ZodLiteral<"request">;
6255
+ method: z.ZodDefault<z.ZodEnum<{
6256
+ DELETE: "DELETE";
6257
+ GET: "GET";
6258
+ HEAD: "HEAD";
6259
+ POST: "POST";
6260
+ PUT: "PUT";
6261
+ PATCH: "PATCH";
6262
+ }>>;
6263
+ url: z.ZodString;
6264
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6265
+ content: z.ZodOptional<z.ZodString>;
6266
+ idempotencyKey: z.ZodOptional<z.ZodString>;
6267
+ spend: z.ZodOptional<z.ZodObject<{
6268
+ provider: z.ZodString;
6269
+ account: z.ZodOptional<z.ZodString>;
6270
+ amount: z.ZodNumber;
6271
+ currency: z.ZodString;
6272
+ }, z.core.$strict>>;
6273
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
6274
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4937
6275
  }, z.core.$strict>, z.ZodObject<{
4938
6276
  kind: z.ZodLiteral<"system">;
4939
6277
  action: z.ZodLiteral<"info">;
@@ -4976,6 +6314,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4976
6314
  }, z.core.$strict>, z.ZodObject<{
4977
6315
  type: z.ZodLiteral<"page_contains">;
4978
6316
  text: z.ZodString;
6317
+ }, z.core.$strict>, z.ZodObject<{
6318
+ type: z.ZodLiteral<"http_resource_matches">;
6319
+ url: z.ZodString;
6320
+ method: z.ZodDefault<z.ZodEnum<{
6321
+ GET: "GET";
6322
+ HEAD: "HEAD";
6323
+ }>>;
6324
+ path: z.ZodString;
6325
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6326
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6327
+ }, z.core.$strict>], "type">>>;
6328
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6329
+ type: z.ZodLiteral<"result_equals">;
6330
+ path: z.ZodString;
6331
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6332
+ }, z.core.$strict>, z.ZodObject<{
6333
+ type: z.ZodLiteral<"result_contains">;
6334
+ path: z.ZodString;
6335
+ value: z.ZodString;
6336
+ }, z.core.$strict>, z.ZodObject<{
6337
+ type: z.ZodLiteral<"file_exists">;
6338
+ path: z.ZodString;
6339
+ }, z.core.$strict>, z.ZodObject<{
6340
+ type: z.ZodLiteral<"file_absent">;
6341
+ path: z.ZodString;
6342
+ }, z.core.$strict>, z.ZodObject<{
6343
+ type: z.ZodLiteral<"file_hash">;
6344
+ path: z.ZodString;
6345
+ sha256: z.ZodString;
6346
+ }, z.core.$strict>, z.ZodObject<{
6347
+ type: z.ZodLiteral<"exit_code">;
6348
+ value: z.ZodNumber;
6349
+ }, z.core.$strict>, z.ZodObject<{
6350
+ type: z.ZodLiteral<"url_matches">;
6351
+ pattern: z.ZodString;
6352
+ }, z.core.$strict>, z.ZodObject<{
6353
+ type: z.ZodLiteral<"page_contains">;
6354
+ text: z.ZodString;
6355
+ }, z.core.$strict>, z.ZodObject<{
6356
+ type: z.ZodLiteral<"http_resource_matches">;
6357
+ url: z.ZodString;
6358
+ method: z.ZodDefault<z.ZodEnum<{
6359
+ GET: "GET";
6360
+ HEAD: "HEAD";
6361
+ }>>;
6362
+ path: z.ZodString;
6363
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6364
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
4979
6365
  }, z.core.$strict>], "type">>>;
4980
6366
  identity: z.ZodOptional<z.ZodObject<{
4981
6367
  principal: z.ZodObject<{
@@ -5191,6 +6577,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5191
6577
  name: z.ZodOptional<z.ZodString>;
5192
6578
  }, z.core.$strict>>;
5193
6579
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6580
+ }, z.core.$strict>, z.ZodObject<{
6581
+ kind: z.ZodLiteral<"http">;
6582
+ action: z.ZodLiteral<"request">;
6583
+ method: z.ZodDefault<z.ZodEnum<{
6584
+ DELETE: "DELETE";
6585
+ GET: "GET";
6586
+ HEAD: "HEAD";
6587
+ POST: "POST";
6588
+ PUT: "PUT";
6589
+ PATCH: "PATCH";
6590
+ }>>;
6591
+ url: z.ZodString;
6592
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6593
+ content: z.ZodOptional<z.ZodString>;
6594
+ idempotencyKey: z.ZodOptional<z.ZodString>;
6595
+ spend: z.ZodOptional<z.ZodObject<{
6596
+ provider: z.ZodString;
6597
+ account: z.ZodOptional<z.ZodString>;
6598
+ amount: z.ZodNumber;
6599
+ currency: z.ZodString;
6600
+ }, z.core.$strict>>;
6601
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
6602
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5194
6603
  }, z.core.$strict>, z.ZodObject<{
5195
6604
  kind: z.ZodLiteral<"system">;
5196
6605
  action: z.ZodLiteral<"info">;
@@ -5233,6 +6642,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5233
6642
  }, z.core.$strict>, z.ZodObject<{
5234
6643
  type: z.ZodLiteral<"page_contains">;
5235
6644
  text: z.ZodString;
6645
+ }, z.core.$strict>, z.ZodObject<{
6646
+ type: z.ZodLiteral<"http_resource_matches">;
6647
+ url: z.ZodString;
6648
+ method: z.ZodDefault<z.ZodEnum<{
6649
+ GET: "GET";
6650
+ HEAD: "HEAD";
6651
+ }>>;
6652
+ path: z.ZodString;
6653
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6654
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6655
+ }, z.core.$strict>], "type">>>;
6656
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6657
+ type: z.ZodLiteral<"result_equals">;
6658
+ path: z.ZodString;
6659
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6660
+ }, z.core.$strict>, z.ZodObject<{
6661
+ type: z.ZodLiteral<"result_contains">;
6662
+ path: z.ZodString;
6663
+ value: z.ZodString;
6664
+ }, z.core.$strict>, z.ZodObject<{
6665
+ type: z.ZodLiteral<"file_exists">;
6666
+ path: z.ZodString;
6667
+ }, z.core.$strict>, z.ZodObject<{
6668
+ type: z.ZodLiteral<"file_absent">;
6669
+ path: z.ZodString;
6670
+ }, z.core.$strict>, z.ZodObject<{
6671
+ type: z.ZodLiteral<"file_hash">;
6672
+ path: z.ZodString;
6673
+ sha256: z.ZodString;
6674
+ }, z.core.$strict>, z.ZodObject<{
6675
+ type: z.ZodLiteral<"exit_code">;
6676
+ value: z.ZodNumber;
6677
+ }, z.core.$strict>, z.ZodObject<{
6678
+ type: z.ZodLiteral<"url_matches">;
6679
+ pattern: z.ZodString;
6680
+ }, z.core.$strict>, z.ZodObject<{
6681
+ type: z.ZodLiteral<"page_contains">;
6682
+ text: z.ZodString;
6683
+ }, z.core.$strict>, z.ZodObject<{
6684
+ type: z.ZodLiteral<"http_resource_matches">;
6685
+ url: z.ZodString;
6686
+ method: z.ZodDefault<z.ZodEnum<{
6687
+ GET: "GET";
6688
+ HEAD: "HEAD";
6689
+ }>>;
6690
+ path: z.ZodString;
6691
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6692
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5236
6693
  }, z.core.$strict>], "type">>>;
5237
6694
  identity: z.ZodOptional<z.ZodObject<{
5238
6695
  principal: z.ZodObject<{
@@ -5448,6 +6905,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5448
6905
  name: z.ZodOptional<z.ZodString>;
5449
6906
  }, z.core.$strict>>;
5450
6907
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6908
+ }, z.core.$strict>, z.ZodObject<{
6909
+ kind: z.ZodLiteral<"http">;
6910
+ action: z.ZodLiteral<"request">;
6911
+ method: z.ZodDefault<z.ZodEnum<{
6912
+ DELETE: "DELETE";
6913
+ GET: "GET";
6914
+ HEAD: "HEAD";
6915
+ POST: "POST";
6916
+ PUT: "PUT";
6917
+ PATCH: "PATCH";
6918
+ }>>;
6919
+ url: z.ZodString;
6920
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6921
+ content: z.ZodOptional<z.ZodString>;
6922
+ idempotencyKey: z.ZodOptional<z.ZodString>;
6923
+ spend: z.ZodOptional<z.ZodObject<{
6924
+ provider: z.ZodString;
6925
+ account: z.ZodOptional<z.ZodString>;
6926
+ amount: z.ZodNumber;
6927
+ currency: z.ZodString;
6928
+ }, z.core.$strict>>;
6929
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
6930
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5451
6931
  }, z.core.$strict>, z.ZodObject<{
5452
6932
  kind: z.ZodLiteral<"system">;
5453
6933
  action: z.ZodLiteral<"info">;
@@ -5490,6 +6970,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5490
6970
  }, z.core.$strict>, z.ZodObject<{
5491
6971
  type: z.ZodLiteral<"page_contains">;
5492
6972
  text: z.ZodString;
6973
+ }, z.core.$strict>, z.ZodObject<{
6974
+ type: z.ZodLiteral<"http_resource_matches">;
6975
+ url: z.ZodString;
6976
+ method: z.ZodDefault<z.ZodEnum<{
6977
+ GET: "GET";
6978
+ HEAD: "HEAD";
6979
+ }>>;
6980
+ path: z.ZodString;
6981
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6982
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6983
+ }, z.core.$strict>], "type">>>;
6984
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6985
+ type: z.ZodLiteral<"result_equals">;
6986
+ path: z.ZodString;
6987
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6988
+ }, z.core.$strict>, z.ZodObject<{
6989
+ type: z.ZodLiteral<"result_contains">;
6990
+ path: z.ZodString;
6991
+ value: z.ZodString;
6992
+ }, z.core.$strict>, z.ZodObject<{
6993
+ type: z.ZodLiteral<"file_exists">;
6994
+ path: z.ZodString;
6995
+ }, z.core.$strict>, z.ZodObject<{
6996
+ type: z.ZodLiteral<"file_absent">;
6997
+ path: z.ZodString;
6998
+ }, z.core.$strict>, z.ZodObject<{
6999
+ type: z.ZodLiteral<"file_hash">;
7000
+ path: z.ZodString;
7001
+ sha256: z.ZodString;
7002
+ }, z.core.$strict>, z.ZodObject<{
7003
+ type: z.ZodLiteral<"exit_code">;
7004
+ value: z.ZodNumber;
7005
+ }, z.core.$strict>, z.ZodObject<{
7006
+ type: z.ZodLiteral<"url_matches">;
7007
+ pattern: z.ZodString;
7008
+ }, z.core.$strict>, z.ZodObject<{
7009
+ type: z.ZodLiteral<"page_contains">;
7010
+ text: z.ZodString;
7011
+ }, z.core.$strict>, z.ZodObject<{
7012
+ type: z.ZodLiteral<"http_resource_matches">;
7013
+ url: z.ZodString;
7014
+ method: z.ZodDefault<z.ZodEnum<{
7015
+ GET: "GET";
7016
+ HEAD: "HEAD";
7017
+ }>>;
7018
+ path: z.ZodString;
7019
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7020
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5493
7021
  }, z.core.$strict>], "type">>>;
5494
7022
  identity: z.ZodOptional<z.ZodObject<{
5495
7023
  principal: z.ZodObject<{
@@ -5546,6 +7074,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5546
7074
  }, z.core.$strict>, z.ZodObject<{
5547
7075
  type: z.ZodLiteral<"page_contains">;
5548
7076
  text: z.ZodString;
7077
+ }, z.core.$strict>, z.ZodObject<{
7078
+ type: z.ZodLiteral<"http_resource_matches">;
7079
+ url: z.ZodString;
7080
+ method: z.ZodDefault<z.ZodEnum<{
7081
+ GET: "GET";
7082
+ HEAD: "HEAD";
7083
+ }>>;
7084
+ path: z.ZodString;
7085
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7086
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5549
7087
  }, z.core.$strict>], "type">>;
5550
7088
  }, z.core.$strict>, z.ZodObject<{
5551
7089
  id: z.ZodString;
@@ -5739,6 +7277,29 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5739
7277
  name: z.ZodOptional<z.ZodString>;
5740
7278
  }, z.core.$strict>>;
5741
7279
  timeoutMs: z.ZodDefault<z.ZodNumber>;
7280
+ }, z.core.$strict>, z.ZodObject<{
7281
+ kind: z.ZodLiteral<"http">;
7282
+ action: z.ZodLiteral<"request">;
7283
+ method: z.ZodDefault<z.ZodEnum<{
7284
+ DELETE: "DELETE";
7285
+ GET: "GET";
7286
+ HEAD: "HEAD";
7287
+ POST: "POST";
7288
+ PUT: "PUT";
7289
+ PATCH: "PATCH";
7290
+ }>>;
7291
+ url: z.ZodString;
7292
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7293
+ content: z.ZodOptional<z.ZodString>;
7294
+ idempotencyKey: z.ZodOptional<z.ZodString>;
7295
+ spend: z.ZodOptional<z.ZodObject<{
7296
+ provider: z.ZodString;
7297
+ account: z.ZodOptional<z.ZodString>;
7298
+ amount: z.ZodNumber;
7299
+ currency: z.ZodString;
7300
+ }, z.core.$strict>>;
7301
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
7302
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5742
7303
  }, z.core.$strict>, z.ZodObject<{
5743
7304
  kind: z.ZodLiteral<"system">;
5744
7305
  action: z.ZodLiteral<"info">;
@@ -5781,6 +7342,54 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5781
7342
  }, z.core.$strict>, z.ZodObject<{
5782
7343
  type: z.ZodLiteral<"page_contains">;
5783
7344
  text: z.ZodString;
7345
+ }, z.core.$strict>, z.ZodObject<{
7346
+ type: z.ZodLiteral<"http_resource_matches">;
7347
+ url: z.ZodString;
7348
+ method: z.ZodDefault<z.ZodEnum<{
7349
+ GET: "GET";
7350
+ HEAD: "HEAD";
7351
+ }>>;
7352
+ path: z.ZodString;
7353
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7354
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7355
+ }, z.core.$strict>], "type">>>;
7356
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7357
+ type: z.ZodLiteral<"result_equals">;
7358
+ path: z.ZodString;
7359
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7360
+ }, z.core.$strict>, z.ZodObject<{
7361
+ type: z.ZodLiteral<"result_contains">;
7362
+ path: z.ZodString;
7363
+ value: z.ZodString;
7364
+ }, z.core.$strict>, z.ZodObject<{
7365
+ type: z.ZodLiteral<"file_exists">;
7366
+ path: z.ZodString;
7367
+ }, z.core.$strict>, z.ZodObject<{
7368
+ type: z.ZodLiteral<"file_absent">;
7369
+ path: z.ZodString;
7370
+ }, z.core.$strict>, z.ZodObject<{
7371
+ type: z.ZodLiteral<"file_hash">;
7372
+ path: z.ZodString;
7373
+ sha256: z.ZodString;
7374
+ }, z.core.$strict>, z.ZodObject<{
7375
+ type: z.ZodLiteral<"exit_code">;
7376
+ value: z.ZodNumber;
7377
+ }, z.core.$strict>, z.ZodObject<{
7378
+ type: z.ZodLiteral<"url_matches">;
7379
+ pattern: z.ZodString;
7380
+ }, z.core.$strict>, z.ZodObject<{
7381
+ type: z.ZodLiteral<"page_contains">;
7382
+ text: z.ZodString;
7383
+ }, z.core.$strict>, z.ZodObject<{
7384
+ type: z.ZodLiteral<"http_resource_matches">;
7385
+ url: z.ZodString;
7386
+ method: z.ZodDefault<z.ZodEnum<{
7387
+ GET: "GET";
7388
+ HEAD: "HEAD";
7389
+ }>>;
7390
+ path: z.ZodString;
7391
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7392
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5784
7393
  }, z.core.$strict>], "type">>>;
5785
7394
  identity: z.ZodOptional<z.ZodObject<{
5786
7395
  principal: z.ZodObject<{
@@ -5849,6 +7458,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
5849
7458
  }, z.core.$strict>, z.ZodObject<{
5850
7459
  type: z.ZodLiteral<"page_contains">;
5851
7460
  text: z.ZodString;
7461
+ }, z.core.$strict>, z.ZodObject<{
7462
+ type: z.ZodLiteral<"http_resource_matches">;
7463
+ url: z.ZodString;
7464
+ method: z.ZodDefault<z.ZodEnum<{
7465
+ GET: "GET";
7466
+ HEAD: "HEAD";
7467
+ }>>;
7468
+ path: z.ZodString;
7469
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7470
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
5852
7471
  }, z.core.$strict>], "type">>>;
5853
7472
  }, z.core.$strict>], "type">>;
5854
7473
  budget: z.ZodOptional<z.ZodObject<{
@@ -6302,6 +7921,29 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6302
7921
  name: z.ZodOptional<z.ZodString>;
6303
7922
  }, z.core.$strict>>;
6304
7923
  timeoutMs: z.ZodDefault<z.ZodNumber>;
7924
+ }, z.core.$strict>, z.ZodObject<{
7925
+ kind: z.ZodLiteral<"http">;
7926
+ action: z.ZodLiteral<"request">;
7927
+ method: z.ZodDefault<z.ZodEnum<{
7928
+ DELETE: "DELETE";
7929
+ GET: "GET";
7930
+ HEAD: "HEAD";
7931
+ POST: "POST";
7932
+ PUT: "PUT";
7933
+ PATCH: "PATCH";
7934
+ }>>;
7935
+ url: z.ZodString;
7936
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7937
+ content: z.ZodOptional<z.ZodString>;
7938
+ idempotencyKey: z.ZodOptional<z.ZodString>;
7939
+ spend: z.ZodOptional<z.ZodObject<{
7940
+ provider: z.ZodString;
7941
+ account: z.ZodOptional<z.ZodString>;
7942
+ amount: z.ZodNumber;
7943
+ currency: z.ZodString;
7944
+ }, z.core.$strict>>;
7945
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
7946
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6305
7947
  }, z.core.$strict>, z.ZodObject<{
6306
7948
  kind: z.ZodLiteral<"system">;
6307
7949
  action: z.ZodLiteral<"info">;
@@ -6344,6 +7986,54 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6344
7986
  }, z.core.$strict>, z.ZodObject<{
6345
7987
  type: z.ZodLiteral<"page_contains">;
6346
7988
  text: z.ZodString;
7989
+ }, z.core.$strict>, z.ZodObject<{
7990
+ type: z.ZodLiteral<"http_resource_matches">;
7991
+ url: z.ZodString;
7992
+ method: z.ZodDefault<z.ZodEnum<{
7993
+ GET: "GET";
7994
+ HEAD: "HEAD";
7995
+ }>>;
7996
+ path: z.ZodString;
7997
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
7998
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7999
+ }, z.core.$strict>], "type">>>;
8000
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8001
+ type: z.ZodLiteral<"result_equals">;
8002
+ path: z.ZodString;
8003
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8004
+ }, z.core.$strict>, z.ZodObject<{
8005
+ type: z.ZodLiteral<"result_contains">;
8006
+ path: z.ZodString;
8007
+ value: z.ZodString;
8008
+ }, z.core.$strict>, z.ZodObject<{
8009
+ type: z.ZodLiteral<"file_exists">;
8010
+ path: z.ZodString;
8011
+ }, z.core.$strict>, z.ZodObject<{
8012
+ type: z.ZodLiteral<"file_absent">;
8013
+ path: z.ZodString;
8014
+ }, z.core.$strict>, z.ZodObject<{
8015
+ type: z.ZodLiteral<"file_hash">;
8016
+ path: z.ZodString;
8017
+ sha256: z.ZodString;
8018
+ }, z.core.$strict>, z.ZodObject<{
8019
+ type: z.ZodLiteral<"exit_code">;
8020
+ value: z.ZodNumber;
8021
+ }, z.core.$strict>, z.ZodObject<{
8022
+ type: z.ZodLiteral<"url_matches">;
8023
+ pattern: z.ZodString;
8024
+ }, z.core.$strict>, z.ZodObject<{
8025
+ type: z.ZodLiteral<"page_contains">;
8026
+ text: z.ZodString;
8027
+ }, z.core.$strict>, z.ZodObject<{
8028
+ type: z.ZodLiteral<"http_resource_matches">;
8029
+ url: z.ZodString;
8030
+ method: z.ZodDefault<z.ZodEnum<{
8031
+ GET: "GET";
8032
+ HEAD: "HEAD";
8033
+ }>>;
8034
+ path: z.ZodString;
8035
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8036
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6347
8037
  }, z.core.$strict>], "type">>>;
6348
8038
  identity: z.ZodOptional<z.ZodObject<{
6349
8039
  principal: z.ZodObject<{
@@ -6409,6 +8099,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6409
8099
  }, z.core.$strict>, z.ZodObject<{
6410
8100
  type: z.ZodLiteral<"page_contains">;
6411
8101
  text: z.ZodString;
8102
+ }, z.core.$strict>, z.ZodObject<{
8103
+ type: z.ZodLiteral<"http_resource_matches">;
8104
+ url: z.ZodString;
8105
+ method: z.ZodDefault<z.ZodEnum<{
8106
+ GET: "GET";
8107
+ HEAD: "HEAD";
8108
+ }>>;
8109
+ path: z.ZodString;
8110
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8111
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6412
8112
  }, z.core.$strict>], "type">;
6413
8113
  whenTrue: z.ZodDefault<z.ZodArray<z.ZodObject<{
6414
8114
  goal: z.ZodString;
@@ -6587,28 +8287,89 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6587
8287
  PAGEDOWN: "PAGEDOWN";
6588
8288
  DELETE: "DELETE";
6589
8289
  }>>;
6590
- deltaY: z.ZodOptional<z.ZodNumber>;
6591
- target: z.ZodOptional<z.ZodObject<{
6592
- role: z.ZodOptional<z.ZodString>;
6593
- name: z.ZodOptional<z.ZodString>;
6594
- }, z.core.$strict>>;
8290
+ deltaY: z.ZodOptional<z.ZodNumber>;
8291
+ target: z.ZodOptional<z.ZodObject<{
8292
+ role: z.ZodOptional<z.ZodString>;
8293
+ name: z.ZodOptional<z.ZodString>;
8294
+ }, z.core.$strict>>;
8295
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
8296
+ }, z.core.$strict>, z.ZodObject<{
8297
+ kind: z.ZodLiteral<"http">;
8298
+ action: z.ZodLiteral<"request">;
8299
+ method: z.ZodDefault<z.ZodEnum<{
8300
+ DELETE: "DELETE";
8301
+ GET: "GET";
8302
+ HEAD: "HEAD";
8303
+ POST: "POST";
8304
+ PUT: "PUT";
8305
+ PATCH: "PATCH";
8306
+ }>>;
8307
+ url: z.ZodString;
8308
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8309
+ content: z.ZodOptional<z.ZodString>;
8310
+ idempotencyKey: z.ZodOptional<z.ZodString>;
8311
+ spend: z.ZodOptional<z.ZodObject<{
8312
+ provider: z.ZodString;
8313
+ account: z.ZodOptional<z.ZodString>;
8314
+ amount: z.ZodNumber;
8315
+ currency: z.ZodString;
8316
+ }, z.core.$strict>>;
8317
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
8318
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
8319
+ }, z.core.$strict>, z.ZodObject<{
8320
+ kind: z.ZodLiteral<"system">;
8321
+ action: z.ZodLiteral<"info">;
8322
+ }, z.core.$strict>], "kind">;
8323
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString>>;
8324
+ forbiddenEffects: z.ZodDefault<z.ZodArray<z.ZodEnum<{
8325
+ read: "read";
8326
+ mutate: "mutate";
8327
+ destructive: "destructive";
8328
+ }>>>;
8329
+ budget: z.ZodDefault<z.ZodObject<{
8330
+ maxSteps: z.ZodDefault<z.ZodNumber>;
8331
+ maxDurationMs: z.ZodDefault<z.ZodNumber>;
8332
+ maxRetries: z.ZodDefault<z.ZodNumber>;
8333
+ }, z.core.$strict>>;
8334
+ requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8335
+ type: z.ZodLiteral<"result_equals">;
8336
+ path: z.ZodString;
8337
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8338
+ }, z.core.$strict>, z.ZodObject<{
8339
+ type: z.ZodLiteral<"result_contains">;
8340
+ path: z.ZodString;
8341
+ value: z.ZodString;
8342
+ }, z.core.$strict>, z.ZodObject<{
8343
+ type: z.ZodLiteral<"file_exists">;
8344
+ path: z.ZodString;
8345
+ }, z.core.$strict>, z.ZodObject<{
8346
+ type: z.ZodLiteral<"file_absent">;
8347
+ path: z.ZodString;
8348
+ }, z.core.$strict>, z.ZodObject<{
8349
+ type: z.ZodLiteral<"file_hash">;
8350
+ path: z.ZodString;
8351
+ sha256: z.ZodString;
8352
+ }, z.core.$strict>, z.ZodObject<{
8353
+ type: z.ZodLiteral<"exit_code">;
8354
+ value: z.ZodNumber;
8355
+ }, z.core.$strict>, z.ZodObject<{
8356
+ type: z.ZodLiteral<"url_matches">;
8357
+ pattern: z.ZodString;
8358
+ }, z.core.$strict>, z.ZodObject<{
8359
+ type: z.ZodLiteral<"page_contains">;
8360
+ text: z.ZodString;
8361
+ }, z.core.$strict>, z.ZodObject<{
8362
+ type: z.ZodLiteral<"http_resource_matches">;
8363
+ url: z.ZodString;
8364
+ method: z.ZodDefault<z.ZodEnum<{
8365
+ GET: "GET";
8366
+ HEAD: "HEAD";
8367
+ }>>;
8368
+ path: z.ZodString;
8369
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
6595
8370
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6596
- }, z.core.$strict>, z.ZodObject<{
6597
- kind: z.ZodLiteral<"system">;
6598
- action: z.ZodLiteral<"info">;
6599
- }, z.core.$strict>], "kind">;
6600
- constraints: z.ZodDefault<z.ZodArray<z.ZodString>>;
6601
- forbiddenEffects: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6602
- read: "read";
6603
- mutate: "mutate";
6604
- destructive: "destructive";
6605
- }>>>;
6606
- budget: z.ZodDefault<z.ZodObject<{
6607
- maxSteps: z.ZodDefault<z.ZodNumber>;
6608
- maxDurationMs: z.ZodDefault<z.ZodNumber>;
6609
- maxRetries: z.ZodDefault<z.ZodNumber>;
6610
- }, z.core.$strict>>;
6611
- requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8371
+ }, z.core.$strict>], "type">>>;
8372
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6612
8373
  type: z.ZodLiteral<"result_equals">;
6613
8374
  path: z.ZodString;
6614
8375
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
@@ -6635,6 +8396,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6635
8396
  }, z.core.$strict>, z.ZodObject<{
6636
8397
  type: z.ZodLiteral<"page_contains">;
6637
8398
  text: z.ZodString;
8399
+ }, z.core.$strict>, z.ZodObject<{
8400
+ type: z.ZodLiteral<"http_resource_matches">;
8401
+ url: z.ZodString;
8402
+ method: z.ZodDefault<z.ZodEnum<{
8403
+ GET: "GET";
8404
+ HEAD: "HEAD";
8405
+ }>>;
8406
+ path: z.ZodString;
8407
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8408
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6638
8409
  }, z.core.$strict>], "type">>>;
6639
8410
  identity: z.ZodOptional<z.ZodObject<{
6640
8411
  principal: z.ZodObject<{
@@ -6846,6 +8617,29 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6846
8617
  name: z.ZodOptional<z.ZodString>;
6847
8618
  }, z.core.$strict>>;
6848
8619
  timeoutMs: z.ZodDefault<z.ZodNumber>;
8620
+ }, z.core.$strict>, z.ZodObject<{
8621
+ kind: z.ZodLiteral<"http">;
8622
+ action: z.ZodLiteral<"request">;
8623
+ method: z.ZodDefault<z.ZodEnum<{
8624
+ DELETE: "DELETE";
8625
+ GET: "GET";
8626
+ HEAD: "HEAD";
8627
+ POST: "POST";
8628
+ PUT: "PUT";
8629
+ PATCH: "PATCH";
8630
+ }>>;
8631
+ url: z.ZodString;
8632
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8633
+ content: z.ZodOptional<z.ZodString>;
8634
+ idempotencyKey: z.ZodOptional<z.ZodString>;
8635
+ spend: z.ZodOptional<z.ZodObject<{
8636
+ provider: z.ZodString;
8637
+ account: z.ZodOptional<z.ZodString>;
8638
+ amount: z.ZodNumber;
8639
+ currency: z.ZodString;
8640
+ }, z.core.$strict>>;
8641
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
8642
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6849
8643
  }, z.core.$strict>, z.ZodObject<{
6850
8644
  kind: z.ZodLiteral<"system">;
6851
8645
  action: z.ZodLiteral<"info">;
@@ -6888,6 +8682,54 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6888
8682
  }, z.core.$strict>, z.ZodObject<{
6889
8683
  type: z.ZodLiteral<"page_contains">;
6890
8684
  text: z.ZodString;
8685
+ }, z.core.$strict>, z.ZodObject<{
8686
+ type: z.ZodLiteral<"http_resource_matches">;
8687
+ url: z.ZodString;
8688
+ method: z.ZodDefault<z.ZodEnum<{
8689
+ GET: "GET";
8690
+ HEAD: "HEAD";
8691
+ }>>;
8692
+ path: z.ZodString;
8693
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8694
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
8695
+ }, z.core.$strict>], "type">>>;
8696
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8697
+ type: z.ZodLiteral<"result_equals">;
8698
+ path: z.ZodString;
8699
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8700
+ }, z.core.$strict>, z.ZodObject<{
8701
+ type: z.ZodLiteral<"result_contains">;
8702
+ path: z.ZodString;
8703
+ value: z.ZodString;
8704
+ }, z.core.$strict>, z.ZodObject<{
8705
+ type: z.ZodLiteral<"file_exists">;
8706
+ path: z.ZodString;
8707
+ }, z.core.$strict>, z.ZodObject<{
8708
+ type: z.ZodLiteral<"file_absent">;
8709
+ path: z.ZodString;
8710
+ }, z.core.$strict>, z.ZodObject<{
8711
+ type: z.ZodLiteral<"file_hash">;
8712
+ path: z.ZodString;
8713
+ sha256: z.ZodString;
8714
+ }, z.core.$strict>, z.ZodObject<{
8715
+ type: z.ZodLiteral<"exit_code">;
8716
+ value: z.ZodNumber;
8717
+ }, z.core.$strict>, z.ZodObject<{
8718
+ type: z.ZodLiteral<"url_matches">;
8719
+ pattern: z.ZodString;
8720
+ }, z.core.$strict>, z.ZodObject<{
8721
+ type: z.ZodLiteral<"page_contains">;
8722
+ text: z.ZodString;
8723
+ }, z.core.$strict>, z.ZodObject<{
8724
+ type: z.ZodLiteral<"http_resource_matches">;
8725
+ url: z.ZodString;
8726
+ method: z.ZodDefault<z.ZodEnum<{
8727
+ GET: "GET";
8728
+ HEAD: "HEAD";
8729
+ }>>;
8730
+ path: z.ZodString;
8731
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8732
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
6891
8733
  }, z.core.$strict>], "type">>>;
6892
8734
  identity: z.ZodOptional<z.ZodObject<{
6893
8735
  principal: z.ZodObject<{
@@ -7103,6 +8945,29 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7103
8945
  name: z.ZodOptional<z.ZodString>;
7104
8946
  }, z.core.$strict>>;
7105
8947
  timeoutMs: z.ZodDefault<z.ZodNumber>;
8948
+ }, z.core.$strict>, z.ZodObject<{
8949
+ kind: z.ZodLiteral<"http">;
8950
+ action: z.ZodLiteral<"request">;
8951
+ method: z.ZodDefault<z.ZodEnum<{
8952
+ DELETE: "DELETE";
8953
+ GET: "GET";
8954
+ HEAD: "HEAD";
8955
+ POST: "POST";
8956
+ PUT: "PUT";
8957
+ PATCH: "PATCH";
8958
+ }>>;
8959
+ url: z.ZodString;
8960
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8961
+ content: z.ZodOptional<z.ZodString>;
8962
+ idempotencyKey: z.ZodOptional<z.ZodString>;
8963
+ spend: z.ZodOptional<z.ZodObject<{
8964
+ provider: z.ZodString;
8965
+ account: z.ZodOptional<z.ZodString>;
8966
+ amount: z.ZodNumber;
8967
+ currency: z.ZodString;
8968
+ }, z.core.$strict>>;
8969
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
8970
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7106
8971
  }, z.core.$strict>, z.ZodObject<{
7107
8972
  kind: z.ZodLiteral<"system">;
7108
8973
  action: z.ZodLiteral<"info">;
@@ -7145,6 +9010,54 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7145
9010
  }, z.core.$strict>, z.ZodObject<{
7146
9011
  type: z.ZodLiteral<"page_contains">;
7147
9012
  text: z.ZodString;
9013
+ }, z.core.$strict>, z.ZodObject<{
9014
+ type: z.ZodLiteral<"http_resource_matches">;
9015
+ url: z.ZodString;
9016
+ method: z.ZodDefault<z.ZodEnum<{
9017
+ GET: "GET";
9018
+ HEAD: "HEAD";
9019
+ }>>;
9020
+ path: z.ZodString;
9021
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9022
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
9023
+ }, z.core.$strict>], "type">>>;
9024
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9025
+ type: z.ZodLiteral<"result_equals">;
9026
+ path: z.ZodString;
9027
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9028
+ }, z.core.$strict>, z.ZodObject<{
9029
+ type: z.ZodLiteral<"result_contains">;
9030
+ path: z.ZodString;
9031
+ value: z.ZodString;
9032
+ }, z.core.$strict>, z.ZodObject<{
9033
+ type: z.ZodLiteral<"file_exists">;
9034
+ path: z.ZodString;
9035
+ }, z.core.$strict>, z.ZodObject<{
9036
+ type: z.ZodLiteral<"file_absent">;
9037
+ path: z.ZodString;
9038
+ }, z.core.$strict>, z.ZodObject<{
9039
+ type: z.ZodLiteral<"file_hash">;
9040
+ path: z.ZodString;
9041
+ sha256: z.ZodString;
9042
+ }, z.core.$strict>, z.ZodObject<{
9043
+ type: z.ZodLiteral<"exit_code">;
9044
+ value: z.ZodNumber;
9045
+ }, z.core.$strict>, z.ZodObject<{
9046
+ type: z.ZodLiteral<"url_matches">;
9047
+ pattern: z.ZodString;
9048
+ }, z.core.$strict>, z.ZodObject<{
9049
+ type: z.ZodLiteral<"page_contains">;
9050
+ text: z.ZodString;
9051
+ }, z.core.$strict>, z.ZodObject<{
9052
+ type: z.ZodLiteral<"http_resource_matches">;
9053
+ url: z.ZodString;
9054
+ method: z.ZodDefault<z.ZodEnum<{
9055
+ GET: "GET";
9056
+ HEAD: "HEAD";
9057
+ }>>;
9058
+ path: z.ZodString;
9059
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9060
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7148
9061
  }, z.core.$strict>], "type">>>;
7149
9062
  identity: z.ZodOptional<z.ZodObject<{
7150
9063
  principal: z.ZodObject<{
@@ -7360,6 +9273,29 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7360
9273
  name: z.ZodOptional<z.ZodString>;
7361
9274
  }, z.core.$strict>>;
7362
9275
  timeoutMs: z.ZodDefault<z.ZodNumber>;
9276
+ }, z.core.$strict>, z.ZodObject<{
9277
+ kind: z.ZodLiteral<"http">;
9278
+ action: z.ZodLiteral<"request">;
9279
+ method: z.ZodDefault<z.ZodEnum<{
9280
+ DELETE: "DELETE";
9281
+ GET: "GET";
9282
+ HEAD: "HEAD";
9283
+ POST: "POST";
9284
+ PUT: "PUT";
9285
+ PATCH: "PATCH";
9286
+ }>>;
9287
+ url: z.ZodString;
9288
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9289
+ content: z.ZodOptional<z.ZodString>;
9290
+ idempotencyKey: z.ZodOptional<z.ZodString>;
9291
+ spend: z.ZodOptional<z.ZodObject<{
9292
+ provider: z.ZodString;
9293
+ account: z.ZodOptional<z.ZodString>;
9294
+ amount: z.ZodNumber;
9295
+ currency: z.ZodString;
9296
+ }, z.core.$strict>>;
9297
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
9298
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7363
9299
  }, z.core.$strict>, z.ZodObject<{
7364
9300
  kind: z.ZodLiteral<"system">;
7365
9301
  action: z.ZodLiteral<"info">;
@@ -7402,6 +9338,54 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7402
9338
  }, z.core.$strict>, z.ZodObject<{
7403
9339
  type: z.ZodLiteral<"page_contains">;
7404
9340
  text: z.ZodString;
9341
+ }, z.core.$strict>, z.ZodObject<{
9342
+ type: z.ZodLiteral<"http_resource_matches">;
9343
+ url: z.ZodString;
9344
+ method: z.ZodDefault<z.ZodEnum<{
9345
+ GET: "GET";
9346
+ HEAD: "HEAD";
9347
+ }>>;
9348
+ path: z.ZodString;
9349
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9350
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
9351
+ }, z.core.$strict>], "type">>>;
9352
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9353
+ type: z.ZodLiteral<"result_equals">;
9354
+ path: z.ZodString;
9355
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9356
+ }, z.core.$strict>, z.ZodObject<{
9357
+ type: z.ZodLiteral<"result_contains">;
9358
+ path: z.ZodString;
9359
+ value: z.ZodString;
9360
+ }, z.core.$strict>, z.ZodObject<{
9361
+ type: z.ZodLiteral<"file_exists">;
9362
+ path: z.ZodString;
9363
+ }, z.core.$strict>, z.ZodObject<{
9364
+ type: z.ZodLiteral<"file_absent">;
9365
+ path: z.ZodString;
9366
+ }, z.core.$strict>, z.ZodObject<{
9367
+ type: z.ZodLiteral<"file_hash">;
9368
+ path: z.ZodString;
9369
+ sha256: z.ZodString;
9370
+ }, z.core.$strict>, z.ZodObject<{
9371
+ type: z.ZodLiteral<"exit_code">;
9372
+ value: z.ZodNumber;
9373
+ }, z.core.$strict>, z.ZodObject<{
9374
+ type: z.ZodLiteral<"url_matches">;
9375
+ pattern: z.ZodString;
9376
+ }, z.core.$strict>, z.ZodObject<{
9377
+ type: z.ZodLiteral<"page_contains">;
9378
+ text: z.ZodString;
9379
+ }, z.core.$strict>, z.ZodObject<{
9380
+ type: z.ZodLiteral<"http_resource_matches">;
9381
+ url: z.ZodString;
9382
+ method: z.ZodDefault<z.ZodEnum<{
9383
+ GET: "GET";
9384
+ HEAD: "HEAD";
9385
+ }>>;
9386
+ path: z.ZodString;
9387
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9388
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7405
9389
  }, z.core.$strict>], "type">>>;
7406
9390
  identity: z.ZodOptional<z.ZodObject<{
7407
9391
  principal: z.ZodObject<{
@@ -7458,6 +9442,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7458
9442
  }, z.core.$strict>, z.ZodObject<{
7459
9443
  type: z.ZodLiteral<"page_contains">;
7460
9444
  text: z.ZodString;
9445
+ }, z.core.$strict>, z.ZodObject<{
9446
+ type: z.ZodLiteral<"http_resource_matches">;
9447
+ url: z.ZodString;
9448
+ method: z.ZodDefault<z.ZodEnum<{
9449
+ GET: "GET";
9450
+ HEAD: "HEAD";
9451
+ }>>;
9452
+ path: z.ZodString;
9453
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9454
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7461
9455
  }, z.core.$strict>], "type">>;
7462
9456
  }, z.core.$strict>, z.ZodObject<{
7463
9457
  id: z.ZodString;
@@ -7651,6 +9645,29 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7651
9645
  name: z.ZodOptional<z.ZodString>;
7652
9646
  }, z.core.$strict>>;
7653
9647
  timeoutMs: z.ZodDefault<z.ZodNumber>;
9648
+ }, z.core.$strict>, z.ZodObject<{
9649
+ kind: z.ZodLiteral<"http">;
9650
+ action: z.ZodLiteral<"request">;
9651
+ method: z.ZodDefault<z.ZodEnum<{
9652
+ DELETE: "DELETE";
9653
+ GET: "GET";
9654
+ HEAD: "HEAD";
9655
+ POST: "POST";
9656
+ PUT: "PUT";
9657
+ PATCH: "PATCH";
9658
+ }>>;
9659
+ url: z.ZodString;
9660
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9661
+ content: z.ZodOptional<z.ZodString>;
9662
+ idempotencyKey: z.ZodOptional<z.ZodString>;
9663
+ spend: z.ZodOptional<z.ZodObject<{
9664
+ provider: z.ZodString;
9665
+ account: z.ZodOptional<z.ZodString>;
9666
+ amount: z.ZodNumber;
9667
+ currency: z.ZodString;
9668
+ }, z.core.$strict>>;
9669
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
9670
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7654
9671
  }, z.core.$strict>, z.ZodObject<{
7655
9672
  kind: z.ZodLiteral<"system">;
7656
9673
  action: z.ZodLiteral<"info">;
@@ -7693,6 +9710,54 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7693
9710
  }, z.core.$strict>, z.ZodObject<{
7694
9711
  type: z.ZodLiteral<"page_contains">;
7695
9712
  text: z.ZodString;
9713
+ }, z.core.$strict>, z.ZodObject<{
9714
+ type: z.ZodLiteral<"http_resource_matches">;
9715
+ url: z.ZodString;
9716
+ method: z.ZodDefault<z.ZodEnum<{
9717
+ GET: "GET";
9718
+ HEAD: "HEAD";
9719
+ }>>;
9720
+ path: z.ZodString;
9721
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9722
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
9723
+ }, z.core.$strict>], "type">>>;
9724
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9725
+ type: z.ZodLiteral<"result_equals">;
9726
+ path: z.ZodString;
9727
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9728
+ }, z.core.$strict>, z.ZodObject<{
9729
+ type: z.ZodLiteral<"result_contains">;
9730
+ path: z.ZodString;
9731
+ value: z.ZodString;
9732
+ }, z.core.$strict>, z.ZodObject<{
9733
+ type: z.ZodLiteral<"file_exists">;
9734
+ path: z.ZodString;
9735
+ }, z.core.$strict>, z.ZodObject<{
9736
+ type: z.ZodLiteral<"file_absent">;
9737
+ path: z.ZodString;
9738
+ }, z.core.$strict>, z.ZodObject<{
9739
+ type: z.ZodLiteral<"file_hash">;
9740
+ path: z.ZodString;
9741
+ sha256: z.ZodString;
9742
+ }, z.core.$strict>, z.ZodObject<{
9743
+ type: z.ZodLiteral<"exit_code">;
9744
+ value: z.ZodNumber;
9745
+ }, z.core.$strict>, z.ZodObject<{
9746
+ type: z.ZodLiteral<"url_matches">;
9747
+ pattern: z.ZodString;
9748
+ }, z.core.$strict>, z.ZodObject<{
9749
+ type: z.ZodLiteral<"page_contains">;
9750
+ text: z.ZodString;
9751
+ }, z.core.$strict>, z.ZodObject<{
9752
+ type: z.ZodLiteral<"http_resource_matches">;
9753
+ url: z.ZodString;
9754
+ method: z.ZodDefault<z.ZodEnum<{
9755
+ GET: "GET";
9756
+ HEAD: "HEAD";
9757
+ }>>;
9758
+ path: z.ZodString;
9759
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9760
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7696
9761
  }, z.core.$strict>], "type">>>;
7697
9762
  identity: z.ZodOptional<z.ZodObject<{
7698
9763
  principal: z.ZodObject<{
@@ -7761,6 +9826,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
7761
9826
  }, z.core.$strict>, z.ZodObject<{
7762
9827
  type: z.ZodLiteral<"page_contains">;
7763
9828
  text: z.ZodString;
9829
+ }, z.core.$strict>, z.ZodObject<{
9830
+ type: z.ZodLiteral<"http_resource_matches">;
9831
+ url: z.ZodString;
9832
+ method: z.ZodDefault<z.ZodEnum<{
9833
+ GET: "GET";
9834
+ HEAD: "HEAD";
9835
+ }>>;
9836
+ path: z.ZodString;
9837
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
9838
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
7764
9839
  }, z.core.$strict>], "type">>>;
7765
9840
  }, z.core.$strict>], "type">>;
7766
9841
  budget: z.ZodOptional<z.ZodObject<{
@@ -8043,6 +10118,29 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
8043
10118
  name: z.ZodOptional<z.ZodString>;
8044
10119
  }, z.core.$strict>>;
8045
10120
  timeoutMs: z.ZodDefault<z.ZodNumber>;
10121
+ }, z.core.$strict>, z.ZodObject<{
10122
+ kind: z.ZodLiteral<"http">;
10123
+ action: z.ZodLiteral<"request">;
10124
+ method: z.ZodDefault<z.ZodEnum<{
10125
+ DELETE: "DELETE";
10126
+ GET: "GET";
10127
+ HEAD: "HEAD";
10128
+ POST: "POST";
10129
+ PUT: "PUT";
10130
+ PATCH: "PATCH";
10131
+ }>>;
10132
+ url: z.ZodString;
10133
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10134
+ content: z.ZodOptional<z.ZodString>;
10135
+ idempotencyKey: z.ZodOptional<z.ZodString>;
10136
+ spend: z.ZodOptional<z.ZodObject<{
10137
+ provider: z.ZodString;
10138
+ account: z.ZodOptional<z.ZodString>;
10139
+ amount: z.ZodNumber;
10140
+ currency: z.ZodString;
10141
+ }, z.core.$strict>>;
10142
+ maxResponseBytes: z.ZodDefault<z.ZodNumber>;
10143
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
8046
10144
  }, z.core.$strict>, z.ZodObject<{
8047
10145
  kind: z.ZodLiteral<"system">;
8048
10146
  action: z.ZodLiteral<"info">;
@@ -8085,6 +10183,54 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
8085
10183
  }, z.core.$strict>, z.ZodObject<{
8086
10184
  type: z.ZodLiteral<"page_contains">;
8087
10185
  text: z.ZodString;
10186
+ }, z.core.$strict>, z.ZodObject<{
10187
+ type: z.ZodLiteral<"http_resource_matches">;
10188
+ url: z.ZodString;
10189
+ method: z.ZodDefault<z.ZodEnum<{
10190
+ GET: "GET";
10191
+ HEAD: "HEAD";
10192
+ }>>;
10193
+ path: z.ZodString;
10194
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
10195
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
10196
+ }, z.core.$strict>], "type">>>;
10197
+ reconciliation: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
10198
+ type: z.ZodLiteral<"result_equals">;
10199
+ path: z.ZodString;
10200
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
10201
+ }, z.core.$strict>, z.ZodObject<{
10202
+ type: z.ZodLiteral<"result_contains">;
10203
+ path: z.ZodString;
10204
+ value: z.ZodString;
10205
+ }, z.core.$strict>, z.ZodObject<{
10206
+ type: z.ZodLiteral<"file_exists">;
10207
+ path: z.ZodString;
10208
+ }, z.core.$strict>, z.ZodObject<{
10209
+ type: z.ZodLiteral<"file_absent">;
10210
+ path: z.ZodString;
10211
+ }, z.core.$strict>, z.ZodObject<{
10212
+ type: z.ZodLiteral<"file_hash">;
10213
+ path: z.ZodString;
10214
+ sha256: z.ZodString;
10215
+ }, z.core.$strict>, z.ZodObject<{
10216
+ type: z.ZodLiteral<"exit_code">;
10217
+ value: z.ZodNumber;
10218
+ }, z.core.$strict>, z.ZodObject<{
10219
+ type: z.ZodLiteral<"url_matches">;
10220
+ pattern: z.ZodString;
10221
+ }, z.core.$strict>, z.ZodObject<{
10222
+ type: z.ZodLiteral<"page_contains">;
10223
+ text: z.ZodString;
10224
+ }, z.core.$strict>, z.ZodObject<{
10225
+ type: z.ZodLiteral<"http_resource_matches">;
10226
+ url: z.ZodString;
10227
+ method: z.ZodDefault<z.ZodEnum<{
10228
+ GET: "GET";
10229
+ HEAD: "HEAD";
10230
+ }>>;
10231
+ path: z.ZodString;
10232
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
10233
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
8088
10234
  }, z.core.$strict>], "type">>>;
8089
10235
  identity: z.ZodOptional<z.ZodObject<{
8090
10236
  principal: z.ZodObject<{