@lit-protocol/vincent-ability-sdk 2.3.4 → 2.4.1-mma

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 (87) hide show
  1. package/README.md +49 -1
  2. package/dist/CHANGELOG.md +6 -0
  3. package/dist/README.md +49 -1
  4. package/dist/package.json +7 -1
  5. package/dist/src/gatedSigner.d.ts +2 -0
  6. package/dist/src/gatedSigner.d.ts.map +1 -0
  7. package/dist/src/gatedSigner.js +5 -0
  8. package/dist/src/gatedSigner.js.map +1 -0
  9. package/dist/src/lib/abilityHelpers/gasSponsorship/get-alchemy-chain-config.js +1 -1
  10. package/dist/src/lib/abilityHelpers/gasSponsorship/get-alchemy-chain-config.js.map +1 -1
  11. package/dist/src/lib/gatedSigner/helpers/eip712.d.ts +34 -0
  12. package/dist/src/lib/gatedSigner/helpers/eip712.d.ts.map +1 -0
  13. package/dist/src/lib/gatedSigner/helpers/eip712.js +30 -0
  14. package/dist/src/lib/gatedSigner/helpers/eip712.js.map +1 -0
  15. package/dist/src/lib/gatedSigner/helpers/hex.d.ts +5 -0
  16. package/dist/src/lib/gatedSigner/helpers/hex.d.ts.map +1 -0
  17. package/dist/src/lib/gatedSigner/helpers/hex.js +16 -0
  18. package/dist/src/lib/gatedSigner/helpers/hex.js.map +1 -0
  19. package/dist/src/lib/gatedSigner/helpers/lifecycleFunctions.d.ts +54 -0
  20. package/dist/src/lib/gatedSigner/helpers/lifecycleFunctions.d.ts.map +1 -0
  21. package/dist/src/lib/gatedSigner/helpers/lifecycleFunctions.js +91 -0
  22. package/dist/src/lib/gatedSigner/helpers/lifecycleFunctions.js.map +1 -0
  23. package/dist/src/lib/gatedSigner/helpers/lowLevelCall.d.ts +13 -0
  24. package/dist/src/lib/gatedSigner/helpers/lowLevelCall.d.ts.map +1 -0
  25. package/dist/src/lib/gatedSigner/helpers/lowLevelCall.js +21 -0
  26. package/dist/src/lib/gatedSigner/helpers/lowLevelCall.js.map +1 -0
  27. package/dist/src/lib/gatedSigner/helpers/schemas.d.ts +925 -0
  28. package/dist/src/lib/gatedSigner/helpers/schemas.d.ts.map +1 -0
  29. package/dist/src/lib/gatedSigner/helpers/schemas.js +64 -0
  30. package/dist/src/lib/gatedSigner/helpers/schemas.js.map +1 -0
  31. package/dist/src/lib/gatedSigner/helpers/signTransaction.d.ts +9 -0
  32. package/dist/src/lib/gatedSigner/helpers/signTransaction.d.ts.map +1 -0
  33. package/dist/src/lib/gatedSigner/helpers/signTransaction.js +30 -0
  34. package/dist/src/lib/gatedSigner/helpers/signTransaction.js.map +1 -0
  35. package/dist/src/lib/gatedSigner/helpers/signUserOperation.d.ts +15 -0
  36. package/dist/src/lib/gatedSigner/helpers/signUserOperation.d.ts.map +1 -0
  37. package/dist/src/lib/gatedSigner/helpers/signUserOperation.js +115 -0
  38. package/dist/src/lib/gatedSigner/helpers/signUserOperation.js.map +1 -0
  39. package/dist/src/lib/gatedSigner/helpers/simulation.d.ts +204 -0
  40. package/dist/src/lib/gatedSigner/helpers/simulation.d.ts.map +1 -0
  41. package/dist/src/lib/gatedSigner/helpers/simulation.js +93 -0
  42. package/dist/src/lib/gatedSigner/helpers/simulation.js.map +1 -0
  43. package/dist/src/lib/gatedSigner/helpers/smartAccounts/kernel.d.ts +8 -0
  44. package/dist/src/lib/gatedSigner/helpers/smartAccounts/kernel.d.ts.map +1 -0
  45. package/dist/src/lib/gatedSigner/helpers/smartAccounts/kernel.js +177 -0
  46. package/dist/src/lib/gatedSigner/helpers/smartAccounts/kernel.js.map +1 -0
  47. package/dist/src/lib/gatedSigner/helpers/smartAccounts/safe.d.ts +26 -0
  48. package/dist/src/lib/gatedSigner/helpers/smartAccounts/safe.d.ts.map +1 -0
  49. package/dist/src/lib/gatedSigner/helpers/smartAccounts/safe.js +195 -0
  50. package/dist/src/lib/gatedSigner/helpers/smartAccounts/safe.js.map +1 -0
  51. package/dist/src/lib/gatedSigner/helpers/toLitActionAccount.d.ts +20 -0
  52. package/dist/src/lib/gatedSigner/helpers/toLitActionAccount.d.ts.map +1 -0
  53. package/dist/src/lib/gatedSigner/helpers/toLitActionAccount.js +69 -0
  54. package/dist/src/lib/gatedSigner/helpers/toLitActionAccount.js.map +1 -0
  55. package/dist/src/lib/gatedSigner/helpers/transaction.d.ts +148 -0
  56. package/dist/src/lib/gatedSigner/helpers/transaction.d.ts.map +1 -0
  57. package/dist/src/lib/gatedSigner/helpers/transaction.js +87 -0
  58. package/dist/src/lib/gatedSigner/helpers/transaction.js.map +1 -0
  59. package/dist/src/lib/gatedSigner/helpers/userOperation.d.ts +200 -0
  60. package/dist/src/lib/gatedSigner/helpers/userOperation.d.ts.map +1 -0
  61. package/dist/src/lib/gatedSigner/helpers/userOperation.js +106 -0
  62. package/dist/src/lib/gatedSigner/helpers/userOperation.js.map +1 -0
  63. package/dist/src/lib/gatedSigner/helpers/validation.d.ts +43 -0
  64. package/dist/src/lib/gatedSigner/helpers/validation.d.ts.map +1 -0
  65. package/dist/src/lib/gatedSigner/helpers/validation.js +81 -0
  66. package/dist/src/lib/gatedSigner/helpers/validation.js.map +1 -0
  67. package/dist/src/lib/gatedSigner/index.d.ts +12 -0
  68. package/dist/src/lib/gatedSigner/index.d.ts.map +1 -0
  69. package/dist/src/lib/gatedSigner/index.js +19 -0
  70. package/dist/src/lib/gatedSigner/index.js.map +1 -0
  71. package/dist/src/lib/gatedSigner/vincentGatedSignerAbility.d.ts +566 -0
  72. package/dist/src/lib/gatedSigner/vincentGatedSignerAbility.d.ts.map +1 -0
  73. package/dist/src/lib/gatedSigner/vincentGatedSignerAbility.js +48 -0
  74. package/dist/src/lib/gatedSigner/vincentGatedSignerAbility.js.map +1 -0
  75. package/dist/src/type-inference-verification/ability-definition-tests.d.ts +6 -6
  76. package/dist/src/type-inference-verification/allow-deny-test-cases-ability.d.ts +90 -90
  77. package/dist/src/type-inference-verification/allow-deny-test-cases.d.ts +8 -8
  78. package/dist/src/type-inference-verification/context-switching-tests.d.ts +3 -3
  79. package/dist/src/type-inference-verification/create-vincent-gated-signer-ability.d.ts +533 -0
  80. package/dist/src/type-inference-verification/create-vincent-gated-signer-ability.d.ts.map +1 -0
  81. package/dist/src/type-inference-verification/create-vincent-gated-signer-ability.js +19 -0
  82. package/dist/src/type-inference-verification/create-vincent-gated-signer-ability.js.map +1 -0
  83. package/dist/src/type-inference-verification/parameter-inference-tests-tool.d.ts +58 -58
  84. package/dist/src/type-inference-verification/parameter-inference-tests.d.ts +5 -5
  85. package/dist/src/type-inference-verification/playground.d.ts +8 -8
  86. package/dist/src/type-inference-verification/schema-test.d.ts +5 -5
  87. package/package.json +8 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-vincent-gated-signer-ability.js","sourceRoot":"","sources":["../../../src/type-inference-verification/create-vincent-gated-signer-ability.ts"],"names":[],"mappings":";AAAA,yEAAyE;;;AAEzE,4FAA+F;AAElF,QAAA,kBAAkB,GAAG,IAAA,2DAA+B,EAAC;IAChE,WAAW,EAAE,4BAA4B;IACzC,kBAAkB,EAAE,sBAAsB;IAE1C,iBAAiB,EAAE,GAAG,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,CAAC;IACD,mBAAmB,EAAE,GAAG,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;IACD,kBAAkB,EAAE,GAAG,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC,CAAC"}
