| 1 | # platforms API |
| 2 | |
| 3 | ## 模块边界 |
| 4 | |
| 5 | 平台专项能力,例如发布、互动、作品校验和平台参数。开源版只保留当前页面和组件实际使用的发布、授权、平台参数与作品数据接口。 |
| 6 | |
| 7 | ## 文件清单 |
| 8 | |
| 9 | - `bilibili.api.ts` |
| 10 | - `douyin.api.ts` |
| 11 | - `douyin.constants.ts` |
| 12 | - `douyin.types.ts` |
| 13 | - `instagram.api.ts` |
| 14 | - `instagram.types.ts` |
| 15 | - `pinterest.api.ts` |
| 16 | - `pinterest.constants.ts` |
| 17 | - `pinterest.types.ts` |
| 18 | - `publish.api.ts` |
| 19 | - `publish.constants.ts` |
| 20 | - `publish.types.ts` |
| 21 | - `threads.api.ts` |
| 22 | - `threads.types.ts` |
| 23 | - `tiktok.api.ts` |
| 24 | - `tiktok.types.ts` |
| 25 | - `work.api.ts` |
| 26 | - `work.types.ts` |
| 27 | - `youtube.api.ts` |
| 28 | |
| 29 | ## 接口清单 |
| 30 | |
| 31 | | 方法 | 请求 | 说明 | |
| 32 | | ------------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------ | |
| 33 | | `apiDouyinMiniAppChannelAuthComplete` | `POST plat/douyin/miniapp-auth/complete` | 完成抖音小程序渠道授权。 | |
| 34 | | `apiDouyinMiniAppHomepageFansCount` | `GET plat/douyin-miniapp/homepage-data/fans-count` | 获取抖音小程序首页粉丝数。 | |
| 35 | | `apiGetBilibiliPartitions` | `GET v2/channels/accounts/{param}/publish-options/tid/values` | 获取 B 站分区列表。 | |
| 36 | | `apiGetInstagramNoUserAuthUrl` | `POST plat/meta/auth/url/public` | Instagram 公开授权接口(无需登录)。 | |
| 37 | | `apiGetThreadsLocations` | `GET v2/channels/accounts/{param}/publish-options/location_id/values` | 获取 Threads 位置列表。 | |
| 38 | | `apiGetTikTokNoUserAuthUrl` | `POST plat/tiktok/authUrl` | 获取 TikTok 无账号授权链接。 | |
| 39 | | `apiGetYouTubeCategories` | `GET v2/channels/accounts/{param}/publish-options/categoryId/values` | 获取账号平台动态发布选项取值。 | |
| 40 | | `apiValidateWorkOwnership` | `POST channel/work/validate` | 校验作品归属。 | |
| 41 | | `createPinterestBoardApi` | `POST v2/channels/accounts/{param}/publish-options/boardId/values` | 创建 Pinterest Board。 | |
| 42 | | `getPinterestBoardListApi` | `GET v2/channels/accounts/{param}/publish-options/boardId/values` | 获取 Pinterest Board 列表。 | |
| 43 | | `getPublishRecordDetail` | 前端封装 | 获取发布记录详情。 | |
| 44 | | `getPublishRecordDetailById` | 前端封装 | 根据记录 ID 获取发布记录详情(用于抖音 H5 发布轮询)。 | |
| 45 | |
| 46 | ## 类型清单 |
| 47 | |
| 48 | | 名称 | 类型 | 说明 | |
| 49 | | ---------------------------------------- | ----------- | ------------------------------------------------- | |
| 50 | | `DouyinMiniAppChannelAuthCompleteParams` | `interface` | DouyinMiniAppChannelAuthCompleteParams 请求参数。 | |
| 51 | | `DouyinMiniAppChannelAuthCompleteVo` | `interface` | Douyin mini app channel auth completion response. | |
| 52 | | `DouyinMiniAppDataAuthStatus` | `interface` | DouyinMiniAppDataAuthStatus 类型。 | |
| 53 | | `DouyinMiniAppFansCount` | `interface` | DouyinMiniAppFansCount 类型。 | |
| 54 | | `DouyinMiniAppFansCountItem` | `interface` | DouyinMiniAppFansCountItem 数据结构。 | |
| 55 | | `DouyinMiniAppQrLoginCreate` | `interface` | DouyinMiniAppQrLoginCreate 类型。 | |
| 56 | | `DouyinMiniAppSession` | `interface` | DouyinMiniAppSession 类型。 | |
| 57 | | `InstagramNoUserAuthUrlParams` | `interface` | InstagramNoUserAuthUrlParams 请求参数。 | |
| 58 | | `InstagramNoUserAuthUrlVo` | `interface` | Instagram public auth URL response. | |
| 59 | | `PinterestBoardCreateParams` | `interface` | PinterestBoardCreateParams 请求参数。 | |
| 60 | | `PinterestBoardItem` | `interface` | PinterestBoardItem 数据结构。 | |
| 61 | | `PinterestBoardPrivacy` | `type` | PinterestBoardPrivacy 类型。 | |
| 62 | | `PublishApiResponse` | `type` | 发布接口响应包装。 | |
| 63 | | `PublishRecordEngagement` | `interface` | PublishRecordEngagement 类型。 | |
| 64 | | `PublishRecordItem` | `interface` | PublishRecordItem 数据结构。 | |
| 65 | | `ThreadsLocationItem` | `interface` | ThreadsLocationItem 数据结构。 | |
| 66 | | `ThreadsLocationsResponse` | `interface` | ThreadsLocationsResponse 响应数据。 | |
| 67 | | `TikTokNoUserAuthUrlParams` | `interface` | TikTokNoUserAuthUrlParams 请求参数。 | |
| 68 | | `TikTokNoUserAuthUrlVo` | `interface` | TikTok public auth URL response. | |
| 69 | | `TikTokPrivacyLevel` | `type` | TikTokPrivacyLevel 类型。 | |
| 70 | | `ValidateWorkOwnershipDto` | `interface` | ValidateWorkOwnershipDto 请求参数。 | |
| 71 | | `ValidateWorkOwnershipVo` | `interface` | ValidateWorkOwnershipVo 响应数据。 | |
| 72 | | `ValidateWorkOwnershipWorkDetail` | `interface` | ValidateWorkOwnershipWorkDetail 数据结构。 | |
| 73 | |
| 74 | ## 常量清单 |
| 75 | |
| 76 | | 名称 | 类型 | 说明 | |
| 77 | | ---------------------------- | ------- | --------------------------------- | |
| 78 | | `DouyinMiniAppDataAuthScope` | `enum` | DouyinMiniAppDataAuthScope 枚举。 | |
| 79 | | `PublishStatus` | `enum` | PublishStatus 枚举。 | |
| 80 | | `PINTEREST_BOARD_FIELD` | `const` | PINTEREST_BOARD_FIELD 常量。 | |
| 81 |