keymaster-connect 0.1.3 → 0.1.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/README.md +30 -4
- package/dist/chunk-VVOTW5ZT.js +136 -0
- package/dist/chunk-VVOTW5ZT.js.map +1 -0
- package/dist/{chunk-W2TNWBLP.js → chunk-ZDIFZJYD.js} +4 -4
- package/dist/chunk-ZDIFZJYD.js.map +1 -0
- package/dist/index.d.ts +113 -14
- package/dist/index.js +441 -27
- package/dist/index.js.map +1 -1
- package/dist/protocol-C8z30CKK.d.ts +735 -0
- package/dist/protocol.d.ts +1 -694
- package/dist/protocol.js +1 -1
- package/dist/script.d.ts +58 -0
- package/dist/script.js +253 -0
- package/dist/script.js.map +1 -0
- package/dist/server.d.ts +31 -3
- package/dist/server.js +148 -74
- package/dist/server.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-W2TNWBLP.js.map +0 -1
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
/** Connect wire v1 bidirectional AI tools. Never grants wallet payment/signing authority. */
|
|
2
|
+
|
|
3
|
+
interface AiToolSchema {
|
|
4
|
+
type: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null";
|
|
5
|
+
description?: string;
|
|
6
|
+
properties?: Record<string, AiToolSchema>;
|
|
7
|
+
required?: string[];
|
|
8
|
+
additionalProperties?: boolean;
|
|
9
|
+
items?: AiToolSchema;
|
|
10
|
+
enum?: JSONValue[];
|
|
11
|
+
minimum?: number;
|
|
12
|
+
maximum?: number;
|
|
13
|
+
minLength?: number;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
minItems?: number;
|
|
16
|
+
maxItems?: number;
|
|
17
|
+
}
|
|
18
|
+
interface AiToolDefinition {
|
|
19
|
+
/** Stable within this App, 1–40 ASCII letters/digits/underscores, starting with a letter. */
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
/** Explicit supported JSON Schema subset; unsupported keywords are rejected, not ignored. */
|
|
23
|
+
parameters: AiToolSchema;
|
|
24
|
+
}
|
|
25
|
+
interface AiTool extends AiToolDefinition {
|
|
26
|
+
execute(params: Record<string, JSONValue>, context: {
|
|
27
|
+
signal: AbortSignal;
|
|
28
|
+
}): JSONValue | Promise<JSONValue>;
|
|
29
|
+
}
|
|
30
|
+
interface AiToolsRegistered {
|
|
31
|
+
names: string[];
|
|
32
|
+
}
|
|
33
|
+
declare const AI_TOOLS_MAX_JSON_CHARS = 1000000;
|
|
34
|
+
declare function assertToolJson(value: unknown, depth?: number): asserts value is JSONValue;
|
|
35
|
+
declare function assertToolPayload(value: unknown): asserts value is JSONValue;
|
|
36
|
+
declare function parseToolDefinitions(value: unknown): AiToolDefinition[];
|
|
37
|
+
declare function validateToolArguments(value: unknown, definition: AiToolSchema): asserts value is Record<string, JSONValue>;
|
|
38
|
+
type AiToolMessage = {
|
|
39
|
+
v: 1;
|
|
40
|
+
type: "tools.register";
|
|
41
|
+
bindingId: string;
|
|
42
|
+
id: string;
|
|
43
|
+
tools: AiToolDefinition[];
|
|
44
|
+
} | {
|
|
45
|
+
v: 1;
|
|
46
|
+
type: "tools.registered";
|
|
47
|
+
bindingId: string;
|
|
48
|
+
id: string;
|
|
49
|
+
ok: true;
|
|
50
|
+
names: string[];
|
|
51
|
+
} | {
|
|
52
|
+
v: 1;
|
|
53
|
+
type: "tools.registered";
|
|
54
|
+
bindingId: string;
|
|
55
|
+
id: string;
|
|
56
|
+
ok: false;
|
|
57
|
+
error: string;
|
|
58
|
+
} | {
|
|
59
|
+
v: 1;
|
|
60
|
+
type: "tools.invoke";
|
|
61
|
+
bindingId: string;
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
arguments: Record<string, JSONValue>;
|
|
65
|
+
} | {
|
|
66
|
+
v: 1;
|
|
67
|
+
type: "tools.result";
|
|
68
|
+
bindingId: string;
|
|
69
|
+
id: string;
|
|
70
|
+
ok: true;
|
|
71
|
+
result: JSONValue;
|
|
72
|
+
} | {
|
|
73
|
+
v: 1;
|
|
74
|
+
type: "tools.result";
|
|
75
|
+
bindingId: string;
|
|
76
|
+
id: string;
|
|
77
|
+
ok: false;
|
|
78
|
+
error: string;
|
|
79
|
+
} | {
|
|
80
|
+
v: 1;
|
|
81
|
+
type: "tools.cancel";
|
|
82
|
+
bindingId: string;
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
85
|
+
declare function isAiToolMessage(value: unknown): value is AiToolMessage;
|
|
86
|
+
|
|
87
|
+
/** Connect v1 公开契约。独立于钱包内部执行 DTO、能力框架和持久化。 */
|
|
88
|
+
|
|
89
|
+
/** 身份网络在创建/导入时确定;公钥相同也不能跨网复用业务身份。 */
|
|
90
|
+
type BsvNetwork = "main" | "test";
|
|
91
|
+
interface NetworkIdentity {
|
|
92
|
+
readonly bsvNetwork: BsvNetwork;
|
|
93
|
+
readonly publicKeyHex: string;
|
|
94
|
+
}
|
|
95
|
+
declare function validateBsvNetwork(value: unknown): BsvNetwork;
|
|
96
|
+
declare function validateNetworkIdentity(value: unknown): NetworkIdentity;
|
|
97
|
+
declare function sameNetworkIdentity(left: NetworkIdentity, right: NetworkIdentity): boolean;
|
|
98
|
+
type AppRequirement = "private-key" | "storage";
|
|
99
|
+
interface AppIdentityProofV1 {
|
|
100
|
+
version: 1;
|
|
101
|
+
publisherPublicKey: string;
|
|
102
|
+
app: {
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
requirements: AppRequirement[];
|
|
108
|
+
signature: string;
|
|
109
|
+
}
|
|
110
|
+
interface VerifiedAppIdentity {
|
|
111
|
+
version: 1;
|
|
112
|
+
publisherPublicKeyHex: string;
|
|
113
|
+
appId: string;
|
|
114
|
+
appName: string;
|
|
115
|
+
identityDigestHex: string;
|
|
116
|
+
}
|
|
117
|
+
type AppIdentitySnapshot = VerifiedAppIdentity;
|
|
118
|
+
/** ChannelProtocol/SSP 共用的递归 JSON 值。 */
|
|
119
|
+
type JSONValue = null | boolean | number | string | JSONValue[] | {
|
|
120
|
+
[key: string]: JSONValue;
|
|
121
|
+
};
|
|
122
|
+
interface ChannelPublishParams {
|
|
123
|
+
/** 要发布到的 SSP 精确频道;不允许通配符。 */
|
|
124
|
+
channel: string;
|
|
125
|
+
/** App 自己定义的 JSON 内容;协议标识也应放在这里。 */
|
|
126
|
+
content: JSONValue;
|
|
127
|
+
}
|
|
128
|
+
interface ChannelPublishResult {
|
|
129
|
+
/** 由 Keymaster/ChannelProtocol 生成的消息编号。 */
|
|
130
|
+
messageId: string;
|
|
131
|
+
/**
|
|
132
|
+
* 出站签名明文的精确字节(已签名、未加密);只有私密发布返回。
|
|
133
|
+
* 调用方可把它作为出站证据原样保存,不需要也不允许重新签名。
|
|
134
|
+
*/
|
|
135
|
+
signedMessage?: Uint8Array;
|
|
136
|
+
}
|
|
137
|
+
interface ChannelSubscriptionSetParams {
|
|
138
|
+
/** 替换当前 caller 的完整精确频道集合;空数组表示释放全部订阅。 */
|
|
139
|
+
channels: string[];
|
|
140
|
+
}
|
|
141
|
+
interface ChannelSubscriptionSetResult {
|
|
142
|
+
/** Coordinator 已接受的当前 caller 逻辑期望集合;不代表 Supplier 物理订阅已完成。 */
|
|
143
|
+
channels: string[];
|
|
144
|
+
/**
|
|
145
|
+
* Coordinator/Mux 返回的当前物理状态快照。
|
|
146
|
+
* 旧 runtime 可以省略该字段;当前 Coordinator 会为每个 accepted
|
|
147
|
+
* channel 返回一份权威快照,使新 caller 不必等待下一次状态事件。
|
|
148
|
+
*/
|
|
149
|
+
statuses?: ChannelSubscriptionStatus[];
|
|
150
|
+
}
|
|
151
|
+
/** 当前 caller union 在 Coordinator/SSP 侧的物理订阅阶段。 */
|
|
152
|
+
type ChannelSubscriptionPhase = "idle" | "subscribing" | "subscribed" | "retrying" | "blocked";
|
|
153
|
+
/** 订阅失败的稳定业务错误码;不得把底层异常/堆栈直接暴露给插件。 */
|
|
154
|
+
type ChannelSubscriptionErrorCode = "config" | "connect" | "identity" | "protocol" | "balance" | "unknown_result" | "validation" | "unavailable" | "conflict";
|
|
155
|
+
interface ChannelSubscriptionStatus {
|
|
156
|
+
channel: string;
|
|
157
|
+
phase: ChannelSubscriptionPhase;
|
|
158
|
+
errorCode: ChannelSubscriptionErrorCode | null;
|
|
159
|
+
errorMessage: string | null;
|
|
160
|
+
updatedAtMs: number;
|
|
161
|
+
}
|
|
162
|
+
interface ChannelMessageReceivedEventData {
|
|
163
|
+
/** 实际收到的精确频道。 */
|
|
164
|
+
channel: string;
|
|
165
|
+
/** ChannelProtocol 验签得到的作者压缩公钥 hex。 */
|
|
166
|
+
publisherPublicKeyHex: string;
|
|
167
|
+
/** ChannelProtocol 消息编号。 */
|
|
168
|
+
messageId: string;
|
|
169
|
+
/** 已验签的 App JSON 内容。 */
|
|
170
|
+
content: JSONValue;
|
|
171
|
+
/**
|
|
172
|
+
* 入站私密消息的加密信封精确字节(受信任插件用于原样留证)。
|
|
173
|
+
* 公共消息或旧 Coordinator 可以省略。
|
|
174
|
+
*/
|
|
175
|
+
rawEnvelope?: Uint8Array;
|
|
176
|
+
}
|
|
177
|
+
interface StorageListParams {
|
|
178
|
+
/** 目录前缀。 */
|
|
179
|
+
prefix?: string;
|
|
180
|
+
/** 分页游标。 */
|
|
181
|
+
cursor?: string;
|
|
182
|
+
/** 每页数量。 */
|
|
183
|
+
limit?: number;
|
|
184
|
+
}
|
|
185
|
+
interface StorageListEntry {
|
|
186
|
+
/** Connect 可见的相对路径。 */
|
|
187
|
+
path: string;
|
|
188
|
+
/** 当前目录下的文件名。 */
|
|
189
|
+
name: string;
|
|
190
|
+
/** 文件大小(字节)。 */
|
|
191
|
+
size: number;
|
|
192
|
+
/** 抽象版本标签。 */
|
|
193
|
+
revision?: string;
|
|
194
|
+
/** 最后修改时间。 */
|
|
195
|
+
lastModified?: string;
|
|
196
|
+
}
|
|
197
|
+
interface StorageListResult {
|
|
198
|
+
/** 当前目录前缀。 */
|
|
199
|
+
prefix: string;
|
|
200
|
+
/** 父目录前缀。 */
|
|
201
|
+
parentPrefix: string;
|
|
202
|
+
/** 虚拟目录列表。 */
|
|
203
|
+
directories: Array<{
|
|
204
|
+
path: string;
|
|
205
|
+
name: string;
|
|
206
|
+
}>;
|
|
207
|
+
/** 当前页文件。 */
|
|
208
|
+
files: StorageListEntry[];
|
|
209
|
+
/** 目录 marker 路径。 */
|
|
210
|
+
markerPath?: string;
|
|
211
|
+
/** 下一页游标。 */
|
|
212
|
+
nextCursor?: string;
|
|
213
|
+
}
|
|
214
|
+
interface StorageDirectoryParams {
|
|
215
|
+
/** 目录路径。 */
|
|
216
|
+
path: string;
|
|
217
|
+
/** 是否允许覆盖已有 marker。 */
|
|
218
|
+
overwrite?: boolean;
|
|
219
|
+
}
|
|
220
|
+
interface StorageDirectoryResult {
|
|
221
|
+
/** 目录路径。 */
|
|
222
|
+
path: string;
|
|
223
|
+
/** 是否创建。 */
|
|
224
|
+
created?: boolean;
|
|
225
|
+
/** 是否删除。 */
|
|
226
|
+
deleted?: boolean;
|
|
227
|
+
}
|
|
228
|
+
interface StoragePutParams {
|
|
229
|
+
/** 文件路径。 */
|
|
230
|
+
path: string;
|
|
231
|
+
/** 二进制文件内容。 */
|
|
232
|
+
content: BinaryField;
|
|
233
|
+
/** MIME 类型。 */
|
|
234
|
+
contentType?: string;
|
|
235
|
+
/** 是否覆盖已有对象。 */
|
|
236
|
+
overwrite?: boolean;
|
|
237
|
+
}
|
|
238
|
+
interface StoragePutResult {
|
|
239
|
+
/** 文件路径。 */
|
|
240
|
+
path: string;
|
|
241
|
+
/** 写入大小(字节)。 */
|
|
242
|
+
size: number;
|
|
243
|
+
/** 抽象版本标签。 */
|
|
244
|
+
revision?: string;
|
|
245
|
+
/** 写入时间戳(毫秒)。 */
|
|
246
|
+
updatedAt: number;
|
|
247
|
+
}
|
|
248
|
+
interface StorageGetParams {
|
|
249
|
+
/** 文件路径。 */
|
|
250
|
+
path: string;
|
|
251
|
+
/** 起始偏移(字节)。 */
|
|
252
|
+
offset?: number;
|
|
253
|
+
/** 读取长度(字节)。 */
|
|
254
|
+
length?: number;
|
|
255
|
+
/** 期望的抽象版本标签。 */
|
|
256
|
+
ifMatch?: string;
|
|
257
|
+
}
|
|
258
|
+
interface StorageGetResult {
|
|
259
|
+
/** 文件路径。 */
|
|
260
|
+
path: string;
|
|
261
|
+
/** 二进制内容。 */
|
|
262
|
+
content: BinaryField;
|
|
263
|
+
/** MIME 类型。 */
|
|
264
|
+
contentType?: string;
|
|
265
|
+
/** 实际起始偏移。 */
|
|
266
|
+
offset: number;
|
|
267
|
+
/** 文件总大小(字节)。 */
|
|
268
|
+
totalSize: number;
|
|
269
|
+
/** 是否已读到文件结尾。 */
|
|
270
|
+
eof: boolean;
|
|
271
|
+
/** 抽象版本标签。 */
|
|
272
|
+
revision?: string;
|
|
273
|
+
/** 最后修改时间。 */
|
|
274
|
+
lastModified?: string;
|
|
275
|
+
}
|
|
276
|
+
interface StorageDeleteParams {
|
|
277
|
+
/** 文件路径。 */
|
|
278
|
+
path: string;
|
|
279
|
+
}
|
|
280
|
+
interface StorageDeleteResult {
|
|
281
|
+
/** 文件路径。 */
|
|
282
|
+
path: string;
|
|
283
|
+
/** 固定成功标记。 */
|
|
284
|
+
deleted: true;
|
|
285
|
+
/** 删除时间戳(毫秒)。 */
|
|
286
|
+
updatedAt: number;
|
|
287
|
+
}
|
|
288
|
+
/** K-V 引擎的硬限制;字段名和单位均在此集中定义。 */
|
|
289
|
+
declare const STORAGE_MAX_PAYLOAD_BYTES: number;
|
|
290
|
+
declare const STORAGE_DEFAULT_LIST_LIMIT = 200;
|
|
291
|
+
declare const STORAGE_MAX_LIST_LIMIT = 1000;
|
|
292
|
+
/** libp2p protocol ID;wire 真值来自 MSFile Proxy Wire Messages v1。 */
|
|
293
|
+
declare const MSFILE_PROTOCOL_ID = "/msfile/1.0.0";
|
|
294
|
+
/** Frame / 内容硬上限。与 wire 规范一致,两层共同执行。 */
|
|
295
|
+
declare const MSFILE_MAX_HEADER_BYTES = 65536;
|
|
296
|
+
declare const MSFILE_MAX_SEED_BYTES: number;
|
|
297
|
+
declare const MSFILE_MAX_BLOCK_BYTES: number;
|
|
298
|
+
declare const MSFILE_MAX_CONTENT_BYTES: number;
|
|
299
|
+
declare const MSFILE_MAX_ERROR_MESSAGE_BYTES = 1024;
|
|
300
|
+
declare const MSFILE_BLOCK_SIZE_BYTES: number;
|
|
301
|
+
declare const MSFILE_DIGEST_SIZE_BYTES = 32;
|
|
302
|
+
/** 单个内容对象的最高金额。规范十进制字符串:"0" 表示显式不限。 */
|
|
303
|
+
type MsFileSatoshiAmount = string;
|
|
304
|
+
/** Keymaster 内置本地 BitFS 来源的稳定路由标识。 */
|
|
305
|
+
declare const MSFILE_LOCAL_SOURCE_ID = "local-bitfs";
|
|
306
|
+
/** MSFile 来源类型;本地来源不经过 `/msfile/1.0.0`。 */
|
|
307
|
+
type MsFileSourceKind = "local-bitfs" | "remote-proxy";
|
|
308
|
+
/** 校验 MSFile 来源路由标识;拒绝路径字符和无界文本。 */
|
|
309
|
+
declare function isValidMsFileSourceId(input: unknown): input is string;
|
|
310
|
+
interface MsFileStatParams {
|
|
311
|
+
seedHashHex: string;
|
|
312
|
+
}
|
|
313
|
+
interface MsFileStatAvailableEntry {
|
|
314
|
+
supplierPublicKeyHex: string;
|
|
315
|
+
status: "available";
|
|
316
|
+
recommendedFilename: string;
|
|
317
|
+
/** 十进制字符串形式的 uint64 字节数。 */
|
|
318
|
+
fileSizeBytes: MsFileSatoshiAmount;
|
|
319
|
+
mediaType: string;
|
|
320
|
+
}
|
|
321
|
+
interface MsFileStatAbsentEntry {
|
|
322
|
+
supplierPublicKeyHex: string;
|
|
323
|
+
status: "absent";
|
|
324
|
+
}
|
|
325
|
+
interface MsFileStatDiscoveringEntry {
|
|
326
|
+
supplierPublicKeyHex: string;
|
|
327
|
+
status: "discovering";
|
|
328
|
+
retryAfterMs: number;
|
|
329
|
+
}
|
|
330
|
+
interface MsFileStatQuotedEntry {
|
|
331
|
+
supplierPublicKeyHex: string;
|
|
332
|
+
status: "quoted";
|
|
333
|
+
recommendedFilename: string;
|
|
334
|
+
fileSizeBytes: MsFileSatoshiAmount;
|
|
335
|
+
mediaType: string;
|
|
336
|
+
minSeedPriceSatoshis: MsFileSatoshiAmount;
|
|
337
|
+
maxSeedPriceSatoshis: MsFileSatoshiAmount;
|
|
338
|
+
minFullBlockPriceSatoshis: MsFileSatoshiAmount;
|
|
339
|
+
maxFullBlockPriceSatoshis: MsFileSatoshiAmount;
|
|
340
|
+
}
|
|
341
|
+
interface MsFileStatNetworkErrorEntry {
|
|
342
|
+
supplierPublicKeyHex: string;
|
|
343
|
+
status: "network-error";
|
|
344
|
+
}
|
|
345
|
+
type MsFileSupplierStat = MsFileStatAvailableEntry | MsFileStatAbsentEntry | MsFileStatDiscoveringEntry | MsFileStatQuotedEntry | MsFileStatNetworkErrorEntry;
|
|
346
|
+
/** 远程 Proxy 结果补充来源路由信息后的公共视图。 */ type MsFileRemoteSourceStat<T> = T extends MsFileSupplierStat ? T & {
|
|
347
|
+
sourceId: string; /** 固定为远程 Proxy。 */
|
|
348
|
+
sourceKind: "remote-proxy";
|
|
349
|
+
} : never;
|
|
350
|
+
/** local 结果没有远程供应商公钥,不能用假公钥占位。 */ type MsFileLocalSourceStat<T> = T extends MsFileSupplierStat ? Omit<T, "supplierPublicKeyHex"> & {
|
|
351
|
+
sourceId: typeof MSFILE_LOCAL_SOURCE_ID; /** 固定为本地 BitFS。 */
|
|
352
|
+
sourceKind: "local-bitfs";
|
|
353
|
+
} : never;
|
|
354
|
+
/** 统一 MSFile API 返回的 local/remote 来源状态。 */
|
|
355
|
+
type MsFileSourceStat = MsFileRemoteSourceStat<MsFileSupplierStat> | MsFileLocalSourceStat<MsFileSupplierStat>;
|
|
356
|
+
interface MsFileStatResult {
|
|
357
|
+
seedHashHex: string;
|
|
358
|
+
/** 所有本地与远程来源;本地来源固定排在第一位。 */
|
|
359
|
+
sources: MsFileSourceStat[];
|
|
360
|
+
}
|
|
361
|
+
interface MsFileSeedReadParams {
|
|
362
|
+
/** 要读取的来源路由标识。 */
|
|
363
|
+
sourceId: string;
|
|
364
|
+
seedHashHex: string;
|
|
365
|
+
}
|
|
366
|
+
interface MsFileBlockReadParams {
|
|
367
|
+
/** 要读取的来源路由标识。 */
|
|
368
|
+
sourceId: string;
|
|
369
|
+
/** Block 所属 Seed;remote wire 不发送该字段。 */
|
|
370
|
+
seedHashHex: string;
|
|
371
|
+
blockHashHex: string;
|
|
372
|
+
}
|
|
373
|
+
interface MsFileReadResult {
|
|
374
|
+
contentHashHex: string;
|
|
375
|
+
content: BinaryField;
|
|
376
|
+
}
|
|
377
|
+
interface BinaryField {
|
|
378
|
+
/** 固定 "binary"。缺省 / 其它值一律拒绝。 */
|
|
379
|
+
$type: "binary";
|
|
380
|
+
/** 真实字节;`structured clone` 会原样传过去。 */
|
|
381
|
+
bytes: ArrayBuffer;
|
|
382
|
+
/** 可选的内容类型;密文 / 图片 / 文件等有明确类型时填写。 */
|
|
383
|
+
mime?: string;
|
|
384
|
+
}
|
|
385
|
+
/** 协议版本号;当前固定为 1。 */
|
|
386
|
+
declare const PROTOCOL_VERSION = 1;
|
|
387
|
+
/**
|
|
388
|
+
* 协议错误码。`error.message` 走英文;UI 展示由调用方决定。
|
|
389
|
+
* 错误码集合是稳定可判定的:第三方接入方写 switch 时不会因为新加错误
|
|
390
|
+
* 类型而误把"未识别"分支当作"成功"。
|
|
391
|
+
*
|
|
392
|
+
* 触发语义(施工单 001 收口):
|
|
393
|
+
* - invalid_request 顶层 message 结构 / 字段类型 / aud-iat-exp
|
|
394
|
+
* 规则 / BinaryField 形状不合法;
|
|
395
|
+
* 第一条非法 request 直接被 popup 忽略,
|
|
396
|
+
* 不回 result("情况 B")。
|
|
397
|
+
* - invalid_origin identity.get / intent.sign 的
|
|
398
|
+
* `params.aud !== event.origin`。
|
|
399
|
+
* - user_rejected 用户在确认页或解锁页点"取消"。
|
|
400
|
+
* - active_key_unavailable vault 已 unlocked,但 walletState 没有 ready
|
|
401
|
+
* active key("情况 D")。
|
|
402
|
+
* - decrypt_failed cipher.decrypt 失败;origin 不匹配 / nonce
|
|
403
|
+
* 错误 / 密文被篡改 / 内层结构不合法,V1
|
|
404
|
+
* 统一为这一种错误。
|
|
405
|
+
* - internal_error 兜底:用户可见但不属于以上分类的失败。
|
|
406
|
+
*
|
|
407
|
+
* 注意:V1 **不**对外暴露 `wallet_locked` 错误码。locked 态在 popup 内
|
|
408
|
+
* 直接走解锁页("情况 C"),用户取消解锁统一回 `user_rejected`。任何
|
|
409
|
+
* "locked 时直接拒绝"的中间态都不属于 V1 公开语义。
|
|
410
|
+
*/
|
|
411
|
+
type ProtocolErrorCode =
|
|
412
|
+
/** Transport authority was revoked or belongs to another wallet/Worker generation. */
|
|
413
|
+
"connection_expired" | "authorization_expired" | "invalid_request" | "invalid_origin" | "user_rejected" | "active_key_unavailable" | "decrypt_failed"
|
|
414
|
+
/**
|
|
415
|
+
* 请求资产与连接绑定的钱包网络不一致;accept 阶段拒绝,不进入业务执行。
|
|
416
|
+
*/
|
|
417
|
+
| "asset_not_enabled"
|
|
418
|
+
/** Connect v1 明确排除的方法族(新费用池签名等)。 */
|
|
419
|
+
| "unsupported_scope"
|
|
420
|
+
/** 通用支付需要已验证 App 身份(publisher 是归属唯一基准)。 */
|
|
421
|
+
| "identity_required"
|
|
422
|
+
/** 当前硬件后端缺少 Connect 支付所需的受信展示/结构检查。 */
|
|
423
|
+
| "hardware_connect_payment_unsupported" | "payment_not_found"
|
|
424
|
+
/** Too many non-terminal Connect payment responsibilities. */
|
|
425
|
+
| "payment_pending_limit"
|
|
426
|
+
/** Same stable payment key with different frozen facts. */
|
|
427
|
+
| "id_conflict" | "storage_not_configured" | "storage_unavailable" | "storage_invalid_path" | "storage_not_found" | "storage_conflict" | "storage_forbidden" | "storage_limit_exceeded" | "storage_provider_error" | "storage_identity_required" | "msfile_not_configured" | "msfile_unavailable" | "msfile_identity_required" | "msfile_supplier_not_found" | "msfile_supplier_disabled" | "msfile_invalid_hash" | "msfile_price_limit_exceeded" | "msfile_integrity_error" | "msfile_content_not_found" | "msfile_rate_limited" | "msfile_supplier_error" | "msfile_transport_error" | "msfile_protocol_error" | "internal_error";
|
|
428
|
+
interface ProtocolError {
|
|
429
|
+
code: ProtocolErrorCode;
|
|
430
|
+
message: string;
|
|
431
|
+
}
|
|
432
|
+
interface ProtocolReadyMessage {
|
|
433
|
+
v: typeof PROTOCOL_VERSION;
|
|
434
|
+
type: "ready";
|
|
435
|
+
}
|
|
436
|
+
interface ProtocolClosingMessage {
|
|
437
|
+
v: typeof PROTOCOL_VERSION;
|
|
438
|
+
type: "closing";
|
|
439
|
+
}
|
|
440
|
+
interface ProtocolCancelMessage {
|
|
441
|
+
/** Present for cancellation of an already-bound business request. */
|
|
442
|
+
bindingId?: string;
|
|
443
|
+
v: typeof PROTOCOL_VERSION;
|
|
444
|
+
type: "cancel";
|
|
445
|
+
/** 要取消的原 `request.id`。 */
|
|
446
|
+
id: string;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* 协议对外 event 名常量集合(server-pushed 事件)。
|
|
450
|
+
*
|
|
451
|
+
* 设计缘由:
|
|
452
|
+
* - `channel.message_received` 是已验签的 Channel 公开消息,只发送给
|
|
453
|
+
* 当前 session 已精确订阅的频道;
|
|
454
|
+
*/
|
|
455
|
+
type ProtocolEventName = "channel.message_received";
|
|
456
|
+
interface IdentityGetParams {
|
|
457
|
+
/** 目标站点 origin;必须等于 `event.origin`,否则拒绝。 */
|
|
458
|
+
aud: string;
|
|
459
|
+
/** 签发时间(unix seconds)。 */
|
|
460
|
+
iat: number;
|
|
461
|
+
/** 过期时间(unix seconds);必须严格大于 iat。 */
|
|
462
|
+
exp: number;
|
|
463
|
+
/** 人类可读确认文案。 */
|
|
464
|
+
text: string;
|
|
465
|
+
/**
|
|
466
|
+
* 请求索要的 claim 名列表。
|
|
467
|
+
* - Keymaster 只返回请求里明确列出且当前本地有真值来源的 claim;
|
|
468
|
+
* - 不存在的 claim 直接省略,不报错。
|
|
469
|
+
*/
|
|
470
|
+
claims?: string[];
|
|
471
|
+
}
|
|
472
|
+
/** identity.get 解析后的 claim 真值。 */
|
|
473
|
+
type ResolvedClaimValue = string | number | boolean | null | BinaryField | ResolvedClaimValue[] | {
|
|
474
|
+
[key: string]: ResolvedClaimValue;
|
|
475
|
+
};
|
|
476
|
+
interface IdentityGetResult {
|
|
477
|
+
/** Identity 信封最终真值字节(Deterministic CBOR)。 */
|
|
478
|
+
identityEnvelope: BinaryField;
|
|
479
|
+
/** 签名(compact 64-byte secp256k1)。 */
|
|
480
|
+
signature: BinaryField;
|
|
481
|
+
/** 签名主体公钥(33-byte compressed)。 */
|
|
482
|
+
subject: {
|
|
483
|
+
publicKey: BinaryField;
|
|
484
|
+
};
|
|
485
|
+
/** Keymaster 本次实际返回给调用方的 claim 真值。 */
|
|
486
|
+
resolvedClaims: Record<string, ResolvedClaimValue>;
|
|
487
|
+
}
|
|
488
|
+
interface IntentSignParams {
|
|
489
|
+
/** 目标站点 origin;必须等于 `event.origin`,否则拒绝。 */
|
|
490
|
+
aud: string;
|
|
491
|
+
/** 签发时间(unix seconds)。 */
|
|
492
|
+
iat: number;
|
|
493
|
+
/** 过期时间(unix seconds);必须严格大于 iat。 */
|
|
494
|
+
exp: number;
|
|
495
|
+
/** 人类可读确认文案。 */
|
|
496
|
+
text: string;
|
|
497
|
+
/** 调用方自定义的内容类型。 */
|
|
498
|
+
contentType: string;
|
|
499
|
+
/** 调用方准备好的最终二进制内容。允许为空字节。 */
|
|
500
|
+
content: BinaryField;
|
|
501
|
+
}
|
|
502
|
+
interface IntentSignResult {
|
|
503
|
+
/** 签名信封最终真值字节(Deterministic CBOR)。 */
|
|
504
|
+
signedEnvelope: BinaryField;
|
|
505
|
+
/** 签名(compact 64-byte secp256k1)。 */
|
|
506
|
+
signature: BinaryField;
|
|
507
|
+
}
|
|
508
|
+
interface CipherEncryptParams {
|
|
509
|
+
/** 人类可读确认文案。 */
|
|
510
|
+
text: string;
|
|
511
|
+
/** 调用方自定义的内容类型;与 contentBytes 一起进入密文内层结构。 */
|
|
512
|
+
contentType: string;
|
|
513
|
+
/** 业务字节本体。 */
|
|
514
|
+
content: BinaryField;
|
|
515
|
+
}
|
|
516
|
+
interface CipherEncryptResult {
|
|
517
|
+
/** 本次加密随机生成的 12 字节 nonce。 */
|
|
518
|
+
nonce: BinaryField;
|
|
519
|
+
/** AES-GCM 密文字节(含认证 tag)。 */
|
|
520
|
+
cipherbytes: BinaryField;
|
|
521
|
+
}
|
|
522
|
+
interface CipherDecryptParams {
|
|
523
|
+
/** 人类可读确认文案。 */
|
|
524
|
+
text: string;
|
|
525
|
+
/** 加密时保存的 12 字节 nonce。 */
|
|
526
|
+
nonce: BinaryField;
|
|
527
|
+
/** 加密时保存的密文字节。 */
|
|
528
|
+
cipherbytes: BinaryField;
|
|
529
|
+
}
|
|
530
|
+
interface CipherDecryptResult {
|
|
531
|
+
/** 密文内层结构里的 contentType。 */
|
|
532
|
+
contentType: string;
|
|
533
|
+
/** 还原后的业务字节。 */
|
|
534
|
+
content: BinaryField;
|
|
535
|
+
}
|
|
536
|
+
type P2pkhTransferAssetId = "bsv-mainnet" | "bsv-testnet";
|
|
537
|
+
/** Connect v1 输出支付:业务输出数组,顺序即链上顺序。 */
|
|
538
|
+
interface PaymentOutput {
|
|
539
|
+
/** 聪,允许 0(数据输出)。必须为非负安全整数。 */
|
|
540
|
+
amount: number;
|
|
541
|
+
/** locking script hex;偶数长度 hex,允许空字符串(零长度锁定脚本)。 */
|
|
542
|
+
script: string;
|
|
543
|
+
}
|
|
544
|
+
type ConnectPaymentStatus = "pending" | "not_signed" | "signed_not_dispatched" | "unknown" | "failed" | "accepted" | "already_known";
|
|
545
|
+
interface PaymentPayParams {
|
|
546
|
+
/** 稳定幂等身份,1–128 字符。 */
|
|
547
|
+
clientRequestId: string;
|
|
548
|
+
/** 业务输出;非空,顺序即链上顺序,找零由钱包追加。 */
|
|
549
|
+
outputs: PaymentOutput[];
|
|
550
|
+
}
|
|
551
|
+
interface PaymentReleaseSummary {
|
|
552
|
+
/** Historical amount safely released, NOT the current wallet balance. */
|
|
553
|
+
releasedSatoshis: string;
|
|
554
|
+
releasedInputCount: number;
|
|
555
|
+
spentInputCount: number;
|
|
556
|
+
heldInputCount: number;
|
|
557
|
+
}
|
|
558
|
+
interface PaymentPayResult {
|
|
559
|
+
paymentId: string;
|
|
560
|
+
clientRequestId: string;
|
|
561
|
+
status: ConnectPaymentStatus;
|
|
562
|
+
assetId: P2pkhTransferAssetId;
|
|
563
|
+
/** 只有 accepted/already_known 才有 canonical txid。 */
|
|
564
|
+
txid?: string;
|
|
565
|
+
feeSatoshis?: number;
|
|
566
|
+
changeSatoshis?: number;
|
|
567
|
+
approval?: "automatic" | "manual" | "unknown";
|
|
568
|
+
/** 稳定原因码;不包含签名/交易原文。 */
|
|
569
|
+
reason?: string;
|
|
570
|
+
release?: PaymentReleaseSummary;
|
|
571
|
+
}
|
|
572
|
+
interface PaymentStatusParams {
|
|
573
|
+
clientRequestId: string;
|
|
574
|
+
}
|
|
575
|
+
type PaymentStatusResult = PaymentPayResult;
|
|
576
|
+
interface ConnectLoginParams {
|
|
577
|
+
/** 人类可读确认文案。 */
|
|
578
|
+
text: string;
|
|
579
|
+
/**
|
|
580
|
+
* 请求索要的 claim 名列表(与 `identity.get` 同语义)。
|
|
581
|
+
* 缺省 = `[]`,不返回任何 claim;通常 caller 想获取 profile.* 时必须显式列出。
|
|
582
|
+
*/
|
|
583
|
+
claims?: string[];
|
|
584
|
+
/** 发布者签名的 caller identity proof;缺省时建立无 storage 的普通 session。 */
|
|
585
|
+
appIdentity?: AppIdentityProofV1;
|
|
586
|
+
}
|
|
587
|
+
interface ConnectLoginResult {
|
|
588
|
+
/** 不透明恢复凭据,绑定原钱包、应用和精确来源;不得写入日志或 URL。 */
|
|
589
|
+
authorizationId: string;
|
|
590
|
+
networkIdentity: NetworkIdentity;
|
|
591
|
+
/** 本次 login 时一次解析的 claims 真值快照。 */
|
|
592
|
+
resolvedClaims: Record<string, ResolvedClaimValue>;
|
|
593
|
+
/** 本次解析时间(unix milliseconds)。 */
|
|
594
|
+
resolvedAt: number;
|
|
595
|
+
appIdentity?: AppIdentitySnapshot;
|
|
596
|
+
}
|
|
597
|
+
interface ConnectResumeParams {
|
|
598
|
+
/** 本地数据重置后重新验证已有发行人签名 proof。 */
|
|
599
|
+
appIdentity?: AppIdentityProofV1;
|
|
600
|
+
}
|
|
601
|
+
interface ConnectResumeResult {
|
|
602
|
+
authorizationId: string;
|
|
603
|
+
networkIdentity: NetworkIdentity;
|
|
604
|
+
resolvedClaims: Record<string, ResolvedClaimValue>;
|
|
605
|
+
/**
|
|
606
|
+
* 解析时间——本次 resume 时间戳,**不**是 connect.login 时的快照时间。
|
|
607
|
+
* 给 caller 用来做"是否要重新登录"的客户端超时策略。
|
|
608
|
+
*/
|
|
609
|
+
resolvedAt: number;
|
|
610
|
+
appIdentity?: AppIdentitySnapshot;
|
|
611
|
+
}
|
|
612
|
+
interface ConnectLogoutParams extends Record<string, never> {
|
|
613
|
+
}
|
|
614
|
+
interface ConnectLogoutResult {
|
|
615
|
+
/** 吊销时间(unix milliseconds)。 */
|
|
616
|
+
revokedAt: number;
|
|
617
|
+
}
|
|
618
|
+
interface ConnectLaunchParams {
|
|
619
|
+
/** 由 launcher 写入 client app 启动 URL 的 launchToken。一次性消费。 */
|
|
620
|
+
launchToken: string;
|
|
621
|
+
/** 与 launcher 预建 session 绑定的完整签名 proof。 */
|
|
622
|
+
appIdentity: AppIdentityProofV1;
|
|
623
|
+
}
|
|
624
|
+
interface ConnectLaunchResult {
|
|
625
|
+
authorizationId: string;
|
|
626
|
+
networkIdentity: NetworkIdentity;
|
|
627
|
+
resolvedClaims: Record<string, ResolvedClaimValue>;
|
|
628
|
+
resolvedAt: number;
|
|
629
|
+
appIdentity?: AppIdentitySnapshot;
|
|
630
|
+
}
|
|
631
|
+
/** 协议方法名常量集合。 */
|
|
632
|
+
declare const PROTOCOL_METHODS: readonly ["identity.get", "intent.sign", "cipher.encrypt", "cipher.decrypt", "payment.pay", "payment.status", "connect.login", "connect.resume", "connect.logout", "connect.launch", "channel.publish", "channel.subscription_set", "storage.list", "storage.directory.create", "storage.directory.delete", "storage.put", "storage.get", "storage.encrypted.put", "storage.encrypted.get", "storage.delete", "msfile.stat", "msfile.seed.read", "msfile.block.read"];
|
|
633
|
+
type ProtocolMethod = (typeof PROTOCOL_METHODS)[number];
|
|
634
|
+
/**
|
|
635
|
+
* 方法 -> 请求参数类型 的映射。`MethodParams<M>` 是计算出的参数类型。
|
|
636
|
+
* 业务代码里直接 `MethodParams<"identity.get">` 等价于 `IdentityGetParams`。
|
|
637
|
+
*/
|
|
638
|
+
interface MethodParamsMap {
|
|
639
|
+
"identity.get": IdentityGetParams;
|
|
640
|
+
"intent.sign": IntentSignParams;
|
|
641
|
+
"cipher.encrypt": CipherEncryptParams;
|
|
642
|
+
"cipher.decrypt": CipherDecryptParams;
|
|
643
|
+
"payment.pay": PaymentPayParams;
|
|
644
|
+
"payment.status": PaymentStatusParams;
|
|
645
|
+
"connect.login": ConnectLoginParams;
|
|
646
|
+
"connect.resume": ConnectResumeParams;
|
|
647
|
+
"connect.logout": ConnectLogoutParams;
|
|
648
|
+
"connect.launch": ConnectLaunchParams;
|
|
649
|
+
"channel.publish": ChannelPublishParams;
|
|
650
|
+
"channel.subscription_set": ChannelSubscriptionSetParams;
|
|
651
|
+
"storage.list": StorageListParams;
|
|
652
|
+
"storage.directory.create": StorageDirectoryParams;
|
|
653
|
+
"storage.directory.delete": StorageDirectoryParams;
|
|
654
|
+
"storage.put": StoragePutParams;
|
|
655
|
+
"storage.encrypted.put": StoragePutParams;
|
|
656
|
+
"storage.get": StorageGetParams;
|
|
657
|
+
"storage.encrypted.get": StorageGetParams;
|
|
658
|
+
"storage.delete": StorageDeleteParams;
|
|
659
|
+
"msfile.stat": MsFileStatParams;
|
|
660
|
+
"msfile.seed.read": MsFileSeedReadParams;
|
|
661
|
+
"msfile.block.read": MsFileBlockReadParams;
|
|
662
|
+
}
|
|
663
|
+
interface MethodResultMap {
|
|
664
|
+
"identity.get": IdentityGetResult;
|
|
665
|
+
"intent.sign": IntentSignResult;
|
|
666
|
+
"cipher.encrypt": CipherEncryptResult;
|
|
667
|
+
"cipher.decrypt": CipherDecryptResult;
|
|
668
|
+
"payment.pay": PaymentPayResult;
|
|
669
|
+
"payment.status": PaymentStatusResult;
|
|
670
|
+
"connect.login": ConnectLoginResult;
|
|
671
|
+
"connect.resume": ConnectResumeResult;
|
|
672
|
+
"connect.logout": ConnectLogoutResult;
|
|
673
|
+
"connect.launch": ConnectLaunchResult;
|
|
674
|
+
"channel.publish": ChannelPublishResult;
|
|
675
|
+
"channel.subscription_set": ChannelSubscriptionSetResult;
|
|
676
|
+
"storage.list": StorageListResult;
|
|
677
|
+
"storage.directory.create": StorageDirectoryResult;
|
|
678
|
+
"storage.directory.delete": StorageDirectoryResult;
|
|
679
|
+
"storage.put": StoragePutResult;
|
|
680
|
+
"storage.encrypted.put": StoragePutResult;
|
|
681
|
+
"storage.get": StorageGetResult;
|
|
682
|
+
"storage.encrypted.get": StorageGetResult;
|
|
683
|
+
"storage.delete": StorageDeleteResult;
|
|
684
|
+
"msfile.stat": MsFileStatResult;
|
|
685
|
+
"msfile.seed.read": MsFileReadResult;
|
|
686
|
+
"msfile.block.read": MsFileReadResult;
|
|
687
|
+
}
|
|
688
|
+
type MethodParams<M extends ProtocolMethod> = M extends ProtocolMethod ? keyof MethodParamsMap[M] extends never ? Record<string, never> : MethodParamsMap[M] : never;
|
|
689
|
+
type MethodResult<M extends ProtocolMethod = ProtocolMethod> = MethodResultMap[M];
|
|
690
|
+
type ProtocolEventPayload = {
|
|
691
|
+
v: typeof PROTOCOL_VERSION;
|
|
692
|
+
type: "event";
|
|
693
|
+
event: "channel.message_received";
|
|
694
|
+
data: ChannelMessageReceivedEventData;
|
|
695
|
+
};
|
|
696
|
+
type ProtocolEventMessage = ProtocolEventPayload & {
|
|
697
|
+
networkIdentity: NetworkIdentity;
|
|
698
|
+
bindingId: string;
|
|
699
|
+
};
|
|
700
|
+
/** 暂停恢复控制,不携带钱包选择参数,也不是业务请求重放。 */
|
|
701
|
+
interface ProtocolReconnectMessage {
|
|
702
|
+
v: typeof PROTOCOL_VERSION;
|
|
703
|
+
type: "reconnect";
|
|
704
|
+
id: string;
|
|
705
|
+
authorizationId: string;
|
|
706
|
+
bindingId?: string;
|
|
707
|
+
/** 刷新恢复时提交的当前入口 proof;后台心跳可省略,宿主按原授权核对。 */
|
|
708
|
+
appIdentity?: AppIdentityProofV1;
|
|
709
|
+
}
|
|
710
|
+
interface ProtocolRequestMessage<M extends ProtocolMethod = ProtocolMethod> {
|
|
711
|
+
v: typeof PROTOCOL_VERSION;
|
|
712
|
+
type: "request";
|
|
713
|
+
id: string;
|
|
714
|
+
method: M;
|
|
715
|
+
params: MethodParams<M>;
|
|
716
|
+
bindingId?: string;
|
|
717
|
+
}
|
|
718
|
+
type ProtocolResultMessage = {
|
|
719
|
+
v: typeof PROTOCOL_VERSION;
|
|
720
|
+
type: "result";
|
|
721
|
+
id: string;
|
|
722
|
+
ok: true;
|
|
723
|
+
result: MethodResult;
|
|
724
|
+
networkIdentity: NetworkIdentity;
|
|
725
|
+
bindingId: string;
|
|
726
|
+
} | {
|
|
727
|
+
v: typeof PROTOCOL_VERSION;
|
|
728
|
+
type: "result";
|
|
729
|
+
id: string;
|
|
730
|
+
ok: false;
|
|
731
|
+
error: ProtocolError;
|
|
732
|
+
networkIdentity?: NetworkIdentity;
|
|
733
|
+
};
|
|
734
|
+
|
|
735
|
+
export { type AppRequirement as $, type AiTool as A, type BinaryField as B, type ConnectLoginParams as C, type StorageDirectoryResult as D, type StoragePutParams as E, type StoragePutResult as F, type StorageGetParams as G, type StorageGetResult as H, type IdentityGetParams as I, type StorageDeleteParams as J, type StorageDeleteResult as K, type MsFileStatParams as L, type MethodParams as M, type NetworkIdentity as N, type MsFileStatResult as O, type ProtocolEventMessage as P, type MsFileSeedReadParams as Q, type MsFileReadResult as R, type StorageListParams as S, type MsFileBlockReadParams as T, type ProtocolErrorCode as U, AI_TOOLS_MAX_JSON_CHARS as V, type AiToolDefinition as W, type AiToolMessage as X, type AiToolSchema as Y, type AppIdentityProofV1 as Z, type AppIdentitySnapshot as _, type AiToolsRegistered as a, type BsvNetwork as a0, type ChannelMessageReceivedEventData as a1, type ChannelSubscriptionErrorCode as a2, type ChannelSubscriptionPhase as a3, type ChannelSubscriptionStatus as a4, type ConnectLogoutParams as a5, type ConnectPaymentStatus as a6, type JSONValue as a7, MSFILE_BLOCK_SIZE_BYTES as a8, MSFILE_DIGEST_SIZE_BYTES as a9, type ProtocolClosingMessage as aA, type ProtocolError as aB, type ProtocolEventName as aC, type ProtocolEventPayload as aD, type ProtocolReadyMessage as aE, type ProtocolReconnectMessage as aF, type ProtocolRequestMessage as aG, type ProtocolResultMessage as aH, type ResolvedClaimValue as aI, STORAGE_DEFAULT_LIST_LIMIT as aJ, STORAGE_MAX_LIST_LIMIT as aK, STORAGE_MAX_PAYLOAD_BYTES as aL, type StorageListEntry as aM, type VerifiedAppIdentity as aN, assertToolJson as aO, assertToolPayload as aP, isAiToolMessage as aQ, isValidMsFileSourceId as aR, parseToolDefinitions as aS, sameNetworkIdentity as aT, validateBsvNetwork as aU, validateNetworkIdentity as aV, validateToolArguments as aW, MSFILE_LOCAL_SOURCE_ID as aa, MSFILE_MAX_BLOCK_BYTES as ab, MSFILE_MAX_CONTENT_BYTES as ac, MSFILE_MAX_ERROR_MESSAGE_BYTES as ad, MSFILE_MAX_HEADER_BYTES as ae, MSFILE_MAX_SEED_BYTES as af, MSFILE_PROTOCOL_ID as ag, type MethodParamsMap as ah, type MethodResultMap as ai, type MsFileLocalSourceStat as aj, type MsFileRemoteSourceStat as ak, type MsFileSatoshiAmount as al, type MsFileSourceKind as am, type MsFileSourceStat as an, type MsFileStatAbsentEntry as ao, type MsFileStatAvailableEntry as ap, type MsFileStatDiscoveringEntry as aq, type MsFileStatNetworkErrorEntry as ar, type MsFileStatQuotedEntry as as, type MsFileSupplierStat as at, type P2pkhTransferAssetId as au, PROTOCOL_METHODS as av, PROTOCOL_VERSION as aw, type PaymentOutput as ax, type PaymentReleaseSummary as ay, type ProtocolCancelMessage as az, type ProtocolMethod as b, type MethodResult as c, type ConnectLoginResult as d, type ConnectResumeParams as e, type ConnectResumeResult as f, type ConnectLogoutResult as g, type ConnectLaunchParams as h, type ConnectLaunchResult as i, type IdentityGetResult as j, type IntentSignParams as k, type IntentSignResult as l, type CipherEncryptParams as m, type CipherEncryptResult as n, type CipherDecryptParams as o, type CipherDecryptResult as p, type PaymentPayParams as q, type PaymentPayResult as r, type PaymentStatusParams as s, type PaymentStatusResult as t, type ChannelPublishParams as u, type ChannelPublishResult as v, type ChannelSubscriptionSetParams as w, type ChannelSubscriptionSetResult as x, type StorageListResult as y, type StorageDirectoryParams as z };
|