@@ -22,15 +22,15 @@ declare function testBasicParameterInference(): import("..").VincentAbility<z.Zo
22
22
  dryRun?: boolean | undefined;
23
23
  }>>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- action: string;
26
25
  target: string;
26
+ action: string;
27
27
  options?: {
28
28
  priority?: number | undefined;
29
29
  dryRun?: boolean | undefined;
30
30
  } | undefined;
31
31
  }, {
32
- action: string;
33
32
  target: string;
33
+ action: string;
34
34
  options?: {
35
35
  priority?: number | undefined;
36
36
  dryRun?: boolean | undefined;
@@ -69,8 +69,8 @@ declare function testBasicParameterInference(): import("..").VincentAbility<z.Zo
69
69
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
70
70
  ipfsCid: "209oifusfdj";
71
71
  abilityParameterMappings: Partial<{
72
- action: "operation";
73
72
  target: "operation";
73
+ action: "operation";
74
74
  options?: "operation" | undefined;
75
75
  }>;
76
76
  vincentAbilityApiVersion: string;
@@ -153,8 +153,8 @@ declare function testBasicParameterInference(): import("..").VincentAbility<z.Zo
153
153
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
154
154
  ipfsCid: "209oifusfdj";
155
155
  abilityParameterMappings: Partial<{
156
- action: "operation";
157
156
  target: "operation";
157
+ action: "operation";
158
158
  options?: "operation" | undefined;
159
159
  }>;
160
160
  vincentAbilityApiVersion: string;
@@ -221,15 +221,15 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
221
221
  dryRun?: boolean | undefined;
222
222
  }>>;
223
223
  }, "strip", z.ZodTypeAny, {
224
- action: string;
225
224
  target: string;
225
+ action: string;
226
226
  options?: {
227
227
  priority?: number | undefined;
228
228
  dryRun?: boolean | undefined;
229
229
  } | undefined;
230
230
  }, {
231
- action: string;
232
231
  target: string;
232
+ action: string;
233
233
  options?: {
234
234
  priority?: number | undefined;
235
235
  dryRun?: boolean | undefined;
@@ -247,25 +247,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
247
247
  timestamp: z.ZodNumber;
248
248
  signature: z.ZodString;
249
249
  }, "strip", z.ZodTypeAny, {
250
- timestamp: number;
251
250
  signature: string;
252
- }, {
253
251
  timestamp: number;
252
+ }, {
254
253
  signature: string;
254
+ timestamp: number;
255
255
  }>;
256
256
  flags: z.ZodArray<z.ZodString, "many">;
257
257
  }, "strip", z.ZodTypeAny, {
258
258
  level: "low" | "medium" | "high";
259
259
  metadata: {
260
- timestamp: number;
261
260
  signature: string;
261
+ timestamp: number;
262
262
  };
263
263
  flags: string[];
264
264
  }, {
265
265
  level: "low" | "medium" | "high";
266
266
  metadata: {
267
- timestamp: number;
268
267
  signature: string;
268
+ timestamp: number;
269
269
  };
270
270
  flags: string[];
271
271
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
@@ -280,25 +280,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
280
280
  timestamp: z.ZodNumber;
281
281
  signature: z.ZodString;
282
282
  }, "strip", z.ZodTypeAny, {
283
- timestamp: number;
284
283
  signature: string;
285
- }, {
286
284
  timestamp: number;
285
+ }, {
287
286
  signature: string;
287
+ timestamp: number;
288
288
  }>;
