@chipi-stack/types 14.13.0 → 14.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -789,9 +789,10 @@ interface SessionConfig {
789
789
  /** Maximum number of transactions allowed - u32 on-chain */
790
790
  maxCalls: number;
791
791
  /**
792
- * Whitelisted function selectors (hex format).
793
- * Empty array = all entrypoints allowed.
794
- * Non-empty = only these selectors can be called with this session.
792
+ * Function names (`"transfer"`) or hex selectors. Names are converted to
793
+ * selectors before registration. A selector is allowed on every contract,
794
+ * not just one, so pair a whitelist with a spending policy.
795
+ * Empty array = all entrypoints allowed (the contract still blocks admin selectors).
795
796
  */
796
797
  allowedEntrypoints: string[];
797
798
  }
@@ -878,13 +879,16 @@ interface GetSessionDataParams {
878
879
  * Represents the on-chain state of a session key.
879
880
  */
880
881
  interface SessionDataResponse {
881
- /** Whether the session is currently active (not revoked, not expired) */
882
+ /** Registered, not expired, and has calls left (mirrors the contract's own check) */
882
883
  isActive: boolean;
883
- /** Unix timestamp when the session expires */
884
+ /** Unix timestamp when the session expires. 0 = not registered, or revoked */
884
885
  validUntil: number;
885
- /** Number of calls remaining (decrements with each use) */
886
+ /** `max_calls - calls_used` */
886
887
  remainingCalls: number;
887
- /** Whitelisted selectors (empty = all allowed) */
888
+ /**
889
+ * Always empty. `get_session_data` returns the whitelist length only, never
890
+ * the selectors, so this is not "all allowed".
891
+ */
888
892
  allowedEntrypoints: string[];
889
893
  }
890
894
  /**
package/dist/index.d.ts CHANGED
@@ -789,9 +789,10 @@ interface SessionConfig {
789
789
  /** Maximum number of transactions allowed - u32 on-chain */
790
790
  maxCalls: number;
791
791
  /**
792
- * Whitelisted function selectors (hex format).
793
- * Empty array = all entrypoints allowed.
794
- * Non-empty = only these selectors can be called with this session.
792
+ * Function names (`"transfer"`) or hex selectors. Names are converted to
793
+ * selectors before registration. A selector is allowed on every contract,
794
+ * not just one, so pair a whitelist with a spending policy.
795
+ * Empty array = all entrypoints allowed (the contract still blocks admin selectors).
795
796
  */
796
797
  allowedEntrypoints: string[];
797
798
  }
@@ -878,13 +879,16 @@ interface GetSessionDataParams {
878
879
  * Represents the on-chain state of a session key.
879
880
  */
880
881
  interface SessionDataResponse {
881
- /** Whether the session is currently active (not revoked, not expired) */
882
+ /** Registered, not expired, and has calls left (mirrors the contract's own check) */
882
883
  isActive: boolean;
883
- /** Unix timestamp when the session expires */
884
+ /** Unix timestamp when the session expires. 0 = not registered, or revoked */
884
885
  validUntil: number;
885
- /** Number of calls remaining (decrements with each use) */
886
+ /** `max_calls - calls_used` */
886
887
  remainingCalls: number;
887
- /** Whitelisted selectors (empty = all allowed) */
888
+ /**
889
+ * Always empty. `get_session_data` returns the whitelist length only, never
890
+ * the selectors, so this is not "all allowed".
891
+ */
888
892
  allowedEntrypoints: string[];
889
893
  }
890
894
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipi-stack/types",
3
- "version": "14.13.0",
3
+ "version": "14.13.1",
4
4
  "description": "Type definitions for Chipi SDK packages",
5
5
  "keywords": [
6
6
  "chipi",