@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/LICENSE +201 -0
- package/NOTICE +9 -0
- package/README.md +39 -7
- package/dist/client.d.ts +9 -0
- package/dist/client.js +8 -0
- package/dist/error.js +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +5 -0
- package/dist/resources/accounts.d.ts +36 -2
- package/dist/resources/accounts.js +32 -1
- package/dist/resources/auth.d.ts +3 -3
- package/dist/resources/auth.js +3 -3
- package/dist/resources/billing.d.ts +142 -0
- package/dist/resources/billing.js +52 -0
- package/dist/resources/browser.d.ts +21 -0
- package/dist/resources/browser.js +13 -0
- package/dist/resources/lightrag.d.ts +10 -1
- package/dist/resources/lightrag.js +10 -1
- package/dist/resources/quota.d.ts +30 -0
- package/dist/resources/quota.js +15 -0
- package/dist/resources/seo-geo.d.ts +30 -4
- package/dist/resources/seo-geo.js +2 -2
- package/dist/resources/shared-billing.d.ts +205 -0
- package/dist/resources/shared-billing.js +67 -0
- package/dist/types.d.ts +5 -6
- package/package.json +10 -6
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
|
-
/**
|
|
273
|
+
/** 钱包登录挑战 nonce(10 分钟一次性;用于构造 SIWE 消息的 nonce 字段) */
|
|
274
274
|
export interface WalletNonce {
|
|
275
275
|
nonce: string;
|
|
276
276
|
}
|
|
277
|
-
/**
|
|
277
|
+
/** 钱包 SIWE(EIP-4361)登录入参(server 契约:标准 SIWE message + 钱包签名) */
|
|
278
278
|
export interface WalletLoginParams {
|
|
279
|
-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
"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": "
|
|
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
|
-
"
|
|
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"
|