@nucypher/taco 0.7.0-alpha.1 → 0.7.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/cjs/conditions/base/context-variable.d.ts +10 -0
  2. package/dist/cjs/conditions/base/context-variable.js +19 -0
  3. package/dist/cjs/conditions/base/context-variable.js.map +1 -0
  4. package/dist/cjs/conditions/base/index.d.ts +2 -1
  5. package/dist/cjs/conditions/base/index.js +3 -2
  6. package/dist/cjs/conditions/base/index.js.map +1 -1
  7. package/dist/cjs/conditions/base/json.d.ts +7 -0
  8. package/dist/cjs/conditions/base/json.js +18 -0
  9. package/dist/cjs/conditions/base/json.js.map +1 -0
  10. package/dist/cjs/conditions/condition-factory.js +6 -3
  11. package/dist/cjs/conditions/condition-factory.js.map +1 -1
  12. package/dist/cjs/conditions/schemas/context-variable.d.ts +45 -0
  13. package/dist/cjs/conditions/schemas/context-variable.js +17 -0
  14. package/dist/cjs/conditions/schemas/context-variable.js.map +1 -0
  15. package/dist/cjs/conditions/schemas/contract.d.ts +12 -12
  16. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.d.ts +2 -1
  17. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.js +2 -2
  18. package/dist/cjs/conditions/schemas/export-for-zod-doc-gen.js.map +1 -1
  19. package/dist/cjs/conditions/schemas/json-api.d.ts +8 -8
  20. package/dist/cjs/conditions/schemas/json-rpc.d.ts +8 -8
  21. package/dist/cjs/conditions/schemas/json.d.ts +48 -0
  22. package/dist/cjs/conditions/schemas/json.js +17 -0
  23. package/dist/cjs/conditions/schemas/json.js.map +1 -0
  24. package/dist/cjs/conditions/schemas/return-value-test.js +2 -1
  25. package/dist/cjs/conditions/schemas/return-value-test.js.map +1 -1
  26. package/dist/cjs/conditions/schemas/rpc.d.ts +4 -4
  27. package/dist/cjs/conditions/schemas/time.d.ts +1 -1
  28. package/dist/cjs/conditions/schemas/utils.js +4 -2
  29. package/dist/cjs/conditions/schemas/utils.js.map +1 -1
  30. package/dist/es/conditions/base/context-variable.d.ts +10 -0
  31. package/dist/es/conditions/base/context-variable.js +15 -0
  32. package/dist/es/conditions/base/context-variable.js.map +1 -0
  33. package/dist/es/conditions/base/index.d.ts +2 -1
  34. package/dist/es/conditions/base/index.js +2 -1
  35. package/dist/es/conditions/base/index.js.map +1 -1
  36. package/dist/es/conditions/base/json.d.ts +7 -0
  37. package/dist/es/conditions/base/json.js +12 -0
  38. package/dist/es/conditions/base/json.js.map +1 -0
  39. package/dist/es/conditions/condition-factory.js +6 -3
  40. package/dist/es/conditions/condition-factory.js.map +1 -1
  41. package/dist/es/conditions/schemas/context-variable.d.ts +45 -0
  42. package/dist/es/conditions/schemas/context-variable.js +14 -0
  43. package/dist/es/conditions/schemas/context-variable.js.map +1 -0
  44. package/dist/es/conditions/schemas/contract.d.ts +12 -12
  45. package/dist/es/conditions/schemas/export-for-zod-doc-gen.d.ts +2 -1
  46. package/dist/es/conditions/schemas/export-for-zod-doc-gen.js +2 -2
  47. package/dist/es/conditions/schemas/export-for-zod-doc-gen.js.map +1 -1
  48. package/dist/es/conditions/schemas/json-api.d.ts +8 -8
  49. package/dist/es/conditions/schemas/json-rpc.d.ts +8 -8
  50. package/dist/es/conditions/schemas/json.d.ts +48 -0
  51. package/dist/es/conditions/schemas/json.js +14 -0
  52. package/dist/es/conditions/schemas/json.js.map +1 -0
  53. package/dist/es/conditions/schemas/return-value-test.js +2 -1
  54. package/dist/es/conditions/schemas/return-value-test.js.map +1 -1
  55. package/dist/es/conditions/schemas/rpc.d.ts +4 -4
  56. package/dist/es/conditions/schemas/time.d.ts +1 -1
  57. package/dist/es/conditions/schemas/utils.js +4 -2
  58. package/dist/es/conditions/schemas/utils.js.map +1 -1
  59. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  60. package/dist/tsconfig.es.tsbuildinfo +1 -1
  61. package/package.json +3 -3
  62. package/dist/cjs/conditions/base/address-allowlist.d.ts +0 -10
  63. package/dist/cjs/conditions/base/address-allowlist.js +0 -19
  64. package/dist/cjs/conditions/base/address-allowlist.js.map +0 -1
  65. package/dist/cjs/conditions/schemas/address-allowlist.d.ts +0 -16
  66. package/dist/cjs/conditions/schemas/address-allowlist.js +0 -20
  67. package/dist/cjs/conditions/schemas/address-allowlist.js.map +0 -1
  68. package/dist/cjs/conditions/zod.d.ts +0 -3
  69. package/dist/cjs/conditions/zod.js +0 -19
  70. package/dist/cjs/conditions/zod.js.map +0 -1
  71. package/dist/es/conditions/base/address-allowlist.d.ts +0 -10
  72. package/dist/es/conditions/base/address-allowlist.js +0 -15
  73. package/dist/es/conditions/base/address-allowlist.js.map +0 -1
  74. package/dist/es/conditions/schemas/address-allowlist.d.ts +0 -16
  75. package/dist/es/conditions/schemas/address-allowlist.js +0 -17
  76. package/dist/es/conditions/schemas/address-allowlist.js.map +0 -1
  77. package/dist/es/conditions/zod.d.ts +0 -3
  78. package/dist/es/conditions/zod.js +0 -17
  79. package/dist/es/conditions/zod.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ import { Condition } from '../condition';
