@laplace.live/internal 1.2.52 → 1.2.54

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 +17 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -606,6 +606,9 @@ export declare namespace LaplaceInternal {
606
606
  id: number
607
607
  name: string
608
608
  color: string | null
609
+ /** Emoji fallback -- shown when `icon` is not set. When both exist, `icon` takes priority. */
610
+ emoji: string | null
611
+ /** Icon URL -- takes priority over `emoji` when both are set. */
609
612
  icon: string | null
610
613
  description: string | null
611
614
  }
@@ -627,6 +630,7 @@ export declare namespace LaplaceInternal {
627
630
  export interface TagCreateRequest {
628
631
  name: string
629
632
  color?: string
633
+ emoji?: string
630
634
  icon?: string
631
635
  description?: string
632
636
  scope?: string[]
@@ -636,6 +640,7 @@ export declare namespace LaplaceInternal {
636
640
  export interface TagUpdateRequest {
637
641
  name?: string
638
642
  color?: string | null
643
+ emoji?: string | null
639
644
  icon?: string | null
640
645
  description?: string | null
641
646
  scope?: string[] | null
@@ -1184,12 +1189,24 @@ export declare namespace LaplaceInternal {
1184
1189
  total: number
1185
1190
  }
1186
1191
 
1192
+ /** Request body for POST /laplace/memes (admin direct add) */
1193
+ export interface MemeCreateRequest {
1194
+ uid: number
1195
+ content: string
1196
+ }
1197
+
1187
1198
  /** Request body for PATCH /laplace/memes/:id (update approved meme) */
1188
1199
  export interface MemeUpdateRequest {
1189
1200
  content?: string
1190
1201
  tags?: number[] | null
1191
1202
  }
1192
1203
 
1204
+ /** Response for POST /laplace/memes and DELETE /laplace/memes/:id (admin only) */
1205
+ export interface MemeActionResponse {
1206
+ success: true
1207
+ id: number
1208
+ }
1209
+
1193
1210
  /** Request body for POST /laplace/meme-contribute */
1194
1211
  export interface MemeContributeRequest {
1195
1212
  uid: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.52",
3
+ "version": "1.2.54",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"