openclaw-stepfun 0.2.2
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/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +18 -0
- package/dist/src/accounts.d.ts +22 -0
- package/dist/src/accounts.js +43 -0
- package/dist/src/bot.d.ts +16 -0
- package/dist/src/bot.js +100 -0
- package/dist/src/channel.d.ts +4 -0
- package/dist/src/channel.js +206 -0
- package/dist/src/client.d.ts +51 -0
- package/dist/src/client.js +206 -0
- package/dist/src/monitor.d.ts +19 -0
- package/dist/src/monitor.js +153 -0
- package/dist/src/proto/capy/botauth/auth_common_pb.d.ts +82 -0
- package/dist/src/proto/capy/botauth/auth_common_pb.js +35 -0
- package/dist/src/proto/capy/botauth/botauth_connect.d.ts +118 -0
- package/dist/src/proto/capy/botauth/botauth_connect.js +118 -0
- package/dist/src/proto/capy/botauth/botauth_pb.d.ts +1065 -0
- package/dist/src/proto/capy/botauth/botauth_pb.js +348 -0
- package/dist/src/proto/capy/botauth/public_connect.d.ts +62 -0
- package/dist/src/proto/capy/botauth/public_connect.js +62 -0
- package/dist/src/proto/capy/botauth/public_pb.d.ts +254 -0
- package/dist/src/proto/capy/botauth/public_pb.js +105 -0
- package/dist/src/proto/capy/botmsg/botmsg_connect.d.ts +72 -0
- package/dist/src/proto/capy/botmsg/botmsg_connect.js +72 -0
- package/dist/src/proto/capy/botmsg/botmsg_pb.d.ts +426 -0
- package/dist/src/proto/capy/botmsg/botmsg_pb.js +160 -0
- package/dist/src/proto/capy/botway/ctrl_connect.d.ts +61 -0
- package/dist/src/proto/capy/botway/ctrl_connect.js +61 -0
- package/dist/src/proto/capy/botway/ctrl_pb.d.ts +267 -0
- package/dist/src/proto/capy/botway/ctrl_pb.js +120 -0
- package/dist/src/proto/capy/botway/stream_connect.d.ts +26 -0
- package/dist/src/proto/capy/botway/stream_connect.js +26 -0
- package/dist/src/proto/capy/botway/stream_pb.d.ts +495 -0
- package/dist/src/proto/capy/botway/stream_pb.js +165 -0
- package/dist/src/reply-dispatcher.d.ts +17 -0
- package/dist/src/reply-dispatcher.js +234 -0
- package/dist/src/runtime.d.ts +4 -0
- package/dist/src/runtime.js +11 -0
- package/dist/src/send.d.ts +19 -0
- package/dist/src/send.js +66 -0
- package/dist/src/types.d.ts +65 -0
- package/dist/src/types.js +2 -0
- package/dist/src/websocket/cacheEvent.d.ts +17 -0
- package/dist/src/websocket/cacheEvent.js +61 -0
- package/dist/src/websocket/connect.d.ts +32 -0
- package/dist/src/websocket/connect.js +79 -0
- package/dist/src/websocket/constant.d.ts +8 -0
- package/dist/src/websocket/constant.js +10 -0
- package/dist/src/websocket/eventBus.d.ts +15 -0
- package/dist/src/websocket/eventBus.js +46 -0
- package/dist/src/websocket/index.d.ts +117 -0
- package/dist/src/websocket/index.js +637 -0
- package/dist/src/websocket/service.d.ts +36 -0
- package/dist/src/websocket/service.js +4 -0
- package/dist/src/websocket/stream.d.ts +10 -0
- package/dist/src/websocket/stream.js +24 -0
- package/dist/src/websocket/streamConnect.d.ts +40 -0
- package/dist/src/websocket/streamConnect.js +48 -0
- package/openclaw.plugin.json +23 -0
- package/package.json +69 -0
- package/scripts/setup.mjs +381 -0
- package/scripts/switch-env.mjs +98 -0
|
@@ -0,0 +1,1065 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.8.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file capy/botauth/botauth.proto (package step.capy.botauth, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
import type { BotAccount } from "./auth_common_pb.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum step.capy.botauth.LoginStatus
|
|
12
|
+
*/
|
|
13
|
+
export declare enum LoginStatus {
|
|
14
|
+
/**
|
|
15
|
+
* 登录成功
|
|
16
|
+
*
|
|
17
|
+
* @generated from enum value: OK = 0;
|
|
18
|
+
*/
|
|
19
|
+
OK = 0,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 鉴权失败
|
|
23
|
+
*
|
|
24
|
+
* @generated from enum value: Fail = 1;
|
|
25
|
+
*/
|
|
26
|
+
Fail = 1,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* access token过期
|
|
30
|
+
*
|
|
31
|
+
* @generated from enum value: Expired = 2;
|
|
32
|
+
*/
|
|
33
|
+
Expired = 2,
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: Banned = 3;
|
|
37
|
+
*/
|
|
38
|
+
Banned = 3,
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: NotActivated = 4;
|
|
42
|
+
*/
|
|
43
|
+
NotActivated = 4,
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 创建会话失败
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: SessionFail = 5;
|
|
49
|
+
*/
|
|
50
|
+
SessionFail = 5,
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from message step.capy.botauth.Node
|
|
55
|
+
*/
|
|
56
|
+
export declare class Node extends Message<Node> {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string ip = 1;
|
|
59
|
+
*/
|
|
60
|
+
ip: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: uint32 port = 2;
|
|
64
|
+
*/
|
|
65
|
+
port: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string network = 3;
|
|
69
|
+
*/
|
|
70
|
+
network: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: string protocol = 4;
|
|
74
|
+
*/
|
|
75
|
+
protocol: string;
|
|
76
|
+
|
|
77
|
+
constructor(data?: PartialMessage<Node>);
|
|
78
|
+
|
|
79
|
+
static readonly runtime: typeof proto3;
|
|
80
|
+
static readonly typeName = "step.capy.botauth.Node";
|
|
81
|
+
static readonly fields: FieldList;
|
|
82
|
+
|
|
83
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Node;
|
|
84
|
+
|
|
85
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Node;
|
|
86
|
+
|
|
87
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Node;
|
|
88
|
+
|
|
89
|
+
static equals(a: Node | PlainMessage<Node> | undefined, b: Node | PlainMessage<Node> | undefined): boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 长连接网关的鉴权
|
|
94
|
+
*
|
|
95
|
+
* @generated from message step.capy.botauth.LoginReq
|
|
96
|
+
*/
|
|
97
|
+
export declare class LoginReq extends Message<LoginReq> {
|
|
98
|
+
/**
|
|
99
|
+
* 业务id
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: string product = 1;
|
|
102
|
+
*/
|
|
103
|
+
product: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 用户uid
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: string uid = 2;
|
|
109
|
+
*/
|
|
110
|
+
uid: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 校验的token
|
|
114
|
+
*
|
|
115
|
+
* @generated from field: string token = 3;
|
|
116
|
+
*/
|
|
117
|
+
token: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 校验的token类型,当前只有passport
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: string token_type = 4;
|
|
123
|
+
*/
|
|
124
|
+
tokenType: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 0=所有版本, 1=Web H5, 2=小程序, 3=Android, 4=iPhone
|
|
128
|
+
*
|
|
129
|
+
* @generated from field: uint32 platform = 5;
|
|
130
|
+
*/
|
|
131
|
+
platform: number;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 设备名称
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: string device = 6;
|
|
137
|
+
*/
|
|
138
|
+
device: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* app版本
|
|
142
|
+
*
|
|
143
|
+
* @generated from field: string app_version = 7;
|
|
144
|
+
*/
|
|
145
|
+
appVersion: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 连接id
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: string conn_id = 8;
|
|
151
|
+
*/
|
|
152
|
+
connId: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 客户端IP
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: string client_addr = 9;
|
|
158
|
+
*/
|
|
159
|
+
clientAddr: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* 接入节点信息,用于主动Push
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: step.capy.botauth.Node node = 10;
|
|
165
|
+
*/
|
|
166
|
+
node?: Node;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 保留字段,对齐gateway的AuthBindReq,保存openid等
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: map<string, string> reserved = 11;
|
|
172
|
+
*/
|
|
173
|
+
reserved: { [key: string]: string };
|
|
174
|
+
|
|
175
|
+
constructor(data?: PartialMessage<LoginReq>);
|
|
176
|
+
|
|
177
|
+
static readonly runtime: typeof proto3;
|
|
178
|
+
static readonly typeName = "step.capy.botauth.LoginReq";
|
|
179
|
+
static readonly fields: FieldList;
|
|
180
|
+
|
|
181
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoginReq;
|
|
182
|
+
|
|
183
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoginReq;
|
|
184
|
+
|
|
185
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoginReq;
|
|
186
|
+
|
|
187
|
+
static equals(a: LoginReq | PlainMessage<LoginReq> | undefined, b: LoginReq | PlainMessage<LoginReq> | undefined): boolean;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message step.capy.botauth.LoginRes
|
|
192
|
+
*/
|
|
193
|
+
export declare class LoginRes extends Message<LoginRes> {
|
|
194
|
+
/**
|
|
195
|
+
* 0:成功
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: step.capy.botauth.LoginStatus status = 1;
|
|
198
|
+
*/
|
|
199
|
+
status: LoginStatus;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 错误提示
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: string error = 2;
|
|
205
|
+
*/
|
|
206
|
+
error: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* uid
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: int64 uid = 3;
|
|
212
|
+
*/
|
|
213
|
+
uid: bigint;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* conn_id
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: string conn_id = 4;
|
|
219
|
+
*/
|
|
220
|
+
connId: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* 会话id
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: string session_id = 5;
|
|
226
|
+
*/
|
|
227
|
+
sessionId: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 0=匿名,1=登陆
|
|
231
|
+
*
|
|
232
|
+
* @generated from field: bool logined = 6;
|
|
233
|
+
*/
|
|
234
|
+
logined: boolean;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* 用户类型,与uinfo的UserRoleType枚举一致
|
|
238
|
+
*
|
|
239
|
+
* @generated from field: int32 user_type = 7;
|
|
240
|
+
*/
|
|
241
|
+
userType: number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 是否新用户,用于终端埋点
|
|
245
|
+
*
|
|
246
|
+
* @generated from field: bool new = 8;
|
|
247
|
+
*/
|
|
248
|
+
new: boolean;
|
|
249
|
+
|
|
250
|
+
constructor(data?: PartialMessage<LoginRes>);
|
|
251
|
+
|
|
252
|
+
static readonly runtime: typeof proto3;
|
|
253
|
+
static readonly typeName = "step.capy.botauth.LoginRes";
|
|
254
|
+
static readonly fields: FieldList;
|
|
255
|
+
|
|
256
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LoginRes;
|
|
257
|
+
|
|
258
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LoginRes;
|
|
259
|
+
|
|
260
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LoginRes;
|
|
261
|
+
|
|
262
|
+
static equals(a: LoginRes | PlainMessage<LoginRes> | undefined, b: LoginRes | PlainMessage<LoginRes> | undefined): boolean;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* 长连接网关登出
|
|
267
|
+
*
|
|
268
|
+
* @generated from message step.capy.botauth.LogoutReq
|
|
269
|
+
*/
|
|
270
|
+
export declare class LogoutReq extends Message<LogoutReq> {
|
|
271
|
+
/**
|
|
272
|
+
* uid
|
|
273
|
+
*
|
|
274
|
+
* @generated from field: int64 uid = 1;
|
|
275
|
+
*/
|
|
276
|
+
uid: bigint;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* 会话id
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: string session_id = 2;
|
|
282
|
+
*/
|
|
283
|
+
sessionId: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 原因,网关的close code
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: int32 code = 3;
|
|
289
|
+
*/
|
|
290
|
+
code: number;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* 原因描述
|
|
294
|
+
*
|
|
295
|
+
* @generated from field: string reason = 4;
|
|
296
|
+
*/
|
|
297
|
+
reason: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* 保留自定义字段
|
|
301
|
+
*
|
|
302
|
+
* @generated from field: map<string, string> reserved = 5;
|
|
303
|
+
*/
|
|
304
|
+
reserved: { [key: string]: string };
|
|
305
|
+
|
|
306
|
+
constructor(data?: PartialMessage<LogoutReq>);
|
|
307
|
+
|
|
308
|
+
static readonly runtime: typeof proto3;
|
|
309
|
+
static readonly typeName = "step.capy.botauth.LogoutReq";
|
|
310
|
+
static readonly fields: FieldList;
|
|
311
|
+
|
|
312
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogoutReq;
|
|
313
|
+
|
|
314
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogoutReq;
|
|
315
|
+
|
|
316
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogoutReq;
|
|
317
|
+
|
|
318
|
+
static equals(a: LogoutReq | PlainMessage<LogoutReq> | undefined, b: LogoutReq | PlainMessage<LogoutReq> | undefined): boolean;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @generated from message step.capy.botauth.LogoutRes
|
|
323
|
+
*/
|
|
324
|
+
export declare class LogoutRes extends Message<LogoutRes> {
|
|
325
|
+
constructor(data?: PartialMessage<LogoutRes>);
|
|
326
|
+
|
|
327
|
+
static readonly runtime: typeof proto3;
|
|
328
|
+
static readonly typeName = "step.capy.botauth.LogoutRes";
|
|
329
|
+
static readonly fields: FieldList;
|
|
330
|
+
|
|
331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogoutRes;
|
|
332
|
+
|
|
333
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogoutRes;
|
|
334
|
+
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogoutRes;
|
|
336
|
+
|
|
337
|
+
static equals(a: LogoutRes | PlainMessage<LogoutRes> | undefined, b: LogoutRes | PlainMessage<LogoutRes> | undefined): boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* 接入层对用户会话心跳保活
|
|
342
|
+
*
|
|
343
|
+
* @generated from message step.capy.botauth.HeartbeatReq
|
|
344
|
+
*/
|
|
345
|
+
export declare class HeartbeatReq extends Message<HeartbeatReq> {
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: int64 uid = 1;
|
|
348
|
+
*/
|
|
349
|
+
uid: bigint;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @generated from field: string conn_id = 2;
|
|
353
|
+
*/
|
|
354
|
+
connId: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: string session_id = 3;
|
|
358
|
+
*/
|
|
359
|
+
sessionId: string;
|
|
360
|
+
|
|
361
|
+
constructor(data?: PartialMessage<HeartbeatReq>);
|
|
362
|
+
|
|
363
|
+
static readonly runtime: typeof proto3;
|
|
364
|
+
static readonly typeName = "step.capy.botauth.HeartbeatReq";
|
|
365
|
+
static readonly fields: FieldList;
|
|
366
|
+
|
|
367
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HeartbeatReq;
|
|
368
|
+
|
|
369
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HeartbeatReq;
|
|
370
|
+
|
|
371
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HeartbeatReq;
|
|
372
|
+
|
|
373
|
+
static equals(a: HeartbeatReq | PlainMessage<HeartbeatReq> | undefined, b: HeartbeatReq | PlainMessage<HeartbeatReq> | undefined): boolean;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @generated from message step.capy.botauth.HeartbeatRes
|
|
378
|
+
*/
|
|
379
|
+
export declare class HeartbeatRes extends Message<HeartbeatRes> {
|
|
380
|
+
constructor(data?: PartialMessage<HeartbeatRes>);
|
|
381
|
+
|
|
382
|
+
static readonly runtime: typeof proto3;
|
|
383
|
+
static readonly typeName = "step.capy.botauth.HeartbeatRes";
|
|
384
|
+
static readonly fields: FieldList;
|
|
385
|
+
|
|
386
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HeartbeatRes;
|
|
387
|
+
|
|
388
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HeartbeatRes;
|
|
389
|
+
|
|
390
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HeartbeatRes;
|
|
391
|
+
|
|
392
|
+
static equals(a: HeartbeatRes | PlainMessage<HeartbeatRes> | undefined, b: HeartbeatRes | PlainMessage<HeartbeatRes> | undefined): boolean;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* 通用会话对象
|
|
397
|
+
*
|
|
398
|
+
* @generated from message step.capy.botauth.Session
|
|
399
|
+
*/
|
|
400
|
+
export declare class Session extends Message<Session> {
|
|
401
|
+
/**
|
|
402
|
+
* 用户uid
|
|
403
|
+
*
|
|
404
|
+
* @generated from field: int64 uid = 1;
|
|
405
|
+
*/
|
|
406
|
+
uid: bigint;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* 会话id
|
|
410
|
+
*
|
|
411
|
+
* @generated from field: string session_id = 2;
|
|
412
|
+
*/
|
|
413
|
+
sessionId: string;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* 0=匿名,1=登陆
|
|
417
|
+
*
|
|
418
|
+
* @generated from field: bool logined = 3;
|
|
419
|
+
*/
|
|
420
|
+
logined: boolean;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* 业务id
|
|
424
|
+
*
|
|
425
|
+
* @generated from field: string product = 4;
|
|
426
|
+
*/
|
|
427
|
+
product: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* 0=所有版本, 1=Web H5, 2=小程序, 3=Android, 4=iPhone
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: string platform = 5;
|
|
433
|
+
*/
|
|
434
|
+
platform: string;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* 设备名称
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: string device = 6;
|
|
440
|
+
*/
|
|
441
|
+
device: string;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* app版本
|
|
445
|
+
*
|
|
446
|
+
* @generated from field: string app_version = 7;
|
|
447
|
+
*/
|
|
448
|
+
appVersion: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* 客户端IP
|
|
452
|
+
*
|
|
453
|
+
* @generated from field: string client_addr = 8;
|
|
454
|
+
*/
|
|
455
|
+
clientAddr: string;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* 登陆时间
|
|
459
|
+
*
|
|
460
|
+
* @generated from field: string logined_time = 9;
|
|
461
|
+
*/
|
|
462
|
+
loginedTime: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 最近心跳时间
|
|
466
|
+
*
|
|
467
|
+
* @generated from field: string heartbeat_time = 10;
|
|
468
|
+
*/
|
|
469
|
+
heartbeatTime: string;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* 接入节点信息,用于主动Push
|
|
473
|
+
*
|
|
474
|
+
* @generated from field: step.capy.botauth.Node node = 11;
|
|
475
|
+
*/
|
|
476
|
+
node?: Node;
|
|
477
|
+
|
|
478
|
+
constructor(data?: PartialMessage<Session>);
|
|
479
|
+
|
|
480
|
+
static readonly runtime: typeof proto3;
|
|
481
|
+
static readonly typeName = "step.capy.botauth.Session";
|
|
482
|
+
static readonly fields: FieldList;
|
|
483
|
+
|
|
484
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Session;
|
|
485
|
+
|
|
486
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Session;
|
|
487
|
+
|
|
488
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Session;
|
|
489
|
+
|
|
490
|
+
static equals(a: Session | PlainMessage<Session> | undefined, b: Session | PlainMessage<Session> | undefined): boolean;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* 请求单个会话信息
|
|
495
|
+
*
|
|
496
|
+
* @generated from message step.capy.botauth.QuerySessionReq
|
|
497
|
+
*/
|
|
498
|
+
export declare class QuerySessionReq extends Message<QuerySessionReq> {
|
|
499
|
+
/**
|
|
500
|
+
* @generated from field: string session_id = 1;
|
|
501
|
+
*/
|
|
502
|
+
sessionId: string;
|
|
503
|
+
|
|
504
|
+
constructor(data?: PartialMessage<QuerySessionReq>);
|
|
505
|
+
|
|
506
|
+
static readonly runtime: typeof proto3;
|
|
507
|
+
static readonly typeName = "step.capy.botauth.QuerySessionReq";
|
|
508
|
+
static readonly fields: FieldList;
|
|
509
|
+
|
|
510
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuerySessionReq;
|
|
511
|
+
|
|
512
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuerySessionReq;
|
|
513
|
+
|
|
514
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuerySessionReq;
|
|
515
|
+
|
|
516
|
+
static equals(a: QuerySessionReq | PlainMessage<QuerySessionReq> | undefined, b: QuerySessionReq | PlainMessage<QuerySessionReq> | undefined): boolean;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @generated from message step.capy.botauth.QuerySessionRes
|
|
521
|
+
*/
|
|
522
|
+
export declare class QuerySessionRes extends Message<QuerySessionRes> {
|
|
523
|
+
/**
|
|
524
|
+
* @generated from field: step.capy.botauth.Session session = 1;
|
|
525
|
+
*/
|
|
526
|
+
session?: Session;
|
|
527
|
+
|
|
528
|
+
constructor(data?: PartialMessage<QuerySessionRes>);
|
|
529
|
+
|
|
530
|
+
static readonly runtime: typeof proto3;
|
|
531
|
+
static readonly typeName = "step.capy.botauth.QuerySessionRes";
|
|
532
|
+
static readonly fields: FieldList;
|
|
533
|
+
|
|
534
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuerySessionRes;
|
|
535
|
+
|
|
536
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuerySessionRes;
|
|
537
|
+
|
|
538
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuerySessionRes;
|
|
539
|
+
|
|
540
|
+
static equals(a: QuerySessionRes | PlainMessage<QuerySessionRes> | undefined, b: QuerySessionRes | PlainMessage<QuerySessionRes> | undefined): boolean;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* 按用户请求所有会话信息
|
|
545
|
+
*
|
|
546
|
+
* @generated from message step.capy.botauth.QueryUserReq
|
|
547
|
+
*/
|
|
548
|
+
export declare class QueryUserReq extends Message<QueryUserReq> {
|
|
549
|
+
/**
|
|
550
|
+
* @generated from field: int64 uid = 1;
|
|
551
|
+
*/
|
|
552
|
+
uid: bigint;
|
|
553
|
+
|
|
554
|
+
constructor(data?: PartialMessage<QueryUserReq>);
|
|
555
|
+
|
|
556
|
+
static readonly runtime: typeof proto3;
|
|
557
|
+
static readonly typeName = "step.capy.botauth.QueryUserReq";
|
|
558
|
+
static readonly fields: FieldList;
|
|
559
|
+
|
|
560
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryUserReq;
|
|
561
|
+
|
|
562
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryUserReq;
|
|
563
|
+
|
|
564
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryUserReq;
|
|
565
|
+
|
|
566
|
+
static equals(a: QueryUserReq | PlainMessage<QueryUserReq> | undefined, b: QueryUserReq | PlainMessage<QueryUserReq> | undefined): boolean;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* @generated from message step.capy.botauth.QueryUserRes
|
|
571
|
+
*/
|
|
572
|
+
export declare class QueryUserRes extends Message<QueryUserRes> {
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: repeated step.capy.botauth.Session sessions = 1;
|
|
575
|
+
*/
|
|
576
|
+
sessions: Session[];
|
|
577
|
+
|
|
578
|
+
constructor(data?: PartialMessage<QueryUserRes>);
|
|
579
|
+
|
|
580
|
+
static readonly runtime: typeof proto3;
|
|
581
|
+
static readonly typeName = "step.capy.botauth.QueryUserRes";
|
|
582
|
+
static readonly fields: FieldList;
|
|
583
|
+
|
|
584
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryUserRes;
|
|
585
|
+
|
|
586
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryUserRes;
|
|
587
|
+
|
|
588
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryUserRes;
|
|
589
|
+
|
|
590
|
+
static equals(a: QueryUserRes | PlainMessage<QueryUserRes> | undefined, b: QueryUserRes | PlainMessage<QueryUserRes> | undefined): boolean;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* bot长连接网关的鉴权
|
|
595
|
+
*
|
|
596
|
+
* @generated from message step.capy.botauth.BotLoginReq
|
|
597
|
+
*/
|
|
598
|
+
export declare class BotLoginReq extends Message<BotLoginReq> {
|
|
599
|
+
/**
|
|
600
|
+
* @generated from field: string app_id = 1;
|
|
601
|
+
*/
|
|
602
|
+
appId: string;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* 校验的token
|
|
606
|
+
*
|
|
607
|
+
* @generated from field: string token = 2;
|
|
608
|
+
*/
|
|
609
|
+
token: string;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* app版本
|
|
613
|
+
*
|
|
614
|
+
* @generated from field: string app_version = 3;
|
|
615
|
+
*/
|
|
616
|
+
appVersion: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* 连接id
|
|
620
|
+
*
|
|
621
|
+
* @generated from field: string conn_id = 4;
|
|
622
|
+
*/
|
|
623
|
+
connId: string;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* 客户端IP
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: string client_addr = 5;
|
|
629
|
+
*/
|
|
630
|
+
clientAddr: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* 接入节点信息,用于主动Push
|
|
634
|
+
*
|
|
635
|
+
* @generated from field: step.capy.botauth.Node node = 6;
|
|
636
|
+
*/
|
|
637
|
+
node?: Node;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: map<string, string> reserved = 100;
|
|
641
|
+
*/
|
|
642
|
+
reserved: { [key: string]: string };
|
|
643
|
+
|
|
644
|
+
constructor(data?: PartialMessage<BotLoginReq>);
|
|
645
|
+
|
|
646
|
+
static readonly runtime: typeof proto3;
|
|
647
|
+
static readonly typeName = "step.capy.botauth.BotLoginReq";
|
|
648
|
+
static readonly fields: FieldList;
|
|
649
|
+
|
|
650
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotLoginReq;
|
|
651
|
+
|
|
652
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotLoginReq;
|
|
653
|
+
|
|
654
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotLoginReq;
|
|
655
|
+
|
|
656
|
+
static equals(a: BotLoginReq | PlainMessage<BotLoginReq> | undefined, b: BotLoginReq | PlainMessage<BotLoginReq> | undefined): boolean;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @generated from message step.capy.botauth.BotLoginRes
|
|
661
|
+
*/
|
|
662
|
+
export declare class BotLoginRes extends Message<BotLoginRes> {
|
|
663
|
+
/**
|
|
664
|
+
* 0:成功
|
|
665
|
+
*
|
|
666
|
+
* @generated from field: step.capy.botauth.LoginStatus status = 1;
|
|
667
|
+
*/
|
|
668
|
+
status: LoginStatus;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* 错误提示
|
|
672
|
+
*
|
|
673
|
+
* @generated from field: string error = 2;
|
|
674
|
+
*/
|
|
675
|
+
error: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* uid
|
|
679
|
+
*
|
|
680
|
+
* @generated from field: int64 uid = 3;
|
|
681
|
+
*/
|
|
682
|
+
uid: bigint;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: int64 app_id = 4;
|
|
686
|
+
*/
|
|
687
|
+
appId: bigint;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* conn_id
|
|
691
|
+
*
|
|
692
|
+
* @generated from field: string conn_id = 5;
|
|
693
|
+
*/
|
|
694
|
+
connId: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* 会话id
|
|
698
|
+
*
|
|
699
|
+
* @generated from field: string session_id = 6;
|
|
700
|
+
*/
|
|
701
|
+
sessionId: string;
|
|
702
|
+
|
|
703
|
+
constructor(data?: PartialMessage<BotLoginRes>);
|
|
704
|
+
|
|
705
|
+
static readonly runtime: typeof proto3;
|
|
706
|
+
static readonly typeName = "step.capy.botauth.BotLoginRes";
|
|
707
|
+
static readonly fields: FieldList;
|
|
708
|
+
|
|
709
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotLoginRes;
|
|
710
|
+
|
|
711
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotLoginRes;
|
|
712
|
+
|
|
713
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotLoginRes;
|
|
714
|
+
|
|
715
|
+
static equals(a: BotLoginRes | PlainMessage<BotLoginRes> | undefined, b: BotLoginRes | PlainMessage<BotLoginRes> | undefined): boolean;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* bot长连接网关登出
|
|
720
|
+
*
|
|
721
|
+
* @generated from message step.capy.botauth.BotLogoutReq
|
|
722
|
+
*/
|
|
723
|
+
export declare class BotLogoutReq extends Message<BotLogoutReq> {
|
|
724
|
+
/**
|
|
725
|
+
* app id
|
|
726
|
+
*
|
|
727
|
+
* @generated from field: int64 app_id = 1;
|
|
728
|
+
*/
|
|
729
|
+
appId: bigint;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* 会话id
|
|
733
|
+
*
|
|
734
|
+
* @generated from field: string session_id = 2;
|
|
735
|
+
*/
|
|
736
|
+
sessionId: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* 原因,网关的close code
|
|
740
|
+
*
|
|
741
|
+
* @generated from field: int32 code = 3;
|
|
742
|
+
*/
|
|
743
|
+
code: number;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* 原因描述
|
|
747
|
+
*
|
|
748
|
+
* @generated from field: string reason = 4;
|
|
749
|
+
*/
|
|
750
|
+
reason: string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* 保留自定义字段
|
|
754
|
+
*
|
|
755
|
+
* @generated from field: map<string, string> reserved = 5;
|
|
756
|
+
*/
|
|
757
|
+
reserved: { [key: string]: string };
|
|
758
|
+
|
|
759
|
+
constructor(data?: PartialMessage<BotLogoutReq>);
|
|
760
|
+
|
|
761
|
+
static readonly runtime: typeof proto3;
|
|
762
|
+
static readonly typeName = "step.capy.botauth.BotLogoutReq";
|
|
763
|
+
static readonly fields: FieldList;
|
|
764
|
+
|
|
765
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotLogoutReq;
|
|
766
|
+
|
|
767
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotLogoutReq;
|
|
768
|
+
|
|
769
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotLogoutReq;
|
|
770
|
+
|
|
771
|
+
static equals(a: BotLogoutReq | PlainMessage<BotLogoutReq> | undefined, b: BotLogoutReq | PlainMessage<BotLogoutReq> | undefined): boolean;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* @generated from message step.capy.botauth.BotLogoutRes
|
|
776
|
+
*/
|
|
777
|
+
export declare class BotLogoutRes extends Message<BotLogoutRes> {
|
|
778
|
+
constructor(data?: PartialMessage<BotLogoutRes>);
|
|
779
|
+
|
|
780
|
+
static readonly runtime: typeof proto3;
|
|
781
|
+
static readonly typeName = "step.capy.botauth.BotLogoutRes";
|
|
782
|
+
static readonly fields: FieldList;
|
|
783
|
+
|
|
784
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotLogoutRes;
|
|
785
|
+
|
|
786
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotLogoutRes;
|
|
787
|
+
|
|
788
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotLogoutRes;
|
|
789
|
+
|
|
790
|
+
static equals(a: BotLogoutRes | PlainMessage<BotLogoutRes> | undefined, b: BotLogoutRes | PlainMessage<BotLogoutRes> | undefined): boolean;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* @generated from message step.capy.botauth.BotHeartbeatReq
|
|
795
|
+
*/
|
|
796
|
+
export declare class BotHeartbeatReq extends Message<BotHeartbeatReq> {
|
|
797
|
+
/**
|
|
798
|
+
* @generated from field: int64 app_id = 1;
|
|
799
|
+
*/
|
|
800
|
+
appId: bigint;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* @generated from field: string conn_id = 2;
|
|
804
|
+
*/
|
|
805
|
+
connId: string;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* @generated from field: string session_id = 3;
|
|
809
|
+
*/
|
|
810
|
+
sessionId: string;
|
|
811
|
+
|
|
812
|
+
constructor(data?: PartialMessage<BotHeartbeatReq>);
|
|
813
|
+
|
|
814
|
+
static readonly runtime: typeof proto3;
|
|
815
|
+
static readonly typeName = "step.capy.botauth.BotHeartbeatReq";
|
|
816
|
+
static readonly fields: FieldList;
|
|
817
|
+
|
|
818
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotHeartbeatReq;
|
|
819
|
+
|
|
820
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotHeartbeatReq;
|
|
821
|
+
|
|
822
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotHeartbeatReq;
|
|
823
|
+
|
|
824
|
+
static equals(a: BotHeartbeatReq | PlainMessage<BotHeartbeatReq> | undefined, b: BotHeartbeatReq | PlainMessage<BotHeartbeatReq> | undefined): boolean;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @generated from message step.capy.botauth.BotHeartbeatRes
|
|
829
|
+
*/
|
|
830
|
+
export declare class BotHeartbeatRes extends Message<BotHeartbeatRes> {
|
|
831
|
+
constructor(data?: PartialMessage<BotHeartbeatRes>);
|
|
832
|
+
|
|
833
|
+
static readonly runtime: typeof proto3;
|
|
834
|
+
static readonly typeName = "step.capy.botauth.BotHeartbeatRes";
|
|
835
|
+
static readonly fields: FieldList;
|
|
836
|
+
|
|
837
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotHeartbeatRes;
|
|
838
|
+
|
|
839
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotHeartbeatRes;
|
|
840
|
+
|
|
841
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotHeartbeatRes;
|
|
842
|
+
|
|
843
|
+
static equals(a: BotHeartbeatRes | PlainMessage<BotHeartbeatRes> | undefined, b: BotHeartbeatRes | PlainMessage<BotHeartbeatRes> | undefined): boolean;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* bot通用会话对象
|
|
848
|
+
*
|
|
849
|
+
* @generated from message step.capy.botauth.BotSession
|
|
850
|
+
*/
|
|
851
|
+
export declare class BotSession extends Message<BotSession> {
|
|
852
|
+
/**
|
|
853
|
+
* app_id
|
|
854
|
+
*
|
|
855
|
+
* @generated from field: int64 app_id = 1;
|
|
856
|
+
*/
|
|
857
|
+
appId: bigint;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* 会话id
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: string session_id = 2;
|
|
863
|
+
*/
|
|
864
|
+
sessionId: string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* app版本
|
|
868
|
+
*
|
|
869
|
+
* @generated from field: string app_version = 3;
|
|
870
|
+
*/
|
|
871
|
+
appVersion: string;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* 客户端IP
|
|
875
|
+
*
|
|
876
|
+
* @generated from field: string client_addr = 4;
|
|
877
|
+
*/
|
|
878
|
+
clientAddr: string;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* 登陆时间
|
|
882
|
+
*
|
|
883
|
+
* @generated from field: string logined_time = 5;
|
|
884
|
+
*/
|
|
885
|
+
loginedTime: string;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* 最近心跳时间
|
|
889
|
+
*
|
|
890
|
+
* @generated from field: string heartbeat_time = 6;
|
|
891
|
+
*/
|
|
892
|
+
heartbeatTime: string;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* 接入节点信息,用于主动Push
|
|
896
|
+
*
|
|
897
|
+
* @generated from field: step.capy.botauth.Node node = 7;
|
|
898
|
+
*/
|
|
899
|
+
node?: Node;
|
|
900
|
+
|
|
901
|
+
constructor(data?: PartialMessage<BotSession>);
|
|
902
|
+
|
|
903
|
+
static readonly runtime: typeof proto3;
|
|
904
|
+
static readonly typeName = "step.capy.botauth.BotSession";
|
|
905
|
+
static readonly fields: FieldList;
|
|
906
|
+
|
|
907
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotSession;
|
|
908
|
+
|
|
909
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotSession;
|
|
910
|
+
|
|
911
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotSession;
|
|
912
|
+
|
|
913
|
+
static equals(a: BotSession | PlainMessage<BotSession> | undefined, b: BotSession | PlainMessage<BotSession> | undefined): boolean;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* 请求单个会话信息
|
|
918
|
+
*
|
|
919
|
+
* @generated from message step.capy.botauth.QueryBotSessionReq
|
|
920
|
+
*/
|
|
921
|
+
export declare class QueryBotSessionReq extends Message<QueryBotSessionReq> {
|
|
922
|
+
/**
|
|
923
|
+
* @generated from field: string session_id = 1;
|
|
924
|
+
*/
|
|
925
|
+
sessionId: string;
|
|
926
|
+
|
|
927
|
+
constructor(data?: PartialMessage<QueryBotSessionReq>);
|
|
928
|
+
|
|
929
|
+
static readonly runtime: typeof proto3;
|
|
930
|
+
static readonly typeName = "step.capy.botauth.QueryBotSessionReq";
|
|
931
|
+
static readonly fields: FieldList;
|
|
932
|
+
|
|
933
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBotSessionReq;
|
|
934
|
+
|
|
935
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBotSessionReq;
|
|
936
|
+
|
|
937
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBotSessionReq;
|
|
938
|
+
|
|
939
|
+
static equals(a: QueryBotSessionReq | PlainMessage<QueryBotSessionReq> | undefined, b: QueryBotSessionReq | PlainMessage<QueryBotSessionReq> | undefined): boolean;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* @generated from message step.capy.botauth.QueryBotSessionRes
|
|
944
|
+
*/
|
|
945
|
+
export declare class QueryBotSessionRes extends Message<QueryBotSessionRes> {
|
|
946
|
+
/**
|
|
947
|
+
* @generated from field: step.capy.botauth.BotSession session = 1;
|
|
948
|
+
*/
|
|
949
|
+
session?: BotSession;
|
|
950
|
+
|
|
951
|
+
constructor(data?: PartialMessage<QueryBotSessionRes>);
|
|
952
|
+
|
|
953
|
+
static readonly runtime: typeof proto3;
|
|
954
|
+
static readonly typeName = "step.capy.botauth.QueryBotSessionRes";
|
|
955
|
+
static readonly fields: FieldList;
|
|
956
|
+
|
|
957
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBotSessionRes;
|
|
958
|
+
|
|
959
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBotSessionRes;
|
|
960
|
+
|
|
961
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBotSessionRes;
|
|
962
|
+
|
|
963
|
+
static equals(a: QueryBotSessionRes | PlainMessage<QueryBotSessionRes> | undefined, b: QueryBotSessionRes | PlainMessage<QueryBotSessionRes> | undefined): boolean;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* 按用户请求Bot会话信息
|
|
968
|
+
*
|
|
969
|
+
* @generated from message step.capy.botauth.QueryBotReq
|
|
970
|
+
*/
|
|
971
|
+
export declare class QueryBotReq extends Message<QueryBotReq> {
|
|
972
|
+
/**
|
|
973
|
+
* @generated from field: int64 app_id = 1;
|
|
974
|
+
*/
|
|
975
|
+
appId: bigint;
|
|
976
|
+
|
|
977
|
+
constructor(data?: PartialMessage<QueryBotReq>);
|
|
978
|
+
|
|
979
|
+
static readonly runtime: typeof proto3;
|
|
980
|
+
static readonly typeName = "step.capy.botauth.QueryBotReq";
|
|
981
|
+
static readonly fields: FieldList;
|
|
982
|
+
|
|
983
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBotReq;
|
|
984
|
+
|
|
985
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBotReq;
|
|
986
|
+
|
|
987
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBotReq;
|
|
988
|
+
|
|
989
|
+
static equals(a: QueryBotReq | PlainMessage<QueryBotReq> | undefined, b: QueryBotReq | PlainMessage<QueryBotReq> | undefined): boolean;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* @generated from message step.capy.botauth.QueryBotRes
|
|
994
|
+
*/
|
|
995
|
+
export declare class QueryBotRes extends Message<QueryBotRes> {
|
|
996
|
+
/**
|
|
997
|
+
* @generated from field: repeated step.capy.botauth.BotSession sessions = 1;
|
|
998
|
+
*/
|
|
999
|
+
sessions: BotSession[];
|
|
1000
|
+
|
|
1001
|
+
constructor(data?: PartialMessage<QueryBotRes>);
|
|
1002
|
+
|
|
1003
|
+
static readonly runtime: typeof proto3;
|
|
1004
|
+
static readonly typeName = "step.capy.botauth.QueryBotRes";
|
|
1005
|
+
static readonly fields: FieldList;
|
|
1006
|
+
|
|
1007
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QueryBotRes;
|
|
1008
|
+
|
|
1009
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QueryBotRes;
|
|
1010
|
+
|
|
1011
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QueryBotRes;
|
|
1012
|
+
|
|
1013
|
+
static equals(a: QueryBotRes | PlainMessage<QueryBotRes> | undefined, b: QueryBotRes | PlainMessage<QueryBotRes> | undefined): boolean;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* 查询UserBotAccount 记录(不管在线状态)
|
|
1018
|
+
*
|
|
1019
|
+
* @generated from message step.capy.botauth.GetUserBotAccountReq
|
|
1020
|
+
*/
|
|
1021
|
+
export declare class GetUserBotAccountReq extends Message<GetUserBotAccountReq> {
|
|
1022
|
+
/**
|
|
1023
|
+
* @generated from field: int64 app_id = 1;
|
|
1024
|
+
*/
|
|
1025
|
+
appId: bigint;
|
|
1026
|
+
|
|
1027
|
+
constructor(data?: PartialMessage<GetUserBotAccountReq>);
|
|
1028
|
+
|
|
1029
|
+
static readonly runtime: typeof proto3;
|
|
1030
|
+
static readonly typeName = "step.capy.botauth.GetUserBotAccountReq";
|
|
1031
|
+
static readonly fields: FieldList;
|
|
1032
|
+
|
|
1033
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserBotAccountReq;
|
|
1034
|
+
|
|
1035
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserBotAccountReq;
|
|
1036
|
+
|
|
1037
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserBotAccountReq;
|
|
1038
|
+
|
|
1039
|
+
static equals(a: GetUserBotAccountReq | PlainMessage<GetUserBotAccountReq> | undefined, b: GetUserBotAccountReq | PlainMessage<GetUserBotAccountReq> | undefined): boolean;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* @generated from message step.capy.botauth.GetUserBotAccountRes
|
|
1044
|
+
*/
|
|
1045
|
+
export declare class GetUserBotAccountRes extends Message<GetUserBotAccountRes> {
|
|
1046
|
+
/**
|
|
1047
|
+
* @generated from field: step.capy.botauth.BotAccount bot_account = 1;
|
|
1048
|
+
*/
|
|
1049
|
+
botAccount?: BotAccount;
|
|
1050
|
+
|
|
1051
|
+
constructor(data?: PartialMessage<GetUserBotAccountRes>);
|
|
1052
|
+
|
|
1053
|
+
static readonly runtime: typeof proto3;
|
|
1054
|
+
static readonly typeName = "step.capy.botauth.GetUserBotAccountRes";
|
|
1055
|
+
static readonly fields: FieldList;
|
|
1056
|
+
|
|
1057
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserBotAccountRes;
|
|
1058
|
+
|
|
1059
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserBotAccountRes;
|
|
1060
|
+
|
|
1061
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserBotAccountRes;
|
|
1062
|
+
|
|
1063
|
+
static equals(a: GetUserBotAccountRes | PlainMessage<GetUserBotAccountRes> | undefined, b: GetUserBotAccountRes | PlainMessage<GetUserBotAccountRes> | undefined): boolean;
|
|
1064
|
+
}
|
|
1065
|
+
|