@laplace.live/internal 1.3.40 → 1.3.41
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/package.json +1 -1
- package/src/namespaces/laplace.d.ts +90 -1
package/package.json
CHANGED
|
@@ -1423,7 +1423,7 @@ export declare namespace LaplaceInternal {
|
|
|
1423
1423
|
uid: number
|
|
1424
1424
|
content: string
|
|
1425
1425
|
note?: string
|
|
1426
|
-
/** Existing tag IDs to suggest for this meme (max 10) */
|
|
1426
|
+
/** Existing tag IDs to suggest for this meme (max 10); the AI check replaces them with its own picks */
|
|
1427
1427
|
tags?: number[]
|
|
1428
1428
|
turnstileToken: string
|
|
1429
1429
|
}
|
|
@@ -1447,6 +1447,24 @@ export declare namespace LaplaceInternal {
|
|
|
1447
1447
|
createdAt: string
|
|
1448
1448
|
reviewedAt?: string
|
|
1449
1449
|
rejectReason?: string
|
|
1450
|
+
/**
|
|
1451
|
+
* AI review state (see MemeAiStatus). Null when never checked.
|
|
1452
|
+
*
|
|
1453
|
+
* @since Oct 26, 2026
|
|
1454
|
+
*/
|
|
1455
|
+
aiStatus?: MemeAiStatus | null
|
|
1456
|
+
/**
|
|
1457
|
+
* AI review verdict (see MemeAiVerdict). Null while running or when errored.
|
|
1458
|
+
*
|
|
1459
|
+
* @since Oct 26, 2026
|
|
1460
|
+
*/
|
|
1461
|
+
aiVerdict?: MemeAiVerdict | null
|
|
1462
|
+
/**
|
|
1463
|
+
* AI review payload (see MemeAiData). Null when never checked.
|
|
1464
|
+
*
|
|
1465
|
+
* @since Oct 26, 2026
|
|
1466
|
+
*/
|
|
1467
|
+
aiData?: MemeAiData | null
|
|
1450
1468
|
}
|
|
1451
1469
|
|
|
1452
1470
|
/** Query params for GET /laplace/meme-contributions */
|
|
@@ -1509,6 +1527,77 @@ export declare namespace LaplaceInternal {
|
|
|
1509
1527
|
copyCount: number
|
|
1510
1528
|
}
|
|
1511
1529
|
|
|
1530
|
+
// ============================================
|
|
1531
|
+
// Meme AI Check Types
|
|
1532
|
+
// ============================================
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* AI review lifecycle on our side.
|
|
1536
|
+
* - `running` — model call in flight
|
|
1537
|
+
* - `done` — verdict landed (see aiVerdict)
|
|
1538
|
+
* - `errored` — the call failed, was refused, or returned unusable output; row stays pending
|
|
1539
|
+
*/
|
|
1540
|
+
export type MemeAiStatus = 'running' | 'done' | 'errored'
|
|
1541
|
+
|
|
1542
|
+
/** `flagged` when any {@link MemeAiFlag} applies; flagged memes always wait for a human. */
|
|
1543
|
+
export type MemeAiVerdict = 'clean' | 'flagged'
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Why a meme needs human review.
|
|
1547
|
+
* - `curse` — profanity, slurs or abusive insults, including pinyin initials and homophones
|
|
1548
|
+
* - `doxxing` — reveals the real identity behind a streamer or anyone else (开盒, 中之人, 前世)
|
|
1549
|
+
* - `personal_info` — contact or identifying details such as a phone, QQ/WeChat, ID card or bank number
|
|
1550
|
+
*/
|
|
1551
|
+
export type MemeAiFlag = 'curse' | 'doxxing' | 'personal_info'
|
|
1552
|
+
|
|
1553
|
+
/** What kicked off the check; same values as {@link FertilityAiTrigger}. */
|
|
1554
|
+
export type MemeAiTrigger = 'admin' | 'submit'
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* What the system did automatically based on the verdict.
|
|
1558
|
+
* - `approved` — clean; the contribution was approved with the AI's tags
|
|
1559
|
+
* - `flagged` — flagged, or auto-approve is off; row stays pending for admin review
|
|
1560
|
+
* - `approve_failed_duplicate` — clean, but the streamer already has a meme with identical content
|
|
1561
|
+
*/
|
|
1562
|
+
export type MemeAiAutoActionResult = 'approved' | 'flagged' | 'approve_failed_duplicate'
|
|
1563
|
+
|
|
1564
|
+
/** Payload stored in bilibili_meme_contributions.ai_data (jsonb). */
|
|
1565
|
+
export interface MemeAiData {
|
|
1566
|
+
/** OpenRouter model slug; once checked, the model that answered (a router such as Jev picks one per call) */
|
|
1567
|
+
model: string
|
|
1568
|
+
trigger: MemeAiTrigger
|
|
1569
|
+
/** ISO 8601 */
|
|
1570
|
+
startedAt: string
|
|
1571
|
+
/** ISO 8601, set when status leaves 'running' */
|
|
1572
|
+
checkedAt?: string
|
|
1573
|
+
/** USD that OpenRouter billed for the call */
|
|
1574
|
+
costUsd?: number
|
|
1575
|
+
flags?: MemeAiFlag[]
|
|
1576
|
+
/** Simplified Chinese, quoting the flagged text; null when clean */
|
|
1577
|
+
reason?: string | null
|
|
1578
|
+
/** Tag IDs the AI picked; they replace the contribution's `tags` */
|
|
1579
|
+
tags?: number[]
|
|
1580
|
+
/** The contributor's own picks, kept because the AI's replace them */
|
|
1581
|
+
contributorTags?: number[]
|
|
1582
|
+
/** Absent when the row was reviewed by an admin before the check finished */
|
|
1583
|
+
autoActionResult?: MemeAiAutoActionResult
|
|
1584
|
+
/** `api_error`, `refusal`, `invalid_output` or `internal_error` */
|
|
1585
|
+
errorMessage?: string
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
/** Response for POST and GET /laplace/meme-contribution-ai-check/:id */
|
|
1589
|
+
export interface MemeAiCheckResponse {
|
|
1590
|
+
id: number
|
|
1591
|
+
contributionStatus: ContributionStatus
|
|
1592
|
+
ai: {
|
|
1593
|
+
status: MemeAiStatus | null
|
|
1594
|
+
verdict: MemeAiVerdict | null
|
|
1595
|
+
data: MemeAiData | null
|
|
1596
|
+
}
|
|
1597
|
+
/** POST only: true when a check already in flight was returned instead of running a new one */
|
|
1598
|
+
reusedExisting?: boolean
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1512
1601
|
// ============================================
|
|
1513
1602
|
// Guild History Types
|
|
1514
1603
|
// ============================================
|