@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
@@ -14,13 +14,13 @@ export declare function testPolicyEvaluationResults(): import("..").VincentAbili
14
14
  target: z.ZodString;
15
15
  amount: z.ZodNumber;
16
16
  }, "strip", z.ZodTypeAny, {
17
- action: string;
18
17
  target: string;
19
18
  amount: number;
20
- }, {
21
19
  action: string;
20
+ }, {
22
21
  target: string;
23
22
  amount: number;
23
+ action: string;
24
24
  }>, string, import("../lib/abilityCore/helpers").AbilityPolicyMap<readonly [{
25
25
  vincentPolicy: import("../internal").VincentPolicy<"@lit-protocol/simple-policy@1.0.0", z.ZodObject<{
26
26
  actionType: z.ZodString;
@@ -70,9 +70,9 @@ export declare function testPolicyEvaluationResults(): import("..").VincentAbili
70
70
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
71
71
  ipfsCid: "109i0ifj";
72
72
  abilityParameterMappings: Partial<{
73
- action: "actionType" | "targetId";
74
73
  target: "actionType" | "targetId";
75
74
  amount: "actionType" | "targetId";
75
+ action: "actionType" | "targetId";
76
76
  }>;
77
77
  vincentAbilityApiVersion: string;
78
78
  __schemaTypes: {
@@ -228,9 +228,9 @@ export declare function testPolicyEvaluationResults(): import("..").VincentAbili
228
228
  }>, z.ZodUndefined>>;
229
229
  ipfsCid: "ajialkjads";
230
230
  abilityParameterMappings: Partial<{
231
- action: "value" | "operation" | "resource";
232
231
  target: "value" | "operation" | "resource";
233
232
  amount: "value" | "operation" | "resource";
233
+ action: "value" | "operation" | "resource";
234
234
  }>;
235
235
  vincentAbilityApiVersion: string;
236
236
  __schemaTypes: {
@@ -387,9 +387,9 @@ export declare function testPolicyEvaluationResults(): import("..").VincentAbili
387
387
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>, import("../lib/types").CommitLifecycleFunction<z.ZodUndefined, z.ZodUndefined, z.ZodUndefined>>;
388
388
  ipfsCid: "109i0ifj";
389
389
  abilityParameterMappings: Partial<{
390
- action: "actionType" | "targetId";
391
390
  target: "actionType" | "targetId";
392
391
  amount: "actionType" | "targetId";
392
+ action: "actionType" | "targetId";
393
393
  }>;
394
394
  vincentAbilityApiVersion: string;
395
395
  __schemaTypes: {
@@ -546,9 +546,9 @@ export declare function testPolicyEvaluationResults(): import("..").VincentAbili
546
546
  }>, z.ZodUndefined>>;
547
547
  ipfsCid: "ajialkjads";
548
548
  abilityParameterMappings: Partial<{
549
- action: "value" | "operation" | "resource";
550
549
  target: "value" | "operation" | "resource";
551
550
  amount: "value" | "operation" | "resource";
551
+ action: "value" | "operation" | "resource";
552
552
  }>;
553
553
  vincentAbilityApiVersion: string;
554
554
  __schemaTypes: {