2
+ import { ContextVariableConditionProps, ContextVariableConditionType } from '../schemas/context-variable';
3
+ import { OmitConditionType } from '../shared';
4
+ export { ContextVariableConditionProps, ContextVariableConditionType };
5
+ /**
6
+ * A condition that performs comparison operations on context variable values.
7
+ */
8
+ export declare class ContextVariableCondition extends Condition {
9
+ constructor(value: OmitConditionType<ContextVariableConditionProps>);
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContextVariableCondition = exports.ContextVariableConditionType = void 0;
4
+ const condition_1 = require("../condition");
5
+ const context_variable_1 = require("../schemas/context-variable");
6
+ Object.defineProperty(exports, "ContextVariableConditionType", { enumerable: true, get: function () { return context_variable_1.ContextVariableConditionType; } });
7
+ /**
8
+ * A condition that performs comparison operations on context variable values.
9
+ */
10
+ class ContextVariableCondition extends condition_1.Condition {
11
+ constructor(value) {
12
+ super(context_variable_1.contextVariableConditionSchema, {
13
+ conditionType: context_variable_1.ContextVariableConditionType,
14
+ ...value,
15
+ });
16
+ }
17
+ }
18
+ exports.ContextVariableCondition = ContextVariableCondition;
19
+ //# sourceMappingURL=context-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-variable.js","sourceRoot":"","sources":["../../../../src/conditions/base/context-variable.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,kEAIqC;AAGG,6GAJtC,+CAA4B,OAIsC;AAEpE;;GAEG;AACH,MAAa,wBAAyB,SAAQ,qBAAS;IACrD,YAAY,KAAuD;QACjE,KAAK,CAAC,iDAA8B,EAAE;YACpC,aAAa,EAAE,+CAA4B;YAC3C,GAAG,KAAK;SACT,CAAC,CAAC;IACL,CAAC;CACF;AAPD,4DAOC"}
@@ -1,6 +1,7 @@
1
- export * as addressAllowlist from './address-allowlist';
1
+ export * as contextVariable from './context-variable';
2
2
  export * as contract from './contract';
3
3
  export * as ecdsa from './ecdsa';
4
+ export * as json from './json';
4
5
  export * as jsonApi from './json-api';
5
6
  export * as jsonRpc from './json-rpc';
6
7
  export * as jwt from './jwt';
@@ -35,10 +35,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  };
36
36
  })();
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.time = exports.signing = exports.rpc = exports.jwt = exports.jsonRpc = exports.jsonApi = exports.ecdsa = exports.contract = exports.addressAllowlist = void 0;
39
- exports.addressAllowlist = __importStar(require("./address-allowlist"));
38
+ exports.time = exports.signing = exports.rpc = exports.jwt = exports.jsonRpc = exports.jsonApi = exports.json = exports.ecdsa = exports.contract = exports.contextVariable = void 0;
39
+ exports.contextVariable = __importStar(require("./context-variable"));
40
40
  exports.contract = __importStar(require("./contract"));
41
41
  exports.ecdsa = __importStar(require("./ecdsa"));
42
+ exports.json = __importStar(require("./json"));
42
43
  exports.jsonApi = __importStar(require("./json-api"));
43
44
  exports.jsonRpc = __importStar(require("./json-rpc"));
