@firmer/mesh 0.0.7 → 0.0.9
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/dist/mesh.js +7576 -6497
- package/dist/mesh.umd.cjs +8 -8
- package/dist/psi/builtin.d.ts +10 -11
- package/dist/psi/cache.d.ts +15 -5
- package/dist/psi/cipher.d.ts +27 -24
- package/dist/psi/cluster.d.ts +2 -0
- package/dist/psi/commerce.d.ts +4 -0
- package/dist/psi/cryptor.d.ts +5 -0
- package/dist/psi/daler.d.ts +42 -20
- package/dist/psi/datahouse.d.ts +13 -8
- package/dist/psi/devops.d.ts +25 -8
- package/dist/psi/endpoint.d.ts +2 -2
- package/dist/psi/firewall.d.ts +8 -4
- package/dist/psi/kms.d.ts +40 -6
- package/dist/psi/kv.d.ts +6 -1
- package/dist/psi/licenser.d.ts +5 -0
- package/dist/psi/locker.d.ts +4 -0
- package/dist/psi/network.d.ts +16 -5
- package/dist/psi/pipeline.d.ts +7 -9
- package/dist/psi/publisher.d.ts +4 -2
- package/dist/psi/registry.d.ts +14 -5
- package/dist/psi/subscriber.d.ts +1 -3
- package/dist/psi/tokenizer.d.ts +7 -2
- package/dist/psi/vm.d.ts +6 -0
- package/dist/tool/addrs.d.ts +2 -0
- package/dist/tool/tool.d.ts +4 -2
- package/dist/types/builtin.d.ts +28 -0
- package/dist/types/cipher.d.ts +27 -0
- package/dist/types/daler.d.ts +97 -8
- package/dist/types/devops.d.ts +36 -22
- package/dist/types/document.d.ts +11 -0
- package/dist/types/entity.d.ts +15 -0
- package/dist/types/environ.d.ts +15 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/firewall.d.ts +30 -1
- package/dist/types/keys.d.ts +92 -0
- package/dist/types/license.d.ts +26 -0
- package/dist/types/oauth2.d.ts +36 -0
- package/dist/types/payload.d.ts +6 -0
- package/dist/types/principal.d.ts +8 -0
- package/dist/types/registration.d.ts +97 -0
- package/dist/types/route.d.ts +52 -0
- package/dist/types/savepoint.d.ts +10 -0
- package/dist/types/schema.d.ts +48 -0
- package/dist/types/script.d.ts +14 -0
- package/dist/types/status.d.ts +3 -0
- package/dist/types/transport.d.ts +18 -0
- package/dist/types/version.d.ts +2 -0
- package/dist/types/workflow.d.ts +43 -0
- package/package.json +7 -7
package/dist/psi/network.d.ts
CHANGED
|
@@ -3,51 +3,62 @@ import { Environ, Page, Paging, Route, Versions } from '../types';
|
|
|
3
3
|
export declare abstract class Network {
|
|
4
4
|
/**
|
|
5
5
|
* Environ Get the meth network environment fixed information.
|
|
6
|
+
* 获取MESH网络中的当前节点环境信息.
|
|
6
7
|
*/
|
|
7
8
|
environ(ctx?: Context): Promise<Environ>;
|
|
8
9
|
/**
|
|
9
10
|
* Accessible Check the mesh network is accessible.
|
|
11
|
+
* 组网信息网络可达性检测.
|
|
10
12
|
*/
|
|
11
13
|
accessible(route: Route, ctx?: Context): Promise<boolean>;
|
|
12
14
|
/**
|
|
13
15
|
* Refresh the routes to mesh network.
|
|
16
|
+
* 更新组网信息,若状态为删除态会直接物理删除.
|
|
14
17
|
*/
|
|
15
18
|
refresh(routes: Route[], ctx?: Context): Promise<void>;
|
|
16
19
|
/**
|
|
17
20
|
* Route the network edge route.
|
|
21
|
+
* 获取当前节点到目标节点到组网信息.
|
|
18
22
|
*/
|
|
19
23
|
route(mdc: string, ctx?: Context): Promise<Route>;
|
|
20
24
|
/**
|
|
21
25
|
* Routes the network edge routes.
|
|
26
|
+
* 获取所有的组网信息.
|
|
22
27
|
*/
|
|
23
28
|
routes(ctx?: Context): Promise<Route[]>;
|
|
24
29
|
/**
|
|
25
|
-
* Disable the network
|
|
30
|
+
* Disable the network.
|
|
31
|
+
* 禁用当前节点到目标节点的所有网络通信.
|
|
26
32
|
*/
|
|
27
33
|
disable(mdc: string, ctx?: Context): Promise<void>;
|
|
28
34
|
/**
|
|
29
35
|
* Enable the network
|
|
36
|
+
* 启用当前节点到目标节点的所有网络通信.
|
|
30
37
|
*/
|
|
31
38
|
enable(mdc: string, ctx?: Context): Promise<void>;
|
|
32
39
|
/**
|
|
33
|
-
* Index the network
|
|
40
|
+
* Index the network routes.
|
|
41
|
+
* 分页检索组网列表.
|
|
34
42
|
*/
|
|
35
43
|
index(index: Paging, ctx?: Context): Promise<Page<Route>>;
|
|
36
44
|
/**
|
|
37
|
-
* Version
|
|
38
|
-
*
|
|
45
|
+
* Version Network environment version.
|
|
46
|
+
* 获取对应节点的版本信息.
|
|
39
47
|
*/
|
|
40
48
|
version(mdc: string, ctx?: Context): Promise<Versions>;
|
|
41
49
|
/**
|
|
42
50
|
* Exports the weave certificate.
|
|
51
|
+
* 导出当前节点到目标节点网络的证书信息.
|
|
43
52
|
*/
|
|
44
53
|
exports(mdc: string, ctx?: Context): Promise<string>;
|
|
45
54
|
/**
|
|
46
55
|
* Imports the weave certificate.
|
|
56
|
+
* 导入当前节点到目标节点网络的证书信息.
|
|
47
57
|
*/
|
|
48
|
-
imports(crt: string, ctx?: Context): Promise<void>;
|
|
58
|
+
imports(mdc: string, crt: string, ctx?: Context): Promise<void>;
|
|
49
59
|
/**
|
|
50
60
|
* Remove the network route.
|
|
61
|
+
* 删除组网信息.
|
|
51
62
|
*/
|
|
52
63
|
remove(sid: string, did: string, ctx?: Context): Promise<void>;
|
|
53
64
|
}
|
package/dist/psi/pipeline.d.ts
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { Context } from './context';
|
|
2
2
|
export declare abstract class Pipeline {
|
|
3
3
|
/**
|
|
4
|
-
* Peek
|
|
5
|
-
*
|
|
6
|
-
* or returns None if this queue is empty.
|
|
4
|
+
* Peek Retrieves, but does not remove, the head of this queue, or returns None if this queue is empty.
|
|
5
|
+
* 从管道中根据主题取队头值.
|
|
7
6
|
*/
|
|
8
7
|
peek(topic: string, ctx?: Context): Promise<Uint8Array>;
|
|
9
8
|
/**
|
|
10
|
-
* Pop
|
|
11
|
-
*
|
|
12
|
-
* or returns None if this queue is empty.
|
|
9
|
+
* Pop Retrieves and removes the head of this queue, or returns None if this queue is empty.
|
|
10
|
+
* 从管道中根据主题取队头值.
|
|
13
11
|
*/
|
|
14
12
|
pop(timeout: number, topic: string, ctx?: Context): Promise<Uint8Array>;
|
|
15
13
|
/**
|
|
16
|
-
* Push
|
|
17
|
-
* Inserts the specified element into this queue if it is possible to do
|
|
18
|
-
* so immediately without violating capacity restrictions.
|
|
14
|
+
* Push Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.
|
|
19
15
|
* When using a capacity-restricted queue, this method is generally
|
|
20
16
|
* preferable to add, which can fail to insert an element only
|
|
21
17
|
* by throwing an exception.
|
|
18
|
+
* 从管道中根据主题写队尾值
|
|
22
19
|
*/
|
|
23
20
|
push(payload: Uint8Array, metadata: Record<string, string>, topic: string, ctx?: Context): Promise<void>;
|
|
24
21
|
/**
|
|
25
22
|
* Release the channel session.
|
|
23
|
+
* 释放主题对应管道资源.
|
|
26
24
|
*/
|
|
27
25
|
release(timeout: number, topic: string, ctx?: Context): Promise<void>;
|
|
28
26
|
}
|
package/dist/psi/publisher.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { Context } from './context';
|
|
|
2
2
|
import { Event } from '../types';
|
|
3
3
|
export declare abstract class Publisher {
|
|
4
4
|
/**
|
|
5
|
-
* Publish
|
|
5
|
+
* Publish the envent in queue.
|
|
6
|
+
* 发布事件到消息队列.
|
|
6
7
|
*/
|
|
7
8
|
publish(events: Event[], ctx?: Context): Promise<string[]>;
|
|
8
9
|
/**
|
|
9
|
-
* Broadcast
|
|
10
|
+
* Broadcast the envent in queue.
|
|
11
|
+
* 广播事件到消息队列,会给所有数联网上的组网节点广播.
|
|
10
12
|
*/
|
|
11
13
|
broadcast(events: Event[], ctx?: Context): Promise<string[]>;
|
|
12
14
|
}
|
package/dist/psi/registry.d.ts
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import { Context } from './context';
|
|
2
|
-
import { Registration } from '../types';
|
|
2
|
+
import { Appdata, Registration } from '../types';
|
|
3
3
|
export declare abstract class Registry {
|
|
4
4
|
/**
|
|
5
|
-
* Register
|
|
5
|
+
* Register the metadata into registry.
|
|
6
|
+
* 元数据注册.
|
|
6
7
|
*/
|
|
7
8
|
register(registration: Registration<any>, ctx?: Context): Promise<void>;
|
|
8
9
|
/**
|
|
9
|
-
* Registers
|
|
10
|
+
* Registers the batch metadata into registry.
|
|
11
|
+
* 元数据批量注册.
|
|
10
12
|
*/
|
|
11
13
|
registers(registrations: Registration<any>[], ctx?: Context): Promise<void>;
|
|
12
14
|
/**
|
|
13
|
-
* Unregister
|
|
15
|
+
* Unregister the metadata from registry.
|
|
16
|
+
* 元数据解注册.
|
|
14
17
|
*/
|
|
15
18
|
unregister(registration: Registration<any>, ctx?: Context): Promise<void>;
|
|
16
19
|
/**
|
|
17
|
-
* Export
|
|
20
|
+
* Export the metadata from registry.
|
|
21
|
+
* 元数据导出.
|
|
18
22
|
*/
|
|
19
23
|
export(kind: string, ctx?: Context): Promise<Registration<any>[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Appset export the appset from registry.
|
|
26
|
+
* 应用元数据导出.
|
|
27
|
+
*/
|
|
28
|
+
appset(kind: string, ctx?: Context): Promise<Appdata[]>;
|
|
20
29
|
}
|
package/dist/psi/subscriber.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import { Event } from '../types';
|
|
|
3
3
|
export declare abstract class Subscriber {
|
|
4
4
|
/**
|
|
5
5
|
* Subscribe the event with {@link tech.firmer.mesh.macro.Bindings} or {@link tech.firmer.mesh.macro.Binding}
|
|
6
|
-
*
|
|
7
|
-
* Parameters:
|
|
8
|
-
* event - uniform event payload.
|
|
6
|
+
* 消息订阅服务接口,主要是实现该接口订阅对应的topic-code.
|
|
9
7
|
*/
|
|
10
8
|
subscribe(event: Event, ctx?: Context): Promise<void>;
|
|
11
9
|
}
|
package/dist/psi/tokenizer.d.ts
CHANGED
|
@@ -3,22 +3,27 @@ import { AccessCode, AccessGrant, AccessToken, Captcha, Credential, GrantCode, S
|
|
|
3
3
|
export declare abstract class Tokenizer {
|
|
4
4
|
/**
|
|
5
5
|
* Captcha apply a graphics captcha.
|
|
6
|
+
* 获取验证码.
|
|
6
7
|
*/
|
|
7
8
|
captcha(kind: string, features: Record<string, string>, ctx?: Context): Promise<Captcha>;
|
|
8
9
|
/**
|
|
9
10
|
* Matches a graphics captcha value.
|
|
11
|
+
* 验证码校验.
|
|
10
12
|
*/
|
|
11
13
|
matches(mno: string, value: string, ctx?: Context): Promise<boolean>;
|
|
12
14
|
/**
|
|
13
|
-
* Apply
|
|
15
|
+
* Apply trust authenticate token.
|
|
16
|
+
* 申请信任登录令牌.
|
|
14
17
|
*/
|
|
15
18
|
apply(kind: string, duration: number, ctx?: Context): Promise<string>;
|
|
16
19
|
/**
|
|
17
|
-
* Verify
|
|
20
|
+
* Verify the trust token.
|
|
21
|
+
* 验证信任登录令牌.
|
|
18
22
|
*/
|
|
19
23
|
verify(token: string, ctx?: Context): Promise<boolean>;
|
|
20
24
|
/**
|
|
21
25
|
* Quickauth OAuth2 quick authorize, contains grant code and code authorize.
|
|
26
|
+
* 快速授权,OAuth2多阶段合并为一阶段.
|
|
22
27
|
*/
|
|
23
28
|
quickauth(credential: Credential, ctx?: Context): Promise<AccessToken>;
|
|
24
29
|
/**
|
package/dist/psi/vm.d.ts
CHANGED
|
@@ -3,26 +3,32 @@ import { Page, Paging, Script } from '../types';
|
|
|
3
3
|
export declare abstract class VM {
|
|
4
4
|
/**
|
|
5
5
|
* Compile the script.
|
|
6
|
+
* 编译脚本,编译通即会保存快照.
|
|
6
7
|
*/
|
|
7
8
|
compile(script: Script, ctx?: Context): Promise<string>;
|
|
8
9
|
/**
|
|
9
10
|
* Setup set up the script.
|
|
11
|
+
* 编译安装脚本到运行时中,为发布语意.
|
|
10
12
|
*/
|
|
11
13
|
setup(code: string, version: string, ctx?: Context): Promise<void>;
|
|
12
14
|
/**
|
|
13
15
|
* Remove the script.
|
|
16
|
+
* 删除脚本.
|
|
14
17
|
*/
|
|
15
18
|
remove(code: string, ctx?: Context): Promise<void>;
|
|
16
19
|
/**
|
|
17
20
|
* Describe the script.
|
|
21
|
+
* 获取脚本详情.
|
|
18
22
|
*/
|
|
19
23
|
describe(code: string, ctx?: Context): Promise<Script>;
|
|
20
24
|
/**
|
|
21
25
|
* Exec the script with name.
|
|
26
|
+
* 执行脚本,此处为规则引擎服务化执行接口.
|
|
22
27
|
*/
|
|
23
28
|
exec(code: string, args: Record<string, string>, dft: string, ctx?: Context): Promise<string>;
|
|
24
29
|
/**
|
|
25
30
|
* Index the scripts.
|
|
31
|
+
* 分页检索脚本数据.
|
|
26
32
|
*/
|
|
27
33
|
index(idx: Paging, ctx?: Context): Promise<Page<Script>>;
|
|
28
34
|
}
|
package/dist/tool/addrs.d.ts
CHANGED
package/dist/tool/tool.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Addrs } from './addrs';
|
|
2
|
+
import { Type } from '../macro';
|
|
2
3
|
import { Body, CacheBody, Cause } from '../types';
|
|
3
4
|
declare class Once<T> {
|
|
4
5
|
private value?;
|
|
5
6
|
private readonly fn;
|
|
6
7
|
constructor(fn: () => T);
|
|
7
8
|
get(): T;
|
|
9
|
+
reset(v: T): void;
|
|
8
10
|
}
|
|
9
11
|
export declare class Tool {
|
|
10
12
|
static substring(v: string, begin: number, length: number): string;
|
|
@@ -12,10 +14,10 @@ export declare class Tool {
|
|
|
12
14
|
static anyone(...varg: (string | undefined)[]): string;
|
|
13
15
|
static traceId(): string;
|
|
14
16
|
static spanId(spanId: string, calls: number): string;
|
|
15
|
-
static MESH_ADDRESS: Once<Addrs>;
|
|
17
|
+
static readonly MESH_ADDRESS: Once<Addrs>;
|
|
16
18
|
static newEntity(value: any): Body;
|
|
17
19
|
static newCacheEntity(key: string, value: any, duration: number): CacheBody;
|
|
18
|
-
static readObject<T>(entity: Body): T | null;
|
|
20
|
+
static readObject<T>(entity: Body, k: Type<T>): T | null;
|
|
19
21
|
/**
|
|
20
22
|
* Is the version less than the appointed version.
|
|
21
23
|
*
|
package/dist/types/builtin.d.ts
CHANGED
|
@@ -1,121 +1,149 @@
|
|
|
1
1
|
import { Stacktrace } from '../macro';
|
|
2
2
|
export declare class Paging {
|
|
3
3
|
/**
|
|
4
|
+
* Session ID
|
|
4
5
|
* Session ID
|
|
5
6
|
*/
|
|
6
7
|
sid: string;
|
|
7
8
|
/**
|
|
9
|
+
* Start index
|
|
8
10
|
* Start index
|
|
9
11
|
*/
|
|
10
12
|
index: number;
|
|
11
13
|
/**
|
|
14
|
+
* Start limit
|
|
12
15
|
* Start limit
|
|
13
16
|
*/
|
|
14
17
|
limit: number;
|
|
15
18
|
/**
|
|
19
|
+
* Paging factor
|
|
16
20
|
* Paging factor
|
|
17
21
|
*/
|
|
18
22
|
factor: Record<string, any>;
|
|
19
23
|
/**
|
|
24
|
+
* Sort order
|
|
20
25
|
* Sort order
|
|
21
26
|
*/
|
|
22
27
|
order: string;
|
|
23
28
|
}
|
|
24
29
|
export declare class Page<T> {
|
|
25
30
|
/**
|
|
31
|
+
* Session ID
|
|
26
32
|
* Session ID
|
|
27
33
|
*/
|
|
28
34
|
sid: string;
|
|
29
35
|
/**
|
|
36
|
+
* Start index
|
|
30
37
|
* Start index
|
|
31
38
|
*/
|
|
32
39
|
index: number;
|
|
33
40
|
/**
|
|
41
|
+
* Start limit
|
|
34
42
|
* Start limit
|
|
35
43
|
*/
|
|
36
44
|
limit: number;
|
|
37
45
|
/**
|
|
46
|
+
* Start total
|
|
38
47
|
* Start total
|
|
39
48
|
*/
|
|
40
49
|
total: number;
|
|
41
50
|
/**
|
|
51
|
+
* Has next
|
|
42
52
|
* Has next
|
|
43
53
|
*/
|
|
44
54
|
next: boolean;
|
|
45
55
|
/**
|
|
56
|
+
* Index data
|
|
46
57
|
* Index data
|
|
47
58
|
*/
|
|
48
59
|
data: T[];
|
|
49
60
|
}
|
|
50
61
|
export declare class DataLord {
|
|
51
62
|
/**
|
|
63
|
+
* 节点编码
|
|
52
64
|
* 节点编码
|
|
53
65
|
*/
|
|
54
66
|
nodeId: string;
|
|
55
67
|
/**
|
|
68
|
+
* 节点名称
|
|
56
69
|
* 节点名称
|
|
57
70
|
*/
|
|
58
71
|
nodeName: string;
|
|
59
72
|
/**
|
|
73
|
+
* 机构编码
|
|
60
74
|
* 机构编码
|
|
61
75
|
*/
|
|
62
76
|
instId: string;
|
|
63
77
|
/**
|
|
78
|
+
* 机构名称
|
|
64
79
|
* 机构名称
|
|
65
80
|
*/
|
|
66
81
|
instName: string;
|
|
67
82
|
}
|
|
68
83
|
export declare class Mani {
|
|
69
84
|
/**
|
|
85
|
+
* 状态
|
|
70
86
|
* 状态
|
|
71
87
|
*/
|
|
72
88
|
status: number;
|
|
73
89
|
/**
|
|
90
|
+
* 创建时间
|
|
74
91
|
* 创建时间
|
|
75
92
|
*/
|
|
76
93
|
createAt?: Date;
|
|
77
94
|
/**
|
|
95
|
+
* 更新时间
|
|
78
96
|
* 更新时间
|
|
79
97
|
*/
|
|
80
98
|
updateAt?: Date;
|
|
81
99
|
/**
|
|
100
|
+
* 创建人
|
|
82
101
|
* 创建人
|
|
83
102
|
*/
|
|
84
103
|
createBy: string;
|
|
85
104
|
/**
|
|
105
|
+
* 更新人
|
|
86
106
|
* 更新人
|
|
87
107
|
*/
|
|
88
108
|
updateBy: string;
|
|
89
109
|
}
|
|
90
110
|
export declare class Cause implements Stacktrace {
|
|
91
111
|
/**
|
|
112
|
+
* Cause name
|
|
92
113
|
* Cause name
|
|
93
114
|
*/
|
|
94
115
|
name: string;
|
|
95
116
|
/**
|
|
117
|
+
* Cause position
|
|
96
118
|
* Cause position
|
|
97
119
|
*/
|
|
98
120
|
pos: string;
|
|
99
121
|
/**
|
|
122
|
+
* Cause descriptor
|
|
100
123
|
* Cause descriptor
|
|
101
124
|
*/
|
|
102
125
|
text: string;
|
|
103
126
|
/**
|
|
127
|
+
* Cause stack
|
|
104
128
|
* Cause stack
|
|
105
129
|
*/
|
|
106
130
|
buff: Uint8Array;
|
|
107
131
|
}
|
|
108
132
|
export declare class Topic {
|
|
109
133
|
/**
|
|
134
|
+
*
|
|
110
135
|
*/
|
|
111
136
|
topic: string;
|
|
112
137
|
/**
|
|
138
|
+
*
|
|
113
139
|
*/
|
|
114
140
|
code: string;
|
|
115
141
|
/**
|
|
142
|
+
*
|
|
116
143
|
*/
|
|
117
144
|
group: string;
|
|
118
145
|
/**
|
|
146
|
+
*
|
|
119
147
|
*/
|
|
120
148
|
sets: string;
|
|
121
149
|
}
|
package/dist/types/cipher.d.ts
CHANGED
|
@@ -1,111 +1,138 @@
|
|
|
1
1
|
export declare class CRL {
|
|
2
2
|
/**
|
|
3
|
+
* Resource suite
|
|
3
4
|
* Resource suite
|
|
4
5
|
*/
|
|
5
6
|
suite: string;
|
|
6
7
|
/**
|
|
8
|
+
* Resource project
|
|
7
9
|
* Resource project
|
|
8
10
|
*/
|
|
9
11
|
project: string;
|
|
10
12
|
/**
|
|
13
|
+
* Resource name
|
|
11
14
|
* Resource name
|
|
12
15
|
*/
|
|
13
16
|
name: string;
|
|
14
17
|
/**
|
|
18
|
+
* Resource version
|
|
15
19
|
* Resource version
|
|
16
20
|
*/
|
|
17
21
|
version: string;
|
|
18
22
|
}
|
|
19
23
|
export declare class CipherHello {
|
|
20
24
|
/**
|
|
25
|
+
*
|
|
21
26
|
*/
|
|
22
27
|
name: string;
|
|
23
28
|
/**
|
|
29
|
+
* ReAnonymize/ReCipher/Homomorphic
|
|
24
30
|
* ReAnonymize/ReCipher/Homomorphic
|
|
25
31
|
*/
|
|
26
32
|
proto: string;
|
|
27
33
|
/**
|
|
34
|
+
* SM2/RSA2/BFV etc.
|
|
28
35
|
* SM2/RSA2/BFV etc.
|
|
29
36
|
*/
|
|
30
37
|
algo: string;
|
|
31
38
|
/**
|
|
39
|
+
*
|
|
32
40
|
*/
|
|
33
41
|
parties: string[];
|
|
34
42
|
/**
|
|
43
|
+
*
|
|
35
44
|
*/
|
|
36
45
|
message: string;
|
|
37
46
|
}
|
|
38
47
|
export declare class CipherSuite {
|
|
39
48
|
/**
|
|
49
|
+
* Handshake suite
|
|
40
50
|
* Handshake suite
|
|
41
51
|
*/
|
|
42
52
|
suite: string;
|
|
43
53
|
/**
|
|
54
|
+
* Cipher sign request
|
|
44
55
|
* Cipher sign request
|
|
45
56
|
*/
|
|
46
57
|
csr: Uint8Array;
|
|
47
58
|
}
|
|
48
59
|
export declare class CipherKeygen {
|
|
49
60
|
/**
|
|
61
|
+
*
|
|
50
62
|
*/
|
|
51
63
|
hello: CipherHello;
|
|
52
64
|
/**
|
|
65
|
+
*
|
|
53
66
|
*/
|
|
54
67
|
suite: CipherSuite;
|
|
55
68
|
/**
|
|
69
|
+
* Local party
|
|
56
70
|
* Local party
|
|
57
71
|
*/
|
|
58
72
|
local: string;
|
|
59
73
|
}
|
|
60
74
|
export declare class CipherRegen extends CipherKeygen {
|
|
61
75
|
/**
|
|
76
|
+
* Generate keys
|
|
62
77
|
* Generate keys
|
|
63
78
|
*/
|
|
64
79
|
keys: Record<string, Uint8Array>;
|
|
65
80
|
}
|
|
66
81
|
export declare class CipherKey {
|
|
67
82
|
/**
|
|
83
|
+
* Generate keys
|
|
68
84
|
* Generate keys
|
|
69
85
|
*/
|
|
70
86
|
keys: Record<string, Uint8Array>;
|
|
71
87
|
}
|
|
72
88
|
export declare class CipherEntity {
|
|
73
89
|
/**
|
|
90
|
+
*
|
|
74
91
|
*/
|
|
75
92
|
suite: string;
|
|
76
93
|
/**
|
|
94
|
+
*
|
|
77
95
|
*/
|
|
78
96
|
body: Uint8Array;
|
|
79
97
|
}
|
|
80
98
|
export declare class CipherTxEntity extends CipherEntity {
|
|
81
99
|
/**
|
|
100
|
+
*
|
|
82
101
|
*/
|
|
83
102
|
reKey: Uint8Array;
|
|
84
103
|
}
|
|
85
104
|
export declare class CipherObject {
|
|
86
105
|
/**
|
|
106
|
+
*
|
|
87
107
|
*/
|
|
88
108
|
code: string;
|
|
89
109
|
/**
|
|
110
|
+
*
|
|
90
111
|
*/
|
|
91
112
|
name: string;
|
|
92
113
|
/**
|
|
114
|
+
*
|
|
93
115
|
*/
|
|
94
116
|
memo: string;
|
|
95
117
|
/**
|
|
118
|
+
*
|
|
96
119
|
*/
|
|
97
120
|
uri: string;
|
|
98
121
|
/**
|
|
122
|
+
* Confidential level
|
|
99
123
|
* Confidential level
|
|
100
124
|
*/
|
|
101
125
|
level: string;
|
|
102
126
|
/**
|
|
127
|
+
*
|
|
103
128
|
*/
|
|
104
129
|
nodeId: string;
|
|
105
130
|
/**
|
|
131
|
+
*
|
|
106
132
|
*/
|
|
107
133
|
instId: string;
|
|
108
134
|
/**
|
|
135
|
+
*
|
|
109
136
|
*/
|
|
110
137
|
raw: string;
|
|
111
138
|
}
|