@yixiaoermail/cli 3.2.28 → 3.2.30
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/get-publish-activities.md +20 -18
- package/references/platforms/article/souhuhao.md +22 -0
- package/references/platforms/article/wangyihao.md +21 -0
- package/references/platforms/article/weixingongzhonghao.md +39 -2
- package/references/platforms/imageText/douyin.md +2 -0
- package/references/platforms/imageText/kuaishou.md +4 -0
- package/references/platforms/imageText/shipinhao.md +4 -0
- package/references/platforms/imageText/weixingongzhonghao.md +17 -1
- package/references/platforms/imageText/xiaohongshu.md +4 -0
- package/references/platforms/imageText/xinlangweibo.md +2 -0
- package/references/platforms/video/tiktok.md +2 -0
- package/references/platforms/video/wangyihao.md +22 -0
- package/references/topic-tags.md +26 -3
- package/schemas/platforms/shipinhao.imageText.schema.json +2 -1
- package/schemas/platforms/souhuhao.article.schema.json +44 -0
- package/schemas/platforms/wangyihao.article.schema.json +43 -0
- package/schemas/platforms/wangyihao.video.schema.json +34 -0
- package/schemas/platforms/weixin.account.article.schema.json +109 -0
- package/schemas/platforms/weixin.account.imageText.schema.json +100 -0
- package/schemas/platforms/zhihu.article.schema.json +2 -1
- package/skills/yixiaoer/SKILL.md +1 -1
- package/skills/yixiaoer/references/get-publish-activities.md +20 -18
- package/skills/yixiaoer/references/platforms/article/souhuhao.md +22 -0
- package/skills/yixiaoer/references/platforms/article/wangyihao.md +21 -0
- package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +39 -2
- package/skills/yixiaoer/references/platforms/imageText/douyin.md +2 -0
- package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +4 -0
- package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +4 -0
- package/skills/yixiaoer/references/platforms/imageText/weixingongzhonghao.md +17 -1
- package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +4 -0
- package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +2 -0
- package/skills/yixiaoer/references/platforms/video/tiktok.md +2 -0
- package/skills/yixiaoer/references/platforms/video/wangyihao.md +22 -0
- package/skills/yixiaoer/references/topic-tags.md +26 -3
|
@@ -49,6 +49,40 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
+
"activity": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"description": "网易号发布页称为活动话题。完整复制 yxer query activities <account_id> --type video 查询结果中的视频活动列表项;raw.subjectId 和 raw.activityId 必须为非空字符串。",
|
|
55
|
+
"required": [
|
|
56
|
+
"yixiaoerId",
|
|
57
|
+
"yixiaoerName",
|
|
58
|
+
"raw"
|
|
59
|
+
],
|
|
60
|
+
"properties": {
|
|
61
|
+
"yixiaoerId": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"yixiaoerName": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"raw": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"required": [
|
|
70
|
+
"subjectId",
|
|
71
|
+
"activityId"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"subjectId": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1
|
|
77
|
+
},
|
|
78
|
+
"activityId": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
52
86
|
"pubType": {
|
|
53
87
|
"type": "number",
|
|
54
88
|
"enum": [
|
|
@@ -101,6 +101,63 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
},
|
|
105
|
+
"disableRecommend": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"enum": [0, 1],
|
|
108
|
+
"default": 0,
|
|
109
|
+
"description": "0 允许平台推荐,1 不允许平台推荐。"
|
|
110
|
+
},
|
|
111
|
+
"needOpenComment": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"enum": [0, 1, 2, 3],
|
|
114
|
+
"default": 0,
|
|
115
|
+
"description": "0 关闭留言,1 关注用户,2 关注满 7 天用户,3 所有人可留言。"
|
|
116
|
+
},
|
|
117
|
+
"needOpenReply": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"enum": [2, 3, 4, 5],
|
|
120
|
+
"description": "留言回复范围,使用微信公众号表单返回的枚举值。"
|
|
121
|
+
},
|
|
122
|
+
"collection": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"description": "当前文章所属合集,使用目标账号的合集查询结果。",
|
|
125
|
+
"required": ["yixiaoerId", "yixiaoerName"],
|
|
126
|
+
"properties": {
|
|
127
|
+
"yixiaoerId": { "type": "string" },
|
|
128
|
+
"yixiaoerName": { "type": "string" },
|
|
129
|
+
"raw": { "type": ["string", "object"] },
|
|
130
|
+
"child": { "type": "array", "items": { "type": "object" } }
|
|
131
|
+
},
|
|
132
|
+
"additionalProperties": true
|
|
133
|
+
},
|
|
134
|
+
"rewardSettings": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"description": "公众号文章赞赏设置;开启赞赏前须声明原创。",
|
|
137
|
+
"required": ["enabled", "type"],
|
|
138
|
+
"properties": {
|
|
139
|
+
"enabled": { "type": "boolean" },
|
|
140
|
+
"type": { "type": "string", "enum": ["author", "charity", "disabled"] },
|
|
141
|
+
"account": { "type": "string" },
|
|
142
|
+
"accountId": { "type": "integer", "minimum": 1 },
|
|
143
|
+
"autoReplyEnabled": { "type": "boolean" },
|
|
144
|
+
"autoReplies": { "type": "array", "items": { "type": "string" } },
|
|
145
|
+
"replyId": { "type": "integer", "minimum": 1 },
|
|
146
|
+
"charityProject": { "type": "string" },
|
|
147
|
+
"charityProjectInfo": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"required": ["organization_name", "project_id", "project_name", "project_pic", "projectNameShow"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"organization_name": { "type": "string" },
|
|
152
|
+
"project_id": { "type": "string" },
|
|
153
|
+
"project_name": { "type": "string" },
|
|
154
|
+
"project_pic": { "type": "string" },
|
|
155
|
+
"projectNameShow": { "type": "string" }
|
|
156
|
+
},
|
|
157
|
+
"additionalProperties": true
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"additionalProperties": false
|
|
104
161
|
}
|
|
105
162
|
},
|
|
106
163
|
"additionalProperties": false
|
|
@@ -125,6 +182,10 @@
|
|
|
125
182
|
"scheduledTime": {
|
|
126
183
|
"type": "integer"
|
|
127
184
|
},
|
|
185
|
+
"prePubTime": {
|
|
186
|
+
"type": "integer",
|
|
187
|
+
"description": "定时发布时间戳(13 位 Unix 毫秒时间戳);优先级高于 scheduledTime。"
|
|
188
|
+
},
|
|
128
189
|
"sex": {
|
|
129
190
|
"type": "number",
|
|
130
191
|
"enum": [
|
|
@@ -142,6 +203,54 @@
|
|
|
142
203
|
},
|
|
143
204
|
"city": {
|
|
144
205
|
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"needOpenComment": {
|
|
208
|
+
"type": "number",
|
|
209
|
+
"enum": [0, 1, 2, 3],
|
|
210
|
+
"default": 0
|
|
211
|
+
},
|
|
212
|
+
"needOpenReply": {
|
|
213
|
+
"type": "number",
|
|
214
|
+
"enum": [2, 3, 4, 5]
|
|
215
|
+
},
|
|
216
|
+
"collection": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"required": ["yixiaoerId", "yixiaoerName"],
|
|
219
|
+
"properties": {
|
|
220
|
+
"yixiaoerId": { "type": "string" },
|
|
221
|
+
"yixiaoerName": { "type": "string" },
|
|
222
|
+
"raw": { "type": ["string", "object"] },
|
|
223
|
+
"child": { "type": "array", "items": { "type": "object" } }
|
|
224
|
+
},
|
|
225
|
+
"additionalProperties": true
|
|
226
|
+
},
|
|
227
|
+
"rewardSettings": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"description": "公众号文章赞赏设置;开启赞赏前须声明原创。",
|
|
230
|
+
"required": ["enabled", "type"],
|
|
231
|
+
"properties": {
|
|
232
|
+
"enabled": { "type": "boolean" },
|
|
233
|
+
"type": { "type": "string", "enum": ["author", "charity", "disabled"] },
|
|
234
|
+
"account": { "type": "string" },
|
|
235
|
+
"accountId": { "type": "integer", "minimum": 1 },
|
|
236
|
+
"autoReplyEnabled": { "type": "boolean" },
|
|
237
|
+
"autoReplies": { "type": "array", "items": { "type": "string" } },
|
|
238
|
+
"replyId": { "type": "integer", "minimum": 1 },
|
|
239
|
+
"charityProject": { "type": "string" },
|
|
240
|
+
"charityProjectInfo": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"required": ["organization_name", "project_id", "project_name", "project_pic", "projectNameShow"],
|
|
243
|
+
"properties": {
|
|
244
|
+
"organization_name": { "type": "string" },
|
|
245
|
+
"project_id": { "type": "string" },
|
|
246
|
+
"project_name": { "type": "string" },
|
|
247
|
+
"project_pic": { "type": "string" },
|
|
248
|
+
"projectNameShow": { "type": "string" }
|
|
249
|
+
},
|
|
250
|
+
"additionalProperties": true
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"additionalProperties": false
|
|
145
254
|
}
|
|
146
255
|
},
|
|
147
256
|
"additionalProperties": false
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"scheduledTime": {
|
|
76
76
|
"type": "integer"
|
|
77
77
|
},
|
|
78
|
+
"prePubTime": {
|
|
79
|
+
"type": "integer",
|
|
80
|
+
"description": "定时发布时间戳(13 位 Unix 毫秒时间戳);优先级高于 scheduledTime。"
|
|
81
|
+
},
|
|
78
82
|
"needOpenComment": {
|
|
79
83
|
"type": "number",
|
|
80
84
|
"enum": [
|
|
@@ -85,6 +89,11 @@
|
|
|
85
89
|
],
|
|
86
90
|
"default": 0
|
|
87
91
|
},
|
|
92
|
+
"needOpenReply": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"enum": [2, 3, 4, 5],
|
|
95
|
+
"description": "留言回复范围,使用微信公众号表单返回的枚举值。"
|
|
96
|
+
},
|
|
88
97
|
"statement": {
|
|
89
98
|
"type": "number",
|
|
90
99
|
"enum": [
|
|
@@ -105,6 +114,97 @@
|
|
|
105
114
|
],
|
|
106
115
|
"default": 0
|
|
107
116
|
},
|
|
117
|
+
"location": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"description": "微信公众号位置,使用 query locations 返回的完整 PlatformDataItem。",
|
|
120
|
+
"required": ["id", "text", "raw"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"id": { "type": "string" },
|
|
123
|
+
"text": { "type": "string" },
|
|
124
|
+
"raw": { "type": "object" }
|
|
125
|
+
},
|
|
126
|
+
"additionalProperties": false
|
|
127
|
+
},
|
|
128
|
+
"collection": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"description": "微信公众号图文合集,使用 query collections 返回的完整对象。",
|
|
131
|
+
"required": ["yixiaoerId", "yixiaoerName"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"yixiaoerId": { "type": "string" },
|
|
134
|
+
"yixiaoerName": { "type": "string" },
|
|
135
|
+
"raw": { "type": ["string", "object"] },
|
|
136
|
+
"child": { "type": "array", "items": { "type": "object" } }
|
|
137
|
+
},
|
|
138
|
+
"additionalProperties": true
|
|
139
|
+
},
|
|
140
|
+
"linkSetting": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"description": "发布设置中的内容链接、小程序或小店商品链接。",
|
|
143
|
+
"required": ["type", "source", "title"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"type": { "type": "string", "enum": ["content", "miniProgram", "shopProduct"] },
|
|
146
|
+
"source": { "type": "string", "enum": ["published", "url", "miniProgram", "shopProduct"] },
|
|
147
|
+
"title": { "type": "string", "minLength": 1 },
|
|
148
|
+
"url": { "type": "string", "format": "uri" },
|
|
149
|
+
"appId": { "type": "string" },
|
|
150
|
+
"path": { "type": "string" },
|
|
151
|
+
"productId": { "type": "string" },
|
|
152
|
+
"productEncryptKey": { "type": "string" },
|
|
153
|
+
"productType": { "type": "integer" },
|
|
154
|
+
"biz": { "type": "string" },
|
|
155
|
+
"appmsgId": { "type": "integer" },
|
|
156
|
+
"idx": { "type": "integer" }
|
|
157
|
+
},
|
|
158
|
+
"additionalProperties": false
|
|
159
|
+
},
|
|
160
|
+
"rewardSettings": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"description": "公众号文章赞赏设置。开启赞赏前需声明原创。",
|
|
163
|
+
"required": ["enabled", "type"],
|
|
164
|
+
"properties": {
|
|
165
|
+
"enabled": { "type": "boolean" },
|
|
166
|
+
"type": { "type": "string", "enum": ["author", "charity", "disabled"] },
|
|
167
|
+
"account": { "type": "string" },
|
|
168
|
+
"accountId": { "type": "integer", "minimum": 1 },
|
|
169
|
+
"autoReplyEnabled": { "type": "boolean" },
|
|
170
|
+
"autoReplies": { "type": "array", "items": { "type": "string" } },
|
|
171
|
+
"replyId": { "type": "integer", "minimum": 1 },
|
|
172
|
+
"charityProject": { "type": "string" },
|
|
173
|
+
"charityProjectInfo": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"required": ["organization_name", "project_id", "project_name", "project_pic", "projectNameShow"],
|
|
176
|
+
"properties": {
|
|
177
|
+
"organization_name": { "type": "string" },
|
|
178
|
+
"project_id": { "type": "string" },
|
|
179
|
+
"project_name": { "type": "string" },
|
|
180
|
+
"project_pic": { "type": "string" },
|
|
181
|
+
"projectNameShow": { "type": "string" }
|
|
182
|
+
},
|
|
183
|
+
"additionalProperties": true
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"additionalProperties": false
|
|
187
|
+
},
|
|
188
|
+
"rewardType": { "type": "string", "enum": ["author", "charity", "disabled"] },
|
|
189
|
+
"rewardEnabled": { "type": "boolean" },
|
|
190
|
+
"rewardAccount": { "type": "string" },
|
|
191
|
+
"rewardAccountId": { "type": "integer", "minimum": 1 },
|
|
192
|
+
"rewardAutoReplyEnabled": { "type": "boolean" },
|
|
193
|
+
"rewardAutoReplies": { "type": "array", "items": { "type": "string" } },
|
|
194
|
+
"rewardReplyId": { "type": "integer", "minimum": 1 },
|
|
195
|
+
"charityProject": { "type": "string" },
|
|
196
|
+
"charityProjectInfo": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"required": ["organization_name", "project_id", "project_name", "project_pic", "projectNameShow"],
|
|
199
|
+
"properties": {
|
|
200
|
+
"organization_name": { "type": "string" },
|
|
201
|
+
"project_id": { "type": "string" },
|
|
202
|
+
"project_name": { "type": "string" },
|
|
203
|
+
"project_pic": { "type": "string" },
|
|
204
|
+
"projectNameShow": { "type": "string" }
|
|
205
|
+
},
|
|
206
|
+
"additionalProperties": true
|
|
207
|
+
},
|
|
108
208
|
"pubType": {
|
|
109
209
|
"type": "number",
|
|
110
210
|
"enum": [
|
package/skills/yixiaoer/SKILL.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 获取征文/激励活动 (Get Activities)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
按账号查询平台可参与的征文或激励活动。发布时,将查询返回的完整活动对象填入平台契约声明的 `activity` 字段。
|
|
4
|
+
|
|
5
|
+
网易号发布页把该选择项显示为“活动话题”,CLI 中仍使用 `contentPublishForm.activity`。网易号视频和文章的查询结果结构不同,分别遵循[视频发布字段说明](./platforms/video/wangyihao.md)和[文章发布字段说明](./platforms/article/wangyihao.md)中的 `raw` 必填字段;不能跨内容类型复用活动对象。
|
|
4
6
|
|
|
5
7
|
## 触发场景 (Trigger)
|
|
6
8
|
- **意图辨析**:当用户希望参加平台官方活动以获取额外流量激励或奖金,并需要获取活动 ID 进行发布挂载时触发。
|
|
7
9
|
- **典型提示词**:
|
|
8
|
-
-
|
|
10
|
+
- “最近网易号有什么文章活动?”
|
|
9
11
|
- “帮我找一下适合这个视频参加的活动”
|
|
10
12
|
- “查看特定分类下的激励任务”
|
|
11
13
|
|
|
@@ -13,28 +15,28 @@
|
|
|
13
15
|
|
|
14
16
|
### 参数列表 (Payload Properties)
|
|
15
17
|
|
|
16
|
-
|
|
|
18
|
+
| 参数 | 类型 | 必填 | 说明 |
|
|
17
19
|
| :--- | :--- | :--- | :--- |
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `keyword` | `string` | 否 | 按关键字搜索 (别名: `keyWord`) |
|
|
20
|
+
| `account_id` | `string` | **是** | 蚁小二平台账号 ID |
|
|
21
|
+
| `--type` | `string` | 否 | 内容类型:`video` 或 `article`,默认 `article`;应与目标发布类型一致 |
|
|
22
|
+
| `--category-id` | `string` | 否 | 限定活动所属分类 |
|
|
23
|
+
| `--query` | `string` | 否 | 活动关键词;`--keyword` 是兼容别名 |
|
|
23
24
|
|
|
24
25
|
## 执行逻辑 (Logic Flow)
|
|
25
|
-
1.
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
28
|
-
4. **指令执行**:当前能力正在迁移到 `yxer` CLI,本文档不再推荐脚本直调。
|
|
29
|
-
5. **挂载建议**:获取活动列表后,将 `activityId` 反馈给用户或自动准备发布 Payload。
|
|
26
|
+
1. 先确认目标账号及发布类型。
|
|
27
|
+
2. 如用户给出活动名称,使用 `--query` 缩小结果;必要时使用 `--category-id`。
|
|
28
|
+
3. 从结果中选择活动后,将**完整对象**复制到对应平台的 `contentPublishForm.activity`,不要只填写 ID 或自行拼接 `raw`。
|
|
30
29
|
|
|
31
30
|
## 返回数据 (Response)
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
活动对象包含平台侧标识和原始数据;CLI 的动态字段契约使用 `yixiaoerId`、`yixiaoerName`、`raw`。保留查询结果中的全部字段。
|
|
34
33
|
|
|
35
34
|
## 调用指令 (Command)
|
|
36
35
|
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
```bash
|
|
37
|
+
yxer query activities ACCOUNT_ID --type video --json
|
|
38
|
+
yxer query activities ACCOUNT_ID --type article --query "活动关键词" --json
|
|
39
|
+
yxer query activities ACCOUNT_ID --type article --category-id CATEGORY_ID --json
|
|
40
40
|
```
|
|
41
|
+
|
|
42
|
+
网易号发布时,`--type` 必须与发布内容一致:视频使用 `video`,文章使用 `article`。将查询返回的选中列表项完整放入网易号 payload 的 `contentPublishForm.activity`,包括完整的 `raw`。
|
|
@@ -27,9 +27,25 @@
|
|
|
27
27
|
| `content` | `string` | **是** | 文章正文 (HTML 格式) | - |
|
|
28
28
|
| `desc` | `string` | **是** | 文章摘要或描述 | - |
|
|
29
29
|
| `covers` | `Array` | **是** | 文章封面列表 (`OldCover[]`) | - |
|
|
30
|
+
| `statement` | `object` | 否 | 文章创作声明,优先使用此契约:`type`、`quote` 和 `sourceUrl`,具体见下方。 | `{ "type": 0, "quote": false }` |
|
|
31
|
+
| `declaration` | `number` | 否 | **旧字段,已弃用**。仅为兼容历史 payload;新 payload 请使用 `statement`。 | - |
|
|
30
32
|
| `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
|
|
31
33
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
32
34
|
|
|
35
|
+
### 创作声明契约(当前本地分支)
|
|
36
|
+
|
|
37
|
+
搜狐号文章使用独立的文章声明枚举,与搜狐号视频的 `declaration` 枚举不同。当前本地分支的表单契约是 `statement` 对象:
|
|
38
|
+
|
|
39
|
+
这是 CLI `contentPublishForm` 层的字段名;平台原始字段 `creationStatement` / `additionalStatement` 不作为 CLI payload 字段直接填写。
|
|
40
|
+
|
|
41
|
+
| `statement` 字段 | 类型 | 必填 | 说明 |
|
|
42
|
+
| :--- | :--- | :--- | :--- |
|
|
43
|
+
| `type` | `number` | **是** | `0`-无需声明,`1`-含有虚构演绎内容,`2`-含有 AI 生成内容,`3`-含有营销信息,`4`-内容为转载,`5`-内容为个人观点。AI 声明使用 `2`。 |
|
|
44
|
+
| `quote` | `boolean` | 否 | 是否开启补充引用声明,默认 `false`。 |
|
|
45
|
+
| `sourceUrl` | `string` | 条件必填 | 当 `quote: true` 时必填;填写完整的 HTTP(S) 来源链接。 |
|
|
46
|
+
|
|
47
|
+
`statement` 存在时优先于旧 `declaration`。旧字段仅用于兼容:旧 `declaration: 3` 会转换为文章 AI 值 `statement.type: 2`,旧值 `4` 转换为虚构演绎值 `1`;不要将搜狐号视频档的枚举直接用于文章。旧 `declaration: 1` 在文章枚举中表示虚构演绎,并不表示 AI。
|
|
48
|
+
|
|
33
49
|
## 2. Payload 完整示例
|
|
34
50
|
|
|
35
51
|
```json
|
|
@@ -47,6 +63,10 @@
|
|
|
47
63
|
"title": "这是文章标题",
|
|
48
64
|
"content": "<h1>搜狐号文章</h1><p>正文内容...</p>",
|
|
49
65
|
"desc": "这是文章的摘要",
|
|
66
|
+
"statement": {
|
|
67
|
+
"type": 2,
|
|
68
|
+
"quote": false
|
|
69
|
+
},
|
|
50
70
|
"covers": [
|
|
51
71
|
{ "key": "article_cover_key", "size": 102400, "width": 800, "height": 600 }
|
|
52
72
|
],
|
|
@@ -58,6 +78,8 @@
|
|
|
58
78
|
}
|
|
59
79
|
```
|
|
60
80
|
|
|
81
|
+
如需补充引用来源,声明对象示例为 `{"type": 0, "quote": true, "sourceUrl": "https://example.com/source"}`;`quote` 开启但缺少有效 HTTP(S) 链接时,发布校验会失败。
|
|
82
|
+
|
|
61
83
|
## 3. 复杂对象结构说明
|
|
62
84
|
|
|
63
85
|
### 3.1 OldCover (封面对象)
|
|
@@ -30,10 +30,20 @@
|
|
|
30
30
|
| `declaration` | `number` | 否 | 创作申明: 1-AI生成, 2-个人原创, 3-取材网络, 4-虚构演绎 | - |
|
|
31
31
|
| `type`| `number` | 否 | 是否勾选原创: 0-不勾选, 1-勾选 | `0` |
|
|
32
32
|
| `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
|
|
33
|
+
| `activity` | `object` | 否 | 网易号发布页称为“活动话题”。使用 `yxer query activities <account_id> --type article --json` 返回的文章活动列表项,完整保留 `yixiaoerId`、`yixiaoerName` 和 `raw`;`raw.subjectId`、`raw.title`、`raw.url` 必须为非空字符串,`raw.essayId` 必须为数字。 | - |
|
|
33
34
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
34
35
|
|
|
35
36
|
## 2. Payload 完整示例
|
|
36
37
|
|
|
38
|
+
网易号界面中的“活动话题”在 CLI payload 中使用 `contentPublishForm.activity` 字段,不是 `topics`、`challenge` 或正文里的 `<topic>`。按目标账号查询文章活动,并把选中的完整列表项原样放入 `activity`;不要只传活动名/ID,也不要自行拼 `raw`。
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
yxer query activities ACCOUNT_ID --type article --json
|
|
42
|
+
yxer query activities ACCOUNT_ID --type article --query "活动关键词" --json
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
示例中的 `activity` 仅展示结构。正式发布时必须用查询结果中的真实完整对象替换;其中至少要有 `yixiaoerId`、`yixiaoerName`、`raw.subjectId`、数字类型的 `raw.essayId`、`raw.title` 和 `raw.url`。
|
|
46
|
+
|
|
37
47
|
```json
|
|
38
48
|
{
|
|
39
49
|
"action": "publish",
|
|
@@ -53,6 +63,16 @@
|
|
|
53
63
|
{ "key": "article_cover_key", "size": 102400, "width": 800, "height": 600 }
|
|
54
64
|
],
|
|
55
65
|
"declaration": 1,
|
|
66
|
+
"activity": {
|
|
67
|
+
"yixiaoerId": "<活动查询结果中的 yixiaoerId>",
|
|
68
|
+
"yixiaoerName": "<活动查询结果中的 yixiaoerName>",
|
|
69
|
+
"raw": {
|
|
70
|
+
"subjectId": "<查询结果 raw.subjectId>",
|
|
71
|
+
"essayId": 123456,
|
|
72
|
+
"title": "<查询结果 raw.title>",
|
|
73
|
+
"url": "<查询结果 raw.url>"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
56
76
|
"type": 1,
|
|
57
77
|
"pubType": 1
|
|
58
78
|
}
|
|
@@ -77,3 +97,4 @@
|
|
|
77
97
|
| 目标数据 | 对应 Action | 相关文档 |
|
|
78
98
|
| :--- | :--- | :--- |
|
|
79
99
|
| `covers.key` | `upload` | [资源上传](../../upload-resource.md) |
|
|
100
|
+
| `activity`(网易号界面称“活动话题”) | `activities` | [获取征文/激励活动](../../get-publish-activities.md) |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> [!IMPORTANT]
|
|
4
4
|
> **前提条件 (Prerequisite)**:
|
|
5
|
-
> 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [文章发布首页 (Index)](./index.md) 中定义的 Payload
|
|
5
|
+
> 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [文章发布首页 (Index)](./index.md) 中定义的 Payload 根结构。本页描述微信公众号 `platformForms["微信公众号"]` 中的平台字段。
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
## 触发场景 (Trigger)
|
|
@@ -31,10 +31,19 @@
|
|
|
31
31
|
| `notifySubscribers` | `number` | **是** | 是否群发: 0-不群发, 1-群发 | `0` |
|
|
32
32
|
| `pubType` | `number` | **是** | 草稿: 0-草稿, 1-直接发布 | `1` |
|
|
33
33
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
34
|
+
| `prePubTime` | `number` | 否 | `scheduledTime` 的兼容别名,13 位 Unix 毫秒时间戳 | - |
|
|
34
35
|
| `sex` | `number` | 否 | 群发性别: 0-全部, 1-男, 2-女 | `0` |
|
|
35
36
|
| `country` | `string` | 否 | 群发国家 | - |
|
|
36
37
|
| `province` | `string` | 否 | 群发省份 | - |
|
|
37
38
|
| `city` | `string` | 否 | 群发城市 | - |
|
|
39
|
+
| `needOpenComment` | `number` | 否 | 平台级默认留言设置:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 | `0` |
|
|
40
|
+
| `needOpenReply` | `number` | 否 | 平台级默认留言回复范围,使用公众号表单提供的枚举值 | - |
|
|
41
|
+
| `collection` | `object` | 否 | 平台级合集,完整使用目标账号 `wechat-collections --type article` 查询项 | - |
|
|
42
|
+
| `rewardSettings` | `object` | 否 | 平台级赞赏设置,字段结构见下方 | - |
|
|
43
|
+
|
|
44
|
+
每篇文章也可单独设置 `needOpenComment`、`needOpenReply`、`disableRecommend`、`collection` 和 `rewardSettings`。这些文章级值填写在 `articles[]` 对象中,会覆盖图文级默认设置。
|
|
45
|
+
|
|
46
|
+
表单会话中,平台级合集可用 `publish form choose <session.json> collection` 选择;文章级合集和分类分别使用 `article.collection`、`article.categories`,默认写入第一篇文章。用 `--path publishArgs.platformForms.微信公众号.articles[索引].collection` 或 `...categories[索引]` 指定其他文章或分类项。查询来源必须是目标账号的 `yxer query wechat-collections ... --type article --json` 或 `yxer query categories ... --type article --json`。赞赏账号、自动回复和公益项目通过对应查询命令取值后,使用 `publish form set` 写入 `rewardSettings` 对象。
|
|
38
47
|
|
|
39
48
|
## 2. Payload 完整示例
|
|
40
49
|
|
|
@@ -73,6 +82,11 @@
|
|
|
73
82
|
},
|
|
74
83
|
"quickRepost": 1,
|
|
75
84
|
"quickPrivateMessage": 1,
|
|
85
|
+
"disableRecommend": 0,
|
|
86
|
+
"needOpenComment": 3,
|
|
87
|
+
"needOpenReply": 2,
|
|
88
|
+
"collection": { "yixiaoerId": "collection-id", "yixiaoerName": "合集名称", "raw": "query 返回值" },
|
|
89
|
+
"rewardSettings": { "enabled": false, "type": "disabled" },
|
|
76
90
|
"categories": [
|
|
77
91
|
{ "yixiaoerId": "cat_001", "yixiaoerName": "科普", "raw": {} }
|
|
78
92
|
]
|
|
@@ -80,7 +94,11 @@
|
|
|
80
94
|
],
|
|
81
95
|
"notifySubscribers": 1,
|
|
82
96
|
"pubType": 1,
|
|
83
|
-
"sex": 0
|
|
97
|
+
"sex": 0,
|
|
98
|
+
"needOpenComment": 0,
|
|
99
|
+
"needOpenReply": 2,
|
|
100
|
+
"collection": { "yixiaoerId": "collection-id", "yixiaoerName": "合集名称", "raw": "query 返回值" },
|
|
101
|
+
"rewardSettings": { "enabled": false, "type": "disabled" }
|
|
84
102
|
}
|
|
85
103
|
}
|
|
86
104
|
}
|
|
@@ -103,6 +121,24 @@
|
|
|
103
121
|
| `categories` | `Array` | 否 | 申明原创时设置的文章分类 (`Category[]`) |
|
|
104
122
|
| `quickPrivateMessage` | `number` | 否 | 快捷私信 (与留言互斥): 0-否, 1-是 |
|
|
105
123
|
| `contentSourceUrl` | `string` | 否 | 原文地址链接 |
|
|
124
|
+
| `disableRecommend` | `number` | 否 | 平台推荐:0 允许,1 不允许 |
|
|
125
|
+
| `needOpenComment` | `number` | 否 | 留言范围:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 |
|
|
126
|
+
| `needOpenReply` | `number` | 否 | 留言回复范围,使用公众号表单提供的枚举值 |
|
|
127
|
+
| `collection` | `object` | 否 | 当前文章所属合集,使用目标账号的合集查询结果 |
|
|
128
|
+
| `rewardSettings` | `object` | 否 | 当前文章赞赏设置;开启赞赏前须声明原创 |
|
|
129
|
+
|
|
130
|
+
`rewardSettings` 支持 `enabled`、`type`(`author` / `charity` / `disabled`)、`account`、`accountId`、`autoReplyEnabled`、`autoReplies`、`replyId`、`charityProject` 和 `charityProjectInfo`。赞赏账号、回复和公益项目必须取自对应公众号账号的实际查询结果。
|
|
131
|
+
|
|
132
|
+
可用以下命令查询公众号设置候选:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
yxer query wechat-reward-authors <account_id> --json
|
|
136
|
+
yxer query wechat-reward-replies <account_id> --json
|
|
137
|
+
yxer query wechat-charity-projects <account_id> --query <关键词> --json
|
|
138
|
+
yxer query wechat-collections <account_id> --type article --json
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
赞赏账号和回复将查询结果中的 `yixiaoerId` 转为数值后写入 `accountId` / `replyId`,名称写入 `account` / `autoReplies[0]`。公益项目将查询项的 `raw` 写入 `charityProjectInfo`。
|
|
106
142
|
|
|
107
143
|
#### 文章内嵌内容说明
|
|
108
144
|
|
|
@@ -135,3 +171,4 @@
|
|
|
135
171
|
| :--- | :--- | :--- |
|
|
136
172
|
| `cover.key` | `upload` | [资源上传](../../upload-resource.md) |
|
|
137
173
|
| `authorName` | `accounts` | [查询账号列表](../../query-accounts.md) |
|
|
174
|
+
| `articles[].collection`、`collection` | `query wechat-collections --type article` | [查询合集](../../get-collections.md) |
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
| `formType` | `string` | **是** | 固定值: `task` | `task` |
|
|
30
30
|
| `title` | `string` | 否 | 标题 (最多 20 字) | - |
|
|
31
31
|
| `description` | `string` | 否 | 图文描述,支持 HTML (`<p>`, `<topic>`)。最多 30 字符。 | - |
|
|
32
|
+
| `declaration` | `number` | 否 | 创作声明:`0`-不声明,`3`-内容由 AI 生成,`4`-可能引人不适,`5`-虚构演绎,`6`-危险行为,`7`-个人观点,`8`-含营销推广信息。AI 声明使用 `3`。 | `0` |
|
|
32
33
|
| `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
|
|
33
34
|
| `location` | `Object` | 否 | 地址信息 (`PlatformDataItem`) | - |
|
|
34
35
|
| `music` | `Object` | 否 | 音乐信息 (`MusicItem`) | - |
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"formType": "task",
|
|
89
90
|
"title": "抖音图文标题",
|
|
90
91
|
"description": "<p>内容描述 <topic text='合拍' raw='{\"id\":\"xxx\",\"name\":\"合拍\"}'>#合拍</topic></p>",
|
|
92
|
+
"declaration": 3,
|
|
91
93
|
"images": [
|
|
92
94
|
{ "key": "img_1", "size": 1024, "width": 1080, "height": 1440, "format": "jpg" },
|
|
93
95
|
{ "key": "img_2", "size": 1024, "width": 1080, "height": 1440, "format": "jpg" }
|
|
@@ -28,9 +28,12 @@
|
|
|
28
28
|
| `location` | `PlatformDataItem` | **否** | 位置信息 | - |
|
|
29
29
|
| `music` | `PlatformDataItem` | **否** | 音乐信息 | - |
|
|
30
30
|
| `visibleType` | `number` | **是** | 可见类型: 0-公开, 1-私密, 3-好友可见 | 0 |
|
|
31
|
+
| `declaration` | `number` | 否 | 内容声明:`0`-不声明,`1`-内容为 AI 生成,`2`-演绎情节,`3`-个人观点。AI 声明使用 `1`。 | `0` |
|
|
31
32
|
| `scheduledTime` | `number` | **否** | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
32
33
|
| `collection` | `Category` | **否** | 合集信息 | - |
|
|
33
34
|
|
|
35
|
+
2026-10-14 实测补充:传 `declaration: 1` 后,手机客户端可见 AI 声明;网页版后台不显示声明标识。网页版不显示不代表字段没有生效。
|
|
36
|
+
|
|
34
37
|
## 2. 复杂对象结构说明
|
|
35
38
|
|
|
36
39
|
### OldImage
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
"contentPublishForm": {
|
|
89
92
|
"formType": "task",
|
|
90
93
|
"description": "<p>快手动态内容 <topic text='快手' raw='{\"id\":\"xxx\",\"name\":\"快手\"}'>#快手</topic></p>",
|
|
94
|
+
"declaration": 1,
|
|
91
95
|
"images": [
|
|
92
96
|
{ "key": "img_ks_01", "size": 1024, "width": 1080, "height": 1440, "format": "jpg" }
|
|
93
97
|
],
|
|
@@ -32,8 +32,11 @@
|
|
|
32
32
|
| `music` | `Object` | 否 | 音乐对象 (`MusicItem`) | - |
|
|
33
33
|
| `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
|
|
34
34
|
| `collection` | `Object` | 否 | 合集信息,使用 `Collection` 结构 | - |
|
|
35
|
+
| `declaration` | `number` | 否 | 创作声明:0-无需标注,1-含AI生成内容,2-营销广告,3-虚构剧情,7-转载,8-个人观点 | 0 |
|
|
35
36
|
| `pubType` | `number` | **是** | 发布类型: 0-平台草稿, 1-直接发布 | 1 |
|
|
36
37
|
|
|
38
|
+
含 AI 生成内容时,请设置 `contentPublishForm.declaration` 为 `1`。
|
|
39
|
+
|
|
37
40
|
## 1.1 封面派生规则
|
|
38
41
|
|
|
39
42
|
视频号图文没有单独的外部封面参数。只需提供 `contentPublishForm.images`;CLI 会在内部默认使用 `images[0]` 派生 `cover` / `coverKey`,不要在 payload 中额外手写封面字段。
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
"formType": "task",
|
|
91
94
|
"title": "视频号动态标题",
|
|
92
95
|
"description": "<p>视频号图文内容 <topic text='微信' raw='{\"id\":\"xxx\",\"name\":\"微信\"}'>#微信</topic></p>",
|
|
96
|
+
"declaration": 1,
|
|
93
97
|
"pubType": 0,
|
|
94
98
|
"images": [
|
|
95
99
|
{ "key": "img_sph_01", "size": 1024, "width": 1080, "height": 1440, "format": "jpg" }
|
|
@@ -38,10 +38,20 @@
|
|
|
38
38
|
| `notifySubscribers` | number | `0` 不群发,`1` 群发 | `0` |
|
|
39
39
|
| `sex` | number | `0` 全部,`1` 男,`2` 女 | `0` |
|
|
40
40
|
| `scheduledTime` | integer | 13 位 Unix 毫秒时间戳;必须不早于当前时间 2 小时 | 立即发布(不传) |
|
|
41
|
+
| `prePubTime` | integer | `scheduledTime` 的兼容别名,13 位 Unix 毫秒时间戳 | 立即发布(不传) |
|
|
41
42
|
| `needOpenComment` | number | `0` 关闭留言,`1` 仅关注用户,`2` 关注满 7 天,`3` 所有人可留言 | `0` |
|
|
43
|
+
| `needOpenReply` | number | 留言回复范围,使用公众号表单提供的枚举值 | `2` |
|
|
42
44
|
| `statement` | number | 内容合规声明:`0` 无需声明,`1` AI 生成,`3` 剧情演绎仅供娱乐,`4` 个人观点仅供参考,`5` 健康医疗分享仅供参考,`6` 投资观点仅供参考 | `0` |
|
|
43
45
|
| `disableRecommend` | number | `0` 允许平台推荐,`1` 不允许平台推荐 | `0` |
|
|
44
46
|
| `pubType` | number | `1` 直接发布,`0` 保存到平台草稿箱 | `1` |
|
|
47
|
+
| `location` | object | 位置对象,使用 `yxer query locations <account_id> --json` 返回项中的 `id`、`text` 和完整 `raw` | - |
|
|
48
|
+
| `collection` | object | 图文合集,使用 `yxer query wechat-collections <account_id> --type imageText --json` 返回的完整对象 | - |
|
|
49
|
+
| `linkSetting` | object | 关联内容、小程序或小店商品。按 UI 字段传入 `type`、`source`、`title`,以及对应的 URL、AppID、路径或商品字段 | - |
|
|
50
|
+
| `rewardSettings` | object | 赞赏设置,结构见下方;开启前须声明原创 | - |
|
|
51
|
+
|
|
52
|
+
赞赏对象支持 `enabled`、`type`(`author` / `charity` / `disabled`)、`account`、`accountId`、`autoReplyEnabled`、`autoReplies`、`replyId`、`charityProject` 和 `charityProjectInfo`。账号、回复和公益项目 ID 必须来自该公众号账号的查询结果:`yxer query wechat-reward-authors`、`wechat-reward-replies` 和 `wechat-charity-projects`。也可使用表单字段 `rewardType`、`rewardAccount`、`rewardAccountId`、`rewardAutoReplyEnabled`、`rewardAutoReplies`、`rewardReplyId`、`charityProject`、`charityProjectInfo`;服务端会将这些字段组装为 `rewardSettings`。
|
|
53
|
+
|
|
54
|
+
`linkSetting` 的 `type` 可为 `content`、`miniProgram` 或 `shopProduct`;`source` 可为 `published`、`url`、`miniProgram` 或 `shopProduct`。输入的内容链接用 `yxer query wechat-content-link-info <account_id> --url <url>` 解析;已发表内容用 `yxer query wechat-published-contents <account_id>` 搜索。小程序使用 `yxer query miniapps` 获取候选;小店商品使用 `yxer query goods` 查询。小程序使用 `appId` 和 `path`,小店商品使用 `productId`、`productEncryptKey`、`productType` 与 `biz`。保留查询/解析结果中的标题和标识。
|
|
45
55
|
|
|
46
56
|
### 图片和封面
|
|
47
57
|
|
|
@@ -72,7 +82,11 @@
|
|
|
72
82
|
"needOpenComment": 3,
|
|
73
83
|
"statement": 4,
|
|
74
84
|
"disableRecommend": 0,
|
|
75
|
-
"pubType": 1
|
|
85
|
+
"pubType": 1,
|
|
86
|
+
"location": { "id": "location-id", "text": "长沙市", "raw": { "...": "完整 query 返回对象" } },
|
|
87
|
+
"collection": { "yixiaoerId": "collection-id", "yixiaoerName": "合集名称", "raw": "query 返回值" },
|
|
88
|
+
"linkSetting": { "type": "content", "source": "url", "title": "关联内容标题", "url": "https://example.com/article" },
|
|
89
|
+
"rewardSettings": { "enabled": false, "type": "disabled" }
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
92
|
]
|
|
@@ -87,4 +101,6 @@
|
|
|
87
101
|
- 要群发时设置 `notifySubscribers=1`;`sex` 只表达群发人群性别。
|
|
88
102
|
- 描述字段使用 `desc`;不要把公众号图文写成其他平台通用的 `description`。
|
|
89
103
|
- 设置了 `scheduledTime` 时,CLI 会在本地 preflight 阶段拒绝距离当前不足 2 小时的时间。
|
|
104
|
+
- `prePubTime` 和 `scheduledTime` 都可用于定时发布;新 payload 优先使用 `prePubTime`。
|
|
105
|
+
- 位置与合集应使用查询命令返回的完整对象;不要根据名称手工构造 ID 或 `raw`。
|
|
90
106
|
- `pubType=0` 是目标平台草稿箱,不是蚁小二内部草稿;蚁小二内部草稿仍使用顶层 `isDraft=true`。
|