sino-bc-cli 1.8.24 → 1.8.26
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/SKILL.md +30 -22
- package/dist/affordance/biz-line.md +7 -13
- package/dist/affordance/common-file.md +23 -0
- package/dist/affordance/wallet.md +207 -0
- package/dist/api-doc/README.md +4 -2
- package/dist/api-doc/oapi/biz-line-ai-strategy.md +45 -0
- package/dist/api-doc/oapi/biz-line-query.md +10 -3
- package/dist/api-doc/oapi/biz-line-strategy.md +12 -44
- package/dist/api-doc/oapi/common-file.md +44 -0
- package/dist/api-doc/oapi/wallet-bill.md +118 -0
- package/dist/api-doc/oapi/wallet-invoice.md +117 -0
- package/dist/api-doc/oapi/wallet-prepaid.md +249 -0
- package/dist/api-doc/oapi/wallet-quota.md +17 -0
- package/dist/api-doc/oapi/wallet-reconciliation.md +88 -0
- package/dist/generated/api-catalog.json +4183 -91
- package/dist/index.js +1 -1
- package/dist/skills/custom/biz-line-strategy-generate/SKILL.md +2 -3
- package/dist/skills/custom/biz-line-strategy-generate/references/api-flow.md +27 -1
- package/dist/skills/custom/biz-line-strategy-generate/references/output-excel.md +1 -1
- package/dist/skills/custom/biz-line-strategy-generate/references/runtime.md +3 -3
- package/dist/skills/custom/biz-line-strategy-generate/references/spec.md +2 -9
- package/dist/skills/custom/biz-line-strategy-generate/scripts/build_report.py +79 -225
- package/dist/skills/custom/biz-line-strategy-generate/scripts/cli_json.py +25 -91
- package/dist/skills/custom/biz-line-strategy-generate/scripts/fetch_data.py +5 -8
- package/dist/skills/custom/biz-line-strategy-generate/scripts/summarize.py +400 -588
- package/dist/skills/custom/biz-line-strategy-generate/scripts/test_strategy_rules.py +6 -53
- package/dist/skills/custom/biz-line-strategy-generate/scripts/test_workflow.py +6 -168
- package/dist/skills/default/sino-bc-shared/SKILL.md +1 -1
- package/dist/skills/default/sino-bc-shared/references/output-contract.md +2 -2
- package/dist/skills/oapi/sino-bc-biz-line/SKILL.md +11 -4
- package/dist/skills/oapi/sino-bc-common-file/SKILL.md +42 -0
- package/dist/skills/oapi/sino-bc-file/SKILL.md +3 -2
- package/dist/skills/oapi/sino-bc-wallet/SKILL.md +72 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 后付额度
|
|
2
|
+
|
|
3
|
+
对应命令:`wallet +<shortcut>` 与 `wallet api <name>`。
|
|
4
|
+
|
|
5
|
+
## 1. 后付信用额度
|
|
6
|
+
|
|
7
|
+
`GET /sino-wallet-pu/platform/quota/credit/info`
|
|
8
|
+
|
|
9
|
+
主体上下文:`tenant=true`。
|
|
10
|
+
|
|
11
|
+
角色范围:`passport`。
|
|
12
|
+
|
|
13
|
+
该接口需要本次调用的主体绑定:先执行 `sino-bc-cli /auth status` 查看认证上下文,再用 `sino-bc-cli /tenant list` 查询当前身份可用主体,按任务明确的主体成对保存 ID 与认证上下文。每次调用传入 `--corporation-id <主体ID> --auth-context-id <认证上下文ID>`,不要放进 `--data`。漏传可补齐已有有效绑定;认证上下文变化时清除旧绑定,重新查询主体并唯一匹配后重新绑定,不能只替换认证标记。
|
|
14
|
+
|
|
15
|
+
调用示例:`sino-bc-cli wallet api quota-credit-info --data '<json>' --corporation-id <主体ID> --auth-context-id <认证上下文ID>`。
|
|
16
|
+
|
|
17
|
+
查当前主体后付授信与使用率;非后付不展示。
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# 月度对账单
|
|
2
|
+
|
|
3
|
+
对应命令:`wallet +<shortcut>` 与 `wallet api <name>`。
|
|
4
|
+
|
|
5
|
+
## 1. 月度对账单列表
|
|
6
|
+
|
|
7
|
+
`POST /sino-wallet-pu/platform/bill-reconciliation/page`
|
|
8
|
+
|
|
9
|
+
主体上下文:`tenant=true`。
|
|
10
|
+
|
|
11
|
+
角色范围:`passport`。
|
|
12
|
+
|
|
13
|
+
该接口需要本次调用的主体绑定:先执行 `sino-bc-cli /auth status` 查看认证上下文,再用 `sino-bc-cli /tenant list` 查询当前身份可用主体,按任务明确的主体成对保存 ID 与认证上下文。每次调用传入 `--corporation-id <主体ID> --auth-context-id <认证上下文ID>`,不要放进 `--data`。漏传可补齐已有有效绑定;认证上下文变化时清除旧绑定,重新查询主体并唯一匹配后重新绑定,不能只替换认证标记。
|
|
14
|
+
|
|
15
|
+
调用示例:`sino-bc-cli wallet api bill-reconciliation-page --data '<json>' --corporation-id <主体ID> --auth-context-id <认证上下文ID>`。
|
|
16
|
+
|
|
17
|
+
按月份区间分页查标准化对账文件(主体+月份,通常每月一条)。
|
|
18
|
+
|
|
19
|
+
**输入参数(--data)**
|
|
20
|
+
|
|
21
|
+
| 字段 | 类型 | 位置 | 必填 | 说明 |
|
|
22
|
+
| --- | --- | --- | --- | --- |
|
|
23
|
+
| `pageNum` | integer | body | 否 | 页码,从 1 开始 |
|
|
24
|
+
| `pageSize` | integer | body | 否 | 每页条数 |
|
|
25
|
+
| `billMonthStart` | string | body | 是 | yyyy-MM |
|
|
26
|
+
| `billMonthEnd` | string | body | 是 | yyyy-MM |
|
|
27
|
+
|
|
28
|
+
## 2. 月度对账单发送记录
|
|
29
|
+
|
|
30
|
+
`POST /sino-wallet-pu/platform/bill-reconciliation/send-log/page`
|
|
31
|
+
|
|
32
|
+
主体上下文:`tenant=true`。
|
|
33
|
+
|
|
34
|
+
角色范围:`passport`。
|
|
35
|
+
|
|
36
|
+
该接口需要本次调用的主体绑定:先执行 `sino-bc-cli /auth status` 查看认证上下文,再用 `sino-bc-cli /tenant list` 查询当前身份可用主体,按任务明确的主体成对保存 ID 与认证上下文。每次调用传入 `--corporation-id <主体ID> --auth-context-id <认证上下文ID>`,不要放进 `--data`。漏传可补齐已有有效绑定;认证上下文变化时清除旧绑定,重新查询主体并唯一匹配后重新绑定,不能只替换认证标记。
|
|
37
|
+
|
|
38
|
+
调用示例:`sino-bc-cli wallet api bill-reconciliation-send-log --data '<json>' --corporation-id <主体ID> --auth-context-id <认证上下文ID>`。
|
|
39
|
+
|
|
40
|
+
按账单月份分页查邮件发送记录。
|
|
41
|
+
|
|
42
|
+
**输入参数(--data)**
|
|
43
|
+
|
|
44
|
+
| 字段 | 类型 | 位置 | 必填 | 说明 |
|
|
45
|
+
| --- | --- | --- | --- | --- |
|
|
46
|
+
| `pageNum` | integer | body | 否 | 页码,从 1 开始 |
|
|
47
|
+
| `pageSize` | integer | body | 否 | 每页条数 |
|
|
48
|
+
| `billMonth` | string | body | 是 | yyyy-MM |
|
|
49
|
+
|
|
50
|
+
## 3. 对账邮件预览
|
|
51
|
+
|
|
52
|
+
`POST /sino-wallet-pu/platform/bill-reconciliation/send-log/preview`
|
|
53
|
+
|
|
54
|
+
主体上下文:`tenant=true`。
|
|
55
|
+
|
|
56
|
+
角色范围:`passport`。
|
|
57
|
+
|
|
58
|
+
该接口需要本次调用的主体绑定:先执行 `sino-bc-cli /auth status` 查看认证上下文,再用 `sino-bc-cli /tenant list` 查询当前身份可用主体,按任务明确的主体成对保存 ID 与认证上下文。每次调用传入 `--corporation-id <主体ID> --auth-context-id <认证上下文ID>`,不要放进 `--data`。漏传可补齐已有有效绑定;认证上下文变化时清除旧绑定,重新查询主体并唯一匹配后重新绑定,不能只替换认证标记。
|
|
59
|
+
|
|
60
|
+
调用示例:`sino-bc-cli wallet api bill-reconciliation-email-preview --data '<json>' --corporation-id <主体ID> --auth-context-id <认证上下文ID>`。
|
|
61
|
+
|
|
62
|
+
按业财发送记录 id 返回邮件 HTML。不要用列表里的本地 emailSendRecordId。
|
|
63
|
+
|
|
64
|
+
**输入参数(--data)**
|
|
65
|
+
|
|
66
|
+
| 字段 | 类型 | 位置 | 必填 | 说明 |
|
|
67
|
+
| --- | --- | --- | --- | --- |
|
|
68
|
+
| `sendRecordId` | integer | body | 是 | 发送记录页的 sendRecordId |
|
|
69
|
+
|
|
70
|
+
## 4. 月度对账单下载链接
|
|
71
|
+
|
|
72
|
+
`GET /sino-wallet-pu/platform/bill-reconciliation/generate/download-url`
|
|
73
|
+
|
|
74
|
+
主体上下文:`tenant=true`。
|
|
75
|
+
|
|
76
|
+
角色范围:`passport`。
|
|
77
|
+
|
|
78
|
+
该接口需要本次调用的主体绑定:先执行 `sino-bc-cli /auth status` 查看认证上下文,再用 `sino-bc-cli /tenant list` 查询当前身份可用主体,按任务明确的主体成对保存 ID 与认证上下文。每次调用传入 `--corporation-id <主体ID> --auth-context-id <认证上下文ID>`,不要放进 `--data`。漏传可补齐已有有效绑定;认证上下文变化时清除旧绑定,重新查询主体并唯一匹配后重新绑定,不能只替换认证标记。
|
|
79
|
+
|
|
80
|
+
调用示例:`sino-bc-cli wallet api bill-reconciliation-download-url --data '<json>' --corporation-id <主体ID> --auth-context-id <认证上下文ID>`。
|
|
81
|
+
|
|
82
|
+
用文件 storageKey(即列表 fileId)换 3 小时有效下载/预览 URL。不要传 corporationId。
|
|
83
|
+
|
|
84
|
+
**输入参数(--data)**
|
|
85
|
+
|
|
86
|
+
| 字段 | 类型 | 位置 | 必填 | 说明 |
|
|
87
|
+
| --- | --- | --- | --- | --- |
|
|
88
|
+
| `storageKey` | string | query | 是 | 文件存储 key,即列表 fileId |
|