@lazycatcloud/sdk 0.1.189 → 0.1.190
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 +25 -8
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +58 -29
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/appshell.d.ts +83 -85
- package/dist/common/appshell.d.ts.map +1 -1
- package/dist/common/appshell.js +241 -228
- package/dist/common/appshell.js.map +1 -1
- package/dist/common/box.d.ts +54 -12
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +93 -39
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +38 -10
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +104 -38
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +101 -14
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +135 -50
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +108 -39
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +855 -55
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +469 -202
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +60 -14
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +129 -44
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +27 -8
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +62 -27
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +106 -16
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +145 -66
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +141 -18
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +154 -66
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +54 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +129 -53
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +98 -23
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +225 -90
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +107 -18
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +189 -69
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54717 -4254
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +934 -374
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +8 -4
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +18 -8
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/lanforward/lanforward.d.ts +65 -84
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +197 -217
- package/dist/localdevice/clipboard.d.ts +35 -12
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +90 -46
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +42 -11
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +98 -33
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +18 -6
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +47 -13
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +68 -18
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +146 -55
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +70 -18
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +178 -71
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +14 -6
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +39 -11
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +61 -16
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +119 -56
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +192 -28
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +334 -130
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +73 -92
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +226 -246
- package/dist/sys/OS_daemon.d.ts +35 -12
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +68 -32
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +180 -32
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +305 -135
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +65 -14
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +141 -66
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +208 -16
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +162 -66
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btrfs.d.ts +59 -16
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +117 -51
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +24 -6
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +64 -17
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +23 -8
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +54 -29
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +90 -18
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +169 -63
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +244 -32
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +276 -129
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +81 -24
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +167 -78
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +137 -16
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +164 -59
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +317 -42
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +432 -168
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +730 -231
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +1464 -565
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +105 -18
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +170 -68
- 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,156 +300,191 @@ 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;
|
|
225
323
|
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteSocksRequest;
|
|
226
324
|
fromJSON(object: any): RemoteSocksRequest;
|
|
227
325
|
toJSON(message: RemoteSocksRequest): unknown;
|
|
228
|
-
|
|
326
|
+
create<I extends {
|
|
327
|
+
locationType?: RemoteSocksRequest_LocationType;
|
|
328
|
+
target?: string;
|
|
329
|
+
} & {
|
|
330
|
+
locationType?: RemoteSocksRequest_LocationType;
|
|
331
|
+
target?: string;
|
|
332
|
+
} & { [K in Exclude<keyof I, keyof RemoteSocksRequest>]: never; }>(base?: I): RemoteSocksRequest;
|
|
333
|
+
fromPartial<I_1 extends {
|
|
229
334
|
locationType?: RemoteSocksRequest_LocationType;
|
|
230
335
|
target?: string;
|
|
231
336
|
} & {
|
|
232
337
|
locationType?: RemoteSocksRequest_LocationType;
|
|
233
338
|
target?: string;
|
|
234
|
-
} & { [
|
|
339
|
+
} & { [K_1 in Exclude<keyof I_1, keyof RemoteSocksRequest>]: never; }>(object: I_1): RemoteSocksRequest;
|
|
235
340
|
};
|
|
236
341
|
export declare const RemoteSocksReply: {
|
|
237
342
|
encode(message: RemoteSocksReply, writer?: _m0.Writer): _m0.Writer;
|
|
238
343
|
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteSocksReply;
|
|
239
344
|
fromJSON(object: any): RemoteSocksReply;
|
|
240
345
|
toJSON(message: RemoteSocksReply): unknown;
|
|
241
|
-
|
|
346
|
+
create<I extends {
|
|
347
|
+
serverUrl?: string;
|
|
348
|
+
} & {
|
|
349
|
+
serverUrl?: string;
|
|
350
|
+
} & { [K in Exclude<keyof I, "serverUrl">]: never; }>(base?: I): RemoteSocksReply;
|
|
351
|
+
fromPartial<I_1 extends {
|
|
242
352
|
serverUrl?: string;
|
|
243
353
|
} & {
|
|
244
354
|
serverUrl?: string;
|
|
245
|
-
} & { [
|
|
355
|
+
} & { [K_1 in Exclude<keyof I_1, "serverUrl">]: never; }>(object: I_1): RemoteSocksReply;
|
|
246
356
|
};
|
|
247
357
|
export declare const ListUsersReply: {
|
|
248
358
|
encode(message: ListUsersReply, writer?: _m0.Writer): _m0.Writer;
|
|
249
359
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListUsersReply;
|
|
250
360
|
fromJSON(object: any): ListUsersReply;
|
|
251
361
|
toJSON(message: ListUsersReply): unknown;
|
|
252
|
-
|
|
362
|
+
create<I extends {
|
|
253
363
|
uids?: string[];
|
|
254
364
|
} & {
|
|
255
365
|
uids?: string[] & string[] & { [K in Exclude<keyof I["uids"], keyof string[]>]: never; };
|
|
256
|
-
} & { [K_1 in Exclude<keyof I, "uids">]: never; }>(
|
|
366
|
+
} & { [K_1 in Exclude<keyof I, "uids">]: never; }>(base?: I): ListUsersReply;
|
|
367
|
+
fromPartial<I_1 extends {
|
|
368
|
+
uids?: string[];
|
|
369
|
+
} & {
|
|
370
|
+
uids?: string[] & string[] & { [K_2 in Exclude<keyof I_1["uids"], keyof string[]>]: never; };
|
|
371
|
+
} & { [K_3 in Exclude<keyof I_1, "uids">]: never; }>(object: I_1): ListUsersReply;
|
|
257
372
|
};
|
|
258
373
|
export declare const AllocVEIPRequest: {
|
|
259
374
|
encode(message: AllocVEIPRequest, writer?: _m0.Writer): _m0.Writer;
|
|
260
375
|
decode(input: _m0.Reader | Uint8Array, length?: number): AllocVEIPRequest;
|
|
261
376
|
fromJSON(object: any): AllocVEIPRequest;
|
|
262
377
|
toJSON(message: AllocVEIPRequest): unknown;
|
|
263
|
-
|
|
378
|
+
create<I extends {
|
|
379
|
+
usage?: string;
|
|
380
|
+
subdomain?: string;
|
|
381
|
+
} & {
|
|
382
|
+
usage?: string;
|
|
383
|
+
subdomain?: string;
|
|
384
|
+
} & { [K in Exclude<keyof I, keyof AllocVEIPRequest>]: never; }>(base?: I): AllocVEIPRequest;
|
|
385
|
+
fromPartial<I_1 extends {
|
|
264
386
|
usage?: string;
|
|
265
387
|
subdomain?: string;
|
|
266
388
|
} & {
|
|
267
389
|
usage?: string;
|
|
268
390
|
subdomain?: string;
|
|
269
|
-
} & { [
|
|
391
|
+
} & { [K_1 in Exclude<keyof I_1, keyof AllocVEIPRequest>]: never; }>(object: I_1): AllocVEIPRequest;
|
|
270
392
|
};
|
|
271
393
|
export declare const AllocVEIPReply: {
|
|
272
394
|
encode(message: AllocVEIPReply, writer?: _m0.Writer): _m0.Writer;
|
|
273
395
|
decode(input: _m0.Reader | Uint8Array, length?: number): AllocVEIPReply;
|
|
274
396
|
fromJSON(object: any): AllocVEIPReply;
|
|
275
397
|
toJSON(message: AllocVEIPReply): unknown;
|
|
276
|
-
|
|
398
|
+
create<I extends {
|
|
399
|
+
ip?: string;
|
|
400
|
+
} & {
|
|
401
|
+
ip?: string;
|
|
402
|
+
} & { [K in Exclude<keyof I, "ip">]: never; }>(base?: I): AllocVEIPReply;
|
|
403
|
+
fromPartial<I_1 extends {
|
|
277
404
|
ip?: string;
|
|
278
405
|
} & {
|
|
279
406
|
ip?: string;
|
|
280
|
-
} & { [
|
|
407
|
+
} & { [K_1 in Exclude<keyof I_1, "ip">]: never; }>(object: I_1): AllocVEIPReply;
|
|
281
408
|
};
|
|
282
409
|
export declare const FreeVEIPRequest: {
|
|
283
410
|
encode(message: FreeVEIPRequest, writer?: _m0.Writer): _m0.Writer;
|
|
284
411
|
decode(input: _m0.Reader | Uint8Array, length?: number): FreeVEIPRequest;
|
|
285
412
|
fromJSON(object: any): FreeVEIPRequest;
|
|
286
413
|
toJSON(message: FreeVEIPRequest): unknown;
|
|
287
|
-
|
|
414
|
+
create<I extends {
|
|
415
|
+
ip?: string;
|
|
416
|
+
waitSecond?: number;
|
|
417
|
+
} & {
|
|
418
|
+
ip?: string;
|
|
419
|
+
waitSecond?: number;
|
|
420
|
+
} & { [K in Exclude<keyof I, keyof FreeVEIPRequest>]: never; }>(base?: I): FreeVEIPRequest;
|
|
421
|
+
fromPartial<I_1 extends {
|
|
288
422
|
ip?: string;
|
|
289
423
|
waitSecond?: number;
|
|
290
424
|
} & {
|
|
291
425
|
ip?: string;
|
|
292
426
|
waitSecond?: number;
|
|
293
|
-
} & { [
|
|
427
|
+
} & { [K_1 in Exclude<keyof I_1, keyof FreeVEIPRequest>]: never; }>(object: I_1): FreeVEIPRequest;
|
|
294
428
|
};
|
|
295
429
|
export declare const FreeVEIPReply: {
|
|
296
430
|
encode(_: FreeVEIPReply, writer?: _m0.Writer): _m0.Writer;
|
|
297
431
|
decode(input: _m0.Reader | Uint8Array, length?: number): FreeVEIPReply;
|
|
298
432
|
fromJSON(_: any): FreeVEIPReply;
|
|
299
433
|
toJSON(_: FreeVEIPReply): unknown;
|
|
300
|
-
|
|
301
|
-
};
|
|
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;
|
|
434
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): FreeVEIPReply;
|
|
435
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): FreeVEIPReply;
|
|
331
436
|
};
|
|
332
437
|
export declare const AuthToken: {
|
|
333
438
|
encode(message: AuthToken, writer?: _m0.Writer): _m0.Writer;
|
|
334
439
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthToken;
|
|
335
440
|
fromJSON(object: any): AuthToken;
|
|
336
441
|
toJSON(message: AuthToken): unknown;
|
|
337
|
-
|
|
442
|
+
create<I extends {
|
|
338
443
|
token?: string;
|
|
339
|
-
autologinTokenPostUrl?: string;
|
|
340
444
|
accessIp?: string;
|
|
341
|
-
autologinRedirectUrl?: string;
|
|
342
445
|
tokenType?: AuthToken_TokenType;
|
|
446
|
+
autologinTokenPostUrl?: string;
|
|
447
|
+
autologinRedirectUrl?: string;
|
|
343
448
|
} & {
|
|
344
449
|
token?: string;
|
|
450
|
+
accessIp?: string;
|
|
451
|
+
tokenType?: AuthToken_TokenType;
|
|
345
452
|
autologinTokenPostUrl?: string;
|
|
453
|
+
autologinRedirectUrl?: string;
|
|
454
|
+
} & { [K in Exclude<keyof I, keyof AuthToken>]: never; }>(base?: I): AuthToken;
|
|
455
|
+
fromPartial<I_1 extends {
|
|
456
|
+
token?: string;
|
|
346
457
|
accessIp?: string;
|
|
458
|
+
tokenType?: AuthToken_TokenType;
|
|
459
|
+
autologinTokenPostUrl?: string;
|
|
347
460
|
autologinRedirectUrl?: string;
|
|
461
|
+
} & {
|
|
462
|
+
token?: string;
|
|
463
|
+
accessIp?: string;
|
|
348
464
|
tokenType?: AuthToken_TokenType;
|
|
349
|
-
|
|
465
|
+
autologinTokenPostUrl?: string;
|
|
466
|
+
autologinRedirectUrl?: string;
|
|
467
|
+
} & { [K_1 in Exclude<keyof I_1, keyof AuthToken>]: never; }>(object: I_1): AuthToken;
|
|
350
468
|
};
|
|
351
469
|
export declare const LoginInfo: {
|
|
352
470
|
encode(message: LoginInfo, writer?: _m0.Writer): _m0.Writer;
|
|
353
471
|
decode(input: _m0.Reader | Uint8Array, length?: number): LoginInfo;
|
|
354
472
|
fromJSON(object: any): LoginInfo;
|
|
355
473
|
toJSON(message: LoginInfo): unknown;
|
|
356
|
-
|
|
474
|
+
create<I extends {
|
|
475
|
+
uid?: string;
|
|
476
|
+
deviceId?: string;
|
|
477
|
+
when?: Date | undefined;
|
|
478
|
+
autologinTokenRequestContent?: string;
|
|
479
|
+
deviceVersion?: string;
|
|
480
|
+
} & {
|
|
481
|
+
uid?: string;
|
|
482
|
+
deviceId?: string;
|
|
483
|
+
when?: Date | undefined;
|
|
484
|
+
autologinTokenRequestContent?: string;
|
|
485
|
+
deviceVersion?: string;
|
|
486
|
+
} & { [K in Exclude<keyof I, keyof LoginInfo>]: never; }>(base?: I): LoginInfo;
|
|
487
|
+
fromPartial<I_1 extends {
|
|
357
488
|
uid?: string;
|
|
358
489
|
deviceId?: string;
|
|
359
490
|
when?: Date | undefined;
|
|
@@ -365,25 +496,47 @@ export declare const LoginInfo: {
|
|
|
365
496
|
when?: Date | undefined;
|
|
366
497
|
autologinTokenRequestContent?: string;
|
|
367
498
|
deviceVersion?: string;
|
|
368
|
-
} & { [
|
|
499
|
+
} & { [K_1 in Exclude<keyof I_1, keyof LoginInfo>]: never; }>(object: I_1): LoginInfo;
|
|
369
500
|
};
|
|
370
501
|
export declare const DeviceID: {
|
|
371
502
|
encode(message: DeviceID, writer?: _m0.Writer): _m0.Writer;
|
|
372
503
|
decode(input: _m0.Reader | Uint8Array, length?: number): DeviceID;
|
|
373
504
|
fromJSON(object: any): DeviceID;
|
|
374
505
|
toJSON(message: DeviceID): unknown;
|
|
375
|
-
|
|
506
|
+
create<I extends {
|
|
507
|
+
id?: string;
|
|
508
|
+
} & {
|
|
509
|
+
id?: string;
|
|
510
|
+
} & { [K in Exclude<keyof I, "id">]: never; }>(base?: I): DeviceID;
|
|
511
|
+
fromPartial<I_1 extends {
|
|
376
512
|
id?: string;
|
|
377
513
|
} & {
|
|
378
514
|
id?: string;
|
|
379
|
-
} & { [
|
|
515
|
+
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): DeviceID;
|
|
380
516
|
};
|
|
381
517
|
export declare const BoxInfo: {
|
|
382
518
|
encode(message: BoxInfo, writer?: _m0.Writer): _m0.Writer;
|
|
383
519
|
decode(input: _m0.Reader | Uint8Array, length?: number): BoxInfo;
|
|
384
520
|
fromJSON(object: any): BoxInfo;
|
|
385
521
|
toJSON(message: BoxInfo): unknown;
|
|
386
|
-
|
|
522
|
+
create<I extends {
|
|
523
|
+
originServer?: string;
|
|
524
|
+
virtualIp?: string;
|
|
525
|
+
boxId?: string;
|
|
526
|
+
boxName?: string;
|
|
527
|
+
boxDomain?: string;
|
|
528
|
+
certReady?: boolean;
|
|
529
|
+
boxCert?: string;
|
|
530
|
+
} & {
|
|
531
|
+
originServer?: string;
|
|
532
|
+
virtualIp?: string;
|
|
533
|
+
boxId?: string;
|
|
534
|
+
boxName?: string;
|
|
535
|
+
boxDomain?: string;
|
|
536
|
+
certReady?: boolean;
|
|
537
|
+
boxCert?: string;
|
|
538
|
+
} & { [K in Exclude<keyof I, keyof BoxInfo>]: never; }>(base?: I): BoxInfo;
|
|
539
|
+
fromPartial<I_1 extends {
|
|
387
540
|
originServer?: string;
|
|
388
541
|
virtualIp?: string;
|
|
389
542
|
boxId?: string;
|
|
@@ -399,25 +552,39 @@ export declare const BoxInfo: {
|
|
|
399
552
|
boxDomain?: string;
|
|
400
553
|
certReady?: boolean;
|
|
401
554
|
boxCert?: string;
|
|
402
|
-
} & { [
|
|
555
|
+
} & { [K_1 in Exclude<keyof I_1, keyof BoxInfo>]: never; }>(object: I_1): BoxInfo;
|
|
403
556
|
};
|
|
404
557
|
export declare const DomainCertRequest: {
|
|
405
558
|
encode(message: DomainCertRequest, writer?: _m0.Writer): _m0.Writer;
|
|
406
559
|
decode(input: _m0.Reader | Uint8Array, length?: number): DomainCertRequest;
|
|
407
560
|
fromJSON(object: any): DomainCertRequest;
|
|
408
561
|
toJSON(message: DomainCertRequest): unknown;
|
|
409
|
-
|
|
562
|
+
create<I extends {
|
|
563
|
+
domain?: string;
|
|
564
|
+
} & {
|
|
565
|
+
domain?: string;
|
|
566
|
+
} & { [K in Exclude<keyof I, "domain">]: never; }>(base?: I): DomainCertRequest;
|
|
567
|
+
fromPartial<I_1 extends {
|
|
410
568
|
domain?: string;
|
|
411
569
|
} & {
|
|
412
570
|
domain?: string;
|
|
413
|
-
} & { [
|
|
571
|
+
} & { [K_1 in Exclude<keyof I_1, "domain">]: never; }>(object: I_1): DomainCertRequest;
|
|
414
572
|
};
|
|
415
573
|
export declare const DomainCertReply: {
|
|
416
574
|
encode(message: DomainCertReply, writer?: _m0.Writer): _m0.Writer;
|
|
417
575
|
decode(input: _m0.Reader | Uint8Array, length?: number): DomainCertReply;
|
|
418
576
|
fromJSON(object: any): DomainCertReply;
|
|
419
577
|
toJSON(message: DomainCertReply): unknown;
|
|
420
|
-
|
|
578
|
+
create<I extends {
|
|
579
|
+
cert?: string;
|
|
580
|
+
key?: string;
|
|
581
|
+
ocsp?: Uint8Array;
|
|
582
|
+
} & {
|
|
583
|
+
cert?: string;
|
|
584
|
+
key?: string;
|
|
585
|
+
ocsp?: Uint8Array;
|
|
586
|
+
} & { [K in Exclude<keyof I, keyof DomainCertReply>]: never; }>(base?: I): DomainCertReply;
|
|
587
|
+
fromPartial<I_1 extends {
|
|
421
588
|
cert?: string;
|
|
422
589
|
key?: string;
|
|
423
590
|
ocsp?: Uint8Array;
|
|
@@ -425,169 +592,272 @@ export declare const DomainCertReply: {
|
|
|
425
592
|
cert?: string;
|
|
426
593
|
key?: string;
|
|
427
594
|
ocsp?: Uint8Array;
|
|
428
|
-
} & { [
|
|
595
|
+
} & { [K_1 in Exclude<keyof I_1, keyof DomainCertReply>]: never; }>(object: I_1): DomainCertReply;
|
|
429
596
|
};
|
|
430
597
|
export declare const Device: {
|
|
431
598
|
encode(message: Device, writer?: _m0.Writer): _m0.Writer;
|
|
432
599
|
decode(input: _m0.Reader | Uint8Array, length?: number): Device;
|
|
433
600
|
fromJSON(object: any): Device;
|
|
434
601
|
toJSON(message: Device): unknown;
|
|
435
|
-
|
|
602
|
+
create<I extends {
|
|
436
603
|
udid?: string;
|
|
437
|
-
peerId?: string;
|
|
438
604
|
isOnline?: boolean;
|
|
439
605
|
deviceApiUrl?: string;
|
|
440
606
|
name?: string;
|
|
441
607
|
model?: string;
|
|
442
608
|
bindingTime?: Date | undefined;
|
|
609
|
+
peerId?: string;
|
|
443
610
|
isMobile?: boolean;
|
|
444
611
|
} & {
|
|
445
612
|
udid?: string;
|
|
613
|
+
isOnline?: boolean;
|
|
614
|
+
deviceApiUrl?: string;
|
|
615
|
+
name?: string;
|
|
616
|
+
model?: string;
|
|
617
|
+
bindingTime?: Date | undefined;
|
|
618
|
+
peerId?: string;
|
|
619
|
+
isMobile?: boolean;
|
|
620
|
+
} & { [K in Exclude<keyof I, keyof Device>]: never; }>(base?: I): Device;
|
|
621
|
+
fromPartial<I_1 extends {
|
|
622
|
+
udid?: string;
|
|
623
|
+
isOnline?: boolean;
|
|
624
|
+
deviceApiUrl?: string;
|
|
625
|
+
name?: string;
|
|
626
|
+
model?: string;
|
|
627
|
+
bindingTime?: Date | undefined;
|
|
446
628
|
peerId?: string;
|
|
629
|
+
isMobile?: boolean;
|
|
630
|
+
} & {
|
|
631
|
+
udid?: string;
|
|
447
632
|
isOnline?: boolean;
|
|
448
633
|
deviceApiUrl?: string;
|
|
449
634
|
name?: string;
|
|
450
635
|
model?: string;
|
|
451
636
|
bindingTime?: Date | undefined;
|
|
637
|
+
peerId?: string;
|
|
452
638
|
isMobile?: boolean;
|
|
453
|
-
} & { [
|
|
639
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Device>]: never; }>(object: I_1): Device;
|
|
454
640
|
};
|
|
455
641
|
export declare const ListDeviceRequest: {
|
|
456
642
|
encode(message: ListDeviceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
457
643
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListDeviceRequest;
|
|
458
644
|
fromJSON(object: any): ListDeviceRequest;
|
|
459
645
|
toJSON(message: ListDeviceRequest): unknown;
|
|
460
|
-
|
|
646
|
+
create<I extends {
|
|
461
647
|
uid?: string;
|
|
462
648
|
} & {
|
|
463
649
|
uid?: string;
|
|
464
|
-
} & { [K in Exclude<keyof I, "uid">]: never; }>(
|
|
650
|
+
} & { [K in Exclude<keyof I, "uid">]: never; }>(base?: I): ListDeviceRequest;
|
|
651
|
+
fromPartial<I_1 extends {
|
|
652
|
+
uid?: string;
|
|
653
|
+
} & {
|
|
654
|
+
uid?: string;
|
|
655
|
+
} & { [K_1 in Exclude<keyof I_1, "uid">]: never; }>(object: I_1): ListDeviceRequest;
|
|
465
656
|
};
|
|
466
657
|
export declare const ListDeviceReply: {
|
|
467
658
|
encode(message: ListDeviceReply, writer?: _m0.Writer): _m0.Writer;
|
|
468
659
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListDeviceReply;
|
|
469
660
|
fromJSON(object: any): ListDeviceReply;
|
|
470
661
|
toJSON(message: ListDeviceReply): unknown;
|
|
471
|
-
|
|
662
|
+
create<I extends {
|
|
472
663
|
devices?: {
|
|
473
664
|
udid?: string;
|
|
474
|
-
peerId?: string;
|
|
475
665
|
isOnline?: boolean;
|
|
476
666
|
deviceApiUrl?: string;
|
|
477
667
|
name?: string;
|
|
478
668
|
model?: string;
|
|
479
669
|
bindingTime?: Date | undefined;
|
|
670
|
+
peerId?: string;
|
|
480
671
|
isMobile?: boolean;
|
|
481
672
|
}[];
|
|
482
673
|
} & {
|
|
483
674
|
devices?: {
|
|
484
675
|
udid?: string;
|
|
485
|
-
peerId?: string;
|
|
486
676
|
isOnline?: boolean;
|
|
487
677
|
deviceApiUrl?: string;
|
|
488
678
|
name?: string;
|
|
489
679
|
model?: string;
|
|
490
680
|
bindingTime?: Date | undefined;
|
|
681
|
+
peerId?: string;
|
|
491
682
|
isMobile?: boolean;
|
|
492
683
|
}[] & ({
|
|
493
684
|
udid?: string;
|
|
494
|
-
peerId?: string;
|
|
495
685
|
isOnline?: boolean;
|
|
496
686
|
deviceApiUrl?: string;
|
|
497
687
|
name?: string;
|
|
498
688
|
model?: string;
|
|
499
689
|
bindingTime?: Date | undefined;
|
|
690
|
+
peerId?: string;
|
|
500
691
|
isMobile?: boolean;
|
|
501
692
|
} & {
|
|
502
693
|
udid?: string;
|
|
503
|
-
peerId?: string;
|
|
504
694
|
isOnline?: boolean;
|
|
505
695
|
deviceApiUrl?: string;
|
|
506
696
|
name?: string;
|
|
507
697
|
model?: string;
|
|
508
698
|
bindingTime?: Date | undefined;
|
|
699
|
+
peerId?: string;
|
|
509
700
|
isMobile?: boolean;
|
|
510
701
|
} & { [K in Exclude<keyof I["devices"][number], keyof Device>]: never; })[] & { [K_1 in Exclude<keyof I["devices"], keyof {
|
|
511
702
|
udid?: string;
|
|
512
|
-
peerId?: string;
|
|
513
703
|
isOnline?: boolean;
|
|
514
704
|
deviceApiUrl?: string;
|
|
515
705
|
name?: string;
|
|
516
706
|
model?: string;
|
|
517
707
|
bindingTime?: Date | undefined;
|
|
708
|
+
peerId?: string;
|
|
518
709
|
isMobile?: boolean;
|
|
519
710
|
}[]>]: never; };
|
|
520
|
-
} & { [K_2 in Exclude<keyof I, "devices">]: never; }>(
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
711
|
+
} & { [K_2 in Exclude<keyof I, "devices">]: never; }>(base?: I): ListDeviceReply;
|
|
712
|
+
fromPartial<I_1 extends {
|
|
713
|
+
devices?: {
|
|
714
|
+
udid?: string;
|
|
715
|
+
isOnline?: boolean;
|
|
716
|
+
deviceApiUrl?: string;
|
|
717
|
+
name?: string;
|
|
718
|
+
model?: string;
|
|
719
|
+
bindingTime?: Date | undefined;
|
|
720
|
+
peerId?: string;
|
|
721
|
+
isMobile?: boolean;
|
|
722
|
+
}[];
|
|
723
|
+
} & {
|
|
724
|
+
devices?: {
|
|
725
|
+
udid?: string;
|
|
726
|
+
isOnline?: boolean;
|
|
727
|
+
deviceApiUrl?: string;
|
|
728
|
+
name?: string;
|
|
729
|
+
model?: string;
|
|
730
|
+
bindingTime?: Date | undefined;
|
|
731
|
+
peerId?: string;
|
|
732
|
+
isMobile?: boolean;
|
|
733
|
+
}[] & ({
|
|
734
|
+
udid?: string;
|
|
735
|
+
isOnline?: boolean;
|
|
736
|
+
deviceApiUrl?: string;
|
|
737
|
+
name?: string;
|
|
738
|
+
model?: string;
|
|
739
|
+
bindingTime?: Date | undefined;
|
|
740
|
+
peerId?: string;
|
|
741
|
+
isMobile?: boolean;
|
|
742
|
+
} & {
|
|
743
|
+
udid?: string;
|
|
744
|
+
isOnline?: boolean;
|
|
745
|
+
deviceApiUrl?: string;
|
|
746
|
+
name?: string;
|
|
747
|
+
model?: string;
|
|
748
|
+
bindingTime?: Date | undefined;
|
|
749
|
+
peerId?: string;
|
|
750
|
+
isMobile?: boolean;
|
|
751
|
+
} & { [K_3 in Exclude<keyof I_1["devices"][number], keyof Device>]: never; })[] & { [K_4 in Exclude<keyof I_1["devices"], keyof {
|
|
752
|
+
udid?: string;
|
|
753
|
+
isOnline?: boolean;
|
|
754
|
+
deviceApiUrl?: string;
|
|
755
|
+
name?: string;
|
|
756
|
+
model?: string;
|
|
757
|
+
bindingTime?: Date | undefined;
|
|
758
|
+
peerId?: string;
|
|
759
|
+
isMobile?: boolean;
|
|
760
|
+
}[]>]: never; };
|
|
761
|
+
} & { [K_5 in Exclude<keyof I_1, "devices">]: never; }>(object: I_1): ListDeviceReply;
|
|
762
|
+
};
|
|
763
|
+
export declare const UserID: {
|
|
764
|
+
encode(message: UserID, writer?: _m0.Writer): _m0.Writer;
|
|
765
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserID;
|
|
766
|
+
fromJSON(object: any): UserID;
|
|
767
|
+
toJSON(message: UserID): unknown;
|
|
768
|
+
create<I extends {
|
|
769
|
+
uid?: string;
|
|
770
|
+
} & {
|
|
771
|
+
uid?: string;
|
|
772
|
+
} & { [K in Exclude<keyof I, "uid">]: never; }>(base?: I): UserID;
|
|
773
|
+
fromPartial<I_1 extends {
|
|
774
|
+
uid?: string;
|
|
775
|
+
} & {
|
|
776
|
+
uid?: string;
|
|
777
|
+
} & { [K_1 in Exclude<keyof I_1, "uid">]: never; }>(object: I_1): UserID;
|
|
778
|
+
};
|
|
779
|
+
export declare const ChangeRoleReqeust: {
|
|
780
|
+
encode(message: ChangeRoleReqeust, writer?: _m0.Writer): _m0.Writer;
|
|
781
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeRoleReqeust;
|
|
782
|
+
fromJSON(object: any): ChangeRoleReqeust;
|
|
783
|
+
toJSON(message: ChangeRoleReqeust): unknown;
|
|
784
|
+
create<I extends {
|
|
785
|
+
uid?: string;
|
|
786
|
+
role?: Role;
|
|
787
|
+
} & {
|
|
788
|
+
uid?: string;
|
|
789
|
+
role?: Role;
|
|
790
|
+
} & { [K in Exclude<keyof I, keyof ChangeRoleReqeust>]: never; }>(base?: I): ChangeRoleReqeust;
|
|
791
|
+
fromPartial<I_1 extends {
|
|
539
792
|
uid?: string;
|
|
540
793
|
role?: Role;
|
|
541
794
|
} & {
|
|
542
795
|
uid?: string;
|
|
543
796
|
role?: Role;
|
|
544
|
-
} & { [
|
|
797
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ChangeRoleReqeust>]: never; }>(object: I_1): ChangeRoleReqeust;
|
|
545
798
|
};
|
|
546
799
|
export declare const QueryRoleReply: {
|
|
547
800
|
encode(message: QueryRoleReply, writer?: _m0.Writer): _m0.Writer;
|
|
548
801
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRoleReply;
|
|
549
802
|
fromJSON(object: any): QueryRoleReply;
|
|
550
803
|
toJSON(message: QueryRoleReply): unknown;
|
|
551
|
-
|
|
804
|
+
create<I extends {
|
|
805
|
+
uid?: string;
|
|
806
|
+
role?: Role;
|
|
807
|
+
} & {
|
|
808
|
+
uid?: string;
|
|
809
|
+
role?: Role;
|
|
810
|
+
} & { [K in Exclude<keyof I, keyof QueryRoleReply>]: never; }>(base?: I): QueryRoleReply;
|
|
811
|
+
fromPartial<I_1 extends {
|
|
552
812
|
uid?: string;
|
|
553
813
|
role?: Role;
|
|
554
814
|
} & {
|
|
555
815
|
uid?: string;
|
|
556
816
|
role?: Role;
|
|
557
|
-
} & { [
|
|
817
|
+
} & { [K_1 in Exclude<keyof I_1, keyof QueryRoleReply>]: never; }>(object: I_1): QueryRoleReply;
|
|
558
818
|
};
|
|
559
819
|
export declare const ResetPasswordRequest: {
|
|
560
820
|
encode(message: ResetPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
561
821
|
decode(input: _m0.Reader | Uint8Array, length?: number): ResetPasswordRequest;
|
|
562
822
|
fromJSON(object: any): ResetPasswordRequest;
|
|
563
823
|
toJSON(message: ResetPasswordRequest): unknown;
|
|
564
|
-
|
|
824
|
+
create<I extends {
|
|
825
|
+
uid?: string;
|
|
826
|
+
newPassword?: string;
|
|
827
|
+
} & {
|
|
828
|
+
uid?: string;
|
|
829
|
+
newPassword?: string;
|
|
830
|
+
} & { [K in Exclude<keyof I, keyof ResetPasswordRequest>]: never; }>(base?: I): ResetPasswordRequest;
|
|
831
|
+
fromPartial<I_1 extends {
|
|
565
832
|
uid?: string;
|
|
566
|
-
oldPassword?: string;
|
|
567
833
|
newPassword?: string;
|
|
568
834
|
} & {
|
|
569
835
|
uid?: string;
|
|
570
|
-
oldPassword?: string;
|
|
571
836
|
newPassword?: string;
|
|
572
|
-
} & { [
|
|
837
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ResetPasswordRequest>]: never; }>(object: I_1): ResetPasswordRequest;
|
|
573
838
|
};
|
|
574
839
|
export declare const DeleteUserRequest: {
|
|
575
840
|
encode(message: DeleteUserRequest, writer?: _m0.Writer): _m0.Writer;
|
|
576
841
|
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteUserRequest;
|
|
577
842
|
fromJSON(object: any): DeleteUserRequest;
|
|
578
843
|
toJSON(message: DeleteUserRequest): unknown;
|
|
579
|
-
|
|
844
|
+
create<I extends {
|
|
845
|
+
uid?: string;
|
|
846
|
+
} & {
|
|
847
|
+
uid?: string;
|
|
848
|
+
} & { [K in Exclude<keyof I, "uid">]: never; }>(base?: I): DeleteUserRequest;
|
|
849
|
+
fromPartial<I_1 extends {
|
|
580
850
|
uid?: string;
|
|
581
851
|
} & {
|
|
582
852
|
uid?: string;
|
|
583
|
-
} & { [
|
|
853
|
+
} & { [K_1 in Exclude<keyof I_1, "uid">]: never; }>(object: I_1): DeleteUserRequest;
|
|
584
854
|
};
|
|
585
855
|
export declare const CreateUserRequest: {
|
|
586
856
|
encode(message: CreateUserRequest, writer?: _m0.Writer): _m0.Writer;
|
|
587
857
|
decode(input: _m0.Reader | Uint8Array, length?: number): CreateUserRequest;
|
|
588
858
|
fromJSON(object: any): CreateUserRequest;
|
|
589
859
|
toJSON(message: CreateUserRequest): unknown;
|
|
590
|
-
|
|
860
|
+
create<I extends {
|
|
591
861
|
uid?: string;
|
|
592
862
|
password?: string;
|
|
593
863
|
role?: Role;
|
|
@@ -595,185 +865,413 @@ export declare const CreateUserRequest: {
|
|
|
595
865
|
uid?: string;
|
|
596
866
|
password?: string;
|
|
597
867
|
role?: Role;
|
|
598
|
-
} & { [K in Exclude<keyof I, keyof CreateUserRequest>]: never; }>(
|
|
599
|
-
|
|
600
|
-
export declare const ForceResetPasswordRequest: {
|
|
601
|
-
encode(message: ForceResetPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
602
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ForceResetPasswordRequest;
|
|
603
|
-
fromJSON(object: any): ForceResetPasswordRequest;
|
|
604
|
-
toJSON(message: ForceResetPasswordRequest): unknown;
|
|
605
|
-
fromPartial<I extends {
|
|
868
|
+
} & { [K in Exclude<keyof I, keyof CreateUserRequest>]: never; }>(base?: I): CreateUserRequest;
|
|
869
|
+
fromPartial<I_1 extends {
|
|
606
870
|
uid?: string;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
uid?: string;
|
|
610
|
-
newPassword?: string;
|
|
611
|
-
} & { [K in Exclude<keyof I, keyof ForceResetPasswordRequest>]: never; }>(object: I): ForceResetPasswordRequest;
|
|
612
|
-
};
|
|
613
|
-
export declare const LogoutRequest: {
|
|
614
|
-
encode(message: LogoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
615
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): LogoutRequest;
|
|
616
|
-
fromJSON(object: any): LogoutRequest;
|
|
617
|
-
toJSON(message: LogoutRequest): unknown;
|
|
618
|
-
fromPartial<I extends {
|
|
619
|
-
uid?: string;
|
|
620
|
-
udid?: string;
|
|
621
|
-
reason?: LogoutRequest_Reason;
|
|
871
|
+
password?: string;
|
|
872
|
+
role?: Role;
|
|
622
873
|
} & {
|
|
623
874
|
uid?: string;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
} & { [
|
|
875
|
+
password?: string;
|
|
876
|
+
role?: Role;
|
|
877
|
+
} & { [K_1 in Exclude<keyof I_1, keyof CreateUserRequest>]: never; }>(object: I_1): CreateUserRequest;
|
|
627
878
|
};
|
|
628
879
|
export declare const CheckPasswordRequest: {
|
|
629
880
|
encode(message: CheckPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
630
881
|
decode(input: _m0.Reader | Uint8Array, length?: number): CheckPasswordRequest;
|
|
631
882
|
fromJSON(object: any): CheckPasswordRequest;
|
|
632
883
|
toJSON(message: CheckPasswordRequest): unknown;
|
|
633
|
-
|
|
884
|
+
create<I extends {
|
|
634
885
|
uid?: string;
|
|
635
886
|
password?: string;
|
|
636
887
|
} & {
|
|
637
888
|
uid?: string;
|
|
638
889
|
password?: string;
|
|
639
|
-
} & { [K in Exclude<keyof I, keyof CheckPasswordRequest>]: never; }>(
|
|
890
|
+
} & { [K in Exclude<keyof I, keyof CheckPasswordRequest>]: never; }>(base?: I): CheckPasswordRequest;
|
|
891
|
+
fromPartial<I_1 extends {
|
|
892
|
+
uid?: string;
|
|
893
|
+
password?: string;
|
|
894
|
+
} & {
|
|
895
|
+
uid?: string;
|
|
896
|
+
password?: string;
|
|
897
|
+
} & { [K_1 in Exclude<keyof I_1, keyof CheckPasswordRequest>]: never; }>(object: I_1): CheckPasswordRequest;
|
|
640
898
|
};
|
|
641
|
-
export declare const
|
|
642
|
-
encode(message:
|
|
643
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
644
|
-
fromJSON(object: any):
|
|
645
|
-
toJSON(message:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
899
|
+
export declare const ClearLoginSessionRequest: {
|
|
900
|
+
encode(message: ClearLoginSessionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
901
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClearLoginSessionRequest;
|
|
902
|
+
fromJSON(object: any): ClearLoginSessionRequest;
|
|
903
|
+
toJSON(message: ClearLoginSessionRequest): unknown;
|
|
904
|
+
create<I extends {
|
|
905
|
+
uid?: string;
|
|
906
|
+
excludeDevices?: string[];
|
|
649
907
|
} & {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
} & { [
|
|
908
|
+
uid?: string;
|
|
909
|
+
excludeDevices?: string[] & string[] & { [K in Exclude<keyof I["excludeDevices"], keyof string[]>]: never; };
|
|
910
|
+
} & { [K_1 in Exclude<keyof I, keyof ClearLoginSessionRequest>]: never; }>(base?: I): ClearLoginSessionRequest;
|
|
911
|
+
fromPartial<I_1 extends {
|
|
912
|
+
uid?: string;
|
|
913
|
+
excludeDevices?: string[];
|
|
914
|
+
} & {
|
|
915
|
+
uid?: string;
|
|
916
|
+
excludeDevices?: string[] & string[] & { [K_2 in Exclude<keyof I_1["excludeDevices"], keyof string[]>]: never; };
|
|
917
|
+
} & { [K_3 in Exclude<keyof I_1, keyof ClearLoginSessionRequest>]: never; }>(object: I_1): ClearLoginSessionRequest;
|
|
918
|
+
};
|
|
919
|
+
export declare const ClearLoginSessionReply: {
|
|
920
|
+
encode(_: ClearLoginSessionReply, writer?: _m0.Writer): _m0.Writer;
|
|
921
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClearLoginSessionReply;
|
|
922
|
+
fromJSON(_: any): ClearLoginSessionReply;
|
|
923
|
+
toJSON(_: ClearLoginSessionReply): unknown;
|
|
924
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): ClearLoginSessionReply;
|
|
925
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): ClearLoginSessionReply;
|
|
926
|
+
};
|
|
927
|
+
export declare const ChangeTrustEndDeviceRequest: {
|
|
928
|
+
encode(message: ChangeTrustEndDeviceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
929
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeTrustEndDeviceRequest;
|
|
930
|
+
fromJSON(object: any): ChangeTrustEndDeviceRequest;
|
|
931
|
+
toJSON(message: ChangeTrustEndDeviceRequest): unknown;
|
|
932
|
+
create<I extends {
|
|
933
|
+
uid?: string;
|
|
934
|
+
cid?: string;
|
|
935
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
936
|
+
} & {
|
|
937
|
+
uid?: string;
|
|
938
|
+
cid?: string;
|
|
939
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
940
|
+
} & { [K in Exclude<keyof I, keyof ChangeTrustEndDeviceRequest>]: never; }>(base?: I): ChangeTrustEndDeviceRequest;
|
|
941
|
+
fromPartial<I_1 extends {
|
|
942
|
+
uid?: string;
|
|
943
|
+
cid?: string;
|
|
944
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
945
|
+
} & {
|
|
946
|
+
uid?: string;
|
|
947
|
+
cid?: string;
|
|
948
|
+
action?: ChangeTrustEndDeviceRequest_Action;
|
|
949
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ChangeTrustEndDeviceRequest>]: never; }>(object: I_1): ChangeTrustEndDeviceRequest;
|
|
950
|
+
};
|
|
951
|
+
export declare const ChangeTrustEndDeviceReply: {
|
|
952
|
+
encode(_: ChangeTrustEndDeviceReply, writer?: _m0.Writer): _m0.Writer;
|
|
953
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChangeTrustEndDeviceReply;
|
|
954
|
+
fromJSON(_: any): ChangeTrustEndDeviceReply;
|
|
955
|
+
toJSON(_: ChangeTrustEndDeviceReply): unknown;
|
|
956
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): ChangeTrustEndDeviceReply;
|
|
957
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): ChangeTrustEndDeviceReply;
|
|
958
|
+
};
|
|
959
|
+
export declare const UpdateBoxSystemStatusRequest: {
|
|
960
|
+
encode(message: UpdateBoxSystemStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
961
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxSystemStatusRequest;
|
|
962
|
+
fromJSON(object: any): UpdateBoxSystemStatusRequest;
|
|
963
|
+
toJSON(message: UpdateBoxSystemStatusRequest): unknown;
|
|
964
|
+
create<I extends {
|
|
965
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
966
|
+
serviceUrl?: string;
|
|
967
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
968
|
+
proxyTheServiceUrl?: boolean;
|
|
969
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
970
|
+
} & {
|
|
971
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
972
|
+
serviceUrl?: string;
|
|
973
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
974
|
+
proxyTheServiceUrl?: boolean;
|
|
975
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
976
|
+
} & { [K in Exclude<keyof I, keyof UpdateBoxSystemStatusRequest>]: never; }>(base?: I): UpdateBoxSystemStatusRequest;
|
|
977
|
+
fromPartial<I_1 extends {
|
|
978
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
979
|
+
serviceUrl?: string;
|
|
980
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
981
|
+
proxyTheServiceUrl?: boolean;
|
|
982
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
983
|
+
} & {
|
|
984
|
+
status?: UpdateBoxSystemStatusRequest_SysStatus;
|
|
985
|
+
serviceUrl?: string;
|
|
986
|
+
exceptionReason?: UpdateBoxSystemStatusRequest_ExceptionReason | undefined;
|
|
987
|
+
proxyTheServiceUrl?: boolean;
|
|
988
|
+
onlyAdminCanAccessServiceUrl?: boolean;
|
|
989
|
+
} & { [K_1 in Exclude<keyof I_1, keyof UpdateBoxSystemStatusRequest>]: never; }>(object: I_1): UpdateBoxSystemStatusRequest;
|
|
990
|
+
};
|
|
991
|
+
export declare const UpdateBoxSystemStatusResponse: {
|
|
992
|
+
encode(_: UpdateBoxSystemStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
993
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxSystemStatusResponse;
|
|
994
|
+
fromJSON(_: any): UpdateBoxSystemStatusResponse;
|
|
995
|
+
toJSON(_: UpdateBoxSystemStatusResponse): unknown;
|
|
996
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): UpdateBoxSystemStatusResponse;
|
|
997
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): UpdateBoxSystemStatusResponse;
|
|
653
998
|
};
|
|
654
999
|
export declare const UpdateBoxStatusRequest: {
|
|
655
1000
|
encode(message: UpdateBoxStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
656
1001
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxStatusRequest;
|
|
657
1002
|
fromJSON(object: any): UpdateBoxStatusRequest;
|
|
658
1003
|
toJSON(message: UpdateBoxStatusRequest): unknown;
|
|
659
|
-
|
|
1004
|
+
create<I extends {
|
|
1005
|
+
startUp?: boolean | undefined;
|
|
1006
|
+
dataPartition?: boolean | undefined;
|
|
1007
|
+
} & {
|
|
1008
|
+
startUp?: boolean | undefined;
|
|
1009
|
+
dataPartition?: boolean | undefined;
|
|
1010
|
+
} & { [K in Exclude<keyof I, keyof UpdateBoxStatusRequest>]: never; }>(base?: I): UpdateBoxStatusRequest;
|
|
1011
|
+
fromPartial<I_1 extends {
|
|
660
1012
|
startUp?: boolean | undefined;
|
|
661
1013
|
dataPartition?: boolean | undefined;
|
|
662
1014
|
} & {
|
|
663
1015
|
startUp?: boolean | undefined;
|
|
664
1016
|
dataPartition?: boolean | undefined;
|
|
665
|
-
} & { [
|
|
1017
|
+
} & { [K_1 in Exclude<keyof I_1, keyof UpdateBoxStatusRequest>]: never; }>(object: I_1): UpdateBoxStatusRequest;
|
|
666
1018
|
};
|
|
667
1019
|
export declare const UpdateBoxStatusResponse: {
|
|
668
1020
|
encode(_: UpdateBoxStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
669
1021
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBoxStatusResponse;
|
|
670
1022
|
fromJSON(_: any): UpdateBoxStatusResponse;
|
|
671
1023
|
toJSON(_: UpdateBoxStatusResponse): unknown;
|
|
672
|
-
|
|
1024
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): UpdateBoxStatusResponse;
|
|
1025
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): UpdateBoxStatusResponse;
|
|
1026
|
+
};
|
|
1027
|
+
export declare const TrustUserDeviceRequest: {
|
|
1028
|
+
encode(message: TrustUserDeviceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
1029
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TrustUserDeviceRequest;
|
|
1030
|
+
fromJSON(object: any): TrustUserDeviceRequest;
|
|
1031
|
+
toJSON(message: TrustUserDeviceRequest): unknown;
|
|
1032
|
+
create<I extends {
|
|
1033
|
+
udid?: string;
|
|
1034
|
+
user?: string;
|
|
1035
|
+
} & {
|
|
1036
|
+
udid?: string;
|
|
1037
|
+
user?: string;
|
|
1038
|
+
} & { [K in Exclude<keyof I, keyof TrustUserDeviceRequest>]: never; }>(base?: I): TrustUserDeviceRequest;
|
|
1039
|
+
fromPartial<I_1 extends {
|
|
1040
|
+
udid?: string;
|
|
1041
|
+
user?: string;
|
|
1042
|
+
} & {
|
|
1043
|
+
udid?: string;
|
|
1044
|
+
user?: string;
|
|
1045
|
+
} & { [K_1 in Exclude<keyof I_1, keyof TrustUserDeviceRequest>]: never; }>(object: I_1): TrustUserDeviceRequest;
|
|
1046
|
+
};
|
|
1047
|
+
export declare const ForceResetPasswordRequest: {
|
|
1048
|
+
encode(message: ForceResetPasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
1049
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ForceResetPasswordRequest;
|
|
1050
|
+
fromJSON(object: any): ForceResetPasswordRequest;
|
|
1051
|
+
toJSON(message: ForceResetPasswordRequest): unknown;
|
|
1052
|
+
create<I extends {
|
|
1053
|
+
uid?: string;
|
|
1054
|
+
newPassword?: string;
|
|
1055
|
+
} & {
|
|
1056
|
+
uid?: string;
|
|
1057
|
+
newPassword?: string;
|
|
1058
|
+
} & { [K in Exclude<keyof I, keyof ForceResetPasswordRequest>]: never; }>(base?: I): ForceResetPasswordRequest;
|
|
1059
|
+
fromPartial<I_1 extends {
|
|
1060
|
+
uid?: string;
|
|
1061
|
+
newPassword?: string;
|
|
1062
|
+
} & {
|
|
1063
|
+
uid?: string;
|
|
1064
|
+
newPassword?: string;
|
|
1065
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ForceResetPasswordRequest>]: never; }>(object: I_1): ForceResetPasswordRequest;
|
|
1066
|
+
};
|
|
1067
|
+
export declare const LogoutRequest: {
|
|
1068
|
+
encode(message: LogoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
1069
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogoutRequest;
|
|
1070
|
+
fromJSON(object: any): LogoutRequest;
|
|
1071
|
+
toJSON(message: LogoutRequest): unknown;
|
|
1072
|
+
create<I extends {
|
|
1073
|
+
uid?: string;
|
|
1074
|
+
udid?: string;
|
|
1075
|
+
reason?: LogoutRequest_Reason;
|
|
1076
|
+
} & {
|
|
1077
|
+
uid?: string;
|
|
1078
|
+
udid?: string;
|
|
1079
|
+
reason?: LogoutRequest_Reason;
|
|
1080
|
+
} & { [K in Exclude<keyof I, keyof LogoutRequest>]: never; }>(base?: I): LogoutRequest;
|
|
1081
|
+
fromPartial<I_1 extends {
|
|
1082
|
+
uid?: string;
|
|
1083
|
+
udid?: string;
|
|
1084
|
+
reason?: LogoutRequest_Reason;
|
|
1085
|
+
} & {
|
|
1086
|
+
uid?: string;
|
|
1087
|
+
udid?: string;
|
|
1088
|
+
reason?: LogoutRequest_Reason;
|
|
1089
|
+
} & { [K_1 in Exclude<keyof I_1, keyof LogoutRequest>]: never; }>(object: I_1): LogoutRequest;
|
|
1090
|
+
};
|
|
1091
|
+
export declare const AppCertRequest: {
|
|
1092
|
+
encode(message: AppCertRequest, writer?: _m0.Writer): _m0.Writer;
|
|
1093
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertRequest;
|
|
1094
|
+
fromJSON(object: any): AppCertRequest;
|
|
1095
|
+
toJSON(message: AppCertRequest): unknown;
|
|
1096
|
+
create<I extends {
|
|
1097
|
+
appid?: string;
|
|
1098
|
+
uid?: string;
|
|
1099
|
+
validSeconds?: number;
|
|
1100
|
+
} & {
|
|
1101
|
+
appid?: string;
|
|
1102
|
+
uid?: string;
|
|
1103
|
+
validSeconds?: number;
|
|
1104
|
+
} & { [K in Exclude<keyof I, keyof AppCertRequest>]: never; }>(base?: I): AppCertRequest;
|
|
1105
|
+
fromPartial<I_1 extends {
|
|
1106
|
+
appid?: string;
|
|
1107
|
+
uid?: string;
|
|
1108
|
+
validSeconds?: number;
|
|
1109
|
+
} & {
|
|
1110
|
+
appid?: string;
|
|
1111
|
+
uid?: string;
|
|
1112
|
+
validSeconds?: number;
|
|
1113
|
+
} & { [K_1 in Exclude<keyof I_1, keyof AppCertRequest>]: never; }>(object: I_1): AppCertRequest;
|
|
1114
|
+
};
|
|
1115
|
+
export declare const AppCertReply: {
|
|
1116
|
+
encode(message: AppCertReply, writer?: _m0.Writer): _m0.Writer;
|
|
1117
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AppCertReply;
|
|
1118
|
+
fromJSON(object: any): AppCertReply;
|
|
1119
|
+
toJSON(message: AppCertReply): unknown;
|
|
1120
|
+
create<I extends {
|
|
1121
|
+
cert?: string;
|
|
1122
|
+
privateKey?: string;
|
|
1123
|
+
boxCert?: string;
|
|
1124
|
+
} & {
|
|
1125
|
+
cert?: string;
|
|
1126
|
+
privateKey?: string;
|
|
1127
|
+
boxCert?: string;
|
|
1128
|
+
} & { [K in Exclude<keyof I, keyof AppCertReply>]: never; }>(base?: I): AppCertReply;
|
|
1129
|
+
fromPartial<I_1 extends {
|
|
1130
|
+
cert?: string;
|
|
1131
|
+
privateKey?: string;
|
|
1132
|
+
boxCert?: string;
|
|
1133
|
+
} & {
|
|
1134
|
+
cert?: string;
|
|
1135
|
+
privateKey?: string;
|
|
1136
|
+
boxCert?: string;
|
|
1137
|
+
} & { [K_1 in Exclude<keyof I_1, keyof AppCertReply>]: never; }>(object: I_1): AppCertReply;
|
|
673
1138
|
};
|
|
674
1139
|
export interface HPortalSys {
|
|
675
1140
|
/** 用auth-token反向查询登陆的设备以及UID */
|
|
676
1141
|
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
1142
|
QueryBoxInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<BoxInfo>;
|
|
681
1143
|
/**
|
|
682
1144
|
* 获取盒子所属域名下或下一级域名的https证书。
|
|
683
1145
|
* 注意不是所有ACME服务器都支持泛域名。
|
|
684
1146
|
*/
|
|
685
1147
|
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
1148
|
/** 申请额外的外部可访问的IP,并配置对应访问域名 */
|
|
698
1149
|
AllocVirtualExternalIP(request: DeepPartial<AllocVEIPRequest>, metadata?: grpc.Metadata): Promise<AllocVEIPReply>;
|
|
699
1150
|
/** 释放虚拟IP */
|
|
700
1151
|
FreeVirtualExternalIP(request: DeepPartial<FreeVEIPRequest>, metadata?: grpc.Metadata): Promise<FreeVEIPReply>;
|
|
701
1152
|
/** 查询所有UID */
|
|
702
1153
|
ListUsers(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<ListUsersReply>;
|
|
1154
|
+
/** 创建用户信息 */
|
|
1155
|
+
CreateUser(request: DeepPartial<CreateUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1156
|
+
/** 删除用户信息 */
|
|
1157
|
+
DeleteUser(request: DeepPartial<DeleteUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1158
|
+
/** 修改新的密码 */
|
|
1159
|
+
ResetPassword(request: DeepPartial<ResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1160
|
+
/** 校验用户密码是否正确 */
|
|
1161
|
+
CheckPassword(request: DeepPartial<CheckPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
703
1162
|
/** 根据用户uid查询用户信息 */
|
|
704
1163
|
QueryRole(request: DeepPartial<UserID>, metadata?: grpc.Metadata): Promise<QueryRoleReply>;
|
|
705
1164
|
/** 修改指定uid的用户角色 */
|
|
706
1165
|
ChangeRole(request: DeepPartial<ChangeRoleReqeust>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
707
|
-
/**
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
1166
|
+
/** 添加或删除受信任设备 */
|
|
1167
|
+
ChangeTrustEndDevice(request: DeepPartial<ChangeTrustEndDeviceRequest>, metadata?: grpc.Metadata): Promise<ChangeTrustEndDeviceReply>;
|
|
1168
|
+
/** 根据UID返回所有的设备列表 */
|
|
1169
|
+
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
1170
|
+
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
1171
|
+
/** 删除登陆的会话状态 */
|
|
1172
|
+
ClearLoginSession(request: DeepPartial<ClearLoginSessionRequest>, metadata?: grpc.Metadata): Promise<ClearLoginSessionReply>;
|
|
1173
|
+
/** 获取remotesocks服务器地址 */
|
|
1174
|
+
RemoteSocks(request: DeepPartial<RemoteSocksRequest>, metadata?: grpc.Metadata): Promise<RemoteSocksReply>;
|
|
1175
|
+
/**
|
|
1176
|
+
* hserver重启后默认设置BoxSystem为booting状态
|
|
1177
|
+
* 实际的BoxSystem需要定期(建议两到三秒)设置其实际状态,避免hserver被手动或自动重启后设置的盒子系统状态错误
|
|
1178
|
+
*/
|
|
1179
|
+
UpdateBoxSystemStatus(request: DeepPartial<UpdateBoxSystemStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxSystemStatusResponse>;
|
|
1180
|
+
/** @deprecated */
|
|
1181
|
+
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
1182
|
+
/** @deprecated */
|
|
1183
|
+
UpdateBoxStatus(request: DeepPartial<UpdateBoxStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxStatusResponse>;
|
|
1184
|
+
/** @deprecated */
|
|
714
1185
|
ForceResetPassword(request: DeepPartial<ForceResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
715
|
-
/**
|
|
1186
|
+
/**
|
|
1187
|
+
* 强制注销当前用户指定设备.
|
|
1188
|
+
* 1. 删除设备应该通过ChangeTrustEndDevice来处理
|
|
1189
|
+
* 2. 强制断开会话应该由ClearSession接口完成
|
|
1190
|
+
*
|
|
1191
|
+
* @deprecated
|
|
1192
|
+
*/
|
|
716
1193
|
Logout(request: DeepPartial<LogoutRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
717
|
-
/**
|
|
718
|
-
|
|
719
|
-
|
|
1194
|
+
/**
|
|
1195
|
+
* 以下接口要改名字
|
|
1196
|
+
* 强制将特定设备加到受信任列表中
|
|
1197
|
+
*
|
|
1198
|
+
* @deprecated
|
|
1199
|
+
*/
|
|
720
1200
|
TrustUserDevice(request: DeepPartial<TrustUserDeviceRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
721
|
-
|
|
1201
|
+
/**
|
|
1202
|
+
* hportal不应该处理app cert相关逻辑,上层逻辑应该通过GetDomainCert获取到crt和key后自行处理
|
|
1203
|
+
* 在部署具体app前,调用此接口获取app证书
|
|
1204
|
+
* APP证书格式为:
|
|
1205
|
+
* Issuer: O = $BOX.ORIGIN, CN = $BOX.DOMAIN, serialNumber = $BOX.ID
|
|
1206
|
+
* Subject: O = $BOX.ORIGIN, CN = $APP.DOMAIN, serialNumber = '$UID@$APP.ID || $APP.ID'
|
|
1207
|
+
* Issuer为box.crt,通过QueryBoxInfo查询到BoxInfo.BoxCrt。并且box.crt的公钥与box.id是一一对应关系。
|
|
1208
|
+
*
|
|
1209
|
+
* 盒子内部组件可以直接通过QueryBoxInfo来验证信任链是否合法,盒子外部系统需要通过其他机制比如libp2p.identify去验证box.crt的合法性。
|
|
1210
|
+
*
|
|
1211
|
+
* @deprecated
|
|
1212
|
+
*/
|
|
1213
|
+
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
722
1214
|
}
|
|
723
1215
|
export declare class HPortalSysClientImpl implements HPortalSys {
|
|
724
1216
|
private readonly rpc;
|
|
725
1217
|
constructor(rpc: Rpc);
|
|
726
1218
|
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
1219
|
QueryBoxInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<BoxInfo>;
|
|
730
1220
|
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
1221
|
AllocVirtualExternalIP(request: DeepPartial<AllocVEIPRequest>, metadata?: grpc.Metadata): Promise<AllocVEIPReply>;
|
|
734
1222
|
FreeVirtualExternalIP(request: DeepPartial<FreeVEIPRequest>, metadata?: grpc.Metadata): Promise<FreeVEIPReply>;
|
|
735
1223
|
ListUsers(request: DeepPartial<Empty>, metadata?: grpc.Metadata): Promise<ListUsersReply>;
|
|
1224
|
+
CreateUser(request: DeepPartial<CreateUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1225
|
+
DeleteUser(request: DeepPartial<DeleteUserRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1226
|
+
ResetPassword(request: DeepPartial<ResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
1227
|
+
CheckPassword(request: DeepPartial<CheckPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
736
1228
|
QueryRole(request: DeepPartial<UserID>, metadata?: grpc.Metadata): Promise<QueryRoleReply>;
|
|
737
1229
|
ChangeRole(request: DeepPartial<ChangeRoleReqeust>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
1230
|
+
ChangeTrustEndDevice(request: DeepPartial<ChangeTrustEndDeviceRequest>, metadata?: grpc.Metadata): Promise<ChangeTrustEndDeviceReply>;
|
|
1231
|
+
ListDevices(request: DeepPartial<ListDeviceRequest>, metadata?: grpc.Metadata): Promise<ListDeviceReply>;
|
|
1232
|
+
QueryDeviceByID(request: DeepPartial<DeviceID>, metadata?: grpc.Metadata): Promise<Device>;
|
|
1233
|
+
ClearLoginSession(request: DeepPartial<ClearLoginSessionRequest>, metadata?: grpc.Metadata): Promise<ClearLoginSessionReply>;
|
|
1234
|
+
RemoteSocks(request: DeepPartial<RemoteSocksRequest>, metadata?: grpc.Metadata): Promise<RemoteSocksReply>;
|
|
1235
|
+
UpdateBoxSystemStatus(request: DeepPartial<UpdateBoxSystemStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxSystemStatusResponse>;
|
|
1236
|
+
GetDomainSelfCert(request: DeepPartial<DomainCertRequest>, metadata?: grpc.Metadata): Promise<DomainCertReply>;
|
|
1237
|
+
UpdateBoxStatus(request: DeepPartial<UpdateBoxStatusRequest>, metadata?: grpc.Metadata): Promise<UpdateBoxStatusResponse>;
|
|
741
1238
|
ForceResetPassword(request: DeepPartial<ForceResetPasswordRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
742
1239
|
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
1240
|
TrustUserDevice(request: DeepPartial<TrustUserDeviceRequest>, metadata?: grpc.Metadata): Promise<Empty>;
|
|
746
|
-
|
|
1241
|
+
GetAppCert(request: DeepPartial<AppCertRequest>, metadata?: grpc.Metadata): Promise<AppCertReply>;
|
|
747
1242
|
}
|
|
748
1243
|
export declare const HPortalSysDesc: {
|
|
749
1244
|
serviceName: string;
|
|
750
1245
|
};
|
|
751
1246
|
export declare const HPortalSysQueryLoginDesc: UnaryMethodDefinitionish;
|
|
752
|
-
export declare const HPortalSysListDevicesDesc: UnaryMethodDefinitionish;
|
|
753
|
-
export declare const HPortalSysQueryDeviceByIDDesc: UnaryMethodDefinitionish;
|
|
754
1247
|
export declare const HPortalSysQueryBoxInfoDesc: UnaryMethodDefinitionish;
|
|
755
1248
|
export declare const HPortalSysGetDomainCertDesc: UnaryMethodDefinitionish;
|
|
756
|
-
export declare const HPortalSysGetDomainSelfCertDesc: UnaryMethodDefinitionish;
|
|
757
|
-
export declare const HPortalSysGetAppCertDesc: UnaryMethodDefinitionish;
|
|
758
1249
|
export declare const HPortalSysAllocVirtualExternalIPDesc: UnaryMethodDefinitionish;
|
|
759
1250
|
export declare const HPortalSysFreeVirtualExternalIPDesc: UnaryMethodDefinitionish;
|
|
760
1251
|
export declare const HPortalSysListUsersDesc: UnaryMethodDefinitionish;
|
|
1252
|
+
export declare const HPortalSysCreateUserDesc: UnaryMethodDefinitionish;
|
|
1253
|
+
export declare const HPortalSysDeleteUserDesc: UnaryMethodDefinitionish;
|
|
1254
|
+
export declare const HPortalSysResetPasswordDesc: UnaryMethodDefinitionish;
|
|
1255
|
+
export declare const HPortalSysCheckPasswordDesc: UnaryMethodDefinitionish;
|
|
761
1256
|
export declare const HPortalSysQueryRoleDesc: UnaryMethodDefinitionish;
|
|
762
1257
|
export declare const HPortalSysChangeRoleDesc: UnaryMethodDefinitionish;
|
|
763
|
-
export declare const
|
|
764
|
-
export declare const
|
|
765
|
-
export declare const
|
|
1258
|
+
export declare const HPortalSysChangeTrustEndDeviceDesc: UnaryMethodDefinitionish;
|
|
1259
|
+
export declare const HPortalSysListDevicesDesc: UnaryMethodDefinitionish;
|
|
1260
|
+
export declare const HPortalSysQueryDeviceByIDDesc: UnaryMethodDefinitionish;
|
|
1261
|
+
export declare const HPortalSysClearLoginSessionDesc: UnaryMethodDefinitionish;
|
|
1262
|
+
export declare const HPortalSysRemoteSocksDesc: UnaryMethodDefinitionish;
|
|
1263
|
+
export declare const HPortalSysUpdateBoxSystemStatusDesc: UnaryMethodDefinitionish;
|
|
1264
|
+
export declare const HPortalSysGetDomainSelfCertDesc: UnaryMethodDefinitionish;
|
|
1265
|
+
export declare const HPortalSysUpdateBoxStatusDesc: UnaryMethodDefinitionish;
|
|
766
1266
|
export declare const HPortalSysForceResetPasswordDesc: UnaryMethodDefinitionish;
|
|
767
1267
|
export declare const HPortalSysLogoutDesc: UnaryMethodDefinitionish;
|
|
768
|
-
export declare const HPortalSysCheckPasswordDesc: UnaryMethodDefinitionish;
|
|
769
|
-
export declare const HPortalSysRemoteSocksDesc: UnaryMethodDefinitionish;
|
|
770
1268
|
export declare const HPortalSysTrustUserDeviceDesc: UnaryMethodDefinitionish;
|
|
771
|
-
export declare const
|
|
1269
|
+
export declare const HPortalSysGetAppCertDesc: UnaryMethodDefinitionish;
|
|
772
1270
|
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
773
1271
|
requestStream: any;
|
|
774
1272
|
responseStream: any;
|
|
775
1273
|
}
|
|
776
|
-
|
|
1274
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
777
1275
|
interface Rpc {
|
|
778
1276
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
779
1277
|
}
|
|
@@ -788,11 +1286,12 @@ export declare class GrpcWebImpl {
|
|
|
788
1286
|
});
|
|
789
1287
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
790
1288
|
}
|
|
791
|
-
declare
|
|
792
|
-
|
|
1289
|
+
declare var tsProtoGlobalThis: any;
|
|
1290
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1291
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
793
1292
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
794
1293
|
} : Partial<T>;
|
|
795
|
-
export declare class GrpcWebError extends Error {
|
|
1294
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
796
1295
|
code: grpc.Code;
|
|
797
1296
|
metadata: grpc.Metadata;
|
|
798
1297
|
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|