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.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -0
  3. package/dist/index.d.ts +13 -0
  4. package/dist/index.js +18 -0
  5. package/dist/src/accounts.d.ts +22 -0
  6. package/dist/src/accounts.js +43 -0
  7. package/dist/src/bot.d.ts +16 -0
  8. package/dist/src/bot.js +100 -0
  9. package/dist/src/channel.d.ts +4 -0
  10. package/dist/src/channel.js +206 -0
  11. package/dist/src/client.d.ts +51 -0
  12. package/dist/src/client.js +206 -0
  13. package/dist/src/monitor.d.ts +19 -0
  14. package/dist/src/monitor.js +153 -0
  15. package/dist/src/proto/capy/botauth/auth_common_pb.d.ts +82 -0
  16. package/dist/src/proto/capy/botauth/auth_common_pb.js +35 -0
  17. package/dist/src/proto/capy/botauth/botauth_connect.d.ts +118 -0
  18. package/dist/src/proto/capy/botauth/botauth_connect.js +118 -0
  19. package/dist/src/proto/capy/botauth/botauth_pb.d.ts +1065 -0
  20. package/dist/src/proto/capy/botauth/botauth_pb.js +348 -0
  21. package/dist/src/proto/capy/botauth/public_connect.d.ts +62 -0
  22. package/dist/src/proto/capy/botauth/public_connect.js +62 -0
  23. package/dist/src/proto/capy/botauth/public_pb.d.ts +254 -0
  24. package/dist/src/proto/capy/botauth/public_pb.js +105 -0
  25. package/dist/src/proto/capy/botmsg/botmsg_connect.d.ts +72 -0
  26. package/dist/src/proto/capy/botmsg/botmsg_connect.js +72 -0
  27. package/dist/src/proto/capy/botmsg/botmsg_pb.d.ts +426 -0
  28. package/dist/src/proto/capy/botmsg/botmsg_pb.js +160 -0
  29. package/dist/src/proto/capy/botway/ctrl_connect.d.ts +61 -0
  30. package/dist/src/proto/capy/botway/ctrl_connect.js +61 -0
  31. package/dist/src/proto/capy/botway/ctrl_pb.d.ts +267 -0
  32. package/dist/src/proto/capy/botway/ctrl_pb.js +120 -0
  33. package/dist/src/proto/capy/botway/stream_connect.d.ts +26 -0
  34. package/dist/src/proto/capy/botway/stream_connect.js +26 -0
  35. package/dist/src/proto/capy/botway/stream_pb.d.ts +495 -0
  36. package/dist/src/proto/capy/botway/stream_pb.js +165 -0
  37. package/dist/src/reply-dispatcher.d.ts +17 -0
  38. package/dist/src/reply-dispatcher.js +234 -0
  39. package/dist/src/runtime.d.ts +4 -0
  40. package/dist/src/runtime.js +11 -0
  41. package/dist/src/send.d.ts +19 -0
  42. package/dist/src/send.js +66 -0
  43. package/dist/src/types.d.ts +65 -0
  44. package/dist/src/types.js +2 -0
  45. package/dist/src/websocket/cacheEvent.d.ts +17 -0
  46. package/dist/src/websocket/cacheEvent.js +61 -0
  47. package/dist/src/websocket/connect.d.ts +32 -0
  48. package/dist/src/websocket/connect.js +79 -0
  49. package/dist/src/websocket/constant.d.ts +8 -0
  50. package/dist/src/websocket/constant.js +10 -0
  51. package/dist/src/websocket/eventBus.d.ts +15 -0
  52. package/dist/src/websocket/eventBus.js +46 -0
  53. package/dist/src/websocket/index.d.ts +117 -0
  54. package/dist/src/websocket/index.js +637 -0
  55. package/dist/src/websocket/service.d.ts +36 -0
  56. package/dist/src/websocket/service.js +4 -0
  57. package/dist/src/websocket/stream.d.ts +10 -0
  58. package/dist/src/websocket/stream.js +24 -0
  59. package/dist/src/websocket/streamConnect.d.ts +40 -0
  60. package/dist/src/websocket/streamConnect.js +48 -0
  61. package/openclaw.plugin.json +23 -0
  62. package/package.json +69 -0
  63. package/scripts/setup.mjs +381 -0
  64. package/scripts/switch-env.mjs +98 -0
