@firmer/mesh 0.0.3 → 0.0.4
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/http/consumer.d.ts +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/mesh.js +7354 -6261
- package/dist/mesh.umd.cjs +8 -8
- package/dist/mpc/context.d.ts +5 -5
- package/dist/mpc/mesh.d.ts +34 -16
- package/dist/psi/context.d.ts +19 -28
- package/dist/psi/daler.d.ts +72 -0
- package/dist/psi/index.d.ts +1 -0
- package/dist/psi/kms.d.ts +25 -5
- package/dist/psi/tokenizer.d.ts +8 -2
- package/dist/types/daler.d.ts +168 -0
- package/dist/types/environ.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/keys.d.ts +65 -9
- package/dist/types/oauth2.d.ts +2 -2
- package/dist/types/route.d.ts +130 -0
- package/dist/types/status.d.ts +1 -0
- package/dist/types/transport.d.ts +2 -2
- package/package.json +11 -11
package/dist/types/route.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export declare class Route {
|
|
|
47
47
|
* 下行带宽Mbps
|
|
48
48
|
*/
|
|
49
49
|
downstream: number;
|
|
50
|
+
/**
|
|
51
|
+
* 请求次数
|
|
52
|
+
*/
|
|
53
|
+
requests: number;
|
|
50
54
|
/**
|
|
51
55
|
* 根证书
|
|
52
56
|
*/
|
|
@@ -63,6 +67,14 @@ export declare class Route {
|
|
|
63
67
|
* 对端根证书
|
|
64
68
|
*/
|
|
65
69
|
guestRoot: string;
|
|
70
|
+
/**
|
|
71
|
+
* Signer algorithm provider. SM2 or others
|
|
72
|
+
*/
|
|
73
|
+
sap: string;
|
|
74
|
+
/**
|
|
75
|
+
* Skip TLS verification
|
|
76
|
+
*/
|
|
77
|
+
skip: boolean;
|
|
66
78
|
/**
|
|
67
79
|
* JSON信息
|
|
68
80
|
*/
|
|
@@ -88,3 +100,121 @@ export declare class Route {
|
|
|
88
100
|
*/
|
|
89
101
|
updateBy: string;
|
|
90
102
|
}
|
|
103
|
+
export declare class DynamicOption {
|
|
104
|
+
/**
|
|
105
|
+
* Signer algorithm provider. SM2 or others
|
|
106
|
+
*/
|
|
107
|
+
sap: string;
|
|
108
|
+
/**
|
|
109
|
+
* Route certificate
|
|
110
|
+
*/
|
|
111
|
+
crt: string;
|
|
112
|
+
/**
|
|
113
|
+
* Route private key
|
|
114
|
+
*/
|
|
115
|
+
key: string;
|
|
116
|
+
/**
|
|
117
|
+
* Route CA certificates
|
|
118
|
+
*/
|
|
119
|
+
cas: string[];
|
|
120
|
+
/**
|
|
121
|
+
* Route service SNI
|
|
122
|
+
*/
|
|
123
|
+
sni: string;
|
|
124
|
+
/**
|
|
125
|
+
* Skip TLS verification
|
|
126
|
+
*/
|
|
127
|
+
skip: boolean;
|
|
128
|
+
}
|
|
129
|
+
export declare class DynamicRoute {
|
|
130
|
+
/**
|
|
131
|
+
* Route name
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Route matcher
|
|
136
|
+
*/
|
|
137
|
+
matcher: string;
|
|
138
|
+
/**
|
|
139
|
+
* Route priority
|
|
140
|
+
*/
|
|
141
|
+
priority: number;
|
|
142
|
+
/**
|
|
143
|
+
* Route backend
|
|
144
|
+
*/
|
|
145
|
+
services: string[];
|
|
146
|
+
/**
|
|
147
|
+
* Route filters
|
|
148
|
+
*/
|
|
149
|
+
filters: string[];
|
|
150
|
+
/**
|
|
151
|
+
* Route proxy
|
|
152
|
+
*/
|
|
153
|
+
proxy: string;
|
|
154
|
+
/**
|
|
155
|
+
* Route option
|
|
156
|
+
*/
|
|
157
|
+
option: DynamicOption;
|
|
158
|
+
}
|
|
159
|
+
export declare class DynamicServer {
|
|
160
|
+
/**
|
|
161
|
+
* Route name
|
|
162
|
+
*/
|
|
163
|
+
name: string;
|
|
164
|
+
/**
|
|
165
|
+
* Server kind, Reverse/Forward/TCPReverse/TCPForward
|
|
166
|
+
*/
|
|
167
|
+
kind: string;
|
|
168
|
+
/**
|
|
169
|
+
* Route listen address, e.g.
|
|
170
|
+
*/
|
|
171
|
+
listen: string;
|
|
172
|
+
/**
|
|
173
|
+
* Route rules
|
|
174
|
+
*/
|
|
175
|
+
routes: DynamicRoute[];
|
|
176
|
+
/**
|
|
177
|
+
* Route option
|
|
178
|
+
*/
|
|
179
|
+
option: DynamicOption;
|
|
180
|
+
}
|
|
181
|
+
export declare class Matcher {
|
|
182
|
+
/**
|
|
183
|
+
* 匹配表达式
|
|
184
|
+
*/
|
|
185
|
+
expr: string;
|
|
186
|
+
/**
|
|
187
|
+
* 匹配值
|
|
188
|
+
*/
|
|
189
|
+
value: string;
|
|
190
|
+
}
|
|
191
|
+
export declare class Netlist {
|
|
192
|
+
/**
|
|
193
|
+
* 名称
|
|
194
|
+
*/
|
|
195
|
+
name: string;
|
|
196
|
+
/**
|
|
197
|
+
* 类型:whitelist/blacklist
|
|
198
|
+
*/
|
|
199
|
+
kind: string;
|
|
200
|
+
/**
|
|
201
|
+
* 协议:L4/L7
|
|
202
|
+
*/
|
|
203
|
+
layer: string;
|
|
204
|
+
/**
|
|
205
|
+
* 优先级
|
|
206
|
+
*/
|
|
207
|
+
priority: number;
|
|
208
|
+
/**
|
|
209
|
+
* 状态 1启用 2禁用
|
|
210
|
+
*/
|
|
211
|
+
status: number;
|
|
212
|
+
/**
|
|
213
|
+
* 说明
|
|
214
|
+
*/
|
|
215
|
+
memo: string;
|
|
216
|
+
/**
|
|
217
|
+
* 匹配规则
|
|
218
|
+
*/
|
|
219
|
+
matchers: Matcher[];
|
|
220
|
+
}
|
package/dist/types/status.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firmer/mesh",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Mesh: A lightweight, distributed, relational network architecture for MPC",
|
|
5
5
|
"homepage": "mesh",
|
|
6
6
|
"repository": "git.firmer.tech/firmer/mesh",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"coverage": "vitest run --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@grpc/grpc-js": "^1.
|
|
36
|
-
"@grpc/proto-loader": "^0.
|
|
37
|
-
"@types/node": "^24.
|
|
35
|
+
"@grpc/grpc-js": "^1.14.0",
|
|
36
|
+
"@grpc/proto-loader": "^0.8.0",
|
|
37
|
+
"@types/node": "^24.8.1",
|
|
38
38
|
"async": "^3.2.6",
|
|
39
|
-
"axios": "^1.
|
|
39
|
+
"axios": "^1.12.2",
|
|
40
40
|
"buffer": "^6.0.3",
|
|
41
|
-
"google-protobuf": "^
|
|
42
|
-
"grpc-web": "^
|
|
41
|
+
"google-protobuf": "^4.0.0",
|
|
42
|
+
"grpc-web": "^2.0.2",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"moment": "^2.30.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@firmer/tsc": "0.0.1",
|
|
48
|
-
"@types/react": "^19.
|
|
48
|
+
"@types/react": "^19.2.2",
|
|
49
49
|
"reflect-metadata": "^0.2.2",
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
"vite": "^
|
|
50
|
+
"typescript": "^5.9.3",
|
|
51
|
+
"vite": "^7.1.11",
|
|
52
52
|
"vite-plugin-dts": "^4.5.4",
|
|
53
|
-
"vitest": "^3.2.
|
|
53
|
+
"vitest": "^3.2.4"
|
|
54
54
|
},
|
|
55
55
|
"packageManager": "yarn@4.9.2"
|
|
56
56
|
}
|