289
289
  flags: z.ZodArray<z.ZodString, "many">;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  level: "low" | "medium" | "high";
292
292
  metadata: {
293
- timestamp: number;
294
293
  signature: string;
294
+ timestamp: number;
295
295
  };
296
296
  flags: string[];
297
297
  }, {
298
298
  level: "low" | "medium" | "high";
299
299
  metadata: {
300
- timestamp: number;
301
300
  signature: string;
301
+ timestamp: number;
302
302
  };
303
303
  flags: string[];
304
304
  }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
@@ -310,8 +310,8 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
310
310
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
311
311
  ipfsCid: "-0932i0fjs0jfd";
312
312
  abilityParameterMappings: Partial<{
313
- action: "command";
314
313
  target: "command";
314
+ action: "command";
315
315
  options?: "command" | undefined;
316
316
  }>;
317
317
  vincentAbilityApiVersion: string;
@@ -330,25 +330,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
330
330
  timestamp: z.ZodNumber;
331
331
  signature: z.ZodString;
332
332
  }, "strip", z.ZodTypeAny, {
333
- timestamp: number;
334
333
  signature: string;
335
- }, {
336
334
  timestamp: number;
335
+ }, {
337
336
  signature: string;
337
+ timestamp: number;
338
338
  }>;
339
339
  flags: z.ZodArray<z.ZodString, "many">;
