@lit-protocol/vincent-ability-sdk 0.0.1-ea

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 (209) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/CONTRIBUTING.md +117 -0
  3. package/README.md +213 -0
  4. package/dist/package.json +44 -0
  5. package/dist/src/index.d.ts +15 -0
  6. package/dist/src/index.d.ts.map +1 -0
  7. package/dist/src/index.js +21 -0
  8. package/dist/src/index.js.map +1 -0
  9. package/dist/src/internal.d.ts +12 -0
  10. package/dist/src/internal.d.ts.map +1 -0
  11. package/dist/src/internal.js +32 -0
  12. package/dist/src/internal.js.map +1 -0
  13. package/dist/src/lib/abilityCore/abilityConfig/context/abilityContext.d.ts +28 -0
  14. package/dist/src/lib/abilityCore/abilityConfig/context/abilityContext.d.ts.map +1 -0
  15. package/dist/src/lib/abilityCore/abilityConfig/context/abilityContext.js +51 -0
  16. package/dist/src/lib/abilityCore/abilityConfig/context/abilityContext.js.map +1 -0
  17. package/dist/src/lib/abilityCore/abilityConfig/context/resultCreators.d.ts +18 -0
  18. package/dist/src/lib/abilityCore/abilityConfig/context/resultCreators.d.ts.map +1 -0
  19. package/dist/src/lib/abilityCore/abilityConfig/context/resultCreators.js +48 -0
  20. package/dist/src/lib/abilityCore/abilityConfig/context/resultCreators.js.map +1 -0
  21. package/dist/src/lib/abilityCore/abilityConfig/context/types.d.ts +31 -0
  22. package/dist/src/lib/abilityCore/abilityConfig/context/types.d.ts.map +1 -0
  23. package/dist/src/lib/abilityCore/abilityConfig/context/types.js +9 -0
  24. package/dist/src/lib/abilityCore/abilityConfig/context/types.js.map +1 -0
  25. package/dist/src/lib/abilityCore/abilityConfig/types.d.ts +20 -0
  26. package/dist/src/lib/abilityCore/abilityConfig/types.d.ts.map +1 -0
  27. package/dist/src/lib/abilityCore/abilityConfig/types.js +4 -0
  28. package/dist/src/lib/abilityCore/abilityConfig/types.js.map +1 -0
  29. package/dist/src/lib/abilityCore/bundledAbility/bundledAbility.d.ts +5 -0
  30. package/dist/src/lib/abilityCore/bundledAbility/bundledAbility.d.ts.map +1 -0
  31. package/dist/src/lib/abilityCore/bundledAbility/bundledAbility.js +21 -0
  32. package/dist/src/lib/abilityCore/bundledAbility/bundledAbility.js.map +1 -0
  33. package/dist/src/lib/abilityCore/bundledAbility/types.d.ts +18 -0
  34. package/dist/src/lib/abilityCore/bundledAbility/types.d.ts.map +1 -0
  35. package/dist/src/lib/abilityCore/bundledAbility/types.js +4 -0
  36. package/dist/src/lib/abilityCore/bundledAbility/types.js.map +1 -0
  37. package/dist/src/lib/abilityCore/helpers/getMappedAbilityPolicyParams.d.ts +5 -0
  38. package/dist/src/lib/abilityCore/helpers/getMappedAbilityPolicyParams.d.ts.map +1 -0
  39. package/dist/src/lib/abilityCore/helpers/getMappedAbilityPolicyParams.js +18 -0
  40. package/dist/src/lib/abilityCore/helpers/getMappedAbilityPolicyParams.js.map +1 -0
  41. package/dist/src/lib/abilityCore/helpers/getPkpInfo.d.ts +10 -0
  42. package/dist/src/lib/abilityCore/helpers/getPkpInfo.d.ts.map +1 -0
  43. package/dist/src/lib/abilityCore/helpers/getPkpInfo.js +26 -0
  44. package/dist/src/lib/abilityCore/helpers/getPkpInfo.js.map +1 -0
  45. package/dist/src/lib/abilityCore/helpers/index.d.ts +5 -0
  46. package/dist/src/lib/abilityCore/helpers/index.d.ts.map +1 -0
  47. package/dist/src/lib/abilityCore/helpers/index.js +12 -0
  48. package/dist/src/lib/abilityCore/helpers/index.js.map +1 -0
  49. package/dist/src/lib/abilityCore/helpers/resultCreators.d.ts +21 -0
  50. package/dist/src/lib/abilityCore/helpers/resultCreators.d.ts.map +1 -0
  51. package/dist/src/lib/abilityCore/helpers/resultCreators.js +48 -0
  52. package/dist/src/lib/abilityCore/helpers/resultCreators.js.map +1 -0
  53. package/dist/src/lib/abilityCore/helpers/supportedPoliciesForAbility.d.ts +55 -0
  54. package/dist/src/lib/abilityCore/helpers/supportedPoliciesForAbility.d.ts.map +1 -0
  55. package/dist/src/lib/abilityCore/helpers/supportedPoliciesForAbility.js +68 -0
  56. package/dist/src/lib/abilityCore/helpers/supportedPoliciesForAbility.js.map +1 -0
  57. package/dist/src/lib/abilityCore/helpers/typeGuards.d.ts +8 -0
  58. package/dist/src/lib/abilityCore/helpers/typeGuards.d.ts.map +1 -0
  59. package/dist/src/lib/abilityCore/helpers/typeGuards.js +28 -0
  60. package/dist/src/lib/abilityCore/helpers/typeGuards.js.map +1 -0
  61. package/dist/src/lib/abilityCore/helpers/validatePolicies.d.ts +24 -0
  62. package/dist/src/lib/abilityCore/helpers/validatePolicies.d.ts.map +1 -0
  63. package/dist/src/lib/abilityCore/helpers/validatePolicies.js +31 -0
  64. package/dist/src/lib/abilityCore/helpers/validatePolicies.js.map +1 -0
  65. package/dist/src/lib/abilityCore/helpers/zod.d.ts +43 -0
  66. package/dist/src/lib/abilityCore/helpers/zod.d.ts.map +1 -0
  67. package/dist/src/lib/abilityCore/helpers/zod.js +70 -0
  68. package/dist/src/lib/abilityCore/helpers/zod.js.map +1 -0
  69. package/dist/src/lib/abilityCore/vincentAbility.d.ts +54 -0
  70. package/dist/src/lib/abilityCore/vincentAbility.d.ts.map +1 -0
  71. package/dist/src/lib/abilityCore/vincentAbility.js +162 -0
  72. package/dist/src/lib/abilityCore/vincentAbility.js.map +1 -0
  73. package/dist/src/lib/assertSupportedAbilityVersion.d.ts +2 -0
  74. package/dist/src/lib/assertSupportedAbilityVersion.d.ts.map +1 -0
  75. package/dist/src/lib/assertSupportedAbilityVersion.js +15 -0
  76. package/dist/src/lib/assertSupportedAbilityVersion.js.map +1 -0
  77. package/dist/src/lib/constants.d.ts +2 -0
  78. package/dist/src/lib/constants.d.ts.map +1 -0
  79. package/dist/src/lib/constants.js +5 -0
  80. package/dist/src/lib/constants.js.map +1 -0
  81. package/dist/src/lib/handlers/constants.d.ts +2 -0
  82. package/dist/src/lib/handlers/constants.d.ts.map +1 -0
  83. package/dist/src/lib/handlers/constants.js +6 -0
  84. package/dist/src/lib/handlers/constants.js.map +1 -0
  85. package/dist/src/lib/handlers/evaluatePolicies.d.ts +11 -0
  86. package/dist/src/lib/handlers/evaluatePolicies.d.ts.map +1 -0
  87. package/dist/src/lib/handlers/evaluatePolicies.js +110 -0
  88. package/dist/src/lib/handlers/evaluatePolicies.js.map +1 -0
  89. package/dist/src/lib/handlers/vincentAbilityHandler.d.ts +15 -0
  90. package/dist/src/lib/handlers/vincentAbilityHandler.d.ts.map +1 -0
  91. package/dist/src/lib/handlers/vincentAbilityHandler.js +160 -0
  92. package/dist/src/lib/handlers/vincentAbilityHandler.js.map +1 -0
  93. package/dist/src/lib/handlers/vincentPolicyHandler.d.ts +13 -0
  94. package/dist/src/lib/handlers/vincentPolicyHandler.d.ts.map +1 -0
  95. package/dist/src/lib/handlers/vincentPolicyHandler.js +70 -0
  96. package/dist/src/lib/handlers/vincentPolicyHandler.js.map +1 -0
  97. package/dist/src/lib/policyCore/bundledPolicy/bundledPolicy.d.ts +5 -0
  98. package/dist/src/lib/policyCore/bundledPolicy/bundledPolicy.d.ts.map +1 -0
  99. package/dist/src/lib/policyCore/bundledPolicy/bundledPolicy.js +21 -0
  100. package/dist/src/lib/policyCore/bundledPolicy/bundledPolicy.js.map +1 -0
  101. package/dist/src/lib/policyCore/bundledPolicy/types.d.ts +17 -0
  102. package/dist/src/lib/policyCore/bundledPolicy/types.d.ts.map +1 -0
  103. package/dist/src/lib/policyCore/bundledPolicy/types.js +4 -0
  104. package/dist/src/lib/policyCore/bundledPolicy/types.js.map +1 -0
  105. package/dist/src/lib/policyCore/helpers/index.d.ts +5 -0
  106. package/dist/src/lib/policyCore/helpers/index.d.ts.map +1 -0
  107. package/dist/src/lib/policyCore/helpers/index.js +16 -0
  108. package/dist/src/lib/policyCore/helpers/index.js.map +1 -0
  109. package/dist/src/lib/policyCore/helpers/resultCreators.d.ts +38 -0
  110. package/dist/src/lib/policyCore/helpers/resultCreators.d.ts.map +1 -0
  111. package/dist/src/lib/policyCore/helpers/resultCreators.js +89 -0
  112. package/dist/src/lib/policyCore/helpers/resultCreators.js.map +1 -0
  113. package/dist/src/lib/policyCore/helpers/typeGuards.d.ts +7 -0
  114. package/dist/src/lib/policyCore/helpers/typeGuards.d.ts.map +1 -0
  115. package/dist/src/lib/policyCore/helpers/typeGuards.js +23 -0
  116. package/dist/src/lib/policyCore/helpers/typeGuards.js.map +1 -0
  117. package/dist/src/lib/policyCore/helpers/zod.d.ts +55 -0
  118. package/dist/src/lib/policyCore/helpers/zod.d.ts.map +1 -0
  119. package/dist/src/lib/policyCore/helpers/zod.js +82 -0
  120. package/dist/src/lib/policyCore/helpers/zod.js.map +1 -0
  121. package/dist/src/lib/policyCore/index.d.ts +3 -0
  122. package/dist/src/lib/policyCore/index.d.ts.map +1 -0
  123. package/dist/src/lib/policyCore/index.js +8 -0
  124. package/dist/src/lib/policyCore/index.js.map +1 -0
  125. package/dist/src/lib/policyCore/policyConfig/context/policyConfigContext.d.ts +12 -0
  126. package/dist/src/lib/policyCore/policyConfig/context/policyConfigContext.d.ts.map +1 -0
  127. package/dist/src/lib/policyCore/policyConfig/context/policyConfigContext.js +20 -0
  128. package/dist/src/lib/policyCore/policyConfig/context/policyConfigContext.js.map +1 -0
  129. package/dist/src/lib/policyCore/policyConfig/context/resultCreators.d.ts +6 -0
  130. package/dist/src/lib/policyCore/policyConfig/context/resultCreators.d.ts.map +1 -0
  131. package/dist/src/lib/policyCore/policyConfig/context/resultCreators.js +30 -0
  132. package/dist/src/lib/policyCore/policyConfig/context/resultCreators.js.map +1 -0
  133. package/dist/src/lib/policyCore/policyConfig/context/types.d.ts +24 -0
  134. package/dist/src/lib/policyCore/policyConfig/context/types.d.ts.map +1 -0
  135. package/dist/src/lib/policyCore/policyConfig/context/types.js +5 -0
  136. package/dist/src/lib/policyCore/policyConfig/context/types.js.map +1 -0
  137. package/dist/src/lib/policyCore/policyConfig/types.d.ts +46 -0
  138. package/dist/src/lib/policyCore/policyConfig/types.d.ts.map +1 -0
  139. package/dist/src/lib/policyCore/policyConfig/types.js +3 -0
  140. package/dist/src/lib/policyCore/policyConfig/types.js.map +1 -0
  141. package/dist/src/lib/policyCore/policyParameters/getOnchainPolicyParams.d.ts +17 -0
  142. package/dist/src/lib/policyCore/policyParameters/getOnchainPolicyParams.d.ts.map +1 -0
  143. package/dist/src/lib/policyCore/policyParameters/getOnchainPolicyParams.js +54 -0
  144. package/dist/src/lib/policyCore/policyParameters/getOnchainPolicyParams.js.map +1 -0
  145. package/dist/src/lib/policyCore/vincentPolicy.d.ts +92 -0
  146. package/dist/src/lib/policyCore/vincentPolicy.d.ts.map +1 -0
  147. package/dist/src/lib/policyCore/vincentPolicy.js +242 -0
  148. package/dist/src/lib/policyCore/vincentPolicy.js.map +1 -0
  149. package/dist/src/lib/types.d.ts +260 -0
  150. package/dist/src/lib/types.d.ts.map +1 -0
  151. package/dist/src/lib/types.js +4 -0
  152. package/dist/src/lib/types.js.map +1 -0
  153. package/dist/src/lib/utils.d.ts +2 -0
  154. package/dist/src/lib/utils.d.ts.map +1 -0
  155. package/dist/src/lib/utils.js +8 -0
  156. package/dist/src/lib/utils.js.map +1 -0
  157. package/dist/src/type-inference-verification/ability-definition-tests.d.ts +702 -0
  158. package/dist/src/type-inference-verification/ability-definition-tests.d.ts.map +1 -0
  159. package/dist/src/type-inference-verification/ability-definition-tests.js +203 -0
  160. package/dist/src/type-inference-verification/ability-definition-tests.js.map +1 -0
  161. package/dist/src/type-inference-verification/ability-lifecycle-inference.d.ts +2 -0
  162. package/dist/src/type-inference-verification/ability-lifecycle-inference.d.ts.map +1 -0
  163. package/dist/src/type-inference-verification/ability-lifecycle-inference.js +109 -0
  164. package/dist/src/type-inference-verification/ability-lifecycle-inference.js.map +1 -0
  165. package/dist/src/type-inference-verification/ability-lifecycle-succeed-fail-tests.d.ts +923 -0
  166. package/dist/src/type-inference-verification/ability-lifecycle-succeed-fail-tests.d.ts.map +1 -0
  167. package/dist/src/type-inference-verification/ability-lifecycle-succeed-fail-tests.js +196 -0
  168. package/dist/src/type-inference-verification/ability-lifecycle-succeed-fail-tests.js.map +1 -0
  169. package/dist/src/type-inference-verification/allow-deny-test-cases-ability.d.ts +4305 -0
  170. package/dist/src/type-inference-verification/allow-deny-test-cases-ability.d.ts.map +1 -0
  171. package/dist/src/type-inference-verification/allow-deny-test-cases-ability.js +644 -0
  172. package/dist/src/type-inference-verification/allow-deny-test-cases-ability.js.map +1 -0
  173. package/dist/src/type-inference-verification/allow-deny-test-cases.d.ts +646 -0
  174. package/dist/src/type-inference-verification/allow-deny-test-cases.d.ts.map +1 -0
  175. package/dist/src/type-inference-verification/allow-deny-test-cases.js +264 -0
  176. package/dist/src/type-inference-verification/allow-deny-test-cases.js.map +1 -0
  177. package/dist/src/type-inference-verification/context-switching-tests.d.ts +637 -0
  178. package/dist/src/type-inference-verification/context-switching-tests.d.ts.map +1 -0
  179. package/dist/src/type-inference-verification/context-switching-tests.js +229 -0
  180. package/dist/src/type-inference-verification/context-switching-tests.js.map +1 -0
  181. package/dist/src/type-inference-verification/create-policy-map-from-tool-policies.d.ts +2 -0
  182. package/dist/src/type-inference-verification/create-policy-map-from-tool-policies.d.ts.map +1 -0
  183. package/dist/src/type-inference-verification/create-policy-map-from-tool-policies.js +56 -0
  184. package/dist/src/type-inference-verification/create-policy-map-from-tool-policies.js.map +1 -0
  185. package/dist/src/type-inference-verification/create-vincent-ability-policy.d.ts +2 -0
  186. package/dist/src/type-inference-verification/create-vincent-ability-policy.d.ts.map +1 -0
  187. package/dist/src/type-inference-verification/create-vincent-ability-policy.js +49 -0
  188. package/dist/src/type-inference-verification/create-vincent-ability-policy.js.map +1 -0
  189. package/dist/src/type-inference-verification/create-vincent-ability.d.ts +250 -0
  190. package/dist/src/type-inference-verification/create-vincent-ability.d.ts.map +1 -0
  191. package/dist/src/type-inference-verification/create-vincent-ability.js +68 -0
  192. package/dist/src/type-inference-verification/create-vincent-ability.js.map +1 -0
  193. package/dist/src/type-inference-verification/parameter-inference-tests-tool.d.ts +1710 -0
  194. package/dist/src/type-inference-verification/parameter-inference-tests-tool.d.ts.map +1 -0
  195. package/dist/src/type-inference-verification/parameter-inference-tests-tool.js +537 -0
  196. package/dist/src/type-inference-verification/parameter-inference-tests-tool.js.map +1 -0
  197. package/dist/src/type-inference-verification/parameter-inference-tests.d.ts +456 -0
  198. package/dist/src/type-inference-verification/parameter-inference-tests.d.ts.map +1 -0
  199. package/dist/src/type-inference-verification/parameter-inference-tests.js +179 -0
  200. package/dist/src/type-inference-verification/parameter-inference-tests.js.map +1 -0
  201. package/dist/src/type-inference-verification/playground.d.ts +1556 -0
  202. package/dist/src/type-inference-verification/playground.d.ts.map +1 -0
  203. package/dist/src/type-inference-verification/playground.js +473 -0
  204. package/dist/src/type-inference-verification/playground.js.map +1 -0
  205. package/dist/src/type-inference-verification/schema-test.d.ts +470 -0
  206. package/dist/src/type-inference-verification/schema-test.d.ts.map +1 -0
  207. package/dist/src/type-inference-verification/schema-test.js +252 -0
  208. package/dist/src/type-inference-verification/schema-test.js.map +1 -0
  209. package/package.json +43 -0