44
45
  exports.jwt = __importStar(require("./jwt"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/conditions/base/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD,wEAAwD;AACxD,uDAAuC;AACvC,iDAAiC;AACjC,sDAAsC;AACtC,sDAAsC;AACtC,6CAA6B;AAC7B,6CAA6B;AAC7B,qDAAqC;AACrC,+CAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/conditions/base/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhD,sEAAsD;AACtD,uDAAuC;AACvC,iDAAiC;AACjC,+CAA+B;AAC/B,sDAAsC;AACtC,sDAAsC;AACtC,6CAA6B;AAC7B,6CAA6B;AAC7B,qDAAqC;AACrC,+CAA+B"}
@@ -0,0 +1,7 @@
1
+ import { Condition } from '../condition';
2
+ import { JsonConditionProps } from '../schemas/json';
3
+ import { OmitConditionType } from '../shared';
4
+ export { JsonConditionProps, jsonConditionSchema, JsonConditionType, } from '../schemas/json';
5
+ export declare class JsonCondition extends Condition {
6
+ constructor(value: OmitConditionType<JsonConditionProps>);
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JsonCondition = exports.JsonConditionType = exports.jsonConditionSchema = void 0;
4
+ const condition_1 = require("../condition");
5
+ const json_1 = require("../schemas/json");
6
+ var json_2 = require("../schemas/json");
7
+ Object.defineProperty(exports, "jsonConditionSchema", { enumerable: true, get: function () { return json_2.jsonConditionSchema; } });
8
+ Object.defineProperty(exports, "JsonConditionType", { enumerable: true, get: function () { return json_2.JsonConditionType; } });
9
+ class JsonCondition extends condition_1.Condition {
10
+ constructor(value) {
11
+ super(json_1.jsonConditionSchema, {
12
+ conditionType: json_1.JsonConditionType,
13
+ ...value,
14
+ });
15
+ }
16
+ }
17
+ exports.JsonCondition = JsonCondition;
18
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/conditions/base/json.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,0CAIyB;AAGzB,wCAIyB;AAFvB,2GAAA,mBAAmB,OAAA;AACnB,yGAAA,iBAAiB,OAAA;AAGnB,MAAa,aAAc,SAAQ,qBAAS;IAC1C,YAAY,KAA4C;QACtD,KAAK,CAAC,0BAAmB,EAAE;YACzB,aAAa,EAAE,wBAAiB;YAChC,GAAG,KAAK;SACT,CAAC,CAAC;IACL,CAAC;CACF;AAPD,sCAOC"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConditionFactory = void 0;
4
- const address_allowlist_1 = require("./base/address-allowlist");
4
+ const context_variable_1 = require("./base/context-variable");
5
5
  const contract_1 = require("./base/contract");
6
6
  const ecdsa_1 = require("./base/ecdsa");
7
+ const json_1 = require("./base/json");
7
8
  const json_api_1 = require("./base/json-api");
8
9
  const json_rpc_1 = require("./base/json-rpc");
9
10
  const jwt_1 = require("./base/jwt");
@@ -26,18 +27,20 @@ class ConditionFactory {
26
27
  return new contract_1.ContractCondition(props);
27
28
  case ecdsa_1.ECDSAConditionType:
28
29
  return new ecdsa_1.ECDSACondition(props);
30
+ case json_1.JsonConditionType:
31
+ return new json_1.JsonCondition(props);
29
32
  case json_api_1.JsonApiConditionType:
30
33
  return new json_api_1.JsonApiCondition(props);
31
34
  case json_rpc_1.JsonRpcConditionType:
32
35
  return new json_rpc_1.JsonRpcCondition(props);
33
36
  case jwt_1.JWTConditionType:
34
37
  return new jwt_1.JWTCondition(props);
35
- case address_allowlist_1.AddressAllowlistConditionType:
36
- return new address_allowlist_1.AddressAllowlistCondition(props);
37
38
  case signing_1.SigningObjectAttributeConditionType:
38
39
  return new signing_1.SigningObjectAttributeCondition(props);
39
40
  case signing_1.SigningObjectAbiAttributeConditionType:
40
41
  return new signing_1.SigningObjectAbiAttributeCondition(props);
42
+ case context_variable_1.ContextVariableConditionType:
43
+ return new context_variable_1.ContextVariableCondition(props);
41
44
  // Logical Conditions
42
45
  case compound_condition_1.CompoundConditionType:
43
46
  return new compound_condition_1.CompoundCondition(props);
@@ -1 +1 @@
1
- {"version":3,"file":"condition-factory.js","sourceRoot":"","sources":["../../../src/conditions/condition-factory.ts"],"names":[],"mappings":";;;AAAA,gEAIkC;AAClC,8CAIyB;AACzB,wCAIsB;AACtB,8CAIyB;AACzB,8CAIyB;AACzB,oCAA+E;AAC/E,oCAA+E;AAC/E,4CAOwB;AACxB,sCAIqB;AACrB,6DAI8B;AAE9B,qEAIkC;AAClC,6CAIsB;AAEtB,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,EAAE,CAClD,2BAA2B,IAAI,EAAE,CAAC;AAEpC,MAAa,gBAAgB;IACpB,MAAM,CAAC,kBAAkB,CAAC,KAAqB;QACpD,QAAQ,KAAK,CAAC,aAAa,EAAE,CAAC;YAC5B,kBAAkB;YAClB,KAAK,sBAAgB;gBACnB,OAAO,IAAI,kBAAY,CAAC,KAA0B,CAAC,CAAC;YACtD,KAAK,wBAAiB;gBACpB,OAAO,IAAI,oBAAa,CAAC,KAA2B,CAAC,CAAC;YACxD,KAAK,gCAAqB;gBACxB,OAAO,IAAI,4BAAiB,CAAC,KAA+B,CAAC,CAAC;YAChE,KAAK,0BAAkB;gBACrB,OAAO,IAAI,sBAAc,CAAC,KAA4B,CAAC,CAAC;YAC1D,KAAK,+BAAoB;gBACvB,OAAO,IAAI,2BAAgB,CAAC,KAA8B,CAAC,CAAC;YAC9D,KAAK,+BAAoB;gBACvB,OAAO,IAAI,2BAAgB,CAAC,KAA8B,CAAC,CAAC;YAC9D,KAAK,sBAAgB;gBACnB,OAAO,IAAI,kBAAY,CAAC,KAA0B,CAAC,CAAC;YACtD,KAAK,iDAA6B;gBAChC,OAAO,IAAI,6CAAyB,CAClC,KAAuC,CACxC,CAAC;YACJ,KAAK,6CAAmC;gBACtC,OAAO,IAAI,yCAA+B,CACxC,KAA6C,CAC9C,CAAC;YACJ,KAAK,gDAAsC;gBACzC,OAAO,IAAI,4CAAkC,CAC3C,KAAgD,CACjD,CAAC;YACJ,qBAAqB;YACrB,KAAK,0CAAqB;gBACxB,OAAO,IAAI,sCAAiB,CAAC,KAA+B,CAAC,CAAC;YAChE,KAAK,oCAAuB;gBAC1B,OAAO,IAAI,gCAAmB,CAAC,KAAiC,CAAC,CAAC;YACpE,KAAK,gDAAuB;gBAC1B,OAAO,IAAI,4CAAmB,CAAC,KAAiC,CAAC,CAAC;YACpE;gBACE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF;AAzCD,4CAyCC"}
1
+ {"version":3,"file":"condition-factory.js","sourceRoot":"","sources":["../../../src/conditions/condition-factory.ts"],"names":[],"mappings":";;;AAAA,8DAIiC;AACjC,8CAIyB;AACzB,wCAIsB;AACtB,sCAIqB;AACrB,8CAIyB;AACzB,8CAIyB;AACzB,oCAA+E;AAC/E,oCAA+E;AAC/E,4CAOwB;AACxB,sCAIqB;AACrB,6DAI8B;AAE9B,qEAIkC;AAClC,6CAIsB;AAEtB,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,EAAE,CAClD,2BAA2B,IAAI,EAAE,CAAC;AAEpC,MAAa,gBAAgB;IACpB,MAAM,CAAC,kBAAkB,CAAC,KAAqB;QACpD,QAAQ,KAAK,CAAC,aAAa,EAAE,CAAC;YAC5B,kBAAkB;YAClB,KAAK,sBAAgB;gBACnB,OAAO,IAAI,kBAAY,CAAC,KAA0B,CAAC,CAAC;YACtD,KAAK,wBAAiB;gBACpB,OAAO,IAAI,oBAAa,CAAC,KAA2B,CAAC,CAAC;YACxD,KAAK,gCAAqB;gBACxB,OAAO,IAAI,4BAAiB,CAAC,KAA+B,CAAC,CAAC;YAChE,KAAK,0BAAkB;gBACrB,OAAO,IAAI,sBAAc,CAAC,KAA4B,CAAC,CAAC;YAC1D,KAAK,wBAAiB;gBACpB,OAAO,IAAI,oBAAa,CAAC,KAA2B,CAAC,CAAC;YACxD,KAAK,+BAAoB;gBACvB,OAAO,IAAI,2BAAgB,CAAC,KAA8B,CAAC,CAAC;YAC9D,KAAK,+BAAoB;gBACvB,OAAO,IAAI,2BAAgB,CAAC,KAA8B,CAAC,CAAC;YAC9D,KAAK,sBAAgB;gBACnB,OAAO,IAAI,kBAAY,CAAC,KAA0B,CAAC,CAAC;YACtD,KAAK,6CAAmC;gBACtC,OAAO,IAAI,yCAA+B,CACxC,KAA6C,CAC9C,CAAC;YACJ,KAAK,gDAAsC;gBACzC,OAAO,IAAI,4CAAkC,CAC3C,KAAgD,CACjD,CAAC;YACJ,KAAK,+CAA4B;gBAC/B,OAAO,IAAI,2CAAwB,CACjC,KAAsC,CACvC,CAAC;YACJ,qBAAqB;YACrB,KAAK,0CAAqB;gBACxB,OAAO,IAAI,sCAAiB,CAAC,KAA+B,CAAC,CAAC;YAChE,KAAK,oCAAuB;gBAC1B,OAAO,IAAI,gCAAmB,CAAC,KAAiC,CAAC,CAAC;YACpE,KAAK,gDAAuB;gBAC1B,OAAO,IAAI,4CAAmB,CAAC,KAAiC,CAAC,CAAC;YACpE;gBACE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF;AA3CD,4CA2CC"}
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ export declare const ContextVariableConditionType = "context-variable";
3
+ export declare const contextVariableConditionSchema: z.ZodObject<{} & {
4
+ conditionType: z.ZodLiteral<"context-variable">;
5
+ contextVariable: z.ZodString;
6
+ returnValueTest: z.ZodEffects<z.ZodObject<{
7
+ index: z.ZodOptional<z.ZodNumber>;
8
+ comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
9
+ } & {
10
+ value: z.ZodType<any, z.ZodTypeDef, any>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
13
+ value?: any;
14
+ index?: number | undefined;
15
+ }, {
16
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
17
+ value?: any;
18
+ index?: number | undefined;
19
+ }>, {
20
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
21
+ value?: any;
22
+ index?: number | undefined;
23
+ }, {
24
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
25
+ value?: any;
26
+ index?: number | undefined;
27
+ }>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ conditionType: "context-variable";
30
+ contextVariable: string;
31
+ returnValueTest: {
32
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
33
+ value?: any;
34
+ index?: number | undefined;
35
+ };
36
+ }, {
37
+ conditionType: "context-variable";
38
+ contextVariable: string;
39
+ returnValueTest: {
40
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
41
+ value?: any;
42
+ index?: number | undefined;
43
+ };
44
+ }>;
45
+ export type ContextVariableConditionProps = z.infer<typeof contextVariableConditionSchema>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contextVariableConditionSchema = exports.ContextVariableConditionType = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("./common");
6
+ const context_1 = require("./context");
7
+ const return_value_test_1 = require("./return-value-test");
8
+ exports.ContextVariableConditionType = 'context-variable';
9
+ exports.contextVariableConditionSchema = common_1.baseConditionSchema
10
+ .extend({
11
+ conditionType: zod_1.z.literal(exports.ContextVariableConditionType),
12
+ contextVariable: context_1.contextParamSchema.describe('The context variable to check (e.g., ":userAddress", ":customParam")'),
13
+ returnValueTest: return_value_test_1.returnValueTestSchema,
14
+ })
15
+ .strict()
16
+ .describe('Context Variable Condition for performing comparison operations on context variable values.');
17
+ //# sourceMappingURL=context-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-variable.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/context-variable.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA+C;AAC/C,uCAA+C;AAC/C,2DAA4D;AAE/C,QAAA,4BAA4B,GAAG,kBAAkB,CAAC;AAElD,QAAA,8BAA8B,GAAG,4BAAmB;KAC9D,MAAM,CAAC;IACN,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,oCAA4B,CAAC;IACtD,eAAe,EAAE,4BAAkB,CAAC,QAAQ,CAC1C,sEAAsE,CACvE;IACD,eAAe,EAAE,yCAAqB;CACvC,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CACP,6FAA6F,CAC9F,CAAC"}
@@ -324,16 +324,15 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
324
324
  parameters: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
325
325
  }, "strip", z.ZodTypeAny, {
326
326
  conditionType: "contract";
327
- method: string;
328
327
  returnValueTest: {
329
328
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
330
329
  value?: any;
331
330
  index?: number | undefined;
332
331
  };
333
- parameters: any[];
334
332
  chain: number;
333
+ method: string;
334
+ parameters: any[];
335
335
  contractAddress: string;
336
- standardContractType?: "ERC20" | "ERC721" | undefined;
337
336
  functionAbi?: {
338
337
  type: "function";
339
338
  name: string;
@@ -353,18 +352,18 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
353
352
  }[]];
354
353
  stateMutability: "view" | "pure";
355
354
  } | undefined;
355
+ standardContractType?: "ERC20" | "ERC721" | undefined;
356
356
  }, {
357
- method: string;
358
357
  returnValueTest: {
359
358
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
360
359
  value?: any;
361
360
  index?: number | undefined;
362
361
  };
363
- parameters: any[];
364
362
  chain: number;
363
+ method: string;
364
+ parameters: any[];
365
365
  contractAddress: string;
366
366
  conditionType?: "contract" | undefined;
367
- standardContractType?: "ERC20" | "ERC721" | undefined;
368
367
  functionAbi?: {
369
368
  type: "function";
370
369
  name: string;
@@ -384,18 +383,18 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
384
383
  }[]];
385
384
  stateMutability: "view" | "pure";
386
385
  } | undefined;