@@ -0,0 +1,426 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botmsg/botmsg.proto (package step.capy.botmsg, 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
+
9
+ /**
10
+ * @generated from enum step.capy.botmsg.MessageType
11
+ */
12
+ export declare enum MessageType {
13
+ /**
14
+ * @generated from enum value: MessageType_UNKNOWN = 0;
15
+ */
16
+ MessageType_UNKNOWN = 0,
17
+
18
+ /**
19
+ * 用户消息
20
+ *
21
+ * @generated from enum value: MessageType_USER_MSG = 1;
22
+ */
23
+ MessageType_USER_MSG = 1,
24
+
25
+ /**
26
+ * 机器人消息
27
+ *
28
+ * @generated from enum value: MessageType_BOT_MSG = 2;
29
+ */
30
+ MessageType_BOT_MSG = 2,
31
+ }
32
+
33
+ /**
34
+ * @generated from enum step.capy.botmsg.BotType
35
+ */
36
+ export declare enum BotType {
37
+ /**
38
+ * @generated from enum value: BotType_UNKNOWN = 0;
39
+ */
40
+ BotType_UNKNOWN = 0,
41
+
42
+ /**
43
+ * @generated from enum value: BotType_OPENCLAW = 1;
44
+ */
45
+ BotType_OPENCLAW = 1,
46
+ }
47
+
48
+ /**
49
+ * @generated from message step.capy.botmsg.ChatMessageContent
50
+ */
51
+ export declare class ChatMessageContent extends Message<ChatMessageContent> {
52
+ /**
53
+ * @generated from field: string content = 1;
54
+ */
55
+ content: string;
56
+
57
+ /**
58
+ * @generated from field: string think_content = 2;
59
+ */
60
+ thinkContent: string;
61
+
62
+ constructor(data?: PartialMessage<ChatMessageContent>);
63
+
64
+ static readonly runtime: typeof proto3;
65
+ static readonly typeName = "step.capy.botmsg.ChatMessageContent";
66
+ static readonly fields: FieldList;
67
+
68
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessageContent;
69
+
70
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessageContent;
71
+
72
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageContent;
73
+
74
+ static equals(a: ChatMessageContent | PlainMessage<ChatMessageContent> | undefined, b: ChatMessageContent | PlainMessage<ChatMessageContent> | undefined): boolean;
75
+ }
76
+
77
+ /**
78
+ * @generated from message step.capy.botmsg.ChatMessage
79
+ */
80
+ export declare class ChatMessage extends Message<ChatMessage> {
81
+ /**
82
+ * 消息id
83
+ *
84
+ * @generated from field: string msg_id = 1;
85
+ */
86
+ msgId: string;
87
+
88
+ /**
89
+ * 应用id
90
+ *
91
+ * @generated from field: string app_id = 2;
92
+ */
93
+ appId: string;
94
+
95
+ /**
96
+ * 会话id
97
+ *
98
+ * @generated from field: string session_id = 3;
99
+ */
100
+ sessionId: string;
101
+
102
+ /**
103
+ * 发送人uid,机器人为0
104
+ *
105
+ * @generated from field: string sender_uid = 4;
106
+ */
107
+ senderUid: string;
108
+
109
+ /**
110
+ * 消息类型
111
+ *
112
+ * @generated from field: step.capy.botmsg.MessageType msg_type = 5;
113
+ */
114
+ msgType: MessageType;
115
+
116
+ /**
117
+ * 机器人类型
118
+ *
119
+ * @generated from field: step.capy.botmsg.BotType bot_type = 6;
120
+ */
121
+ botType: BotType;
122
+
123
+ /**
124
+ * 消息内容
125
+ *
126
+ * @generated from field: step.capy.botmsg.ChatMessageContent content = 7;
127
+ */
128
+ content?: ChatMessageContent;
129
+
130
+ /**
131
+ * 创建时间
132
+ *
133
+ * @generated from field: string created_at = 8;
134
+ */
135
+ createdAt: string;
136
+
137
+ constructor(data?: PartialMessage<ChatMessage>);
138
+
139
+ static readonly runtime: typeof proto3;
140
+ static readonly typeName = "step.capy.botmsg.ChatMessage";
141
+ static readonly fields: FieldList;
142
+
143
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
144
+
145
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
146
+
147
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
148
+
149
+ static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
150
+ }
151
+
152
+ /**
153
+ * @generated from message step.capy.botmsg.FetchMessagesRequest
154
+ */
155
+ export declare class FetchMessagesRequest extends Message<FetchMessagesRequest> {
156
+ /**
157
+ * 应用id
158
+ *
159
+ * @generated from field: string app_id = 1;
160
+ */
161
+ appId: string;
162
+
163
+ /**
164
+ * 游标
165
+ *
166
+ * @generated from field: string next_page_token = 2;
167
+ */
168
+ nextPageToken: string;
169
+
170
+ /**
171
+ * 拉取条数
172
+ *
173
+ * @generated from field: int32 limit = 3;
174
+ */
175
+ limit: number;
176
+
177
+ constructor(data?: PartialMessage<FetchMessagesRequest>);
178
+
179
+ static readonly runtime: typeof proto3;
180
+ static readonly typeName = "step.capy.botmsg.FetchMessagesRequest";
181
+ static readonly fields: FieldList;
182
+
183
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FetchMessagesRequest;
184
+
185
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FetchMessagesRequest;
186
+
187
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FetchMessagesRequest;
188
+
189
+ static equals(a: FetchMessagesRequest | PlainMessage<FetchMessagesRequest> | undefined, b: FetchMessagesRequest | PlainMessage<FetchMessagesRequest> | undefined): boolean;
190
+ }
191
+
192
+ /**
193
+ * @generated from message step.capy.botmsg.FetchMessagesResponse
194
+ */
195
+ export declare class FetchMessagesResponse extends Message<FetchMessagesResponse> {
196
+ /**
197
+ * 新消息列表
198
+ *
199
+ * @generated from field: repeated step.capy.botmsg.ChatMessage messages = 1;
200
+ */
201
+ messages: ChatMessage[];
202
+
203
+ /**
204
+ * 游标,不为空则有下一页
205
+ *
206
+ * @generated from field: string next_page_token = 2;
207
+ */
208
+ nextPageToken: string;
209
+
210
+ constructor(data?: PartialMessage<FetchMessagesResponse>);
211
+
212
+ static readonly runtime: typeof proto3;
213
+ static readonly typeName = "step.capy.botmsg.FetchMessagesResponse";
214
+ static readonly fields: FieldList;
215
+
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FetchMessagesResponse;
217
+
218
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FetchMessagesResponse;
219
+
220
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FetchMessagesResponse;
221
+
222
+ static equals(a: FetchMessagesResponse | PlainMessage<FetchMessagesResponse> | undefined, b: FetchMessagesResponse | PlainMessage<FetchMessagesResponse> | undefined): boolean;
223
+ }
224
+
225
+ /**
226
+ * @generated from message step.capy.botmsg.SendMessagesRequest
227
+ */
228
+ export declare class SendMessagesRequest extends Message<SendMessagesRequest> {
229
+ /**
230
+ * 消息体
231
+ *
232
+ * @generated from field: step.capy.botmsg.ChatMessage message = 1;
233
+ */
234
+ message?: ChatMessage;
235
+
236
+ constructor(data?: PartialMessage<SendMessagesRequest>);
237
+
238
+ static readonly runtime: typeof proto3;
239
+ static readonly typeName = "step.capy.botmsg.SendMessagesRequest";
240
+ static readonly fields: FieldList;
241
+
242
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendMessagesRequest;
243
+
244
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendMessagesRequest;
245
+
246
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendMessagesRequest;
247
+
248
+ static equals(a: SendMessagesRequest | PlainMessage<SendMessagesRequest> | undefined, b: SendMessagesRequest | PlainMessage<SendMessagesRequest> | undefined): boolean;
249
+ }
250
+
251
+ /**
252
+ * @generated from message step.capy.botmsg.SendMessagesResponse
253
+ */
254
+ export declare class SendMessagesResponse extends Message<SendMessagesResponse> {
255
+ /**
256
+ * @generated from field: string msg_id = 1;
257
+ */
258
+ msgId: string;
259
+
260
+ constructor(data?: PartialMessage<SendMessagesResponse>);
261
+
262
+ static readonly runtime: typeof proto3;
263
+ static readonly typeName = "step.capy.botmsg.SendMessagesResponse";
264
+ static readonly fields: FieldList;
265
+
266
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendMessagesResponse;
267
+
268
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendMessagesResponse;
269
+
270
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendMessagesResponse;
271
+
272
+ static equals(a: SendMessagesResponse | PlainMessage<SendMessagesResponse> | undefined, b: SendMessagesResponse | PlainMessage<SendMessagesResponse> | undefined): boolean;
273
+ }
274
+
275
+ /**
276
+ * @generated from message step.capy.botmsg.HasNewMessagesRequest
277
+ */
278
+ export declare class HasNewMessagesRequest extends Message<HasNewMessagesRequest> {
279
+ /**
280
+ * 应用id
281
+ *
282
+ * @generated from field: string app_id = 1;
283
+ */
284
+ appId: string;
285
+
286
+ /**
287
+ * 上一次的消息id
288
+ *
289
+ * @generated from field: string last_msg_id = 2;
290
+ */
291
+ lastMsgId: string;
292
+
293
+ constructor(data?: PartialMessage<HasNewMessagesRequest>);
294
+
295
+ static readonly runtime: typeof proto3;
296
+ static readonly typeName = "step.capy.botmsg.HasNewMessagesRequest";
297
+ static readonly fields: FieldList;
298
+
299
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HasNewMessagesRequest;
300
+
301
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HasNewMessagesRequest;
302
+
303
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HasNewMessagesRequest;
304
+
305
+ static equals(a: HasNewMessagesRequest | PlainMessage<HasNewMessagesRequest> | undefined, b: HasNewMessagesRequest | PlainMessage<HasNewMessagesRequest> | undefined): boolean;
306
+ }
307
+
308
+ /**
309
+ * @generated from message step.capy.botmsg.HasNewMessagesResponse
310
+ */
311
+ export declare class HasNewMessagesResponse extends Message<HasNewMessagesResponse> {
312
+ /**
313
+ * 是否有新消息
314
+ *
315
+ * @generated from field: bool has_new = 1;
316
+ */
317
+ hasNew: boolean;
318
+
319
+ constructor(data?: PartialMessage<HasNewMessagesResponse>);
320
+
321
+ static readonly runtime: typeof proto3;
322
+ static readonly typeName = "step.capy.botmsg.HasNewMessagesResponse";
323
+ static readonly fields: FieldList;
324
+
325
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HasNewMessagesResponse;
326
+
327
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HasNewMessagesResponse;
328
+
329
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HasNewMessagesResponse;
330
+
331
+ static equals(a: HasNewMessagesResponse | PlainMessage<HasNewMessagesResponse> | undefined, b: HasNewMessagesResponse | PlainMessage<HasNewMessagesResponse> | undefined): boolean;
332
+ }
333
+
334
+ /**
335
+ * @generated from message step.capy.botmsg.PushMessagesRequest
336
+ */
337
+ export declare class PushMessagesRequest extends Message<PushMessagesRequest> {
338
+ constructor(data?: PartialMessage<PushMessagesRequest>);
339
+
340
+ static readonly runtime: typeof proto3;
341
+ static readonly typeName = "step.capy.botmsg.PushMessagesRequest";
342
+ static readonly fields: FieldList;
343
+
344
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushMessagesRequest;
345
+
346
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushMessagesRequest;
347
+
348
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushMessagesRequest;
349
+
350
+ static equals(a: PushMessagesRequest | PlainMessage<PushMessagesRequest> | undefined, b: PushMessagesRequest | PlainMessage<PushMessagesRequest> | undefined): boolean;
351
+ }
352
+
353
+ /**
354
+ * @generated from message step.capy.botmsg.PushMessagesResponse
355
+ */
356
+ export declare class PushMessagesResponse extends Message<PushMessagesResponse> {
357
+ /**
358
+ * @generated from field: step.capy.botmsg.ChatMessage messages = 1;
359
+ */
360
+ messages?: ChatMessage;
361
+
362
+ constructor(data?: PartialMessage<PushMessagesResponse>);
363
+
364
+ static readonly runtime: typeof proto3;
365
+ static readonly typeName = "step.capy.botmsg.PushMessagesResponse";
366
+ static readonly fields: FieldList;
367
+
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushMessagesResponse;
369
+
370
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushMessagesResponse;
371
+
372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushMessagesResponse;
373
+
374
+ static equals(a: PushMessagesResponse | PlainMessage<PushMessagesResponse> | undefined, b: PushMessagesResponse | PlainMessage<PushMessagesResponse> | undefined): boolean;
375
+ }
376
+
377
+ /**
378
+ * @generated from message step.capy.botmsg.CheckBotOnlineRequest
379
+ */
380
+ export declare class CheckBotOnlineRequest extends Message<CheckBotOnlineRequest> {
381
+ /**
382
+ * 应用id
383
+ *
384
+ * @generated from field: string app_id = 1;
385
+ */
386
+ appId: string;
387
+
388
+ constructor(data?: PartialMessage<CheckBotOnlineRequest>);
389
+
390
+ static readonly runtime: typeof proto3;
391
+ static readonly typeName = "step.capy.botmsg.CheckBotOnlineRequest";
392
+ static readonly fields: FieldList;
393
+
394
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckBotOnlineRequest;
395
+
396
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckBotOnlineRequest;
397
+
398
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckBotOnlineRequest;
399
+
400
+ static equals(a: CheckBotOnlineRequest | PlainMessage<CheckBotOnlineRequest> | undefined, b: CheckBotOnlineRequest | PlainMessage<CheckBotOnlineRequest> | undefined): boolean;
401
+ }
402
+
403
+ /**
404
+ * @generated from message step.capy.botmsg.CheckBotOnlineResponse
405
+ */
406
+ export declare class CheckBotOnlineResponse extends Message<CheckBotOnlineResponse> {
407
+ /**
408
+ * @generated from field: bool online = 1;
409
+ */
410
+ online: boolean;
411
+
412
+ constructor(data?: PartialMessage<CheckBotOnlineResponse>);
413
+
414
+ static readonly runtime: typeof proto3;
415
+ static readonly typeName = "step.capy.botmsg.CheckBotOnlineResponse";
416
+ static readonly fields: FieldList;
417
+
418
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckBotOnlineResponse;
419
+
420
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckBotOnlineResponse;
421
+
422
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckBotOnlineResponse;
423
+
424
+ static equals(a: CheckBotOnlineResponse | PlainMessage<CheckBotOnlineResponse> | undefined, b: CheckBotOnlineResponse | PlainMessage<CheckBotOnlineResponse> | undefined): boolean;
425
+ }
426
+
@@ -0,0 +1,160 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botmsg/botmsg.proto (package step.capy.botmsg, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto3 } from "@bufbuild/protobuf";
7
+
8
+ /**
9
+ * @generated from enum step.capy.botmsg.MessageType
10
+ */
11
+ export const MessageType = /*@__PURE__*/ proto3.makeEnum(
12
+ "step.capy.botmsg.MessageType",
13
+ [
14
+ {no: 0, name: "MessageType_UNKNOWN"},
15
+ {no: 1, name: "MessageType_USER_MSG"},
16
+ {no: 2, name: "MessageType_BOT_MSG"},
17
+ ],
18
+ );
19
+
20
+ /**
21
+ * @generated from enum step.capy.botmsg.BotType
22
+ */
23
+ export const BotType = /*@__PURE__*/ proto3.makeEnum(
24
+ "step.capy.botmsg.BotType",
25
+ [
26
+ {no: 0, name: "BotType_UNKNOWN"},
27
+ {no: 1, name: "BotType_OPENCLAW"},
28
+ ],
29
+ );
30
+
31
+ /**
32
+ * @generated from message step.capy.botmsg.ChatMessageContent
33
+ */
34
+ export const ChatMessageContent = /*@__PURE__*/ proto3.makeMessageType(
35
+ "step.capy.botmsg.ChatMessageContent",
36
+ () => [
37
+ { no: 1, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
38
+ { no: 2, name: "think_content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
39
+ ],
40
+ );
41
+
42
+ /**
43
+ * @generated from message step.capy.botmsg.ChatMessage
44
+ */
45
+ export const ChatMessage = /*@__PURE__*/ proto3.makeMessageType(
46
+ "step.capy.botmsg.ChatMessage",
47
+ () => [
48
+ { no: 1, name: "msg_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
49
+ { no: 2, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
50
+ { no: 3, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
51
+ { no: 4, name: "sender_uid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
+ { no: 5, name: "msg_type", kind: "enum", T: proto3.getEnumType(MessageType) },
53
+ { no: 6, name: "bot_type", kind: "enum", T: proto3.getEnumType(BotType) },
54
+ { no: 7, name: "content", kind: "message", T: ChatMessageContent },
55
+ { no: 8, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * @generated from message step.capy.botmsg.FetchMessagesRequest
61
+ */
62
+ export const FetchMessagesRequest = /*@__PURE__*/ proto3.makeMessageType(
63
+ "step.capy.botmsg.FetchMessagesRequest",
64
+ () => [
65
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
68
+ ],
69
+ );
70
+
71
+ /**
72
+ * @generated from message step.capy.botmsg.FetchMessagesResponse
73
+ */
74
+ export const FetchMessagesResponse = /*@__PURE__*/ proto3.makeMessageType(
75
+ "step.capy.botmsg.FetchMessagesResponse",
76
+ () => [
77
+ { no: 1, name: "messages", kind: "message", T: ChatMessage, repeated: true },
78
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ ],
80
+ );
81
+
82
+ /**
83
+ * @generated from message step.capy.botmsg.SendMessagesRequest
84
+ */
85
+ export const SendMessagesRequest = /*@__PURE__*/ proto3.makeMessageType(
86
+ "step.capy.botmsg.SendMessagesRequest",
87
+ () => [
88
+ { no: 1, name: "message", kind: "message", T: ChatMessage },
89
+ ],
90
+ );
91
+
92
+ /**
93
+ * @generated from message step.capy.botmsg.SendMessagesResponse
94
+ */
95
+ export const SendMessagesResponse = /*@__PURE__*/ proto3.makeMessageType(
96
+ "step.capy.botmsg.SendMessagesResponse",
97
+ () => [
98
+ { no: 1, name: "msg_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
99
+ ],
100
+ );
101
+
102
+ /**
103
+ * @generated from message step.capy.botmsg.HasNewMessagesRequest
104
+ */
105
+ export const HasNewMessagesRequest = /*@__PURE__*/ proto3.makeMessageType(
106
+ "step.capy.botmsg.HasNewMessagesRequest",
107
+ () => [
108
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
+ { no: 2, name: "last_msg_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
110
+ ],
111
+ );
112
+
113
+ /**
114
+ * @generated from message step.capy.botmsg.HasNewMessagesResponse
115
+ */
116
+ export const HasNewMessagesResponse = /*@__PURE__*/ proto3.makeMessageType(
117
+ "step.capy.botmsg.HasNewMessagesResponse",
118
+ () => [
119
+ { no: 1, name: "has_new", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
120
+ ],
121
+ );
122
+
123
+ /**
124
+ * @generated from message step.capy.botmsg.PushMessagesRequest
125
+ */
126
+ export const PushMessagesRequest = /*@__PURE__*/ proto3.makeMessageType(
127
+ "step.capy.botmsg.PushMessagesRequest",
128
+ [],
129
+ );
130
+
131
+ /**
132
+ * @generated from message step.capy.botmsg.PushMessagesResponse
133
+ */
134
+ export const PushMessagesResponse = /*@__PURE__*/ proto3.makeMessageType(
135
+ "step.capy.botmsg.PushMessagesResponse",
136
+ () => [
137
+ { no: 1, name: "messages", kind: "message", T: ChatMessage },
138
+ ],
139
+ );
140
+
141
+ /**
142
+ * @generated from message step.capy.botmsg.CheckBotOnlineRequest
143
+ */
144
+ export const CheckBotOnlineRequest = /*@__PURE__*/ proto3.makeMessageType(
145
+ "step.capy.botmsg.CheckBotOnlineRequest",
146
+ () => [
147
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
148
+ ],
149
+ );
150
+
151
+ /**
152
+ * @generated from message step.capy.botmsg.CheckBotOnlineResponse
153
+ */
154
+ export const CheckBotOnlineResponse = /*@__PURE__*/ proto3.makeMessageType(
155
+ "step.capy.botmsg.CheckBotOnlineResponse",
156
+ () => [
157
+ { no: 1, name: "online", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
158
+ ],
159
+ );
160
+
@@ -0,0 +1,61 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botway/ctrl.proto (package step.capy.botway, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { BotKickReq, BotKickRes, BotPushReq, BotPushRes, KickReq, KickRes, PushReq, PushRes } from "./ctrl_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botway.Control
11
+ */
12
+ export declare const Control: {
13
+ readonly typeName: "step.capy.botway.Control",
14
+ readonly methods: {
15
+ /**
16
+ * 踢人
17
+ *
18
+ * @generated from rpc step.capy.botway.Control.Kick
19
+ */
20
+ readonly kick: {
21
+ readonly name: "Kick",
22
+ readonly I: typeof KickReq,
23
+ readonly O: typeof KickRes,
24
+ readonly kind: MethodKind.Unary,
25
+ },
26
+ /**
27
+ * 消息推送
28
+ *
29
+ * @generated from rpc step.capy.botway.Control.Push
30
+ */
31
+ readonly push: {
32
+ readonly name: "Push",
33
+ readonly I: typeof PushReq,
34
+ readonly O: typeof PushRes,
35
+ readonly kind: MethodKind.Unary,
36
+ },
37
+ /**
38
+ * 踢机器人
39
+ *
40
+ * @generated from rpc step.capy.botway.Control.BotKick
41
+ */
42
+ readonly botKick: {
43
+ readonly name: "BotKick",
44
+ readonly I: typeof BotKickReq,
45
+ readonly O: typeof BotKickRes,
46
+ readonly kind: MethodKind.Unary,
47
+ },
48
+ /**
49
+ * 机器人消息推送
50
+ *
51
+ * @generated from rpc step.capy.botway.Control.BotPush
52
+ */
53
+ readonly botPush: {
54
+ readonly name: "BotPush",
55
+ readonly I: typeof BotPushReq,
56
+ readonly O: typeof BotPushRes,
57
+ readonly kind: MethodKind.Unary,
58
+ },
59
+ }
60
+ };
61
+
@@ -0,0 +1,61 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botway/ctrl.proto (package step.capy.botway, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { BotKickReq, BotKickRes, BotPushReq, BotPushRes, KickReq, KickRes, PushReq, PushRes } from "./ctrl_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botway.Control
11
+ */
12
+ export const Control = {
13
+ typeName: "step.capy.botway.Control",
14
+ methods: {
15
+ /**
16
+ * 踢人
17
+ *
18
+ * @generated from rpc step.capy.botway.Control.Kick
19
+ */
20
+ kick: {
21
+ name: "Kick",
22
+ I: KickReq,
23
+ O: KickRes,
24
+ kind: MethodKind.Unary,
25
+ },
26
+ /**
27
+ * 消息推送
28
+ *
29
+ * @generated from rpc step.capy.botway.Control.Push
30
+ */
31
+ push: {
32
+ name: "Push",
33
+ I: PushReq,
34
+ O: PushRes,
35
+ kind: MethodKind.Unary,
36
+ },
37
+ /**
38
+ * 踢机器人
39
+ *
40
+ * @generated from rpc step.capy.botway.Control.BotKick
41
+ */
42
+ botKick: {
43
+ name: "BotKick",
44
+ I: BotKickReq,
45
+ O: BotKickRes,
46
+ kind: MethodKind.Unary,
47
+ },
48
+ /**
49
+ * 机器人消息推送
50
+ *
51
+ * @generated from rpc step.capy.botway.Control.BotPush
52
+ */
53
+ botPush: {
54
+ name: "BotPush",
55
+ I: BotPushReq,
56
+ O: BotPushRes,
57
+ kind: MethodKind.Unary,
58
+ },
59
+ }
60
+ };
61
+