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,254 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botauth/public.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 message step.capy.botauth.CreateBotAccountReq
12
+ */
13
+ export declare class CreateBotAccountReq extends Message<CreateBotAccountReq> {
14
+ constructor(data?: PartialMessage<CreateBotAccountReq>);
15
+
16
+ static readonly runtime: typeof proto3;
17
+ static readonly typeName = "step.capy.botauth.CreateBotAccountReq";
18
+ static readonly fields: FieldList;
19
+
20
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateBotAccountReq;
21
+
22
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateBotAccountReq;
23
+
24
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateBotAccountReq;
25
+
26
+ static equals(a: CreateBotAccountReq | PlainMessage<CreateBotAccountReq> | undefined, b: CreateBotAccountReq | PlainMessage<CreateBotAccountReq> | undefined): boolean;
27
+ }
28
+
29
+ /**
30
+ * @generated from message step.capy.botauth.CreateBotAccountRes
31
+ */
32
+ export declare class CreateBotAccountRes extends Message<CreateBotAccountRes> {
33
+ /**
34
+ * @generated from field: string app_id = 1;
35
+ */
36
+ appId: string;
37
+
38
+ /**
39
+ * @generated from field: string token = 2;
40
+ */
41
+ token: string;
42
+
43
+ /**
44
+ * @generated from field: string name = 3;
45
+ */
46
+ name: string;
47
+
48
+ constructor(data?: PartialMessage<CreateBotAccountRes>);
49
+
50
+ static readonly runtime: typeof proto3;
51
+ static readonly typeName = "step.capy.botauth.CreateBotAccountRes";
52
+ static readonly fields: FieldList;
53
+
54
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateBotAccountRes;
55
+
56
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateBotAccountRes;
57
+
58
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateBotAccountRes;
59
+
60
+ static equals(a: CreateBotAccountRes | PlainMessage<CreateBotAccountRes> | undefined, b: CreateBotAccountRes | PlainMessage<CreateBotAccountRes> | undefined): boolean;
61
+ }
62
+
63
+ /**
64
+ * @generated from message step.capy.botauth.GetOrCreateBotAccountReq
65
+ */
66
+ export declare class GetOrCreateBotAccountReq extends Message<GetOrCreateBotAccountReq> {
67
+ constructor(data?: PartialMessage<GetOrCreateBotAccountReq>);
68
+
69
+ static readonly runtime: typeof proto3;
70
+ static readonly typeName = "step.capy.botauth.GetOrCreateBotAccountReq";
71
+ static readonly fields: FieldList;
72
+
73
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreateBotAccountReq;
74
+
75
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreateBotAccountReq;
76
+
77
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreateBotAccountReq;
78
+
79
+ static equals(a: GetOrCreateBotAccountReq | PlainMessage<GetOrCreateBotAccountReq> | undefined, b: GetOrCreateBotAccountReq | PlainMessage<GetOrCreateBotAccountReq> | undefined): boolean;
80
+ }
81
+
82
+ /**
83
+ * @generated from message step.capy.botauth.GetOrCreateBotAccountRes
84
+ */
85
+ export declare class GetOrCreateBotAccountRes extends Message<GetOrCreateBotAccountRes> {
86
+ /**
87
+ * @generated from field: string app_id = 1;
88
+ */
89
+ appId: string;
90
+
91
+ /**
92
+ * @generated from field: string token = 2;
93
+ */
94
+ token: string;
95
+
96
+ /**
97
+ * @generated from field: string name = 3;
98
+ */
99
+ name: string;
100
+
101
+ constructor(data?: PartialMessage<GetOrCreateBotAccountRes>);
102
+
103
+ static readonly runtime: typeof proto3;
104
+ static readonly typeName = "step.capy.botauth.GetOrCreateBotAccountRes";
105
+ static readonly fields: FieldList;
106
+
107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrCreateBotAccountRes;
108
+
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrCreateBotAccountRes;
110
+
111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrCreateBotAccountRes;
112
+
113
+ static equals(a: GetOrCreateBotAccountRes | PlainMessage<GetOrCreateBotAccountRes> | undefined, b: GetOrCreateBotAccountRes | PlainMessage<GetOrCreateBotAccountRes> | undefined): boolean;
114
+ }
115
+
116
+ /**
117
+ * @generated from message step.capy.botauth.DisableBotAccountReq
118
+ */
119
+ export declare class DisableBotAccountReq extends Message<DisableBotAccountReq> {
120
+ /**
121
+ * @generated from field: string app_id = 1;
122
+ */
123
+ appId: string;
124
+
125
+ constructor(data?: PartialMessage<DisableBotAccountReq>);
126
+
127
+ static readonly runtime: typeof proto3;
128
+ static readonly typeName = "step.capy.botauth.DisableBotAccountReq";
129
+ static readonly fields: FieldList;
130
+
131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisableBotAccountReq;
132
+
133
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisableBotAccountReq;
134
+
135
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisableBotAccountReq;
136
+
137
+ static equals(a: DisableBotAccountReq | PlainMessage<DisableBotAccountReq> | undefined, b: DisableBotAccountReq | PlainMessage<DisableBotAccountReq> | undefined): boolean;
138
+ }
139
+
140
+ /**
141
+ * @generated from message step.capy.botauth.DisableBotAccountRes
142
+ */
143
+ export declare class DisableBotAccountRes extends Message<DisableBotAccountRes> {
144
+ constructor(data?: PartialMessage<DisableBotAccountRes>);
145
+
146
+ static readonly runtime: typeof proto3;
147
+ static readonly typeName = "step.capy.botauth.DisableBotAccountRes";
148
+ static readonly fields: FieldList;
149
+
150
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisableBotAccountRes;
151
+
152
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisableBotAccountRes;
153
+
154
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisableBotAccountRes;
155
+
156
+ static equals(a: DisableBotAccountRes | PlainMessage<DisableBotAccountRes> | undefined, b: DisableBotAccountRes | PlainMessage<DisableBotAccountRes> | undefined): boolean;
157
+ }
158
+
159
+ /**
160
+ * @generated from message step.capy.botauth.DeleteBotAccountReq
161
+ */
162
+ export declare class DeleteBotAccountReq extends Message<DeleteBotAccountReq> {
163
+ /**
164
+ * @generated from field: string app_id = 1;
165
+ */
166
+ appId: string;
167
+
168
+ constructor(data?: PartialMessage<DeleteBotAccountReq>);
169
+
170
+ static readonly runtime: typeof proto3;
171
+ static readonly typeName = "step.capy.botauth.DeleteBotAccountReq";
172
+ static readonly fields: FieldList;
173
+
174
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteBotAccountReq;
175
+
176
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteBotAccountReq;
177
+
178
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteBotAccountReq;
179
+
180
+ static equals(a: DeleteBotAccountReq | PlainMessage<DeleteBotAccountReq> | undefined, b: DeleteBotAccountReq | PlainMessage<DeleteBotAccountReq> | undefined): boolean;
181
+ }
182
+
183
+ /**
184
+ * @generated from message step.capy.botauth.DeleteBotAccountRes
185
+ */
186
+ export declare class DeleteBotAccountRes extends Message<DeleteBotAccountRes> {
187
+ constructor(data?: PartialMessage<DeleteBotAccountRes>);
188
+
189
+ static readonly runtime: typeof proto3;
190
+ static readonly typeName = "step.capy.botauth.DeleteBotAccountRes";
191
+ static readonly fields: FieldList;
192
+
193
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteBotAccountRes;
194
+
195
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteBotAccountRes;
196
+
197
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteBotAccountRes;
198
+
199
+ static equals(a: DeleteBotAccountRes | PlainMessage<DeleteBotAccountRes> | undefined, b: DeleteBotAccountRes | PlainMessage<DeleteBotAccountRes> | undefined): boolean;
200
+ }
201
+
202
+ /**
203
+ * @generated from message step.capy.botauth.ListBotAccountsReq
204
+ */
205
+ export declare class ListBotAccountsReq extends Message<ListBotAccountsReq> {
206
+ /**
207
+ * @generated from field: string after_id = 1;
208
+ */
209
+ afterId: string;
210
+
211
+ /**
212
+ * @generated from field: int32 limit = 2;
213
+ */
214
+ limit: number;
215
+
216
+ constructor(data?: PartialMessage<ListBotAccountsReq>);
217
+
218
+ static readonly runtime: typeof proto3;
219
+ static readonly typeName = "step.capy.botauth.ListBotAccountsReq";
220
+ static readonly fields: FieldList;
221
+
222
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListBotAccountsReq;
223
+
224
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListBotAccountsReq;
225
+
226
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListBotAccountsReq;
227
+
228
+ static equals(a: ListBotAccountsReq | PlainMessage<ListBotAccountsReq> | undefined, b: ListBotAccountsReq | PlainMessage<ListBotAccountsReq> | undefined): boolean;
229
+ }
230
+
231
+ /**
232
+ * @generated from message step.capy.botauth.ListBotAccountsRes
233
+ */
234
+ export declare class ListBotAccountsRes extends Message<ListBotAccountsRes> {
235
+ /**
236
+ * @generated from field: repeated step.capy.botauth.BotAccount accounts = 1;
237
+ */
238
+ accounts: BotAccount[];
239
+
240
+ constructor(data?: PartialMessage<ListBotAccountsRes>);
241
+
242
+ static readonly runtime: typeof proto3;
243
+ static readonly typeName = "step.capy.botauth.ListBotAccountsRes";
244
+ static readonly fields: FieldList;
245
+
246
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListBotAccountsRes;
247
+
248
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListBotAccountsRes;
249
+
250
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListBotAccountsRes;
251
+
252
+ static equals(a: ListBotAccountsRes | PlainMessage<ListBotAccountsRes> | undefined, b: ListBotAccountsRes | PlainMessage<ListBotAccountsRes> | undefined): boolean;
253
+ }
254
+
@@ -0,0 +1,105 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botauth/public.proto (package step.capy.botauth, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto3 } from "@bufbuild/protobuf";
7
+ import { BotAccount } from "./auth_common_pb.js";
8
+
9
+ /**
10
+ * @generated from message step.capy.botauth.CreateBotAccountReq
11
+ */
12
+ export const CreateBotAccountReq = /*@__PURE__*/ proto3.makeMessageType(
13
+ "step.capy.botauth.CreateBotAccountReq",
14
+ [],
15
+ );
16
+
17
+ /**
18
+ * @generated from message step.capy.botauth.CreateBotAccountRes
19
+ */
20
+ export const CreateBotAccountRes = /*@__PURE__*/ proto3.makeMessageType(
21
+ "step.capy.botauth.CreateBotAccountRes",
22
+ () => [
23
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
24
+ { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
25
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26
+ ],
27
+ );
28
+
29
+ /**
30
+ * @generated from message step.capy.botauth.GetOrCreateBotAccountReq
31
+ */
32
+ export const GetOrCreateBotAccountReq = /*@__PURE__*/ proto3.makeMessageType(
33
+ "step.capy.botauth.GetOrCreateBotAccountReq",
34
+ [],
35
+ );
36
+
37
+ /**
38
+ * @generated from message step.capy.botauth.GetOrCreateBotAccountRes
39
+ */
40
+ export const GetOrCreateBotAccountRes = /*@__PURE__*/ proto3.makeMessageType(
41
+ "step.capy.botauth.GetOrCreateBotAccountRes",
42
+ () => [
43
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44
+ { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ ],
47
+ );
48
+
49
+ /**
50
+ * @generated from message step.capy.botauth.DisableBotAccountReq
51
+ */
52
+ export const DisableBotAccountReq = /*@__PURE__*/ proto3.makeMessageType(
53
+ "step.capy.botauth.DisableBotAccountReq",
54
+ () => [
55
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * @generated from message step.capy.botauth.DisableBotAccountRes
61
+ */
62
+ export const DisableBotAccountRes = /*@__PURE__*/ proto3.makeMessageType(
63
+ "step.capy.botauth.DisableBotAccountRes",
64
+ [],
65
+ );
66
+
67
+ /**
68
+ * @generated from message step.capy.botauth.DeleteBotAccountReq
69
+ */
70
+ export const DeleteBotAccountReq = /*@__PURE__*/ proto3.makeMessageType(
71
+ "step.capy.botauth.DeleteBotAccountReq",
72
+ () => [
73
+ { no: 1, name: "app_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ ],
75
+ );
76
+
77
+ /**
78
+ * @generated from message step.capy.botauth.DeleteBotAccountRes
79
+ */
80
+ export const DeleteBotAccountRes = /*@__PURE__*/ proto3.makeMessageType(
81
+ "step.capy.botauth.DeleteBotAccountRes",
82
+ [],
83
+ );
84
+
85
+ /**
86
+ * @generated from message step.capy.botauth.ListBotAccountsReq
87
+ */
88
+ export const ListBotAccountsReq = /*@__PURE__*/ proto3.makeMessageType(
89
+ "step.capy.botauth.ListBotAccountsReq",
90
+ () => [
91
+ { no: 1, name: "after_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
92
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
93
+ ],
94
+ );
95
+
96
+ /**
97
+ * @generated from message step.capy.botauth.ListBotAccountsRes
98
+ */
99
+ export const ListBotAccountsRes = /*@__PURE__*/ proto3.makeMessageType(
100
+ "step.capy.botauth.ListBotAccountsRes",
101
+ () => [
102
+ { no: 1, name: "accounts", kind: "message", T: BotAccount, repeated: true },
103
+ ],
104
+ );
105
+
@@ -0,0 +1,72 @@
1
+ // @generated by protoc-gen-connect-es v1.4.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 { CheckBotOnlineRequest, CheckBotOnlineResponse, FetchMessagesRequest, FetchMessagesResponse, HasNewMessagesRequest, HasNewMessagesResponse, PushMessagesRequest, PushMessagesResponse, SendMessagesRequest, SendMessagesResponse } from "./botmsg_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botmsg.BotMsg
11
+ */
12
+ export declare const BotMsg: {
13
+ readonly typeName: "step.capy.botmsg.BotMsg",
14
+ readonly methods: {
15
+ /**
16
+ * 拉取新消息
17
+ *
18
+ * @generated from rpc step.capy.botmsg.BotMsg.FetchMessages
19
+ */
20
+ readonly fetchMessages: {
21
+ readonly name: "FetchMessages",
22
+ readonly I: typeof FetchMessagesRequest,
23
+ readonly O: typeof FetchMessagesResponse,
24
+ readonly kind: MethodKind.Unary,
25
+ },
26
+ /**
27
+ * 是否有新消息
28
+ *
29
+ * @generated from rpc step.capy.botmsg.BotMsg.HasNewMessages
30
+ */
31
+ readonly hasNewMessages: {
32
+ readonly name: "HasNewMessages",
33
+ readonly I: typeof HasNewMessagesRequest,
34
+ readonly O: typeof HasNewMessagesResponse,
35
+ readonly kind: MethodKind.Unary,
36
+ },
37
+ /**
38
+ * 发送消息
39
+ *
40
+ * @generated from rpc step.capy.botmsg.BotMsg.SendMessages
41
+ */
42
+ readonly sendMessages: {
43
+ readonly name: "SendMessages",
44
+ readonly I: typeof SendMessagesRequest,
45
+ readonly O: typeof SendMessagesResponse,
46
+ readonly kind: MethodKind.Unary,
47
+ },
48
+ /**
49
+ * 下行消息推送,空实现,for 客户端 push
50
+ *
51
+ * @generated from rpc step.capy.botmsg.BotMsg.PushMessages
52
+ */
53
+ readonly pushMessages: {
54
+ readonly name: "PushMessages",
55
+ readonly I: typeof PushMessagesRequest,
56
+ readonly O: typeof PushMessagesResponse,
57
+ readonly kind: MethodKind.Unary,
58
+ },
59
+ /**
60
+ * 检查bot链路是否在线
61
+ *
62
+ * @generated from rpc step.capy.botmsg.BotMsg.CheckBotOnline
63
+ */
64
+ readonly checkBotOnline: {
65
+ readonly name: "CheckBotOnline",
66
+ readonly I: typeof CheckBotOnlineRequest,
67
+ readonly O: typeof CheckBotOnlineResponse,
68
+ readonly kind: MethodKind.Unary,
69
+ },
70
+ }
71
+ };
72
+
@@ -0,0 +1,72 @@
1
+ // @generated by protoc-gen-connect-es v1.4.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 { CheckBotOnlineRequest, CheckBotOnlineResponse, FetchMessagesRequest, FetchMessagesResponse, HasNewMessagesRequest, HasNewMessagesResponse, PushMessagesRequest, PushMessagesResponse, SendMessagesRequest, SendMessagesResponse } from "./botmsg_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botmsg.BotMsg
11
+ */
12
+ export const BotMsg = {
13
+ typeName: "step.capy.botmsg.BotMsg",
14
+ methods: {
15
+ /**
16
+ * 拉取新消息
17
+ *
18
+ * @generated from rpc step.capy.botmsg.BotMsg.FetchMessages
19
+ */
20
+ fetchMessages: {
21
+ name: "FetchMessages",
22
+ I: FetchMessagesRequest,
23
+ O: FetchMessagesResponse,
24
+ kind: MethodKind.Unary,
25
+ },
26
+ /**
27
+ * 是否有新消息
28
+ *
29
+ * @generated from rpc step.capy.botmsg.BotMsg.HasNewMessages
30
+ */
31
+ hasNewMessages: {
32
+ name: "HasNewMessages",
33
+ I: HasNewMessagesRequest,
34
+ O: HasNewMessagesResponse,
35
+ kind: MethodKind.Unary,
36
+ },
37
+ /**
38
+ * 发送消息
39
+ *
40
+ * @generated from rpc step.capy.botmsg.BotMsg.SendMessages
41
+ */
42
+ sendMessages: {
43
+ name: "SendMessages",
44
+ I: SendMessagesRequest,
45
+ O: SendMessagesResponse,
46
+ kind: MethodKind.Unary,
47
+ },
48
+ /**
49
+ * 下行消息推送,空实现,for 客户端 push
50
+ *
51
+ * @generated from rpc step.capy.botmsg.BotMsg.PushMessages
52
+ */
53
+ pushMessages: {
54
+ name: "PushMessages",
55
+ I: PushMessagesRequest,
56
+ O: PushMessagesResponse,
57
+ kind: MethodKind.Unary,
58
+ },
59
+ /**
60
+ * 检查bot链路是否在线
61
+ *
62
+ * @generated from rpc step.capy.botmsg.BotMsg.CheckBotOnline
63
+ */
64
+ checkBotOnline: {
65
+ name: "CheckBotOnline",
66
+ I: CheckBotOnlineRequest,
67
+ O: CheckBotOnlineResponse,
68
+ kind: MethodKind.Unary,
69
+ },
70
+ }
71
+ };
72
+