386
+ standardContractType?: "ERC20" | "ERC721" | undefined;
387
387
  }>, {
388
388
  conditionType: "contract";
389
- method: string;
390
389
  returnValueTest: {
391
390
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
392
391
  value?: any;
393
392
  index?: number | undefined;
394
393
  };
395
- parameters: any[];
396
394
  chain: number;
395
+ method: string;
396
+ parameters: any[];
397
397
  contractAddress: string;
398
- standardContractType?: "ERC20" | "ERC721" | undefined;
399
398
  functionAbi?: {
400
399
  type: "function";
401
400
  name: string;
@@ -415,18 +414,18 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
415
414
  }[]];
416
415
  stateMutability: "view" | "pure";
417
416
  } | undefined;
417
+ standardContractType?: "ERC20" | "ERC721" | undefined;
418
418
  }, {
419
- method: string;
420
419
  returnValueTest: {
421
420
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
422
421
  value?: any;
423
422
  index?: number | undefined;
424
423
  };
425
- parameters: any[];
426
424
  chain: number;
425
+ method: string;
426
+ parameters: any[];
427
427
  contractAddress: string;
428
428
  conditionType?: "contract" | undefined;
429
- standardContractType?: "ERC20" | "ERC721" | undefined;
430
429
  functionAbi?: {
431
430
  type: "function";
432
431
  name: string;
@@ -446,5 +445,6 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
446
445
  }[]];
