@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 +11 -7
- package/dist/index.d.ts +11 -7
- package/package.json +1 -1
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
|
-
*
|
|
793
|
-
*
|
|
794
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
886
|
+
/** `max_calls - calls_used` */
|
|
886
887
|
remainingCalls: number;
|
|
887
|
-
/**
|
|
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
|
-
*
|
|
793
|
-
*
|
|
794
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
886
|
+
/** `max_calls - calls_used` */
|
|
886
887
|
remainingCalls: number;
|
|
887
|
-
/**
|
|
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
|
/**
|