340
340
  }, "strip", z.ZodTypeAny, {
341
341
  level: "low" | "medium" | "high";
342
342
  metadata: {
343
- timestamp: number;
344
343
  signature: string;
344
+ timestamp: number;
345
345
  };
346
346
  flags: string[];
347
347
  }, {
348
348
  level: "low" | "medium" | "high";
349
349
  metadata: {
350
- timestamp: number;
351
350
  signature: string;
351
+ timestamp: number;
352
352
  };
353
353
  flags: string[];
354
354
  }>;
@@ -370,25 +370,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
370
370
  timestamp: z.ZodNumber;
371
371
  signature: z.ZodString;
372
372
  }, "strip", z.ZodTypeAny, {
373
- timestamp: number;
374
373
  signature: string;
375
- }, {
376
374
  timestamp: number;
375
+ }, {
377
376
  signature: string;
377
+ timestamp: number;
378
378
  }>;
379
379
  flags: z.ZodArray<z.ZodString, "many">;
380
380
  }, "strip", z.ZodTypeAny, {
381
381
  level: "low" | "medium" | "high";
382
382
  metadata: {
383
- timestamp: number;
384
383
  signature: string;
384
+ timestamp: number;
385
385
  };
386
386
  flags: string[];
387
387
  }, {
388
388
  level: "low" | "medium" | "high";
389
389
  metadata: {
390
- timestamp: number;
391
390
  signature: string;
391
+ timestamp: number;
392
392
  };
393
393
  flags: string[];
394
394
  }>, z.ZodUndefined>;
@@ -471,8 +471,8 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
471
471
  }>, z.ZodUndefined>>;
472
472
  ipfsCid: "1098u2098qjfn";
473
473
  abilityParameterMappings: Partial<{
474
- action: "resource";
475
474
  target: "resource";
475
+ action: "resource";
476
476
  options?: "resource" | undefined;
477
477
  }>;
478
478
  vincentAbilityApiVersion: string;
@@ -627,8 +627,8 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
627
627
  }>, z.ZodUndefined>>;
628
628
  ipfsCid: "1098u2098qjfn";
629
629
  abilityParameterMappings: Partial<{
630
- action: "resource";
631
630
  target: "resource";
631
+ action: "resource";
632
632
  options?: "resource" | undefined;
633
633
  }>;
634
634
  vincentAbilityApiVersion: string;
@@ -726,25 +726,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
726
726
  timestamp: z.ZodNumber;
727
727
  signature: z.ZodString;
728
728
  }, "strip", z.ZodTypeAny, {
729
- timestamp: number;
730
729
  signature: string;
731
- }, {
732
730
  timestamp: number;
731
+ }, {
733
732
  signature: string;
733
+ timestamp: number;
734
734
  }>;
735
735
  flags: z.ZodArray<z.ZodString, "many">;
736
736
  }, "strip", z.ZodTypeAny, {
737
737
  level: "low" | "medium" | "high";
738
738
  metadata: {
739
- timestamp: number;
740
739
  signature: string;
740
+ timestamp: number;
741
741
  };
742
742
  flags: string[];
743
743
  }, {
744
744
  level: "low" | "medium" | "high";
745
745
  metadata: {
746
- timestamp: number;
747
746
  signature: string;
747
+ timestamp: number;
748
748
  };
749
749
  flags: string[];
750
750
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
@@ -759,25 +759,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
759
759
  timestamp: z.ZodNumber;
760
760
  signature: z.ZodString;
761
761
  }, "strip", z.ZodTypeAny, {
762
- timestamp: number;
763
762
  signature: string;
764
- }, {
765
763
  timestamp: number;
764
+ }, {
766
765
  signature: string;
766
+ timestamp: number;
767
767
  }>;
768
768
  flags: z.ZodArray<z.ZodString, "many">;
769
769
  }, "strip", z.ZodTypeAny, {
770
770
  level: "low" | "medium" | "high";
771
771
  metadata: {
772
- timestamp: number;
773
772
  signature: string;
773
+ timestamp: number;
774
774
  };
775
775
  flags: string[];
776
776
  }, {
777
777
  level: "low" | "medium" | "high";
778
778
  metadata: {
779
- timestamp: number;
780
779
  signature: string;
780
+ timestamp: number;
781
781
  };
782
782
  flags: string[];
783
783
  }>, z.ZodUndefined>, import("../lib/types").PolicyLifecycleFunction<z.ZodObject<{
@@ -789,8 +789,8 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
789
789
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
790
790
  ipfsCid: "-0932i0fjs0jfd";
791
791
  abilityParameterMappings: Partial<{
792
- action: "command";
793
792
  target: "command";
793
+ action: "command";
794
794
  options?: "command" | undefined;
795
795
  }>;
796
796
  vincentAbilityApiVersion: string;
@@ -809,25 +809,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
809
809
  timestamp: z.ZodNumber;
810
810
  signature: z.ZodString;
811
811
  }, "strip", z.ZodTypeAny, {
812
- timestamp: number;
813
812
  signature: string;
814
- }, {
815
813
  timestamp: number;
814
+ }, {
816
815
  signature: string;
816
+ timestamp: number;
817
817
  }>;
