@laplace.live/internal 1.2.48 → 1.2.50
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/index.d.ts +129 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -641,16 +641,16 @@ export declare namespace LaplaceInternal {
|
|
|
641
641
|
scope?: string[] | null
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
/** Request body for POST /laplace/tags/assign (assign
|
|
644
|
+
/** Request body for POST /laplace/tags/assign (assign tags to entity) */
|
|
645
645
|
export interface TagAssignRequest {
|
|
646
|
-
|
|
646
|
+
tagIds: number[]
|
|
647
647
|
entityType: string
|
|
648
648
|
entityId: number
|
|
649
649
|
}
|
|
650
650
|
|
|
651
|
-
/** Request body for DELETE /laplace/tags/assign (unassign
|
|
651
|
+
/** Request body for DELETE /laplace/tags/assign (unassign tags from entity) */
|
|
652
652
|
export interface TagUnassignRequest {
|
|
653
|
-
|
|
653
|
+
tagIds: number[]
|
|
654
654
|
entityType: string
|
|
655
655
|
entityId: number
|
|
656
656
|
}
|
|
@@ -1146,6 +1146,131 @@ export declare namespace LaplaceInternal {
|
|
|
1146
1146
|
avgProcessingTimeHours: number | null
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
+
// ============================================
|
|
1150
|
+
// Meme Types
|
|
1151
|
+
// ============================================
|
|
1152
|
+
|
|
1153
|
+
/** Meme list item with resolved tags and user info (GET /laplace/memes) */
|
|
1154
|
+
export interface Meme {
|
|
1155
|
+
id: number
|
|
1156
|
+
uid: number
|
|
1157
|
+
content: string
|
|
1158
|
+
tags: TagWithCount[]
|
|
1159
|
+
copyCount: number
|
|
1160
|
+
createdAt: string
|
|
1161
|
+
updatedAt: string
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/** Meme with user details (list response item) */
|
|
1165
|
+
export interface MemeWithUser extends Meme {
|
|
1166
|
+
username: string | null
|
|
1167
|
+
avatar: string | null
|
|
1168
|
+
room: number | null
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/** Query params for GET /laplace/memes */
|
|
1172
|
+
export interface MemeListQuery {
|
|
1173
|
+
uid?: number
|
|
1174
|
+
tags?: number[]
|
|
1175
|
+
sortBy?: 'copyCount' | 'createdAt'
|
|
1176
|
+
sort?: 'asc' | 'desc'
|
|
1177
|
+
limit?: number
|
|
1178
|
+
offset?: number
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
/** Response for GET /laplace/memes */
|
|
1182
|
+
export interface MemeListResponse {
|
|
1183
|
+
data: MemeWithUser[]
|
|
1184
|
+
total: number
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/** Request body for POST /laplace/meme-contribute */
|
|
1188
|
+
export interface MemeContributeRequest {
|
|
1189
|
+
uid: number
|
|
1190
|
+
content: string
|
|
1191
|
+
note?: string
|
|
1192
|
+
turnstileToken: string
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/** Success response for POST /laplace/meme-contribute */
|
|
1196
|
+
export interface MemeContributeResponse {
|
|
1197
|
+
success: true
|
|
1198
|
+
id: number
|
|
1199
|
+
message: string
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/** Meme contribution record (GET /laplace/meme-contributions) */
|
|
1203
|
+
export interface MemeContribution {
|
|
1204
|
+
id: number
|
|
1205
|
+
uid: number
|
|
1206
|
+
content: string
|
|
1207
|
+
note?: string | null
|
|
1208
|
+
status: ContributionStatus
|
|
1209
|
+
contributorIp?: string
|
|
1210
|
+
createdAt: string
|
|
1211
|
+
reviewedAt?: string
|
|
1212
|
+
rejectReason?: string
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/** Query params for GET /laplace/meme-contributions */
|
|
1216
|
+
export interface MemeContributionsListQuery {
|
|
1217
|
+
status?: ContributionStatus
|
|
1218
|
+
uid?: number
|
|
1219
|
+
limit?: number
|
|
1220
|
+
offset?: number
|
|
1221
|
+
sortBy?: 'createdAt' | 'reviewedAt'
|
|
1222
|
+
sort?: 'asc' | 'desc'
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/** Response for GET /laplace/meme-contributions */
|
|
1226
|
+
export interface MemeContributionsListResponse {
|
|
1227
|
+
data: MemeContribution[]
|
|
1228
|
+
total: number
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/** Request body for POST /laplace/meme-contribution-reject/:id */
|
|
1232
|
+
export interface MemeContributionRejectRequest {
|
|
1233
|
+
reason?: string
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/** Response for approve/reject meme contribution */
|
|
1237
|
+
export interface MemeContributionActionResponse {
|
|
1238
|
+
success: true
|
|
1239
|
+
id: number
|
|
1240
|
+
status: ContributionStatus
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/** Request body for PATCH /laplace/meme-contribution-update/:id */
|
|
1244
|
+
export interface MemeContributionUpdateRequest {
|
|
1245
|
+
uid?: number
|
|
1246
|
+
content?: string
|
|
1247
|
+
note?: string | null
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/** Response for PATCH /laplace/meme-contribution-update/:id */
|
|
1251
|
+
export interface MemeContributionUpdateResponse {
|
|
1252
|
+
success: true
|
|
1253
|
+
id: number
|
|
1254
|
+
contribution?: MemeContribution
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/** Response for GET /laplace/meme-contribution-stats */
|
|
1258
|
+
export interface MemeContributionStatsResponse {
|
|
1259
|
+
pending: number
|
|
1260
|
+
approved: number
|
|
1261
|
+
rejected: number
|
|
1262
|
+
total: number
|
|
1263
|
+
avgProcessingTimeMs: number | null
|
|
1264
|
+
avgProcessingTimeHours: number | null
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/** Response for POST /laplace/meme-copy/:id */
|
|
1268
|
+
export interface MemeCopyResponse {
|
|
1269
|
+
success: true
|
|
1270
|
+
id: number
|
|
1271
|
+
copyCount: number
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1149
1274
|
// ============================================
|
|
1150
1275
|
// Guild History Types
|
|
1151
1276
|
// ============================================
|