@yixiaoermail/cli 3.2.14 → 3.2.16
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/checksums.txt +6 -6
- package/package.json +1 -1
- package/references/cli/command-reference.md +3 -0
- package/references/platforms/imageText/index.md +2 -0
- package/references/platforms/imageText/shipinhao.md +1 -1
- package/references/platforms/imageText/taobaoguanghe.md +25 -0
- package/references/platforms/video/index.md +1 -0
- package/references/platforms/video/shipinhao.md +11 -0
- package/references/platforms/video/taobaoguanghe.md +25 -0
- package/references/platforms/video/toutiaohao.md +2 -2
- package/references/workflows/publish-video.md +2 -0
- package/schemas/platforms/shipinhao.imageText.schema.json +1 -1
- package/schemas/platforms/taobaoguanghe.imageText.schema.json +56 -0
- package/schemas/platforms/taobaoguanghe.video.schema.json +40 -0
- package/skills/yixiaoer/SKILL.md +2 -1
- package/skills/yixiaoer/references/cli/command-reference.md +3 -0
- package/skills/yixiaoer/references/platforms/imageText/index.md +2 -0
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +1 -1
- package/skills/yixiaoer/references/platforms/imageText/taobaoguanghe.md +25 -0
- package/skills/yixiaoer/references/platforms/video/index.md +1 -0
- package/skills/yixiaoer/references/platforms/video/shipinhao.md +11 -0
- package/skills/yixiaoer/references/platforms/video/taobaoguanghe.md +25 -0
- package/skills/yixiaoer/references/platforms/video/toutiaohao.md +2 -2
- package/skills/yixiaoer/references/workflows/publish-video.md +2 -0
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
4b2fe89f9ee3ee6952a59660a75f08c25b6f2c5e2b68bbed45e222cb1549aa80 yxer-cli-3.2.16-windows-amd64.zip
|
|
2
|
+
95c8e49225f8262e46540d1c2688cabf7ad31c6cafba8ff3c90b9727defa61a1 yxer-cli-3.2.16-windows-arm64.zip
|
|
3
|
+
7708167bff1f24511b3b7e9556759854034a0a263d1d48c29e1c7db5ae644919 yxer-cli-3.2.16-darwin-amd64.tar.gz
|
|
4
|
+
c274eec34b689c937e26fa8b66e0cbd086ac14e885058d6bf2c77a9b4059ee2f yxer-cli-3.2.16-darwin-arm64.tar.gz
|
|
5
|
+
29c98d24176914b578bef5f01678ac98fe65614c5391199f8e9277d6e450d37d yxer-cli-3.2.16-linux-amd64.tar.gz
|
|
6
|
+
8ef5eccfd679176a019c28c14c05a3ada264f584aa606f7e5a8a1a17fbb33881 yxer-cli-3.2.16-linux-arm64.tar.gz
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ yxer publish delete preview <task_set_id>
|
|
|
49
49
|
yxer publish delete from-record <task_set_id> --index N [--dry-run]
|
|
50
50
|
yxer publish delete <task_id> [--dry-run]
|
|
51
51
|
yxer publish form start <platform> <type> [--output publish-form.json] [--dry-run]
|
|
52
|
+
yxer publish form account <session.json> [--id <online_account_id>|--index N] [--dry-run]
|
|
52
53
|
yxer publish form inspect <session.json>
|
|
53
54
|
yxer publish form set <session.json> <payload.path> --value '<json-value-or-text>' [--index N] [--source-command <cmd>] [--dry-run]
|
|
54
55
|
yxer publish form choose <session.json> <field> --value-file <query.json> [--id <candidate_id>|--index N] [--account-id <id>] --source-command "yxer query ... --json" [--dry-run]
|
|
@@ -76,6 +77,8 @@ yxer query categories <account_id> [--type video|article]
|
|
|
76
77
|
yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
|
|
77
78
|
yxer query music <account_id> [--query 关键词]
|
|
78
79
|
yxer query goods <account_id> [--query 关键词]
|
|
80
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type video|imageText
|
|
81
|
+
yxer query taobao-guanghe-goods <account_id> --type video|imageText [--source SOURCE] [--filter-value VALUE] [--second-filter-value VALUE] [--query 关键词] [--next-page TOKEN]
|
|
79
82
|
yxer query goods-detail <account_id> --url <product_url>
|
|
80
83
|
yxer query entitlements <account_id>
|
|
81
84
|
yxer query collections <account_id> [--type video|article]
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
> 微信公众号图文是例外:正文、发布设置写在 `accountForms[].contentPublishForm`,图片写在 `accountForms[].images`;`statement` 直接传数字枚举值。具体字段以 [`weixingongzhonghao.md`](./weixingongzhonghao.md) 为准。
|
|
25
25
|
|
|
26
|
+
淘宝光合图文的平台字段、商品查询和挂车规则见 [`taobaoguanghe.md`](./taobaoguanghe.md)。
|
|
27
|
+
|
|
26
28
|
## 1. 数据结构 (Data Structure)
|
|
27
29
|
|
|
28
30
|
接口要求传入 `CloudTaskPushRequest` 结构。
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
| `formType` | `string` | **是** | 固定值: `task` | `task` |
|
|
28
28
|
| `title` | `string` | 否 | 标题 | - |
|
|
29
29
|
| `description` | `string` | 否 | 图文描述,支持 HTML (`<p>`, `<topic>`)。最多 1000 字符。 | - |
|
|
30
|
-
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
|
|
30
|
+
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`),1-18 张 | - |
|
|
31
31
|
| `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
|
|
32
32
|
| `music` | `Object` | 否 | 音乐对象 (`MusicItem`) | - |
|
|
33
33
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 淘宝光合图文发布
|
|
2
|
+
|
|
3
|
+
平台 canonical key 为 `taobaoguanghe`,发布请求统一使用中文平台名 `淘宝光合`。支持云发布和本机发布。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yxer accounts list 淘宝光合 --status 1 --json
|
|
7
|
+
yxer prepare 淘宝光合 imageText
|
|
8
|
+
yxer schema fields 淘宝光合 imageText
|
|
9
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type imageText --json
|
|
10
|
+
yxer query taobao-guanghe-goods <account_id> --type imageText --source <source> --json
|
|
11
|
+
yxer validate 淘宝光合 imageText payload.json --publish-channel cloud
|
|
12
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel cloud --dry-run
|
|
13
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel cloud
|
|
14
|
+
|
|
15
|
+
# 本机发布(需客户端已启动并登录,且提供 clientId)
|
|
16
|
+
yxer validate 淘宝光合 imageText payload.json --publish-channel local --client-id <clientId>
|
|
17
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel local --client-id <clientId> --dry-run
|
|
18
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel local --client-id <clientId>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- 上传 1 至 9 张图片,每张宽和高均不得小于 720 像素;首图作为内部封面。
|
|
22
|
+
- 标题最多 30 字、正文最多 1000 字,两者不能同时为空;`tags` 最多 4 个。
|
|
23
|
+
- `shopping_cart` 可为空;非空时只能使用该账号 `--type imageText` 商品查询返回的完整对象,最多 6 件,不得裁剪 `raw`。
|
|
24
|
+
- 页面式表单选择多件商品时使用 `publish form choose ... shopping_cart --ids <id1>,<id2>`,必须明确列出每个商品 ID。
|
|
25
|
+
- 商品接口会把 `imageText` 映射为 `pageType=photo`。
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
| **Youtube** | `Youtube` | [youtube.md](./youtube.md) |
|
|
151
151
|
| **Facebook** | `Facebook` | [facebook.md](./facebook.md) |
|
|
152
152
|
| **Instagram** | `Instagram` | [instagram.md](./instagram.md) |
|
|
153
|
+
| **淘宝光合** | `taobaoguanghe` | [taobaoguanghe.md](./taobaoguanghe.md) |
|
|
153
154
|
| ... | ... | ... |
|
|
154
155
|
|
|
155
156
|
## 4. 通用规则 (Common DTO Rules)
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 视频号视频发布参数 (WeiXin ShiPinHao Video)
|
|
2
2
|
|
|
3
|
+
## 账号优先
|
|
4
|
+
|
|
5
|
+
视频号视频必须先确认账号有效、由用户选择目标账号,再填写视频资料。新建会话时先执行:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer publish form start 视频号 video --output publish-form.json
|
|
9
|
+
yxer publish form account publish-form.json --id <online_account_id>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`form account` 会查询视频号账号并且只接受 `status=1` 的候选;有多个在线账号时必须由用户明确选择 `--id` 或 `--index`。在选择完成前,CLI 拒绝填写表单字段、review 和 export。
|
|
13
|
+
|
|
3
14
|
> [!IMPORTANT]
|
|
4
15
|
> **前提条件 (Prerequisite)**:
|
|
5
16
|
> 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [视频发布首页 (Index)](./index.md) 中定义的 Payload 根结构。本页仅描述 `contentPublishForm` 内部的平台差异化字段。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 淘宝光合视频发布
|
|
2
|
+
|
|
3
|
+
平台 canonical key 为 `taobaoguanghe`,发布请求统一使用中文平台名 `淘宝光合`。支持云发布和本机发布。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yxer accounts list 淘宝光合 --status 1 --json
|
|
7
|
+
yxer prepare 淘宝光合 video
|
|
8
|
+
yxer schema fields 淘宝光合 video
|
|
9
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type video --json
|
|
10
|
+
yxer query taobao-guanghe-goods <account_id> --type video --source <source> --json
|
|
11
|
+
yxer validate 淘宝光合 video payload.json --publish-channel cloud
|
|
12
|
+
yxer publish video 淘宝光合 payload.json --publish-channel cloud --dry-run
|
|
13
|
+
yxer publish video 淘宝光合 payload.json --publish-channel cloud
|
|
14
|
+
|
|
15
|
+
# 本机发布(需客户端已启动并登录,且提供 clientId)
|
|
16
|
+
yxer validate 淘宝光合 video payload.json --publish-channel local --client-id <clientId>
|
|
17
|
+
yxer publish video 淘宝光合 payload.json --publish-channel local --client-id <clientId> --dry-run
|
|
18
|
+
yxer publish video 淘宝光合 payload.json --publish-channel local --client-id <clientId>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- `video`、`cover` 和 `coverKey` 放在账号表单层,`coverKey` 必须等于 `cover.key`。
|
|
22
|
+
- `short_title` 最多 30 字,`desc` 最多 1000 字。
|
|
23
|
+
- `shopping_cart` 可为空;非空时只能使用该账号 `--type video` 商品查询返回的完整对象,最多 6 件,不得裁剪 `raw`。
|
|
24
|
+
- 页面式表单选择多件商品时使用 `publish form choose ... shopping_cart --ids <id1>,<id2>`,必须明确列出每个商品 ID。
|
|
25
|
+
- 立即发布不传 `scheduledTime`;定时发布使用 13 位毫秒时间戳。
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- “设为头条私密视频”
|
|
14
14
|
|
|
15
15
|
## 执行逻辑 (Logic Flow)
|
|
16
|
-
1.
|
|
16
|
+
1. **标题优化**:头条视频标题限制为 1-30 个字符;CLI 与平台字段口径保持一致。
|
|
17
17
|
2. **标签装配**:识别用户提供的关键词,转换为 `tags` 字符串数组(限制 1-5 个)。
|
|
18
18
|
3. **申明校验**:根据内容来源注入 `declaration` 枚举;若涉及 AI 创作,必须标注为 `3-AI生成`。
|
|
19
19
|
4. **参数装配**:构造 `accountForms[i].contentPublishForm`。
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| 字段名 | 类型 | 必填 | 说明 | 默认值 |
|
|
25
25
|
| :--- | :--- | :--- | :--- | :--- |
|
|
26
26
|
| `formType` | `string` | **是** | 固定值: `task` | `task` |
|
|
27
|
-
| `title` | `string` | **是** | 视频标题 (1-
|
|
27
|
+
| `title` | `string` | **是** | 视频标题 (1-30 字符) | - |
|
|
28
28
|
| `description` | `string` | **是** | 视频描述 (1-400 字符) | - |
|
|
29
29
|
| `tags` | `string[]` | **是** | 视频标签 (1-5 个,字符串数组) | - |
|
|
30
30
|
| `declaration` | `number` | 否 | 创作者申明:1-自行拍摄, 2-取自站外, 3-AI生成, 6-虚构演绎故事经历, 7-投资观点仅供参考, 8-健康医疗分享仅供参考 | - |
|
|
@@ -22,6 +22,8 @@ yxer schema get <platform> video
|
|
|
22
22
|
- [`payload-sourcing.md`](./payload-sourcing.md)
|
|
23
23
|
- 涉及话题/标签时:[`../topic-tags.md`](../topic-tags.md)
|
|
24
24
|
|
|
25
|
+
视频号视频有额外的账号门禁:必须先执行 `yxer publish form account <session.json> --id <online_account_id>` 从 `status=1` 账号中完成用户选择,再填写视频、封面和平台资料。未完成账号选择时,CLI 会拒绝继续写入表单。
|
|
26
|
+
|
|
25
27
|
## 执行顺序
|
|
26
28
|
|
|
27
29
|
1. 查询账号:`yxer accounts list [platform] [--status 1] [--json]`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "淘宝光合图文发布表单",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": ["formType"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"formType": {"type": "string", "const": "task"},
|
|
7
|
+
"images": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"minItems": 1,
|
|
10
|
+
"maxItems": 9,
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["key", "size", "width", "height", "format"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"key": {"type": "string", "minLength": 1},
|
|
16
|
+
"size": {"type": "integer", "minimum": 1},
|
|
17
|
+
"width": {"type": "integer", "minimum": 720},
|
|
18
|
+
"height": {"type": "integer", "minimum": 720},
|
|
19
|
+
"format": {"type": "string"}
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"title": {"type": "string", "maxLength": 30},
|
|
25
|
+
"desc": {"type": "string", "maxLength": 1000},
|
|
26
|
+
"tags": {"type": "array", "maxItems": 4, "items": {"type": "string"}},
|
|
27
|
+
"statement": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": ["type"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"type": {"type": "integer", "enum": [0, 1, 2, 4, 5, 6]},
|
|
32
|
+
"forwardFrom": {"type": "string", "minLength": 1}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
},
|
|
36
|
+
"shopping_cart": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"maxItems": 6,
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": ["yixiaoerId", "yixiaoerName", "raw"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"yixiaoerId": {"type": "string", "minLength": 1},
|
|
44
|
+
"yixiaoerName": {"type": "string", "minLength": 1},
|
|
45
|
+
"yixiaoerImageUrl": {"type": "string"},
|
|
46
|
+
"price": {"type": "number"},
|
|
47
|
+
"yixiaoerDesc": {"type": "string"},
|
|
48
|
+
"raw": {"type": "object"}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"scheduledTime": {"type": "integer", "minimum": 1000000000000, "maximum": 9999999999999}
|
|
54
|
+
},
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "淘宝光合视频发布表单",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": ["formType"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"formType": {"type": "string", "const": "task"},
|
|
7
|
+
"short_title": {"type": "string", "maxLength": 30},
|
|
8
|
+
"desc": {"type": "string", "maxLength": 1000},
|
|
9
|
+
"tags": {"type": "array", "items": {"type": "string"}},
|
|
10
|
+
"allow_download": {"type": "boolean"},
|
|
11
|
+
"statement": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["type"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"type": {"type": "integer", "enum": [0, 1, 2, 4, 5, 6]},
|
|
16
|
+
"forwardFrom": {"type": "string", "minLength": 1}
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"shopping_cart": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"maxItems": 6,
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["yixiaoerId", "yixiaoerName", "raw"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"yixiaoerId": {"type": "string", "minLength": 1},
|
|
28
|
+
"yixiaoerName": {"type": "string", "minLength": 1},
|
|
29
|
+
"yixiaoerImageUrl": {"type": "string"},
|
|
30
|
+
"price": {"type": "number"},
|
|
31
|
+
"yixiaoerDesc": {"type": "string"},
|
|
32
|
+
"raw": {"type": "object"}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"scheduledTime": {"type": "integer", "minimum": 1000000000000, "maximum": 9999999999999}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
package/skills/yixiaoer/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yixiaoer
|
|
3
|
-
version: 3.2.
|
|
3
|
+
version: 3.2.16
|
|
4
4
|
description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
|
|
5
5
|
metadata:
|
|
6
6
|
category: "productivity"
|
|
@@ -78,6 +78,7 @@ yxer schema get <platform> <type>
|
|
|
78
78
|
- `prepare` 返回的 `data.form` 是可恢复的页面式表单契约;新建复杂 payload 时优先使用 `yxer publish form start/inspect/set/choose/verify/review/export`,不要自行发明字段或路径。form 会话不能直接发布,必须先 verify 并 export 成标准 `payload.json`。
|
|
79
79
|
- 图片、视频、封面等资源必须先上传,且只能复用 `yxer upload` 返回的真实字段。
|
|
80
80
|
- `category`、`location`、`music`、`collection`、`challenge`、`goods`、`drama` 等动态字段必须先通过 `yxer query ...` 查询,不能手写对象;视频号 `drama` 只保留查询结果中的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。多多视频例外:`shopping_cart.goods_id` 是用户手工提供的业务商品 ID,CLI 固定补充 `source=pdd`,不得从 `yxer query goods` 的 `yixiaoerId` 映射。
|
|
81
|
+
- 淘宝光合 `shopping_cart` 必须来自目标账号、相同发布类型的 `yxer query taobao-guanghe-goods` 结果,完整保留商品对象和 `raw`,每个账号最多 6 件;支持云发布和本机发布。
|
|
81
82
|
- CRITICAL: `validate`、`publish --dry-run`、正式 `publish` 必须使用同一套发布通道参数。
|
|
82
83
|
|
|
83
84
|
## 页面式表单会话
|
|
@@ -49,6 +49,7 @@ yxer publish delete preview <task_set_id>
|
|
|
49
49
|
yxer publish delete from-record <task_set_id> --index N [--dry-run]
|
|
50
50
|
yxer publish delete <task_id> [--dry-run]
|
|
51
51
|
yxer publish form start <platform> <type> [--output publish-form.json] [--dry-run]
|
|
52
|
+
yxer publish form account <session.json> [--id <online_account_id>|--index N] [--dry-run]
|
|
52
53
|
yxer publish form inspect <session.json>
|
|
53
54
|
yxer publish form set <session.json> <payload.path> --value '<json-value-or-text>' [--index N] [--source-command <cmd>] [--dry-run]
|
|
54
55
|
yxer publish form choose <session.json> <field> --value-file <query.json> [--id <candidate_id>|--index N] [--account-id <id>] --source-command "yxer query ... --json" [--dry-run]
|
|
@@ -76,6 +77,8 @@ yxer query categories <account_id> [--type video|article]
|
|
|
76
77
|
yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
|
|
77
78
|
yxer query music <account_id> [--query 关键词]
|
|
78
79
|
yxer query goods <account_id> [--query 关键词]
|
|
80
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type video|imageText
|
|
81
|
+
yxer query taobao-guanghe-goods <account_id> --type video|imageText [--source SOURCE] [--filter-value VALUE] [--second-filter-value VALUE] [--query 关键词] [--next-page TOKEN]
|
|
79
82
|
yxer query goods-detail <account_id> --url <product_url>
|
|
80
83
|
yxer query entitlements <account_id>
|
|
81
84
|
yxer query collections <account_id> [--type video|article]
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
> 微信公众号图文是例外:正文、发布设置写在 `accountForms[].contentPublishForm`,图片写在 `accountForms[].images`;`statement` 直接传数字枚举值。具体字段以 [`weixingongzhonghao.md`](./weixingongzhonghao.md) 为准。
|
|
25
25
|
|
|
26
|
+
淘宝光合图文的平台字段、商品查询和挂车规则见 [`taobaoguanghe.md`](./taobaoguanghe.md)。
|
|
27
|
+
|
|
26
28
|
## 1. 数据结构 (Data Structure)
|
|
27
29
|
|
|
28
30
|
接口要求传入 `CloudTaskPushRequest` 结构。
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
| `formType` | `string` | **是** | 固定值: `task` | `task` |
|
|
28
28
|
| `title` | `string` | 否 | 标题 | - |
|
|
29
29
|
| `description` | `string` | 否 | 图文描述,支持 HTML (`<p>`, `<topic>`)。最多 1000 字符。 | - |
|
|
30
|
-
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
|
|
30
|
+
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`),1-18 张 | - |
|
|
31
31
|
| `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
|
|
32
32
|
| `music` | `Object` | 否 | 音乐对象 (`MusicItem`) | - |
|
|
33
33
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 淘宝光合图文发布
|
|
2
|
+
|
|
3
|
+
平台 canonical key 为 `taobaoguanghe`,发布请求统一使用中文平台名 `淘宝光合`。支持云发布和本机发布。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yxer accounts list 淘宝光合 --status 1 --json
|
|
7
|
+
yxer prepare 淘宝光合 imageText
|
|
8
|
+
yxer schema fields 淘宝光合 imageText
|
|
9
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type imageText --json
|
|
10
|
+
yxer query taobao-guanghe-goods <account_id> --type imageText --source <source> --json
|
|
11
|
+
yxer validate 淘宝光合 imageText payload.json --publish-channel cloud
|
|
12
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel cloud --dry-run
|
|
13
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel cloud
|
|
14
|
+
|
|
15
|
+
# 本机发布(需客户端已启动并登录,且提供 clientId)
|
|
16
|
+
yxer validate 淘宝光合 imageText payload.json --publish-channel local --client-id <clientId>
|
|
17
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel local --client-id <clientId> --dry-run
|
|
18
|
+
yxer publish imageText 淘宝光合 payload.json --publish-channel local --client-id <clientId>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- 上传 1 至 9 张图片,每张宽和高均不得小于 720 像素;首图作为内部封面。
|
|
22
|
+
- 标题最多 30 字、正文最多 1000 字,两者不能同时为空;`tags` 最多 4 个。
|
|
23
|
+
- `shopping_cart` 可为空;非空时只能使用该账号 `--type imageText` 商品查询返回的完整对象,最多 6 件,不得裁剪 `raw`。
|
|
24
|
+
- 页面式表单选择多件商品时使用 `publish form choose ... shopping_cart --ids <id1>,<id2>`,必须明确列出每个商品 ID。
|
|
25
|
+
- 商品接口会把 `imageText` 映射为 `pageType=photo`。
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
| **Youtube** | `Youtube` | [youtube.md](./youtube.md) |
|
|
151
151
|
| **Facebook** | `Facebook` | [facebook.md](./facebook.md) |
|
|
152
152
|
| **Instagram** | `Instagram` | [instagram.md](./instagram.md) |
|
|
153
|
+
| **淘宝光合** | `taobaoguanghe` | [taobaoguanghe.md](./taobaoguanghe.md) |
|
|
153
154
|
| ... | ... | ... |
|
|
154
155
|
|
|
155
156
|
## 4. 通用规则 (Common DTO Rules)
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 视频号视频发布参数 (WeiXin ShiPinHao Video)
|
|
2
2
|
|
|
3
|
+
## 账号优先
|
|
4
|
+
|
|
5
|
+
视频号视频必须先确认账号有效、由用户选择目标账号,再填写视频资料。新建会话时先执行:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer publish form start 视频号 video --output publish-form.json
|
|
9
|
+
yxer publish form account publish-form.json --id <online_account_id>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`form account` 会查询视频号账号并且只接受 `status=1` 的候选;有多个在线账号时必须由用户明确选择 `--id` 或 `--index`。在选择完成前,CLI 拒绝填写表单字段、review 和 export。
|
|
13
|
+
|
|
3
14
|
> [!IMPORTANT]
|
|
4
15
|
> **前提条件 (Prerequisite)**:
|
|
5
16
|
> 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [视频发布首页 (Index)](./index.md) 中定义的 Payload 根结构。本页仅描述 `contentPublishForm` 内部的平台差异化字段。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 淘宝光合视频发布
|
|
2
|
+
|
|
3
|
+
平台 canonical key 为 `taobaoguanghe`,发布请求统一使用中文平台名 `淘宝光合`。支持云发布和本机发布。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yxer accounts list 淘宝光合 --status 1 --json
|
|
7
|
+
yxer prepare 淘宝光合 video
|
|
8
|
+
yxer schema fields 淘宝光合 video
|
|
9
|
+
yxer query taobao-guanghe-goods-tabs <account_id> --type video --json
|
|
10
|
+
yxer query taobao-guanghe-goods <account_id> --type video --source <source> --json
|
|
11
|
+
yxer validate 淘宝光合 video payload.json --publish-channel cloud
|
|
12
|
+
yxer publish video 淘宝光合 payload.json --publish-channel cloud --dry-run
|
|
13
|
+
yxer publish video 淘宝光合 payload.json --publish-channel cloud
|
|
14
|
+
|
|
15
|
+
# 本机发布(需客户端已启动并登录,且提供 clientId)
|
|
16
|
+
yxer validate 淘宝光合 video payload.json --publish-channel local --client-id <clientId>
|
|
17
|
+
yxer publish video 淘宝光合 payload.json --publish-channel local --client-id <clientId> --dry-run
|
|
18
|
+
yxer publish video 淘宝光合 payload.json --publish-channel local --client-id <clientId>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- `video`、`cover` 和 `coverKey` 放在账号表单层,`coverKey` 必须等于 `cover.key`。
|
|
22
|
+
- `short_title` 最多 30 字,`desc` 最多 1000 字。
|
|
23
|
+
- `shopping_cart` 可为空;非空时只能使用该账号 `--type video` 商品查询返回的完整对象,最多 6 件,不得裁剪 `raw`。
|
|
24
|
+
- 页面式表单选择多件商品时使用 `publish form choose ... shopping_cart --ids <id1>,<id2>`,必须明确列出每个商品 ID。
|
|
25
|
+
- 立即发布不传 `scheduledTime`;定时发布使用 13 位毫秒时间戳。
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- “设为头条私密视频”
|
|
14
14
|
|
|
15
15
|
## 执行逻辑 (Logic Flow)
|
|
16
|
-
1.
|
|
16
|
+
1. **标题优化**:头条视频标题限制为 1-30 个字符;CLI 与平台字段口径保持一致。
|
|
17
17
|
2. **标签装配**:识别用户提供的关键词,转换为 `tags` 字符串数组(限制 1-5 个)。
|
|
18
18
|
3. **申明校验**:根据内容来源注入 `declaration` 枚举;若涉及 AI 创作,必须标注为 `3-AI生成`。
|
|
19
19
|
4. **参数装配**:构造 `accountForms[i].contentPublishForm`。
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| 字段名 | 类型 | 必填 | 说明 | 默认值 |
|
|
25
25
|
| :--- | :--- | :--- | :--- | :--- |
|
|
26
26
|
| `formType` | `string` | **是** | 固定值: `task` | `task` |
|
|
27
|
-
| `title` | `string` | **是** | 视频标题 (1-
|
|
27
|
+
| `title` | `string` | **是** | 视频标题 (1-30 字符) | - |
|
|
28
28
|
| `description` | `string` | **是** | 视频描述 (1-400 字符) | - |
|
|
29
29
|
| `tags` | `string[]` | **是** | 视频标签 (1-5 个,字符串数组) | - |
|
|
30
30
|
| `declaration` | `number` | 否 | 创作者申明:1-自行拍摄, 2-取自站外, 3-AI生成, 6-虚构演绎故事经历, 7-投资观点仅供参考, 8-健康医疗分享仅供参考 | - |
|
|
@@ -22,6 +22,8 @@ yxer schema get <platform> video
|
|
|
22
22
|
- [`payload-sourcing.md`](./payload-sourcing.md)
|
|
23
23
|
- 涉及话题/标签时:[`../topic-tags.md`](../topic-tags.md)
|
|
24
24
|
|
|
25
|
+
视频号视频有额外的账号门禁:必须先执行 `yxer publish form account <session.json> --id <online_account_id>` 从 `status=1` 账号中完成用户选择,再填写视频、封面和平台资料。未完成账号选择时,CLI 会拒绝继续写入表单。
|
|
26
|
+
|
|
25
27
|
## 执行顺序
|
|
26
28
|
|
|
27
29
|
1. 查询账号:`yxer accounts list [platform] [--status 1] [--json]`
|