@ccw-api/api 0.10.1 → 0.10.3

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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { setToken } from '@ccw-api/axios';
2
2
 
3
- type Res$1U = {
3
+ type Res$1X = {
4
4
  captchaExpired: boolean;
5
5
  errorMsg: string | null;
6
6
  success: boolean;
@@ -12,10 +12,10 @@ type Res$1U = {
12
12
  * @param {number} y 拼图滑块目标位置的 y 坐标
13
13
  * @returns {Promise<Res>} 校验结果
14
14
  */
15
- declare function checkCaptcha(token: string, x: number, y?: number): Promise<Res$1U>;
15
+ declare function checkCaptcha(token: string, x: number, y?: number): Promise<Res$1X>;
16
16
 
17
17
  type CaptchaType$1 = "BLOCK_PUZZLE";
18
- type Res$1T = {
18
+ type Res$1W = {
19
19
  data: {
20
20
  /**
21
21
  * data url
@@ -33,9 +33,9 @@ type Res$1T = {
33
33
  * @param {CaptchaType} type 验证码类型,默认 BLOCK_PUZZLE(滑块拼图)
34
34
  * @returns {Promise<Res>} 验证码信息:bgImg为背景图base64 data url,jigsawImg为拼图块base64 data url,token用于后续校验
35
35
  */
36
- declare function createCaptcha(type?: CaptchaType$1): Promise<Res$1T>;
36
+ declare function createCaptcha(type?: CaptchaType$1): Promise<Res$1W>;
37
37
 
38
- type Res$1S = {};
38
+ type Res$1V = {};
39
39
  /**
40
40
  * 查询云变量详情 V2
41
41
  * @param {string} accessKey 访问密钥(如作品 OID)
@@ -44,7 +44,7 @@ type Res$1S = {};
44
44
  * @param {string[]} filterKeys 过滤的变量名列表
45
45
  * @returns {Promise<Res>} 云变量详情
46
46
  */
47
- declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res$1S>;
47
+ declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res$1V>;
48
48
 
49
49
  /**
50
50
  * 十六进制秒级时间戳
@@ -816,23 +816,23 @@ declare namespace pages {
816
816
  export type { pages_PageArgs as PageArgs, pages_PagesRes as PagesRes, pages_SortType as SortType };
817
817
  }
818
818
 
819
- type Res$1R = PagesRes<Extension>;
819
+ type Res$1U = PagesRes<Extension>;
820
820
  /**
821
821
  * 获取用户扩展列表分页
822
822
  * @param {MongoDBId} userOid 用户id
823
823
  * @param {Partial<PageArgs<"createdAt" | "updatedAt" | T>>} pageArgs_ 分页参数
824
824
  * @returns {Promise<Res>} 扩展分页列表
825
825
  */
826
- declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1R>;
826
+ declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1U>;
827
827
 
828
- type Res$1Q = boolean;
828
+ type Res$1T = boolean;
829
829
  /**
830
830
  * 向扩展投币
831
831
  * @param {ExtensionDonateEid} eid 扩展id
832
832
  * @param {number} bucks 捐赠金币数量
833
833
  * @returns {Promise<Res>} 是否捐赠成功
834
834
  */
835
- declare function donateExtension(eid: string, bucks: number): Promise<Res$1Q>;
835
+ declare function donateExtension(eid: string, bucks: number): Promise<Res$1T>;
836
836
 
837
837
  type SubmitRes = boolean;
838
838
  type LeaderboardUser = {
@@ -897,13 +897,13 @@ type BulletinDetail = {
897
897
  title: string;
898
898
  updatedAt: number;
899
899
  };
900
- type Res$1P = BulletinDetail;
900
+ type Res$1S = BulletinDetail;
901
901
  /**
902
902
  * 获取公告详情
903
903
  * @param {number} id 公告id
904
904
  * @returns {Promise<Res>} 公告详情
905
905
  */
906
- declare function getBulletinDetail(id: number): Promise<Res$1P>;
906
+ declare function getBulletinDetail(id: number): Promise<Res$1S>;
907
907
 
908
908
  type BulletinItem = {
909
909
  createdAt: number;
@@ -914,32 +914,32 @@ type BulletinItem = {
914
914
  updatedAt: number;
915
915
  };
916
916
  type SortField$c = "publishedAt";
917
- type Res$1O = PagesRes<BulletinItem>;
917
+ type Res$1R = PagesRes<BulletinItem>;
918
918
  /**
919
919
  * 获取公告分页列表
920
920
  * @param {'PUBLISHED' | S} status 公告状态过滤
921
921
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
922
922
  * @returns {Promise<Res>} 公告分页列表
923
923
  */
924
- declare function getBulletinsPage<T extends string, S extends string>(status?: "PUBLISHED" | S, pageArgs_?: Partial<PageArgs<SortField$c | T>>): Promise<Res$1O>;
924
+ declare function getBulletinsPage<T extends string, S extends string>(status?: "PUBLISHED" | S, pageArgs_?: Partial<PageArgs<SortField$c | T>>): Promise<Res$1R>;
925
925
 
926
- type Res$1N = number;
926
+ type Res$1Q = number;
927
927
  /**
928
928
  * 获取服务端当前时间戳
929
929
  * @returns {Promise<Res>} 当前时间戳(毫秒)
930
930
  */
931
- declare function getCurrentTimestamp(): Promise<Res$1N>;
931
+ declare function getCurrentTimestamp(): Promise<Res$1Q>;
932
932
 
933
- type Res$1M = boolean;
933
+ type Res$1P = boolean;
934
934
  /**
935
935
  * 查看作品统计(增加浏览量)
936
936
  * @param {MongoDBId} oid 作品id
937
937
  * @param {string} inviteCode 邀请码
938
938
  * @returns {Promise<boolean>} 是否成功
939
939
  */
940
- declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$1M>;
940
+ declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$1P>;
941
941
 
942
- type Res$1L = boolean;
942
+ type Res$1O = boolean;
943
943
  /**
944
944
  * 更新学生个人信息
945
945
  * @param {string} gender 性别
@@ -953,17 +953,17 @@ type Res$1L = boolean;
953
953
  * @param {string} learnedProgrammingLanguages 学过的编程语言
954
954
  * @returns {Promise<boolean>} 是否更新成功
955
955
  */
956
- declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$1L>;
956
+ declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$1O>;
957
957
 
958
- type Res$1K = boolean;
958
+ type Res$1N = boolean;
959
959
  /**
960
960
  * 更换代表作
961
961
  * @param {MongoDBId|""} creationOid 作品OID 若为""则是取消展示
962
962
  * @returns {Promise<Res>} 更换结果
963
963
  */
964
- declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$1K>;
964
+ declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$1N>;
965
965
 
966
- type Res$1J = boolean;
966
+ type Res$1M = boolean;
967
967
  /**
968
968
  * 更新作品信息
969
969
  * @param {MongoDBId} oid 作品id
@@ -972,15 +972,15 @@ type Res$1J = boolean;
972
972
  * @param {CNameOssUrl} latestCoverLink 最新封面链接
973
973
  * @returns {Promise<Res>} 更新是否成功
974
974
  */
975
- declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$1J>;
975
+ declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$1M>;
976
976
 
977
- type Res$1I = boolean;
977
+ type Res$1L = boolean;
978
978
  /**
979
979
  * 置顶评论
980
980
  * @param {number} id 评论id
981
981
  * @returns {Promise<Res>} 操作是否成功
982
982
  */
983
- declare function topComment(id: number): Promise<Res$1I>;
983
+ declare function topComment(id: number): Promise<Res$1L>;
984
984
 
985
985
  type Req$1 = {
986
986
  audioSize: number;
@@ -1011,37 +1011,37 @@ type Req$1 = {
1011
1011
  type: "ORIGINAL" | "REMIXED";
1012
1012
  videoLink: null | string;
1013
1013
  };
1014
- type Res$1H = boolean;
1014
+ type Res$1K = boolean;
1015
1015
  /**
1016
1016
  * 提交作品
1017
1017
  * @param {Req} req 提交参数 看着写吧,我也不知道该怎么整了()
1018
1018
  * @returns {Promise<Res>} 提交是否成功
1019
1019
  */
1020
- declare function submitCreation(req: Req$1): Promise<Res$1H>;
1020
+ declare function submitCreation(req: Req$1): Promise<Res$1K>;
1021
1021
 
1022
- type Res$1G = boolean;
1022
+ type Res$1J = boolean;
1023
1023
  /**
1024
1024
  * 设置用户商品状态(如佩戴/卸下头像框)
1025
1025
  * @param {number} id 用户商品ID
1026
1026
  * @param {boolean} status 商品状态,true为佩戴,false为卸下
1027
1027
  * @returns {Promise<Res>} 设置结果
1028
1028
  */
1029
- declare function setUserProductStatus(id: number, status: boolean): Promise<Res$1G>;
1029
+ declare function setUserProductStatus(id: number, status: boolean): Promise<Res$1J>;
1030
1030
 
1031
- type Res$1F = boolean;
1031
+ type Res$1I = boolean;
1032
1032
  /**
1033
1033
  * 发送事件
1034
1034
  * @param {string} actionId 事件ID
1035
1035
  * @returns {Promise<Res>} 是否成功
1036
1036
  */
1037
- declare function sendEvent(actionId: string): Promise<Res$1F>;
1037
+ declare function sendEvent(actionId: string): Promise<Res$1I>;
1038
1038
 
1039
1039
  type SortField$b = "createdAt" | "likeCount" | "viewCount";
1040
1040
  type Req = {
1041
1041
  oids?: string[];
1042
1042
  tag?: string;
1043
1043
  };
1044
- type Res$1E = PagesRes<CreationSimple>;
1044
+ type Res$1H = PagesRes<CreationSimple>;
1045
1045
  /**
1046
1046
  * 搜索作品
1047
1047
  * @param {string} req.tag 标签 例如:游戏 动画故事 角色扮演 kukeChat
@@ -1049,10 +1049,10 @@ type Res$1E = PagesRes<CreationSimple>;
1049
1049
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1050
1050
  * @returns {Promise<Res>} 作品分页结果
1051
1051
  */
1052
- declare function searchCreationsByTag<T extends string>(req: Req, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$1E>;
1052
+ declare function searchCreationsByTag<T extends string>(req: Req, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$1H>;
1053
1053
 
1054
1054
  type SortField$a = "type" | "createdAt";
1055
- type Res$1D = PagesRes<CloudAsset>;
1055
+ type Res$1G = PagesRes<CloudAsset>;
1056
1056
  interface CloudAsset {
1057
1057
  categories: [];
1058
1058
  /**
@@ -1087,48 +1087,48 @@ type CloudAssetType = "COSTUME" | "FOLDER" | "VIDEO" | "AUDIO";
1087
1087
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1088
1088
  * @returns {Promise<Res>} 目录内的素材分页结果
1089
1089
  */
1090
- declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$1D>;
1090
+ declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$1G>;
1091
1091
 
1092
- type Res$1C = boolean;
1092
+ type Res$1F = boolean;
1093
1093
  /**
1094
1094
  * 取消置顶
1095
1095
  * @param {number} id 评论id
1096
1096
  * @returns {Promise<Res>} 操作是否成功
1097
1097
  */
1098
- declare function resetCommentWeight(id: number): Promise<Res$1C>;
1098
+ declare function resetCommentWeight(id: number): Promise<Res$1F>;
1099
1099
 
1100
- type Res$1B = string;
1100
+ type Res$1E = string;
1101
1101
  /**
1102
1102
  * 获取协作签名(协作token)
1103
1103
  * @param {MongoDBId} creationOid 作品id
1104
1104
  * @returns {Promise<Res>} 签名(token)
1105
1105
  */
1106
- declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$1B>;
1106
+ declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$1E>;
1107
1107
 
1108
- type Res$1A = boolean;
1108
+ type Res$1D = boolean;
1109
1109
  /**
1110
1110
  * 点赞评论
1111
1111
  * @param {number} commentId 评论id
1112
1112
  * @returns {Promise<Res>} 操作是否成功
1113
1113
  */
1114
- declare function likeComment(commentId: number): Promise<Res$1A>;
1114
+ declare function likeComment(commentId: number): Promise<Res$1D>;
1115
1115
 
1116
- type Res$1z = boolean;
1116
+ type Res$1C = boolean;
1117
1117
  /**
1118
1118
  * 插入签到记录(相当于签到)
1119
1119
  * @returns {Promise<boolean>} 是否成功
1120
1120
  */
1121
- declare function insertCheckInRecord(): Promise<Res$1z>;
1121
+ declare function insertCheckInRecord(): Promise<Res$1C>;
1122
1122
 
1123
1123
  type SortField$9 = "createdAt" | "likeCount" | "viewCount";
1124
- type Res$1y = PagesRes<Creation>;
1124
+ type Res$1B = PagesRes<Creation>;
1125
1125
  /**
1126
1126
  * 获取学生的作品列表
1127
1127
  * @param {MongoDBId[]} studentOids 学生id列表
1128
1128
  * @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
1129
1129
  * @returns {Promise<Res>} 作品分页结果
1130
1130
  */
1131
- declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$1y>;
1131
+ declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$1B>;
1132
1132
 
1133
1133
  declare enum ProductCategory$1 {
1134
1134
  Merchandise = 7,
@@ -1174,16 +1174,16 @@ declare namespace mall {
1174
1174
  }
1175
1175
 
1176
1176
  type ProductSortField = "createdAt" | "updatedAt" | "pointPrice" | "priority" | "stockNum";
1177
- type Res$1x = PagesRes<Product, ProductSortField>;
1177
+ type Res$1A = PagesRes<Product, ProductSortField>;
1178
1178
  /**
1179
1179
  * 分页查询CCW小商店商品列表
1180
1180
  * @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
1181
1181
  * @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
1182
1182
  * @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
1183
1183
  */
1184
- declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$1x>;
1184
+ declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$1A>;
1185
1185
 
1186
- type Res$1w = PagesRes<UserProduct>;
1186
+ type Res$1z = PagesRes<UserProduct>;
1187
1187
  type UserProduct = {
1188
1188
  createdAt: number | null;
1189
1189
  description: string;
@@ -1212,16 +1212,16 @@ declare enum ProductCategory {
1212
1212
  * @param {Partial<PageArgs<SortField>>} pageArgs_ 分页参数
1213
1213
  * @returns {Promise<Res>} 分页用户商品数据
1214
1214
  */
1215
- declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$1w>;
1215
+ declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$1z>;
1216
1216
 
1217
- type Res$1v = {
1217
+ type Res$1y = {
1218
1218
  userLabels: UserLabels[];
1219
1219
  };
1220
1220
  /**
1221
1221
  * 获取用户标签列表
1222
1222
  * @returns {Promise<Res>} 用户标签数据
1223
1223
  */
1224
- declare function getUserLabelList(): Promise<Res$1v>;
1224
+ declare function getUserLabelList(): Promise<Res$1y>;
1225
1225
 
1226
1226
  type UserCardApprovalTag = {
1227
1227
  iconLink: CNameOssUrl;
@@ -1250,7 +1250,7 @@ type UserCardUser = {
1250
1250
  };
1251
1251
  virtualValue: CNameOssUrl;
1252
1252
  };
1253
- type Res$1u = {
1253
+ type Res$1x = {
1254
1254
  creation: CreationMinimal | null;
1255
1255
  user: UserCardUser;
1256
1256
  };
@@ -1259,9 +1259,9 @@ type Res$1u = {
1259
1259
  * @param {MongoDBId} oid 用户id
1260
1260
  * @returns {Promise<Res>} 用户卡片数据
1261
1261
  */
1262
- declare function getUserCardDetail(oid: MongoDBId): Promise<Res$1u>;
1262
+ declare function getUserCardDetail(oid: MongoDBId): Promise<Res$1x>;
1263
1263
 
1264
- type Res$1t = {
1264
+ type Res$1w = {
1265
1265
  /**
1266
1266
  * @example 100MB: "104857600"
1267
1267
  */
@@ -1272,16 +1272,16 @@ type Res$1t = {
1272
1272
  * 获取用户云存储空间信息
1273
1273
  * @returns {Promise<Res>} 存储空间信息
1274
1274
  */
1275
- declare function getUserAssetStorageSize(): Promise<Res$1t>;
1275
+ declare function getUserAssetStorageSize(): Promise<Res$1w>;
1276
1276
 
1277
- type Res$1s = [];
1277
+ type Res$1v = [];
1278
1278
  /**
1279
1279
  * @deprecated 该接口只会返回"[]"
1280
1280
  * 获取学生未读应用课工程文件项目数量
1281
1281
  * @param {MongoDBId} studentOid 学生id
1282
1282
  * @returns {Promise<Res>} 未读应用课工程文件项目id列表
1283
1283
  */
1284
- declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$1s>;
1284
+ declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$1v>;
1285
1285
 
1286
1286
  type TypicalProjectItem = {
1287
1287
  cover: string;
@@ -1297,14 +1297,14 @@ type TypicalProjectItem = {
1297
1297
  templateType: string;
1298
1298
  updatedAt: null | number;
1299
1299
  };
1300
- type Res$1r = PagesRes<TypicalProjectItem>;
1300
+ type Res$1u = PagesRes<TypicalProjectItem>;
1301
1301
  /**
1302
1302
  * 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
1303
1303
  * @param {MongoDBId} studentOid 学生id
1304
1304
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1305
1305
  * @returns {Promise<Res>} 应用课工程文件项目分页列表
1306
1306
  */
1307
- declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1r>;
1307
+ declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1u>;
1308
1308
 
1309
1309
  /**
1310
1310
  * @returns {Promise<number>} 当前时间戳,相当于Date.now()
@@ -1337,7 +1337,7 @@ type TeamworkLogContent = {
1337
1337
  };
1338
1338
  type SortField$8 = "createdAt";
1339
1339
  type OperateTargets = "VARIABLE" | "BLOCK" | "SPRITE" | "PROJECT" | "TEAMWORK";
1340
- type Res$1q<T> = PagesRes<TeamworkLogItem<T>>;
1340
+ type Res$1t<T> = PagesRes<TeamworkLogItem<T>>;
1341
1341
  /**
1342
1342
  * 获取团队协作日志分页
1343
1343
  * @param {MongoDBId} creationId 作品id
@@ -1345,7 +1345,7 @@ type Res$1q<T> = PagesRes<TeamworkLogItem<T>>;
1345
1345
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1346
1346
  * @returns {Promise<Res>} 协作日志分页列表
1347
1347
  */
1348
- declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$1q<TeamworkLogContent>>;
1348
+ declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$1t<TeamworkLogContent>>;
1349
1349
 
1350
1350
  type TeamMemberAuthority = "ADMIN" | "MEMBER" | "OBSERVER";
1351
1351
  type TeamMember = {
@@ -1362,14 +1362,14 @@ type TeamMember = {
1362
1362
  userOid: MongoDBId;
1363
1363
  };
1364
1364
 
1365
- type Res$1p = TeamMember[];
1365
+ type Res$1s = TeamMember[];
1366
1366
  /**
1367
1367
  * 获取作品协作成员列表
1368
1368
  * @param {MongoDBId} creationOid 作品id
1369
1369
  * @param {TeamMemberAuthority[]} authorities 权限过滤
1370
1370
  * @returns {Promise<Res>} 作品协作成员列表
1371
1371
  */
1372
- declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$1p>;
1372
+ declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$1s>;
1373
1373
 
1374
1374
  type SubjectAreaModuleComponent$1 = {
1375
1375
  data: {
@@ -1428,14 +1428,14 @@ type SubjectAreaItem$1 = {
1428
1428
  title: string;
1429
1429
  visibleFor: string[];
1430
1430
  };
1431
- type Res$1o = PagesRes<SubjectAreaItem$1>;
1431
+ type Res$1r = PagesRes<SubjectAreaItem$1>;
1432
1432
  /**
1433
1433
  * 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
1434
1434
  * @param {SubjectAreaChannel} channel 频道
1435
1435
  * @param {Partial<PageArgs<"campaignResourceId" | T>>} pageArgs_ 分页参数
1436
1436
  * @returns {Promise<Res>} 学科区分页数据
1437
1437
  */
1438
- declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$1o>;
1438
+ declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$1r>;
1439
1439
 
1440
1440
  type SubjectAreaModuleComponent = {
1441
1441
  data: {
@@ -1494,16 +1494,16 @@ type SubjectAreaItem = {
1494
1494
  title: string;
1495
1495
  visibleFor: string[];
1496
1496
  };
1497
- type Res$1n = PagesRes<SubjectAreaItem>;
1497
+ type Res$1q = PagesRes<SubjectAreaItem>;
1498
1498
  /**
1499
1499
  * 分页获取主页推荐列表
1500
1500
  * @param {SubjectAreaScene} scene 场景
1501
1501
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1502
1502
  * @returns {Promise<Res>} 主页推荐分页数据
1503
1503
  */
1504
- declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1n>;
1504
+ declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1q>;
1505
1505
 
1506
- type Res$1m = {
1506
+ type Res$1p = {
1507
1507
  accountOid: MongoDBId;
1508
1508
  accountType: AccountTypes;
1509
1509
  approvedContent: null | string;
@@ -1523,23 +1523,23 @@ type Res$1m = {
1523
1523
  * 获取当前用户学习社区成员详情
1524
1524
  * @returns {Promise<Res>} 我的社区成员详情
1525
1525
  */
1526
- declare function getStudyCommunityMemberDetail(): Promise<Res$1m>;
1526
+ declare function getStudyCommunityMemberDetail(): Promise<Res$1p>;
1527
1527
 
1528
- type Res$1l = StudentFollowerStats;
1528
+ type Res$1o = StudentFollowerStats;
1529
1529
  /**
1530
1530
  * 获取学生统计数据(关注数、粉丝数)
1531
1531
  * @param {MongoDBId} studentOid 学生id
1532
1532
  * @returns {Promise<Res>} 统计数据
1533
1533
  */
1534
- declare function getStudentStats(studentOid: MongoDBId): Promise<Res$1l>;
1534
+ declare function getStudentStats(studentOid: MongoDBId): Promise<Res$1o>;
1535
1535
 
1536
- type Res$1k = StudentListItem[];
1536
+ type Res$1n = StudentListItem[];
1537
1537
  /**
1538
1538
  * 根据学生OID列表获取学生信息列表(这个会返回一堆null,不建议使用)
1539
1539
  * @param {MongoDBId[]} studentOids 学生OID列表
1540
1540
  * @returns {Promise<Res>} 学生信息列表
1541
1541
  */
1542
- declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$1k>;
1542
+ declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$1n>;
1543
1543
 
1544
1544
  interface SessionArea {
1545
1545
  city: string;
@@ -1585,15 +1585,15 @@ declare namespace session {
1585
1585
  export type { session_LoginSession as LoginSession, session_SessionArea as SessionArea, session_StudentSession as StudentSession };
1586
1586
  }
1587
1587
 
1588
- type Res$1j = PagesRes<StudentSession>;
1588
+ type Res$1m = PagesRes<StudentSession>;
1589
1589
  /**
1590
1590
  * 获取学生登录会话列表
1591
1591
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1592
1592
  * @returns {Promise<Res>} 会话列表分页数据
1593
1593
  */
1594
- declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1j>;
1594
+ declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1m>;
1595
1595
 
1596
- type Res$1i = StudentSelfDetail;
1596
+ type Res$1l = StudentSelfDetail;
1597
1597
  /**
1598
1598
  * 获取当前登录学生的详细信息
1599
1599
  * @param {boolean} needGrade 是否需要年级信息
@@ -1601,17 +1601,17 @@ type Res$1i = StudentSelfDetail;
1601
1601
  * @param {StudentSelfDetailFields[]} fields 需要返回的字段列表
1602
1602
  * @returns {Promise<Res>} 当前学生详情
1603
1603
  */
1604
- declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$1i>;
1604
+ declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$1l>;
1605
1605
 
1606
- type Res$1h = StudentProfile;
1606
+ type Res$1k = StudentProfile;
1607
1607
  /**
1608
1608
  * 获取学生个人主页资料
1609
1609
  * @param {MongoDBId} studentOid 学生id
1610
1610
  * @returns {Promise<Res>} 学生资料
1611
1611
  */
1612
- declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$1h>;
1612
+ declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$1k>;
1613
1613
 
1614
- type Res$1g = {
1614
+ type Res$1j = {
1615
1615
  lastActiveAt: number;
1616
1616
  };
1617
1617
  /**
@@ -1619,9 +1619,9 @@ type Res$1g = {
1619
1619
  * @param {MongoDBId} studentOid 学生id
1620
1620
  * @returns {Promise<Res>} 最后活跃时间数据
1621
1621
  */
1622
- declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$1g>;
1622
+ declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$1j>;
1623
1623
 
1624
- type Res$1f = PagesRes<StudentSimple & {
1624
+ type Res$1i = PagesRes<StudentSimple & {
1625
1625
  operatorFollowingStatus: "FOLLOWED" | "BOTH_FOLLOWED";
1626
1626
  }>;
1627
1627
  /**
@@ -1630,19 +1630,19 @@ type Res$1f = PagesRes<StudentSimple & {
1630
1630
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1631
1631
  * @returns {Promise<Res>} 关注列表分页
1632
1632
  */
1633
- declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1f>;
1633
+ declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1i>;
1634
1634
 
1635
1635
  /**
1636
1636
  * 用户是否在我的黑名单中
1637
1637
  */
1638
1638
  type BlockStatus = "NOT_BLOCKED" | "BLOCKING";
1639
- type Res$1e = BlockStatus;
1639
+ type Res$1h = BlockStatus;
1640
1640
  /**
1641
1641
  * 获取特定用户黑名单状态
1642
1642
  * @param {MongoDBId} studentOid 学生id
1643
1643
  * @returns {Promise<Res>} 封禁状态
1644
1644
  */
1645
- declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$1e>;
1645
+ declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$1h>;
1646
1646
 
1647
1647
  type BlockRecord = {
1648
1648
  createdAt: number;
@@ -1651,13 +1651,13 @@ type BlockRecord = {
1651
1651
  reason: string;
1652
1652
  studentOid: MongoDBId;
1653
1653
  };
1654
- type Res$1d = PagesRes<BlockRecord>;
1654
+ type Res$1g = PagesRes<BlockRecord>;
1655
1655
  /**
1656
1656
  * 获取学生封禁记录列表
1657
1657
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1658
1658
  * @returns {Promise<Res>} 封禁记录分页数据
1659
1659
  */
1660
- declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1d>;
1660
+ declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1g>;
1661
1661
 
1662
1662
  type BlockActionRecord = {
1663
1663
  action: "BLOCK";
@@ -1677,21 +1677,21 @@ type BlockActionRecord = {
1677
1677
  relatedEntityType: AccountTypes;
1678
1678
  updatedAt: number;
1679
1679
  };
1680
- type Res$1c = BlockActionRecord | null;
1680
+ type Res$1f = BlockActionRecord | null;
1681
1681
  /**
1682
1682
  * 获取特定用户黑名单详细信息
1683
1683
  * @param {MongoDBId} studentOid 学生id
1684
1684
  * @returns {Promise<Res>} 封禁状态
1685
1685
  */
1686
- declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$1c>;
1686
+ declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$1f>;
1687
1687
 
1688
- type Res$1b = number;
1688
+ type Res$1e = number;
1689
1689
  /**
1690
1690
  * 获取动态未读消息数
1691
1691
  * @param {MongoDBId} studentOid 学生id
1692
1692
  * @returns {Promise<number>} 未读消息数
1693
1693
  */
1694
- declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$1b>;
1694
+ declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$1e>;
1695
1695
 
1696
1696
  type SplitRuleItem = {
1697
1697
  authority: TeamMemberAuthority;
@@ -1711,13 +1711,13 @@ type SplitRuleItem = {
1711
1711
  role: string;
1712
1712
  userOid: MongoDBId;
1713
1713
  };
1714
- type Res$1a = SplitRuleItem[];
1714
+ type Res$1d = SplitRuleItem[];
1715
1715
  /**
1716
1716
  * 获取作品协作者智能合约分成规则详情
1717
1717
  * @param {MongoDBId} creationOid 作品id
1718
1718
  * @returns {Promise<Res>} 分成规则列表
1719
1719
  */
1720
- declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$1a>;
1720
+ declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$1d>;
1721
1721
 
1722
1722
  type SmartContractBizType = "CREATION";
1723
1723
  type SmartContractRule = {
@@ -1754,16 +1754,16 @@ type SmartCoinContract = {
1754
1754
  type: "GENERAL";
1755
1755
  updatedAt: number;
1756
1756
  };
1757
- type Res$19 = SmartCoinContract[];
1757
+ type Res$1c = SmartCoinContract[];
1758
1758
  /**
1759
1759
  * 列出作品中的智能金币合约
1760
1760
  * @param {MongoDBId} bizId 业务ID(如作品OID)
1761
1761
  * @param {SmartContractBizType} bizType 业务类型,CREATION
1762
1762
  * @returns {Promise<Res>} 智能合约列表
1763
1763
  */
1764
- declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$19>;
1764
+ declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$1c>;
1765
1765
 
1766
- type Res$18 = {
1766
+ type Res$1b = {
1767
1767
  accountId: MongoDBId;
1768
1768
  bizId: MongoDBId;
1769
1769
  bizType: SmartContractBizType;
@@ -1780,9 +1780,9 @@ type Res$18 = {
1780
1780
  * @param {number} id 合约 ID
1781
1781
  * @returns {Promise<Res>} 合约详情
1782
1782
  */
1783
- declare function getSmartContractDetail(id: number): Promise<Res$18>;
1783
+ declare function getSmartContractDetail(id: number): Promise<Res$1b>;
1784
1784
 
1785
- type Res$17 = {
1785
+ type Res$1a = {
1786
1786
  balance: number;
1787
1787
  };
1788
1788
  /**
@@ -1790,33 +1790,33 @@ type Res$17 = {
1790
1790
  * @param {number} id 合约 ID
1791
1791
  * @returns {Promise<Res>} 合约账户余额
1792
1792
  */
1793
- declare function getSmartContractAccount(id: number): Promise<Res$17>;
1793
+ declare function getSmartContractAccount(id: number): Promise<Res$1a>;
1794
1794
 
1795
- type Res$16 = string[];
1795
+ type Res$19 = string[];
1796
1796
  /**
1797
1797
  * 获取搜索热词
1798
1798
  * @param {number} length 热词数量
1799
1799
  * @returns {Promise<Res>} 热词列表
1800
1800
  */
1801
- declare function getSearchHotWords(length: number): Promise<Res$16>;
1801
+ declare function getSearchHotWords(length: number): Promise<Res$19>;
1802
1802
 
1803
- type Res$15 = PagesRes<ReputationScoreLog>;
1803
+ type Res$18 = PagesRes<ReputationScoreLog>;
1804
1804
  /**
1805
1805
  * 获取学生信誉分记录
1806
1806
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
1807
1807
  * @returns {Promise<Res>} 信誉分记录分页数据
1808
1808
  */
1809
- declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$15>;
1809
+ declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$18>;
1810
1810
 
1811
1811
  type SortField$7 = "createdAt" | "likeCount" | "viewCount" | "updatedAt" | "commentCount";
1812
- type Res$14 = PagesRes<CreationSimple>;
1812
+ type Res$17 = PagesRes<CreationSimple>;
1813
1813
  /**
1814
1814
  * 根据原作品id获取改编作品分页列表
1815
1815
  * @param {MongoDBId[]} originCreationOids 原作品id列表
1816
1816
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1817
1817
  * @returns {Promise<Res>} 改编作品分页结果
1818
1818
  */
1819
- declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$14>;
1819
+ declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$17>;
1820
1820
 
1821
1821
  type HashTagCreationRank = "ORDINARY";
1822
1822
  type HashTagCreationStatus$1 = CreationStatus;
@@ -1900,12 +1900,12 @@ declare namespace hashTag {
1900
1900
  export type { hashTag_HashTag as HashTag, hashTag_HashTagCreationRank as HashTagCreationRank, hashTag_HashTagCreationRelation as HashTagCreationRelation, HashTagCreationStatus$1 as HashTagCreationStatus, hashTag_HashTagFavorite as HashTagFavorite, hashTag_HashTagFollowingStatus as HashTagFollowingStatus, hashTag_HashTagMemberSimple as HashTagMemberSimple, hashTag_HashTagStatus as HashTagStatus, hashTag_HashTagType as HashTagType };
1901
1901
  }
1902
1902
 
1903
- type Res$13 = HashTag[];
1903
+ type Res$16 = HashTag[];
1904
1904
  /**
1905
1905
  * 获取推荐星球列表
1906
1906
  * @returns {Promise<Res>} 推荐星球列表
1907
1907
  */
1908
- declare function getRecommendHashTags(): Promise<Res$13>;
1908
+ declare function getRecommendHashTags(): Promise<Res$16>;
1909
1909
 
1910
1910
  type CreatorType = "EXCELLENT" | "POTENTIAL";
1911
1911
  type RecommendCreator = {
@@ -1920,31 +1920,31 @@ type RecommendCreator = {
1920
1920
  name: string;
1921
1921
  studentOid: MongoDBId;
1922
1922
  };
1923
- type Res$12 = RecommendCreator[];
1923
+ type Res$15 = RecommendCreator[];
1924
1924
  /**
1925
1925
  * 获取社区推荐创作者列表
1926
1926
  * @param {number} excellentCount 精选创作者数量
1927
1927
  * @param {number} potentialCount 潜力创作者数量
1928
1928
  * @returns {Promise<Res>} 推荐创作者列表
1929
1929
  */
1930
- declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res$12>;
1930
+ declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res$15>;
1931
1931
 
1932
1932
  type SortField$6 = "createdAt" | "likeCount" | "viewCount";
1933
- type Res$11 = PagesRes<CreationSimple>;
1933
+ type Res$14 = PagesRes<CreationSimple>;
1934
1934
  /**
1935
1935
  * 获取推荐作品列表
1936
1936
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
1937
1937
  * @returns {Promise<Res>} 作品分页结果
1938
1938
  */
1939
- declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$11>;
1939
+ declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$14>;
1940
1940
 
1941
- type Res$10 = CreationSimple[];
1941
+ type Res$13 = CreationSimple[];
1942
1942
  /**
1943
1943
  * 获取潜力作品列表
1944
1944
  * @param {number} num 数量
1945
1945
  * @returns {Promise<CreationSimple[]>} 作品列表
1946
1946
  */
1947
- declare function getPotentialCreations(num: number): Promise<Res$10>;
1947
+ declare function getPotentialCreations(num: number): Promise<Res$13>;
1948
1948
 
1949
1949
  type PostTag = {
1950
1950
  name: string;
@@ -1960,7 +1960,7 @@ type PostAuthor = {
1960
1960
  name: string;
1961
1961
  oid: MongoDBId;
1962
1962
  };
1963
- type Res$$ = {
1963
+ type Res$12 = {
1964
1964
  author: PostAuthor;
1965
1965
  authorOid: MongoDBId;
1966
1966
  collectCount: null | number;
@@ -1990,17 +1990,17 @@ type Res$$ = {
1990
1990
  * @param {string} slug 帖子slug
1991
1991
  * @returns {Promise<Res>} 帖子详情
1992
1992
  */
1993
- declare function getPostDetail(slug: string): Promise<Res$$>;
1993
+ declare function getPostDetail(slug: string): Promise<Res$12>;
1994
1994
 
1995
- type Res$_ = HashTagCreationRelation[];
1995
+ type Res$11 = HashTagCreationRelation[];
1996
1996
  /**
1997
1997
  * 获取作品所在星球列表
1998
1998
  * @param {MongoDBId} creationOid 作品ID
1999
1999
  * @returns {Promise<Res>} 星球列表
2000
2000
  */
2001
- declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$_>;
2001
+ declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$11>;
2002
2002
 
2003
- type Res$Z = {
2003
+ type Res$10 = {
2004
2004
  internalCurrencyBalance: number;
2005
2005
  topUpCurrencyBalance: number;
2006
2006
  withdrawCurrencyBalance: number;
@@ -2009,10 +2009,10 @@ type Res$Z = {
2009
2009
  * 获取个人金币信息
2010
2010
  * @returns {Promise<Res>} 账户金币余额信息
2011
2011
  */
2012
- declare function getPersonalCurrencyAccount(): Promise<Res$Z>;
2012
+ declare function getPersonalCurrencyAccount(): Promise<Res$10>;
2013
2013
 
2014
2014
  type SortField$5 = "updatedAt" | "createdAt";
2015
- type Res$Y = PagesRes<CreationSimple>;
2015
+ type Res$$ = PagesRes<CreationSimple>;
2016
2016
  /**
2017
2017
  * 获取自己的作品分页列表
2018
2018
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
@@ -2020,7 +2020,7 @@ type Res$Y = PagesRes<CreationSimple>;
2020
2020
  * @param {ProjectStatus[]} statuses 作品状态过滤
2021
2021
  * @returns {Promise<Res>} 自己的作品分页列表
2022
2022
  */
2023
- declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$5 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$Y>;
2023
+ declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$5 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$$>;
2024
2024
 
2025
2025
  type SubjectType$1 = "POST" | "CREATION" | "EXTENSION" | "PROFILE" | "SOCIETY" | "ACTIVITY" | string;
2026
2026
  type ContentCategory = "POST_LIKED" | "POST_FAVORITE" | "POST_COMMENT" | "CREATION_LIKED" | "CREATION_FAVORITE" | "CREATION_COMMENTED" | "CREATION_SHARE" | "EXTENSION_LIKED" | "EXTENSION_COMMENTED" | "EXTENSION_COMMENT_REPLIED" | "PROFILE_LEAVE_WORDS" | "SESSION_CREATED" | "COMMUNITY_ACTIVITY" | "FOLLOWED" | "POST_VISIBILITY_CHANGED" | string;
@@ -2245,22 +2245,22 @@ declare namespace notification {
2245
2245
  export { type notification_Notification as Notification, type notification_NotificationExtensionInfo as NotificationExtensionInfo, notification_NotificationGroup as NotificationGroup, type notification_NotificationSenderInfo as NotificationSenderInfo, type notification_NotificationStats as NotificationStats };
2246
2246
  }
2247
2247
 
2248
- type Res$X = NotificationStats;
2248
+ type Res$_ = NotificationStats;
2249
2249
  /**
2250
2250
  * 获取通知统计
2251
2251
  * @param {boolean} countAll 是否统计全部
2252
2252
  * @returns {Promise<Res>} 通知统计数据
2253
2253
  */
2254
- declare function getNotificationStats(countAll?: boolean): Promise<Res$X>;
2254
+ declare function getNotificationStats(countAll?: boolean): Promise<Res$_>;
2255
2255
 
2256
- type Res$W = PagesRes<Notification>;
2256
+ type Res$Z = PagesRes<Notification>;
2257
2257
  /**
2258
2258
  * 分页获取通知列表
2259
2259
  * @param {NotificationGroup} notifyGroup 通知分组
2260
2260
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
2261
2261
  * @returns {Promise<Res>} 分页通知数据
2262
2262
  */
2263
- declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$W>;
2263
+ declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$Z>;
2264
2264
 
2265
2265
  type NotifyMessage = {
2266
2266
  /** @example message = '由于包含广告或垃圾信息,已被管理员删除!' */
@@ -2268,12 +2268,12 @@ type NotifyMessage = {
2268
2268
  /** @example title = '广告或垃圾信息' */
2269
2269
  title: string;
2270
2270
  };
2271
- type Res$V = NotifyMessage[];
2271
+ type Res$Y = NotifyMessage[];
2272
2272
  /**
2273
2273
  * 获取通知删除原因列表
2274
2274
  * @returns {Promise<Res>} 消息删除原因列表
2275
2275
  */
2276
- declare function getNotifyDeleteReasons(): Promise<Res$V>;
2276
+ declare function getNotifyDeleteReasons(): Promise<Res$Y>;
2277
2277
 
2278
2278
  /**
2279
2279
  * PREPARED: 已完成,未领取
@@ -2293,16 +2293,16 @@ type TaskItem = {
2293
2293
  status: TaskStatus;
2294
2294
  type: TaskType;
2295
2295
  };
2296
- type Res$U = TaskItem[];
2296
+ type Res$X = TaskItem[];
2297
2297
  /**
2298
2298
  * 获取我的任务列表
2299
2299
  * @returns {Promise<Res>} 任务列表
2300
2300
  */
2301
- declare function getMyTasks(): Promise<Res$U>;
2301
+ declare function getMyTasks(): Promise<Res$X>;
2302
2302
 
2303
2303
  type SortField$4 = "createdAt" | "lastPassedAt" | "lastSubmittedAt" | "lastPublishedAt" | string;
2304
2304
  type HashTagCreationStatus = "PUBLISHED" | "SUBMITTED" | string;
2305
- type Res$T = PagesRes<Creation, SortField$4>;
2305
+ type Res$W = PagesRes<Creation, SortField$4>;
2306
2306
  /**
2307
2307
  * 获取当前用户提交到星球的作品列表
2308
2308
  * @param {string} [excludeHashTag] 排除的星球标识符(名称)
@@ -2310,15 +2310,15 @@ type Res$T = PagesRes<Creation, SortField$4>;
2310
2310
  * @param {Partial<PageArgs<SortField | T>>} [pageArgs_] 分页参数
2311
2311
  * @returns {Promise<Res>} 星球作品分页结果
2312
2312
  */
2313
- declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$T>;
2313
+ declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$W>;
2314
2314
 
2315
- type Res$S = null;
2315
+ type Res$V = null;
2316
2316
  /**
2317
2317
  * 获取禁言用户详情
2318
2318
  * @param {string} studentNumber 用户number(244373873)
2319
2319
  * @returns {Promise<Res>} 禁言用户详情(null表示未禁言)
2320
2320
  */
2321
- declare function getMutedUserDetail(studentNumber: string): Promise<Res$S>;
2321
+ declare function getMutedUserDetail(studentNumber: string): Promise<Res$V>;
2322
2322
 
2323
2323
  interface LockedUserDetail<IsLocked extends boolean> {
2324
2324
  accountOid: IsLocked extends true ? MongoDBId : null;
@@ -2331,28 +2331,28 @@ interface LockedUserDetail<IsLocked extends boolean> {
2331
2331
  unlocksAt: IsLocked extends true ? number : null;
2332
2332
  updatedAt: IsLocked extends true ? number : null;
2333
2333
  }
2334
- type Res$R<IsLocked extends boolean> = LockedUserDetail<IsLocked>;
2334
+ type Res$U<IsLocked extends boolean> = LockedUserDetail<IsLocked>;
2335
2335
  /**
2336
2336
  * 获取被封禁用户详情
2337
2337
  * @param {MongoDBId} accountOid 用户账户ID
2338
2338
  * @returns {Promise<Res>} 被封禁用户详情
2339
2339
  */
2340
- declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$R<IsLocked>>;
2340
+ declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$U<IsLocked>>;
2341
2341
 
2342
- type Res$Q = LoadingTip;
2342
+ type Res$T = LoadingTip;
2343
2343
  /**
2344
2344
  * 获取加载提示语
2345
2345
  * @returns {Promise<LoadingTip>} 加载提示语
2346
2346
  */
2347
- declare function getLoadingTips(): Promise<Res$Q>;
2347
+ declare function getLoadingTips(): Promise<Res$T>;
2348
2348
 
2349
- type Res$P = UserLikeDetail;
2349
+ type Res$S = UserLikeDetail;
2350
2350
  /**
2351
2351
  * 获取用户是否曾给作品点赞及点赞动作
2352
2352
  * @param {MongoDBId} creationOid 作品id
2353
2353
  * @returns {Promise<UserLikeDetail>} 点赞详情
2354
2354
  */
2355
- declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$P>;
2355
+ declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$S>;
2356
2356
 
2357
2357
  interface LeafletsItem {
2358
2358
  advertisementId: number;
@@ -2367,29 +2367,29 @@ interface LeafletsItem {
2367
2367
  name: string;
2368
2368
  updatedAt: number;
2369
2369
  }
2370
- type Res$O = LeafletsItem[];
2370
+ type Res$R = LeafletsItem[];
2371
2371
  /**
2372
2372
  * 获取消息中心上方广告横幅项目列表
2373
2373
  * @param {number} advertisementId 广告ID
2374
2374
  * @returns {Promise<Res>} 广告项目列表
2375
2375
  */
2376
- declare function getLeafletsItemList(advertisementId: number): Promise<Res$O>;
2376
+ declare function getLeafletsItemList(advertisementId: number): Promise<Res$R>;
2377
2377
 
2378
2378
  interface HealthCheckItem {
2379
2379
  name: string;
2380
2380
  status: string;
2381
2381
  traceId: string;
2382
2382
  }
2383
- type Res$N = HealthCheckItem[];
2383
+ type Res$Q = HealthCheckItem[];
2384
2384
  /**
2385
2385
  * @deprecated 仅用于初始化axios
2386
2386
  * health check接口
2387
2387
  * @returns {Promise<Res>}
2388
2388
  */
2389
- declare function getHealthCheck(): Promise<Res$N>;
2389
+ declare function getHealthCheck(): Promise<Res$Q>;
2390
2390
 
2391
2391
  type SortField$3 = "createdAt" | "priority" | string;
2392
- type Res$M = PagesRes<HashTag, SortField$3>;
2392
+ type Res$P = PagesRes<HashTag, SortField$3>;
2393
2393
  /**
2394
2394
  * 获取用户管理的星球列表
2395
2395
  * @param {MongoDBId} studentOid 学生oid
@@ -2397,9 +2397,9 @@ type Res$M = PagesRes<HashTag, SortField$3>;
2397
2397
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
2398
2398
  * @returns {Promise<Res>} 管理的星球分页结果
2399
2399
  */
2400
- declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$M>;
2400
+ declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$P>;
2401
2401
 
2402
- type Res$L = PagesRes<Record<string, never>>;
2402
+ type Res$O = PagesRes<Record<string, never>>;
2403
2403
  /**
2404
2404
  * 获取历史团队成员分页
2405
2405
  * 不知道怎么用
@@ -2407,23 +2407,23 @@ type Res$L = PagesRes<Record<string, never>>;
2407
2407
  * @param {Partial<PageArgs<string | T>>} pageArgs_ 分页参数
2408
2408
  * @returns {Promise<Res>} 历史团队成员分页列表
2409
2409
  */
2410
- declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$L>;
2410
+ declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$O>;
2411
2411
 
2412
- type Res$K = HashTagFavorite;
2412
+ type Res$N = HashTagFavorite;
2413
2413
  /**
2414
2414
  * 获取星球收藏详情
2415
2415
  * @param {number} hashTagId 星球ID
2416
2416
  * @returns {Promise<Res>} 星球收藏详情
2417
2417
  */
2418
- declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$K>;
2418
+ declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$N>;
2419
2419
 
2420
- type Res$J = HashTag;
2420
+ type Res$M = HashTag;
2421
2421
  /**
2422
2422
  * 获取星球详情
2423
2423
  * @param {string} identifier 星球标识符(名称)
2424
2424
  * @returns {Promise<Res>} 星球详情
2425
2425
  */
2426
- declare function getHashTagDetail(identifier: string): Promise<Res$J>;
2426
+ declare function getHashTagDetail(identifier: string): Promise<Res$M>;
2427
2427
 
2428
2428
  interface Emoji {
2429
2429
  category: `${number}`;
@@ -2443,14 +2443,14 @@ interface Emoji {
2443
2443
  status: "ENABLED";
2444
2444
  updatedAt: number;
2445
2445
  }
2446
- type Res$I = Emoji[];
2446
+ type Res$L = Emoji[];
2447
2447
  /**
2448
2448
  * 获取所有表情包
2449
2449
  * @returns {Promise<Res>} 表情包列表
2450
2450
  */
2451
- declare function getAllEmojis(): Promise<Res$I>;
2451
+ declare function getAllEmojis(): Promise<Res$L>;
2452
2452
 
2453
- type Res$H = PagesRes<Emoji>;
2453
+ type Res$K = PagesRes<Emoji>;
2454
2454
  type EmojiStatus = "ENABLED" | "PUBLISHED";
2455
2455
  /**
2456
2456
  * 分页获取表情包
@@ -2458,7 +2458,7 @@ type EmojiStatus = "ENABLED" | "PUBLISHED";
2458
2458
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
2459
2459
  * @returns {Promise<Res>} 分页表情包数据
2460
2460
  */
2461
- declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$H>;
2461
+ declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$K>;
2462
2462
 
2463
2463
  interface EmojiCategory {
2464
2464
  createdAt: number;
@@ -2467,14 +2467,14 @@ interface EmojiCategory {
2467
2467
  name: string;
2468
2468
  updatedAt: number;
2469
2469
  }
2470
- type Res$G = EmojiCategory[];
2470
+ type Res$J = EmojiCategory[];
2471
2471
  /**
2472
2472
  * 获取表情包分类列表
2473
2473
  * @returns {Promise<Res>} 表情包分类列表
2474
2474
  */
2475
- declare function getEmojiCategoryList(): Promise<Res$G>;
2475
+ declare function getEmojiCategoryList(): Promise<Res$J>;
2476
2476
 
2477
- type Res$F = {
2477
+ type Res$I = {
2478
2478
  avatar: CNameOssUrl;
2479
2479
  isFollowing: boolean;
2480
2480
  name: string;
@@ -2486,17 +2486,17 @@ type Res$F = {
2486
2486
  * @param {MongoDBId} userOid 目标用户 OID
2487
2487
  * @returns {Promise<Res>} 关注状态及用户信息
2488
2488
  */
2489
- declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$F>;
2489
+ declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$I>;
2490
2490
 
2491
- type Res$E = CreationSimple[];
2491
+ type Res$H = CreationSimple[];
2492
2492
  /**
2493
2493
  * 获取精选作品列表
2494
2494
  * @param {number} num 数量
2495
2495
  * @returns {Promise<CreationSimple[]>} 作品列表
2496
2496
  */
2497
- declare function getExcellentCreations(num: number): Promise<Res$E>;
2497
+ declare function getExcellentCreations(num: number): Promise<Res$H>;
2498
2498
 
2499
- type Res$D = {
2499
+ type Res$G = {
2500
2500
  curUserDonatedRecord: null | DonatedRecord;
2501
2501
  rankingList: PagesRes<DonatedRecord>;
2502
2502
  totalBucks: null | number;
@@ -2507,59 +2507,59 @@ type Res$D = {
2507
2507
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
2508
2508
  * @returns {Promise<Res>} 投币排行数据
2509
2509
  */
2510
- declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$D>;
2510
+ declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$G>;
2511
2511
 
2512
- type Res$C = CreatorScore;
2512
+ type Res$F = CreatorScore;
2513
2513
  /**
2514
2514
  * 获取当前学生创作分
2515
2515
  * @returns {Promise<Res>} 创作分信息
2516
2516
  */
2517
- declare function getCreatorScore(): Promise<Res$C>;
2517
+ declare function getCreatorScore(): Promise<Res$F>;
2518
2518
 
2519
- type Res$B = CreationTag[];
2519
+ type Res$E = CreationTag[];
2520
2520
  /**
2521
2521
  * 获取作品标签列表 例如 https://www.ccw.site/pages/tags/anime
2522
2522
  * @returns {Promise<CreationTag[]>} 标签列表
2523
2523
  */
2524
- declare function getCreationTags(): Promise<Res$B>;
2524
+ declare function getCreationTags(): Promise<Res$E>;
2525
2525
 
2526
- type Res$A = Student;
2526
+ type Res$D = Student;
2527
2527
  /**
2528
2528
  * 获取学生详情
2529
2529
  * @param {MongoDBId} studentOid 学生id
2530
2530
  * @returns {Promise<Student>} 学生详情
2531
2531
  */
2532
- declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$A>;
2532
+ declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$D>;
2533
2533
 
2534
- type Res$z = PagesRes<CreationScreenshot>;
2534
+ type Res$C = PagesRes<CreationScreenshot>;
2535
2535
  /**
2536
2536
  * 获取作品截图分页
2537
2537
  * @param {MongoDBId} subjectOid 作品id
2538
2538
  * @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
2539
2539
  * @returns {Promise<Res>} 分页截图列表
2540
2540
  */
2541
- declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$z>;
2541
+ declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$C>;
2542
2542
 
2543
2543
  type SortField$2 = "submittedAt";
2544
- type Res$y = PagesRes<CreationRelease>;
2544
+ type Res$B = PagesRes<CreationRelease>;
2545
2545
  /**
2546
2546
  * 获取作品发布记录分页
2547
2547
  * @param {MongoDBId} creationOid 作品id
2548
2548
  * @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
2549
2549
  * @returns {Promise<Res>} 发布记录分页列表
2550
2550
  */
2551
- declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField$2 | T>>): Promise<Res$y>;
2551
+ declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField$2 | T>>): Promise<Res$B>;
2552
2552
 
2553
- type Res$x = [];
2553
+ type Res$A = [];
2554
2554
  /**
2555
2555
  * 获取作品推荐位置列表
2556
2556
  * @deprecated 此接口不可用,请使用 `getRecommendCreations` from `src/community-web/creation/recommend.ts`
2557
2557
  * @param {MongoDBId} creationOid 作品id
2558
2558
  * @returns {Promise<Res>} 推荐位置列表,因为不知道什么bug,固定为[]
2559
2559
  */
2560
- declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$x>;
2560
+ declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$A>;
2561
2561
 
2562
- type Res$w = {
2562
+ type Res$z = {
2563
2563
  interactionStatus: boolean;
2564
2564
  oid: MongoDBId;
2565
2565
  title: string;
@@ -2570,25 +2570,25 @@ type Res$w = {
2570
2570
  * @param {MongoDBId} creationOid 目标作品 OID
2571
2571
  * @returns {Promise<Res>} 点赞状态及作品信息
2572
2572
  */
2573
- declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$w>;
2573
+ declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$z>;
2574
2574
 
2575
- type Res$v = Creation;
2575
+ type Res$y = Creation;
2576
2576
  /**
2577
2577
  * 获取用户代表作
2578
2578
  * @param {MongoDBId} studentOid 学生id
2579
2579
  * @returns {Promise<Creation>} 作品详情
2580
2580
  */
2581
- declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$v>;
2581
+ declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$y>;
2582
2582
 
2583
- type Res$u = null | FavoriteDetail;
2583
+ type Res$x = null | FavoriteDetail;
2584
2584
  /**
2585
2585
  * 获取作品收藏详情(需要登录)
2586
2586
  * @param {MongoDBId} creationOid 作品id
2587
2587
  * @returns {Promise<Res>} 收藏详情(未收藏返回null)
2588
2588
  */
2589
- declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$u>;
2589
+ declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$x>;
2590
2590
 
2591
- type Res$t = Creation;
2591
+ type Res$w = Creation;
2592
2592
  /**
2593
2593
  * 获取作品详情
2594
2594
  * @param {MongoDBId} oid 作品id
@@ -2596,7 +2596,7 @@ type Res$t = Creation;
2596
2596
  * @param {''|'EDIT'} mode
2597
2597
  * @returns {Promise<Creation>} 作品详情
2598
2598
  */
2599
- declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$t>;
2599
+ declare function getCreationDetail(oid: MongoDBId, accessKey: string, mode?: "" | "EDIT"): Promise<Res$w>;
2600
2600
 
2601
2601
  type KeypadConfig = {
2602
2602
  maxR: number;
@@ -2620,13 +2620,13 @@ type CreationAttribute<KC> = {
2620
2620
  specialThanks: unknown[];
2621
2621
  updatedAt: number;
2622
2622
  };
2623
- type Res$s<KC> = CreationAttribute<KC>;
2623
+ type Res$v<KC> = CreationAttribute<KC>;
2624
2624
  /**
2625
2625
  * 获取作品属性详情
2626
2626
  * @param {MongoDBId} creationOid 作品id
2627
2627
  * @returns {Promise<Res | null>} 作品属性
2628
2628
  */
2629
- declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$s<KeypadConfig[]> | null>;
2629
+ declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$v<KeypadConfig[]> | null>;
2630
2630
 
2631
2631
  type CreationActivityStatsItem = {
2632
2632
  activeAt: number;
@@ -2635,21 +2635,21 @@ type CreationActivityStatsItem = {
2635
2635
  duration: number;
2636
2636
  id: number;
2637
2637
  };
2638
- type Res$r = CreationActivityStatsItem[];
2638
+ type Res$u = CreationActivityStatsItem[];
2639
2639
  /**
2640
2640
  * 获取作品创作活跃统计数据列表(绿格子)
2641
2641
  * @param {MongoDBId} creationOid 作品id
2642
2642
  * @returns {Promise<Res>} 活动统计数据
2643
2643
  */
2644
- declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$r>;
2644
+ declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$u>;
2645
2645
 
2646
- type Res$q = string | number | boolean | null | object;
2646
+ type Res$t = string | number | boolean | null | object;
2647
2647
  /**
2648
2648
  * 获取配置详情
2649
2649
  * @param {string} key 配置键
2650
2650
  * @returns {Promise<Res>} 配置值
2651
2651
  */
2652
- declare function getConfigDetail(key: string): Promise<Res$q>;
2652
+ declare function getConfigDetail(key: string): Promise<Res$t>;
2653
2653
 
2654
2654
  interface Comment {
2655
2655
  commenter: OtherUser;
@@ -2721,7 +2721,7 @@ declare namespace comment {
2721
2721
  }
2722
2722
 
2723
2723
  type SortField$1 = "createdAt" | "likes";
2724
- type Res$p = PagesRes<Comment>;
2724
+ type Res$s = PagesRes<Comment>;
2725
2725
  /**
2726
2726
  * 根据主题获取评论列表
2727
2727
  * @param {string} subjectOid 主题oid
@@ -2730,10 +2730,10 @@ type Res$p = PagesRes<Comment>;
2730
2730
  * @param {Partial<PageArgs<SortField| T>>} pageArgs_ 分页参数
2731
2731
  * @returns {Promise<Res>} 评论分页结果
2732
2732
  */
2733
- declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$p>;
2733
+ declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$s>;
2734
2734
 
2735
2735
  type SortField = "createdAt";
2736
- type Res$o = PagesRes<Comment>;
2736
+ type Res$r = PagesRes<Comment>;
2737
2737
  /**
2738
2738
  * 根据topicId获取评论的回复
2739
2739
  * @param {number} topicId 话题id
@@ -2742,7 +2742,7 @@ type Res$o = PagesRes<Comment>;
2742
2742
  * @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
2743
2743
  * @returns {Promise<Res>} 评论分页结果
2744
2744
  */
2745
- declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$o>;
2745
+ declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$r>;
2746
2746
 
2747
2747
  type ProfilingCodes = Record<string, number>;
2748
2748
  type ProfilingExt = Record<string, number>;
@@ -2790,16 +2790,16 @@ type CodeProfilingDetail = {
2790
2790
  profiling: Profiling;
2791
2791
  updatedAt: number;
2792
2792
  };
2793
- type Res$n = CodeProfilingDetail;
2793
+ type Res$q = CodeProfilingDetail;
2794
2794
  /**
2795
2795
  * 获取作品工程统计详情
2796
2796
  * @param {MongoDBId} creationOid 作品id
2797
2797
  * @param {MongoDBId} creationReleaseOid 发布版本id
2798
2798
  * @returns {Promise<Res>} 代码分析详情
2799
2799
  */
2800
- declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$n>;
2800
+ declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$q>;
2801
2801
 
2802
- type Res$m = {
2802
+ type Res$p = {
2803
2803
  checkInRecordResps: DailyRecord[];
2804
2804
  checkInTimes: number;
2805
2805
  todayIndex: number;
@@ -2811,9 +2811,9 @@ interface DailyRecord {
2811
2811
  /**
2812
2812
  * 获取本月签到记录
2813
2813
  */
2814
- declare function getCheckInRecords(): Promise<Res$m>;
2814
+ declare function getCheckInRecords(): Promise<Res$p>;
2815
2815
 
2816
- type Res$l = {
2816
+ type Res$o = {
2817
2817
  data: string;
2818
2818
  datetime: string;
2819
2819
  };
@@ -2821,10 +2821,10 @@ type Res$l = {
2821
2821
  * ccw-main/status
2822
2822
  * @returns {Promise<Res>} 信息
2823
2823
  */
2824
- declare function getCCWMainStatus(): Promise<Res$l>;
2824
+ declare function getCCWMainStatus(): Promise<Res$o>;
2825
2825
 
2826
2826
  type CampaignKeywords = "tags" | "mmo";
2827
- type Res$k<K extends string> = {
2827
+ type Res$n<K extends string> = {
2828
2828
  createdAt: number;
2829
2829
  hiddenNavbar: false;
2830
2830
  id: number;
@@ -2838,9 +2838,9 @@ type Res$k<K extends string> = {
2838
2838
  * @param {K} keyword 活动关键词
2839
2839
  * @returns {Promise<Res<K>>}
2840
2840
  */
2841
- declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$k<K>>;
2841
+ declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$n<K>>;
2842
2842
 
2843
- type Res$j<Tid extends number, Tn extends string> = ApprovalStatus<Tid, Tn>[];
2843
+ type Res$m<Tid extends number, Tn extends string> = ApprovalStatus<Tid, Tn>[];
2844
2844
  type ApprovalStatus<Tid extends number, Tn extends string> = {
2845
2845
  adorned: boolean;
2846
2846
  approvalIconLink: CNameOssUrl;
@@ -2858,47 +2858,47 @@ type ApprovalStatus<Tid extends number, Tn extends string> = {
2858
2858
  * @param {MongoDBId} studentOid 用户id
2859
2859
  * @returns {Promise<Res<Tid, Tn>>} 勋章数据
2860
2860
  */
2861
- declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$j<Tid, Tn>>;
2861
+ declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$m<Tid, Tn>>;
2862
2862
 
2863
- type Res$i = "UNFOLLOWED";
2863
+ type Res$l = "UNFOLLOWED";
2864
2864
  /**
2865
2865
  * 取消关注创作者
2866
2866
  * @param {MongoDBId} followingOid 要取消关注的用户 OID
2867
2867
  * @returns {Promise<Res>} "UNFOLLOWED" 表示取消关注成功
2868
2868
  */
2869
- declare function unfollowCreator(followingOid: MongoDBId): Promise<Res$i>;
2869
+ declare function unfollowCreator(followingOid: MongoDBId): Promise<Res$l>;
2870
2870
 
2871
- type Res$h = "FOLLOWED";
2871
+ type Res$k = "FOLLOWED";
2872
2872
  /**
2873
2873
  * 关注创作者
2874
2874
  * @param {MongoDBId} followingOid 要关注的用户 OID
2875
2875
  * @returns {Promise<Res>} "FOLLOWED" 表示关注成功
2876
2876
  */
2877
- declare function followCreator(followingOid: MongoDBId): Promise<Res$h>;
2877
+ declare function followCreator(followingOid: MongoDBId): Promise<Res$k>;
2878
2878
 
2879
- type Res$g = boolean;
2879
+ type Res$j = boolean;
2880
2880
  /**
2881
2881
  * 折叠评论
2882
2882
  * @param {number} id 评论id
2883
2883
  * @returns {Promise<Res>} 操作是否成功
2884
2884
  */
2885
- declare function foldComment(id: number): Promise<Res$g>;
2885
+ declare function foldComment(id: number): Promise<Res$j>;
2886
2886
 
2887
- type Res$f = boolean;
2887
+ type Res$i = boolean;
2888
2888
  /**
2889
2889
  * 删除评论
2890
2890
  * @param {number} id 评论id
2891
2891
  * @returns {Promise<Res>} 操作是否成功
2892
2892
  */
2893
- declare function deleteComment(id: number): Promise<Res$f>;
2893
+ declare function deleteComment(id: number): Promise<Res$i>;
2894
2894
 
2895
- type Res$e = string;
2895
+ type Res$h = string;
2896
2896
  /**
2897
2897
  * 解压缩短链接
2898
2898
  * @param {string} shortUrlCode 短链接码
2899
2899
  * @returns {Promise<Res>} 原始URL
2900
2900
  */
2901
- declare function decompressShortUrl(shortUrlCode: string): Promise<Res$e>;
2901
+ declare function decompressShortUrl(shortUrlCode: string): Promise<Res$h>;
2902
2902
 
2903
2903
  type MemberSplitDetail = {
2904
2904
  /**
@@ -2911,19 +2911,19 @@ type MemberSplitDetail = {
2911
2911
  role: string;
2912
2912
  userOid: MongoDBId;
2913
2913
  };
2914
- type Res$d = boolean;
2914
+ type Res$g = boolean;
2915
2915
  /**
2916
2916
  * 创建作品智能合约分成规则
2917
2917
  * @param {MongoDBId} creationOid 作品id
2918
2918
  * @param {MemberSplitDetail[]} memberSplitDetails 成员分成详情
2919
2919
  * @returns {Promise<Res>} 创建是否成功
2920
2920
  */
2921
- declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$d>;
2921
+ declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$g>;
2922
2922
 
2923
2923
  type CaptchaType = "SMS";
2924
2924
  type SmsSceneBySession = "change_password";
2925
2925
  type SmsRuleCodeBySession = "ccw_sms";
2926
- type Res$c = {
2926
+ type Res$f = {
2927
2927
  batchId: string | null;
2928
2928
  /**
2929
2929
  * sendResult=1 表示成功
@@ -2938,17 +2938,17 @@ type Res$c = {
2938
2938
  * @param {CaptchaType} type 验证码类型,默认 "SMS"
2939
2939
  * @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功;发送频率超限时会抛出错误
2940
2940
  */
2941
- declare function createSmsCaptchaBySession(scene?: SmsSceneBySession, countryCode?: string, ruleCode?: SmsRuleCodeBySession, type?: CaptchaType): Promise<Res$c>;
2941
+ declare function createSmsCaptchaBySession(scene?: SmsSceneBySession, countryCode?: string, ruleCode?: SmsRuleCodeBySession, type?: CaptchaType): Promise<Res$f>;
2942
2942
 
2943
- type Res$b = `https://ccw.site/s/${string}`;
2943
+ type Res$e = `https://ccw.site/s/${string}`;
2944
2944
  /**
2945
2945
  * 创建短链接(用于分享)
2946
2946
  * @param originUrl 原链接
2947
2947
  * @returns {Promise<Res>} 创建的短链接
2948
2948
  */
2949
- declare function createShortUrl(originUrl: string): Promise<Res$b>;
2949
+ declare function createShortUrl(originUrl: string): Promise<Res$e>;
2950
2950
 
2951
- type Res$a = {
2951
+ type Res$d = {
2952
2952
  commenterId: number;
2953
2953
  content: string;
2954
2954
  createdAt: number;
@@ -2970,9 +2970,9 @@ type Res$a = {
2970
2970
  * @param {string} sectionType 板块类型
2971
2971
  * @returns {Promise<Res>} 创建的评论
2972
2972
  */
2973
- declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$a>;
2973
+ declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$d>;
2974
2974
 
2975
- type Res$9 = Record<string, never>;
2975
+ type Res$c = Record<string, never>;
2976
2976
  /**
2977
2977
  * @deprecated 云变量几百年没用过了
2978
2978
  * 创建云变量
@@ -2980,9 +2980,26 @@ type Res$9 = Record<string, never>;
2980
2980
  * @param {Record<string, unknown>} variables 变量数据
2981
2981
  * @returns {Promise<Res>} 空对象
2982
2982
  */
2983
- declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$9>;
2983
+ declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$c>;
2984
2984
 
2985
- type Res$8 = {
2985
+ type Res$b = string;
2986
+ /**
2987
+ * 获取协作观察者邀请链接
2988
+ * @param {MongoDBId} creationOid 作品id
2989
+ * @returns {Promise<Res>} 邀请链接参数(token)
2990
+ */
2991
+ declare function fetchObserverInviteToken(creationOid: MongoDBId): Promise<Res$b>;
2992
+
2993
+ type Res$a = string;
2994
+ /**
2995
+ * 获取协作参与者邀请链接
2996
+ * @param {MongoDBId} creationOid 作品id
2997
+ * @param {Exclude<TeamMemberAuthority, "OBSERVER">} authority 权限 (ADMIN 或 MEMBER)
2998
+ * @returns {Promise<Res>} 邀请链接参数(token)
2999
+ */
3000
+ declare function fetchMemberInviteToken(creationOid: MongoDBId, authority?: Exclude<TeamMemberAuthority, "OBSERVER">): Promise<Res$a>;
3001
+
3002
+ type Res$9 = {
2986
3003
  success: boolean;
2987
3004
  };
2988
3005
  /**
@@ -2994,9 +3011,9 @@ type Res$8 = {
2994
3011
  * @param {number} bucks 金币数量
2995
3012
  * @returns {Promise<Res>} 执行结果
2996
3013
  */
2997
- declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$8>;
3014
+ declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$9>;
2998
3015
 
2999
- type Res$7 = {
3016
+ type Res$8 = {
3000
3017
  /**
3001
3018
  * 获取的inviteCode码
3002
3019
  */
@@ -3024,10 +3041,10 @@ type Res$7 = {
3024
3041
  * @param {MongoDBId} creationOid 作品id
3025
3042
  * @returns {Promise<Res>}
3026
3043
  */
3027
- declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$7>;
3044
+ declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$8>;
3028
3045
 
3029
3046
  type DonateObjectType = "CREATION";
3030
- type Res$6 = null;
3047
+ type Res$7 = null;
3031
3048
  /**
3032
3049
  * 向作品投币
3033
3050
  * @param {number} bucks 投币数量
@@ -3035,7 +3052,58 @@ type Res$6 = null;
3035
3052
  * @param {DonateObjectType} objectType
3036
3053
  * @returns {Promise<Res>} 无返回值
3037
3054
  */
3038
- declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$6>;
3055
+ declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$7>;
3056
+
3057
+ type Res$6 = {
3058
+ artifactType: "STANDARD";
3059
+ createdAt: null | number;
3060
+ creationRelease: null | object;
3061
+ currentReleaseOid: null | MongoDBId;
3062
+ deletedAt: null | number;
3063
+ description: null | string;
3064
+ eid: null | string;
3065
+ ext: null | object;
3066
+ favoriteCount: number;
3067
+ featuredCoverLink: null | CNameOssUrl;
3068
+ forEveryone: null | boolean;
3069
+ hashTags: string[];
3070
+ isOpenSource: null | boolean;
3071
+ isTeamwork: null | boolean;
3072
+ keyboardLayout: null | string;
3073
+ lastPassedAt: null | number;
3074
+ latestCoverLink: CNameOssUrl;
3075
+ latestProjectLink: CNameOssUrl;
3076
+ likeCount: number;
3077
+ oid: MongoDBId;
3078
+ operatedAt: number;
3079
+ rank: "ORDINARY";
3080
+ remixCreationOid: null | MongoDBId;
3081
+ remixedCount: number;
3082
+ repostedSource: null | object;
3083
+ requireLogin: null | boolean;
3084
+ screenMode: CreationScreenMode;
3085
+ sourceOpenLevel: SourceOpenLevel;
3086
+ status: "DRAFT" | "PUBLISHED" | "BANNED" | "SUBMITTED" | "REJECTED";
3087
+ studentOid: MongoDBId;
3088
+ tags: string[];
3089
+ title: string;
3090
+ type: "ORIGINAL" | "REMIXED";
3091
+ typicalProjectId: null | string;
3092
+ updatedAt: number;
3093
+ viewCount: number;
3094
+ visibleScope: null | "PRIVATE" | "ALL";
3095
+ };
3096
+ /**
3097
+ * 创建作品(草稿)
3098
+ * @param {string} title 作品名称
3099
+ * @param {CNameOssUrl} latestProjectLink 最新项目文件链接 (.sb3)
3100
+ * @param {CNameOssUrl} latestCoverLink 最新封面链接
3101
+ * @param {"ORIGINAL" | "REMIXED"} type 作品类型
3102
+ * @param {CreationScreenMode} screenMode 屏幕模式
3103
+ * @param {SourceOpenLevel} sourceOpenLevel 源码开放级别
3104
+ * @returns {Promise<Res>} 创建后的作品草稿信息
3105
+ */
3106
+ declare function createCreation(title: string, latestProjectLink: CNameOssUrl, latestCoverLink: CNameOssUrl, type?: "ORIGINAL" | "REMIXED", screenMode?: CreationScreenMode, sourceOpenLevel?: SourceOpenLevel): Promise<Res$6>;
3039
3107
 
3040
3108
  type Res$5 = boolean;
3041
3109
  /**
@@ -3175,9 +3243,12 @@ declare const communityWeb: {
3175
3243
  acceptAward: typeof acceptAward;
3176
3244
  bindStudentPhone: typeof bindStudentPhone;
3177
3245
  changeStudentPassword: typeof changeStudentPassword;
3246
+ createCreation: typeof createCreation;
3178
3247
  donateTrade: typeof donateTrade;
3179
3248
  encodeShortCode: typeof encodeShortCode;
3180
3249
  executeSmartContract: typeof executeSmartContract;
3250
+ fetchMemberInviteToken: typeof fetchMemberInviteToken;
3251
+ fetchObserverInviteToken: typeof fetchObserverInviteToken;
3181
3252
  createCloudVariable: typeof createCloudVariable;
3182
3253
  createComment: typeof createComment;
3183
3254
  createShortUrl: typeof createShortUrl;
@@ -3321,9 +3392,12 @@ declare const _default: {
3321
3392
  acceptAward: typeof acceptAward;
3322
3393
  bindStudentPhone: typeof bindStudentPhone;
3323
3394
  changeStudentPassword: typeof changeStudentPassword;
3395
+ createCreation: typeof createCreation;
3324
3396
  donateTrade: typeof donateTrade;
3325
3397
  encodeShortCode: typeof encodeShortCode;
3326
3398
  executeSmartContract: typeof executeSmartContract;
3399
+ fetchMemberInviteToken: typeof fetchMemberInviteToken;
3400
+ fetchObserverInviteToken: typeof fetchObserverInviteToken;
3327
3401
  createCloudVariable: typeof createCloudVariable;
3328
3402
  createComment: typeof createComment;
3329
3403
  createShortUrl: typeof createShortUrl;