818
818
  flags: z.ZodArray<z.ZodString, "many">;
819
819
  }, "strip", z.ZodTypeAny, {
820
820
  level: "low" | "medium" | "high";
821
821
  metadata: {
822
- timestamp: number;
823
822
  signature: string;
823
+ timestamp: number;
824
824
  };
825
825
  flags: string[];
826
826
  }, {
827
827
  level: "low" | "medium" | "high";
828
828
  metadata: {
829
- timestamp: number;
830
829
  signature: string;
830
+ timestamp: number;
831
831
  };
832
832
  flags: string[];
833
833
  }>;
@@ -849,25 +849,25 @@ declare function testPolicyResultInference(): import("..").VincentAbility<z.ZodO
849
849
  timestamp: z.ZodNumber;
850
850
  signature: z.ZodString;
851
851
  }, "strip", z.ZodTypeAny, {
852
- timestamp: number;
853
852
  signature: string;
854
- }, {
855
853
  timestamp: number;
854
+ }, {
856
855
  signature: string;
856
+ timestamp: number;
857
857
  }>;
858
858
  flags: z.ZodArray<z.ZodString, "many">;
859
859
  }, "strip", z.ZodTypeAny, {
860
860
  level: "low" | "medium" | "high";
861
861
  metadata: {
862
- timestamp: number;
863
862
  signature: string;
863
+ timestamp: number;
864
864
  };
865
865
  flags: string[];
866
866
  }, {
867
867
  level: "low" | "medium" | "high";
868
868
  metadata: {
869
- timestamp: number;
870
869
  signature: string;
870
+ timestamp: number;
871
871
  };
872
872
  flags: string[];
873
873
  }>, z.ZodUndefined>;
@@ -899,15 +899,15 @@ declare function testComplexDestructuring(): import("..").VincentAbility<z.ZodOb
899
899
  dryRun?: boolean | undefined;
900
900
  }>>;
901
901
  }, "strip", z.ZodTypeAny, {
902
- action: string;
903
902
  target: string;
903
+ action: string;
904
904
  options?: {
905
905
  priority?: number | undefined;
906
906
  dryRun?: boolean | undefined;
907
907
  } | undefined;
908
908
  }, {
909
- action: string;
910
909
  target: string;
910
+ action: string;
911
911
  options?: {
912
912
  priority?: number | undefined;
913
913
  dryRun?: boolean | undefined;
@@ -946,8 +946,8 @@ declare function testComplexDestructuring(): import("..").VincentAbility<z.ZodOb
946
946
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
947
947
  ipfsCid: "1-093iofijn209j";
948
948
  abilityParameterMappings: Partial<{
949
- action: "action";
950
949
  target: "action";
950
+ action: "action";
951
951
  options?: "action" | undefined;
952
952
  }>;
953
953
  vincentAbilityApiVersion: string;
@@ -1030,8 +1030,8 @@ declare function testComplexDestructuring(): import("..").VincentAbility<z.ZodOb
1030
1030
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1031
1031
  ipfsCid: "1-093iofijn209j";
1032
1032
  abilityParameterMappings: Partial<{
1033
- action: "action";
1034
1033
  target: "action";
1034
+ action: "action";
1035
1035
  options?: "action" | undefined;
1036
1036
  }>;
1037
1037
  vincentAbilityApiVersion: string;
@@ -1147,8 +1147,8 @@ declare function testAdvancedParameterValidation(): import("..").VincentAbility<
1147
1147
  }>]>>;
