@bilibili-notify/extension 0.1.0-alpha.1 → 0.1.0-alpha.3
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/DEVELOPMENT.md +5 -1
- package/build.mjs +18 -2
- package/index.d.mts +73 -4
- package/package.json +1 -1
package/DEVELOPMENT.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 版本与工程
|
|
6
6
|
|
|
7
|
-
宿主契约为 `apiVersion: 1
|
|
7
|
+
宿主契约为 `apiVersion: 1`。群聊作品与来源扫码登录要求 `apiRevision: 1`,展示账号要求 `apiRevision: 2`,作品收藏数要求 `apiRevision: 3`。只用原有能力的拓展仍可省略小号(按 0 处理)。SDK 的 npm 版本和拓展自己的 `version` 分别管理。使用新增能力时应声明对应小号并核对宿主兼容性。
|
|
8
8
|
|
|
9
9
|
创建器默认生成独立Git工程、示例来源、完整vp命令、锁文件、提交hooks与GitHub Actions:
|
|
10
10
|
|
|
@@ -102,6 +102,8 @@ export function activate(ctx: ExtensionContext): void {
|
|
|
102
102
|
|
|
103
103
|
`start(sourceCtx)`得到运行中的来源上下文:从`subscriptions()`读取自己平台的创作者名单,监听`onSubscriptionsChanged`,以`externalId`上报。`reportProfile`更新资料,`reportPost`交作品,`reportLive`交开播、状态或下播信号;具体载荷使用SDK的`ExtensionPostReport`、`ExtensionLiveSignalReport`等公开类型。直播`status`只更新状态,不触发推送。
|
|
104
104
|
|
|
105
|
+
作品上报和群聊链接预览可用 `post.stats.saves` 传收藏数。平台未给出数值时省略,明确为零时传 `0`。使用此字段的拓展要求 `apiRevision: 3`。
|
|
106
|
+
|
|
105
107
|
### 展示账号(API 1 修订 2)
|
|
106
108
|
|
|
107
109
|
`externalId`是稳定身份,始终用于候选选择、请求和上报。用户可读但可能改变的公开账号放在`CreatorProfileReport.displayId`,搜索候选和`fetchProfile`也用同一字段。省略时保留旧资料,空串清除,最长256字。界面优先展示该账号,缺失时显示原身份;不会按展示账号合并或迁移订阅。
|
|
@@ -156,6 +158,8 @@ export function activate(ctx: ExtensionContext): void {
|
|
|
156
158
|
|
|
157
159
|
推送适配器通过`ctx.registerPlatformAdapter`登记,并在清单声明`contributes.push`。自己的连接及入站能力由适配器`start`收到的上下文提供;适配器键由宿主填成拓展id。它与订阅来源是两套接口,具体使用`PlatformAdapterDef`及其公开注释。
|
|
158
160
|
|
|
161
|
+
可选实现`createTestPayload(connection, destination, kind, samples)`,让推送目标页测试真实能力。使用宿主提供的图片、SILK语音和文字构造`NotificationPayload`,不在此方法发送;不支持时返回`unsupported`,不能发送纯文本替代品。省略此方法的旧适配器仍可测试普通文本。接收测试由宿主经既有入站入口核对短时测试码,适配器不用另开接口。明确的`audio`和`markdown`载荷不应降级为普通文本。
|
|
162
|
+
|
|
159
163
|
## 失败与译文
|
|
160
164
|
|
|
161
165
|
可预期失败返回`fail(code, message)`,成功返回`ok(...)`。`code`使用SDK的标准失败码;上游自己的错误码放`upstreamCode`。超时、限流、凭据失效与确实不存在分别处理;不要把所有错误都变成“找不到”。发送结果不明用`indeterminate`,不能自动重发。
|
package/build.mjs
CHANGED
|
@@ -70,6 +70,8 @@ function translate(dict, locale, key, values = {}) {
|
|
|
70
70
|
const UNBOUND_LAYERS = {
|
|
71
71
|
"zh-CN": {
|
|
72
72
|
plain: {
|
|
73
|
+
"ai.modelSafety.refused": "模型安全审核拒绝了这次请求。",
|
|
74
|
+
"internal.settings.imageAllowedCidrs": "请填写有效的 IPv4 或 IPv6 CIDR 地址段,例如 198.18.0.0/16。",
|
|
73
75
|
"internal.commands.aliasBlank": "别名不能为空或带首尾空格",
|
|
74
76
|
"internal.commands.prefixBlank": "前缀不能是纯空白",
|
|
75
77
|
"internal.commands.prefixLeadingSpace": "前缀不能以空白开头",
|
|
@@ -392,6 +394,7 @@ const UNBOUND_LAYERS = {
|
|
|
392
394
|
"internal.card-skin.144": "点赞数",
|
|
393
395
|
"internal.card-skin.145": "文字",
|
|
394
396
|
"internal.card-skin.146": "图标",
|
|
397
|
+
"internal.card-skin.saveCount": "收藏数",
|
|
395
398
|
"internal.card-skin.147": "留言",
|
|
396
399
|
"internal.card-skin.148": "留言气泡",
|
|
397
400
|
"internal.card-skin.149": "留言文本",
|
|
@@ -684,6 +687,7 @@ const UNBOUND_LAYERS = {
|
|
|
684
687
|
"image.icons.forward": "转发",
|
|
685
688
|
"image.icons.comment": "评论",
|
|
686
689
|
"image.icons.like": "点赞",
|
|
690
|
+
"image.icons.save": "收藏",
|
|
687
691
|
"image.icons.topic": "话题",
|
|
688
692
|
"image.icons.view": "播放量",
|
|
689
693
|
"image.icons.danmaku": "弹幕",
|
|
@@ -859,6 +863,8 @@ const UNBOUND_LAYERS = {
|
|
|
859
863
|
},
|
|
860
864
|
"zh-TW": {
|
|
861
865
|
plain: {
|
|
866
|
+
"ai.modelSafety.refused": "模型安全審核拒絕了這次請求。",
|
|
867
|
+
"internal.settings.imageAllowedCidrs": "請填寫有效的 IPv4 或 IPv6 CIDR 網段,例如 198.18.0.0/16。",
|
|
862
868
|
"storage.log.masterReadFailed": "主金鑰讀取失敗(非缺失),保留原檔案並停止載入",
|
|
863
869
|
"storage.log.masterLoaded": "主金鑰已載入",
|
|
864
870
|
"storage.log.masterInvalid": "主金鑰檔案格式無效(應為 64 位十六進位),將重新產生;原有憑證將無法解密,需重新登入或設定",
|
|
@@ -1124,6 +1130,7 @@ const UNBOUND_LAYERS = {
|
|
|
1124
1130
|
"image.icons.forward": "轉發",
|
|
1125
1131
|
"image.icons.comment": "留言",
|
|
1126
1132
|
"image.icons.like": "按讚",
|
|
1133
|
+
"image.icons.save": "收藏",
|
|
1127
1134
|
"image.icons.topic": "話題",
|
|
1128
1135
|
"image.icons.view": "播放次數",
|
|
1129
1136
|
"image.icons.danmaku": "彈幕",
|
|
@@ -1520,6 +1527,7 @@ const UNBOUND_LAYERS = {
|
|
|
1520
1527
|
"internal.card-skin.144": "按讚數",
|
|
1521
1528
|
"internal.card-skin.145": "文字",
|
|
1522
1529
|
"internal.card-skin.146": "圖示",
|
|
1530
|
+
"internal.card-skin.saveCount": "收藏數",
|
|
1523
1531
|
"internal.card-skin.147": "留言",
|
|
1524
1532
|
"internal.card-skin.148": "留言氣泡",
|
|
1525
1533
|
"internal.card-skin.149": "留言文字",
|
|
@@ -1647,6 +1655,8 @@ const UNBOUND_LAYERS = {
|
|
|
1647
1655
|
}
|
|
1648
1656
|
},
|
|
1649
1657
|
en: { plain: {
|
|
1658
|
+
"ai.modelSafety.refused": "The model safety check declined this request.",
|
|
1659
|
+
"internal.settings.imageAllowedCidrs": "Enter a valid IPv4 or IPv6 CIDR range, such as 198.18.0.0/16.",
|
|
1650
1660
|
"storage.log.masterReadFailed": "Cannot read the existing master key; preserving the file and stopping the load",
|
|
1651
1661
|
"storage.log.masterLoaded": "Master key loaded",
|
|
1652
1662
|
"storage.log.masterInvalid": "Invalid master key file (expected 64 hexadecimal characters); regenerating it will make existing credentials unreadable and require login or configuration again",
|
|
@@ -1912,6 +1922,7 @@ const UNBOUND_LAYERS = {
|
|
|
1912
1922
|
"image.icons.forward": "Repost",
|
|
1913
1923
|
"image.icons.comment": "Comment",
|
|
1914
1924
|
"image.icons.like": "Like",
|
|
1925
|
+
"image.icons.save": "Save",
|
|
1915
1926
|
"image.icons.topic": "Topic",
|
|
1916
1927
|
"image.icons.view": "Views",
|
|
1917
1928
|
"image.icons.danmaku": "Chat messages",
|
|
@@ -2315,6 +2326,7 @@ const UNBOUND_LAYERS = {
|
|
|
2315
2326
|
"internal.card-skin.144": "Like count",
|
|
2316
2327
|
"internal.card-skin.145": "Text",
|
|
2317
2328
|
"internal.card-skin.146": "Icon",
|
|
2329
|
+
"internal.card-skin.saveCount": "Save count",
|
|
2318
2330
|
"internal.card-skin.147": "Message",
|
|
2319
2331
|
"internal.card-skin.148": "Message bubble",
|
|
2320
2332
|
"internal.card-skin.149": "Message text",
|
|
@@ -2352,6 +2364,8 @@ const UNBOUND_LAYERS = {
|
|
|
2352
2364
|
} },
|
|
2353
2365
|
ja: {
|
|
2354
2366
|
plain: {
|
|
2367
|
+
"ai.modelSafety.refused": "モデルの安全確認でリクエストが拒否されました。",
|
|
2368
|
+
"internal.settings.imageAllowedCidrs": "198.18.0.0/16 など、有効な IPv4 または IPv6 の CIDR 範囲を入力してください。",
|
|
2355
2369
|
"storage.log.masterReadFailed": "既存のマスターキーを読み取れません。ファイルを保持して読み込みを中止します",
|
|
2356
2370
|
"storage.log.masterLoaded": "マスターキーを読み込みました",
|
|
2357
2371
|
"storage.log.masterInvalid": "マスターキーファイルの形式が無効です(64 桁の16進数が必要)。再生成により既存の認証情報を復号できなくなるため、再ログインまたは再設定が必要です",
|
|
@@ -2617,6 +2631,7 @@ const UNBOUND_LAYERS = {
|
|
|
2617
2631
|
"image.icons.forward": "リポスト",
|
|
2618
2632
|
"image.icons.comment": "コメント",
|
|
2619
2633
|
"image.icons.like": "いいね",
|
|
2634
|
+
"image.icons.save": "保存",
|
|
2620
2635
|
"image.icons.topic": "トピック",
|
|
2621
2636
|
"image.icons.view": "再生数",
|
|
2622
2637
|
"image.icons.danmaku": "弾幕",
|
|
@@ -3013,6 +3028,7 @@ const UNBOUND_LAYERS = {
|
|
|
3013
3028
|
"internal.card-skin.144": "いいね数",
|
|
3014
3029
|
"internal.card-skin.145": "テキスト",
|
|
3015
3030
|
"internal.card-skin.146": "アイコン",
|
|
3031
|
+
"internal.card-skin.saveCount": "保存数",
|
|
3016
3032
|
"internal.card-skin.147": "メッセージ",
|
|
3017
3033
|
"internal.card-skin.148": "メッセージの吹き出し",
|
|
3018
3034
|
"internal.card-skin.149": "メッセージ本文",
|
|
@@ -3272,7 +3288,7 @@ const EXTENSION_IMAGE_MAX_CHARS = 32768;
|
|
|
3272
3288
|
* ⚠️ 不带 `g`:几处共用这一个对象,带 `g` 的话 `test()` 会在两次调用之间记着 `lastIndex`。
|
|
3273
3289
|
*/
|
|
3274
3290
|
const EXTENSION_IMAGE_DATA_URL_RE = /^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+=*$/;
|
|
3275
|
-
// ../internal/lib/settings-fields-from-schema-
|
|
3291
|
+
// ../internal/lib/settings-fields-from-schema-zWV8eZ41.mjs
|
|
3276
3292
|
const VARIABLE_QUANTIFIER = String.raw`(?:[+*]|\{\d+,\d*\})`;
|
|
3277
3293
|
const NESTED_QUANTIFIER = new RegExp(String.raw`\((?:\?[:=!][^)]*|[^)]*)${VARIABLE_QUANTIFIER}[^)]*\)\s*(?:[+*]|\{\d+(?:,\d*)?\})`);
|
|
3278
3294
|
function hasOverlappingAlternationUnderQuantifier(src) {
|
|
@@ -3351,7 +3367,7 @@ const CREATOR_SEARCH_KINDS = [
|
|
|
3351
3367
|
const EXTENSION_API_RANGE = Object.freeze({
|
|
3352
3368
|
min: 1,
|
|
3353
3369
|
current: 1,
|
|
3354
|
-
revision:
|
|
3370
|
+
revision: 3
|
|
3355
3371
|
});
|
|
3356
3372
|
/** 这一档落不落在区间里(不看小号)。 */
|
|
3357
3373
|
function tierAccepted(apiVersion, range) {
|
package/index.d.mts
CHANGED
|
@@ -239,6 +239,10 @@ type DestinationRef = Pick<Extract<PushTarget, {
|
|
|
239
239
|
*/
|
|
240
240
|
declare const PUSH_TARGET_SCOPES: readonly ["group", "private", "channel"];
|
|
241
241
|
type PushTargetScope = (typeof PUSH_TARGET_SCOPES)[number];
|
|
242
|
+
/** 面板逐项测试的词表;`inbound` 需要回传,其他项目各发送一次真实样例。 */
|
|
243
|
+
declare const TARGET_TEST_KINDS: readonly ["text", "atAll", "nativeShare", "image", "imageGroup", "forward", "audio", "markdown", "inbound"];
|
|
244
|
+
type TargetTestKind = (typeof TARGET_TEST_KINDS)[number];
|
|
245
|
+
type SendTestKind = Exclude<TargetTestKind, "inbound">;
|
|
242
246
|
/**
|
|
243
247
|
* 图库引用形状 —— `<sha256>.<ext>` 的扩展名和校验正则。
|
|
244
248
|
*
|
|
@@ -366,6 +370,7 @@ interface Post {
|
|
|
366
370
|
shares?: number;
|
|
367
371
|
comments?: number;
|
|
368
372
|
likes?: number;
|
|
373
|
+
saves?: number;
|
|
369
374
|
};
|
|
370
375
|
}
|
|
371
376
|
/**
|
|
@@ -855,6 +860,22 @@ interface SettingsFieldMeta {
|
|
|
855
860
|
type ProbeResult = Result<{
|
|
856
861
|
latencyMs: number;
|
|
857
862
|
}>;
|
|
863
|
+
/** 宿主提供的自包含测试素材。适配器只编载荷;真正发送仍由 TargetDispatcher 调 send。 */
|
|
864
|
+
interface PlatformTestOptions {
|
|
865
|
+
text: string;
|
|
866
|
+
image: {
|
|
867
|
+
buffer: Buffer;
|
|
868
|
+
mime: string;
|
|
869
|
+
};
|
|
870
|
+
secondImage: {
|
|
871
|
+
buffer: Buffer;
|
|
872
|
+
mime: string;
|
|
873
|
+
};
|
|
874
|
+
audio: {
|
|
875
|
+
buffer: Buffer;
|
|
876
|
+
mime: "audio/silk";
|
|
877
|
+
};
|
|
878
|
+
}
|
|
858
879
|
/**
|
|
859
880
|
* 一个平台实现 —— 认领哪些连接、怎么建连、报文怎么编、地址怎么解、有什么能力。
|
|
860
881
|
* 矩阵({@link TargetDispatcher})拿它按连接的 `adapterKey` 找。
|
|
@@ -916,12 +937,22 @@ interface PlatformAdapter {
|
|
|
916
937
|
isAvailable(connection: Connection, destination: DestinationRef): boolean;
|
|
917
938
|
/** Deliver `payload` to `destination` over `connection`. 群还是私聊只看 `destination.scope`。 */
|
|
918
939
|
send(connection: Connection, destination: DestinationRef, payload: NotificationPayload): Promise<DeliveryResult>;
|
|
940
|
+
/** 构造对应能力的真实样例;不支持时拒绝,不用文本替代。没有此成员的旧适配器仍可测试普通文本。 */
|
|
941
|
+
createTestPayload?(connection: Connection, destination: DestinationRef, kind: SendTestKind, samples: PlatformTestOptions): Result<{
|
|
942
|
+
payload: NotificationPayload;
|
|
943
|
+
}>;
|
|
919
944
|
/**
|
|
920
945
|
* 这条连接的能力(三态;探测结果读缓存,同步读、不打网络)。内置适配器都实现;没实现的
|
|
921
946
|
* (老的拓展适配器)各项按「还不知道」算,怎么对待「还不知道」见 internal 的
|
|
922
947
|
* `shouldSendAtAll` / `canReceiveReply` / `listsForLinkPreview`。
|
|
923
948
|
*/
|
|
924
|
-
capabilities?(connection: Connection): ConnectionCapabilities;
|
|
949
|
+
capabilities?(connection: Connection, destination?: DestinationRef): ConnectionCapabilities;
|
|
950
|
+
/** 宿主只读查询会话内身份与使用记录;暂不向拓展开放。 */
|
|
951
|
+
fetchDestinationStatus?(connection: Connection, destination: DestinationRef, signal: AbortSignal, options?: {
|
|
952
|
+
refresh?: boolean;
|
|
953
|
+
}): Promise<Result<{
|
|
954
|
+
status: DestinationStatus;
|
|
955
|
+
}>>;
|
|
925
956
|
/** 主动探一次能力,结果进缓存。连上时、健康探测时、用之前都可以叫;零副作用。 */
|
|
926
957
|
probeCapabilities?(connection: Connection): Promise<ConnectionCapabilities>;
|
|
927
958
|
/**
|
|
@@ -1278,6 +1309,11 @@ interface NativeShare {
|
|
|
1278
1309
|
type NotificationPayload = {
|
|
1279
1310
|
kind: "text";
|
|
1280
1311
|
text: string;
|
|
1312
|
+
} |
|
|
1313
|
+
/** 明确要求原生 Markdown;不支持的适配器拒绝,不剥成纯文字冒充成功。 */
|
|
1314
|
+
{
|
|
1315
|
+
kind: "markdown";
|
|
1316
|
+
text: string;
|
|
1281
1317
|
} | {
|
|
1282
1318
|
kind: "image";
|
|
1283
1319
|
image: {
|
|
@@ -1285,6 +1321,14 @@ type NotificationPayload = {
|
|
|
1285
1321
|
mime: string;
|
|
1286
1322
|
};
|
|
1287
1323
|
caption?: string;
|
|
1324
|
+
} |
|
|
1325
|
+
/** 单条语音。当前发送实现接收 SILK;格式转换由调用方完成,适配器不降级成文字。 */
|
|
1326
|
+
{
|
|
1327
|
+
kind: "audio";
|
|
1328
|
+
audio: {
|
|
1329
|
+
buffer: Buffer;
|
|
1330
|
+
mime: "audio/silk";
|
|
1331
|
+
};
|
|
1288
1332
|
} | {
|
|
1289
1333
|
kind: "composite";
|
|
1290
1334
|
segments: PayloadSegment[];
|
|
@@ -1336,7 +1380,7 @@ type DeliveryResult = Result<{
|
|
|
1336
1380
|
* 后者是结论;读它的地方各自决定「还不知道」时怎么办(见 `ConnectionCapabilities` 各格的注释),
|
|
1337
1381
|
* 面板上两者也要分开显示。
|
|
1338
1382
|
*
|
|
1339
|
-
* - `supported`:确认支持,`checkedAt`
|
|
1383
|
+
* - `supported`:确认支持,`checkedAt` 是确认的时刻,可用 `reason` 说明适用范围。
|
|
1340
1384
|
* - `unsupported`:确认不支持,`reason` 给人看的一句话,`checkedAt` 是确认的时刻。
|
|
1341
1385
|
* - `unknown`:还没探出来(没探过、连不上、对面没报),`reason` 可选。
|
|
1342
1386
|
*
|
|
@@ -1345,6 +1389,7 @@ type DeliveryResult = Result<{
|
|
|
1345
1389
|
type CapabilitySupport = {
|
|
1346
1390
|
state: "supported";
|
|
1347
1391
|
checkedAt: string;
|
|
1392
|
+
reason?: string;
|
|
1348
1393
|
} | {
|
|
1349
1394
|
state: "unsupported";
|
|
1350
1395
|
reason: string;
|
|
@@ -1353,8 +1398,32 @@ type CapabilitySupport = {
|
|
|
1353
1398
|
state: "unknown";
|
|
1354
1399
|
reason?: string;
|
|
1355
1400
|
};
|
|
1401
|
+
/** 机器人在某个会话里的状态,独立于整条连接的能力。 */
|
|
1402
|
+
interface DestinationStatus {
|
|
1403
|
+
role: {
|
|
1404
|
+
state: "known";
|
|
1405
|
+
value: "member" | "admin" | "owner";
|
|
1406
|
+
checkedAt: string;
|
|
1407
|
+
} | {
|
|
1408
|
+
state: "unknown";
|
|
1409
|
+
reason?: string;
|
|
1410
|
+
};
|
|
1411
|
+
/** BN 的当日发送记录,不是平台返回的剩余额度。 */
|
|
1412
|
+
atAllUsage?: {
|
|
1413
|
+
state: "not-recorded" | "used" | "exhausted" | "indeterminate";
|
|
1414
|
+
date: string;
|
|
1415
|
+
timezone: string;
|
|
1416
|
+
source: "bn";
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1356
1419
|
/** 一条连接的能力快照,由这条连接的适配器回答。 */
|
|
1357
1420
|
interface ConnectionCapabilities {
|
|
1421
|
+
/** 额外展示能力;旧适配器未报告时按未知,不用于推断群内权限。 */
|
|
1422
|
+
image?: CapabilitySupport;
|
|
1423
|
+
imageGroup?: CapabilitySupport;
|
|
1424
|
+
forward?: CapabilitySupport;
|
|
1425
|
+
audio?: CapabilitySupport;
|
|
1426
|
+
markdown?: CapabilitySupport;
|
|
1358
1427
|
/**
|
|
1359
1428
|
* 能不能单发 @全体。派发器的 `supportsAtAll` 与订阅抽屉里的 @全体 开关读它;
|
|
1360
1429
|
* 「还不知道」时**照发**(发错只是多一条消息)。
|
|
@@ -1934,7 +2003,7 @@ type ExtensionUpgradeHandler = (upgrade: ExtensionUpgrade) => void;
|
|
|
1934
2003
|
*
|
|
1935
2004
|
* `listAddressCandidates` 与 `connectionAuth` 不对拓展开放(ADR-0024 决策 11),类型里排除,宿主运行时也会摘掉。
|
|
1936
2005
|
*/
|
|
1937
|
-
type PlatformAdapterDef = Simplify<Pick<PlatformAdapter, "probe" | "start" | "stop" | "isAvailable" | "send" | "capabilities" | "probeCapabilities" | "settingsSchema" | "listConnectionCandidates">>;
|
|
2006
|
+
type PlatformAdapterDef = Simplify<Pick<PlatformAdapter, "probe" | "start" | "stop" | "isAvailable" | "send" | "createTestPayload" | "capabilities" | "probeCapabilities" | "settingsSchema" | "listConnectionCandidates">>;
|
|
1938
2007
|
/** 注册完一个平台适配器之后拿到的把手。 */
|
|
1939
2008
|
interface PlatformAdapterHandle {
|
|
1940
2009
|
/** 注销适配器;幂等,调用后不再接收消息,也不再发送。 */
|
|
@@ -2268,4 +2337,4 @@ interface ExtensionDevtoolsContext extends ExtensionContext {
|
|
|
2268
2337
|
*/
|
|
2269
2338
|
mountUrl(): string | undefined;
|
|
2270
2339
|
}
|
|
2271
|
-
export { type AuthState, type CapabilitySupport, type Connection, type ConnectionCandidate, type ConnectionCapabilities, type CreatorCandidate, type CreatorProfileReport, type DeliveryResult, type DestinationRef, type DevInjection, type DevParamField, type DevParamValues, type DevScenarioDef, type DevScenarioDescriptor, type DevScenarioGroup, type DevtoolsProvider, type Disposable, type ExtensionBlock, type ExtensionButton, type ExtensionContext, type ExtensionDevtoolsContext, type ExtensionFetchHandler, type ExtensionI18n, type ExtensionItemView, type ExtensionLinkPreview, type ExtensionLiveDetails, type ExtensionLiveSignalReport, type ExtensionLiveStatusResult, type ExtensionPostReport, type ExtensionRichText, type ExtensionRichTextSegment, type ExtensionSourceContext, type ExtensionTableCell, type ExtensionTableColumn, type ExtensionTone, type ExtensionUpgrade, type ExtensionUpgradeHandler, type ExtensionView, type ExtensionViewSummary, type ExtensionViewText, type ExtensionViewTextSegment, type Failure, type FailureCode, type FeatureKey, type FetchOptions, type Hop, type HopHandler, type HttpClient, type HttpResponse, type Identity, type ImageRef, type InboundGroupMessage, type InboundMeta, type InboundPrivateMessage, type IntegrationContext, type Json, type KeyValueOp, type KeyValueStore, type Logger, type NotificationPayload, type PayloadSegment, type PlatformAdapter, type PlatformAdapterContext, type PlatformAdapterDef, type PlatformAdapterDescriptor, type PlatformAdapterHandle, type PlatformDescriptor, type ProbeResult, type PushTarget, type PushTargetScope, type Result, type SettingsField, type SettingsFieldMeta, type SettingsListField, type SettingsReader, type SettingsScalarField, type SourceAccount, type SourceAuth, type SourceDef, type SourceHandle, type SourceHealth, type SourceSubscriptionView, type SubscriptionCreator, type TextValues, type WebSocketLike, type WebSocketOptions, fail, ok };
|
|
2340
|
+
export { type AuthState, type CapabilitySupport, type Connection, type ConnectionCandidate, type ConnectionCapabilities, type CreatorCandidate, type CreatorProfileReport, type DeliveryResult, type DestinationRef, type DevInjection, type DevParamField, type DevParamValues, type DevScenarioDef, type DevScenarioDescriptor, type DevScenarioGroup, type DevtoolsProvider, type Disposable, type ExtensionBlock, type ExtensionButton, type ExtensionContext, type ExtensionDevtoolsContext, type ExtensionFetchHandler, type ExtensionI18n, type ExtensionItemView, type ExtensionLinkPreview, type ExtensionLiveDetails, type ExtensionLiveSignalReport, type ExtensionLiveStatusResult, type ExtensionPostReport, type ExtensionRichText, type ExtensionRichTextSegment, type ExtensionSourceContext, type ExtensionTableCell, type ExtensionTableColumn, type ExtensionTone, type ExtensionUpgrade, type ExtensionUpgradeHandler, type ExtensionView, type ExtensionViewSummary, type ExtensionViewText, type ExtensionViewTextSegment, type Failure, type FailureCode, type FeatureKey, type FetchOptions, type Hop, type HopHandler, type HttpClient, type HttpResponse, type Identity, type ImageRef, type InboundGroupMessage, type InboundMeta, type InboundPrivateMessage, type IntegrationContext, type Json, type KeyValueOp, type KeyValueStore, type Logger, type NotificationPayload, type PayloadSegment, type PlatformAdapter, type PlatformAdapterContext, type PlatformAdapterDef, type PlatformAdapterDescriptor, type PlatformAdapterHandle, type PlatformDescriptor, type PlatformTestOptions, type ProbeResult, type PushTarget, type PushTargetScope, type Result, type SendTestKind, type SettingsField, type SettingsFieldMeta, type SettingsListField, type SettingsReader, type SettingsScalarField, type SourceAccount, type SourceAuth, type SourceDef, type SourceHandle, type SourceHealth, type SourceSubscriptionView, type SubscriptionCreator, type TextValues, type WebSocketLike, type WebSocketOptions, fail, ok };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bilibili-notify/extension",
|
|
3
3
|
"description": "Public contract and build helpers for bilibili-notify extensions",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/Akokk0/bilibili-notify"
|