@yixiaoermail/cli 3.2.15 → 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 CHANGED
@@ -1,6 +1,6 @@
1
- b1a522d983398558604d5eecb495d7f41caee80e0da51eb7e09a039e0cfcef40 yxer-cli-3.2.15-windows-amd64.zip
2
- 8b55e6d450074980db2063123aaeea6a5954bb7a16b66c5f2c95158aefd957c8 yxer-cli-3.2.15-windows-arm64.zip
3
- d1092bb67d2a6d8bfeb9b38e426a0179be73d5514c516e6b6112c3192da46194 yxer-cli-3.2.15-darwin-amd64.tar.gz
4
- 9943030d44f708d806d1bf56baab2fbfc54f0cfe689f88b0b6fda51716f84a56 yxer-cli-3.2.15-darwin-arm64.tar.gz
5
- 8a31bdb1611f6034b443df46d9315f7da73c6fa5d4251e62950cec72e879be53 yxer-cli-3.2.15-linux-amd64.tar.gz
6
- d6c884cbf51d942277ea02d3ae6eb4c38042602f1653f4463251734bd73d6fe7 yxer-cli-3.2.15-linux-arm64.tar.gz
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yixiaoermail/cli",
3
- "version": "3.2.15",
3
+ "version": "3.2.16",
4
4
  "description": "Yixiaoer CLI packaged for npm global installation",
5
5
  "bin": {
6
6
  "yxer": "bin/yxer.js"
@@ -77,6 +77,8 @@ yxer query categories <account_id> [--type video|article]
77
77
  yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
78
78
  yxer query music <account_id> [--query 关键词]
79
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]
80
82
  yxer query goods-detail <account_id> --url <product_url>
81
83
  yxer query entitlements <account_id>
82
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)
@@ -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 位毫秒时间戳。
@@ -21,7 +21,7 @@
21
21
  "images": {
22
22
  "type": "array",
23
23
  "minItems": 1,
24
- "maxItems": 9,
24
+ "maxItems": 18,
25
25
  "items": {
26
26
  "type": "object",
27
27
  "required": [
@@ -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
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yixiaoer
3
- version: 3.2.15
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
  ## 页面式表单会话
@@ -77,6 +77,8 @@ yxer query categories <account_id> [--type video|article]
77
77
  yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
78
78
  yxer query music <account_id> [--query 关键词]
79
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]
80
82
  yxer query goods-detail <account_id> --url <product_url>
81
83
  yxer query entitlements <account_id>
82
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)
@@ -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 位毫秒时间戳。