@laplace.live/internal 1.2.49 → 1.2.51

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.
Files changed (2) hide show
  1. package/index.d.ts +129 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1146,6 +1146,135 @@ 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
+ /** Existing tag IDs to suggest for this meme (max 10) */
1193
+ tags?: number[]
1194
+ turnstileToken: string
1195
+ }
1196
+
1197
+ /** Success response for POST /laplace/meme-contribute */
1198
+ export interface MemeContributeResponse {
1199
+ success: true
1200
+ id: number
1201
+ message: string
1202
+ }
1203
+
1204
+ /** Meme contribution record (GET /laplace/meme-contributions) */
1205
+ export interface MemeContribution {
1206
+ id: number
1207
+ uid: number
1208
+ content: string
1209
+ note?: string | null
1210
+ tags?: number[] | null
1211
+ status: ContributionStatus
1212
+ contributorIp?: string
1213
+ createdAt: string
1214
+ reviewedAt?: string
1215
+ rejectReason?: string
1216
+ }
1217
+
1218
+ /** Query params for GET /laplace/meme-contributions */
1219
+ export interface MemeContributionsListQuery {
1220
+ status?: ContributionStatus
1221
+ uid?: number
1222
+ limit?: number
1223
+ offset?: number
1224
+ sortBy?: 'createdAt' | 'reviewedAt'
1225
+ sort?: 'asc' | 'desc'
1226
+ }
1227
+
1228
+ /** Response for GET /laplace/meme-contributions */
1229
+ export interface MemeContributionsListResponse {
1230
+ data: MemeContribution[]
1231
+ total: number
1232
+ }
1233
+
1234
+ /** Request body for POST /laplace/meme-contribution-reject/:id */
1235
+ export interface MemeContributionRejectRequest {
1236
+ reason?: string
1237
+ }
1238
+
1239
+ /** Response for approve/reject meme contribution */
1240
+ export interface MemeContributionActionResponse {
1241
+ success: true
1242
+ id: number
1243
+ status: ContributionStatus
1244
+ }
1245
+
1246
+ /** Request body for PATCH /laplace/meme-contribution-update/:id */
1247
+ export interface MemeContributionUpdateRequest {
1248
+ uid?: number
1249
+ content?: string
1250
+ note?: string | null
1251
+ tags?: number[] | null
1252
+ }
1253
+
1254
+ /** Response for PATCH /laplace/meme-contribution-update/:id */
1255
+ export interface MemeContributionUpdateResponse {
1256
+ success: true
1257
+ id: number
1258
+ contribution?: MemeContribution
1259
+ }
1260
+
1261
+ /** Response for GET /laplace/meme-contribution-stats */
1262
+ export interface MemeContributionStatsResponse {
1263
+ pending: number
1264
+ approved: number
1265
+ rejected: number
1266
+ total: number
1267
+ avgProcessingTimeMs: number | null
1268
+ avgProcessingTimeHours: number | null
1269
+ }
1270
+
1271
+ /** Response for POST /laplace/meme-copy/:id */
1272
+ export interface MemeCopyResponse {
1273
+ success: true
1274
+ id: number
1275
+ copyCount: number
1276
+ }
1277
+
1149
1278
  // ============================================
1150
1279
  // Guild History Types
1151
1280
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"