@firmer/mesh 0.0.7 → 0.0.8
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 +7573 -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 +3 -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/types/firewall.d.ts
CHANGED
|
@@ -1,97 +1,126 @@
|
|
|
1
1
|
export declare class Firewall {
|
|
2
2
|
/**
|
|
3
|
+
* 主键
|
|
3
4
|
* 主键
|
|
4
5
|
*/
|
|
5
6
|
code: string;
|
|
6
7
|
/**
|
|
8
|
+
* 名称
|
|
7
9
|
* 名称
|
|
8
10
|
*/
|
|
9
11
|
name: string;
|
|
10
12
|
/**
|
|
13
|
+
* 绑定地址
|
|
11
14
|
* 绑定地址
|
|
12
15
|
*/
|
|
13
16
|
listen: string;
|
|
14
17
|
/**
|
|
18
|
+
* 优先级
|
|
15
19
|
* 优先级
|
|
16
20
|
*/
|
|
17
21
|
priority: number;
|
|
18
22
|
/**
|
|
23
|
+
* 协议类型TCP/ALP/UDP
|
|
19
24
|
* 协议类型TCP/ALP/UDP
|
|
20
25
|
*/
|
|
21
26
|
kind: string;
|
|
22
27
|
/**
|
|
28
|
+
* 场景模式limit/control
|
|
23
29
|
* 场景模式limit/control
|
|
24
30
|
*/
|
|
25
31
|
mode: string;
|
|
26
32
|
/**
|
|
33
|
+
* 具体协议
|
|
27
34
|
* 具体协议
|
|
28
35
|
*/
|
|
29
36
|
proto: string;
|
|
30
37
|
/**
|
|
38
|
+
* 插件名称
|
|
31
39
|
* 插件名称
|
|
32
40
|
*/
|
|
33
41
|
filter: string;
|
|
42
|
+
/**
|
|
43
|
+
* 匹配表达式
|
|
44
|
+
* 匹配表达式
|
|
45
|
+
*/
|
|
46
|
+
matcher: string;
|
|
34
47
|
/**
|
|
48
|
+
* 插件参数
|
|
35
49
|
* 插件参数
|
|
36
50
|
*/
|
|
37
51
|
flags: string;
|
|
38
52
|
/**
|
|
53
|
+
* 访问来源
|
|
39
54
|
* 访问来源
|
|
40
55
|
*/
|
|
41
56
|
src: string;
|
|
42
57
|
/**
|
|
58
|
+
* 访问目的
|
|
43
59
|
* 访问目的
|
|
44
60
|
*/
|
|
45
61
|
dst: string;
|
|
46
62
|
/**
|
|
63
|
+
* 主机
|
|
47
64
|
* 主机
|
|
48
65
|
*/
|
|
49
66
|
host: string;
|
|
50
67
|
/**
|
|
68
|
+
* 路径
|
|
51
69
|
* 路径
|
|
52
70
|
*/
|
|
53
71
|
path: string;
|
|
54
72
|
/**
|
|
73
|
+
* 方法
|
|
55
74
|
* 方法
|
|
56
75
|
*/
|
|
57
76
|
method: string;
|
|
58
77
|
/**
|
|
78
|
+
* 参数
|
|
59
79
|
* 参数
|
|
60
80
|
*/
|
|
61
81
|
query: string;
|
|
62
82
|
/**
|
|
83
|
+
* 头部
|
|
63
84
|
* 头部
|
|
64
85
|
*/
|
|
65
86
|
header: string;
|
|
66
87
|
/**
|
|
88
|
+
* cookie
|
|
67
89
|
* cookie
|
|
68
90
|
*/
|
|
69
91
|
cookie: string;
|
|
70
92
|
/**
|
|
93
|
+
* 备注
|
|
71
94
|
* 备注
|
|
72
95
|
*/
|
|
73
96
|
memo: string;
|
|
74
97
|
/**
|
|
98
|
+
* JSON信息
|
|
75
99
|
* JSON信息
|
|
76
100
|
*/
|
|
77
101
|
raw: string;
|
|
78
102
|
/**
|
|
79
|
-
*
|
|
103
|
+
* 状态:1初始化 2已禁用 4已删除 8已发布
|
|
104
|
+
* 状态:1初始化 2已禁用 4已删除 8已发布
|
|
80
105
|
*/
|
|
81
106
|
status: number;
|
|
82
107
|
/**
|
|
108
|
+
* 创建时间
|
|
83
109
|
* 创建时间
|
|
84
110
|
*/
|
|
85
111
|
createAt?: Date;
|
|
86
112
|
/**
|
|
113
|
+
* 更新时间
|
|
87
114
|
* 更新时间
|
|
88
115
|
*/
|
|
89
116
|
updateAt?: Date;
|
|
90
117
|
/**
|
|
118
|
+
* 创建人
|
|
91
119
|
* 创建人
|
|
92
120
|
*/
|
|
93
121
|
createBy: string;
|
|
94
122
|
/**
|
|
123
|
+
* 更新人
|
|
95
124
|
* 更新人
|
|
96
125
|
*/
|
|
97
126
|
updateBy: string;
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -1,97 +1,189 @@
|
|
|
1
1
|
export declare class KeyCsr {
|
|
2
2
|
/**
|
|
3
|
+
* 签发证书算法
|
|
4
|
+
* 签发证书算法
|
|
3
5
|
*/
|
|
4
6
|
algo: string;
|
|
5
7
|
/**
|
|
8
|
+
* 证书域名
|
|
9
|
+
* 证书域名
|
|
6
10
|
*/
|
|
7
11
|
domain: string;
|
|
8
12
|
/**
|
|
13
|
+
* 证书主题
|
|
14
|
+
* 证书主题
|
|
9
15
|
*/
|
|
10
16
|
subject: string;
|
|
11
17
|
/**
|
|
18
|
+
* 证书密钥长度,根据算法而不同
|
|
19
|
+
* 证书密钥长度,根据算法而不同
|
|
12
20
|
*/
|
|
13
21
|
length: number;
|
|
14
22
|
/**
|
|
23
|
+
* 激活时间,Unix毫秒时间
|
|
24
|
+
* 激活时间,Unix毫秒时间
|
|
15
25
|
*/
|
|
16
26
|
activeAt?: Date;
|
|
17
27
|
/**
|
|
28
|
+
* 失效时间,Unix毫秒时间
|
|
29
|
+
* 失效时间,Unix毫秒时间
|
|
18
30
|
*/
|
|
19
31
|
expireAt?: Date;
|
|
20
32
|
/**
|
|
33
|
+
* 邮件联系信息
|
|
34
|
+
* 邮件联系信息
|
|
21
35
|
*/
|
|
22
36
|
mail: string;
|
|
23
37
|
/**
|
|
38
|
+
* 是否CA证书
|
|
39
|
+
* 是否CA证书
|
|
24
40
|
*/
|
|
25
41
|
isCA: boolean;
|
|
26
42
|
/**
|
|
43
|
+
* 不是CA证书需要指定CA证书算法
|
|
44
|
+
* 不是CA证书需要指定CA证书算法
|
|
27
45
|
*/
|
|
28
46
|
caAlgo: string;
|
|
29
47
|
/**
|
|
48
|
+
* 不是CA证书需要指定CA证书签名
|
|
49
|
+
* 不是CA证书需要指定CA证书签名
|
|
30
50
|
*/
|
|
31
51
|
caCert: string;
|
|
32
52
|
/**
|
|
53
|
+
* 不是CA证书需要指定CA密钥签名
|
|
54
|
+
* 不是CA证书需要指定CA密钥签名
|
|
33
55
|
*/
|
|
34
56
|
caKey: string;
|
|
35
57
|
/**
|
|
58
|
+
* 证书IP SANs
|
|
59
|
+
* 证书IP SANs
|
|
36
60
|
*/
|
|
37
61
|
ips: string[];
|
|
38
62
|
/**
|
|
63
|
+
* 证书名称
|
|
64
|
+
* 证书名称
|
|
39
65
|
*/
|
|
40
66
|
name: string;
|
|
41
67
|
/**
|
|
68
|
+
* 证书用途
|
|
42
69
|
* 证书用途
|
|
43
70
|
*/
|
|
44
71
|
usage: number;
|
|
45
72
|
}
|
|
46
73
|
export declare class Keys extends KeyCsr {
|
|
47
74
|
/**
|
|
75
|
+
* 证书PEM
|
|
48
76
|
* 证书PEM
|
|
49
77
|
*/
|
|
50
78
|
crt: string;
|
|
51
79
|
/**
|
|
80
|
+
* 私钥PEM
|
|
52
81
|
* 私钥PEM
|
|
53
82
|
*/
|
|
54
83
|
key: string;
|
|
55
84
|
/**
|
|
85
|
+
* 证书撤销列表PEM
|
|
56
86
|
* 证书撤销列表PEM
|
|
57
87
|
*/
|
|
58
88
|
crl: string;
|
|
59
89
|
/**
|
|
90
|
+
* 主键ID
|
|
60
91
|
* 主键ID
|
|
61
92
|
*/
|
|
62
93
|
id: string;
|
|
63
94
|
}
|
|
64
95
|
export declare class CrtRevokeRequest {
|
|
65
96
|
/**
|
|
97
|
+
* 主键ID
|
|
66
98
|
* 主键ID
|
|
67
99
|
*/
|
|
68
100
|
id: string;
|
|
69
101
|
/**
|
|
102
|
+
* 撤销原因
|
|
70
103
|
* 撤销原因
|
|
71
104
|
*/
|
|
72
105
|
reason: number;
|
|
73
106
|
}
|
|
74
107
|
export declare class CrtRotateRequest {
|
|
75
108
|
/**
|
|
109
|
+
* 主键ID
|
|
76
110
|
* 主键ID
|
|
77
111
|
*/
|
|
78
112
|
id: string;
|
|
79
113
|
/**
|
|
114
|
+
* 算法
|
|
80
115
|
* 算法
|
|
81
116
|
*/
|
|
82
117
|
algo: string;
|
|
83
118
|
/**
|
|
119
|
+
* 证书过期时间
|
|
84
120
|
* 证书过期时间
|
|
85
121
|
*/
|
|
86
122
|
expireAt?: Date;
|
|
87
123
|
}
|
|
88
124
|
export declare class Keyset {
|
|
89
125
|
/**
|
|
126
|
+
* 证书列表
|
|
90
127
|
* 证书列表
|
|
91
128
|
*/
|
|
92
129
|
crts: Record<string, Keys>;
|
|
93
130
|
/**
|
|
131
|
+
* 根证书列表
|
|
94
132
|
* 根证书列表
|
|
95
133
|
*/
|
|
96
134
|
roots: Record<string, Keys>;
|
|
97
135
|
}
|
|
136
|
+
export declare class SecretCsr {
|
|
137
|
+
/**
|
|
138
|
+
* 编号
|
|
139
|
+
* 编号
|
|
140
|
+
*/
|
|
141
|
+
id: string;
|
|
142
|
+
/**
|
|
143
|
+
* 签发算法
|
|
144
|
+
* 签发算法
|
|
145
|
+
*/
|
|
146
|
+
algo: string;
|
|
147
|
+
/**
|
|
148
|
+
* 密钥长度,根据算法而不同
|
|
149
|
+
* 密钥长度,根据算法而不同
|
|
150
|
+
*/
|
|
151
|
+
length: number;
|
|
152
|
+
/**
|
|
153
|
+
* 名称
|
|
154
|
+
* 名称
|
|
155
|
+
*/
|
|
156
|
+
name: string;
|
|
157
|
+
/**
|
|
158
|
+
* 说明
|
|
159
|
+
* 说明
|
|
160
|
+
*/
|
|
161
|
+
memo: string;
|
|
162
|
+
}
|
|
163
|
+
export declare class SecretKey extends SecretCsr {
|
|
164
|
+
/**
|
|
165
|
+
* 状态
|
|
166
|
+
* 状态
|
|
167
|
+
*/
|
|
168
|
+
status: number;
|
|
169
|
+
/**
|
|
170
|
+
* 创建时间
|
|
171
|
+
* 创建时间
|
|
172
|
+
*/
|
|
173
|
+
createAt?: Date;
|
|
174
|
+
/**
|
|
175
|
+
* 更新时间
|
|
176
|
+
* 更新时间
|
|
177
|
+
*/
|
|
178
|
+
updateAt?: Date;
|
|
179
|
+
/**
|
|
180
|
+
* 创建人
|
|
181
|
+
* 创建人
|
|
182
|
+
*/
|
|
183
|
+
createBy: string;
|
|
184
|
+
/**
|
|
185
|
+
* 更新人
|
|
186
|
+
* 更新人
|
|
187
|
+
*/
|
|
188
|
+
updateBy: string;
|
|
189
|
+
}
|
package/dist/types/license.d.ts
CHANGED
|
@@ -1,110 +1,136 @@
|
|
|
1
1
|
import { Environ } from './environ';
|
|
2
2
|
export declare class License {
|
|
3
3
|
/**
|
|
4
|
+
* License version
|
|
4
5
|
* License version
|
|
5
6
|
*/
|
|
6
7
|
version: string;
|
|
7
8
|
/**
|
|
9
|
+
* License level
|
|
8
10
|
* License level
|
|
9
11
|
*/
|
|
10
12
|
level: number;
|
|
11
13
|
/**
|
|
14
|
+
* License name
|
|
12
15
|
* License name
|
|
13
16
|
*/
|
|
14
17
|
name: string;
|
|
15
18
|
/**
|
|
19
|
+
* License creator name
|
|
16
20
|
* License creator name
|
|
17
21
|
*/
|
|
18
22
|
createBy: string;
|
|
19
23
|
/**
|
|
24
|
+
* License create time
|
|
20
25
|
* License create time
|
|
21
26
|
*/
|
|
22
27
|
createAt: number;
|
|
23
28
|
/**
|
|
29
|
+
* License create by
|
|
24
30
|
* License create by
|
|
25
31
|
*/
|
|
26
32
|
activeAt: number;
|
|
27
33
|
/**
|
|
34
|
+
* License factors
|
|
28
35
|
* License factors
|
|
29
36
|
*/
|
|
30
37
|
factor: string;
|
|
31
38
|
/**
|
|
39
|
+
* License signature
|
|
32
40
|
* License signature
|
|
33
41
|
*/
|
|
34
42
|
signature: string;
|
|
35
43
|
/**
|
|
44
|
+
* Licensed identity
|
|
36
45
|
* Licensed identity
|
|
37
46
|
*/
|
|
38
47
|
muid: string;
|
|
39
48
|
/**
|
|
49
|
+
* License server
|
|
40
50
|
* License server
|
|
41
51
|
*/
|
|
42
52
|
server: string;
|
|
43
53
|
/**
|
|
54
|
+
* License certification
|
|
44
55
|
* License certification
|
|
45
56
|
*/
|
|
46
57
|
crt: string;
|
|
47
58
|
/**
|
|
59
|
+
* License group
|
|
48
60
|
* License group
|
|
49
61
|
*/
|
|
50
62
|
group: string[];
|
|
51
63
|
/**
|
|
64
|
+
* License max replicas
|
|
52
65
|
* License max replicas
|
|
53
66
|
*/
|
|
54
67
|
replicas: number;
|
|
55
68
|
/**
|
|
69
|
+
* License max cooperators
|
|
56
70
|
* License max cooperators
|
|
57
71
|
*/
|
|
58
72
|
maxCooperators: number;
|
|
59
73
|
/**
|
|
74
|
+
* License max tenants
|
|
60
75
|
* License max tenants
|
|
61
76
|
*/
|
|
62
77
|
maxTenants: number;
|
|
63
78
|
/**
|
|
79
|
+
* License max users
|
|
64
80
|
* License max users
|
|
65
81
|
*/
|
|
66
82
|
maxUsers: number;
|
|
67
83
|
/**
|
|
84
|
+
* License max mills
|
|
68
85
|
* License max mills
|
|
69
86
|
*/
|
|
70
87
|
maxMills: number;
|
|
71
88
|
/**
|
|
89
|
+
* License white urns
|
|
72
90
|
* License white urns
|
|
73
91
|
*/
|
|
74
92
|
whiteURN: string[];
|
|
75
93
|
/**
|
|
94
|
+
* License black urns
|
|
76
95
|
* License black urns
|
|
77
96
|
*/
|
|
78
97
|
blackURN: string[];
|
|
79
98
|
/**
|
|
99
|
+
* License supervise urns
|
|
80
100
|
* License supervise urns
|
|
81
101
|
*/
|
|
82
102
|
superURN: string[];
|
|
83
103
|
}
|
|
84
104
|
export declare class CommerceLicense {
|
|
85
105
|
/**
|
|
106
|
+
* License cipher
|
|
86
107
|
* License cipher
|
|
87
108
|
*/
|
|
88
109
|
cipher: string;
|
|
89
110
|
/**
|
|
111
|
+
* License explain
|
|
90
112
|
* License explain
|
|
91
113
|
*/
|
|
92
114
|
explain: License;
|
|
93
115
|
/**
|
|
116
|
+
* License create time
|
|
94
117
|
* License create time
|
|
95
118
|
*/
|
|
96
119
|
createAt?: Date;
|
|
97
120
|
}
|
|
98
121
|
export declare class CommerceEnviron {
|
|
99
122
|
/**
|
|
123
|
+
* Node cipher
|
|
100
124
|
* Node cipher
|
|
101
125
|
*/
|
|
102
126
|
cipher: string;
|
|
103
127
|
/**
|
|
128
|
+
* Node explain
|
|
104
129
|
* Node explain
|
|
105
130
|
*/
|
|
106
131
|
explain: Environ;
|
|
107
132
|
/**
|
|
133
|
+
* Node private key
|
|
108
134
|
* Node private key
|
|
109
135
|
*/
|
|
110
136
|
nodeKey: string;
|
package/dist/types/oauth2.d.ts
CHANGED
|
@@ -1,155 +1,191 @@
|
|
|
1
1
|
export declare class Captcha {
|
|
2
2
|
/**
|
|
3
|
+
*
|
|
3
4
|
*/
|
|
4
5
|
mno: string;
|
|
5
6
|
/**
|
|
7
|
+
*
|
|
6
8
|
*/
|
|
7
9
|
kind: string;
|
|
8
10
|
/**
|
|
11
|
+
*
|
|
9
12
|
*/
|
|
10
13
|
mime: Uint8Array;
|
|
11
14
|
/**
|
|
15
|
+
*
|
|
12
16
|
*/
|
|
13
17
|
text: string;
|
|
14
18
|
}
|
|
15
19
|
export declare class AccessGrant {
|
|
16
20
|
/**
|
|
21
|
+
* OAuth client id
|
|
17
22
|
* OAuth client id
|
|
18
23
|
*/
|
|
19
24
|
clientId: string;
|
|
20
25
|
/**
|
|
26
|
+
* OAuth authorize scope
|
|
21
27
|
* OAuth authorize scope
|
|
22
28
|
*/
|
|
23
29
|
scope: string;
|
|
24
30
|
/**
|
|
31
|
+
* OAuth authorize state
|
|
25
32
|
* OAuth authorize state
|
|
26
33
|
*/
|
|
27
34
|
state: string;
|
|
28
35
|
/**
|
|
36
|
+
* OAuth authorize flags, 2 redirect, 4 callback
|
|
29
37
|
* OAuth authorize flags, 2 redirect, 4 callback
|
|
30
38
|
*/
|
|
31
39
|
flags: number;
|
|
32
40
|
}
|
|
33
41
|
export declare class Credential {
|
|
34
42
|
/**
|
|
43
|
+
* Auth client id
|
|
35
44
|
* Auth client id
|
|
36
45
|
*/
|
|
37
46
|
clientId: string;
|
|
38
47
|
/**
|
|
48
|
+
* Auth type: password/verifycode/qrcode
|
|
39
49
|
* Auth type: password/verifycode/qrcode
|
|
40
50
|
*/
|
|
41
51
|
authType: string;
|
|
42
52
|
/**
|
|
53
|
+
* Auth authorize key like username
|
|
43
54
|
* Auth authorize key like username
|
|
44
55
|
*/
|
|
45
56
|
accessKey: string;
|
|
46
57
|
/**
|
|
58
|
+
* Auth authorize secret like password
|
|
47
59
|
* Auth authorize secret like password
|
|
48
60
|
*/
|
|
49
61
|
secretKey: string;
|
|
50
62
|
/**
|
|
63
|
+
* Auth authorize captcha
|
|
51
64
|
* Auth authorize captcha
|
|
52
65
|
*/
|
|
53
66
|
captcha: string;
|
|
54
67
|
}
|
|
55
68
|
export declare class AccessToken {
|
|
56
69
|
/**
|
|
70
|
+
* OAuth access token
|
|
57
71
|
* OAuth access token
|
|
58
72
|
*/
|
|
59
73
|
token: string;
|
|
60
74
|
/**
|
|
75
|
+
* OAuth access token type
|
|
61
76
|
* OAuth access token type
|
|
62
77
|
*/
|
|
63
78
|
kind: string;
|
|
64
79
|
/**
|
|
80
|
+
* OAuth access token expires time in mills
|
|
65
81
|
* OAuth access token expires time in mills
|
|
66
82
|
*/
|
|
67
83
|
expiresAt?: Date;
|
|
68
84
|
/**
|
|
85
|
+
* OAuth access token scope
|
|
69
86
|
* OAuth access token scope
|
|
70
87
|
*/
|
|
71
88
|
scope: string;
|
|
72
89
|
/**
|
|
90
|
+
* OAuth access token refresh token
|
|
73
91
|
* OAuth access token refresh token
|
|
74
92
|
*/
|
|
75
93
|
refreshToken: string;
|
|
76
94
|
}
|
|
77
95
|
export declare class GrantCode {
|
|
78
96
|
/**
|
|
97
|
+
* OAuth grant code
|
|
79
98
|
* OAuth grant code
|
|
80
99
|
*/
|
|
81
100
|
code: string;
|
|
82
101
|
}
|
|
83
102
|
export declare class AccessCode {
|
|
84
103
|
/**
|
|
104
|
+
* OAuth authorize code
|
|
85
105
|
* OAuth authorize code
|
|
86
106
|
*/
|
|
87
107
|
code: string;
|
|
88
108
|
/**
|
|
109
|
+
* OAuth authorize redirect uri
|
|
89
110
|
* OAuth authorize redirect uri
|
|
90
111
|
*/
|
|
91
112
|
redirectURI: string;
|
|
92
113
|
}
|
|
93
114
|
export declare class AccessID {
|
|
94
115
|
/**
|
|
116
|
+
* OAuth client id
|
|
95
117
|
* OAuth client id
|
|
96
118
|
*/
|
|
97
119
|
clientId: string;
|
|
98
120
|
/**
|
|
121
|
+
* OAuth user id
|
|
99
122
|
* OAuth user id
|
|
100
123
|
*/
|
|
101
124
|
userId: string;
|
|
102
125
|
/**
|
|
126
|
+
* OAuth access token expires time in mills
|
|
103
127
|
* OAuth access token expires time in mills
|
|
104
128
|
*/
|
|
105
129
|
expiresAt: number;
|
|
106
130
|
}
|
|
107
131
|
export declare class Session {
|
|
108
132
|
/**
|
|
133
|
+
* Authenticate token
|
|
109
134
|
* Authenticate token
|
|
110
135
|
*/
|
|
111
136
|
token: string;
|
|
112
137
|
/**
|
|
138
|
+
* User id
|
|
113
139
|
* User id
|
|
114
140
|
*/
|
|
115
141
|
userid: string;
|
|
116
142
|
/**
|
|
143
|
+
* User name
|
|
117
144
|
* User name
|
|
118
145
|
*/
|
|
119
146
|
username: string;
|
|
120
147
|
/**
|
|
148
|
+
* Nick name
|
|
121
149
|
* Nick name
|
|
122
150
|
*/
|
|
123
151
|
nickname: string;
|
|
124
152
|
/**
|
|
153
|
+
* User avatar uri
|
|
125
154
|
* User avatar uri
|
|
126
155
|
*/
|
|
127
156
|
avatar: string;
|
|
128
157
|
/**
|
|
158
|
+
* User contact mobile
|
|
129
159
|
* User contact mobile
|
|
130
160
|
*/
|
|
131
161
|
mobile: string;
|
|
132
162
|
/**
|
|
163
|
+
* User contact mail
|
|
133
164
|
* User contact mail
|
|
134
165
|
*/
|
|
135
166
|
mail: string;
|
|
136
167
|
/**
|
|
168
|
+
* User department id
|
|
137
169
|
* User department id
|
|
138
170
|
*/
|
|
139
171
|
deptId: string;
|
|
140
172
|
/**
|
|
173
|
+
* User mdc
|
|
141
174
|
* User mdc
|
|
142
175
|
*/
|
|
143
176
|
mdc: string;
|
|
144
177
|
/**
|
|
178
|
+
* User institution id
|
|
145
179
|
* User institution id
|
|
146
180
|
*/
|
|
147
181
|
instIds: string[];
|
|
148
182
|
/**
|
|
183
|
+
* User attributes
|
|
149
184
|
* User attributes
|
|
150
185
|
*/
|
|
151
186
|
attrs: string[];
|
|
152
187
|
/**
|
|
188
|
+
* User extension dict info
|
|
153
189
|
* User extension dict info
|
|
154
190
|
*/
|
|
155
191
|
raw: Record<string, string>;
|
package/dist/types/payload.d.ts
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
import { Cause } from './builtin';
|
|
2
2
|
export declare class Inbound {
|
|
3
3
|
/**
|
|
4
|
+
* Invoke parameters
|
|
4
5
|
* Invoke parameters
|
|
5
6
|
*/
|
|
6
7
|
arguments: any[];
|
|
7
8
|
/**
|
|
9
|
+
* Invoke attachments
|
|
8
10
|
* Invoke attachments
|
|
9
11
|
*/
|
|
10
12
|
attachments: Record<string, string>;
|
|
11
13
|
}
|
|
12
14
|
export declare class Outbound {
|
|
13
15
|
/**
|
|
16
|
+
* Result code
|
|
14
17
|
* Result code
|
|
15
18
|
*/
|
|
16
19
|
code: string;
|
|
17
20
|
/**
|
|
21
|
+
* Result message
|
|
18
22
|
* Result message
|
|
19
23
|
*/
|
|
20
24
|
message: string;
|
|
21
25
|
/**
|
|
26
|
+
* Service cause stacktrace
|
|
22
27
|
* Service cause stacktrace
|
|
23
28
|
*/
|
|
24
29
|
cause: Cause;
|
|
25
30
|
/**
|
|
31
|
+
* Service response content
|
|
26
32
|
* Service response content
|
|
27
33
|
*/
|
|
28
34
|
content?: any;
|
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
export declare class Principal {
|
|
2
2
|
/**
|
|
3
|
+
* idc
|
|
3
4
|
* idc
|
|
4
5
|
*/
|
|
5
6
|
id: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class Location extends Principal {
|
|
8
9
|
/**
|
|
10
|
+
* ip
|
|
9
11
|
* ip
|
|
10
12
|
*/
|
|
11
13
|
ip: string;
|
|
12
14
|
/**
|
|
15
|
+
* port
|
|
13
16
|
* port
|
|
14
17
|
*/
|
|
15
18
|
port: string;
|
|
16
19
|
/**
|
|
20
|
+
* host
|
|
17
21
|
* host
|
|
18
22
|
*/
|
|
19
23
|
host: string;
|
|
20
24
|
/**
|
|
25
|
+
* name
|
|
21
26
|
* name
|
|
22
27
|
*/
|
|
23
28
|
name: string;
|
|
24
29
|
}
|
|
25
30
|
export declare class Institution {
|
|
26
31
|
/**
|
|
32
|
+
*
|
|
27
33
|
*/
|
|
28
34
|
nodeId: string;
|
|
29
35
|
/**
|
|
36
|
+
*
|
|
30
37
|
*/
|
|
31
38
|
instId: string;
|
|
32
39
|
/**
|
|
40
|
+
*
|
|
33
41
|
*/
|
|
34
42
|
instName: string;
|
|
35
43
|
}
|