1148
1148
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1149
1149
  }, "strip", z.ZodTypeAny, {
1150
- action: "create" | "read" | "update" | "delete";
1151
1150
  target: string;
1151
+ action: "create" | "read" | "update" | "delete";
1152
1152
  data?: {
1153
1153
  value: string;
1154
1154
  type: "string";
@@ -1161,8 +1161,8 @@ declare function testAdvancedParameterValidation(): import("..").VincentAbility<
1161
1161
  } | undefined;
1162
1162
  metadata?: Record<string, string> | undefined;
1163
1163
  }, {
1164
- action: "create" | "read" | "update" | "delete";
1165
1164
  target: string;
1165
+ action: "create" | "read" | "update" | "delete";
1166
1166
  data?: {
1167
1167
  value: string;
1168
1168
  type: "string";
@@ -1196,8 +1196,8 @@ declare function testAdvancedParameterValidation(): import("..").VincentAbility<
1196
1196
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1197
1197
  ipfsCid: "1-093iofijn209j";
1198
1198
  abilityParameterMappings: Partial<{
1199
- action: "op";
1200
1199
  target: "op";
1200
+ action: "op";
1201
1201
  data?: "op" | undefined;
1202
1202
  metadata?: "op" | undefined;
1203
1203
  }>;
@@ -1257,8 +1257,8 @@ declare function testAdvancedParameterValidation(): import("..").VincentAbility<
1257
1257
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1258
1258
  ipfsCid: "1-093iofijn209j";
1259
1259
  abilityParameterMappings: Partial<{
1260
- action: "op";
1261
1260
  target: "op";
1261
+ action: "op";
1262
1262
  data?: "op" | undefined;
1263
1263
  metadata?: "op" | undefined;
1264
1264
  }>;
@@ -1315,15 +1315,15 @@ declare function testMissingTypes(): {
1315
1315
  dryRun?: boolean | undefined;
1316
1316
  }>>;
1317
1317
  }, "strip", z.ZodTypeAny, {
1318
- action: string;
1319
1318
  target: string;
1319
+ action: string;
1320
1320
  options?: {
1321
1321
  priority?: number | undefined;
1322
1322
  dryRun?: boolean | undefined;
1323
1323
  } | undefined;
1324
1324
  }, {
1325
- action: string;
1326
1325
  target: string;
1326
+ action: string;
1327
1327
  options?: {
1328
1328
  priority?: number | undefined;
1329
1329
  dryRun?: boolean | undefined;
@@ -1362,8 +1362,8 @@ declare function testMissingTypes(): {
1362
1362
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1363
1363
  ipfsCid: "20198jfgnfj";
1364
1364
  abilityParameterMappings: Partial<{
1365
- action: "op";
1366
1365
  target: "op";
1366
+ action: "op";
1367
1367
  options?: "op" | undefined;
1368
1368
  }>;
1369
1369
  vincentAbilityApiVersion: string;
@@ -1446,8 +1446,8 @@ declare function testMissingTypes(): {
1446
1446
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1447
1447
  ipfsCid: "20198jfgnfj";
1448
1448
  abilityParameterMappings: Partial<{
1449
- action: "op";
1450
1449
  target: "op";
1450
+ action: "op";
1451
1451
  options?: "op" | undefined;
1452
1452
  }>;
1453
1453
  vincentAbilityApiVersion: string;
@@ -1517,15 +1517,15 @@ declare function testMissingTypes(): {
1517
1517
  dryRun?: boolean | undefined;
1518
1518
  }>>;
1519
1519
  }, "strip", z.ZodTypeAny, {
1520
- action: string;
1521
1520
  target: string;
1521
+ action: string;
1522
1522
  options?: {
1523
1523
  priority?: number | undefined;
1524
1524
  dryRun?: boolean | undefined;
1525
1525
  } | undefined;
1526
1526
  }, {
1527
- action: string;
1528
1527
  target: string;
1528
+ action: string;
1529
1529
  options?: {
1530
1530
  priority?: number | undefined;
1531
1531
  dryRun?: boolean | undefined;
@@ -1564,8 +1564,8 @@ declare function testMissingTypes(): {
1564
1564
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1565
1565
  ipfsCid: "20198jfgnfj";
1566
1566
  abilityParameterMappings: Partial<{
1567
- action: "op";
1568
1567
  target: "op";
1568
+ action: "op";
1569
1569
  options?: "op" | undefined;
1570
1570
  }>;
1571
1571
  vincentAbilityApiVersion: string;
@@ -1648,8 +1648,8 @@ declare function testMissingTypes(): {
1648
1648
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1649
1649
  ipfsCid: "20198jfgnfj";
1650
1650
  abilityParameterMappings: Partial<{
1651
- action: "op";
1652
1651
  target: "op";
1652
+ action: "op";
1653
1653
  options?: "op" | undefined;
1654
1654
  }>;
1655
1655
  vincentAbilityApiVersion: string;
@@ -54,9 +54,9 @@ declare function testBasicSchemaValidation(): {
54
54
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
55
55
  ipfsCid: "oi3wjfn9048w2j";
56
56
  abilityParameterMappings: Partial<{
57
- action: "actionType";
58
57
  target: "actionType";
59
58
  amount: "actionType";
59
+ action: "actionType";
60
60
  }>;
61
61
  vincentAbilityApiVersion: string;
62
62
  __schemaTypes: {
@@ -141,9 +141,9 @@ declare function testNoSchemaValidation(): {
141
141
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
142
142
  ipfsCid: "1098jwsdoifosdji";
143
143
  abilityParameterMappings: Partial<{
144
- action: "actionType";
145
144
  target: "actionType";
146
145
  amount: "actionType";
146
+ action: "actionType";
147
147
  }>;
148
148
  vincentAbilityApiVersion: string;
149
149
  __schemaTypes: {
@@ -204,9 +204,9 @@ declare function testStringSchemaValidation(): {
204
204
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
205
205
  ipfsCid: "082u0fij0w9jf0sjdf";
206
206
  abilityParameterMappings: Partial<{
207
- action: "actionType";
208
207
  target: "actionType";
209
208
  amount: "actionType";
209
+ action: "actionType";
210
210
  }>;
211
211
  vincentAbilityApiVersion: string;
212
212
  __schemaTypes: {
@@ -285,9 +285,9 @@ declare function testDenyValidation(): {
285
285
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
286
286
  ipfsCid: "198hf0298w3hfo9idfjh";
287
287
  abilityParameterMappings: Partial<{
288
- action: "actionType";
289
288
  target: "actionType";
290
289
  amount: "actionType";
290
+ action: "actionType";
291
291
  }>;
292
292
  vincentAbilityApiVersion: string;
293
293
  __schemaTypes: {
@@ -390,9 +390,9 @@ declare function testContextSchemas(): {
390
390
  }>, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
391
391
  ipfsCid: "swmfd08238rhjdskjfn";
392
392
  abilityParameterMappings: Partial<{
393
- action: "actionType";
394
393
  target: "actionType";
395
394
  amount: "actionType";
395
+ action: "actionType";
396
396
  }>;
397
397
  vincentAbilityApiVersion: string;
398
398
  __schemaTypes: {
@@ -4,13 +4,13 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
4
4
  target: z.ZodString;
5
5
  amount: z.ZodNumber;
6
6
  }, "strip", z.ZodTypeAny, {
7
- action: string;
8
7
  target: string;
9
8
  amount: number;
10
- }, {
11
9
  action: string;
10
+ }, {
12
11
  target: string;
13
12
  amount: number;
13
+ action: string;
14
14
  }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
15
15
  vincentPolicy: import("../internal").VincentPolicy<"extra-rate-limit", z.ZodObject<{
16
16
  targetAllowed: z.ZodBoolean;
@@ -114,9 +114,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
114
114
  }>>>;
115
115
  ipfsCid: "QmX7Dqn4zYhJVvXYwKr8cFX5Xp7gVpqK5r8QHwvF8zYjXa";
116
116
  abilityParameterMappings: Partial<{
117
- action: "actionType" | "targetAllowed";
118
117
  target: "actionType" | "targetAllowed";
119
118
  amount: "actionType" | "targetAllowed";
119
+ action: "actionType" | "targetAllowed";
120
120
  }>;
121
121
  vincentAbilityApiVersion: string;
122
122
  __schemaTypes: {
@@ -377,9 +377,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
377
377
  }>>>;
378
378
  ipfsCid: "QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG";
379
379
  abilityParameterMappings: Partial<{
380
- action: "maxAmount" | "currency";
381
380
  target: "maxAmount" | "currency";
382
381
  amount: "maxAmount" | "currency";
382
+ action: "maxAmount" | "currency";
383
383
  }>;
384
384
  vincentAbilityApiVersion: string;
385
385
  __schemaTypes: {
@@ -637,9 +637,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
637
637
  }>, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
638
638
  ipfsCid: "QmYwAasdPJzv5CZA625s3Xf2nemtYgPpHdWEz79ojWnPbdG";
639
639
  abilityParameterMappings: Partial<{
640
- action: "abilityName" | "maxUsage";
641
640
  target: "abilityName" | "maxUsage";
642
641
  amount: "abilityName" | "maxUsage";
642
+ action: "abilityName" | "maxUsage";
643
643
  }>;
644
644
  vincentAbilityApiVersion: string;
645
645
  __schemaTypes: {
@@ -856,9 +856,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
856
856
  }>>>;
857
857
  ipfsCid: "QmX7Dqn4zYhJVvXYwKr8cFX5Xp7gVpqK5r8QHwvF8zYjXa";
858
858
  abilityParameterMappings: Partial<{
859
- action: "actionType" | "targetAllowed";
860
859
  target: "actionType" | "targetAllowed";
861
860
  amount: "actionType" | "targetAllowed";
861
+ action: "actionType" | "targetAllowed";
862
862
  }>;
863
863
  vincentAbilityApiVersion: string;
864
864
  __schemaTypes: {
@@ -1120,9 +1120,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
1120
1120
  }>>>;
1121
1121
  ipfsCid: "QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG";
1122
1122
  abilityParameterMappings: Partial<{
1123
- action: "maxAmount" | "currency";
1124
1123
  target: "maxAmount" | "currency";
1125
1124
  amount: "maxAmount" | "currency";
1125
+ action: "maxAmount" | "currency";
1126
1126
  }>;
1127
1127
  vincentAbilityApiVersion: string;
1128
1128
  __schemaTypes: {
@@ -1381,9 +1381,9 @@ export declare const myAbility: import("..").VincentAbility<z.ZodObject<{
1381
1381
  }>, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
1382
1382
  ipfsCid: "QmYwAasdPJzv5CZA625s3Xf2nemtYgPpHdWEz79ojWnPbdG";
1383
1383
  abilityParameterMappings: Partial<{
1384
- action: "abilityName" | "maxUsage";
1385
1384
  target: "abilityName" | "maxUsage";
1386
1385
  amount: "abilityName" | "maxUsage";
1386
+ action: "abilityName" | "maxUsage";
1387
1387
  }>;
1388
1388
  vincentAbilityApiVersion: string;
1389
1389
  __schemaTypes: {
@@ -58,9 +58,9 @@ export declare const testRealPolicy: {
58
58
  }>, ZodUndefined, ZodUndefined, ZodUndefined>, import("../lib/types").CommitLifecycleFunction<ZodUndefined, ZodUndefined, ZodUndefined>>;
59
59
  ipfsCid: "1091jkfn2039j802jf";
60
60
  abilityParameterMappings: Partial<{
61
- action: "actionType";
62
61
  target: "actionType";
63
62
  amount: "actionType";
63
+ action: "actionType";
64
64
  }>;
65
65
  vincentAbilityApiVersion: string;
66
66
  __schemaTypes: {
@@ -136,9 +136,9 @@ export declare function testWithoutSchema(): {
136
136
  }>, ZodUndefined, ZodUndefined, ZodUndefined>, import("../lib/types").CommitLifecycleFunction<ZodUndefined, ZodUndefined, ZodUndefined>>;
137
137
  ipfsCid: "1091jkfn2039j802jf";
138
138
  abilityParameterMappings: Partial<{
139
- action: "actionType";
140
139
  target: "actionType";
141
140
  amount: "actionType";
141
+ action: "actionType";
142
142
  }>;
143
143
  vincentAbilityApiVersion: string;
144
144
  __schemaTypes: {
@@ -201,9 +201,9 @@ export declare function testStringSchema(): {
201
201
  }>, ZodUndefined, ZodUndefined, ZodUndefined>, import("../lib/types").CommitLifecycleFunction<ZodUndefined, ZodUndefined, ZodUndefined>>;
202
202
  ipfsCid: "1091jkfn2039j802jf";
203
203
  abilityParameterMappings: Partial<{
204
- action: "actionType";
205
204
  target: "actionType";
206
205
  amount: "actionType";
206
+ action: "actionType";
207
207
  }>;
208
208
  vincentAbilityApiVersion: string;
209
209
  __schemaTypes: {
@@ -315,9 +315,9 @@ export declare function testDifferentContexts(): {
315
315
  }>, ZodUndefined>>;
316
316
  ipfsCid: "1091jkfn2039j802jf";
317
317
  abilityParameterMappings: Partial<{
318
- action: "actionType";
319
318
  target: "actionType";
320
319
  amount: "actionType";
320
+ action: "actionType";
321
321
  }>;
322
322
  vincentAbilityApiVersion: string;
323
323
  __schemaTypes: {
@@ -428,9 +428,9 @@ export declare function testPrimitiveSchemas(): {
428
428
  }>, ZodUndefined, ZodUndefined, ZodUndefined>, import("../lib/types").CommitLifecycleFunction<ZodUndefined, ZodUndefined, ZodUndefined>>;
429
429
  ipfsCid: "1091jkfn2039j802jf";
430
430
  abilityParameterMappings: Partial<{
431
- action: "actionType";
432
431
  target: "actionType";
433
432
  amount: "actionType";
433
+ action: "actionType";
434
434
  }>;
435
435
  vincentAbilityApiVersion: string;
436
436
  __schemaTypes: {