@reachv2/sdk 0.4.0 → 0.5.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/types.d.ts CHANGED
@@ -270,14 +270,13 @@ export interface ParamHint {
270
270
  source: "user_input" | "derived" | "user_address" | "computed";
271
271
  computeHint?: string;
272
272
  }
273
- /** 钱包登录 nonce(10 分钟一次性;签名对象即该 nonce 字符串本体) */
273
+ /** 钱包登录挑战 nonce(10 分钟一次性;用于构造 SIWE 消息的 nonce 字段) */
274
274
  export interface WalletNonce {
275
275
  nonce: string;
276
276
  }
277
- /** 钱包签名登录入参(server 契约:签名对象为 nonce) */
277
+ /** 钱包 SIWE(EIP-4361)登录入参(server 契约:标准 SIWE message + 钱包签名) */
278
278
  export interface WalletLoginParams {
279
- wallet: string;
280
- nonce: string;
279
+ message: string;
281
280
  signature: string;
282
281
  }
283
282
  /** 账户公开信息(server `publicAccount` 投影) */
@@ -570,13 +569,13 @@ export interface LightRAGKeyInfo {
570
569
  export interface LightRAGDocumentParams {
571
570
  text: string;
572
571
  file_name?: string;
573
- /** Per-user namespace within a bot (defaults to botId = shared) */
572
+ /** Bot 内用户空间:`botId`(默认)或 `${botId}:<suffix>`;其他值 403 */
574
573
  namespace?: string;
575
574
  }
576
575
  export interface LightRAGQueryParams {
577
576
  query: string;
578
577
  mode?: "mix" | "local" | "global" | "hybrid" | "naive";
579
- /** Per-user namespace within a bot (defaults to botId = shared) */
578
+ /** Bot 内用户空间:`botId`(默认)或 `${botId}:<suffix>`;查询额外允许平台只读 `market` / `onchain` */
580
579
  namespace?: string;
581
580
  }
582
581
  export interface LightRAGQueryResult {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reachv2/sdk",
3
- "version": "0.4.0",
4
- "description": "Reach unified REST API client library for TypeScript — crm 域(AgentApi/Project/Bot/Knowledge/Channel/Conversation/Transaction/Auth/Chat/ApiKey/LightRAG/Orchestration/ScheduledTasks/Internal/Abis/Admin)+ social 域(Content/Tts/Accounts/ContentPlans 内容计划/PublishPlans 发布计划/BrowserTemplates 流程模板/AiMedia 视频脚本/Effect 效果追踪/SeoGeo SEO-GEO 矩阵/ContentRules 内容规则引擎/DataSources 数据源)+ 商户域(Merchant 控制台/ChannelAdmin 通道与群发/EmailChannel 邮件通道)+ 统一 DashboardApi(crm/social 看板)+ 统一租户成员模型(Tenants/Team/Health,G-1~G-3)",
3
+ "version": "0.5.1",
4
+ "description": "Reach unified REST API client library for TypeScript — crm 域(AgentApi/Project/Bot/Knowledge/Channel/Conversation/Transaction/Auth/Chat/ApiKey/LightRAG/Orchestration/ScheduledTasks/Internal/Abis/Admin)+ social 域(Content/Tts/Accounts/ContentPlans 内容计划/PublishPlans 发布计划/BrowserTemplates 流程模板/AiMedia 视频脚本/Effect 效果追踪/SeoGeo SEO-GEO 矩阵/ContentRules 内容规则引擎/DataSources 数据源)+ 商户域(Merchant 控制台/ChannelAdmin 通道与群发/EmailChannel 邮件通道)+ 计费与配额(Billing 社媒计费/SharedBilling 统一订阅与加密收款/Quota 社媒配额)+ 统一 DashboardApi(crm/social 看板)+ 统一租户成员模型(Tenants/Team/Health,G-1~G-3)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -12,14 +12,16 @@
12
12
  }
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist",
16
+ "NOTICE"
16
17
  ],
17
18
  "scripts": {
18
19
  "clean": "rm -rf dist",
19
20
  "build": "npm run clean && tsc",
20
21
  "test": "node --test",
22
+ "lint": "eslint .",
21
23
  "openapi": "node scripts/generate-openapi.mjs",
22
- "prepublishOnly": "npm run build && npm test"
24
+ "prepublishOnly": "npm run lint && npm run build && npm test"
23
25
  },
24
26
  "keywords": [
25
27
  "reach",
@@ -30,7 +32,7 @@
30
32
  "api"
31
33
  ],
32
34
  "author": "Reach Team",
33
- "license": "MIT",
35
+ "license": "Apache-2.0",
34
36
  "repository": {
35
37
  "type": "git",
36
38
  "url": "git+https://github.com/sftgroup/reach.git"
@@ -40,7 +42,9 @@
40
42
  "access": "public"
41
43
  },
42
44
  "devDependencies": {
43
- "typescript": "^5.5.0"
45
+ "eslint": "^10.14.0",
46
+ "typescript": "^5.5.0",
47
+ "typescript-eslint": "^8.72.1"
44
48
  },
45
49
  "engines": {
46
50
  "node": ">=18.0.0"