447
446
  stateMutability: "view" | "pure";
448
447
  } | undefined;
448
+ standardContractType?: "ERC20" | "ERC721" | undefined;
449
449
  }>;
450
450
  export type ContractConditionProps = z.infer<typeof contractConditionSchema>;
@@ -7,9 +7,11 @@ export * from './utils';
7
7
  export * from './common';
8
8
  export * from './context';
9
9
  export * from './compound';
10
+ export * from './context-variable';
10
11
  export * from './contract';
11
12
  export * from './ecdsa';
12
13
  export * from './if-then-else';
14
+ export * from './json';
13
15
  export * from './json-api';
14
16
  export * from './json-rpc';
15
17
  export * from './jwt';
@@ -18,4 +20,3 @@ export * from './rpc';
18
20
  export * from './sequential';
19
21
  export * from './signing';
20
22
  export * from './time';
21
- export * from './address-allowlist';
@@ -25,9 +25,11 @@ __exportStar(require("./common"), exports);
25
25
  __exportStar(require("./context"), exports);
26
26
  // ts-unused-exports:disable-next-line - this comment line is added to prevent lint from changing or objecting the export order.
27
27
  __exportStar(require("./compound"), exports);
28
+ __exportStar(require("./context-variable"), exports);
28
29
  __exportStar(require("./contract"), exports);
