@firmer/mesh 0.0.6 → 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/cause/errors.d.ts +5 -1
- package/dist/codec/json.d.ts +2 -2
- package/dist/http/consumer.d.ts +2 -1
- package/dist/index.d.ts +13 -5
- package/dist/mesh.js +9246 -7004
- package/dist/mesh.umd.cjs +8 -8
- package/dist/mpc/hook.d.ts +11 -11
- package/dist/mpc/reference.d.ts +1 -0
- package/dist/mpc/urn.d.ts +3 -1
- 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 +49 -0
- package/dist/psi/endpoint.d.ts +2 -2
- package/dist/psi/firewall.d.ts +24 -0
- package/dist/psi/index.d.ts +3 -1
- 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 +20 -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 +17 -8
- package/dist/psi/vm.d.ts +34 -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 +114 -0
- package/dist/types/document.d.ts +11 -0
- package/dist/types/entity.d.ts +15 -0
- package/dist/types/environ.d.ts +19 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/firewall.d.ts +127 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/keys.d.ts +92 -0
- package/dist/types/license.d.ts +26 -0
- package/dist/types/oauth2.d.ts +64 -10
- 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 +206 -0
- package/dist/types/script.d.ts +56 -9
- 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 +9 -9
- package/dist/psi/evaluator.d.ts +0 -20
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare class Firewall {
|
|
2
|
+
/**
|
|
3
|
+
* 主键
|
|
4
|
+
* 主键
|
|
5
|
+
*/
|
|
6
|
+
code: string;
|
|
7
|
+
/**
|
|
8
|
+
* 名称
|
|
9
|
+
* 名称
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* 绑定地址
|
|
14
|
+
* 绑定地址
|
|
15
|
+
*/
|
|
16
|
+
listen: string;
|
|
17
|
+
/**
|
|
18
|
+
* 优先级
|
|
19
|
+
* 优先级
|
|
20
|
+
*/
|
|
21
|
+
priority: number;
|
|
22
|
+
/**
|
|
23
|
+
* 协议类型TCP/ALP/UDP
|
|
24
|
+
* 协议类型TCP/ALP/UDP
|
|
25
|
+
*/
|
|
26
|
+
kind: string;
|
|
27
|
+
/**
|
|
28
|
+
* 场景模式limit/control
|
|
29
|
+
* 场景模式limit/control
|
|
30
|
+
*/
|
|
31
|
+
mode: string;
|
|
32
|
+
/**
|
|
33
|
+
* 具体协议
|
|
34
|
+
* 具体协议
|
|
35
|
+
*/
|
|
36
|
+
proto: string;
|
|
37
|
+
/**
|
|
38
|
+
* 插件名称
|
|
39
|
+
* 插件名称
|
|
40
|
+
*/
|
|
41
|
+
filter: string;
|
|
42
|
+
/**
|
|
43
|
+
* 匹配表达式
|
|
44
|
+
* 匹配表达式
|
|
45
|
+
*/
|
|
46
|
+
matcher: string;
|
|
47
|
+
/**
|
|
48
|
+
* 插件参数
|
|
49
|
+
* 插件参数
|
|
50
|
+
*/
|
|
51
|
+
flags: string;
|
|
52
|
+
/**
|
|
53
|
+
* 访问来源
|
|
54
|
+
* 访问来源
|
|
55
|
+
*/
|
|
56
|
+
src: string;
|
|
57
|
+
/**
|
|
58
|
+
* 访问目的
|
|
59
|
+
* 访问目的
|
|
60
|
+
*/
|
|
61
|
+
dst: string;
|
|
62
|
+
/**
|
|
63
|
+
* 主机
|
|
64
|
+
* 主机
|
|
65
|
+
*/
|
|
66
|
+
host: string;
|
|
67
|
+
/**
|
|
68
|
+
* 路径
|
|
69
|
+
* 路径
|
|
70
|
+
*/
|
|
71
|
+
path: string;
|
|
72
|
+
/**
|
|
73
|
+
* 方法
|
|
74
|
+
* 方法
|
|
75
|
+
*/
|
|
76
|
+
method: string;
|
|
77
|
+
/**
|
|
78
|
+
* 参数
|
|
79
|
+
* 参数
|
|
80
|
+
*/
|
|
81
|
+
query: string;
|
|
82
|
+
/**
|
|
83
|
+
* 头部
|
|
84
|
+
* 头部
|
|
85
|
+
*/
|
|
86
|
+
header: string;
|
|
87
|
+
/**
|
|
88
|
+
* cookie
|
|
89
|
+
* cookie
|
|
90
|
+
*/
|
|
91
|
+
cookie: string;
|
|
92
|
+
/**
|
|
93
|
+
* 备注
|
|
94
|
+
* 备注
|
|
95
|
+
*/
|
|
96
|
+
memo: string;
|
|
97
|
+
/**
|
|
98
|
+
* JSON信息
|
|
99
|
+
* JSON信息
|
|
100
|
+
*/
|
|
101
|
+
raw: string;
|
|
102
|
+
/**
|
|
103
|
+
* 状态:1初始化 2已禁用 4已删除 8已发布
|
|
104
|
+
* 状态:1初始化 2已禁用 4已删除 8已发布
|
|
105
|
+
*/
|
|
106
|
+
status: number;
|
|
107
|
+
/**
|
|
108
|
+
* 创建时间
|
|
109
|
+
* 创建时间
|
|
110
|
+
*/
|
|
111
|
+
createAt?: Date;
|
|
112
|
+
/**
|
|
113
|
+
* 更新时间
|
|
114
|
+
* 更新时间
|
|
115
|
+
*/
|
|
116
|
+
updateAt?: Date;
|
|
117
|
+
/**
|
|
118
|
+
* 创建人
|
|
119
|
+
* 创建人
|
|
120
|
+
*/
|
|
121
|
+
createBy: string;
|
|
122
|
+
/**
|
|
123
|
+
* 更新人
|
|
124
|
+
* 更新人
|
|
125
|
+
*/
|
|
126
|
+
updateBy: string;
|
|
127
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from './builtin';
|
|
2
2
|
export * from './cipher';
|
|
3
3
|
export * from './daler';
|
|
4
|
+
export * from './devops';
|
|
4
5
|
export * from './document';
|
|
5
6
|
export * from './entity';
|
|
6
7
|
export * from './enums';
|
|
7
8
|
export * from './environ';
|
|
8
9
|
export * from './event';
|
|
10
|
+
export * from './firewall';
|
|
9
11
|
export * from './keys';
|
|
10
12
|
export * from './license';
|
|
11
13
|
export * from './oauth2';
|
|
@@ -14,6 +16,7 @@ export * from './principal';
|
|
|
14
16
|
export * from './registration';
|
|
15
17
|
export * from './route';
|
|
16
18
|
export * from './savepoint';
|
|
19
|
+
export * from './schema';
|
|
17
20
|
export * from './script';
|
|
18
21
|
export * from './status';
|
|
19
22
|
export * from './transport';
|
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,137 +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
|
-
export declare class
|
|
19
|
+
export declare class AccessGrant {
|
|
16
20
|
/**
|
|
21
|
+
* OAuth client id
|
|
17
22
|
* OAuth client id
|
|
18
23
|
*/
|
|
19
24
|
clientId: string;
|
|
20
25
|
/**
|
|
21
|
-
* OAuth
|
|
26
|
+
* OAuth authorize scope
|
|
27
|
+
* OAuth authorize scope
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
scope: string;
|
|
24
30
|
/**
|
|
25
|
-
* OAuth authorize
|
|
31
|
+
* OAuth authorize state
|
|
32
|
+
* OAuth authorize state
|
|
26
33
|
*/
|
|
27
|
-
|
|
34
|
+
state: string;
|
|
28
35
|
/**
|
|
29
|
-
* OAuth authorize
|
|
36
|
+
* OAuth authorize flags, 2 redirect, 4 callback
|
|
37
|
+
* OAuth authorize flags, 2 redirect, 4 callback
|
|
30
38
|
*/
|
|
31
|
-
|
|
39
|
+
flags: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class Credential {
|
|
32
42
|
/**
|
|
33
|
-
*
|
|
43
|
+
* Auth client id
|
|
44
|
+
* Auth client id
|
|
45
|
+
*/
|
|
46
|
+
clientId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Auth type: password/verifycode/qrcode
|
|
49
|
+
* Auth type: password/verifycode/qrcode
|
|
50
|
+
*/
|
|
51
|
+
authType: string;
|
|
52
|
+
/**
|
|
53
|
+
* Auth authorize key like username
|
|
54
|
+
* Auth authorize key like username
|
|
55
|
+
*/
|
|
56
|
+
accessKey: string;
|
|
57
|
+
/**
|
|
58
|
+
* Auth authorize secret like password
|
|
59
|
+
* Auth authorize secret like password
|
|
60
|
+
*/
|
|
61
|
+
secretKey: string;
|
|
62
|
+
/**
|
|
63
|
+
* Auth authorize captcha
|
|
64
|
+
* Auth authorize captcha
|
|
34
65
|
*/
|
|
35
66
|
captcha: string;
|
|
36
67
|
}
|
|
37
68
|
export declare class AccessToken {
|
|
38
69
|
/**
|
|
70
|
+
* OAuth access token
|
|
39
71
|
* OAuth access token
|
|
40
72
|
*/
|
|
41
73
|
token: string;
|
|
42
74
|
/**
|
|
75
|
+
* OAuth access token type
|
|
43
76
|
* OAuth access token type
|
|
44
77
|
*/
|
|
45
78
|
kind: string;
|
|
46
79
|
/**
|
|
80
|
+
* OAuth access token expires time in mills
|
|
47
81
|
* OAuth access token expires time in mills
|
|
48
82
|
*/
|
|
49
|
-
expiresAt
|
|
83
|
+
expiresAt?: Date;
|
|
50
84
|
/**
|
|
85
|
+
* OAuth access token scope
|
|
51
86
|
* OAuth access token scope
|
|
52
87
|
*/
|
|
53
88
|
scope: string;
|
|
54
89
|
/**
|
|
90
|
+
* OAuth access token refresh token
|
|
55
91
|
* OAuth access token refresh token
|
|
56
92
|
*/
|
|
57
93
|
refreshToken: string;
|
|
58
94
|
}
|
|
59
|
-
export declare class
|
|
95
|
+
export declare class GrantCode {
|
|
60
96
|
/**
|
|
97
|
+
* OAuth grant code
|
|
61
98
|
* OAuth grant code
|
|
62
99
|
*/
|
|
63
100
|
code: string;
|
|
64
101
|
}
|
|
65
102
|
export declare class AccessCode {
|
|
66
103
|
/**
|
|
104
|
+
* OAuth authorize code
|
|
67
105
|
* OAuth authorize code
|
|
68
106
|
*/
|
|
69
107
|
code: string;
|
|
70
108
|
/**
|
|
109
|
+
* OAuth authorize redirect uri
|
|
71
110
|
* OAuth authorize redirect uri
|
|
72
111
|
*/
|
|
73
112
|
redirectURI: string;
|
|
74
113
|
}
|
|
75
114
|
export declare class AccessID {
|
|
76
115
|
/**
|
|
116
|
+
* OAuth client id
|
|
77
117
|
* OAuth client id
|
|
78
118
|
*/
|
|
79
119
|
clientId: string;
|
|
80
120
|
/**
|
|
121
|
+
* OAuth user id
|
|
81
122
|
* OAuth user id
|
|
82
123
|
*/
|
|
83
124
|
userId: string;
|
|
84
125
|
/**
|
|
126
|
+
* OAuth access token expires time in mills
|
|
85
127
|
* OAuth access token expires time in mills
|
|
86
128
|
*/
|
|
87
129
|
expiresAt: number;
|
|
88
130
|
}
|
|
89
131
|
export declare class Session {
|
|
90
132
|
/**
|
|
133
|
+
* Authenticate token
|
|
91
134
|
* Authenticate token
|
|
92
135
|
*/
|
|
93
136
|
token: string;
|
|
94
137
|
/**
|
|
138
|
+
* User id
|
|
95
139
|
* User id
|
|
96
140
|
*/
|
|
97
141
|
userid: string;
|
|
98
142
|
/**
|
|
143
|
+
* User name
|
|
99
144
|
* User name
|
|
100
145
|
*/
|
|
101
146
|
username: string;
|
|
102
147
|
/**
|
|
148
|
+
* Nick name
|
|
103
149
|
* Nick name
|
|
104
150
|
*/
|
|
105
151
|
nickname: string;
|
|
106
152
|
/**
|
|
153
|
+
* User avatar uri
|
|
107
154
|
* User avatar uri
|
|
108
155
|
*/
|
|
109
156
|
avatar: string;
|
|
110
157
|
/**
|
|
158
|
+
* User contact mobile
|
|
111
159
|
* User contact mobile
|
|
112
160
|
*/
|
|
113
161
|
mobile: string;
|
|
114
162
|
/**
|
|
163
|
+
* User contact mail
|
|
115
164
|
* User contact mail
|
|
116
165
|
*/
|
|
117
166
|
mail: string;
|
|
118
167
|
/**
|
|
168
|
+
* User department id
|
|
119
169
|
* User department id
|
|
120
170
|
*/
|
|
121
171
|
deptId: string;
|
|
122
172
|
/**
|
|
173
|
+
* User mdc
|
|
123
174
|
* User mdc
|
|
124
175
|
*/
|
|
125
176
|
mdc: string;
|
|
126
177
|
/**
|
|
178
|
+
* User institution id
|
|
127
179
|
* User institution id
|
|
128
180
|
*/
|
|
129
181
|
instIds: string[];
|
|
130
182
|
/**
|
|
183
|
+
* User attributes
|
|
131
184
|
* User attributes
|
|
132
185
|
*/
|
|
133
186
|
attrs: string[];
|
|
134
187
|
/**
|
|
188
|
+
* User extension dict info
|
|
135
189
|
* User extension dict info
|
|
136
190
|
*/
|
|
137
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;
|