karin-plugin-kkk 2.27.3 → 2.27.5
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/CHANGELOG.md +16 -0
- package/lib/apps/__ready.js +1 -1
- package/lib/apps/admin.js +1 -1
- package/lib/apps/help.js +1 -1
- package/lib/apps/push.js +1 -1
- package/lib/apps/qrlogin.js +1 -1
- package/lib/apps/statistics.js +1 -1
- package/lib/apps/tools.js +1 -1
- package/lib/apps/update.js +1 -1
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/ArticleWork-DAUu405n.js +2 -0
- package/lib/core_chunk/Comment-C4O4BGki.js +2 -0
- package/lib/core_chunk/{Comment-B1-QWo31.js → Comment-CvirQFYw.js} +1 -1
- package/lib/core_chunk/Comment-DRZJbKCo.js +2 -0
- package/lib/core_chunk/Comment-OVXVG_tK.js +2 -0
- package/lib/core_chunk/{DYNAMIC_TYPE_ARTICLE-DhI4wyiD.js → DYNAMIC_TYPE_ARTICLE-BWmq2izT.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_AV-6dOhp5Vb.js → DYNAMIC_TYPE_AV-DEXvSz0s.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_DRAW-CyEKe3mQ.js → DYNAMIC_TYPE_DRAW-BAoyJ_xj.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_FORWARD-DgwU5r0h.js → DYNAMIC_TYPE_FORWARD-BI22-GqJ.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_LIVE_RCMD-v8wYPTDs.js → DYNAMIC_TYPE_LIVE_RCMD-6e6Nxtk5.js} +1 -1
- package/lib/core_chunk/{DYNAMIC_TYPE_WORD-BhB1tElH.js → DYNAMIC_TYPE_WORD-BTU9phya.js} +1 -1
- package/lib/core_chunk/Dynamic-hjZ0BWR-.js +2 -0
- package/lib/core_chunk/FavoriteList-DUfIRclT.js +2 -0
- package/lib/core_chunk/GlobalStatistics-B3CAQ44M.js +2 -0
- package/lib/core_chunk/GroupStatistics-D4gbZHi3.js +2 -0
- package/lib/core_chunk/Help-Dsw5G3Do.js +2 -0
- package/lib/core_chunk/ImageWork-B9FSN_iw.js +2 -0
- package/lib/core_chunk/Live-KEnoE0UO.js +2 -0
- package/lib/core_chunk/MusicInfo-Ddrg14eN.js +2 -0
- package/lib/core_chunk/RecommendList-D1l_s0TC.js +2 -0
- package/lib/core_chunk/UserList-BApDU1lF.js +2 -0
- package/lib/core_chunk/UserList-H1AY3_uj.js +2 -0
- package/lib/core_chunk/UserVideoList-CMMgbIYt.js +2 -0
- package/lib/core_chunk/VersionWarning-BW24eFU4.js +2 -0
- package/lib/core_chunk/VideoWork-BiIIbFeI.js +2 -0
- package/lib/core_chunk/amagiClient-ZfZHbiuk.js +2 -0
- package/lib/core_chunk/bangumi-Dp7MOjzD.js +2 -0
- package/lib/core_chunk/changelog-C8dAS9l4.js +2 -0
- package/lib/core_chunk/{db-CPobc711.js → db-BejzAO0s.js} +1 -1
- package/lib/core_chunk/dist-BAaLyQpB.js +2 -0
- package/lib/core_chunk/handlerError-BOPnE0Gh.js +2 -0
- package/lib/core_chunk/{main-DpV125vG.js → main-DmN-B2b6.js} +683 -406
- package/lib/core_chunk/{noteInfo-BRi4E8ui.js → noteInfo-srWUKzIA.js} +1 -1
- package/lib/core_chunk/qrcodeImg-DSrE-i8P.js +2 -0
- package/lib/core_chunk/qrcodeImg-p3e0i2PO.js +2 -0
- package/lib/core_chunk/qrlogin-B_Yo4Job.js +2 -0
- package/lib/core_chunk/setup-B-ut9uDP.js +2 -0
- package/lib/core_chunk/template.d.mts +351 -15
- package/lib/core_chunk/template.js +1 -1
- package/lib/core_chunk/{vendor-CPNFNbMs.js → vendor-BVonRw7I.js} +11092 -4828
- package/lib/core_chunk/videoInfo-Bhn9Z9tk.js +2 -0
- package/lib/core_chunk/videoInfo-DQEHVJxc.js +2 -0
- package/lib/index.js +1 -1
- package/lib/karin-plugin-kkk.css +41 -2
- package/lib/root.js +1 -1
- package/lib/web.config.js +1 -1
- package/package.json +2 -2
- package/resources/image/other/handlerError/Milky.png +0 -0
- package/resources/image/other/handlerError/onebot.png +0 -0
- package/resources/image/other/handlerError/satori.png +0 -0
- package/lib/core_chunk/ArticleWork-B9VlEbFM.js +0 -2
- package/lib/core_chunk/Comment-CsjhEqQE.js +0 -2
- package/lib/core_chunk/Comment-DqdTSc8A.js +0 -2
- package/lib/core_chunk/Comment-vfsv9BWV.js +0 -2
- package/lib/core_chunk/Dynamic-k3p7RKuw.js +0 -2
- package/lib/core_chunk/FavoriteList-VfKULbNA.js +0 -2
- package/lib/core_chunk/GlobalStatistics-Bc7svC23.js +0 -2
- package/lib/core_chunk/GroupStatistics-BIMjUQ01.js +0 -2
- package/lib/core_chunk/Help-vD_prhrv.js +0 -2
- package/lib/core_chunk/ImageWork-DGp6mxVH.js +0 -2
- package/lib/core_chunk/Live-DqlY-h7D.js +0 -2
- package/lib/core_chunk/MusicInfo-Ba4wnEpW.js +0 -2
- package/lib/core_chunk/RecommendList-Cng4vsUq.js +0 -2
- package/lib/core_chunk/UserList-BHq909y3.js +0 -2
- package/lib/core_chunk/UserList-Cc-KSITl.js +0 -2
- package/lib/core_chunk/UserVideoList-BoX9UYyz.js +0 -2
- package/lib/core_chunk/VersionWarning-CIL9fLZa.js +0 -2
- package/lib/core_chunk/VideoWork-yO5B3pBL.js +0 -2
- package/lib/core_chunk/amagiClient-ekHY-PXh.js +0 -2
- package/lib/core_chunk/bangumi-DKQ6q6pC.js +0 -2
- package/lib/core_chunk/changelog-CqYNfGVJ.js +0 -2
- package/lib/core_chunk/dist-uCFspDJu.js +0 -2
- package/lib/core_chunk/handlerError-D0W7_FuK.js +0 -2
- package/lib/core_chunk/qrcodeImg-B01ESZUL.js +0 -2
- package/lib/core_chunk/qrcodeImg-Cy0np3Sk.js +0 -2
- package/lib/core_chunk/qrlogin-DcHpe2_c.js +0 -2
- package/lib/core_chunk/setup-DPzunDIj.js +0 -2
- package/lib/core_chunk/videoInfo-ByNoR3t4.js +0 -2
- package/lib/core_chunk/videoInfo-DONA7eyd.js +0 -2
- package/resources/image/other/handlerError/cxk.png +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as XiaohongshuNoteInfo } from "./main-
|
|
1
|
+
import { t as XiaohongshuNoteInfo } from "./main-DmN-B2b6.js";
|
|
2
2
|
export { XiaohongshuNoteInfo, XiaohongshuNoteInfo as default };
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import React$1 from "react";
|
|
3
|
+
import { Agent, ClientRequest, ClientRequestArgs, IncomingMessage, OutgoingHttpHeaders, Server } from "http";
|
|
4
|
+
import { EventEmitter } from "events";
|
|
5
|
+
import { createConnection } from "net";
|
|
6
|
+
import { SecureContextOptions } from "tls";
|
|
7
|
+
import { Server as Server$1 } from "https";
|
|
8
|
+
import { URL } from "url";
|
|
9
|
+
import { ZlibOptions } from "zlib";
|
|
2
10
|
|
|
3
11
|
//#region ../template/src/types/platforms/douyin/articleWork.d.ts
|
|
4
12
|
/**
|
|
@@ -1581,6 +1589,345 @@ interface MenuGroup {
|
|
|
1581
1589
|
}[];
|
|
1582
1590
|
}
|
|
1583
1591
|
//#endregion
|
|
1592
|
+
//#region ../../node_modules/.pnpm/@karinjs+ws@1.0.4/node_modules/@karinjs/ws/dist/index.d.ts
|
|
1593
|
+
// can not get all overload of BufferConstructor['from'], need to copy all it's first arguments here
|
|
1594
|
+
// https://github.com/microsoft/TypeScript/issues/32164
|
|
1595
|
+
type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | Blob | readonly any[] | readonly number[] | {
|
|
1596
|
+
valueOf(): ArrayBuffer;
|
|
1597
|
+
} | {
|
|
1598
|
+
valueOf(): SharedArrayBuffer;
|
|
1599
|
+
} | {
|
|
1600
|
+
valueOf(): Uint8Array;
|
|
1601
|
+
} | {
|
|
1602
|
+
valueOf(): readonly number[];
|
|
1603
|
+
} | {
|
|
1604
|
+
valueOf(): string;
|
|
1605
|
+
} | {
|
|
1606
|
+
[Symbol.toPrimitive](hint: string): string;
|
|
1607
|
+
}; // WebSocket socket.
|
|
1608
|
+
declare class WebSocket extends EventEmitter {
|
|
1609
|
+
/** The connection is not yet open. */
|
|
1610
|
+
static readonly CONNECTING: 0;
|
|
1611
|
+
/** The connection is open and ready to communicate. */
|
|
1612
|
+
static readonly OPEN: 1;
|
|
1613
|
+
/** The connection is in the process of closing. */
|
|
1614
|
+
static readonly CLOSING: 2;
|
|
1615
|
+
/** The connection is closed. */
|
|
1616
|
+
static readonly CLOSED: 3;
|
|
1617
|
+
binaryType: "nodebuffer" | "arraybuffer" | "fragments";
|
|
1618
|
+
readonly bufferedAmount: number;
|
|
1619
|
+
readonly extensions: string;
|
|
1620
|
+
/** Indicates whether the websocket is paused */
|
|
1621
|
+
readonly isPaused: boolean;
|
|
1622
|
+
readonly protocol: string;
|
|
1623
|
+
/** The current state of the connection */
|
|
1624
|
+
readonly readyState: typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING | typeof WebSocket.CLOSED;
|
|
1625
|
+
readonly url: string;
|
|
1626
|
+
/** The connection is not yet open. */
|
|
1627
|
+
readonly CONNECTING: 0;
|
|
1628
|
+
/** The connection is open and ready to communicate. */
|
|
1629
|
+
readonly OPEN: 1;
|
|
1630
|
+
/** The connection is in the process of closing. */
|
|
1631
|
+
readonly CLOSING: 2;
|
|
1632
|
+
/** The connection is closed. */
|
|
1633
|
+
readonly CLOSED: 3;
|
|
1634
|
+
onopen: ((event: WebSocket.Event) => void) | null;
|
|
1635
|
+
onerror: ((event: WebSocket.ErrorEvent) => void) | null;
|
|
1636
|
+
onclose: ((event: WebSocket.CloseEvent) => void) | null;
|
|
1637
|
+
onmessage: ((event: WebSocket.MessageEvent) => void) | null;
|
|
1638
|
+
constructor(address: null);
|
|
1639
|
+
constructor(address: string | URL, options?: WebSocket.ClientOptions | ClientRequestArgs);
|
|
1640
|
+
constructor(address: string | URL, protocols?: string | string[], options?: WebSocket.ClientOptions | ClientRequestArgs);
|
|
1641
|
+
close(code?: number, data?: string | Buffer): void;
|
|
1642
|
+
ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
|
|
1643
|
+
pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void; // https://github.com/websockets/ws/issues/2076#issuecomment-1250354722
|
|
1644
|
+
send(data: BufferLike, cb?: (err?: Error) => void): void;
|
|
1645
|
+
send(data: BufferLike, options: {
|
|
1646
|
+
mask?: boolean | undefined;
|
|
1647
|
+
binary?: boolean | undefined;
|
|
1648
|
+
compress?: boolean | undefined;
|
|
1649
|
+
fin?: boolean | undefined;
|
|
1650
|
+
}, cb?: (err?: Error) => void): void;
|
|
1651
|
+
terminate(): void;
|
|
1652
|
+
/**
|
|
1653
|
+
* Pause the websocket causing it to stop emitting events. Some events can still be
|
|
1654
|
+
* emitted after this is called, until all buffered data is consumed. This method
|
|
1655
|
+
* is a noop if the ready state is `CONNECTING` or `CLOSED`.
|
|
1656
|
+
*/
|
|
1657
|
+
pause(): void;
|
|
1658
|
+
/**
|
|
1659
|
+
* Make a paused socket resume emitting events. This method is a noop if the ready
|
|
1660
|
+
* state is `CONNECTING` or `CLOSED`.
|
|
1661
|
+
*/
|
|
1662
|
+
resume(): void; // HTML5 WebSocket events
|
|
1663
|
+
addEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
|
|
1664
|
+
handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
|
|
1665
|
+
}, options?: WebSocket.EventListenerOptions): void;
|
|
1666
|
+
removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
|
|
1667
|
+
handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
|
|
1668
|
+
}): void; // Events
|
|
1669
|
+
on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
|
|
1670
|
+
on(event: "error", listener: (this: WebSocket, error: Error) => void): this;
|
|
1671
|
+
on(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
|
|
1672
|
+
on(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
|
|
1673
|
+
on(event: "open", listener: (this: WebSocket) => void): this;
|
|
1674
|
+
on(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
|
|
1675
|
+
on(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
|
|
1676
|
+
on(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
|
|
1677
|
+
on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
|
|
1678
|
+
once(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
|
|
1679
|
+
once(event: "error", listener: (this: WebSocket, error: Error) => void): this;
|
|
1680
|
+
once(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
|
|
1681
|
+
once(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
|
|
1682
|
+
once(event: "open", listener: (this: WebSocket) => void): this;
|
|
1683
|
+
once(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
|
|
1684
|
+
once(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
|
|
1685
|
+
once(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
|
|
1686
|
+
once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
|
|
1687
|
+
off(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
|
|
1688
|
+
off(event: "error", listener: (this: WebSocket, error: Error) => void): this;
|
|
1689
|
+
off(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
|
|
1690
|
+
off(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
|
|
1691
|
+
off(event: "open", listener: (this: WebSocket) => void): this;
|
|
1692
|
+
off(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
|
|
1693
|
+
off(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
|
|
1694
|
+
off(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
|
|
1695
|
+
off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
|
|
1696
|
+
addListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
|
|
1697
|
+
addListener(event: "error", listener: (error: Error) => void): this;
|
|
1698
|
+
addListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
|
|
1699
|
+
addListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
|
|
1700
|
+
addListener(event: "open", listener: () => void): this;
|
|
1701
|
+
addListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
|
|
1702
|
+
addListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
|
|
1703
|
+
addListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
|
|
1704
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1705
|
+
removeListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
|
|
1706
|
+
removeListener(event: "error", listener: (error: Error) => void): this;
|
|
1707
|
+
removeListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
|
|
1708
|
+
removeListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
|
|
1709
|
+
removeListener(event: "open", listener: () => void): this;
|
|
1710
|
+
removeListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
|
|
1711
|
+
removeListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
|
|
1712
|
+
removeListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
|
|
1713
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1714
|
+
}
|
|
1715
|
+
declare namespace WebSocket {
|
|
1716
|
+
/**
|
|
1717
|
+
* Data represents the raw message payload received over the WebSocket.
|
|
1718
|
+
*/
|
|
1719
|
+
type RawData = Buffer | ArrayBuffer | Buffer[];
|
|
1720
|
+
/**
|
|
1721
|
+
* Data represents the message payload received over the WebSocket.
|
|
1722
|
+
*/
|
|
1723
|
+
type Data = string | Buffer | ArrayBuffer | Buffer[];
|
|
1724
|
+
/**
|
|
1725
|
+
* CertMeta represents the accepted types for certificate & key data.
|
|
1726
|
+
*/
|
|
1727
|
+
type CertMeta = string | string[] | Buffer | Buffer[];
|
|
1728
|
+
/**
|
|
1729
|
+
* VerifyClientCallbackSync is a synchronous callback used to inspect the
|
|
1730
|
+
* incoming message. The return value (boolean) of the function determines
|
|
1731
|
+
* whether or not to accept the handshake.
|
|
1732
|
+
*/
|
|
1733
|
+
type VerifyClientCallbackSync<Request extends IncomingMessage = IncomingMessage> = (info: {
|
|
1734
|
+
origin: string;
|
|
1735
|
+
secure: boolean;
|
|
1736
|
+
req: Request;
|
|
1737
|
+
}) => boolean;
|
|
1738
|
+
/**
|
|
1739
|
+
* VerifyClientCallbackAsync is an asynchronous callback used to inspect the
|
|
1740
|
+
* incoming message. The return value (boolean) of the function determines
|
|
1741
|
+
* whether or not to accept the handshake.
|
|
1742
|
+
*/
|
|
1743
|
+
type VerifyClientCallbackAsync<Request extends IncomingMessage = IncomingMessage> = (info: {
|
|
1744
|
+
origin: string;
|
|
1745
|
+
secure: boolean;
|
|
1746
|
+
req: Request;
|
|
1747
|
+
}, callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void) => void;
|
|
1748
|
+
/**
|
|
1749
|
+
* FinishRequestCallback is a callback for last minute customization of the
|
|
1750
|
+
* headers. If finishRequest is set, then it has the responsibility to call
|
|
1751
|
+
* request.end() once it is done setting request headers.
|
|
1752
|
+
*/
|
|
1753
|
+
type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
|
|
1754
|
+
interface ClientOptions extends SecureContextOptions {
|
|
1755
|
+
protocol?: string | undefined;
|
|
1756
|
+
followRedirects?: boolean | undefined;
|
|
1757
|
+
generateMask?(mask: Buffer): void;
|
|
1758
|
+
handshakeTimeout?: number | undefined;
|
|
1759
|
+
maxRedirects?: number | undefined;
|
|
1760
|
+
perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
|
|
1761
|
+
localAddress?: string | undefined;
|
|
1762
|
+
protocolVersion?: number | undefined;
|
|
1763
|
+
headers?: {
|
|
1764
|
+
[key: string]: string;
|
|
1765
|
+
} | undefined;
|
|
1766
|
+
origin?: string | undefined;
|
|
1767
|
+
agent?: Agent | undefined;
|
|
1768
|
+
host?: string | undefined;
|
|
1769
|
+
family?: number | undefined;
|
|
1770
|
+
checkServerIdentity?(servername: string, cert: CertMeta): boolean;
|
|
1771
|
+
rejectUnauthorized?: boolean | undefined;
|
|
1772
|
+
allowSynchronousEvents?: boolean | undefined;
|
|
1773
|
+
autoPong?: boolean | undefined;
|
|
1774
|
+
maxPayload?: number | undefined;
|
|
1775
|
+
skipUTF8Validation?: boolean | undefined;
|
|
1776
|
+
createConnection?: typeof createConnection | undefined;
|
|
1777
|
+
finishRequest?: FinishRequestCallback | undefined;
|
|
1778
|
+
}
|
|
1779
|
+
interface PerMessageDeflateOptions {
|
|
1780
|
+
serverNoContextTakeover?: boolean | undefined;
|
|
1781
|
+
clientNoContextTakeover?: boolean | undefined;
|
|
1782
|
+
serverMaxWindowBits?: number | undefined;
|
|
1783
|
+
clientMaxWindowBits?: number | undefined;
|
|
1784
|
+
zlibDeflateOptions?: {
|
|
1785
|
+
flush?: number | undefined;
|
|
1786
|
+
finishFlush?: number | undefined;
|
|
1787
|
+
chunkSize?: number | undefined;
|
|
1788
|
+
windowBits?: number | undefined;
|
|
1789
|
+
level?: number | undefined;
|
|
1790
|
+
memLevel?: number | undefined;
|
|
1791
|
+
strategy?: number | undefined;
|
|
1792
|
+
dictionary?: Buffer | Buffer[] | DataView | undefined;
|
|
1793
|
+
info?: boolean | undefined;
|
|
1794
|
+
} | undefined;
|
|
1795
|
+
zlibInflateOptions?: ZlibOptions | undefined;
|
|
1796
|
+
threshold?: number | undefined;
|
|
1797
|
+
concurrencyLimit?: number | undefined;
|
|
1798
|
+
}
|
|
1799
|
+
interface Event {
|
|
1800
|
+
type: string;
|
|
1801
|
+
target: WebSocket;
|
|
1802
|
+
}
|
|
1803
|
+
interface ErrorEvent {
|
|
1804
|
+
error: any;
|
|
1805
|
+
message: string;
|
|
1806
|
+
type: string;
|
|
1807
|
+
target: WebSocket;
|
|
1808
|
+
}
|
|
1809
|
+
interface CloseEvent {
|
|
1810
|
+
wasClean: boolean;
|
|
1811
|
+
code: number;
|
|
1812
|
+
reason: string;
|
|
1813
|
+
type: string;
|
|
1814
|
+
target: WebSocket;
|
|
1815
|
+
}
|
|
1816
|
+
interface MessageEvent {
|
|
1817
|
+
data: Data;
|
|
1818
|
+
type: string;
|
|
1819
|
+
target: WebSocket;
|
|
1820
|
+
}
|
|
1821
|
+
interface WebSocketEventMap {
|
|
1822
|
+
open: Event;
|
|
1823
|
+
error: ErrorEvent;
|
|
1824
|
+
close: CloseEvent;
|
|
1825
|
+
message: MessageEvent;
|
|
1826
|
+
}
|
|
1827
|
+
interface EventListenerOptions {
|
|
1828
|
+
once?: boolean | undefined;
|
|
1829
|
+
}
|
|
1830
|
+
interface ServerOptions<U extends typeof WebSocket = typeof WebSocket, V extends typeof IncomingMessage = typeof IncomingMessage> {
|
|
1831
|
+
host?: string | undefined;
|
|
1832
|
+
port?: number | undefined;
|
|
1833
|
+
backlog?: number | undefined;
|
|
1834
|
+
server?: Server<V> | Server$1<V> | undefined;
|
|
1835
|
+
verifyClient?: VerifyClientCallbackAsync<InstanceType<V>> | VerifyClientCallbackSync<InstanceType<V>> | undefined;
|
|
1836
|
+
handleProtocols?: (protocols: Set<string>, request: InstanceType<V>) => string | false;
|
|
1837
|
+
path?: string | undefined;
|
|
1838
|
+
noServer?: boolean | undefined;
|
|
1839
|
+
allowSynchronousEvents?: boolean | undefined;
|
|
1840
|
+
autoPong?: boolean | undefined;
|
|
1841
|
+
clientTracking?: boolean | undefined;
|
|
1842
|
+
perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
|
|
1843
|
+
maxPayload?: number | undefined;
|
|
1844
|
+
skipUTF8Validation?: boolean | undefined;
|
|
1845
|
+
WebSocket?: U | undefined;
|
|
1846
|
+
}
|
|
1847
|
+
interface AddressInfo {
|
|
1848
|
+
address: string;
|
|
1849
|
+
family: string;
|
|
1850
|
+
port: number;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
//#endregion
|
|
1854
|
+
//#region ../../node_modules/.pnpm/node-karin@1.15.2/node_modules/node-karin/dist/index.d.ts
|
|
1855
|
+
/**
|
|
1856
|
+
* 适配器所属平台
|
|
1857
|
+
* - `qq`: QQ
|
|
1858
|
+
* - `wechat`: 微信
|
|
1859
|
+
* - `telegram`: Telegram
|
|
1860
|
+
* - `discord`: Discord
|
|
1861
|
+
* - `koko`: 开黑吧
|
|
1862
|
+
* - `other`: 其他
|
|
1863
|
+
*/
|
|
1864
|
+
type AdapterPlatform = 'qq' | 'wechat' | 'telegram' | 'discord' | 'koko' | 'other';
|
|
1865
|
+
/**
|
|
1866
|
+
* 适配器所使用的标准接口协议
|
|
1867
|
+
* - `onebot11`: OneBot v11 标准
|
|
1868
|
+
* - `onebot12`: OneBot v12 标准
|
|
1869
|
+
* - `oicq`: OICQ 标准
|
|
1870
|
+
* - `icqq`: OICQ fork 标准
|
|
1871
|
+
* - `other`: 其他标准
|
|
1872
|
+
*/
|
|
1873
|
+
type AdapterStandard = 'onebot11' | 'onebot12' | 'oicq' | 'icqq' | 'other';
|
|
1874
|
+
/**
|
|
1875
|
+
* 适配器协议实现名称
|
|
1876
|
+
* - `console`: 控制台
|
|
1877
|
+
* - `qqbot`: https://bot.q.qq.com/wiki
|
|
1878
|
+
* - `icqq`: https://github.com/icqqjs/icqq
|
|
1879
|
+
* - `gocq-http`: https://docs.go-cqhttp.org/
|
|
1880
|
+
* - `napcat`: https://napneko.github.io/zh-CN/
|
|
1881
|
+
* - `oicq`: https://github.com/takayama-lily/oicq
|
|
1882
|
+
* - `llonebot`: https://llonebot.github.io/zh-CN/
|
|
1883
|
+
* - `conwechat`: https://justundertaker.github.io/ComWeChatBotClient/
|
|
1884
|
+
* - `lagrange`: https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot/
|
|
1885
|
+
*/
|
|
1886
|
+
type AdapterProtocol = 'qqbot' | 'icqq' | 'gocq-http' | 'napcat' | 'oicq' | 'llonebot' | 'conwechat' | 'lagrange' | 'console' | 'other';
|
|
1887
|
+
/**
|
|
1888
|
+
* 适配器通信方式
|
|
1889
|
+
* - `http`: HTTP 通信
|
|
1890
|
+
* - `webSocketServer`: WebSocket 服务端
|
|
1891
|
+
* - `webSocketClient`: WebSocket 客户端
|
|
1892
|
+
* - `grpc`: gRPC 通信
|
|
1893
|
+
* - `other`: 其他通信方式
|
|
1894
|
+
*/
|
|
1895
|
+
type AdapterCommunication = 'http' | 'webSocketServer' | 'webSocketClient' | 'grpc' | 'other';
|
|
1896
|
+
/**
|
|
1897
|
+
* 适配器基本信息
|
|
1898
|
+
*/
|
|
1899
|
+
interface AdapterInfo$1 {
|
|
1900
|
+
/** 适配器索引 默认为-1 在注册适配器时会自动更改为对应的索引 */
|
|
1901
|
+
index: number;
|
|
1902
|
+
/** 适配器名称 如lagrange-onebot */
|
|
1903
|
+
name: string;
|
|
1904
|
+
/** 适配器版本 */
|
|
1905
|
+
version: string;
|
|
1906
|
+
/** 适配器平台 */
|
|
1907
|
+
platform: AdapterPlatform;
|
|
1908
|
+
/** 适配器使用的协议标准 如onebot11 */
|
|
1909
|
+
standard: AdapterStandard;
|
|
1910
|
+
/** 适配器协议实现 如gocq、napcat */
|
|
1911
|
+
protocol: AdapterProtocol;
|
|
1912
|
+
/** 适配器通信方式 */
|
|
1913
|
+
communication: AdapterCommunication;
|
|
1914
|
+
/**
|
|
1915
|
+
* 适配器通信地址
|
|
1916
|
+
* @example `http://127.0.0.1:7000`
|
|
1917
|
+
* @example `ws://127.0.0.1:7000/ws`
|
|
1918
|
+
* @example `grpc://127.0.0.1:7001`
|
|
1919
|
+
* @example `internal://127.0.0.1`
|
|
1920
|
+
*/
|
|
1921
|
+
address: string;
|
|
1922
|
+
/** 连接时间 */
|
|
1923
|
+
connectTime: number;
|
|
1924
|
+
/** 鉴权秘钥 */
|
|
1925
|
+
secret: string | null;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* 适配器账号信息
|
|
1929
|
+
*/
|
|
1930
|
+
//#endregion
|
|
1584
1931
|
//#region ../template/src/types/platforms/other/handlerError.d.ts
|
|
1585
1932
|
/**
|
|
1586
1933
|
* 业务错误类型
|
|
@@ -1615,18 +1962,7 @@ interface LogEntry {
|
|
|
1615
1962
|
/**
|
|
1616
1963
|
* 适配器信息接口
|
|
1617
1964
|
*/
|
|
1618
|
-
|
|
1619
|
-
/** 适配器名称 */
|
|
1620
|
-
name: string;
|
|
1621
|
-
/** 适配器版本 */
|
|
1622
|
-
version: string;
|
|
1623
|
-
/** 平台名称 */
|
|
1624
|
-
platform: string;
|
|
1625
|
-
/** 协议名称 */
|
|
1626
|
-
protocol: string;
|
|
1627
|
-
/** 标准协议 */
|
|
1628
|
-
standard?: string;
|
|
1629
|
-
}
|
|
1965
|
+
type AdapterInfo = Omit<AdapterInfo$1, 'index' | 'secret' | 'connectTime' | 'address'>;
|
|
1630
1966
|
/**
|
|
1631
1967
|
* API错误组件属性接口
|
|
1632
1968
|
*/
|
|
@@ -1645,8 +1981,7 @@ interface ApiErrorProps extends BaseComponentProps {
|
|
|
1645
1981
|
pluginVersion: string; /** 构建时间 */
|
|
1646
1982
|
buildTime?: string; /** Commit ID */
|
|
1647
1983
|
commitHash?: string; /** 适配器信息 */
|
|
1648
|
-
adapterInfo?: AdapterInfo; /**
|
|
1649
|
-
amagiVersion?: string; /** 是否为验证流程 */
|
|
1984
|
+
adapterInfo?: AdapterInfo; /** 是否为验证流程 */
|
|
1650
1985
|
isVerification?: boolean; /** 验证链接 */
|
|
1651
1986
|
verificationUrl?: string; /** 分享链接(用于生成二维码) */
|
|
1652
1987
|
share_url?: string;
|
|
@@ -1665,7 +2000,8 @@ interface ChangelogProps extends BaseComponentProps {
|
|
|
1665
2000
|
/** 是否包含更新提示 */Tip?: boolean; /** 后端传入的 Markdown 源码 */
|
|
1666
2001
|
markdown: string; /** 本地版本号 */
|
|
1667
2002
|
localVersion: string; /** 远程版本号 */
|
|
1668
|
-
remoteVersion: string; /**
|
|
2003
|
+
remoteVersion: string; /** 落后的版本数量 */
|
|
2004
|
+
lagVersionCount?: number; /** 构建时间 */
|
|
1669
2005
|
buildTime?: string;
|
|
1670
2006
|
};
|
|
1671
2007
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { bt as renderVideoPreviewPage, st as template_default, yt as reactServerRender } from "./main-
|
|
1
|
+
import { bt as renderVideoPreviewPage, st as template_default, yt as reactServerRender } from "./main-DmN-B2b6.js";
|
|
2
2
|
export { template_default as default, reactServerRender, renderVideoPreviewPage };
|