29
30
  __exportStar(require("./ecdsa"), exports);
30
31
  __exportStar(require("./if-then-else"), exports);
32
+ __exportStar(require("./json"), exports);
31
33
  __exportStar(require("./json-api"), exports);
32
34
  __exportStar(require("./json-rpc"), exports);
33
35
  __exportStar(require("./jwt"), exports);
@@ -36,6 +38,4 @@ __exportStar(require("./rpc"), exports);
36
38
  __exportStar(require("./sequential"), exports);
37
39
  __exportStar(require("./signing"), exports);
38
40
  __exportStar(require("./time"), exports);
39
- // ts-unused-exports:disable-next-line - this comment line is added to prevent lint from changing or objecting the export order.
40
- __exportStar(require("./address-allowlist"), exports);
41
41
  //# sourceMappingURL=export-for-zod-doc-gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"export-for-zod-doc-gen.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/export-for-zod-doc-gen.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,gIAAgI;AAChI,2CAAyB;AACzB,4CAA0B;AAC1B,gIAAgI;AAChI,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAC3B,6CAA2B;AAC3B,wCAAsB;AACtB,sDAAoC;AACpC,wCAAsB;AACtB,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB;AACvB,gIAAgI;AAChI,sDAAoC"}
1
+ {"version":3,"file":"export-for-zod-doc-gen.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/export-for-zod-doc-gen.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,gIAAgI;AAChI,2CAAyB;AACzB,4CAA0B;AAC1B,gIAAgI;AAChI,6CAA2B;AAC3B,qDAAmC;AACnC,6CAA2B;AAC3B,0CAAwB;AACxB,iDAA+B;AAC/B,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAC3B,wCAAsB;AACtB,sDAAoC;AACpC,wCAAsB;AACtB,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB"}
@@ -31,51 +31,51 @@ export declare const jsonApiConditionSchema: z.ZodEffects<z.ZodObject<{} & {
31
31
  }>;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  conditionType: "json-api";
34
- endpoint: string;
35
34
  returnValueTest: {
36
35
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
37
36
  value?: any;
38
37
  index?: number | undefined;
39
38
  };
39
+ endpoint: string;
40
+ parameters?: Record<string, unknown> | undefined;
40
41
  query?: string | undefined;
41
42
  authorizationToken?: string | undefined;
42
43
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
43
- parameters?: Record<string, unknown> | undefined;
44
44
  }, {
45
- endpoint: string;
46
45
  returnValueTest: {
47
46
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
48
47
  value?: any;
49
48
  index?: number | undefined;
50
49
  };
50
+ endpoint: string;
51
51
  conditionType?: "json-api" | undefined;
52
+ parameters?: Record<string, unknown> | undefined;
52
53
  query?: string | undefined;
53
54
  authorizationToken?: string | undefined;
54
55
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
55
- parameters?: Record<string, unknown> | undefined;
56
56
  }>, {
57
57
  conditionType: "json-api";
58
- endpoint: string;
59
58
  returnValueTest: {
60
59
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
61
60
  value?: any;
62
61
  index?: number | undefined;
63
62
  };
63
+ endpoint: string;
64
+ parameters?: Record<string, unknown> | undefined;
64
65
  query?: string | undefined;
65
66
  authorizationToken?: string | undefined;
66
67
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
67
- parameters?: Record<string, unknown> | undefined;
68
68
  }, {
69
- endpoint: string;
70
69
  returnValueTest: {
71
70
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
72
71
  value?: any;
73
72
  index?: number | undefined;
74
73
  };
74
+ endpoint: string;
75
75
  conditionType?: "json-api" | undefined;
76
+ parameters?: Record<string, unknown> | undefined;
76
77
  query?: string | undefined;
77
78
  authorizationToken?: string | undefined;
78
79
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
79
- parameters?: Record<string, unknown> | undefined;
80
80
  }>;
81
81
  export type JsonApiConditionProps = z.infer<typeof jsonApiConditionSchema>;
@@ -32,25 +32,25 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
32
32
  }>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  conditionType: "json-rpc";
35
- endpoint: string;
36
- method: string;
37
35
  returnValueTest: {
38
36
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
39
37
  value?: any;
40
38
  index?: number | undefined;
41
39
  };
40
+ method: string;
41
+ endpoint: string;
42
42
  params?: unknown[] | Record<string, unknown> | undefined;
43
43
  query?: string | undefined;
44
44
  authorizationToken?: string | undefined;