@@ -0,0 +1,4305 @@
1
+ /**
2
+ * Ability Definition Type Checking
3
+ *
4
+ * This file validates that TypeScript correctly enforces type constraints
5
+ * for ability definitions, focusing on success/failure responses.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * Test Case 1: Basic ability with no schemas
10
+ * This validates the behavior when no explicit schemas are provided.
11
+ */
12
+ export declare function testNoSchemas(): import("..").VincentAbility<z.ZodObject<{
13
+ action: z.ZodString;
14
+ target: z.ZodString;
15
+ amount: z.ZodOptional<z.ZodNumber>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ action: string;
18
+ target: string;
19
+ amount?: number | undefined;
20
+ }, {
21
+ action: string;
22
+ target: string;
23
+ amount?: number | undefined;
24
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
25
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
26
+ actionType: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ actionType: string;
29
+ }, {
30
+ actionType: string;
31
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
32
+ approved: z.ZodBoolean;
33
+ }, "strip", z.ZodTypeAny, {
34
+ approved: boolean;
35
+ }, {
36
+ approved: boolean;
37
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
38
+ actionType: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ actionType: string;
41
+ }, {
42
+ actionType: string;
43
+ }>, z.ZodUndefined, z.ZodObject<{
44
+ approved: z.ZodBoolean;
45
+ }, "strip", z.ZodTypeAny, {
46
+ approved: boolean;
47
+ }, {
48
+ approved: boolean;
49
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
50
+ actionType: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ actionType: string;
53
+ }, {
54
+ actionType: string;
55
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
56
+ ipfsCid: "j298jhodf9024j4jfg";
57
+ abilityParameterMappings: Partial<{
58
+ action: "actionType";
59
+ target: "actionType";
60
+ amount?: "actionType" | undefined;
61
+ }>;
62
+ vincentAbilityApiVersion: string;
63
+ __schemaTypes: {
64
+ policyAbilityParamsSchema: z.ZodObject<{
65
+ actionType: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ actionType: string;
68
+ }, {
69
+ actionType: string;
70
+ }>;
71
+ userParamsSchema: z.ZodUndefined;
72
+ evalAllowResultSchema: z.ZodObject<{
73
+ approved: z.ZodBoolean;
74
+ }, "strip", z.ZodTypeAny, {
75
+ approved: boolean;
76
+ }, {
77
+ approved: boolean;
78
+ }>;
79
+ evalDenyResultSchema: z.ZodUndefined;
80
+ precheckAllowResultSchema: z.ZodUndefined;
81
+ precheckDenyResultSchema: z.ZodUndefined;
82
+ commitParamsSchema: z.ZodUndefined;
83
+ commitAllowResultSchema: z.ZodUndefined;
84
+ commitDenyResultSchema: z.ZodUndefined;
85
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
86
+ actionType: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ actionType: string;
89
+ }, {
90
+ actionType: string;
91
+ }>, z.ZodUndefined, z.ZodObject<{
92
+ approved: z.ZodBoolean;
93
+ }, "strip", z.ZodTypeAny, {
94
+ approved: boolean;
95
+ }, {
96
+ approved: boolean;
97
+ }>, z.ZodUndefined>;
98
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
99
+ actionType: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ actionType: string;
102
+ }, {
103
+ actionType: string;
104
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
105
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
106
+ };
107
+ }], "@lit-protocol/test-policy@1.0.0">, {
108
+ "@lit-protocol/test-policy@1.0.0": {
109
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
110
+ actionType: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ actionType: string;
113
+ }, {
114
+ actionType: string;
115
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
116
+ approved: z.ZodBoolean;
117
+ }, "strip", z.ZodTypeAny, {
118
+ approved: boolean;
119
+ }, {
120
+ approved: boolean;
121
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
122
+ actionType: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ actionType: string;
125
+ }, {
126
+ actionType: string;
127
+ }>, z.ZodUndefined, z.ZodObject<{
128
+ approved: z.ZodBoolean;
129
+ }, "strip", z.ZodTypeAny, {
130
+ approved: boolean;
131
+ }, {
132
+ approved: boolean;
133
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
134
+ actionType: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ actionType: string;
137
+ }, {
138
+ actionType: string;
139
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
140
+ ipfsCid: "j298jhodf9024j4jfg";
141
+ abilityParameterMappings: Partial<{
142
+ action: "actionType";
143
+ target: "actionType";
144
+ amount?: "actionType" | undefined;
145
+ }>;
146
+ vincentAbilityApiVersion: string;
147
+ __schemaTypes: {
148
+ policyAbilityParamsSchema: z.ZodObject<{
149
+ actionType: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ actionType: string;
152
+ }, {
153
+ actionType: string;
154
+ }>;
155
+ userParamsSchema: z.ZodUndefined;
156
+ evalAllowResultSchema: z.ZodObject<{
157
+ approved: z.ZodBoolean;
158
+ }, "strip", z.ZodTypeAny, {
159
+ approved: boolean;
160
+ }, {
161
+ approved: boolean;
162
+ }>;
163
+ evalDenyResultSchema: z.ZodUndefined;
164
+ precheckAllowResultSchema: z.ZodUndefined;
165
+ precheckDenyResultSchema: z.ZodUndefined;
166
+ commitParamsSchema: z.ZodUndefined;
167
+ commitAllowResultSchema: z.ZodUndefined;
168
+ commitDenyResultSchema: z.ZodUndefined;
169
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
170
+ actionType: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ actionType: string;
173
+ }, {
174
+ actionType: string;
175
+ }>, z.ZodUndefined, z.ZodObject<{
176
+ approved: z.ZodBoolean;
177
+ }, "strip", z.ZodTypeAny, {
178
+ approved: boolean;
179
+ }, {
180
+ approved: boolean;
181
+ }>, z.ZodUndefined>;
182
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
183
+ actionType: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ actionType: string;
186
+ }, {
187
+ actionType: string;
188
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
189
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
190
+ };
191
+ };
192
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
193
+ /**
194
+ * Test Case 2: Ability with explicit success/fail schemas
195
+ * This validates that TypeScript enforces schema constraints.
196
+ */
197
+ export declare function tesWithSchemas(): import("..").VincentAbility<z.ZodObject<{
198
+ action: z.ZodString;
199
+ target: z.ZodString;
200
+ amount: z.ZodOptional<z.ZodNumber>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ action: string;
203
+ target: string;
204
+ amount?: number | undefined;
205
+ }, {
206
+ action: string;
207
+ target: string;
208
+ amount?: number | undefined;
209
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
210
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
211
+ actionType: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ actionType: string;
214
+ }, {
215
+ actionType: string;
216
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
217
+ approved: z.ZodBoolean;
218
+ }, "strip", z.ZodTypeAny, {
219
+ approved: boolean;
220
+ }, {
221
+ approved: boolean;
222
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
223
+ actionType: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ actionType: string;
226
+ }, {
227
+ actionType: string;
228
+ }>, z.ZodUndefined, z.ZodObject<{
229
+ approved: z.ZodBoolean;
230
+ }, "strip", z.ZodTypeAny, {
231
+ approved: boolean;
232
+ }, {
233
+ approved: boolean;
234
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
235
+ actionType: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ actionType: string;
238
+ }, {
239
+ actionType: string;
240
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
241
+ ipfsCid: "j298jhodf9024j4jfg";
242
+ abilityParameterMappings: Partial<{
243
+ action: "actionType";
244
+ target: "actionType";
245
+ amount?: "actionType" | undefined;
246
+ }>;
247
+ vincentAbilityApiVersion: string;
248
+ __schemaTypes: {
249
+ policyAbilityParamsSchema: z.ZodObject<{
250
+ actionType: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ actionType: string;
253
+ }, {
254
+ actionType: string;
255
+ }>;
256
+ userParamsSchema: z.ZodUndefined;
257
+ evalAllowResultSchema: z.ZodObject<{
258
+ approved: z.ZodBoolean;
259
+ }, "strip", z.ZodTypeAny, {
260
+ approved: boolean;
261
+ }, {
262
+ approved: boolean;
263
+ }>;
264
+ evalDenyResultSchema: z.ZodUndefined;
265
+ precheckAllowResultSchema: z.ZodUndefined;
266
+ precheckDenyResultSchema: z.ZodUndefined;
267
+ commitParamsSchema: z.ZodUndefined;
268
+ commitAllowResultSchema: z.ZodUndefined;
269
+ commitDenyResultSchema: z.ZodUndefined;
270
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
271
+ actionType: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ actionType: string;
274
+ }, {
275
+ actionType: string;
276
+ }>, z.ZodUndefined, z.ZodObject<{
277
+ approved: z.ZodBoolean;
278
+ }, "strip", z.ZodTypeAny, {
279
+ approved: boolean;
280
+ }, {
281
+ approved: boolean;
282
+ }>, z.ZodUndefined>;
283
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
284
+ actionType: z.ZodString;
285
+ }, "strip", z.ZodTypeAny, {
286
+ actionType: string;
287
+ }, {
288
+ actionType: string;
289
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
290
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
291
+ };
292
+ }], "@lit-protocol/test-policy@1.0.0">, {
293
+ "@lit-protocol/test-policy@1.0.0": {
294
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
295
+ actionType: z.ZodString;
296
+ }, "strip", z.ZodTypeAny, {
297
+ actionType: string;
298
+ }, {
299
+ actionType: string;
300
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
301
+ approved: z.ZodBoolean;
302
+ }, "strip", z.ZodTypeAny, {
303
+ approved: boolean;
304
+ }, {
305
+ approved: boolean;
306
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
307
+ actionType: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ actionType: string;
310
+ }, {
311
+ actionType: string;
312
+ }>, z.ZodUndefined, z.ZodObject<{
313
+ approved: z.ZodBoolean;
314
+ }, "strip", z.ZodTypeAny, {
315
+ approved: boolean;
316
+ }, {
317
+ approved: boolean;
318
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
319
+ actionType: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ actionType: string;
322
+ }, {
323
+ actionType: string;
324
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
325
+ ipfsCid: "j298jhodf9024j4jfg";
326
+ abilityParameterMappings: Partial<{
327
+ action: "actionType";
328
+ target: "actionType";
329
+ amount?: "actionType" | undefined;
330
+ }>;
331
+ vincentAbilityApiVersion: string;
332
+ __schemaTypes: {
333
+ policyAbilityParamsSchema: z.ZodObject<{
334
+ actionType: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ actionType: string;
337
+ }, {
338
+ actionType: string;
339
+ }>;
340
+ userParamsSchema: z.ZodUndefined;
341
+ evalAllowResultSchema: z.ZodObject<{
342
+ approved: z.ZodBoolean;
343
+ }, "strip", z.ZodTypeAny, {
344
+ approved: boolean;
345
+ }, {
346
+ approved: boolean;
347
+ }>;
348
+ evalDenyResultSchema: z.ZodUndefined;
349
+ precheckAllowResultSchema: z.ZodUndefined;
350
+ precheckDenyResultSchema: z.ZodUndefined;
351
+ commitParamsSchema: z.ZodUndefined;
352
+ commitAllowResultSchema: z.ZodUndefined;
353
+ commitDenyResultSchema: z.ZodUndefined;
354
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
355
+ actionType: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ actionType: string;
358
+ }, {
359
+ actionType: string;
360
+ }>, z.ZodUndefined, z.ZodObject<{
361
+ approved: z.ZodBoolean;
362
+ }, "strip", z.ZodTypeAny, {
363
+ approved: boolean;
364
+ }, {
365
+ approved: boolean;
366
+ }>, z.ZodUndefined>;
367
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
368
+ actionType: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ actionType: string;
371
+ }, {
372
+ actionType: string;
373
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
374
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
375
+ };
376
+ };
377
+ }, z.ZodObject<{
378
+ message: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ message: string;
381
+ }, {
382
+ message: string;
383
+ }>, z.ZodObject<{
384
+ error: z.ZodString;
385
+ code: z.ZodNumber;
386
+ }, "strip", z.ZodTypeAny, {
387
+ code: number;
388
+ error: string;
389
+ }, {
390
+ code: number;
391
+ error: string;
392
+ }>, z.ZodUndefined, z.ZodUndefined>;
393
+ /**
394
+ * Test Case 3: Ability with different precheck and execute schemas
395
+ * This validates that different schema types are correctly enforced.
396
+ */
397
+ export declare function testDifferentSchemas(): import("..").VincentAbility<z.ZodObject<{
398
+ action: z.ZodString;
399
+ target: z.ZodString;
400
+ amount: z.ZodOptional<z.ZodNumber>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ action: string;
403
+ target: string;
404
+ amount?: number | undefined;
405
+ }, {
406
+ action: string;
407
+ target: string;
408
+ amount?: number | undefined;
409
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
410
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
411
+ actionType: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ actionType: string;
414
+ }, {
415
+ actionType: string;
416
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
417
+ approved: z.ZodBoolean;
418
+ }, "strip", z.ZodTypeAny, {
419
+ approved: boolean;
420
+ }, {
421
+ approved: boolean;
422
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
423
+ actionType: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ actionType: string;
426
+ }, {
427
+ actionType: string;
428
+ }>, z.ZodUndefined, z.ZodObject<{
429
+ approved: z.ZodBoolean;
430
+ }, "strip", z.ZodTypeAny, {
431
+ approved: boolean;
432
+ }, {
433
+ approved: boolean;
434
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
435
+ actionType: z.ZodString;
436
+ }, "strip", z.ZodTypeAny, {
437
+ actionType: string;
438
+ }, {
439
+ actionType: string;
440
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
441
+ ipfsCid: "j298jhodf9024j4jfg";
442
+ abilityParameterMappings: Partial<{
443
+ action: "actionType";
444
+ target: "actionType";
445
+ amount?: "actionType" | undefined;
446
+ }>;
447
+ vincentAbilityApiVersion: string;
448
+ __schemaTypes: {
449
+ policyAbilityParamsSchema: z.ZodObject<{
450
+ actionType: z.ZodString;
451
+ }, "strip", z.ZodTypeAny, {
452
+ actionType: string;
453
+ }, {
454
+ actionType: string;
455
+ }>;
456
+ userParamsSchema: z.ZodUndefined;
457
+ evalAllowResultSchema: z.ZodObject<{
458
+ approved: z.ZodBoolean;
459
+ }, "strip", z.ZodTypeAny, {
460
+ approved: boolean;
461
+ }, {
462
+ approved: boolean;
463
+ }>;
464
+ evalDenyResultSchema: z.ZodUndefined;
465
+ precheckAllowResultSchema: z.ZodUndefined;
466
+ precheckDenyResultSchema: z.ZodUndefined;
467
+ commitParamsSchema: z.ZodUndefined;
468
+ commitAllowResultSchema: z.ZodUndefined;
469
+ commitDenyResultSchema: z.ZodUndefined;
470
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
471
+ actionType: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ actionType: string;
474
+ }, {
475
+ actionType: string;
476
+ }>, z.ZodUndefined, z.ZodObject<{
477
+ approved: z.ZodBoolean;
478
+ }, "strip", z.ZodTypeAny, {
479
+ approved: boolean;
480
+ }, {
481
+ approved: boolean;
482
+ }>, z.ZodUndefined>;
483
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
484
+ actionType: z.ZodString;
485
+ }, "strip", z.ZodTypeAny, {
486
+ actionType: string;
487
+ }, {
488
+ actionType: string;
489
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
490
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
491
+ };
492
+ }], "@lit-protocol/test-policy@1.0.0">, {
493
+ "@lit-protocol/test-policy@1.0.0": {
494
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
495
+ actionType: z.ZodString;
496
+ }, "strip", z.ZodTypeAny, {
497
+ actionType: string;
498
+ }, {
499
+ actionType: string;
500
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
501
+ approved: z.ZodBoolean;
502
+ }, "strip", z.ZodTypeAny, {
503
+ approved: boolean;
504
+ }, {
505
+ approved: boolean;
506
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
507
+ actionType: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ actionType: string;
510
+ }, {
511
+ actionType: string;
512
+ }>, z.ZodUndefined, z.ZodObject<{
513
+ approved: z.ZodBoolean;
514
+ }, "strip", z.ZodTypeAny, {
515
+ approved: boolean;
516
+ }, {
517
+ approved: boolean;
518
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
519
+ actionType: z.ZodString;
520
+ }, "strip", z.ZodTypeAny, {
521
+ actionType: string;
522
+ }, {
523
+ actionType: string;
524
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
525
+ ipfsCid: "j298jhodf9024j4jfg";
526
+ abilityParameterMappings: Partial<{
527
+ action: "actionType";
528
+ target: "actionType";
529
+ amount?: "actionType" | undefined;
530
+ }>;
531
+ vincentAbilityApiVersion: string;
532
+ __schemaTypes: {
533
+ policyAbilityParamsSchema: z.ZodObject<{
534
+ actionType: z.ZodString;
535
+ }, "strip", z.ZodTypeAny, {
536
+ actionType: string;
537
+ }, {
538
+ actionType: string;
539
+ }>;
540
+ userParamsSchema: z.ZodUndefined;
541
+ evalAllowResultSchema: z.ZodObject<{
542
+ approved: z.ZodBoolean;
543
+ }, "strip", z.ZodTypeAny, {
544
+ approved: boolean;
545
+ }, {
546
+ approved: boolean;
547
+ }>;
548
+ evalDenyResultSchema: z.ZodUndefined;
549
+ precheckAllowResultSchema: z.ZodUndefined;
550
+ precheckDenyResultSchema: z.ZodUndefined;
551
+ commitParamsSchema: z.ZodUndefined;
552
+ commitAllowResultSchema: z.ZodUndefined;
553
+ commitDenyResultSchema: z.ZodUndefined;
554
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
555
+ actionType: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ actionType: string;
558
+ }, {
559
+ actionType: string;
560
+ }>, z.ZodUndefined, z.ZodObject<{
561
+ approved: z.ZodBoolean;
562
+ }, "strip", z.ZodTypeAny, {
563
+ approved: boolean;
564
+ }, {
565
+ approved: boolean;
566
+ }>, z.ZodUndefined>;
567
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
568
+ actionType: z.ZodString;
569
+ }, "strip", z.ZodTypeAny, {
570
+ actionType: string;
571
+ }, {
572
+ actionType: string;
573
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
574
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
575
+ };
576
+ };
577
+ }, z.ZodObject<{
578
+ result: z.ZodString;
579
+ timestamp: z.ZodNumber;
580
+ }, "strip", z.ZodTypeAny, {
581
+ result: string;
582
+ timestamp: number;
583
+ }, {
584
+ result: string;
585
+ timestamp: number;
586
+ }>, z.ZodObject<{
587
+ errorCode: z.ZodNumber;
588
+ }, "strip", z.ZodTypeAny, {
589
+ errorCode: number;
590
+ }, {
591
+ errorCode: number;
592
+ }>, z.ZodObject<{
593
+ valid: z.ZodBoolean;
594
+ }, "strip", z.ZodTypeAny, {
595
+ valid: boolean;
596
+ }, {
597
+ valid: boolean;
598
+ }>, z.ZodObject<{
599
+ reason: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ reason: string;
602
+ }, {
603
+ reason: string;
604
+ }>>;
605
+ /**
606
+ * Test Case 4: Context type safety with policy results
607
+ * This validates that policiesContext is correctly typed.
608
+ */
609
+ export declare function testPolicyResultTypes(): import("..").VincentAbility<z.ZodObject<{
610
+ action: z.ZodString;
611
+ target: z.ZodString;
612
+ amount: z.ZodOptional<z.ZodNumber>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ action: string;
615
+ target: string;
616
+ amount?: number | undefined;
617
+ }, {
618
+ action: string;
619
+ target: string;
620
+ amount?: number | undefined;
621
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
622
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
623
+ actionType: z.ZodString;
624
+ }, "strip", z.ZodTypeAny, {
625
+ actionType: string;
626
+ }, {
627
+ actionType: string;
628
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
629
+ approved: z.ZodBoolean;
630
+ }, "strip", z.ZodTypeAny, {
631
+ approved: boolean;
632
+ }, {
633
+ approved: boolean;
634
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
635
+ actionType: z.ZodString;
636
+ }, "strip", z.ZodTypeAny, {
637
+ actionType: string;
638
+ }, {
639
+ actionType: string;
640
+ }>, z.ZodUndefined, z.ZodObject<{
641
+ approved: z.ZodBoolean;
642
+ }, "strip", z.ZodTypeAny, {
643
+ approved: boolean;
644
+ }, {
645
+ approved: boolean;
646
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
647
+ actionType: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ actionType: string;
650
+ }, {
651
+ actionType: string;
652
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
653
+ ipfsCid: "j298jhodf9024j4jfg";
654
+ abilityParameterMappings: Partial<{
655
+ action: "actionType";
656
+ target: "actionType";
657
+ amount?: "actionType" | undefined;
658
+ }>;
659
+ vincentAbilityApiVersion: string;
660
+ __schemaTypes: {
661
+ policyAbilityParamsSchema: z.ZodObject<{
662
+ actionType: z.ZodString;
663
+ }, "strip", z.ZodTypeAny, {
664
+ actionType: string;
665
+ }, {
666
+ actionType: string;
667
+ }>;
668
+ userParamsSchema: z.ZodUndefined;
669
+ evalAllowResultSchema: z.ZodObject<{
670
+ approved: z.ZodBoolean;
671
+ }, "strip", z.ZodTypeAny, {
672
+ approved: boolean;
673
+ }, {
674
+ approved: boolean;
675
+ }>;
676
+ evalDenyResultSchema: z.ZodUndefined;
677
+ precheckAllowResultSchema: z.ZodUndefined;
678
+ precheckDenyResultSchema: z.ZodUndefined;
679
+ commitParamsSchema: z.ZodUndefined;
680
+ commitAllowResultSchema: z.ZodUndefined;
681
+ commitDenyResultSchema: z.ZodUndefined;
682
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
683
+ actionType: z.ZodString;
684
+ }, "strip", z.ZodTypeAny, {
685
+ actionType: string;
686
+ }, {
687
+ actionType: string;
688
+ }>, z.ZodUndefined, z.ZodObject<{
689
+ approved: z.ZodBoolean;
690
+ }, "strip", z.ZodTypeAny, {
691
+ approved: boolean;
692
+ }, {
693
+ approved: boolean;
694
+ }>, z.ZodUndefined>;
695
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
696
+ actionType: z.ZodString;
697
+ }, "strip", z.ZodTypeAny, {
698
+ actionType: string;
699
+ }, {
700
+ actionType: string;
701
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
702
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
703
+ };
704
+ }], "@lit-protocol/test-policy@1.0.0">, {
705
+ "@lit-protocol/test-policy@1.0.0": {
706
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
707
+ actionType: z.ZodString;
708
+ }, "strip", z.ZodTypeAny, {
709
+ actionType: string;
710
+ }, {
711
+ actionType: string;
712
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
713
+ approved: z.ZodBoolean;
714
+ }, "strip", z.ZodTypeAny, {
715
+ approved: boolean;
716
+ }, {
717
+ approved: boolean;
718
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
719
+ actionType: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ actionType: string;
722
+ }, {
723
+ actionType: string;
724
+ }>, z.ZodUndefined, z.ZodObject<{
725
+ approved: z.ZodBoolean;
726
+ }, "strip", z.ZodTypeAny, {
727
+ approved: boolean;
728
+ }, {
729
+ approved: boolean;
730
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
731
+ actionType: z.ZodString;
732
+ }, "strip", z.ZodTypeAny, {
733
+ actionType: string;
734
+ }, {
735
+ actionType: string;
736
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
737
+ ipfsCid: "j298jhodf9024j4jfg";
738
+ abilityParameterMappings: Partial<{
739
+ action: "actionType";
740
+ target: "actionType";
741
+ amount?: "actionType" | undefined;
742
+ }>;
743
+ vincentAbilityApiVersion: string;
744
+ __schemaTypes: {
745
+ policyAbilityParamsSchema: z.ZodObject<{
746
+ actionType: z.ZodString;
747
+ }, "strip", z.ZodTypeAny, {
748
+ actionType: string;
749
+ }, {
750
+ actionType: string;
751
+ }>;
752
+ userParamsSchema: z.ZodUndefined;
753
+ evalAllowResultSchema: z.ZodObject<{
754
+ approved: z.ZodBoolean;
755
+ }, "strip", z.ZodTypeAny, {
756
+ approved: boolean;
757
+ }, {
758
+ approved: boolean;
759
+ }>;
760
+ evalDenyResultSchema: z.ZodUndefined;
761
+ precheckAllowResultSchema: z.ZodUndefined;
762
+ precheckDenyResultSchema: z.ZodUndefined;
763
+ commitParamsSchema: z.ZodUndefined;
764
+ commitAllowResultSchema: z.ZodUndefined;
765
+ commitDenyResultSchema: z.ZodUndefined;
766
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
767
+ actionType: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ actionType: string;
770
+ }, {
771
+ actionType: string;
772
+ }>, z.ZodUndefined, z.ZodObject<{
773
+ approved: z.ZodBoolean;
774
+ }, "strip", z.ZodTypeAny, {
775
+ approved: boolean;
776
+ }, {
777
+ approved: boolean;
778
+ }>, z.ZodUndefined>;
779
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
780
+ actionType: z.ZodString;
781
+ }, "strip", z.ZodTypeAny, {
782
+ actionType: string;
783
+ }, {
784
+ actionType: string;
785
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
786
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
787
+ };
788
+ };
789
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
790
+ export declare function assertAllow<T extends {
791
+ allow: true;
792
+ }>(obj: T): asserts obj is T;
793
+ export declare function testExecutePolicyResultTyping(): import("..").VincentAbility<z.ZodObject<{
794
+ action: z.ZodString;
795
+ target: z.ZodString;
796
+ amount: z.ZodOptional<z.ZodNumber>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ action: string;
799
+ target: string;
800
+ amount?: number | undefined;
801
+ }, {
802
+ action: string;
803
+ target: string;
804
+ amount?: number | undefined;
805
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
806
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
807
+ actionType: z.ZodString;
808
+ }, "strip", z.ZodTypeAny, {
809
+ actionType: string;
810
+ }, {
811
+ actionType: string;
812
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
813
+ approved: z.ZodBoolean;
814
+ }, "strip", z.ZodTypeAny, {
815
+ approved: boolean;
816
+ }, {
817
+ approved: boolean;
818
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
819
+ actionType: z.ZodString;
820
+ }, "strip", z.ZodTypeAny, {
821
+ actionType: string;
822
+ }, {
823
+ actionType: string;
824
+ }>, z.ZodUndefined, z.ZodObject<{
825
+ approved: z.ZodBoolean;
826
+ }, "strip", z.ZodTypeAny, {
827
+ approved: boolean;
828
+ }, {
829
+ approved: boolean;
830
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
831
+ actionType: z.ZodString;
832
+ }, "strip", z.ZodTypeAny, {
833
+ actionType: string;
834
+ }, {
835
+ actionType: string;
836
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
837
+ ipfsCid: "j298jhodf9024j4jfg";
838
+ abilityParameterMappings: Partial<{
839
+ action: "actionType";
840
+ target: "actionType";
841
+ amount?: "actionType" | undefined;
842
+ }>;
843
+ vincentAbilityApiVersion: string;
844
+ __schemaTypes: {
845
+ policyAbilityParamsSchema: z.ZodObject<{
846
+ actionType: z.ZodString;
847
+ }, "strip", z.ZodTypeAny, {
848
+ actionType: string;
849
+ }, {
850
+ actionType: string;
851
+ }>;
852
+ userParamsSchema: z.ZodUndefined;
853
+ evalAllowResultSchema: z.ZodObject<{
854
+ approved: z.ZodBoolean;
855
+ }, "strip", z.ZodTypeAny, {
856
+ approved: boolean;
857
+ }, {
858
+ approved: boolean;
859
+ }>;
860
+ evalDenyResultSchema: z.ZodUndefined;
861
+ precheckAllowResultSchema: z.ZodUndefined;
862
+ precheckDenyResultSchema: z.ZodUndefined;
863
+ commitParamsSchema: z.ZodUndefined;
864
+ commitAllowResultSchema: z.ZodUndefined;
865
+ commitDenyResultSchema: z.ZodUndefined;
866
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
867
+ actionType: z.ZodString;
868
+ }, "strip", z.ZodTypeAny, {
869
+ actionType: string;
870
+ }, {
871
+ actionType: string;
872
+ }>, z.ZodUndefined, z.ZodObject<{
873
+ approved: z.ZodBoolean;
874
+ }, "strip", z.ZodTypeAny, {
875
+ approved: boolean;
876
+ }, {
877
+ approved: boolean;
878
+ }>, z.ZodUndefined>;
879
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
880
+ actionType: z.ZodString;
881
+ }, "strip", z.ZodTypeAny, {
882
+ actionType: string;
883
+ }, {
884
+ actionType: string;
885
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
886
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
887
+ };
888
+ }], "@lit-protocol/test-policy@1.0.0">, {
889
+ "@lit-protocol/test-policy@1.0.0": {
890
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
891
+ actionType: z.ZodString;
892
+ }, "strip", z.ZodTypeAny, {
893
+ actionType: string;
894
+ }, {
895
+ actionType: string;
896
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
897
+ approved: z.ZodBoolean;
898
+ }, "strip", z.ZodTypeAny, {
899
+ approved: boolean;
900
+ }, {
901
+ approved: boolean;
902
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
903
+ actionType: z.ZodString;
904
+ }, "strip", z.ZodTypeAny, {
905
+ actionType: string;
906
+ }, {
907
+ actionType: string;
908
+ }>, z.ZodUndefined, z.ZodObject<{
909
+ approved: z.ZodBoolean;
910
+ }, "strip", z.ZodTypeAny, {
911
+ approved: boolean;
912
+ }, {
913
+ approved: boolean;
914
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
915
+ actionType: z.ZodString;
916
+ }, "strip", z.ZodTypeAny, {
917
+ actionType: string;
918
+ }, {
919
+ actionType: string;
920
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
921
+ ipfsCid: "j298jhodf9024j4jfg";
922
+ abilityParameterMappings: Partial<{
923
+ action: "actionType";
924
+ target: "actionType";
925
+ amount?: "actionType" | undefined;
926
+ }>;
927
+ vincentAbilityApiVersion: string;
928
+ __schemaTypes: {
929
+ policyAbilityParamsSchema: z.ZodObject<{
930
+ actionType: z.ZodString;
931
+ }, "strip", z.ZodTypeAny, {
932
+ actionType: string;
933
+ }, {
934
+ actionType: string;
935
+ }>;
936
+ userParamsSchema: z.ZodUndefined;
937
+ evalAllowResultSchema: z.ZodObject<{
938
+ approved: z.ZodBoolean;
939
+ }, "strip", z.ZodTypeAny, {
940
+ approved: boolean;
941
+ }, {
942
+ approved: boolean;
943
+ }>;
944
+ evalDenyResultSchema: z.ZodUndefined;
945
+ precheckAllowResultSchema: z.ZodUndefined;
946
+ precheckDenyResultSchema: z.ZodUndefined;
947
+ commitParamsSchema: z.ZodUndefined;
948
+ commitAllowResultSchema: z.ZodUndefined;
949
+ commitDenyResultSchema: z.ZodUndefined;
950
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
951
+ actionType: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ actionType: string;
954
+ }, {
955
+ actionType: string;
956
+ }>, z.ZodUndefined, z.ZodObject<{
957
+ approved: z.ZodBoolean;
958
+ }, "strip", z.ZodTypeAny, {
959
+ approved: boolean;
960
+ }, {
961
+ approved: boolean;
962
+ }>, z.ZodUndefined>;
963
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
964
+ actionType: z.ZodString;
965
+ }, "strip", z.ZodTypeAny, {
966
+ actionType: string;
967
+ }, {
968
+ actionType: string;
969
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
970
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
971
+ };
972
+ };
973
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
974
+ export declare const missingExecute: import("..").VincentAbility<z.ZodObject<{
975
+ action: z.ZodString;
976
+ target: z.ZodString;
977
+ amount: z.ZodOptional<z.ZodNumber>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ action: string;
980
+ target: string;
981
+ amount?: number | undefined;
982
+ }, {
983
+ action: string;
984
+ target: string;
985
+ amount?: number | undefined;
986
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
987
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
988
+ actionType: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ actionType: string;
991
+ }, {
992
+ actionType: string;
993
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
994
+ approved: z.ZodBoolean;
995
+ }, "strip", z.ZodTypeAny, {
996
+ approved: boolean;
997
+ }, {
998
+ approved: boolean;
999
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1000
+ actionType: z.ZodString;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ actionType: string;
1003
+ }, {
1004
+ actionType: string;
1005
+ }>, z.ZodUndefined, z.ZodObject<{
1006
+ approved: z.ZodBoolean;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ approved: boolean;
1009
+ }, {
1010
+ approved: boolean;
1011
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1012
+ actionType: z.ZodString;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ actionType: string;
1015
+ }, {
1016
+ actionType: string;
1017
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1018
+ ipfsCid: "j298jhodf9024j4jfg";
1019
+ abilityParameterMappings: Partial<{
1020
+ action: "actionType";
1021
+ target: "actionType";
1022
+ amount?: "actionType" | undefined;
1023
+ }>;
1024
+ vincentAbilityApiVersion: string;
1025
+ __schemaTypes: {
1026
+ policyAbilityParamsSchema: z.ZodObject<{
1027
+ actionType: z.ZodString;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ actionType: string;
1030
+ }, {
1031
+ actionType: string;
1032
+ }>;
1033
+ userParamsSchema: z.ZodUndefined;
1034
+ evalAllowResultSchema: z.ZodObject<{
1035
+ approved: z.ZodBoolean;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ approved: boolean;
1038
+ }, {
1039
+ approved: boolean;
1040
+ }>;
1041
+ evalDenyResultSchema: z.ZodUndefined;
1042
+ precheckAllowResultSchema: z.ZodUndefined;
1043
+ precheckDenyResultSchema: z.ZodUndefined;
1044
+ commitParamsSchema: z.ZodUndefined;
1045
+ commitAllowResultSchema: z.ZodUndefined;
1046
+ commitDenyResultSchema: z.ZodUndefined;
1047
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1048
+ actionType: z.ZodString;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ actionType: string;
1051
+ }, {
1052
+ actionType: string;
1053
+ }>, z.ZodUndefined, z.ZodObject<{
1054
+ approved: z.ZodBoolean;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ approved: boolean;
1057
+ }, {
1058
+ approved: boolean;
1059
+ }>, z.ZodUndefined>;
1060
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1061
+ actionType: z.ZodString;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ actionType: string;
1064
+ }, {
1065
+ actionType: string;
1066
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1067
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1068
+ };
1069
+ }], "@lit-protocol/test-policy@1.0.0">, {
1070
+ "@lit-protocol/test-policy@1.0.0": {
1071
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1072
+ actionType: z.ZodString;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ actionType: string;
1075
+ }, {
1076
+ actionType: string;
1077
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1078
+ approved: z.ZodBoolean;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ approved: boolean;
1081
+ }, {
1082
+ approved: boolean;
1083
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1084
+ actionType: z.ZodString;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ actionType: string;
1087
+ }, {
1088
+ actionType: string;
1089
+ }>, z.ZodUndefined, z.ZodObject<{
1090
+ approved: z.ZodBoolean;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ approved: boolean;
1093
+ }, {
1094
+ approved: boolean;
1095
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1096
+ actionType: z.ZodString;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ actionType: string;
1099
+ }, {
1100
+ actionType: string;
1101
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1102
+ ipfsCid: "j298jhodf9024j4jfg";
1103
+ abilityParameterMappings: Partial<{
1104
+ action: "actionType";
1105
+ target: "actionType";
1106
+ amount?: "actionType" | undefined;
1107
+ }>;
1108
+ vincentAbilityApiVersion: string;
1109
+ __schemaTypes: {
1110
+ policyAbilityParamsSchema: z.ZodObject<{
1111
+ actionType: z.ZodString;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ actionType: string;
1114
+ }, {
1115
+ actionType: string;
1116
+ }>;
1117
+ userParamsSchema: z.ZodUndefined;
1118
+ evalAllowResultSchema: z.ZodObject<{
1119
+ approved: z.ZodBoolean;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ approved: boolean;
1122
+ }, {
1123
+ approved: boolean;
1124
+ }>;
1125
+ evalDenyResultSchema: z.ZodUndefined;
1126
+ precheckAllowResultSchema: z.ZodUndefined;
1127
+ precheckDenyResultSchema: z.ZodUndefined;
1128
+ commitParamsSchema: z.ZodUndefined;
1129
+ commitAllowResultSchema: z.ZodUndefined;
1130
+ commitDenyResultSchema: z.ZodUndefined;
1131
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1132
+ actionType: z.ZodString;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ actionType: string;
1135
+ }, {
1136
+ actionType: string;
1137
+ }>, z.ZodUndefined, z.ZodObject<{
1138
+ approved: z.ZodBoolean;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ approved: boolean;
1141
+ }, {
1142
+ approved: boolean;
1143
+ }>, z.ZodUndefined>;
1144
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1145
+ actionType: z.ZodString;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ actionType: string;
1148
+ }, {
1149
+ actionType: string;
1150
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1151
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1152
+ };
1153
+ };
1154
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
1155
+ export declare const missingSchema: import("..").VincentAbility<z.ZodType<any, z.ZodTypeDef, any>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
1156
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1157
+ actionType: z.ZodString;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ actionType: string;
1160
+ }, {
1161
+ actionType: string;
1162
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1163
+ approved: z.ZodBoolean;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ approved: boolean;
1166
+ }, {
1167
+ approved: boolean;
1168
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1169
+ actionType: z.ZodString;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ actionType: string;
1172
+ }, {
1173
+ actionType: string;
1174
+ }>, z.ZodUndefined, z.ZodObject<{
1175
+ approved: z.ZodBoolean;
1176
+ }, "strip", z.ZodTypeAny, {
1177
+ approved: boolean;
1178
+ }, {
1179
+ approved: boolean;
1180
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1181
+ actionType: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ actionType: string;
1184
+ }, {
1185
+ actionType: string;
1186
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1187
+ ipfsCid: "j298jhodf9024j4jfg";
1188
+ abilityParameterMappings: Partial<{
1189
+ action: "actionType";
1190
+ target: "actionType";
1191
+ amount?: "actionType" | undefined;
1192
+ }>;
1193
+ vincentAbilityApiVersion: string;
1194
+ __schemaTypes: {
1195
+ policyAbilityParamsSchema: z.ZodObject<{
1196
+ actionType: z.ZodString;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ actionType: string;
1199
+ }, {
1200
+ actionType: string;
1201
+ }>;
1202
+ userParamsSchema: z.ZodUndefined;
1203
+ evalAllowResultSchema: z.ZodObject<{
1204
+ approved: z.ZodBoolean;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ approved: boolean;
1207
+ }, {
1208
+ approved: boolean;
1209
+ }>;
1210
+ evalDenyResultSchema: z.ZodUndefined;
1211
+ precheckAllowResultSchema: z.ZodUndefined;
1212
+ precheckDenyResultSchema: z.ZodUndefined;
1213
+ commitParamsSchema: z.ZodUndefined;
1214
+ commitAllowResultSchema: z.ZodUndefined;
1215
+ commitDenyResultSchema: z.ZodUndefined;
1216
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1217
+ actionType: z.ZodString;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ actionType: string;
1220
+ }, {
1221
+ actionType: string;
1222
+ }>, z.ZodUndefined, z.ZodObject<{
1223
+ approved: z.ZodBoolean;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ approved: boolean;
1226
+ }, {
1227
+ approved: boolean;
1228
+ }>, z.ZodUndefined>;
1229
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1230
+ actionType: z.ZodString;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ actionType: string;
1233
+ }, {
1234
+ actionType: string;
1235
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1236
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1237
+ };
1238
+ }], "@lit-protocol/test-policy@1.0.0">, {
1239
+ "@lit-protocol/test-policy@1.0.0": {
1240
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1241
+ actionType: z.ZodString;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ actionType: string;
1244
+ }, {
1245
+ actionType: string;
1246
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1247
+ approved: z.ZodBoolean;
1248
+ }, "strip", z.ZodTypeAny, {
1249
+ approved: boolean;
1250
+ }, {
1251
+ approved: boolean;
1252
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1253
+ actionType: z.ZodString;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ actionType: string;
1256
+ }, {
1257
+ actionType: string;
1258
+ }>, z.ZodUndefined, z.ZodObject<{
1259
+ approved: z.ZodBoolean;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ approved: boolean;
1262
+ }, {
1263
+ approved: boolean;
1264
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1265
+ actionType: z.ZodString;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ actionType: string;
1268
+ }, {
1269
+ actionType: string;
1270
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1271
+ ipfsCid: "j298jhodf9024j4jfg";
1272
+ abilityParameterMappings: Partial<{
1273
+ action: "actionType";
1274
+ target: "actionType";
1275
+ amount?: "actionType" | undefined;
1276
+ }>;
1277
+ vincentAbilityApiVersion: string;
1278
+ __schemaTypes: {
1279
+ policyAbilityParamsSchema: z.ZodObject<{
1280
+ actionType: z.ZodString;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ actionType: string;
1283
+ }, {
1284
+ actionType: string;
1285
+ }>;
1286
+ userParamsSchema: z.ZodUndefined;
1287
+ evalAllowResultSchema: z.ZodObject<{
1288
+ approved: z.ZodBoolean;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ approved: boolean;
1291
+ }, {
1292
+ approved: boolean;
1293
+ }>;
1294
+ evalDenyResultSchema: z.ZodUndefined;
1295
+ precheckAllowResultSchema: z.ZodUndefined;
1296
+ precheckDenyResultSchema: z.ZodUndefined;
1297
+ commitParamsSchema: z.ZodUndefined;
1298
+ commitAllowResultSchema: z.ZodUndefined;
1299
+ commitDenyResultSchema: z.ZodUndefined;
1300
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1301
+ actionType: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ actionType: string;
1304
+ }, {
1305
+ actionType: string;
1306
+ }>, z.ZodUndefined, z.ZodObject<{
1307
+ approved: z.ZodBoolean;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ approved: boolean;
1310
+ }, {
1311
+ approved: boolean;
1312
+ }>, z.ZodUndefined>;
1313
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1314
+ actionType: z.ZodString;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ actionType: string;
1317
+ }, {
1318
+ actionType: string;
1319
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1320
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1321
+ };
1322
+ };
1323
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
1324
+ /**
1325
+ * Test Case 6: Testing return types are enforced
1326
+ * Each sub-test has its own function to properly test at the function definition level.
1327
+ */
1328
+ export declare const testReturnNoSchema: () => import("..").VincentAbility<z.ZodObject<{
1329
+ action: z.ZodString;
1330
+ target: z.ZodString;
1331
+ amount: z.ZodOptional<z.ZodNumber>;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ action: string;
1334
+ target: string;
1335
+ amount?: number | undefined;
1336
+ }, {
1337
+ action: string;
1338
+ target: string;
1339
+ amount?: number | undefined;
1340
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
1341
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1342
+ actionType: z.ZodString;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ actionType: string;
1345
+ }, {
1346
+ actionType: string;
1347
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1348
+ approved: z.ZodBoolean;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ approved: boolean;
1351
+ }, {
1352
+ approved: boolean;
1353
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1354
+ actionType: z.ZodString;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ actionType: string;
1357
+ }, {
1358
+ actionType: string;
1359
+ }>, z.ZodUndefined, z.ZodObject<{
1360
+ approved: z.ZodBoolean;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ approved: boolean;
1363
+ }, {
1364
+ approved: boolean;
1365
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1366
+ actionType: z.ZodString;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ actionType: string;
1369
+ }, {
1370
+ actionType: string;
1371
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1372
+ ipfsCid: "j298jhodf9024j4jfg";
1373
+ abilityParameterMappings: Partial<{
1374
+ action: "actionType";
1375
+ target: "actionType";
1376
+ amount?: "actionType" | undefined;
1377
+ }>;
1378
+ vincentAbilityApiVersion: string;
1379
+ __schemaTypes: {
1380
+ policyAbilityParamsSchema: z.ZodObject<{
1381
+ actionType: z.ZodString;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ actionType: string;
1384
+ }, {
1385
+ actionType: string;
1386
+ }>;
1387
+ userParamsSchema: z.ZodUndefined;
1388
+ evalAllowResultSchema: z.ZodObject<{
1389
+ approved: z.ZodBoolean;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ approved: boolean;
1392
+ }, {
1393
+ approved: boolean;
1394
+ }>;
1395
+ evalDenyResultSchema: z.ZodUndefined;
1396
+ precheckAllowResultSchema: z.ZodUndefined;
1397
+ precheckDenyResultSchema: z.ZodUndefined;
1398
+ commitParamsSchema: z.ZodUndefined;
1399
+ commitAllowResultSchema: z.ZodUndefined;
1400
+ commitDenyResultSchema: z.ZodUndefined;
1401
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1402
+ actionType: z.ZodString;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ actionType: string;
1405
+ }, {
1406
+ actionType: string;
1407
+ }>, z.ZodUndefined, z.ZodObject<{
1408
+ approved: z.ZodBoolean;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ approved: boolean;
1411
+ }, {
1412
+ approved: boolean;
1413
+ }>, z.ZodUndefined>;
1414
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1415
+ actionType: z.ZodString;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ actionType: string;
1418
+ }, {
1419
+ actionType: string;
1420
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1421
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1422
+ };
1423
+ }], "@lit-protocol/test-policy@1.0.0">, {
1424
+ "@lit-protocol/test-policy@1.0.0": {
1425
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1426
+ actionType: z.ZodString;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ actionType: string;
1429
+ }, {
1430
+ actionType: string;
1431
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1432
+ approved: z.ZodBoolean;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ approved: boolean;
1435
+ }, {
1436
+ approved: boolean;
1437
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1438
+ actionType: z.ZodString;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ actionType: string;
1441
+ }, {
1442
+ actionType: string;
1443
+ }>, z.ZodUndefined, z.ZodObject<{
1444
+ approved: z.ZodBoolean;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ approved: boolean;
1447
+ }, {
1448
+ approved: boolean;
1449
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1450
+ actionType: z.ZodString;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ actionType: string;
1453
+ }, {
1454
+ actionType: string;
1455
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1456
+ ipfsCid: "j298jhodf9024j4jfg";
1457
+ abilityParameterMappings: Partial<{
1458
+ action: "actionType";
1459
+ target: "actionType";
1460
+ amount?: "actionType" | undefined;
1461
+ }>;
1462
+ vincentAbilityApiVersion: string;
1463
+ __schemaTypes: {
1464
+ policyAbilityParamsSchema: z.ZodObject<{
1465
+ actionType: z.ZodString;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ actionType: string;
1468
+ }, {
1469
+ actionType: string;
1470
+ }>;
1471
+ userParamsSchema: z.ZodUndefined;
1472
+ evalAllowResultSchema: z.ZodObject<{
1473
+ approved: z.ZodBoolean;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ approved: boolean;
1476
+ }, {
1477
+ approved: boolean;
1478
+ }>;
1479
+ evalDenyResultSchema: z.ZodUndefined;
1480
+ precheckAllowResultSchema: z.ZodUndefined;
1481
+ precheckDenyResultSchema: z.ZodUndefined;
1482
+ commitParamsSchema: z.ZodUndefined;
1483
+ commitAllowResultSchema: z.ZodUndefined;
1484
+ commitDenyResultSchema: z.ZodUndefined;
1485
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1486
+ actionType: z.ZodString;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ actionType: string;
1489
+ }, {
1490
+ actionType: string;
1491
+ }>, z.ZodUndefined, z.ZodObject<{
1492
+ approved: z.ZodBoolean;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ approved: boolean;
1495
+ }, {
1496
+ approved: boolean;
1497
+ }>, z.ZodUndefined>;
1498
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1499
+ actionType: z.ZodString;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ actionType: string;
1502
+ }, {
1503
+ actionType: string;
1504
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1505
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1506
+ };
1507
+ };
1508
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
1509
+ export declare const testPrecheckNoReturn: () => import("..").VincentAbility<z.ZodObject<{
1510
+ action: z.ZodString;
1511
+ target: z.ZodString;
1512
+ amount: z.ZodOptional<z.ZodNumber>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ action: string;
1515
+ target: string;
1516
+ amount?: number | undefined;
1517
+ }, {
1518
+ action: string;
1519
+ target: string;
1520
+ amount?: number | undefined;
1521
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
1522
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1523
+ actionType: z.ZodString;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ actionType: string;
1526
+ }, {
1527
+ actionType: string;
1528
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1529
+ approved: z.ZodBoolean;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ approved: boolean;
1532
+ }, {
1533
+ approved: boolean;
1534
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1535
+ actionType: z.ZodString;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ actionType: string;
1538
+ }, {
1539
+ actionType: string;
1540
+ }>, z.ZodUndefined, z.ZodObject<{
1541
+ approved: z.ZodBoolean;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ approved: boolean;
1544
+ }, {
1545
+ approved: boolean;
1546
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1547
+ actionType: z.ZodString;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ actionType: string;
1550
+ }, {
1551
+ actionType: string;
1552
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1553
+ ipfsCid: "j298jhodf9024j4jfg";
1554
+ abilityParameterMappings: Partial<{
1555
+ action: "actionType";
1556
+ target: "actionType";
1557
+ amount?: "actionType" | undefined;
1558
+ }>;
1559
+ vincentAbilityApiVersion: string;
1560
+ __schemaTypes: {
1561
+ policyAbilityParamsSchema: z.ZodObject<{
1562
+ actionType: z.ZodString;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ actionType: string;
1565
+ }, {
1566
+ actionType: string;
1567
+ }>;
1568
+ userParamsSchema: z.ZodUndefined;
1569
+ evalAllowResultSchema: z.ZodObject<{
1570
+ approved: z.ZodBoolean;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ approved: boolean;
1573
+ }, {
1574
+ approved: boolean;
1575
+ }>;
1576
+ evalDenyResultSchema: z.ZodUndefined;
1577
+ precheckAllowResultSchema: z.ZodUndefined;
1578
+ precheckDenyResultSchema: z.ZodUndefined;
1579
+ commitParamsSchema: z.ZodUndefined;
1580
+ commitAllowResultSchema: z.ZodUndefined;
1581
+ commitDenyResultSchema: z.ZodUndefined;
1582
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1583
+ actionType: z.ZodString;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ actionType: string;
1586
+ }, {
1587
+ actionType: string;
1588
+ }>, z.ZodUndefined, z.ZodObject<{
1589
+ approved: z.ZodBoolean;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ approved: boolean;
1592
+ }, {
1593
+ approved: boolean;
1594
+ }>, z.ZodUndefined>;
1595
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1596
+ actionType: z.ZodString;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ actionType: string;
1599
+ }, {
1600
+ actionType: string;
1601
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1602
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1603
+ };
1604
+ }], "@lit-protocol/test-policy@1.0.0">, {
1605
+ "@lit-protocol/test-policy@1.0.0": {
1606
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1607
+ actionType: z.ZodString;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ actionType: string;
1610
+ }, {
1611
+ actionType: string;
1612
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1613
+ approved: z.ZodBoolean;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ approved: boolean;
1616
+ }, {
1617
+ approved: boolean;
1618
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1619
+ actionType: z.ZodString;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ actionType: string;
1622
+ }, {
1623
+ actionType: string;
1624
+ }>, z.ZodUndefined, z.ZodObject<{
1625
+ approved: z.ZodBoolean;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ approved: boolean;
1628
+ }, {
1629
+ approved: boolean;
1630
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1631
+ actionType: z.ZodString;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ actionType: string;
1634
+ }, {
1635
+ actionType: string;
1636
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1637
+ ipfsCid: "j298jhodf9024j4jfg";
1638
+ abilityParameterMappings: Partial<{
1639
+ action: "actionType";
1640
+ target: "actionType";
1641
+ amount?: "actionType" | undefined;
1642
+ }>;
1643
+ vincentAbilityApiVersion: string;
1644
+ __schemaTypes: {
1645
+ policyAbilityParamsSchema: z.ZodObject<{
1646
+ actionType: z.ZodString;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ actionType: string;
1649
+ }, {
1650
+ actionType: string;
1651
+ }>;
1652
+ userParamsSchema: z.ZodUndefined;
1653
+ evalAllowResultSchema: z.ZodObject<{
1654
+ approved: z.ZodBoolean;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ approved: boolean;
1657
+ }, {
1658
+ approved: boolean;
1659
+ }>;
1660
+ evalDenyResultSchema: z.ZodUndefined;
1661
+ precheckAllowResultSchema: z.ZodUndefined;
1662
+ precheckDenyResultSchema: z.ZodUndefined;
1663
+ commitParamsSchema: z.ZodUndefined;
1664
+ commitAllowResultSchema: z.ZodUndefined;
1665
+ commitDenyResultSchema: z.ZodUndefined;
1666
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1667
+ actionType: z.ZodString;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ actionType: string;
1670
+ }, {
1671
+ actionType: string;
1672
+ }>, z.ZodUndefined, z.ZodObject<{
1673
+ approved: z.ZodBoolean;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ approved: boolean;
1676
+ }, {
1677
+ approved: boolean;
1678
+ }>, z.ZodUndefined>;
1679
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1680
+ actionType: z.ZodString;
1681
+ }, "strip", z.ZodTypeAny, {
1682
+ actionType: string;
1683
+ }, {
1684
+ actionType: string;
1685
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1686
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1687
+ };
1688
+ };
1689
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
1690
+ export declare const testExecuteNoReturn: () => import("..").VincentAbility<z.ZodObject<{
1691
+ action: z.ZodString;
1692
+ target: z.ZodString;
1693
+ amount: z.ZodOptional<z.ZodNumber>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ action: string;
1696
+ target: string;
1697
+ amount?: number | undefined;
1698
+ }, {
1699
+ action: string;
1700
+ target: string;
1701
+ amount?: number | undefined;
1702
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
1703
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1704
+ actionType: z.ZodString;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ actionType: string;
1707
+ }, {
1708
+ actionType: string;
1709
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1710
+ approved: z.ZodBoolean;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ approved: boolean;
1713
+ }, {
1714
+ approved: boolean;
1715
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1716
+ actionType: z.ZodString;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ actionType: string;
1719
+ }, {
1720
+ actionType: string;
1721
+ }>, z.ZodUndefined, z.ZodObject<{
1722
+ approved: z.ZodBoolean;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ approved: boolean;
1725
+ }, {
1726
+ approved: boolean;
1727
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1728
+ actionType: z.ZodString;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ actionType: string;
1731
+ }, {
1732
+ actionType: string;
1733
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1734
+ ipfsCid: "j298jhodf9024j4jfg";
1735
+ abilityParameterMappings: Partial<{
1736
+ action: "actionType";
1737
+ target: "actionType";
1738
+ amount?: "actionType" | undefined;
1739
+ }>;
1740
+ vincentAbilityApiVersion: string;
1741
+ __schemaTypes: {
1742
+ policyAbilityParamsSchema: z.ZodObject<{
1743
+ actionType: z.ZodString;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ actionType: string;
1746
+ }, {
1747
+ actionType: string;
1748
+ }>;
1749
+ userParamsSchema: z.ZodUndefined;
1750
+ evalAllowResultSchema: z.ZodObject<{
1751
+ approved: z.ZodBoolean;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ approved: boolean;
1754
+ }, {
1755
+ approved: boolean;
1756
+ }>;
1757
+ evalDenyResultSchema: z.ZodUndefined;
1758
+ precheckAllowResultSchema: z.ZodUndefined;
1759
+ precheckDenyResultSchema: z.ZodUndefined;
1760
+ commitParamsSchema: z.ZodUndefined;
1761
+ commitAllowResultSchema: z.ZodUndefined;
1762
+ commitDenyResultSchema: z.ZodUndefined;
1763
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1764
+ actionType: z.ZodString;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ actionType: string;
1767
+ }, {
1768
+ actionType: string;
1769
+ }>, z.ZodUndefined, z.ZodObject<{
1770
+ approved: z.ZodBoolean;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ approved: boolean;
1773
+ }, {
1774
+ approved: boolean;
1775
+ }>, z.ZodUndefined>;
1776
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1777
+ actionType: z.ZodString;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ actionType: string;
1780
+ }, {
1781
+ actionType: string;
1782
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1783
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1784
+ };
1785
+ }], "@lit-protocol/test-policy@1.0.0">, {
1786
+ "@lit-protocol/test-policy@1.0.0": {
1787
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1788
+ actionType: z.ZodString;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ actionType: string;
1791
+ }, {
1792
+ actionType: string;
1793
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1794
+ approved: z.ZodBoolean;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ approved: boolean;
1797
+ }, {
1798
+ approved: boolean;
1799
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1800
+ actionType: z.ZodString;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ actionType: string;
1803
+ }, {
1804
+ actionType: string;
1805
+ }>, z.ZodUndefined, z.ZodObject<{
1806
+ approved: z.ZodBoolean;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ approved: boolean;
1809
+ }, {
1810
+ approved: boolean;
1811
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1812
+ actionType: z.ZodString;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ actionType: string;
1815
+ }, {
1816
+ actionType: string;
1817
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1818
+ ipfsCid: "j298jhodf9024j4jfg";
1819
+ abilityParameterMappings: Partial<{
1820
+ action: "actionType";
1821
+ target: "actionType";
1822
+ amount?: "actionType" | undefined;
1823
+ }>;
1824
+ vincentAbilityApiVersion: string;
1825
+ __schemaTypes: {
1826
+ policyAbilityParamsSchema: z.ZodObject<{
1827
+ actionType: z.ZodString;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ actionType: string;
1830
+ }, {
1831
+ actionType: string;
1832
+ }>;
1833
+ userParamsSchema: z.ZodUndefined;
1834
+ evalAllowResultSchema: z.ZodObject<{
1835
+ approved: z.ZodBoolean;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ approved: boolean;
1838
+ }, {
1839
+ approved: boolean;
1840
+ }>;
1841
+ evalDenyResultSchema: z.ZodUndefined;
1842
+ precheckAllowResultSchema: z.ZodUndefined;
1843
+ precheckDenyResultSchema: z.ZodUndefined;
1844
+ commitParamsSchema: z.ZodUndefined;
1845
+ commitAllowResultSchema: z.ZodUndefined;
1846
+ commitDenyResultSchema: z.ZodUndefined;
1847
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1848
+ actionType: z.ZodString;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ actionType: string;
1851
+ }, {
1852
+ actionType: string;
1853
+ }>, z.ZodUndefined, z.ZodObject<{
1854
+ approved: z.ZodBoolean;
1855
+ }, "strip", z.ZodTypeAny, {
1856
+ approved: boolean;
1857
+ }, {
1858
+ approved: boolean;
1859
+ }>, z.ZodUndefined>;
1860
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1861
+ actionType: z.ZodString;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ actionType: string;
1864
+ }, {
1865
+ actionType: string;
1866
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1867
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1868
+ };
1869
+ };
1870
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
1871
+ export declare const testPrecheckRawReturn: () => import("..").VincentAbility<z.ZodObject<{
1872
+ action: z.ZodString;
1873
+ target: z.ZodString;
1874
+ amount: z.ZodOptional<z.ZodNumber>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ action: string;
1877
+ target: string;
1878
+ amount?: number | undefined;
1879
+ }, {
1880
+ action: string;
1881
+ target: string;
1882
+ amount?: number | undefined;
1883
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
1884
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1885
+ actionType: z.ZodString;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ actionType: string;
1888
+ }, {
1889
+ actionType: string;
1890
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1891
+ approved: z.ZodBoolean;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ approved: boolean;
1894
+ }, {
1895
+ approved: boolean;
1896
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1897
+ actionType: z.ZodString;
1898
+ }, "strip", z.ZodTypeAny, {
1899
+ actionType: string;
1900
+ }, {
1901
+ actionType: string;
1902
+ }>, z.ZodUndefined, z.ZodObject<{
1903
+ approved: z.ZodBoolean;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ approved: boolean;
1906
+ }, {
1907
+ approved: boolean;
1908
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1909
+ actionType: z.ZodString;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ actionType: string;
1912
+ }, {
1913
+ actionType: string;
1914
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1915
+ ipfsCid: "j298jhodf9024j4jfg";
1916
+ abilityParameterMappings: Partial<{
1917
+ action: "actionType";
1918
+ target: "actionType";
1919
+ amount?: "actionType" | undefined;
1920
+ }>;
1921
+ vincentAbilityApiVersion: string;
1922
+ __schemaTypes: {
1923
+ policyAbilityParamsSchema: z.ZodObject<{
1924
+ actionType: z.ZodString;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ actionType: string;
1927
+ }, {
1928
+ actionType: string;
1929
+ }>;
1930
+ userParamsSchema: z.ZodUndefined;
1931
+ evalAllowResultSchema: z.ZodObject<{
1932
+ approved: z.ZodBoolean;
1933
+ }, "strip", z.ZodTypeAny, {
1934
+ approved: boolean;
1935
+ }, {
1936
+ approved: boolean;
1937
+ }>;
1938
+ evalDenyResultSchema: z.ZodUndefined;
1939
+ precheckAllowResultSchema: z.ZodUndefined;
1940
+ precheckDenyResultSchema: z.ZodUndefined;
1941
+ commitParamsSchema: z.ZodUndefined;
1942
+ commitAllowResultSchema: z.ZodUndefined;
1943
+ commitDenyResultSchema: z.ZodUndefined;
1944
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1945
+ actionType: z.ZodString;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ actionType: string;
1948
+ }, {
1949
+ actionType: string;
1950
+ }>, z.ZodUndefined, z.ZodObject<{
1951
+ approved: z.ZodBoolean;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ approved: boolean;
1954
+ }, {
1955
+ approved: boolean;
1956
+ }>, z.ZodUndefined>;
1957
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1958
+ actionType: z.ZodString;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ actionType: string;
1961
+ }, {
1962
+ actionType: string;
1963
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1964
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
1965
+ };
1966
+ }], "@lit-protocol/test-policy@1.0.0">, {
1967
+ "@lit-protocol/test-policy@1.0.0": {
1968
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
1969
+ actionType: z.ZodString;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ actionType: string;
1972
+ }, {
1973
+ actionType: string;
1974
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1975
+ approved: z.ZodBoolean;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ approved: boolean;
1978
+ }, {
1979
+ approved: boolean;
1980
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1981
+ actionType: z.ZodString;
1982
+ }, "strip", z.ZodTypeAny, {
1983
+ actionType: string;
1984
+ }, {
1985
+ actionType: string;
1986
+ }>, z.ZodUndefined, z.ZodObject<{
1987
+ approved: z.ZodBoolean;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ approved: boolean;
1990
+ }, {
1991
+ approved: boolean;
1992
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
1993
+ actionType: z.ZodString;
1994
+ }, "strip", z.ZodTypeAny, {
1995
+ actionType: string;
1996
+ }, {
1997
+ actionType: string;
1998
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1999
+ ipfsCid: "j298jhodf9024j4jfg";
2000
+ abilityParameterMappings: Partial<{
2001
+ action: "actionType";
2002
+ target: "actionType";
2003
+ amount?: "actionType" | undefined;
2004
+ }>;
2005
+ vincentAbilityApiVersion: string;
2006
+ __schemaTypes: {
2007
+ policyAbilityParamsSchema: z.ZodObject<{
2008
+ actionType: z.ZodString;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ actionType: string;
2011
+ }, {
2012
+ actionType: string;
2013
+ }>;
2014
+ userParamsSchema: z.ZodUndefined;
2015
+ evalAllowResultSchema: z.ZodObject<{
2016
+ approved: z.ZodBoolean;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ approved: boolean;
2019
+ }, {
2020
+ approved: boolean;
2021
+ }>;
2022
+ evalDenyResultSchema: z.ZodUndefined;
2023
+ precheckAllowResultSchema: z.ZodUndefined;
2024
+ precheckDenyResultSchema: z.ZodUndefined;
2025
+ commitParamsSchema: z.ZodUndefined;
2026
+ commitAllowResultSchema: z.ZodUndefined;
2027
+ commitDenyResultSchema: z.ZodUndefined;
2028
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2029
+ actionType: z.ZodString;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ actionType: string;
2032
+ }, {
2033
+ actionType: string;
2034
+ }>, z.ZodUndefined, z.ZodObject<{
2035
+ approved: z.ZodBoolean;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ approved: boolean;
2038
+ }, {
2039
+ approved: boolean;
2040
+ }>, z.ZodUndefined>;
2041
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2042
+ actionType: z.ZodString;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ actionType: string;
2045
+ }, {
2046
+ actionType: string;
2047
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2048
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2049
+ };
2050
+ };
2051
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
2052
+ export declare const testExecuteRawReturn: () => import("..").VincentAbility<z.ZodObject<{
2053
+ action: z.ZodString;
2054
+ target: z.ZodString;
2055
+ amount: z.ZodOptional<z.ZodNumber>;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ action: string;
2058
+ target: string;
2059
+ amount?: number | undefined;
2060
+ }, {
2061
+ action: string;
2062
+ target: string;
2063
+ amount?: number | undefined;
2064
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
2065
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2066
+ actionType: z.ZodString;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ actionType: string;
2069
+ }, {
2070
+ actionType: string;
2071
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2072
+ approved: z.ZodBoolean;
2073
+ }, "strip", z.ZodTypeAny, {
2074
+ approved: boolean;
2075
+ }, {
2076
+ approved: boolean;
2077
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2078
+ actionType: z.ZodString;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ actionType: string;
2081
+ }, {
2082
+ actionType: string;
2083
+ }>, z.ZodUndefined, z.ZodObject<{
2084
+ approved: z.ZodBoolean;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ approved: boolean;
2087
+ }, {
2088
+ approved: boolean;
2089
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2090
+ actionType: z.ZodString;
2091
+ }, "strip", z.ZodTypeAny, {
2092
+ actionType: string;
2093
+ }, {
2094
+ actionType: string;
2095
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2096
+ ipfsCid: "j298jhodf9024j4jfg";
2097
+ abilityParameterMappings: Partial<{
2098
+ action: "actionType";
2099
+ target: "actionType";
2100
+ amount?: "actionType" | undefined;
2101
+ }>;
2102
+ vincentAbilityApiVersion: string;
2103
+ __schemaTypes: {
2104
+ policyAbilityParamsSchema: z.ZodObject<{
2105
+ actionType: z.ZodString;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ actionType: string;
2108
+ }, {
2109
+ actionType: string;
2110
+ }>;
2111
+ userParamsSchema: z.ZodUndefined;
2112
+ evalAllowResultSchema: z.ZodObject<{
2113
+ approved: z.ZodBoolean;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ approved: boolean;
2116
+ }, {
2117
+ approved: boolean;
2118
+ }>;
2119
+ evalDenyResultSchema: z.ZodUndefined;
2120
+ precheckAllowResultSchema: z.ZodUndefined;
2121
+ precheckDenyResultSchema: z.ZodUndefined;
2122
+ commitParamsSchema: z.ZodUndefined;
2123
+ commitAllowResultSchema: z.ZodUndefined;
2124
+ commitDenyResultSchema: z.ZodUndefined;
2125
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2126
+ actionType: z.ZodString;
2127
+ }, "strip", z.ZodTypeAny, {
2128
+ actionType: string;
2129
+ }, {
2130
+ actionType: string;
2131
+ }>, z.ZodUndefined, z.ZodObject<{
2132
+ approved: z.ZodBoolean;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ approved: boolean;
2135
+ }, {
2136
+ approved: boolean;
2137
+ }>, z.ZodUndefined>;
2138
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2139
+ actionType: z.ZodString;
2140
+ }, "strip", z.ZodTypeAny, {
2141
+ actionType: string;
2142
+ }, {
2143
+ actionType: string;
2144
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2145
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2146
+ };
2147
+ }], "@lit-protocol/test-policy@1.0.0">, {
2148
+ "@lit-protocol/test-policy@1.0.0": {
2149
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2150
+ actionType: z.ZodString;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ actionType: string;
2153
+ }, {
2154
+ actionType: string;
2155
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2156
+ approved: z.ZodBoolean;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ approved: boolean;
2159
+ }, {
2160
+ approved: boolean;
2161
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2162
+ actionType: z.ZodString;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ actionType: string;
2165
+ }, {
2166
+ actionType: string;
2167
+ }>, z.ZodUndefined, z.ZodObject<{
2168
+ approved: z.ZodBoolean;
2169
+ }, "strip", z.ZodTypeAny, {
2170
+ approved: boolean;
2171
+ }, {
2172
+ approved: boolean;
2173
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2174
+ actionType: z.ZodString;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ actionType: string;
2177
+ }, {
2178
+ actionType: string;
2179
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2180
+ ipfsCid: "j298jhodf9024j4jfg";
2181
+ abilityParameterMappings: Partial<{
2182
+ action: "actionType";
2183
+ target: "actionType";
2184
+ amount?: "actionType" | undefined;
2185
+ }>;
2186
+ vincentAbilityApiVersion: string;
2187
+ __schemaTypes: {
2188
+ policyAbilityParamsSchema: z.ZodObject<{
2189
+ actionType: z.ZodString;
2190
+ }, "strip", z.ZodTypeAny, {
2191
+ actionType: string;
2192
+ }, {
2193
+ actionType: string;
2194
+ }>;
2195
+ userParamsSchema: z.ZodUndefined;
2196
+ evalAllowResultSchema: z.ZodObject<{
2197
+ approved: z.ZodBoolean;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ approved: boolean;
2200
+ }, {
2201
+ approved: boolean;
2202
+ }>;
2203
+ evalDenyResultSchema: z.ZodUndefined;
2204
+ precheckAllowResultSchema: z.ZodUndefined;
2205
+ precheckDenyResultSchema: z.ZodUndefined;
2206
+ commitParamsSchema: z.ZodUndefined;
2207
+ commitAllowResultSchema: z.ZodUndefined;
2208
+ commitDenyResultSchema: z.ZodUndefined;
2209
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2210
+ actionType: z.ZodString;
2211
+ }, "strip", z.ZodTypeAny, {
2212
+ actionType: string;
2213
+ }, {
2214
+ actionType: string;
2215
+ }>, z.ZodUndefined, z.ZodObject<{
2216
+ approved: z.ZodBoolean;
2217
+ }, "strip", z.ZodTypeAny, {
2218
+ approved: boolean;
2219
+ }, {
2220
+ approved: boolean;
2221
+ }>, z.ZodUndefined>;
2222
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2223
+ actionType: z.ZodString;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ actionType: string;
2226
+ }, {
2227
+ actionType: string;
2228
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2229
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2230
+ };
2231
+ };
2232
+ }, z.ZodObject<{
2233
+ success: z.ZodBoolean;
2234
+ message: z.ZodString;
2235
+ }, "strip", z.ZodTypeAny, {
2236
+ message: string;
2237
+ success: boolean;
2238
+ }, {
2239
+ message: string;
2240
+ success: boolean;
2241
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
2242
+ export declare const testExecuteWrongTypeReturn: () => import("..").VincentAbility<z.ZodObject<{
2243
+ action: z.ZodString;
2244
+ target: z.ZodString;
2245
+ amount: z.ZodOptional<z.ZodNumber>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ action: string;
2248
+ target: string;
2249
+ amount?: number | undefined;
2250
+ }, {
2251
+ action: string;
2252
+ target: string;
2253
+ amount?: number | undefined;
2254
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
2255
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2256
+ actionType: z.ZodString;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ actionType: string;
2259
+ }, {
2260
+ actionType: string;
2261
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2262
+ approved: z.ZodBoolean;
2263
+ }, "strip", z.ZodTypeAny, {
2264
+ approved: boolean;
2265
+ }, {
2266
+ approved: boolean;
2267
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2268
+ actionType: z.ZodString;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ actionType: string;
2271
+ }, {
2272
+ actionType: string;
2273
+ }>, z.ZodUndefined, z.ZodObject<{
2274
+ approved: z.ZodBoolean;
2275
+ }, "strip", z.ZodTypeAny, {
2276
+ approved: boolean;
2277
+ }, {
2278
+ approved: boolean;
2279
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2280
+ actionType: z.ZodString;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ actionType: string;
2283
+ }, {
2284
+ actionType: string;
2285
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2286
+ ipfsCid: "j298jhodf9024j4jfg";
2287
+ abilityParameterMappings: Partial<{
2288
+ action: "actionType";
2289
+ target: "actionType";
2290
+ amount?: "actionType" | undefined;
2291
+ }>;
2292
+ vincentAbilityApiVersion: string;
2293
+ __schemaTypes: {
2294
+ policyAbilityParamsSchema: z.ZodObject<{
2295
+ actionType: z.ZodString;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ actionType: string;
2298
+ }, {
2299
+ actionType: string;
2300
+ }>;
2301
+ userParamsSchema: z.ZodUndefined;
2302
+ evalAllowResultSchema: z.ZodObject<{
2303
+ approved: z.ZodBoolean;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ approved: boolean;
2306
+ }, {
2307
+ approved: boolean;
2308
+ }>;
2309
+ evalDenyResultSchema: z.ZodUndefined;
2310
+ precheckAllowResultSchema: z.ZodUndefined;
2311
+ precheckDenyResultSchema: z.ZodUndefined;
2312
+ commitParamsSchema: z.ZodUndefined;
2313
+ commitAllowResultSchema: z.ZodUndefined;
2314
+ commitDenyResultSchema: z.ZodUndefined;
2315
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2316
+ actionType: z.ZodString;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ actionType: string;
2319
+ }, {
2320
+ actionType: string;
2321
+ }>, z.ZodUndefined, z.ZodObject<{
2322
+ approved: z.ZodBoolean;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ approved: boolean;
2325
+ }, {
2326
+ approved: boolean;
2327
+ }>, z.ZodUndefined>;
2328
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2329
+ actionType: z.ZodString;
2330
+ }, "strip", z.ZodTypeAny, {
2331
+ actionType: string;
2332
+ }, {
2333
+ actionType: string;
2334
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2335
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2336
+ };
2337
+ }], "@lit-protocol/test-policy@1.0.0">, {
2338
+ "@lit-protocol/test-policy@1.0.0": {
2339
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2340
+ actionType: z.ZodString;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ actionType: string;
2343
+ }, {
2344
+ actionType: string;
2345
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2346
+ approved: z.ZodBoolean;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ approved: boolean;
2349
+ }, {
2350
+ approved: boolean;
2351
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2352
+ actionType: z.ZodString;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ actionType: string;
2355
+ }, {
2356
+ actionType: string;
2357
+ }>, z.ZodUndefined, z.ZodObject<{
2358
+ approved: z.ZodBoolean;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ approved: boolean;
2361
+ }, {
2362
+ approved: boolean;
2363
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2364
+ actionType: z.ZodString;
2365
+ }, "strip", z.ZodTypeAny, {
2366
+ actionType: string;
2367
+ }, {
2368
+ actionType: string;
2369
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2370
+ ipfsCid: "j298jhodf9024j4jfg";
2371
+ abilityParameterMappings: Partial<{
2372
+ action: "actionType";
2373
+ target: "actionType";
2374
+ amount?: "actionType" | undefined;
2375
+ }>;
2376
+ vincentAbilityApiVersion: string;
2377
+ __schemaTypes: {
2378
+ policyAbilityParamsSchema: z.ZodObject<{
2379
+ actionType: z.ZodString;
2380
+ }, "strip", z.ZodTypeAny, {
2381
+ actionType: string;
2382
+ }, {
2383
+ actionType: string;
2384
+ }>;
2385
+ userParamsSchema: z.ZodUndefined;
2386
+ evalAllowResultSchema: z.ZodObject<{
2387
+ approved: z.ZodBoolean;
2388
+ }, "strip", z.ZodTypeAny, {
2389
+ approved: boolean;
2390
+ }, {
2391
+ approved: boolean;
2392
+ }>;
2393
+ evalDenyResultSchema: z.ZodUndefined;
2394
+ precheckAllowResultSchema: z.ZodUndefined;
2395
+ precheckDenyResultSchema: z.ZodUndefined;
2396
+ commitParamsSchema: z.ZodUndefined;
2397
+ commitAllowResultSchema: z.ZodUndefined;
2398
+ commitDenyResultSchema: z.ZodUndefined;
2399
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2400
+ actionType: z.ZodString;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ actionType: string;
2403
+ }, {
2404
+ actionType: string;
2405
+ }>, z.ZodUndefined, z.ZodObject<{
2406
+ approved: z.ZodBoolean;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ approved: boolean;
2409
+ }, {
2410
+ approved: boolean;
2411
+ }>, z.ZodUndefined>;
2412
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2413
+ actionType: z.ZodString;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ actionType: string;
2416
+ }, {
2417
+ actionType: string;
2418
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2419
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2420
+ };
2421
+ };
2422
+ }, z.ZodObject<{
2423
+ success: z.ZodBoolean;
2424
+ message: z.ZodString;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ message: string;
2427
+ success: boolean;
2428
+ }, {
2429
+ message: string;
2430
+ success: boolean;
2431
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
2432
+ export declare const testPrecheckWrongSchema: () => import("..").VincentAbility<z.ZodObject<{
2433
+ action: z.ZodString;
2434
+ target: z.ZodString;
2435
+ amount: z.ZodOptional<z.ZodNumber>;
2436
+ }, "strip", z.ZodTypeAny, {
2437
+ action: string;
2438
+ target: string;
2439
+ amount?: number | undefined;
2440
+ }, {
2441
+ action: string;
2442
+ target: string;
2443
+ amount?: number | undefined;
2444
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
2445
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2446
+ actionType: z.ZodString;
2447
+ }, "strip", z.ZodTypeAny, {
2448
+ actionType: string;
2449
+ }, {
2450
+ actionType: string;
2451
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2452
+ approved: z.ZodBoolean;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ approved: boolean;
2455
+ }, {
2456
+ approved: boolean;
2457
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2458
+ actionType: z.ZodString;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ actionType: string;
2461
+ }, {
2462
+ actionType: string;
2463
+ }>, z.ZodUndefined, z.ZodObject<{
2464
+ approved: z.ZodBoolean;
2465
+ }, "strip", z.ZodTypeAny, {
2466
+ approved: boolean;
2467
+ }, {
2468
+ approved: boolean;
2469
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2470
+ actionType: z.ZodString;
2471
+ }, "strip", z.ZodTypeAny, {
2472
+ actionType: string;
2473
+ }, {
2474
+ actionType: string;
2475
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2476
+ ipfsCid: "j298jhodf9024j4jfg";
2477
+ abilityParameterMappings: Partial<{
2478
+ action: "actionType";
2479
+ target: "actionType";
2480
+ amount?: "actionType" | undefined;
2481
+ }>;
2482
+ vincentAbilityApiVersion: string;
2483
+ __schemaTypes: {
2484
+ policyAbilityParamsSchema: z.ZodObject<{
2485
+ actionType: z.ZodString;
2486
+ }, "strip", z.ZodTypeAny, {
2487
+ actionType: string;
2488
+ }, {
2489
+ actionType: string;
2490
+ }>;
2491
+ userParamsSchema: z.ZodUndefined;
2492
+ evalAllowResultSchema: z.ZodObject<{
2493
+ approved: z.ZodBoolean;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ approved: boolean;
2496
+ }, {
2497
+ approved: boolean;
2498
+ }>;
2499
+ evalDenyResultSchema: z.ZodUndefined;
2500
+ precheckAllowResultSchema: z.ZodUndefined;
2501
+ precheckDenyResultSchema: z.ZodUndefined;
2502
+ commitParamsSchema: z.ZodUndefined;
2503
+ commitAllowResultSchema: z.ZodUndefined;
2504
+ commitDenyResultSchema: z.ZodUndefined;
2505
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2506
+ actionType: z.ZodString;
2507
+ }, "strip", z.ZodTypeAny, {
2508
+ actionType: string;
2509
+ }, {
2510
+ actionType: string;
2511
+ }>, z.ZodUndefined, z.ZodObject<{
2512
+ approved: z.ZodBoolean;
2513
+ }, "strip", z.ZodTypeAny, {
2514
+ approved: boolean;
2515
+ }, {
2516
+ approved: boolean;
2517
+ }>, z.ZodUndefined>;
2518
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2519
+ actionType: z.ZodString;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ actionType: string;
2522
+ }, {
2523
+ actionType: string;
2524
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2525
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2526
+ };
2527
+ }], "@lit-protocol/test-policy@1.0.0">, {
2528
+ "@lit-protocol/test-policy@1.0.0": {
2529
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2530
+ actionType: z.ZodString;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ actionType: string;
2533
+ }, {
2534
+ actionType: string;
2535
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2536
+ approved: z.ZodBoolean;
2537
+ }, "strip", z.ZodTypeAny, {
2538
+ approved: boolean;
2539
+ }, {
2540
+ approved: boolean;
2541
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2542
+ actionType: z.ZodString;
2543
+ }, "strip", z.ZodTypeAny, {
2544
+ actionType: string;
2545
+ }, {
2546
+ actionType: string;
2547
+ }>, z.ZodUndefined, z.ZodObject<{
2548
+ approved: z.ZodBoolean;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ approved: boolean;
2551
+ }, {
2552
+ approved: boolean;
2553
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2554
+ actionType: z.ZodString;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ actionType: string;
2557
+ }, {
2558
+ actionType: string;
2559
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2560
+ ipfsCid: "j298jhodf9024j4jfg";
2561
+ abilityParameterMappings: Partial<{
2562
+ action: "actionType";
2563
+ target: "actionType";
2564
+ amount?: "actionType" | undefined;
2565
+ }>;
2566
+ vincentAbilityApiVersion: string;
2567
+ __schemaTypes: {
2568
+ policyAbilityParamsSchema: z.ZodObject<{
2569
+ actionType: z.ZodString;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ actionType: string;
2572
+ }, {
2573
+ actionType: string;
2574
+ }>;
2575
+ userParamsSchema: z.ZodUndefined;
2576
+ evalAllowResultSchema: z.ZodObject<{
2577
+ approved: z.ZodBoolean;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ approved: boolean;
2580
+ }, {
2581
+ approved: boolean;
2582
+ }>;
2583
+ evalDenyResultSchema: z.ZodUndefined;
2584
+ precheckAllowResultSchema: z.ZodUndefined;
2585
+ precheckDenyResultSchema: z.ZodUndefined;
2586
+ commitParamsSchema: z.ZodUndefined;
2587
+ commitAllowResultSchema: z.ZodUndefined;
2588
+ commitDenyResultSchema: z.ZodUndefined;
2589
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2590
+ actionType: z.ZodString;
2591
+ }, "strip", z.ZodTypeAny, {
2592
+ actionType: string;
2593
+ }, {
2594
+ actionType: string;
2595
+ }>, z.ZodUndefined, z.ZodObject<{
2596
+ approved: z.ZodBoolean;
2597
+ }, "strip", z.ZodTypeAny, {
2598
+ approved: boolean;
2599
+ }, {
2600
+ approved: boolean;
2601
+ }>, z.ZodUndefined>;
2602
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2603
+ actionType: z.ZodString;
2604
+ }, "strip", z.ZodTypeAny, {
2605
+ actionType: string;
2606
+ }, {
2607
+ actionType: string;
2608
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2609
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2610
+ };
2611
+ };
2612
+ }, z.ZodObject<{
2613
+ result: z.ZodString;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ result: string;
2616
+ }, {
2617
+ result: string;
2618
+ }>, z.ZodUndefined, z.ZodObject<{
2619
+ valid: z.ZodBoolean;
2620
+ }, "strip", z.ZodTypeAny, {
2621
+ valid: boolean;
2622
+ }, {
2623
+ valid: boolean;
2624
+ }>, z.ZodUndefined>;
2625
+ export declare const testExecuteWrongSchema: () => import("..").VincentAbility<z.ZodObject<{
2626
+ action: z.ZodString;
2627
+ target: z.ZodString;
2628
+ amount: z.ZodOptional<z.ZodNumber>;
2629
+ }, "strip", z.ZodTypeAny, {
2630
+ action: string;
2631
+ target: string;
2632
+ amount?: number | undefined;
2633
+ }, {
2634
+ action: string;
2635
+ target: string;
2636
+ amount?: number | undefined;
2637
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
2638
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2639
+ actionType: z.ZodString;
2640
+ }, "strip", z.ZodTypeAny, {
2641
+ actionType: string;
2642
+ }, {
2643
+ actionType: string;
2644
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2645
+ approved: z.ZodBoolean;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ approved: boolean;
2648
+ }, {
2649
+ approved: boolean;
2650
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2651
+ actionType: z.ZodString;
2652
+ }, "strip", z.ZodTypeAny, {
2653
+ actionType: string;
2654
+ }, {
2655
+ actionType: string;
2656
+ }>, z.ZodUndefined, z.ZodObject<{
2657
+ approved: z.ZodBoolean;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ approved: boolean;
2660
+ }, {
2661
+ approved: boolean;
2662
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2663
+ actionType: z.ZodString;
2664
+ }, "strip", z.ZodTypeAny, {
2665
+ actionType: string;
2666
+ }, {
2667
+ actionType: string;
2668
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2669
+ ipfsCid: "j298jhodf9024j4jfg";
2670
+ abilityParameterMappings: Partial<{
2671
+ action: "actionType";
2672
+ target: "actionType";
2673
+ amount?: "actionType" | undefined;
2674
+ }>;
2675
+ vincentAbilityApiVersion: string;
2676
+ __schemaTypes: {
2677
+ policyAbilityParamsSchema: z.ZodObject<{
2678
+ actionType: z.ZodString;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ actionType: string;
2681
+ }, {
2682
+ actionType: string;
2683
+ }>;
2684
+ userParamsSchema: z.ZodUndefined;
2685
+ evalAllowResultSchema: z.ZodObject<{
2686
+ approved: z.ZodBoolean;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ approved: boolean;
2689
+ }, {
2690
+ approved: boolean;
2691
+ }>;
2692
+ evalDenyResultSchema: z.ZodUndefined;
2693
+ precheckAllowResultSchema: z.ZodUndefined;
2694
+ precheckDenyResultSchema: z.ZodUndefined;
2695
+ commitParamsSchema: z.ZodUndefined;
2696
+ commitAllowResultSchema: z.ZodUndefined;
2697
+ commitDenyResultSchema: z.ZodUndefined;
2698
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2699
+ actionType: z.ZodString;
2700
+ }, "strip", z.ZodTypeAny, {
2701
+ actionType: string;
2702
+ }, {
2703
+ actionType: string;
2704
+ }>, z.ZodUndefined, z.ZodObject<{
2705
+ approved: z.ZodBoolean;
2706
+ }, "strip", z.ZodTypeAny, {
2707
+ approved: boolean;
2708
+ }, {
2709
+ approved: boolean;
2710
+ }>, z.ZodUndefined>;
2711
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2712
+ actionType: z.ZodString;
2713
+ }, "strip", z.ZodTypeAny, {
2714
+ actionType: string;
2715
+ }, {
2716
+ actionType: string;
2717
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2718
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2719
+ };
2720
+ }], "@lit-protocol/test-policy@1.0.0">, {
2721
+ "@lit-protocol/test-policy@1.0.0": {
2722
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2723
+ actionType: z.ZodString;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ actionType: string;
2726
+ }, {
2727
+ actionType: string;
2728
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2729
+ approved: z.ZodBoolean;
2730
+ }, "strip", z.ZodTypeAny, {
2731
+ approved: boolean;
2732
+ }, {
2733
+ approved: boolean;
2734
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2735
+ actionType: z.ZodString;
2736
+ }, "strip", z.ZodTypeAny, {
2737
+ actionType: string;
2738
+ }, {
2739
+ actionType: string;
2740
+ }>, z.ZodUndefined, z.ZodObject<{
2741
+ approved: z.ZodBoolean;
2742
+ }, "strip", z.ZodTypeAny, {
2743
+ approved: boolean;
2744
+ }, {
2745
+ approved: boolean;
2746
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2747
+ actionType: z.ZodString;
2748
+ }, "strip", z.ZodTypeAny, {
2749
+ actionType: string;
2750
+ }, {
2751
+ actionType: string;
2752
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2753
+ ipfsCid: "j298jhodf9024j4jfg";
2754
+ abilityParameterMappings: Partial<{
2755
+ action: "actionType";
2756
+ target: "actionType";
2757
+ amount?: "actionType" | undefined;
2758
+ }>;
2759
+ vincentAbilityApiVersion: string;
2760
+ __schemaTypes: {
2761
+ policyAbilityParamsSchema: z.ZodObject<{
2762
+ actionType: z.ZodString;
2763
+ }, "strip", z.ZodTypeAny, {
2764
+ actionType: string;
2765
+ }, {
2766
+ actionType: string;
2767
+ }>;
2768
+ userParamsSchema: z.ZodUndefined;
2769
+ evalAllowResultSchema: z.ZodObject<{
2770
+ approved: z.ZodBoolean;
2771
+ }, "strip", z.ZodTypeAny, {
2772
+ approved: boolean;
2773
+ }, {
2774
+ approved: boolean;
2775
+ }>;
2776
+ evalDenyResultSchema: z.ZodUndefined;
2777
+ precheckAllowResultSchema: z.ZodUndefined;
2778
+ precheckDenyResultSchema: z.ZodUndefined;
2779
+ commitParamsSchema: z.ZodUndefined;
2780
+ commitAllowResultSchema: z.ZodUndefined;
2781
+ commitDenyResultSchema: z.ZodUndefined;
2782
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2783
+ actionType: z.ZodString;
2784
+ }, "strip", z.ZodTypeAny, {
2785
+ actionType: string;
2786
+ }, {
2787
+ actionType: string;
2788
+ }>, z.ZodUndefined, z.ZodObject<{
2789
+ approved: z.ZodBoolean;
2790
+ }, "strip", z.ZodTypeAny, {
2791
+ approved: boolean;
2792
+ }, {
2793
+ approved: boolean;
2794
+ }>, z.ZodUndefined>;
2795
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2796
+ actionType: z.ZodString;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ actionType: string;
2799
+ }, {
2800
+ actionType: string;
2801
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2802
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2803
+ };
2804
+ };
2805
+ }, z.ZodObject<{
2806
+ result: z.ZodString;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ result: string;
2809
+ }, {
2810
+ result: string;
2811
+ }>, z.ZodUndefined, z.ZodObject<{
2812
+ valid: z.ZodBoolean;
2813
+ }, "strip", z.ZodTypeAny, {
2814
+ valid: boolean;
2815
+ }, {
2816
+ valid: boolean;
2817
+ }>, z.ZodUndefined>;
2818
+ export declare const testPrecheckSuccessWithFailSchema: () => import("..").VincentAbility<z.ZodObject<{
2819
+ action: z.ZodString;
2820
+ target: z.ZodString;
2821
+ amount: z.ZodOptional<z.ZodNumber>;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ action: string;
2824
+ target: string;
2825
+ amount?: number | undefined;
2826
+ }, {
2827
+ action: string;
2828
+ target: string;
2829
+ amount?: number | undefined;
2830
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
2831
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2832
+ actionType: z.ZodString;
2833
+ }, "strip", z.ZodTypeAny, {
2834
+ actionType: string;
2835
+ }, {
2836
+ actionType: string;
2837
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2838
+ approved: z.ZodBoolean;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ approved: boolean;
2841
+ }, {
2842
+ approved: boolean;
2843
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2844
+ actionType: z.ZodString;
2845
+ }, "strip", z.ZodTypeAny, {
2846
+ actionType: string;
2847
+ }, {
2848
+ actionType: string;
2849
+ }>, z.ZodUndefined, z.ZodObject<{
2850
+ approved: z.ZodBoolean;
2851
+ }, "strip", z.ZodTypeAny, {
2852
+ approved: boolean;
2853
+ }, {
2854
+ approved: boolean;
2855
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2856
+ actionType: z.ZodString;
2857
+ }, "strip", z.ZodTypeAny, {
2858
+ actionType: string;
2859
+ }, {
2860
+ actionType: string;
2861
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2862
+ ipfsCid: "j298jhodf9024j4jfg";
2863
+ abilityParameterMappings: Partial<{
2864
+ action: "actionType";
2865
+ target: "actionType";
2866
+ amount?: "actionType" | undefined;
2867
+ }>;
2868
+ vincentAbilityApiVersion: string;
2869
+ __schemaTypes: {
2870
+ policyAbilityParamsSchema: z.ZodObject<{
2871
+ actionType: z.ZodString;
2872
+ }, "strip", z.ZodTypeAny, {
2873
+ actionType: string;
2874
+ }, {
2875
+ actionType: string;
2876
+ }>;
2877
+ userParamsSchema: z.ZodUndefined;
2878
+ evalAllowResultSchema: z.ZodObject<{
2879
+ approved: z.ZodBoolean;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ approved: boolean;
2882
+ }, {
2883
+ approved: boolean;
2884
+ }>;
2885
+ evalDenyResultSchema: z.ZodUndefined;
2886
+ precheckAllowResultSchema: z.ZodUndefined;
2887
+ precheckDenyResultSchema: z.ZodUndefined;
2888
+ commitParamsSchema: z.ZodUndefined;
2889
+ commitAllowResultSchema: z.ZodUndefined;
2890
+ commitDenyResultSchema: z.ZodUndefined;
2891
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2892
+ actionType: z.ZodString;
2893
+ }, "strip", z.ZodTypeAny, {
2894
+ actionType: string;
2895
+ }, {
2896
+ actionType: string;
2897
+ }>, z.ZodUndefined, z.ZodObject<{
2898
+ approved: z.ZodBoolean;
2899
+ }, "strip", z.ZodTypeAny, {
2900
+ approved: boolean;
2901
+ }, {
2902
+ approved: boolean;
2903
+ }>, z.ZodUndefined>;
2904
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2905
+ actionType: z.ZodString;
2906
+ }, "strip", z.ZodTypeAny, {
2907
+ actionType: string;
2908
+ }, {
2909
+ actionType: string;
2910
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2911
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2912
+ };
2913
+ }], "@lit-protocol/test-policy@1.0.0">, {
2914
+ "@lit-protocol/test-policy@1.0.0": {
2915
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
2916
+ actionType: z.ZodString;
2917
+ }, "strip", z.ZodTypeAny, {
2918
+ actionType: string;
2919
+ }, {
2920
+ actionType: string;
2921
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2922
+ approved: z.ZodBoolean;
2923
+ }, "strip", z.ZodTypeAny, {
2924
+ approved: boolean;
2925
+ }, {
2926
+ approved: boolean;
2927
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2928
+ actionType: z.ZodString;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ actionType: string;
2931
+ }, {
2932
+ actionType: string;
2933
+ }>, z.ZodUndefined, z.ZodObject<{
2934
+ approved: z.ZodBoolean;
2935
+ }, "strip", z.ZodTypeAny, {
2936
+ approved: boolean;
2937
+ }, {
2938
+ approved: boolean;
2939
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2940
+ actionType: z.ZodString;
2941
+ }, "strip", z.ZodTypeAny, {
2942
+ actionType: string;
2943
+ }, {
2944
+ actionType: string;
2945
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
2946
+ ipfsCid: "j298jhodf9024j4jfg";
2947
+ abilityParameterMappings: Partial<{
2948
+ action: "actionType";
2949
+ target: "actionType";
2950
+ amount?: "actionType" | undefined;
2951
+ }>;
2952
+ vincentAbilityApiVersion: string;
2953
+ __schemaTypes: {
2954
+ policyAbilityParamsSchema: z.ZodObject<{
2955
+ actionType: z.ZodString;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ actionType: string;
2958
+ }, {
2959
+ actionType: string;
2960
+ }>;
2961
+ userParamsSchema: z.ZodUndefined;
2962
+ evalAllowResultSchema: z.ZodObject<{
2963
+ approved: z.ZodBoolean;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ approved: boolean;
2966
+ }, {
2967
+ approved: boolean;
2968
+ }>;
2969
+ evalDenyResultSchema: z.ZodUndefined;
2970
+ precheckAllowResultSchema: z.ZodUndefined;
2971
+ precheckDenyResultSchema: z.ZodUndefined;
2972
+ commitParamsSchema: z.ZodUndefined;
2973
+ commitAllowResultSchema: z.ZodUndefined;
2974
+ commitDenyResultSchema: z.ZodUndefined;
2975
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2976
+ actionType: z.ZodString;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ actionType: string;
2979
+ }, {
2980
+ actionType: string;
2981
+ }>, z.ZodUndefined, z.ZodObject<{
2982
+ approved: z.ZodBoolean;
2983
+ }, "strip", z.ZodTypeAny, {
2984
+ approved: boolean;
2985
+ }, {
2986
+ approved: boolean;
2987
+ }>, z.ZodUndefined>;
2988
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
2989
+ actionType: z.ZodString;
2990
+ }, "strip", z.ZodTypeAny, {
2991
+ actionType: string;
2992
+ }, {
2993
+ actionType: string;
2994
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2995
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
2996
+ };
2997
+ };
2998
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2999
+ valid: z.ZodBoolean;
3000
+ }, "strip", z.ZodTypeAny, {
3001
+ valid: boolean;
3002
+ }, {
3003
+ valid: boolean;
3004
+ }>, z.ZodObject<{
3005
+ reason: z.ZodString;
3006
+ code: z.ZodNumber;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ code: number;
3009
+ reason: string;
3010
+ }, {
3011
+ code: number;
3012
+ reason: string;
3013
+ }>>;
3014
+ export declare const testExecuteFailWithSuccessSchema: () => import("..").VincentAbility<z.ZodObject<{
3015
+ action: z.ZodString;
3016
+ target: z.ZodString;
3017
+ amount: z.ZodOptional<z.ZodNumber>;
3018
+ }, "strip", z.ZodTypeAny, {
3019
+ action: string;
3020
+ target: string;
3021
+ amount?: number | undefined;
3022
+ }, {
3023
+ action: string;
3024
+ target: string;
3025
+ amount?: number | undefined;
3026
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3027
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3028
+ actionType: z.ZodString;
3029
+ }, "strip", z.ZodTypeAny, {
3030
+ actionType: string;
3031
+ }, {
3032
+ actionType: string;
3033
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3034
+ approved: z.ZodBoolean;
3035
+ }, "strip", z.ZodTypeAny, {
3036
+ approved: boolean;
3037
+ }, {
3038
+ approved: boolean;
3039
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3040
+ actionType: z.ZodString;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ actionType: string;
3043
+ }, {
3044
+ actionType: string;
3045
+ }>, z.ZodUndefined, z.ZodObject<{
3046
+ approved: z.ZodBoolean;
3047
+ }, "strip", z.ZodTypeAny, {
3048
+ approved: boolean;
3049
+ }, {
3050
+ approved: boolean;
3051
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3052
+ actionType: z.ZodString;
3053
+ }, "strip", z.ZodTypeAny, {
3054
+ actionType: string;
3055
+ }, {
3056
+ actionType: string;
3057
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3058
+ ipfsCid: "j298jhodf9024j4jfg";
3059
+ abilityParameterMappings: Partial<{
3060
+ action: "actionType";
3061
+ target: "actionType";
3062
+ amount?: "actionType" | undefined;
3063
+ }>;
3064
+ vincentAbilityApiVersion: string;
3065
+ __schemaTypes: {
3066
+ policyAbilityParamsSchema: z.ZodObject<{
3067
+ actionType: z.ZodString;
3068
+ }, "strip", z.ZodTypeAny, {
3069
+ actionType: string;
3070
+ }, {
3071
+ actionType: string;
3072
+ }>;
3073
+ userParamsSchema: z.ZodUndefined;
3074
+ evalAllowResultSchema: z.ZodObject<{
3075
+ approved: z.ZodBoolean;
3076
+ }, "strip", z.ZodTypeAny, {
3077
+ approved: boolean;
3078
+ }, {
3079
+ approved: boolean;
3080
+ }>;
3081
+ evalDenyResultSchema: z.ZodUndefined;
3082
+ precheckAllowResultSchema: z.ZodUndefined;
3083
+ precheckDenyResultSchema: z.ZodUndefined;
3084
+ commitParamsSchema: z.ZodUndefined;
3085
+ commitAllowResultSchema: z.ZodUndefined;
3086
+ commitDenyResultSchema: z.ZodUndefined;
3087
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3088
+ actionType: z.ZodString;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ actionType: string;
3091
+ }, {
3092
+ actionType: string;
3093
+ }>, z.ZodUndefined, z.ZodObject<{
3094
+ approved: z.ZodBoolean;
3095
+ }, "strip", z.ZodTypeAny, {
3096
+ approved: boolean;
3097
+ }, {
3098
+ approved: boolean;
3099
+ }>, z.ZodUndefined>;
3100
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3101
+ actionType: z.ZodString;
3102
+ }, "strip", z.ZodTypeAny, {
3103
+ actionType: string;
3104
+ }, {
3105
+ actionType: string;
3106
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3107
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3108
+ };
3109
+ }], "@lit-protocol/test-policy@1.0.0">, {
3110
+ "@lit-protocol/test-policy@1.0.0": {
3111
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3112
+ actionType: z.ZodString;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ actionType: string;
3115
+ }, {
3116
+ actionType: string;
3117
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3118
+ approved: z.ZodBoolean;
3119
+ }, "strip", z.ZodTypeAny, {
3120
+ approved: boolean;
3121
+ }, {
3122
+ approved: boolean;
3123
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3124
+ actionType: z.ZodString;
3125
+ }, "strip", z.ZodTypeAny, {
3126
+ actionType: string;
3127
+ }, {
3128
+ actionType: string;
3129
+ }>, z.ZodUndefined, z.ZodObject<{
3130
+ approved: z.ZodBoolean;
3131
+ }, "strip", z.ZodTypeAny, {
3132
+ approved: boolean;
3133
+ }, {
3134
+ approved: boolean;
3135
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3136
+ actionType: z.ZodString;
3137
+ }, "strip", z.ZodTypeAny, {
3138
+ actionType: string;
3139
+ }, {
3140
+ actionType: string;
3141
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3142
+ ipfsCid: "j298jhodf9024j4jfg";
3143
+ abilityParameterMappings: Partial<{
3144
+ action: "actionType";
3145
+ target: "actionType";
3146
+ amount?: "actionType" | undefined;
3147
+ }>;
3148
+ vincentAbilityApiVersion: string;
3149
+ __schemaTypes: {
3150
+ policyAbilityParamsSchema: z.ZodObject<{
3151
+ actionType: z.ZodString;
3152
+ }, "strip", z.ZodTypeAny, {
3153
+ actionType: string;
3154
+ }, {
3155
+ actionType: string;
3156
+ }>;
3157
+ userParamsSchema: z.ZodUndefined;
3158
+ evalAllowResultSchema: z.ZodObject<{
3159
+ approved: z.ZodBoolean;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ approved: boolean;
3162
+ }, {
3163
+ approved: boolean;
3164
+ }>;
3165
+ evalDenyResultSchema: z.ZodUndefined;
3166
+ precheckAllowResultSchema: z.ZodUndefined;
3167
+ precheckDenyResultSchema: z.ZodUndefined;
3168
+ commitParamsSchema: z.ZodUndefined;
3169
+ commitAllowResultSchema: z.ZodUndefined;
3170
+ commitDenyResultSchema: z.ZodUndefined;
3171
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3172
+ actionType: z.ZodString;
3173
+ }, "strip", z.ZodTypeAny, {
3174
+ actionType: string;
3175
+ }, {
3176
+ actionType: string;
3177
+ }>, z.ZodUndefined, z.ZodObject<{
3178
+ approved: z.ZodBoolean;
3179
+ }, "strip", z.ZodTypeAny, {
3180
+ approved: boolean;
3181
+ }, {
3182
+ approved: boolean;
3183
+ }>, z.ZodUndefined>;
3184
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3185
+ actionType: z.ZodString;
3186
+ }, "strip", z.ZodTypeAny, {
3187
+ actionType: string;
3188
+ }, {
3189
+ actionType: string;
3190
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3191
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3192
+ };
3193
+ };
3194
+ }, z.ZodObject<{
3195
+ result: z.ZodString;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ result: string;
3198
+ }, {
3199
+ result: string;
3200
+ }>, z.ZodObject<{
3201
+ error: z.ZodString;
3202
+ code: z.ZodNumber;
3203
+ }, "strip", z.ZodTypeAny, {
3204
+ code: number;
3205
+ error: string;
3206
+ }, {
3207
+ code: number;
3208
+ error: string;
3209
+ }>, z.ZodUndefined, z.ZodUndefined>;
3210
+ export declare const testReturnWithInnerFunctions: () => import("..").VincentAbility<z.ZodObject<{
3211
+ action: z.ZodString;
3212
+ target: z.ZodString;
3213
+ amount: z.ZodOptional<z.ZodNumber>;
3214
+ }, "strip", z.ZodTypeAny, {
3215
+ action: string;
3216
+ target: string;
3217
+ amount?: number | undefined;
3218
+ }, {
3219
+ action: string;
3220
+ target: string;
3221
+ amount?: number | undefined;
3222
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3223
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3224
+ actionType: z.ZodString;
3225
+ }, "strip", z.ZodTypeAny, {
3226
+ actionType: string;
3227
+ }, {
3228
+ actionType: string;
3229
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3230
+ approved: z.ZodBoolean;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ approved: boolean;
3233
+ }, {
3234
+ approved: boolean;
3235
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3236
+ actionType: z.ZodString;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ actionType: string;
3239
+ }, {
3240
+ actionType: string;
3241
+ }>, z.ZodUndefined, z.ZodObject<{
3242
+ approved: z.ZodBoolean;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ approved: boolean;
3245
+ }, {
3246
+ approved: boolean;
3247
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3248
+ actionType: z.ZodString;
3249
+ }, "strip", z.ZodTypeAny, {
3250
+ actionType: string;
3251
+ }, {
3252
+ actionType: string;
3253
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3254
+ ipfsCid: "j298jhodf9024j4jfg";
3255
+ abilityParameterMappings: Partial<{
3256
+ action: "actionType";
3257
+ target: "actionType";
3258
+ amount?: "actionType" | undefined;
3259
+ }>;
3260
+ vincentAbilityApiVersion: string;
3261
+ __schemaTypes: {
3262
+ policyAbilityParamsSchema: z.ZodObject<{
3263
+ actionType: z.ZodString;
3264
+ }, "strip", z.ZodTypeAny, {
3265
+ actionType: string;
3266
+ }, {
3267
+ actionType: string;
3268
+ }>;
3269
+ userParamsSchema: z.ZodUndefined;
3270
+ evalAllowResultSchema: z.ZodObject<{
3271
+ approved: z.ZodBoolean;
3272
+ }, "strip", z.ZodTypeAny, {
3273
+ approved: boolean;
3274
+ }, {
3275
+ approved: boolean;
3276
+ }>;
3277
+ evalDenyResultSchema: z.ZodUndefined;
3278
+ precheckAllowResultSchema: z.ZodUndefined;
3279
+ precheckDenyResultSchema: z.ZodUndefined;
3280
+ commitParamsSchema: z.ZodUndefined;
3281
+ commitAllowResultSchema: z.ZodUndefined;
3282
+ commitDenyResultSchema: z.ZodUndefined;
3283
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3284
+ actionType: z.ZodString;
3285
+ }, "strip", z.ZodTypeAny, {
3286
+ actionType: string;
3287
+ }, {
3288
+ actionType: string;
3289
+ }>, z.ZodUndefined, z.ZodObject<{
3290
+ approved: z.ZodBoolean;
3291
+ }, "strip", z.ZodTypeAny, {
3292
+ approved: boolean;
3293
+ }, {
3294
+ approved: boolean;
3295
+ }>, z.ZodUndefined>;
3296
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3297
+ actionType: z.ZodString;
3298
+ }, "strip", z.ZodTypeAny, {
3299
+ actionType: string;
3300
+ }, {
3301
+ actionType: string;
3302
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3303
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3304
+ };
3305
+ }], "@lit-protocol/test-policy@1.0.0">, {
3306
+ "@lit-protocol/test-policy@1.0.0": {
3307
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3308
+ actionType: z.ZodString;
3309
+ }, "strip", z.ZodTypeAny, {
3310
+ actionType: string;
3311
+ }, {
3312
+ actionType: string;
3313
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3314
+ approved: z.ZodBoolean;
3315
+ }, "strip", z.ZodTypeAny, {
3316
+ approved: boolean;
3317
+ }, {
3318
+ approved: boolean;
3319
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3320
+ actionType: z.ZodString;
3321
+ }, "strip", z.ZodTypeAny, {
3322
+ actionType: string;
3323
+ }, {
3324
+ actionType: string;
3325
+ }>, z.ZodUndefined, z.ZodObject<{
3326
+ approved: z.ZodBoolean;
3327
+ }, "strip", z.ZodTypeAny, {
3328
+ approved: boolean;
3329
+ }, {
3330
+ approved: boolean;
3331
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3332
+ actionType: z.ZodString;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ actionType: string;
3335
+ }, {
3336
+ actionType: string;
3337
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3338
+ ipfsCid: "j298jhodf9024j4jfg";
3339
+ abilityParameterMappings: Partial<{
3340
+ action: "actionType";
3341
+ target: "actionType";
3342
+ amount?: "actionType" | undefined;
3343
+ }>;
3344
+ vincentAbilityApiVersion: string;
3345
+ __schemaTypes: {
3346
+ policyAbilityParamsSchema: z.ZodObject<{
3347
+ actionType: z.ZodString;
3348
+ }, "strip", z.ZodTypeAny, {
3349
+ actionType: string;
3350
+ }, {
3351
+ actionType: string;
3352
+ }>;
3353
+ userParamsSchema: z.ZodUndefined;
3354
+ evalAllowResultSchema: z.ZodObject<{
3355
+ approved: z.ZodBoolean;
3356
+ }, "strip", z.ZodTypeAny, {
3357
+ approved: boolean;
3358
+ }, {
3359
+ approved: boolean;
3360
+ }>;
3361
+ evalDenyResultSchema: z.ZodUndefined;
3362
+ precheckAllowResultSchema: z.ZodUndefined;
3363
+ precheckDenyResultSchema: z.ZodUndefined;
3364
+ commitParamsSchema: z.ZodUndefined;
3365
+ commitAllowResultSchema: z.ZodUndefined;
3366
+ commitDenyResultSchema: z.ZodUndefined;
3367
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3368
+ actionType: z.ZodString;
3369
+ }, "strip", z.ZodTypeAny, {
3370
+ actionType: string;
3371
+ }, {
3372
+ actionType: string;
3373
+ }>, z.ZodUndefined, z.ZodObject<{
3374
+ approved: z.ZodBoolean;
3375
+ }, "strip", z.ZodTypeAny, {
3376
+ approved: boolean;
3377
+ }, {
3378
+ approved: boolean;
3379
+ }>, z.ZodUndefined>;
3380
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3381
+ actionType: z.ZodString;
3382
+ }, "strip", z.ZodTypeAny, {
3383
+ actionType: string;
3384
+ }, {
3385
+ actionType: string;
3386
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3387
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3388
+ };
3389
+ };
3390
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
3391
+ export declare const testPrecheckConditionalReturns: () => import("..").VincentAbility<z.ZodObject<{
3392
+ action: z.ZodString;
3393
+ target: z.ZodString;
3394
+ amount: z.ZodOptional<z.ZodNumber>;
3395
+ }, "strip", z.ZodTypeAny, {
3396
+ action: string;
3397
+ target: string;
3398
+ amount?: number | undefined;
3399
+ }, {
3400
+ action: string;
3401
+ target: string;
3402
+ amount?: number | undefined;
3403
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3404
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3405
+ actionType: z.ZodString;
3406
+ }, "strip", z.ZodTypeAny, {
3407
+ actionType: string;
3408
+ }, {
3409
+ actionType: string;
3410
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3411
+ approved: z.ZodBoolean;
3412
+ }, "strip", z.ZodTypeAny, {
3413
+ approved: boolean;
3414
+ }, {
3415
+ approved: boolean;
3416
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3417
+ actionType: z.ZodString;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ actionType: string;
3420
+ }, {
3421
+ actionType: string;
3422
+ }>, z.ZodUndefined, z.ZodObject<{
3423
+ approved: z.ZodBoolean;
3424
+ }, "strip", z.ZodTypeAny, {
3425
+ approved: boolean;
3426
+ }, {
3427
+ approved: boolean;
3428
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3429
+ actionType: z.ZodString;
3430
+ }, "strip", z.ZodTypeAny, {
3431
+ actionType: string;
3432
+ }, {
3433
+ actionType: string;
3434
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3435
+ ipfsCid: "j298jhodf9024j4jfg";
3436
+ abilityParameterMappings: Partial<{
3437
+ action: "actionType";
3438
+ target: "actionType";
3439
+ amount?: "actionType" | undefined;
3440
+ }>;
3441
+ vincentAbilityApiVersion: string;
3442
+ __schemaTypes: {
3443
+ policyAbilityParamsSchema: z.ZodObject<{
3444
+ actionType: z.ZodString;
3445
+ }, "strip", z.ZodTypeAny, {
3446
+ actionType: string;
3447
+ }, {
3448
+ actionType: string;
3449
+ }>;
3450
+ userParamsSchema: z.ZodUndefined;
3451
+ evalAllowResultSchema: z.ZodObject<{
3452
+ approved: z.ZodBoolean;
3453
+ }, "strip", z.ZodTypeAny, {
3454
+ approved: boolean;
3455
+ }, {
3456
+ approved: boolean;
3457
+ }>;
3458
+ evalDenyResultSchema: z.ZodUndefined;
3459
+ precheckAllowResultSchema: z.ZodUndefined;
3460
+ precheckDenyResultSchema: z.ZodUndefined;
3461
+ commitParamsSchema: z.ZodUndefined;
3462
+ commitAllowResultSchema: z.ZodUndefined;
3463
+ commitDenyResultSchema: z.ZodUndefined;
3464
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3465
+ actionType: z.ZodString;
3466
+ }, "strip", z.ZodTypeAny, {
3467
+ actionType: string;
3468
+ }, {
3469
+ actionType: string;
3470
+ }>, z.ZodUndefined, z.ZodObject<{
3471
+ approved: z.ZodBoolean;
3472
+ }, "strip", z.ZodTypeAny, {
3473
+ approved: boolean;
3474
+ }, {
3475
+ approved: boolean;
3476
+ }>, z.ZodUndefined>;
3477
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3478
+ actionType: z.ZodString;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ actionType: string;
3481
+ }, {
3482
+ actionType: string;
3483
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3484
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3485
+ };
3486
+ }], "@lit-protocol/test-policy@1.0.0">, {
3487
+ "@lit-protocol/test-policy@1.0.0": {
3488
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3489
+ actionType: z.ZodString;
3490
+ }, "strip", z.ZodTypeAny, {
3491
+ actionType: string;
3492
+ }, {
3493
+ actionType: string;
3494
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3495
+ approved: z.ZodBoolean;
3496
+ }, "strip", z.ZodTypeAny, {
3497
+ approved: boolean;
3498
+ }, {
3499
+ approved: boolean;
3500
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3501
+ actionType: z.ZodString;
3502
+ }, "strip", z.ZodTypeAny, {
3503
+ actionType: string;
3504
+ }, {
3505
+ actionType: string;
3506
+ }>, z.ZodUndefined, z.ZodObject<{
3507
+ approved: z.ZodBoolean;
3508
+ }, "strip", z.ZodTypeAny, {
3509
+ approved: boolean;
3510
+ }, {
3511
+ approved: boolean;
3512
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3513
+ actionType: z.ZodString;
3514
+ }, "strip", z.ZodTypeAny, {
3515
+ actionType: string;
3516
+ }, {
3517
+ actionType: string;
3518
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3519
+ ipfsCid: "j298jhodf9024j4jfg";
3520
+ abilityParameterMappings: Partial<{
3521
+ action: "actionType";
3522
+ target: "actionType";
3523
+ amount?: "actionType" | undefined;
3524
+ }>;
3525
+ vincentAbilityApiVersion: string;
3526
+ __schemaTypes: {
3527
+ policyAbilityParamsSchema: z.ZodObject<{
3528
+ actionType: z.ZodString;
3529
+ }, "strip", z.ZodTypeAny, {
3530
+ actionType: string;
3531
+ }, {
3532
+ actionType: string;
3533
+ }>;
3534
+ userParamsSchema: z.ZodUndefined;
3535
+ evalAllowResultSchema: z.ZodObject<{
3536
+ approved: z.ZodBoolean;
3537
+ }, "strip", z.ZodTypeAny, {
3538
+ approved: boolean;
3539
+ }, {
3540
+ approved: boolean;
3541
+ }>;
3542
+ evalDenyResultSchema: z.ZodUndefined;
3543
+ precheckAllowResultSchema: z.ZodUndefined;
3544
+ precheckDenyResultSchema: z.ZodUndefined;
3545
+ commitParamsSchema: z.ZodUndefined;
3546
+ commitAllowResultSchema: z.ZodUndefined;
3547
+ commitDenyResultSchema: z.ZodUndefined;
3548
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3549
+ actionType: z.ZodString;
3550
+ }, "strip", z.ZodTypeAny, {
3551
+ actionType: string;
3552
+ }, {
3553
+ actionType: string;
3554
+ }>, z.ZodUndefined, z.ZodObject<{
3555
+ approved: z.ZodBoolean;
3556
+ }, "strip", z.ZodTypeAny, {
3557
+ approved: boolean;
3558
+ }, {
3559
+ approved: boolean;
3560
+ }>, z.ZodUndefined>;
3561
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3562
+ actionType: z.ZodString;
3563
+ }, "strip", z.ZodTypeAny, {
3564
+ actionType: string;
3565
+ }, {
3566
+ actionType: string;
3567
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3568
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3569
+ };
3570
+ };
3571
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
3572
+ export declare const testExecuteConditionalReturns: () => import("..").VincentAbility<z.ZodObject<{
3573
+ action: z.ZodString;
3574
+ target: z.ZodString;
3575
+ amount: z.ZodOptional<z.ZodNumber>;
3576
+ }, "strip", z.ZodTypeAny, {
3577
+ action: string;
3578
+ target: string;
3579
+ amount?: number | undefined;
3580
+ }, {
3581
+ action: string;
3582
+ target: string;
3583
+ amount?: number | undefined;
3584
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3585
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3586
+ actionType: z.ZodString;
3587
+ }, "strip", z.ZodTypeAny, {
3588
+ actionType: string;
3589
+ }, {
3590
+ actionType: string;
3591
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3592
+ approved: z.ZodBoolean;
3593
+ }, "strip", z.ZodTypeAny, {
3594
+ approved: boolean;
3595
+ }, {
3596
+ approved: boolean;
3597
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3598
+ actionType: z.ZodString;
3599
+ }, "strip", z.ZodTypeAny, {
3600
+ actionType: string;
3601
+ }, {
3602
+ actionType: string;
3603
+ }>, z.ZodUndefined, z.ZodObject<{
3604
+ approved: z.ZodBoolean;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ approved: boolean;
3607
+ }, {
3608
+ approved: boolean;
3609
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3610
+ actionType: z.ZodString;
3611
+ }, "strip", z.ZodTypeAny, {
3612
+ actionType: string;
3613
+ }, {
3614
+ actionType: string;
3615
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3616
+ ipfsCid: "j298jhodf9024j4jfg";
3617
+ abilityParameterMappings: Partial<{
3618
+ action: "actionType";
3619
+ target: "actionType";
3620
+ amount?: "actionType" | undefined;
3621
+ }>;
3622
+ vincentAbilityApiVersion: string;
3623
+ __schemaTypes: {
3624
+ policyAbilityParamsSchema: z.ZodObject<{
3625
+ actionType: z.ZodString;
3626
+ }, "strip", z.ZodTypeAny, {
3627
+ actionType: string;
3628
+ }, {
3629
+ actionType: string;
3630
+ }>;
3631
+ userParamsSchema: z.ZodUndefined;
3632
+ evalAllowResultSchema: z.ZodObject<{
3633
+ approved: z.ZodBoolean;
3634
+ }, "strip", z.ZodTypeAny, {
3635
+ approved: boolean;
3636
+ }, {
3637
+ approved: boolean;
3638
+ }>;
3639
+ evalDenyResultSchema: z.ZodUndefined;
3640
+ precheckAllowResultSchema: z.ZodUndefined;
3641
+ precheckDenyResultSchema: z.ZodUndefined;
3642
+ commitParamsSchema: z.ZodUndefined;
3643
+ commitAllowResultSchema: z.ZodUndefined;
3644
+ commitDenyResultSchema: z.ZodUndefined;
3645
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3646
+ actionType: z.ZodString;
3647
+ }, "strip", z.ZodTypeAny, {
3648
+ actionType: string;
3649
+ }, {
3650
+ actionType: string;
3651
+ }>, z.ZodUndefined, z.ZodObject<{
3652
+ approved: z.ZodBoolean;
3653
+ }, "strip", z.ZodTypeAny, {
3654
+ approved: boolean;
3655
+ }, {
3656
+ approved: boolean;
3657
+ }>, z.ZodUndefined>;
3658
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3659
+ actionType: z.ZodString;
3660
+ }, "strip", z.ZodTypeAny, {
3661
+ actionType: string;
3662
+ }, {
3663
+ actionType: string;
3664
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3665
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3666
+ };
3667
+ }], "@lit-protocol/test-policy@1.0.0">, {
3668
+ "@lit-protocol/test-policy@1.0.0": {
3669
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3670
+ actionType: z.ZodString;
3671
+ }, "strip", z.ZodTypeAny, {
3672
+ actionType: string;
3673
+ }, {
3674
+ actionType: string;
3675
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3676
+ approved: z.ZodBoolean;
3677
+ }, "strip", z.ZodTypeAny, {
3678
+ approved: boolean;
3679
+ }, {
3680
+ approved: boolean;
3681
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3682
+ actionType: z.ZodString;
3683
+ }, "strip", z.ZodTypeAny, {
3684
+ actionType: string;
3685
+ }, {
3686
+ actionType: string;
3687
+ }>, z.ZodUndefined, z.ZodObject<{
3688
+ approved: z.ZodBoolean;
3689
+ }, "strip", z.ZodTypeAny, {
3690
+ approved: boolean;
3691
+ }, {
3692
+ approved: boolean;
3693
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3694
+ actionType: z.ZodString;
3695
+ }, "strip", z.ZodTypeAny, {
3696
+ actionType: string;
3697
+ }, {
3698
+ actionType: string;
3699
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3700
+ ipfsCid: "j298jhodf9024j4jfg";
3701
+ abilityParameterMappings: Partial<{
3702
+ action: "actionType";
3703
+ target: "actionType";
3704
+ amount?: "actionType" | undefined;
3705
+ }>;
3706
+ vincentAbilityApiVersion: string;
3707
+ __schemaTypes: {
3708
+ policyAbilityParamsSchema: z.ZodObject<{
3709
+ actionType: z.ZodString;
3710
+ }, "strip", z.ZodTypeAny, {
3711
+ actionType: string;
3712
+ }, {
3713
+ actionType: string;
3714
+ }>;
3715
+ userParamsSchema: z.ZodUndefined;
3716
+ evalAllowResultSchema: z.ZodObject<{
3717
+ approved: z.ZodBoolean;
3718
+ }, "strip", z.ZodTypeAny, {
3719
+ approved: boolean;
3720
+ }, {
3721
+ approved: boolean;
3722
+ }>;
3723
+ evalDenyResultSchema: z.ZodUndefined;
3724
+ precheckAllowResultSchema: z.ZodUndefined;
3725
+ precheckDenyResultSchema: z.ZodUndefined;
3726
+ commitParamsSchema: z.ZodUndefined;
3727
+ commitAllowResultSchema: z.ZodUndefined;
3728
+ commitDenyResultSchema: z.ZodUndefined;
3729
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3730
+ actionType: z.ZodString;
3731
+ }, "strip", z.ZodTypeAny, {
3732
+ actionType: string;
3733
+ }, {
3734
+ actionType: string;
3735
+ }>, z.ZodUndefined, z.ZodObject<{
3736
+ approved: z.ZodBoolean;
3737
+ }, "strip", z.ZodTypeAny, {
3738
+ approved: boolean;
3739
+ }, {
3740
+ approved: boolean;
3741
+ }>, z.ZodUndefined>;
3742
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3743
+ actionType: z.ZodString;
3744
+ }, "strip", z.ZodTypeAny, {
3745
+ actionType: string;
3746
+ }, {
3747
+ actionType: string;
3748
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3749
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3750
+ };
3751
+ };
3752
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
3753
+ export declare const testPrecheckAsyncWithoutAwait: () => import("..").VincentAbility<z.ZodObject<{
3754
+ action: z.ZodString;
3755
+ target: z.ZodString;
3756
+ amount: z.ZodOptional<z.ZodNumber>;
3757
+ }, "strip", z.ZodTypeAny, {
3758
+ action: string;
3759
+ target: string;
3760
+ amount?: number | undefined;
3761
+ }, {
3762
+ action: string;
3763
+ target: string;
3764
+ amount?: number | undefined;
3765
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3766
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3767
+ actionType: z.ZodString;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ actionType: string;
3770
+ }, {
3771
+ actionType: string;
3772
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3773
+ approved: z.ZodBoolean;
3774
+ }, "strip", z.ZodTypeAny, {
3775
+ approved: boolean;
3776
+ }, {
3777
+ approved: boolean;
3778
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3779
+ actionType: z.ZodString;
3780
+ }, "strip", z.ZodTypeAny, {
3781
+ actionType: string;
3782
+ }, {
3783
+ actionType: string;
3784
+ }>, z.ZodUndefined, z.ZodObject<{
3785
+ approved: z.ZodBoolean;
3786
+ }, "strip", z.ZodTypeAny, {
3787
+ approved: boolean;
3788
+ }, {
3789
+ approved: boolean;
3790
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3791
+ actionType: z.ZodString;
3792
+ }, "strip", z.ZodTypeAny, {
3793
+ actionType: string;
3794
+ }, {
3795
+ actionType: string;
3796
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3797
+ ipfsCid: "j298jhodf9024j4jfg";
3798
+ abilityParameterMappings: Partial<{
3799
+ action: "actionType";
3800
+ target: "actionType";
3801
+ amount?: "actionType" | undefined;
3802
+ }>;
3803
+ vincentAbilityApiVersion: string;
3804
+ __schemaTypes: {
3805
+ policyAbilityParamsSchema: z.ZodObject<{
3806
+ actionType: z.ZodString;
3807
+ }, "strip", z.ZodTypeAny, {
3808
+ actionType: string;
3809
+ }, {
3810
+ actionType: string;
3811
+ }>;
3812
+ userParamsSchema: z.ZodUndefined;
3813
+ evalAllowResultSchema: z.ZodObject<{
3814
+ approved: z.ZodBoolean;
3815
+ }, "strip", z.ZodTypeAny, {
3816
+ approved: boolean;
3817
+ }, {
3818
+ approved: boolean;
3819
+ }>;
3820
+ evalDenyResultSchema: z.ZodUndefined;
3821
+ precheckAllowResultSchema: z.ZodUndefined;
3822
+ precheckDenyResultSchema: z.ZodUndefined;
3823
+ commitParamsSchema: z.ZodUndefined;
3824
+ commitAllowResultSchema: z.ZodUndefined;
3825
+ commitDenyResultSchema: z.ZodUndefined;
3826
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3827
+ actionType: z.ZodString;
3828
+ }, "strip", z.ZodTypeAny, {
3829
+ actionType: string;
3830
+ }, {
3831
+ actionType: string;
3832
+ }>, z.ZodUndefined, z.ZodObject<{
3833
+ approved: z.ZodBoolean;
3834
+ }, "strip", z.ZodTypeAny, {
3835
+ approved: boolean;
3836
+ }, {
3837
+ approved: boolean;
3838
+ }>, z.ZodUndefined>;
3839
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3840
+ actionType: z.ZodString;
3841
+ }, "strip", z.ZodTypeAny, {
3842
+ actionType: string;
3843
+ }, {
3844
+ actionType: string;
3845
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3846
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3847
+ };
3848
+ }], "@lit-protocol/test-policy@1.0.0">, {
3849
+ "@lit-protocol/test-policy@1.0.0": {
3850
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3851
+ actionType: z.ZodString;
3852
+ }, "strip", z.ZodTypeAny, {
3853
+ actionType: string;
3854
+ }, {
3855
+ actionType: string;
3856
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3857
+ approved: z.ZodBoolean;
3858
+ }, "strip", z.ZodTypeAny, {
3859
+ approved: boolean;
3860
+ }, {
3861
+ approved: boolean;
3862
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3863
+ actionType: z.ZodString;
3864
+ }, "strip", z.ZodTypeAny, {
3865
+ actionType: string;
3866
+ }, {
3867
+ actionType: string;
3868
+ }>, z.ZodUndefined, z.ZodObject<{
3869
+ approved: z.ZodBoolean;
3870
+ }, "strip", z.ZodTypeAny, {
3871
+ approved: boolean;
3872
+ }, {
3873
+ approved: boolean;
3874
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3875
+ actionType: z.ZodString;
3876
+ }, "strip", z.ZodTypeAny, {
3877
+ actionType: string;
3878
+ }, {
3879
+ actionType: string;
3880
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3881
+ ipfsCid: "j298jhodf9024j4jfg";
3882
+ abilityParameterMappings: Partial<{
3883
+ action: "actionType";
3884
+ target: "actionType";
3885
+ amount?: "actionType" | undefined;
3886
+ }>;
3887
+ vincentAbilityApiVersion: string;
3888
+ __schemaTypes: {
3889
+ policyAbilityParamsSchema: z.ZodObject<{
3890
+ actionType: z.ZodString;
3891
+ }, "strip", z.ZodTypeAny, {
3892
+ actionType: string;
3893
+ }, {
3894
+ actionType: string;
3895
+ }>;
3896
+ userParamsSchema: z.ZodUndefined;
3897
+ evalAllowResultSchema: z.ZodObject<{
3898
+ approved: z.ZodBoolean;
3899
+ }, "strip", z.ZodTypeAny, {
3900
+ approved: boolean;
3901
+ }, {
3902
+ approved: boolean;
3903
+ }>;
3904
+ evalDenyResultSchema: z.ZodUndefined;
3905
+ precheckAllowResultSchema: z.ZodUndefined;
3906
+ precheckDenyResultSchema: z.ZodUndefined;
3907
+ commitParamsSchema: z.ZodUndefined;
3908
+ commitAllowResultSchema: z.ZodUndefined;
3909
+ commitDenyResultSchema: z.ZodUndefined;
3910
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3911
+ actionType: z.ZodString;
3912
+ }, "strip", z.ZodTypeAny, {
3913
+ actionType: string;
3914
+ }, {
3915
+ actionType: string;
3916
+ }>, z.ZodUndefined, z.ZodObject<{
3917
+ approved: z.ZodBoolean;
3918
+ }, "strip", z.ZodTypeAny, {
3919
+ approved: boolean;
3920
+ }, {
3921
+ approved: boolean;
3922
+ }>, z.ZodUndefined>;
3923
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3924
+ actionType: z.ZodString;
3925
+ }, "strip", z.ZodTypeAny, {
3926
+ actionType: string;
3927
+ }, {
3928
+ actionType: string;
3929
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3930
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
3931
+ };
3932
+ };
3933
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
3934
+ export declare const testExecuteTryCatchReturn: () => import("..").VincentAbility<z.ZodObject<{
3935
+ action: z.ZodString;
3936
+ target: z.ZodString;
3937
+ amount: z.ZodOptional<z.ZodNumber>;
3938
+ }, "strip", z.ZodTypeAny, {
3939
+ action: string;
3940
+ target: string;
3941
+ amount?: number | undefined;
3942
+ }, {
3943
+ action: string;
3944
+ target: string;
3945
+ amount?: number | undefined;
3946
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
3947
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
3948
+ actionType: z.ZodString;
3949
+ }, "strip", z.ZodTypeAny, {
3950
+ actionType: string;
3951
+ }, {
3952
+ actionType: string;
3953
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
3954
+ approved: z.ZodBoolean;
3955
+ }, "strip", z.ZodTypeAny, {
3956
+ approved: boolean;
3957
+ }, {
3958
+ approved: boolean;
3959
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3960
+ actionType: z.ZodString;
3961
+ }, "strip", z.ZodTypeAny, {
3962
+ actionType: string;
3963
+ }, {
3964
+ actionType: string;
3965
+ }>, z.ZodUndefined, z.ZodObject<{
3966
+ approved: z.ZodBoolean;
3967
+ }, "strip", z.ZodTypeAny, {
3968
+ approved: boolean;
3969
+ }, {
3970
+ approved: boolean;
3971
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
3972
+ actionType: z.ZodString;
3973
+ }, "strip", z.ZodTypeAny, {
3974
+ actionType: string;
3975
+ }, {
3976
+ actionType: string;
3977
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
3978
+ ipfsCid: "j298jhodf9024j4jfg";
3979
+ abilityParameterMappings: Partial<{
3980
+ action: "actionType";
3981
+ target: "actionType";
3982
+ amount?: "actionType" | undefined;
3983
+ }>;
3984
+ vincentAbilityApiVersion: string;
3985
+ __schemaTypes: {
3986
+ policyAbilityParamsSchema: z.ZodObject<{
3987
+ actionType: z.ZodString;
3988
+ }, "strip", z.ZodTypeAny, {
3989
+ actionType: string;
3990
+ }, {
3991
+ actionType: string;
3992
+ }>;
3993
+ userParamsSchema: z.ZodUndefined;
3994
+ evalAllowResultSchema: z.ZodObject<{
3995
+ approved: z.ZodBoolean;
3996
+ }, "strip", z.ZodTypeAny, {
3997
+ approved: boolean;
3998
+ }, {
3999
+ approved: boolean;
4000
+ }>;
4001
+ evalDenyResultSchema: z.ZodUndefined;
4002
+ precheckAllowResultSchema: z.ZodUndefined;
4003
+ precheckDenyResultSchema: z.ZodUndefined;
4004
+ commitParamsSchema: z.ZodUndefined;
4005
+ commitAllowResultSchema: z.ZodUndefined;
4006
+ commitDenyResultSchema: z.ZodUndefined;
4007
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4008
+ actionType: z.ZodString;
4009
+ }, "strip", z.ZodTypeAny, {
4010
+ actionType: string;
4011
+ }, {
4012
+ actionType: string;
4013
+ }>, z.ZodUndefined, z.ZodObject<{
4014
+ approved: z.ZodBoolean;
4015
+ }, "strip", z.ZodTypeAny, {
4016
+ approved: boolean;
4017
+ }, {
4018
+ approved: boolean;
4019
+ }>, z.ZodUndefined>;
4020
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4021
+ actionType: z.ZodString;
4022
+ }, "strip", z.ZodTypeAny, {
4023
+ actionType: string;
4024
+ }, {
4025
+ actionType: string;
4026
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4027
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4028
+ };
4029
+ }], "@lit-protocol/test-policy@1.0.0">, {
4030
+ "@lit-protocol/test-policy@1.0.0": {
4031
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
4032
+ actionType: z.ZodString;
4033
+ }, "strip", z.ZodTypeAny, {
4034
+ actionType: string;
4035
+ }, {
4036
+ actionType: string;
4037
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
4038
+ approved: z.ZodBoolean;
4039
+ }, "strip", z.ZodTypeAny, {
4040
+ approved: boolean;
4041
+ }, {
4042
+ approved: boolean;
4043
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4044
+ actionType: z.ZodString;
4045
+ }, "strip", z.ZodTypeAny, {
4046
+ actionType: string;
4047
+ }, {
4048
+ actionType: string;
4049
+ }>, z.ZodUndefined, z.ZodObject<{
4050
+ approved: z.ZodBoolean;
4051
+ }, "strip", z.ZodTypeAny, {
4052
+ approved: boolean;
4053
+ }, {
4054
+ approved: boolean;
4055
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4056
+ actionType: z.ZodString;
4057
+ }, "strip", z.ZodTypeAny, {
4058
+ actionType: string;
4059
+ }, {
4060
+ actionType: string;
4061
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
4062
+ ipfsCid: "j298jhodf9024j4jfg";
4063
+ abilityParameterMappings: Partial<{
4064
+ action: "actionType";
4065
+ target: "actionType";
4066
+ amount?: "actionType" | undefined;
4067
+ }>;
4068
+ vincentAbilityApiVersion: string;
4069
+ __schemaTypes: {
4070
+ policyAbilityParamsSchema: z.ZodObject<{
4071
+ actionType: z.ZodString;
4072
+ }, "strip", z.ZodTypeAny, {
4073
+ actionType: string;
4074
+ }, {
4075
+ actionType: string;
4076
+ }>;
4077
+ userParamsSchema: z.ZodUndefined;
4078
+ evalAllowResultSchema: z.ZodObject<{
4079
+ approved: z.ZodBoolean;
4080
+ }, "strip", z.ZodTypeAny, {
4081
+ approved: boolean;
4082
+ }, {
4083
+ approved: boolean;
4084
+ }>;
4085
+ evalDenyResultSchema: z.ZodUndefined;
4086
+ precheckAllowResultSchema: z.ZodUndefined;
4087
+ precheckDenyResultSchema: z.ZodUndefined;
4088
+ commitParamsSchema: z.ZodUndefined;
4089
+ commitAllowResultSchema: z.ZodUndefined;
4090
+ commitDenyResultSchema: z.ZodUndefined;
4091
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4092
+ actionType: z.ZodString;
4093
+ }, "strip", z.ZodTypeAny, {
4094
+ actionType: string;
4095
+ }, {
4096
+ actionType: string;
4097
+ }>, z.ZodUndefined, z.ZodObject<{
4098
+ approved: z.ZodBoolean;
4099
+ }, "strip", z.ZodTypeAny, {
4100
+ approved: boolean;
4101
+ }, {
4102
+ approved: boolean;
4103
+ }>, z.ZodUndefined>;
4104
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4105
+ actionType: z.ZodString;
4106
+ }, "strip", z.ZodTypeAny, {
4107
+ actionType: string;
4108
+ }, {
4109
+ actionType: string;
4110
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4111
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4112
+ };
4113
+ };
4114
+ }, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
4115
+ /**
4116
+ * Test Case 7: Context destructuring maintains type safety
4117
+ */
4118
+ export declare function testContextDestructuring(): import("..").VincentAbility<z.ZodObject<{
4119
+ action: z.ZodString;
4120
+ target: z.ZodString;
4121
+ amount: z.ZodOptional<z.ZodNumber>;
4122
+ }, "strip", z.ZodTypeAny, {
4123
+ action: string;
4124
+ target: string;
4125
+ amount?: number | undefined;
4126
+ }, {
4127
+ action: string;
4128
+ target: string;
4129
+ amount?: number | undefined;
4130
+ }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
4131
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
4132
+ actionType: z.ZodString;
4133
+ }, "strip", z.ZodTypeAny, {
4134
+ actionType: string;
4135
+ }, {
4136
+ actionType: string;
4137
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
4138
+ approved: z.ZodBoolean;
4139
+ }, "strip", z.ZodTypeAny, {
4140
+ approved: boolean;
4141
+ }, {
4142
+ approved: boolean;
4143
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4144
+ actionType: z.ZodString;
4145
+ }, "strip", z.ZodTypeAny, {
4146
+ actionType: string;
4147
+ }, {
4148
+ actionType: string;
4149
+ }>, z.ZodUndefined, z.ZodObject<{
4150
+ approved: z.ZodBoolean;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ approved: boolean;
4153
+ }, {
4154
+ approved: boolean;
4155
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4156
+ actionType: z.ZodString;
4157
+ }, "strip", z.ZodTypeAny, {
4158
+ actionType: string;
4159
+ }, {
4160
+ actionType: string;
4161
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
4162
+ ipfsCid: "j298jhodf9024j4jfg";
4163
+ abilityParameterMappings: Partial<{
4164
+ action: "actionType";
4165
+ target: "actionType";
4166
+ amount?: "actionType" | undefined;
4167
+ }>;
4168
+ vincentAbilityApiVersion: string;
4169
+ __schemaTypes: {
4170
+ policyAbilityParamsSchema: z.ZodObject<{
4171
+ actionType: z.ZodString;
4172
+ }, "strip", z.ZodTypeAny, {
4173
+ actionType: string;
4174
+ }, {
4175
+ actionType: string;
4176
+ }>;
4177
+ userParamsSchema: z.ZodUndefined;
4178
+ evalAllowResultSchema: z.ZodObject<{
4179
+ approved: z.ZodBoolean;
4180
+ }, "strip", z.ZodTypeAny, {
4181
+ approved: boolean;
4182
+ }, {
4183
+ approved: boolean;
4184
+ }>;
4185
+ evalDenyResultSchema: z.ZodUndefined;
4186
+ precheckAllowResultSchema: z.ZodUndefined;
4187
+ precheckDenyResultSchema: z.ZodUndefined;
4188
+ commitParamsSchema: z.ZodUndefined;
4189
+ commitAllowResultSchema: z.ZodUndefined;
4190
+ commitDenyResultSchema: z.ZodUndefined;
4191
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4192
+ actionType: z.ZodString;
4193
+ }, "strip", z.ZodTypeAny, {
4194
+ actionType: string;
4195
+ }, {
4196
+ actionType: string;
4197
+ }>, z.ZodUndefined, z.ZodObject<{
4198
+ approved: z.ZodBoolean;
4199
+ }, "strip", z.ZodTypeAny, {
4200
+ approved: boolean;
4201
+ }, {
4202
+ approved: boolean;
4203
+ }>, z.ZodUndefined>;
4204
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4205
+ actionType: z.ZodString;
4206
+ }, "strip", z.ZodTypeAny, {
4207
+ actionType: string;
4208
+ }, {
4209
+ actionType: string;
4210
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4211
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4212
+ };
4213
+ }], "@lit-protocol/test-policy@1.0.0">, {
4214
+ "@lit-protocol/test-policy@1.0.0": {
4215
+ vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/test-policy@1.0.0", z.ZodObject<{
4216
+ actionType: z.ZodString;
4217
+ }, "strip", z.ZodTypeAny, {
4218
+ actionType: string;
4219
+ }, {
4220
+ actionType: string;
4221
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
4222
+ approved: z.ZodBoolean;
4223
+ }, "strip", z.ZodTypeAny, {
4224
+ approved: boolean;
4225
+ }, {
4226
+ approved: boolean;
4227
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4228
+ actionType: z.ZodString;
4229
+ }, "strip", z.ZodTypeAny, {
4230
+ actionType: string;
4231
+ }, {
4232
+ actionType: string;
4233
+ }>, z.ZodUndefined, z.ZodObject<{
4234
+ approved: z.ZodBoolean;
4235
+ }, "strip", z.ZodTypeAny, {
4236
+ approved: boolean;
4237
+ }, {
4238
+ approved: boolean;
4239
+ }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4240
+ actionType: z.ZodString;
4241
+ }, "strip", z.ZodTypeAny, {
4242
+ actionType: string;
4243
+ }, {
4244
+ actionType: string;
4245
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
4246
+ ipfsCid: "j298jhodf9024j4jfg";
4247
+ abilityParameterMappings: Partial<{
4248
+ action: "actionType";
4249
+ target: "actionType";
4250
+ amount?: "actionType" | undefined;
4251
+ }>;
4252
+ vincentAbilityApiVersion: string;
4253
+ __schemaTypes: {
4254
+ policyAbilityParamsSchema: z.ZodObject<{
4255
+ actionType: z.ZodString;
4256
+ }, "strip", z.ZodTypeAny, {
4257
+ actionType: string;
4258
+ }, {
4259
+ actionType: string;
4260
+ }>;
4261
+ userParamsSchema: z.ZodUndefined;
4262
+ evalAllowResultSchema: z.ZodObject<{
4263
+ approved: z.ZodBoolean;
4264
+ }, "strip", z.ZodTypeAny, {
4265
+ approved: boolean;
4266
+ }, {
4267
+ approved: boolean;
4268
+ }>;
4269
+ evalDenyResultSchema: z.ZodUndefined;
4270
+ precheckAllowResultSchema: z.ZodUndefined;
4271
+ precheckDenyResultSchema: z.ZodUndefined;
4272
+ commitParamsSchema: z.ZodUndefined;
4273
+ commitAllowResultSchema: z.ZodUndefined;
4274
+ commitDenyResultSchema: z.ZodUndefined;
4275
+ evaluate: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4276
+ actionType: z.ZodString;
4277
+ }, "strip", z.ZodTypeAny, {
4278
+ actionType: string;
4279
+ }, {
4280
+ actionType: string;
4281
+ }>, z.ZodUndefined, z.ZodObject<{
4282
+ approved: z.ZodBoolean;
4283
+ }, "strip", z.ZodTypeAny, {
4284
+ approved: boolean;
4285
+ }, {
4286
+ approved: boolean;
4287
+ }>, z.ZodUndefined>;
4288
+ precheck: import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
4289
+ actionType: z.ZodString;
4290
+ }, "strip", z.ZodTypeAny, {
4291
+ actionType: string;
4292
+ }, {
4293
+ actionType: string;
4294
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4295
+ commit: import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined> | undefined;
4296
+ };
4297
+ };
4298
+ }, z.ZodObject<{
4299
+ data: z.ZodString;
4300
+ }, "strip", z.ZodTypeAny, {
4301
+ data: string;
4302
+ }, {
4303
+ data: string;
4304
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>;
4305
+ //# sourceMappingURL=allow-deny-test-cases-ability.d.ts.map