@lazycatcloud/sdk 0.1.189 → 0.1.191
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/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +10 -5
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +8 -3
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +10 -6
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +12 -8
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +5 -3
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +57 -39
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +3 -1
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +10 -6
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +12 -8
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +14 -10
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +10 -6
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +9 -7
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +15 -9
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +196 -117
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +15 -9
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +3 -1
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +3 -1
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +5 -3
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +8 -4
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +3 -1
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +10 -5
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +27 -19
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +3 -1
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +15 -9
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +12 -7
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +32 -10
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +112 -27
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +5 -3
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +4 -0
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +14 -3
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +10 -6
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +15 -8
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +18 -11
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +7 -5
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +8 -4
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +3 -0
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +29 -12
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +364 -167
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +842 -348
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +13 -7
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
|
@@ -52,43 +52,29 @@ export interface FreeVEIPRequest {
|
|
|
52
52
|
}
|
|
53
53
|
export interface FreeVEIPReply {
|
|
54
54
|
}
|
|
55
|
-
export interface AppCertRequest {
|
|
56
|
-
appid: string;
|
|
57
|
-
/** 单实例则为空,多实例为APP所部署时的UID */
|
|
58
|
-
uid: string;
|
|
59
|
-
/** 证书有效时间,单位s */
|
|
60
|
-
validSeconds: number;
|
|
61
|
-
}
|
|
62
|
-
export interface AppCertReply {
|
|
63
|
-
/** PEM格式的APP证书 */
|
|
64
|
-
cert: string;
|
|
65
|
-
/** PEM格式的APP私钥 */
|
|
66
|
-
privateKey: string;
|
|
67
|
-
/**
|
|
68
|
-
* 盒子证书,同一盒子内所有app的box_cert都是相同的,
|
|
69
|
-
* 可以作为CA证书的角色来使用
|
|
70
|
-
*/
|
|
71
|
-
boxCert: string;
|
|
72
|
-
}
|
|
73
55
|
export interface AuthToken {
|
|
74
56
|
/** 登陆时服务器返回的token */
|
|
75
57
|
token: string;
|
|
58
|
+
/**
|
|
59
|
+
* 若token_type = HTTPBasicAuth
|
|
60
|
+
* 则必须包含此字段,以便hportal可以分析出正确的登陆设备
|
|
61
|
+
* 若仅仅是为了验证帐号密码是否正确,直接调用CheckPassword接口
|
|
62
|
+
*/
|
|
63
|
+
accessIp: string;
|
|
64
|
+
tokenType: AuthToken_TokenType;
|
|
76
65
|
/**
|
|
77
66
|
* 若设置了此地址,则在未检测到auth-token时,
|
|
78
67
|
* 可以使用返回信息中的autologin_token_request_url进行自动查找auth-token
|
|
79
|
-
*
|
|
68
|
+
* 此地址一般是ingress等组件上提供的服务。
|
|
80
69
|
* 会通过html post form形式调用,附带token和redirect两个字段
|
|
81
70
|
* token为自动搜索到的token,redirect为AuthToken.autologin_redirect_url的值。
|
|
82
71
|
* 若token为空表示自动搜索token失败。
|
|
72
|
+
*
|
|
73
|
+
* @deprecated
|
|
83
74
|
*/
|
|
84
75
|
autologinTokenPostUrl: string;
|
|
85
|
-
/**
|
|
86
|
-
* 若token_type = HTTPBasicAuth或使用autologin机制,
|
|
87
|
-
* 则必须包含此字段,以便hportal可以分析出正确的登陆设备
|
|
88
|
-
*/
|
|
89
|
-
accessIp: string;
|
|
76
|
+
/** @deprecated */
|
|
90
77
|
autologinRedirectUrl: string;
|
|
91
|
-
tokenType: AuthToken_TokenType;
|
|
92
78
|
}
|
|
93
79
|
export declare enum AuthToken_TokenType {
|
|
94
80
|
/** Raw - token return by hportal-server login method */
|
|
@@ -102,10 +88,16 @@ export declare function authToken_TokenTypeToJSON(object: AuthToken_TokenType):
|
|
|
102
88
|
export interface LoginInfo {
|
|
103
89
|
uid: string;
|
|
104
90
|
deviceId: string;
|
|
91
|
+
/**
|
|
92
|
+
* 最近登陆时间,因为针对弱网优化因此不一定等于本次登陆时间
|
|
93
|
+
* 只有hserver重启或调用了ClearLoginSession后,才会真属于退出状态
|
|
94
|
+
*/
|
|
105
95
|
when: Date | undefined;
|
|
106
96
|
/**
|
|
107
97
|
* 若uid为空, ingress应该返回此html内容给浏览器进行自动登陆。
|
|
108
98
|
* 此html片段会尝试与hclient通讯获取auth-token后post到AuthToken.autologin_token_post_url上
|
|
99
|
+
*
|
|
100
|
+
* @deprecated
|
|
109
101
|
*/
|
|
110
102
|
autologinTokenRequestContent: string;
|
|
111
103
|
/** 当前登陆设备的版本信息 */
|
|
@@ -139,9 +131,9 @@ export interface DomainCertReply {
|
|
|
139
131
|
ocsp: Uint8Array;
|
|
140
132
|
}
|
|
141
133
|
export interface Device {
|
|
134
|
+
/** 设备的唯一ID */
|
|
142
135
|
udid: string;
|
|
143
|
-
/**
|
|
144
|
-
peerId: string;
|
|
136
|
+
/** 此设备当前是否连接到盒子 */
|
|
145
137
|
isOnline: boolean;
|
|
146
138
|
/** 因为device api的监听端口可能会变化,所以此url有效性不会太长 */
|
|
147
139
|
deviceApiUrl: string;
|
|
@@ -151,7 +143,18 @@ export interface Device {
|
|
|
151
143
|
model: string;
|
|
152
144
|
/** 设备绑定时间 */
|
|
153
145
|
bindingTime: Date | undefined;
|
|
154
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* TODO 待删除, 上层不应该感知peer_id
|
|
148
|
+
*
|
|
149
|
+
* @deprecated
|
|
150
|
+
*/
|
|
151
|
+
peerId: string;
|
|
152
|
+
/**
|
|
153
|
+
* 设备是否是移动平台
|
|
154
|
+
* 此字段应该由上层代码自行分析
|
|
155
|
+
*
|
|
156
|
+
* @deprecated
|
|
157
|
+
*/
|
|
155
158
|
isMobile: boolean;
|
|
156
159
|
}
|
|
157
160
|
export interface ListDeviceRequest {
|
|
@@ -173,7 +176,6 @@ export interface QueryRoleReply {
|
|
|
173
176
|
}
|
|
174
177
|
export interface ResetPasswordRequest {
|
|
175
178
|
uid: string;
|
|
176
|
-
oldPassword: string;
|
|
177
179
|
newPassword: string;
|
|
178
180
|
}
|
|
179
181
|
export interface DeleteUserRequest {
|
|
@@ -184,10 +186,104 @@ export interface CreateUserRequest {
|
|
|
184
186
|
password: string;
|
|
185
187
|
role: Role;
|
|
186
188
|
}
|
|
189
|
+
export interface CheckPasswordRequest {
|
|
190
|
+
uid: string;
|
|
191
|
+
password: string;
|
|
192
|
+
}
|
|
193
|
+
export interface ClearLoginSessionRequest {
|
|
194
|
+
/** 对此UID下的所有设备进行处理 */
|
|
195
|
+
uid: string;
|
|
196
|
+
/** 但不对以下设备进行操作 */
|
|
197
|
+
excludeDevices: string[];
|
|
198
|
+
}
|
|
199
|
+
export interface ClearLoginSessionReply {
|
|
200
|
+
}
|
|
201
|
+
export interface ChangeTrustEndDeviceRequest {
|
|
202
|
+
uid: string;
|
|
203
|
+
/** 如果是Add,则此字段内容应该为合法的PeerID,若为Del则应该是device_id */
|
|
204
|
+
cid: string;
|
|
205
|
+
action: ChangeTrustEndDeviceRequest_Action;
|
|
206
|
+
}
|
|
207
|
+
export declare enum ChangeTrustEndDeviceRequest_Action {
|
|
208
|
+
Add = 0,
|
|
209
|
+
Del = 1,
|
|
210
|
+
UNRECOGNIZED = -1
|
|
211
|
+
}
|
|
212
|
+
export declare function changeTrustEndDeviceRequest_ActionFromJSON(object: any): ChangeTrustEndDeviceRequest_Action;
|
|
213
|
+
export declare function changeTrustEndDeviceRequest_ActionToJSON(object: ChangeTrustEndDeviceRequest_Action): string;
|
|
214
|
+
export interface ChangeTrustEndDeviceReply {
|
|
215
|
+
}
|
|
216
|
+
/** 此message的字段需要和hportal/apis/boxapi/common.proto中的BoxSystemStatus保持同步 */
|
|
217
|
+
export interface UpdateBoxSystemStatusRequest {
|
|
218
|
+
status: UpdateBoxSystemStatusRequest_SysStatus;
|
|
219
|
+
serviceUrl: string;
|
|
220
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* 若为true, 在hclient侧生成一个临时的[fc03:1136:3800::1]:$x地址提供给客户端访问.
|
|
223
|
+
* 具体会体现在shellapi.proto:BoxInfo.BoxHomeUrl上
|
|
224
|
+
*/
|
|
225
|
+
proxyTheServiceUrl: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* 在proxy_the_service_url=true时,支持设置是否仅管理员用户可以访问service_url
|
|
228
|
+
* 此处的权限管控仅是网络传输层面,service_url本身需要做基本的网络隔离,比如使用unix socket协议
|
|
229
|
+
*/
|
|
230
|
+
onlyAdminCanAccessServiceUrl: boolean;
|
|
231
|
+
}
|
|
232
|
+
export declare enum UpdateBoxSystemStatusRequest_SysStatus {
|
|
233
|
+
/** Booting - 系统正在启动中 */
|
|
234
|
+
Booting = 0,
|
|
235
|
+
/**
|
|
236
|
+
* Normal - 处于正常可用状态
|
|
237
|
+
* 一般此状态下service_url应该设置为https://$boxdomain
|
|
238
|
+
* proxy_the_service_url和only_admin_can_access_service_url都设置为false
|
|
239
|
+
*/
|
|
240
|
+
Normal = 1,
|
|
241
|
+
/**
|
|
242
|
+
* Exception - 处于异常状态,具体原因可读取ExceptionReason
|
|
243
|
+
* 一般此状态下service_url需要特殊设置且
|
|
244
|
+
* proxy_the_service_url和only_admin_can_access_service_url都设置为true
|
|
245
|
+
*/
|
|
246
|
+
Exception = 2,
|
|
247
|
+
UNRECOGNIZED = -1
|
|
248
|
+
}
|
|
249
|
+
export declare function updateBoxSystemStatusRequest_SysStatusFromJSON(object: any): UpdateBoxSystemStatusRequest_SysStatus;
|
|
250
|
+
export declare function updateBoxSystemStatusRequest_SysStatusToJSON(object: UpdateBoxSystemStatusRequest_SysStatus): string;
|
|
251
|
+
export declare enum UpdateBoxSystemStatusRequest_ExceptionReason {
|
|
252
|
+
/** Unknown - 其他原因 */
|
|
253
|
+
Unknown = 0,
|
|
254
|
+
/** WaitDataDiskDecryption - 等待加密数据盘被解密 */
|
|
255
|
+
WaitDataDiskDecryption = 1,
|
|
256
|
+
UNRECOGNIZED = -1
|
|
257
|
+
}
|
|
258
|
+
export declare function updateBoxSystemStatusRequest_ExceptionReasonFromJSON(object: any): UpdateBoxSystemStatusRequest_ExceptionReason;
|
|
259
|
+
export declare function updateBoxSystemStatusRequest_ExceptionReasonToJSON(object: UpdateBoxSystemStatusRequest_ExceptionReason): string;
|
|
260
|
+
export interface UpdateBoxSystemStatusResponse {
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 以下接口废弃-------------------------
|
|
264
|
+
*
|
|
265
|
+
* @deprecated
|
|
266
|
+
*/
|
|
267
|
+
export interface UpdateBoxStatusRequest {
|
|
268
|
+
/** 盒子是否启动完毕 */
|
|
269
|
+
startUp?: boolean | undefined;
|
|
270
|
+
/** 盒子数据盘状态是否OK */
|
|
271
|
+
dataPartition?: boolean | undefined;
|
|
272
|
+
}
|
|
273
|
+
/** @deprecated */
|
|
274
|
+
export interface UpdateBoxStatusResponse {
|
|
275
|
+
}
|
|
276
|
+
/** @deprecated */
|
|
277
|
+
export interface TrustUserDeviceRequest {
|
|
278
|
+
udid: string;
|
|
279
|
+
user: string;
|
|
280
|
+
}
|
|
281
|
+
/** @deprecated */
|
|
187
282
|
export interface ForceResetPasswordRequest {
|
|
188
283
|
uid: string;
|
|
189
284
|
newPassword: string;
|
|
190
285
|
}
|
|
286
|
+
/** @deprecated */
|
|
191
287
|
export interface LogoutRequest {
|
|
192
288
|
uid: string;
|
|
193
289
|
/** 设备唯一id */
|
|
@@ -204,21 +300,23 @@ export declare enum LogoutRequest_Reason {
|
|
|
204
300
|
}
|
|
205
301
|
export declare function logoutRequest_ReasonFromJSON(object: any): LogoutRequest_Reason;
|
|
206
302
|
export declare function logoutRequest_ReasonToJSON(object: LogoutRequest_Reason): string;
|
|
207
|
-
export interface
|
|
303
|
+
export interface AppCertRequest {
|
|
304
|
+
appid: string;
|
|
305
|
+
/** 单实例则为空,多实例为APP所部署时的UID */
|
|
208
306
|
uid: string;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
export interface TrustUserDeviceRequest {
|
|
212
|
-
udid: string;
|
|
213
|
-
user: string;
|
|
214
|
-
}
|
|
215
|
-
export interface UpdateBoxStatusRequest {
|
|
216
|
-
/** 盒子是否启动完毕 */
|
|
217
|
-
startUp?: boolean | undefined;
|
|
218
|
-
/** 盒子数据盘状态是否OK */
|
|
219
|
-
dataPartition?: boolean | undefined;
|
|
307
|
+
/** 证书有效时间,单位s */
|
|
308
|
+
validSeconds: number;
|
|
220
309
|
}
|
|
221
|
-
export interface
|
|
310
|
+
export interface AppCertReply {
|
|
311
|
+
/** PEM格式的APP证书 */
|
|
312
|
+
cert: string;
|
|
313
|
+
/** PEM格式的APP私钥 */
|
|
314
|
+
privateKey: string;
|
|
315
|
+
/**
|
|
316
|
+
* 盒子证书,同一盒子内所有app的box_cert都是相同的,
|
|
317
|
+
* 可以作为CA证书的角色来使用
|
|
318
|
+
*/
|
|
319
|
+
boxCert: string;
|
|
222
320
|
}
|
|
223
321
|
export declare const RemoteSocksRequest: {
|
|
224
322
|
encode(message: RemoteSocksRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -299,36 +397,6 @@ export declare const FreeVEIPReply: {
|
|
|
299
397
|
toJSON(_: FreeVEIPReply): unknown;
|
|
300
398
|
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): FreeVEIPReply;
|
|
301
399
|
};
|
|
302
|
-
export declare const AppCertRequest: {
|
|
303
|
-
encode(message: AppCertRequest, writer?: _m0.Writer): _m0.Writer;
|
|
304
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertRequest;
|
|
305
|
-
fromJSON(object: any): AppCertRequest;
|
|
306
|
-
toJSON(message: AppCertRequest): unknown;
|
|
307
|
-
fromPartial<I extends {
|
|
308
|
-
appid?: string;
|
|
309
|
-
uid?: string;
|
|
310
|
-
validSeconds?: number;
|
|
311
|
-
} & {
|
|
312
|
-
appid?: string;
|
|
313
|
-
uid?: string;
|
|
314
|
-
validSeconds?: number;
|
|
315
|
-
} & { [K in Exclude<keyof I, keyof AppCertRequest>]: never; }>(object: I): AppCertRequest;
|
|
316
|
-
};
|
|
317
|
-
export declare const AppCertReply: {
|
|
318
|
-
encode(message: AppCertReply, writer?: _m0.Writer): _m0.Writer;
|
|
319
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertReply;
|
|
320
|
-
fromJSON(object: any): AppCertReply;
|
|
321
|
-
toJSON(message: AppCertReply): unknown;
|
|
322
|
-
fromPartial<I extends {
|
|
323
|
-
cert?: string;
|
|
324
|
-
privateKey?: string;
|
|
325
|
-
boxCert?: string;
|
|
326
|
-
} & {
|
|
327
|
-
cert?: string;
|
|
328
|
-
privateKey?: string;
|
|
329
|
-
boxCert?: string;
|
|
330
|
-
} & { [K in Exclude<keyof I, keyof AppCertReply>]: never; }>(object: I): AppCertReply;
|
|
331
|
-
};
|
|
332
400
|
export declare const AuthToken: {
|
|
333
401
|
encode(message: AuthToken, writer?: _m0.Writer): _m0.Writer;
|
|
334
402
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthToken;
|
|
@@ -336,16 +404,16 @@ export declare const AuthToken: {
|
|
|
336
404
|
toJSON(message: AuthToken): unknown;
|
|
337
405
|
fromPartial<I extends {
|
|
338
406
|
token?: string;
|
|
339
|
-
autologinTokenPostUrl?: string;
|
|
340
407
|
accessIp?: string;
|
|
341
|
-
autologinRedirectUrl?: string;
|
|
342
408
|
tokenType?: AuthToken_TokenType;
|
|
409
|
+
autologinTokenPostUrl?: string;
|
|
410
|
+
autologinRedirectUrl?: string;
|
|
343
411
|
} & {
|
|
344
412
|
token?: string;
|
|
345
|
-
autologinTokenPostUrl?: string;
|
|
346
413
|
accessIp?: string;
|
|
347
|
-
autologinRedirectUrl?: string;
|
|
348
414
|
tokenType?: AuthToken_TokenType;
|
|
415
|
+
autologinTokenPostUrl?: string;
|
|
416
|
+
autologinRedirectUrl?: string;
|
|
349
417
|
} & { [K in Exclude<keyof I, keyof AuthToken>]: never; }>(object: I): AuthToken;
|
|
350
418
|
};
|
|
351
419
|
export declare const LoginInfo: {
|
|
@@ -434,21 +502,21 @@ export declare const Device: {
|
|
|
434
502
|
toJSON(message: Device): unknown;
|
|
435
503
|
fromPartial<I extends {
|
|
436
504
|
udid?: string;
|
|
437
|
-
peerId?: string;
|
|
438
505
|
isOnline?: boolean;
|
|
439
506
|
deviceApiUrl?: string;
|
|
440
507
|
name?: string;
|
|
441
508
|
model?: string;
|
|
442
509
|
bindingTime?: Date | undefined;
|
|
510
|
+
peerId?: string;
|
|
443
511
|
isMobile?: boolean;
|
|
444
512
|
} & {
|
|
445
513
|
udid?: string;
|
|
446
|
-
peerId?: string;
|
|
447
514
|
isOnline?: boolean;
|
|
448
515
|
deviceApiUrl?: string;
|
|
449
516
|
name?: string;
|
|
450
517
|
model?: string;
|
|
451
518
|
bindingTime?: Date | undefined;
|
|
519
|
+
peerId?: string;
|
|
452
520
|
isMobile?: boolean;
|
|
453
521
|
} & { [K in Exclude<keyof I, keyof Device>]: never; }>(object: I): Device;
|
|
454
522
|
};
|
|
@@ -471,50 +539,50 @@ export declare const ListDeviceReply: {
|
|
|
471
539
|
fromPartial<I extends {
|
|
472
540
|
devices?: {
|
|
473
541
|
udid?: string;
|
|
474
|
-
peerId?: string;
|
|
475
542
|
isOnline?: boolean;
|
|
476
543
|
deviceApiUrl?: string;
|
|
477
544
|
name?: string;
|
|
478
545
|
model?: string;
|
|
479
546
|
bindingTime?: Date | undefined;
|
|
547
|
+
peerId?: string;
|
|
480
548
|
isMobile?: boolean;
|
|
481
549
|
}[];
|
|
482
550
|
} & {
|
|
483
551
|
devices?: {
|
|
484
552
|
udid?: string;
|
|
485
|
-
peerId?: string;
|
|
486
553
|
isOnline?: boolean;
|
|
487
554
|
deviceApiUrl?: string;
|
|
488
555
|
name?: string;
|
|
489
556
|
model?: string;
|
|
490
557
|
bindingTime?: Date | undefined;
|
|
558
|
+
peerId?: string;
|
|
491
559
|
isMobile?: boolean;
|
|
492
560
|
}[] & ({
|
|
493
561
|
udid?: string;
|
|
494
|
-
peerId?: string;
|
|
495
562
|
isOnline?: boolean;
|
|
496
563
|
deviceApiUrl?: string;
|
|
497
564
|
name?: string;
|
|
498
565
|
model?: string;
|
|
499
566
|
bindingTime?: Date | undefined;
|
|
567
|
+
peerId?: string;
|
|
500
568
|
isMobile?: boolean;
|
|
501
569
|
} & {
|
|
502
570
|
udid?: string;
|
|
503
|
-
peerId?: string;
|
|
504
571
|
isOnline?: boolean;
|
|
505
572
|
deviceApiUrl?: string;
|
|
506
573
|
name?: string;
|
|
507
574
|
model?: string;
|
|
508
575
|
bindingTime?: Date | undefined;
|
|
576
|
+
peerId?: string;
|
|
509
577
|
isMobile?: boolean;
|
|
510
578
|
} & { [K in Exclude<keyof I["devices"][number], keyof Device>]: never; })[] & { [K_1 in Exclude<keyof I["devices"], keyof {
|
|
511
579
|
udid?: string;
|
|
512
|
-
peerId?: string;
|
|
513
580
|
isOnline?: boolean;
|
|
514
581
|
deviceApiUrl?: string;
|
|
515
582
|
name?: string;
|
|
516
583
|
model?: string;
|
|
517
584
|
bindingTime?: Date | undefined;
|
|
585
|
+
peerId?: string;
|
|
518
586
|
isMobile?: boolean;
|
|
519
587
|
}[]>]: never; };
|
|
520
588
|
} & { [K_2 in Exclude<keyof I, "devices">]: never; }>(object: I): ListDeviceReply;
|
|
@@ -563,11 +631,9 @@ export declare const ResetPasswordRequest: {
|
|
|
563
631
|
toJSON(message: ResetPasswordRequest): unknown;
|
|
564
632
|
fromPartial<I extends {
|
|
565
633
|
uid?: string;
|
|
566
|
-
oldPassword?: string;
|
|
567
634
|
newPassword?: string;
|
|
568
635
|
} & {
|
|
569
636
|
uid?: string;
|
|
570
|
-
oldPassword?: string;
|
|
571
637
|
newPassword?: string;
|
|
572
638
|
} & { [K in Exclude<keyof I, keyof ResetPasswordRequest>]: never; }>(object: I): ResetPasswordRequest;
|
|
573
639
|
};
|
|
@@ -597,59 +663,86 @@ export declare const CreateUserRequest: {
|
|
|
597
663
|
role?: Role;
|
|
598
664
|
} & { [K in Exclude<keyof I, keyof CreateUserRequest>]: never; }>(object: I): CreateUserRequest;
|
|
599
665
|
};
|
|
600
|
-
export declare const
|
|
601
|
-
encode(message:
|
|
602
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
603
|
-
fromJSON(object: any):
|
|
604
|
-
toJSON(message:
|
|
666
|
+
export declare const CheckPasswordRequest: {
|
|
667
|
+
encode(message: CheckPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
668
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CheckPasswordRequest;
|
|
669
|
+
fromJSON(object: any): CheckPasswordRequest;
|
|
670
|
+
toJSON(message: CheckPasswordRequest): unknown;
|
|
605
671
|
fromPartial<I extends {
|
|
606
672
|
uid?: string;
|
|
607
|
-
|
|
673
|
+
password?: string;
|
|
608
674
|
} & {
|
|
609
675
|
uid?: string;
|
|
610
|
-
|
|
611
|
-
} & { [K in Exclude<keyof I, keyof
|
|
676
|
+
password?: string;
|
|
677
|
+
} & { [K in Exclude<keyof I, keyof CheckPasswordRequest>]: never; }>(object: I): CheckPasswordRequest;
|
|
612
678
|
};
|
|
613
|
-
export declare const
|
|
614
|
-
encode(message:
|
|
615
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
616
|
-
fromJSON(object: any):
|
|
617
|
-
toJSON(message:
|
|
679
|
+
export declare const ClearLoginSessionRequest: {
|
|
680
|
+
encode(message: ClearLoginSessionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
681
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClearLoginSessionRequest;
|
|
682
|
+
fromJSON(object: any): ClearLoginSessionRequest;
|
|
683
|
+
toJSON(message: ClearLoginSessionRequest): unknown;
|
|
618
684
|
fromPartial<I extends {
|
|
619
685
|
uid?: string;
|
|
620
|
-
|
|
621
|
-
reason?: LogoutRequest_Reason;
|
|
686
|
+
excludeDevices?: string[];
|
|
622
687
|
} & {
|
|
623
688
|
uid?: string;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
} & { [K in Exclude<keyof I, keyof LogoutRequest>]: never; }>(object: I): LogoutRequest;
|
|
689
|
+
excludeDevices?: string[] & string[] & { [K in Exclude<keyof I["excludeDevices"], keyof string[]>]: never; };
|
|
690
|
+
} & { [K_1 in Exclude<keyof I, keyof ClearLoginSessionRequest>]: never; }>(object: I): ClearLoginSessionRequest;
|
|
627
691
|
};
|
|
628
|
-
export declare const
|
|
629
|
-
encode(
|
|
630
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
631
|
-
fromJSON(
|
|
632
|
-
toJSON(
|
|
692
|
+
export declare const ClearLoginSessionReply: {
|
|
693
|
+
encode(_: ClearLoginSessionReply, writer?: _m0.Writer): _m0.Writer;
|
|
694
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClearLoginSessionReply;
|
|
695
|
+
fromJSON(_: any): ClearLoginSessionReply;
|
|
696
|
+
toJSON(_: ClearLoginSessionReply): unknown;
|
|
697
|
+
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): ClearLoginSessionReply;
|
|
698
|
+
};
|
|
699
|
+
export declare const ChangeTrustEndDeviceRequest: {
|
|
700
|
+
encode(message: ChangeTrustEndDeviceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
701
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeTrustEndDeviceRequest;
|
|
702
|
+
fromJSON(object: any): ChangeTrustEndDeviceRequest;
|
|
703
|
+
toJSON(message: ChangeTrustEndDeviceRequest): unknown;
|
|
633
704
|
fromPartial<I extends {
|
|
634
705
|
uid?: string;
|
|
635
|
-
|
|
706
|
+
cid?: string;
|
|
707
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
636
708
|
} & {
|
|
637
709
|
uid?: string;
|
|
638
|
-
|
|
639
|
-
|
|
710
|
+
cid?: string;
|
|
711
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
712
|
+
} & { [K in Exclude<keyof I, keyof ChangeTrustEndDeviceRequest>]: never; }>(object: I): ChangeTrustEndDeviceRequest;
|
|
640
713
|
};
|
|
641
|
-
export declare const
|
|
642
|
-
encode(
|
|
643
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
644
|
-
fromJSON(
|
|
645
|
-
toJSON(
|
|
714
|
+
export declare const ChangeTrustEndDeviceReply: {
|
|
715
|
+
encode(_: ChangeTrustEndDeviceReply, writer?: _m0.Writer): _m0.Writer;
|
|
716
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeTrustEndDeviceReply;
|
|
717
|
+
fromJSON(_: any): ChangeTrustEndDeviceReply;
|
|
718
|
+
toJSON(_: ChangeTrustEndDeviceReply): unknown;
|
|
719
|
+
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): ChangeTrustEndDeviceReply;
|
|
720
|
+
};
|
|
721
|
+
export declare const UpdateBoxSystemStatusRequest: {
|
|
722
|
+
encode(message: UpdateBoxSystemStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
723
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxSystemStatusRequest;
|
|
724
|
+
fromJSON(object: any): UpdateBoxSystemStatusRequest;
|
|
725
|
+
toJSON(message: UpdateBoxSystemStatusRequest): unknown;
|
|
646
726
|
fromPartial<I extends {
|
|
647
|
-
|
|
648
|
-
|
|
727
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
728
|
+
serviceUrl?: string;
|
|
729
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
730
|
+
proxyTheServiceUrl?: boolean;
|
|
731
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
649
732
|
} & {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
733
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
734
|
+
serviceUrl?: string;
|
|
735
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
736
|
+
proxyTheServiceUrl?: boolean;
|
|
737
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
738
|
+
} & { [K in Exclude<keyof I, keyof UpdateBoxSystemStatusRequest>]: never; }>(object: I): UpdateBoxSystemStatusRequest;
|
|
739
|
+
};
|
|
740
|
+
export declare const UpdateBoxSystemStatusResponse: {
|
|
741
|
+
encode(_: UpdateBoxSystemStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
742
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxSystemStatusResponse;
|
|
743
|
+
fromJSON(_: any): UpdateBoxSystemStatusResponse;
|
|
744
|
+
toJSON(_: UpdateBoxSystemStatusResponse): unknown;
|
|
745
|
+
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): UpdateBoxSystemStatusResponse;
|
|
653
746
|
};
|
|
654
747
|
export declare const UpdateBoxStatusRequest: {
|
|
655
748
|
encode(message: UpdateBoxStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -671,104 +764,208 @@ export declare const UpdateBoxStatusResponse: {
|
|
|
671
764
|
toJSON(_: UpdateBoxStatusResponse): unknown;
|
|
672
765
|
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): UpdateBoxStatusResponse;
|
|
673
766
|
};
|
|
767
|
+
export declare const TrustUserDeviceRequest: {
|
|
768
|
+
encode(message: TrustUserDeviceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
769
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TrustUserDeviceRequest;
|
|
770
|
+
fromJSON(object: any): TrustUserDeviceRequest;
|
|
771
|
+
toJSON(message: TrustUserDeviceRequest): unknown;
|
|
772
|
+
fromPartial<I extends {
|
|
773
|
+
udid?: string;
|
|
774
|
+
user?: string;
|
|
775
|
+
} & {
|
|
776
|
+
udid?: string;
|
|
777
|
+
user?: string;
|
|
778
|
+
} & { [K in Exclude<keyof I, keyof TrustUserDeviceRequest>]: never; }>(object: I): TrustUserDeviceRequest;
|
|
779
|
+
};
|
|
780
|
+
export declare const ForceResetPasswordRequest: {
|
|
781
|
+
encode(message: ForceResetPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
782
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ForceResetPasswordRequest;
|
|
783
|
+
fromJSON(object: any): ForceResetPasswordRequest;
|
|
784
|
+
toJSON(message: ForceResetPasswordRequest): unknown;
|
|
785
|
+
fromPartial<I extends {
|
|
786
|
+
uid?: string;
|
|
787
|
+
newPassword?: string;
|
|
788
|
+
} & {
|
|
789
|
+
uid?: string;
|
|
790
|
+
newPassword?: string;
|
|
791
|
+
} & { [K in Exclude<keyof I, keyof ForceResetPasswordRequest>]: never; }>(object: I): ForceResetPasswordRequest;
|
|
792
|
+
};
|
|
793
|
+
export declare const LogoutRequest: {
|
|
794
|
+
encode(message: LogoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
795
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogoutRequest;
|
|
796
|
+
fromJSON(object: any): LogoutRequest;
|
|
797
|
+
toJSON(message: LogoutRequest): unknown;
|
|
798
|
+
fromPartial<I extends {
|
|
799
|
+
uid?: string;
|
|
800
|
+
udid?: string;
|
|
801
|
+
reason?: LogoutRequest_Reason;
|
|
802
|
+
} & {
|
|
803
|
+
uid?: string;
|
|
804
|
+
udid?: string;
|
|
805
|
+
reason?: LogoutRequest_Reason;
|
|
806
|
+
} & { [K in Exclude<keyof I, keyof LogoutRequest>]: never; }>(object: I): LogoutRequest;
|
|
807
|
+
};
|
|
808
|
+
export declare const AppCertRequest: {
|
|
809
|
+
encode(message: AppCertRequest, writer?: _m0.Writer): _m0.Writer;
|
|
810
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertRequest;
|
|
811
|
+
fromJSON(object: any): AppCertRequest;
|
|
812
|
+
toJSON(message: AppCertRequest): unknown;
|
|
813
|
+
fromPartial<I extends {
|
|
814
|
+
appid?: string;
|
|
815
|
+
uid?: string;
|
|
816
|
+
validSeconds?: number;
|
|
817
|
+
} & {
|
|
818
|
+
appid?: string;
|
|
819
|
+
uid?: string;
|
|
820
|
+
validSeconds?: number;
|
|
821
|
+
} & { [K in Exclude<keyof I, keyof AppCertRequest>]: never; }>(object: I): AppCertRequest;
|
|
822
|
+
};
|
|
823
|
+
export declare const AppCertReply: {
|
|
824
|
+
encode(message: AppCertReply, writer?: _m0.Writer): _m0.Writer;
|
|
825
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertReply;
|
|
826
|
+
fromJSON(object: any): AppCertReply;
|
|
827
|
+
toJSON(message: AppCertReply): unknown;
|
|
828
|
+
fromPartial<I extends {
|
|
829
|
+
cert?: string;
|
|
830
|
+
privateKey?: string;
|
|
831
|
+
boxCert?: string;
|
|
832
|
+
} & {
|
|
833
|
+
cert?: string;
|
|
834
|
+
privateKey?: string;
|
|
835
|
+
boxCert?: string;
|
|
836
|
+
} & { [K in Exclude<keyof I, keyof AppCertReply>]: never; }>(object: I): AppCertReply;
|
|
837
|
+
};
|
|
674
838
|
export interface HPortalSys {
|
|
675
839
|
/** 用auth-token反向查询登陆的设备以及UID */
|
|
676
840
|
QueryLogin(request: DeepPartial<AuthToken>, metadata?: grpc.Metadata): Promise<LoginInfo>;
|
|
677
|
-
/** 根据UID返回所有的设备列表 */
|
|
678
|
-
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
679
|
-
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
680
841
|
QueryBoxInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<BoxInfo>;
|
|
681
842
|
/**
|
|
682
843
|
* 获取盒子所属域名下或下一级域名的https证书。
|
|
683
844
|
* 注意不是所有ACME服务器都支持泛域名。
|
|
684
845
|
*/
|
|
685
846
|
GetDomainCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
686
|
-
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
687
|
-
/**
|
|
688
|
-
* 在部署具体app前,调用此接口获取app证书
|
|
689
|
-
* APP证书格式为:
|
|
690
|
-
* Issuer: O = $BOX.ORIGIN, CN = $BOX.DOMAIN, serialNumber = $BOX.ID
|
|
691
|
-
* Subject: O = $BOX.ORIGIN, CN = $APP.DOMAIN, serialNumber = '$UID@$APP.ID || $APP.ID'
|
|
692
|
-
* Issuer为box.crt,通过QueryBoxInfo查询到BoxInfo.BoxCrt。并且box.crt的公钥与box.id是一一对应关系。
|
|
693
|
-
*
|
|
694
|
-
* 盒子内部组件可以直接通过QueryBoxInfo来验证信任链是否合法,盒子外部系统需要通过其他机制比如libp2p.identify去验证box.crt的合法性。
|
|
695
|
-
*/
|
|
696
|
-
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
697
847
|
/** 申请额外的外部可访问的IP,并配置对应访问域名 */
|
|
698
848
|
AllocVirtualExternalIP(request: DeepPartial<AllocVEIPRequest>, metadata?: grpc.Metadata): Promise<AllocVEIPReply>;
|
|
699
849
|
/** 释放虚拟IP */
|
|
700
850
|
FreeVirtualExternalIP(request: DeepPartial<FreeVEIPRequest>, metadata?: grpc.Metadata): Promise<FreeVEIPReply>;
|
|
701
851
|
/** 查询所有UID */
|
|
702
852
|
ListUsers(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<ListUsersReply>;
|
|
853
|
+
/** 创建用户信息 */
|
|
854
|
+
CreateUser(request: DeepPartial<CreateUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
855
|
+
/** 删除用户信息 */
|
|
856
|
+
DeleteUser(request: DeepPartial<DeleteUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
857
|
+
/** 修改新的密码 */
|
|
858
|
+
ResetPassword(request: DeepPartial<ResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
859
|
+
/** 校验用户密码是否正确 */
|
|
860
|
+
CheckPassword(request: DeepPartial<CheckPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
703
861
|
/** 根据用户uid查询用户信息 */
|
|
704
862
|
QueryRole(request: DeepPartial<UserID>, metadata?: grpc.Metadata): Promise<QueryRoleReply>;
|
|
705
863
|
/** 修改指定uid的用户角色 */
|
|
706
864
|
ChangeRole(request: DeepPartial<ChangeRoleReqeust>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
707
|
-
/**
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
865
|
+
/** 添加或删除受信任设备 */
|
|
866
|
+
ChangeTrustEndDevice(request: DeepPartial<ChangeTrustEndDeviceRequest>, metadata?: grpc.Metadata): Promise<ChangeTrustEndDeviceReply>;
|
|
867
|
+
/** 根据UID返回所有的设备列表 */
|
|
868
|
+
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
869
|
+
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
870
|
+
/** 删除登陆的会话状态 */
|
|
871
|
+
ClearLoginSession(request: DeepPartial<ClearLoginSessionRequest>, metadata?: grpc.Metadata): Promise<ClearLoginSessionReply>;
|
|
872
|
+
/** 获取remotesocks服务器地址 */
|
|
873
|
+
RemoteSocks(request: DeepPartial<RemoteSocksRequest>, metadata?: grpc.Metadata): Promise<RemoteSocksReply>;
|
|
874
|
+
/**
|
|
875
|
+
* hserver重启后默认设置BoxSystem为booting状态
|
|
876
|
+
* 实际的BoxSystem需要定期(建议两到三秒)设置其实际状态,避免hserver被手动或自动重启后设置的盒子系统状态错误
|
|
877
|
+
*/
|
|
878
|
+
UpdateBoxSystemStatus(request: DeepPartial<UpdateBoxSystemStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxSystemStatusResponse>;
|
|
879
|
+
/** @deprecated */
|
|
880
|
+
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
881
|
+
/** @deprecated */
|
|
882
|
+
UpdateBoxStatus(request: DeepPartial<UpdateBoxStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxStatusResponse>;
|
|
883
|
+
/** @deprecated */
|
|
714
884
|
ForceResetPassword(request: DeepPartial<ForceResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
715
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* 强制注销当前用户指定设备.
|
|
887
|
+
* 1. 删除设备应该通过ChangeTrustEndDevice来处理
|
|
888
|
+
* 2. 强制断开会话应该由ClearSession接口完成
|
|
889
|
+
*
|
|
890
|
+
* @deprecated
|
|
891
|
+
*/
|
|
716
892
|
Logout(request: DeepPartial<LogoutRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
717
|
-
/**
|
|
718
|
-
|
|
719
|
-
|
|
893
|
+
/**
|
|
894
|
+
* 以下接口要改名字
|
|
895
|
+
* 强制将特定设备加到受信任列表中
|
|
896
|
+
*
|
|
897
|
+
* @deprecated
|
|
898
|
+
*/
|
|
720
899
|
TrustUserDevice(request: DeepPartial<TrustUserDeviceRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
721
|
-
|
|
900
|
+
/**
|
|
901
|
+
* hportal不应该处理app cert相关逻辑,上层逻辑应该通过GetDomainCert获取到crt和key后自行处理
|
|
902
|
+
* 在部署具体app前,调用此接口获取app证书
|
|
903
|
+
* APP证书格式为:
|
|
904
|
+
* Issuer: O = $BOX.ORIGIN, CN = $BOX.DOMAIN, serialNumber = $BOX.ID
|
|
905
|
+
* Subject: O = $BOX.ORIGIN, CN = $APP.DOMAIN, serialNumber = '$UID@$APP.ID || $APP.ID'
|
|
906
|
+
* Issuer为box.crt,通过QueryBoxInfo查询到BoxInfo.BoxCrt。并且box.crt的公钥与box.id是一一对应关系。
|
|
907
|
+
*
|
|
908
|
+
* 盒子内部组件可以直接通过QueryBoxInfo来验证信任链是否合法,盒子外部系统需要通过其他机制比如libp2p.identify去验证box.crt的合法性。
|
|
909
|
+
*
|
|
910
|
+
* @deprecated
|
|
911
|
+
*/
|
|
912
|
+
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
722
913
|
}
|
|
723
914
|
export declare class HPortalSysClientImpl implements HPortalSys {
|
|
724
915
|
private readonly rpc;
|
|
725
916
|
constructor(rpc: Rpc);
|
|
726
917
|
QueryLogin(request: DeepPartial<AuthToken>, metadata?: grpc.Metadata): Promise<LoginInfo>;
|
|
727
|
-
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
728
|
-
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
729
918
|
QueryBoxInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<BoxInfo>;
|
|
730
919
|
GetDomainCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
731
|
-
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
732
|
-
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
733
920
|
AllocVirtualExternalIP(request: DeepPartial<AllocVEIPRequest>, metadata?: grpc.Metadata): Promise<AllocVEIPReply>;
|
|
734
921
|
FreeVirtualExternalIP(request: DeepPartial<FreeVEIPRequest>, metadata?: grpc.Metadata): Promise<FreeVEIPReply>;
|
|
735
922
|
ListUsers(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<ListUsersReply>;
|
|
923
|
+
CreateUser(request: DeepPartial<CreateUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
924
|
+
DeleteUser(request: DeepPartial<DeleteUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
925
|
+
ResetPassword(request: DeepPartial<ResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
926
|
+
CheckPassword(request: DeepPartial<CheckPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
736
927
|
QueryRole(request: DeepPartial<UserID>, metadata?: grpc.Metadata): Promise<QueryRoleReply>;
|
|
737
928
|
ChangeRole(request: DeepPartial<ChangeRoleReqeust>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
929
|
+
ChangeTrustEndDevice(request: DeepPartial<ChangeTrustEndDeviceRequest>, metadata?: grpc.Metadata): Promise<ChangeTrustEndDeviceReply>;
|
|
930
|
+
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
931
|
+
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
932
|
+
ClearLoginSession(request: DeepPartial<ClearLoginSessionRequest>, metadata?: grpc.Metadata): Promise<ClearLoginSessionReply>;
|
|
933
|
+
RemoteSocks(request: DeepPartial<RemoteSocksRequest>, metadata?: grpc.Metadata): Promise<RemoteSocksReply>;
|
|
934
|
+
UpdateBoxSystemStatus(request: DeepPartial<UpdateBoxSystemStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxSystemStatusResponse>;
|
|
935
|
+
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
936
|
+
UpdateBoxStatus(request: DeepPartial<UpdateBoxStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxStatusResponse>;
|
|
741
937
|
ForceResetPassword(request: DeepPartial<ForceResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
742
938
|
Logout(request: DeepPartial<LogoutRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
743
|
-
CheckPassword(request: DeepPartial<CheckPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
744
|
-
RemoteSocks(request: DeepPartial<RemoteSocksRequest>, metadata?: grpc.Metadata): Promise<RemoteSocksReply>;
|
|
745
939
|
TrustUserDevice(request: DeepPartial<TrustUserDeviceRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
746
|
-
|
|
940
|
+
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
747
941
|
}
|
|
748
942
|
export declare const HPortalSysDesc: {
|
|
749
943
|
serviceName: string;
|
|
750
944
|
};
|
|
751
945
|
export declare const HPortalSysQueryLoginDesc: UnaryMethodDefinitionish;
|
|
752
|
-
export declare const HPortalSysListDevicesDesc: UnaryMethodDefinitionish;
|
|
753
|
-
export declare const HPortalSysQueryDeviceByIDDesc: UnaryMethodDefinitionish;
|
|
754
946
|
export declare const HPortalSysQueryBoxInfoDesc: UnaryMethodDefinitionish;
|
|
755
947
|
export declare const HPortalSysGetDomainCertDesc: UnaryMethodDefinitionish;
|
|
756
|
-
export declare const HPortalSysGetDomainSelfCertDesc: UnaryMethodDefinitionish;
|
|
757
|
-
export declare const HPortalSysGetAppCertDesc: UnaryMethodDefinitionish;
|
|
758
948
|
export declare const HPortalSysAllocVirtualExternalIPDesc: UnaryMethodDefinitionish;
|
|
759
949
|
export declare const HPortalSysFreeVirtualExternalIPDesc: UnaryMethodDefinitionish;
|
|
760
950
|
export declare const HPortalSysListUsersDesc: UnaryMethodDefinitionish;
|
|
951
|
+
export declare const HPortalSysCreateUserDesc: UnaryMethodDefinitionish;
|
|
952
|
+
export declare const HPortalSysDeleteUserDesc: UnaryMethodDefinitionish;
|
|
953
|
+
export declare const HPortalSysResetPasswordDesc: UnaryMethodDefinitionish;
|
|
954
|
+
export declare const HPortalSysCheckPasswordDesc: UnaryMethodDefinitionish;
|
|
761
955
|
export declare const HPortalSysQueryRoleDesc: UnaryMethodDefinitionish;
|
|
762
956
|
export declare const HPortalSysChangeRoleDesc: UnaryMethodDefinitionish;
|
|
763
|
-
export declare const
|
|
764
|
-
export declare const
|
|
765
|
-
export declare const
|
|
957
|
+
export declare const HPortalSysChangeTrustEndDeviceDesc: UnaryMethodDefinitionish;
|
|
958
|
+
export declare const HPortalSysListDevicesDesc: UnaryMethodDefinitionish;
|
|
959
|
+
export declare const HPortalSysQueryDeviceByIDDesc: UnaryMethodDefinitionish;
|
|
960
|
+
export declare const HPortalSysClearLoginSessionDesc: UnaryMethodDefinitionish;
|
|
961
|
+
export declare const HPortalSysRemoteSocksDesc: UnaryMethodDefinitionish;
|
|
962
|
+
export declare const HPortalSysUpdateBoxSystemStatusDesc: UnaryMethodDefinitionish;
|
|
963
|
+
export declare const HPortalSysGetDomainSelfCertDesc: UnaryMethodDefinitionish;
|
|
964
|
+
export declare const HPortalSysUpdateBoxStatusDesc: UnaryMethodDefinitionish;
|
|
766
965
|
export declare const HPortalSysForceResetPasswordDesc: UnaryMethodDefinitionish;
|
|
767
966
|
export declare const HPortalSysLogoutDesc: UnaryMethodDefinitionish;
|
|
768
|
-
export declare const HPortalSysCheckPasswordDesc: UnaryMethodDefinitionish;
|
|
769
|
-
export declare const HPortalSysRemoteSocksDesc: UnaryMethodDefinitionish;
|
|
770
967
|
export declare const HPortalSysTrustUserDeviceDesc: UnaryMethodDefinitionish;
|
|
771
|
-
export declare const
|
|
968
|
+
export declare const HPortalSysGetAppCertDesc: UnaryMethodDefinitionish;
|
|
772
969
|
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
773
970
|
requestStream: any;
|
|
774
971
|
responseStream: any;
|