45
45
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
46
46
  }, {
47
- endpoint: string;
48
- method: string;
49
47
  returnValueTest: {
50
48
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
51
49
  value?: any;
52
50
  index?: number | undefined;
53
51
  };
52
+ method: string;
53
+ endpoint: string;
54
54
  params?: unknown[] | Record<string, unknown> | undefined;
55
55
  conditionType?: "json-rpc" | undefined;
56
56
  query?: string | undefined;
@@ -58,25 +58,25 @@ export declare const jsonRpcConditionSchema: z.ZodEffects<z.ZodObject<{} & {
58
58
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
59
59
  }>, {
60
60
  conditionType: "json-rpc";
61
- endpoint: string;
62
- method: string;
63
61
  returnValueTest: {
64
62
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
65
63
  value?: any;
66
64
  index?: number | undefined;
67
65
  };
66
+ method: string;
67
+ endpoint: string;
68
68
  params?: unknown[] | Record<string, unknown> | undefined;
69
69
  query?: string | undefined;
70
70
  authorizationToken?: string | undefined;
71
71
  authorizationType?: "Bearer" | "Basic" | "X-API-Key" | undefined;
72
72
  }, {
73
- endpoint: string;
74
- method: string;
75
73
  returnValueTest: {
76
74
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
77
75
  value?: any;
78
76
  index?: number | undefined;
79
77
  };
78
+ method: string;
79
+ endpoint: string;
80
80
  params?: unknown[] | Record<string, unknown> | undefined;
81
81
  conditionType?: "json-rpc" | undefined;
82
82
  query?: string | undefined;
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const JsonConditionType = "json";
3
+ export declare const jsonConditionSchema: z.ZodObject<{} & {
4
+ conditionType: z.ZodDefault<z.ZodLiteral<"json">>;
5
+ data: z.ZodString;
6
+ query: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
7
+ returnValueTest: z.ZodEffects<z.ZodObject<{
8
+ index: z.ZodOptional<z.ZodNumber>;
9
+ comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!=", "in", "!in"]>;
10
+ } & {
11
+ value: z.ZodType<any, z.ZodTypeDef, any>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
14
+ value?: any;
15
+ index?: number | undefined;
16
+ }, {
17
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
18
+ value?: any;
19
+ index?: number | undefined;
20
+ }>, {
21
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
22
+ value?: any;
23
+ index?: number | undefined;
24
+ }, {
25
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
26
+ value?: any;
27
+ index?: number | undefined;
28
+ }>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ conditionType: "json";
31
+ data: string;
32
+ returnValueTest: {
33
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
34
+ value?: any;
35
+ index?: number | undefined;
36
+ };
37
+ query?: string | undefined;
38
+ }, {
39
+ data: string;
40
+ returnValueTest: {
41
+ comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
42
+ value?: any;
43
+ index?: number | undefined;
44
+ };
45
+ conditionType?: "json" | undefined;
46
+ query?: string | undefined;
47
+ }>;
48
+ export type JsonConditionProps = z.infer<typeof jsonConditionSchema>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jsonConditionSchema = exports.JsonConditionType = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("./common");
6
+ const context_1 = require("./context");
7
+ const return_value_test_1 = require("./return-value-test");
8
+ exports.JsonConditionType = 'json';
9
+ exports.jsonConditionSchema = common_1.baseConditionSchema.extend({
10
+ conditionType: zod_1.z.literal(exports.JsonConditionType).default(exports.JsonConditionType),
11
+ data: context_1.contextParamSchema.describe('Context variable that resolves to JSON data at decryption time.'),
12
+ query: common_1.jsonPathSchema
13
+ .optional()
14
+ .describe('Optional JSONPath query to extract a specific value from the data.'),
15
+ returnValueTest: return_value_test_1.returnValueTestSchema,
16
+ });
17
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/json.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA+D;AAC/D,uCAA+C;AAC/C,2DAA4D;AAE/C,QAAA,iBAAiB,GAAG,MAAM,CAAC;AAE3B,QAAA,mBAAmB,GAAG,4BAAmB,CAAC,MAAM,CAAC;IAC5D,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,yBAAiB,CAAC,CAAC,OAAO,CAAC,yBAAiB,CAAC;IACtE,IAAI,EAAE,4BAAkB,CAAC,QAAQ,CAC/B,iEAAiE,CAClE;IACD,KAAK,EAAE,uBAAc;SAClB,QAAQ,EAAE;SACV,QAAQ,CACP,oEAAoE,CACrE;IACH,eAAe,EAAE,yCAAqB;CACvC,CAAC,CAAC"}
@@ -21,7 +21,8 @@ exports.returnValueTestSchema = returnValueTestBaseSchema
21
21
  .extend({
22
22
  value: context_1.paramOrContextParamSchema,
23
23
  })
24
- .refine(requireNonEmptyArrayIfComparatorIsIn, inComparatorErrorConfig);
24
+ .refine(requireNonEmptyArrayIfComparatorIsIn, inComparatorErrorConfig)
25
+ .describe('Test to perform on a value. Supports comparison operators like ==, >, <, >=, <=, !=, in, !in');
25
26
  exports.blockchainReturnValueTestSchema = returnValueTestBaseSchema
26
27
  .extend({
27
28
  value: context_1.blockchainParamOrContextParamSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"return-value-test.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/return-value-test.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAGmB;AAEnB,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAChD,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,CAAC,IAI7C,EAAW,EAAE;IACZ,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;QAC1D,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC9B,OAAO,EAAE,iEAAiE;IAC1E,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CAAC;AAEW,QAAA,qBAAqB,GAAG,yBAAyB;KAC3D,MAAM,CAAC;IACN,KAAK,EAAE,mCAAyB;CACjC,CAAC;KACD,MAAM,CAAC,oCAAoC,EAAE,uBAAuB,CAAC,CAAC;AAE5D,QAAA,+BAA+B,GAAG,yBAAyB;KACrE,MAAM,CAAC;IACN,KAAK,EAAE,6CAAmC;CAC3C,CAAC;KACD,MAAM,CAAC,oCAAoC,EAAE,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"return-value-test.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/return-value-test.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uCAGmB;AAEnB,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAChD,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,CAAC,IAI7C,EAAW,EAAE;IACZ,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;QAC1D,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC9B,OAAO,EAAE,iEAAiE;IAC1E,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CAAC;AAEW,QAAA,qBAAqB,GAAG,yBAAyB;KAC3D,MAAM,CAAC;IACN,KAAK,EAAE,mCAAyB;CACjC,CAAC;KACD,MAAM,CAAC,oCAAoC,EAAE,uBAAuB,CAAC;KACrE,QAAQ,CACP,8FAA8F,CAC/F,CAAC;AAES,QAAA,+BAA+B,GAAG,yBAAyB;KACrE,MAAM,CAAC;IACN,KAAK,EAAE,6CAAmC;CAC3C,CAAC;KACD,MAAM,CAAC,oCAAoC,EAAE,uBAAuB,CAAC,CAAC"}
@@ -29,23 +29,23 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
29
29
  }>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  conditionType: "rpc";
32
- method: "eth_getBalance";
33
32
  returnValueTest: {
34
33
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
35
34
  value?: any;
36
35
  index?: number | undefined;
37
36
  };
38
- parameters: [string] | [string, string | number];
39
37
  chain: number;
40
- }, {
41
38
  method: "eth_getBalance";
39
+ parameters: [string, string | number] | [string];
40
+ }, {
42
41
  returnValueTest: {
43
42
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
44
43
  value?: any;
45
44
  index?: number | undefined;
46
45
  };
47
- parameters: [string] | [string, string | number];
48
46
  chain: number;
47
+ method: "eth_getBalance";
48
+ parameters: [string, string | number] | [string];
49
49
  conditionType?: "rpc" | undefined;
50
50
  }>;
51
51
  export type RpcConditionProps = z.infer<typeof rpcConditionSchema>;
@@ -29,13 +29,13 @@ export declare const timeConditionSchema: z.ZodObject<{
29
29
  }>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  conditionType: "time";
32
- method: "blocktime";
33
32
  returnValueTest: {
34
33
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
35
34
  value?: any;
36
35
  index?: number | undefined;
37
36
  };
38
37
  chain: number;
38
+ method: "blocktime";
39
39
  }, {
40
40
  returnValueTest: {
41
41
  comparator: "==" | ">" | "<" | ">=" | "<=" | "!=" | "in" | "!in";
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.anyConditionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const compound_condition_1 = require("../compound-condition");
6
- const address_allowlist_1 = require("./address-allowlist");
6
+ const context_variable_1 = require("./context-variable");
7
7
  const contract_1 = require("./contract");
8
8
  const ecdsa_1 = require("./ecdsa");
9
9
  const if_then_else_1 = require("./if-then-else");
10
+ const json_1 = require("./json");
10
11
  const json_api_1 = require("./json-api");
11
12
  const json_rpc_1 = require("./json-rpc");
12
13
  const jwt_1 = require("./jwt");
@@ -17,9 +18,10 @@ const time_1 = require("./time");
17
18
  exports.anyConditionSchema = zod_1.z.lazy(() => zod_1.z.union([
18
19
  rpc_1.rpcConditionSchema,
19
20
  time_1.timeConditionSchema,
20
- address_allowlist_1.addressAllowlistConditionSchema,
21
+ context_variable_1.contextVariableConditionSchema,
21
22
  contract_1.contractConditionSchema,
22
23
  ecdsa_1.ecdsaConditionSchema,
24
+ json_1.jsonConditionSchema,
23
25
  json_api_1.jsonApiConditionSchema,
24
26
  json_rpc_1.jsonRpcConditionSchema,
25
27
  jwt_1.jwtConditionSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/utils.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,8DAAgE;AAEhE,2DAAsE;AACtE,yCAAqD;AACrD,mCAA+C;AAC/C,iDAA2D;AAC3D,yCAAoD;AACpD,yCAAoD;AACpD,+BAA2C;AAC3C,+BAA2C;AAC3C,6CAAyD;AACzD,uCAGmB;AACnB,iCAA6C;AAEhC,QAAA,kBAAkB,GAAgB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACzD,OAAC,CAAC,KAAK,CAAC;IACN,wBAAkB;IAClB,0BAAmB;IACnB,mDAA+B;IAC/B,kCAAuB;IACvB,4BAAoB;IACpB,iCAAsB;IACtB,iCAAsB;IACtB,wBAAkB;IAClB,+CAAqC;IACrC,kDAAwC;IACxC,4CAAuB;IACvB,sCAAyB;IACzB,wCAAyB;CAC1B,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/conditions/schemas/utils.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,8DAAgE;AAEhE,yDAAoE;AACpE,yCAAqD;AACrD,mCAA+C;AAC/C,iDAA2D;AAC3D,iCAA6C;AAC7C,yCAAoD;AACpD,yCAAoD;AACpD,+BAA2C;AAC3C,+BAA2C;AAC3C,6CAAyD;AACzD,uCAGmB;AACnB,iCAA6C;AAEhC,QAAA,kBAAkB,GAAgB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACzD,OAAC,CAAC,KAAK,CAAC;IACN,wBAAkB;IAClB,0BAAmB;IACnB,iDAA8B;IAC9B,kCAAuB;IACvB,4BAAoB;IACpB,0BAAmB;IACnB,iCAAsB;IACtB,iCAAsB;IACtB,wBAAkB;IAClB,+CAAqC;IACrC,kDAAwC;IACxC,4CAAuB;IACvB,sCAAyB;IACzB,wCAAyB;CAC1B,CAAC,CACH,CAAC"}