@keelcodes/sdk 2.7.0 → 2.7.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.
@@ -90,17 +90,26 @@ export interface SessionCreated {
90
90
  /** token paymaster 发现信息(不暴露私钥)。 */
91
91
  export interface PaymasterInfo {
92
92
  chainId: number;
93
+ /** 支持的链(多链部署时长度 > 1)。 */
94
+ chainIds?: number[];
93
95
  paymaster: string;
94
96
  /** voucher 签发地址(仅用于核对)。 */
95
97
  signer: string;
96
98
  voucher: {
97
99
  maxCostWei: string;
100
+ /** 按链生效上限(已按调用方租户策略收敛)。 */
101
+ maxCostWeiByChain?: Record<string, string>;
98
102
  ttlSec: number;
99
103
  maxTtlSec: number;
100
104
  perSenderPerDay: number;
101
105
  /** 固定意图:只赞助 `approve(paymaster, amount)`。 */
102
106
  intent: string;
103
107
  };
108
+ /** 命中租户限额策略时返回;未命中为 null(走部署级默认)。 */
109
+ policy?: {
110
+ tenant: string;
111
+ label?: string;
112
+ } | null;
104
113
  }
105
114
  /** 首笔授权 voucher 申请(无需 native、无需已有 allowance)。 */
106
115
  export interface PaymasterVoucherParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keelcodes/sdk",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Keel SDK — unified access to payment / wallet / data / account modules over https://keel.codes",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",