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,267 @@
1
+ // @generated by protoc-gen-es v1.8.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 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.botway.KickCode
11
+ */
12
+ export declare enum KickCode {
13
+ /**
14
+ * @generated from enum value: Unknown = 0;
15
+ */
16
+ Unknown = 0,
17
+
18
+ /**
19
+ * 用户登出
20
+ *
21
+ * @generated from enum value: Logout = 1;
22
+ */
23
+ Logout = 1,
24
+
25
+ /**
26
+ * 用户注销
27
+ *
28
+ * @generated from enum value: Signout = 2;
29
+ */
30
+ Signout = 2,
31
+
32
+ /**
33
+ * 用户被封禁
34
+ *
35
+ * @generated from enum value: Banned = 3;
36
+ */
37
+ Banned = 3,
38
+ }
39
+
40
+ /**
41
+ * 踢人请求,按session列表进行踢人
42
+ *
43
+ * @generated from message step.capy.botway.KickReq
44
+ */
45
+ export declare class KickReq extends Message<KickReq> {
46
+ /**
47
+ * @generated from field: repeated string sessions = 1;
48
+ */
49
+ sessions: string[];
50
+
51
+ /**
52
+ * @generated from field: step.capy.botway.KickCode code = 2;
53
+ */
54
+ code: KickCode;
55
+
56
+ constructor(data?: PartialMessage<KickReq>);
57
+
58
+ static readonly runtime: typeof proto3;
59
+ static readonly typeName = "step.capy.botway.KickReq";
60
+ static readonly fields: FieldList;
61
+
62
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KickReq;
63
+
64
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KickReq;
65
+
66
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KickReq;
67
+
68
+ static equals(a: KickReq | PlainMessage<KickReq> | undefined, b: KickReq | PlainMessage<KickReq> | undefined): boolean;
69
+ }
70
+
71
+ /**
72
+ * 返回成功踢人的session列表
73
+ *
74
+ * @generated from message step.capy.botway.KickRes
75
+ */
76
+ export declare class KickRes extends Message<KickRes> {
77
+ /**
78
+ * @generated from field: repeated string sessions = 1;
79
+ */
80
+ sessions: string[];
81
+
82
+ constructor(data?: PartialMessage<KickRes>);
83
+
84
+ static readonly runtime: typeof proto3;
85
+ static readonly typeName = "step.capy.botway.KickRes";
86
+ static readonly fields: FieldList;
87
+
88
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KickRes;
89
+
90
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KickRes;
91
+
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KickRes;
93
+
94
+ static equals(a: KickRes | PlainMessage<KickRes> | undefined, b: KickRes | PlainMessage<KickRes> | undefined): boolean;
95
+ }
96
+
97
+ /**
98
+ * 推送消息,按session列表进行消息发送,Message是StreamMsg的封装二进制流
99
+ *
100
+ * @generated from message step.capy.botway.PushReq
101
+ */
102
+ export declare class PushReq extends Message<PushReq> {
103
+ /**
104
+ * @generated from field: repeated string sessions = 1;
105
+ */
106
+ sessions: string[];
107
+
108
+ /**
109
+ * @generated from field: bytes stream_msg = 2;
110
+ */
111
+ streamMsg: Uint8Array;
112
+
113
+ constructor(data?: PartialMessage<PushReq>);
114
+
115
+ static readonly runtime: typeof proto3;
116
+ static readonly typeName = "step.capy.botway.PushReq";
117
+ static readonly fields: FieldList;
118
+
119
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushReq;
120
+
121
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushReq;
122
+
123
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushReq;
124
+
125
+ static equals(a: PushReq | PlainMessage<PushReq> | undefined, b: PushReq | PlainMessage<PushReq> | undefined): boolean;
126
+ }
127
+
128
+ /**
129
+ * 返回成功推送的session列表
130
+ *
131
+ * @generated from message step.capy.botway.PushRes
132
+ */
133
+ export declare class PushRes extends Message<PushRes> {
134
+ /**
135
+ * @generated from field: repeated string sessions = 1;
136
+ */
137
+ sessions: string[];
138
+
139
+ constructor(data?: PartialMessage<PushRes>);
140
+
141
+ static readonly runtime: typeof proto3;
142
+ static readonly typeName = "step.capy.botway.PushRes";
143
+ static readonly fields: FieldList;
144
+
145
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushRes;
146
+
147
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushRes;
148
+
149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushRes;
150
+
151
+ static equals(a: PushRes | PlainMessage<PushRes> | undefined, b: PushRes | PlainMessage<PushRes> | undefined): boolean;
152
+ }
153
+
154
+ /**
155
+ * 踢人请求,按session列表进行踢人
156
+ *
157
+ * @generated from message step.capy.botway.BotKickReq
158
+ */
159
+ export declare class BotKickReq extends Message<BotKickReq> {
160
+ /**
161
+ * @generated from field: repeated string sessions = 1;
162
+ */
163
+ sessions: string[];
164
+
165
+ /**
166
+ * @generated from field: step.capy.botway.KickCode code = 2;
167
+ */
168
+ code: KickCode;
169
+
170
+ constructor(data?: PartialMessage<BotKickReq>);
171
+
172
+ static readonly runtime: typeof proto3;
173
+ static readonly typeName = "step.capy.botway.BotKickReq";
174
+ static readonly fields: FieldList;
175
+
176
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotKickReq;
177
+
178
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotKickReq;
179
+
180
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotKickReq;
181
+
182
+ static equals(a: BotKickReq | PlainMessage<BotKickReq> | undefined, b: BotKickReq | PlainMessage<BotKickReq> | undefined): boolean;
183
+ }
184
+
185
+ /**
186
+ * 返回成功踢人的session列表
187
+ *
188
+ * @generated from message step.capy.botway.BotKickRes
189
+ */
190
+ export declare class BotKickRes extends Message<BotKickRes> {
191
+ /**
192
+ * @generated from field: repeated string sessions = 1;
193
+ */
194
+ sessions: string[];
195
+
196
+ constructor(data?: PartialMessage<BotKickRes>);
197
+
198
+ static readonly runtime: typeof proto3;
199
+ static readonly typeName = "step.capy.botway.BotKickRes";
200
+ static readonly fields: FieldList;
201
+
202
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotKickRes;
203
+
204
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotKickRes;
205
+
206
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotKickRes;
207
+
208
+ static equals(a: BotKickRes | PlainMessage<BotKickRes> | undefined, b: BotKickRes | PlainMessage<BotKickRes> | undefined): boolean;
209
+ }
210
+
211
+ /**
212
+ * 推送消息,按session列表进行消息发送,Message是StreamMsg的封装二进制流
213
+ *
214
+ * @generated from message step.capy.botway.BotPushReq
215
+ */
216
+ export declare class BotPushReq extends Message<BotPushReq> {
217
+ /**
218
+ * @generated from field: repeated string sessions = 1;
219
+ */
220
+ sessions: string[];
221
+
222
+ /**
223
+ * @generated from field: bytes stream_msg = 2;
224
+ */
225
+ streamMsg: Uint8Array;
226
+
227
+ constructor(data?: PartialMessage<BotPushReq>);
228
+
229
+ static readonly runtime: typeof proto3;
230
+ static readonly typeName = "step.capy.botway.BotPushReq";
231
+ static readonly fields: FieldList;
232
+
233
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotPushReq;
234
+
235
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotPushReq;
236
+
237
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotPushReq;
238
+
239
+ static equals(a: BotPushReq | PlainMessage<BotPushReq> | undefined, b: BotPushReq | PlainMessage<BotPushReq> | undefined): boolean;
240
+ }
241
+
242
+ /**
243
+ * 返回成功推送的session列表
244
+ *
245
+ * @generated from message step.capy.botway.BotPushRes
246
+ */
247
+ export declare class BotPushRes extends Message<BotPushRes> {
248
+ /**
249
+ * @generated from field: repeated string sessions = 1;
250
+ */
251
+ sessions: string[];
252
+
253
+ constructor(data?: PartialMessage<BotPushRes>);
254
+
255
+ static readonly runtime: typeof proto3;
256
+ static readonly typeName = "step.capy.botway.BotPushRes";
257
+ static readonly fields: FieldList;
258
+
259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BotPushRes;
260
+
261
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BotPushRes;
262
+
263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BotPushRes;
264
+
265
+ static equals(a: BotPushRes | PlainMessage<BotPushRes> | undefined, b: BotPushRes | PlainMessage<BotPushRes> | undefined): boolean;
266
+ }
267
+
@@ -0,0 +1,120 @@
1
+ // @generated by protoc-gen-es v1.8.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 { proto3 } from "@bufbuild/protobuf";
7
+
8
+ /**
9
+ * @generated from enum step.capy.botway.KickCode
10
+ */
11
+ export const KickCode = /*@__PURE__*/ proto3.makeEnum(
12
+ "step.capy.botway.KickCode",
13
+ [
14
+ {no: 0, name: "Unknown"},
15
+ {no: 1, name: "Logout"},
16
+ {no: 2, name: "Signout"},
17
+ {no: 3, name: "Banned"},
18
+ ],
19
+ );
20
+
21
+ /**
22
+ * 踢人请求,按session列表进行踢人
23
+ *
24
+ * @generated from message step.capy.botway.KickReq
25
+ */
26
+ export const KickReq = /*@__PURE__*/ proto3.makeMessageType(
27
+ "step.capy.botway.KickReq",
28
+ () => [
29
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
30
+ { no: 2, name: "code", kind: "enum", T: proto3.getEnumType(KickCode) },
31
+ ],
32
+ );
33
+
34
+ /**
35
+ * 返回成功踢人的session列表
36
+ *
37
+ * @generated from message step.capy.botway.KickRes
38
+ */
39
+ export const KickRes = /*@__PURE__*/ proto3.makeMessageType(
40
+ "step.capy.botway.KickRes",
41
+ () => [
42
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
43
+ ],
44
+ );
45
+
46
+ /**
47
+ * 推送消息,按session列表进行消息发送,Message是StreamMsg的封装二进制流
48
+ *
49
+ * @generated from message step.capy.botway.PushReq
50
+ */
51
+ export const PushReq = /*@__PURE__*/ proto3.makeMessageType(
52
+ "step.capy.botway.PushReq",
53
+ () => [
54
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
55
+ { no: 2, name: "stream_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * 返回成功推送的session列表
61
+ *
62
+ * @generated from message step.capy.botway.PushRes
63
+ */
64
+ export const PushRes = /*@__PURE__*/ proto3.makeMessageType(
65
+ "step.capy.botway.PushRes",
66
+ () => [
67
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
68
+ ],
69
+ );
70
+
71
+ /**
72
+ * 踢人请求,按session列表进行踢人
73
+ *
74
+ * @generated from message step.capy.botway.BotKickReq
75
+ */
76
+ export const BotKickReq = /*@__PURE__*/ proto3.makeMessageType(
77
+ "step.capy.botway.BotKickReq",
78
+ () => [
79
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
80
+ { no: 2, name: "code", kind: "enum", T: proto3.getEnumType(KickCode) },
81
+ ],
82
+ );
83
+
84
+ /**
85
+ * 返回成功踢人的session列表
86
+ *
87
+ * @generated from message step.capy.botway.BotKickRes
88
+ */
89
+ export const BotKickRes = /*@__PURE__*/ proto3.makeMessageType(
90
+ "step.capy.botway.BotKickRes",
91
+ () => [
92
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
93
+ ],
94
+ );
95
+
96
+ /**
97
+ * 推送消息,按session列表进行消息发送,Message是StreamMsg的封装二进制流
98
+ *
99
+ * @generated from message step.capy.botway.BotPushReq
100
+ */
101
+ export const BotPushReq = /*@__PURE__*/ proto3.makeMessageType(
102
+ "step.capy.botway.BotPushReq",
103
+ () => [
104
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
105
+ { no: 2, name: "stream_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
106
+ ],
107
+ );
108
+
109
+ /**
110
+ * 返回成功推送的session列表
111
+ *
112
+ * @generated from message step.capy.botway.BotPushRes
113
+ */
114
+ export const BotPushRes = /*@__PURE__*/ proto3.makeMessageType(
115
+ "step.capy.botway.BotPushRes",
116
+ () => [
117
+ { no: 1, name: "sessions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
118
+ ],
119
+ );
120
+
@@ -0,0 +1,26 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botway/stream.proto (package step.capy.botway, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { StreamMsg } from "./stream_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botway.Stream
11
+ */
12
+ export declare const Stream: {
13
+ readonly typeName: "step.capy.botway.Stream",
14
+ readonly methods: {
15
+ /**
16
+ * @generated from rpc step.capy.botway.Stream.Process
17
+ */
18
+ readonly process: {
19
+ readonly name: "Process",
20
+ readonly I: typeof StreamMsg,
21
+ readonly O: typeof StreamMsg,
22
+ readonly kind: MethodKind.BiDiStreaming,
23
+ },
24
+ }
25
+ };
26
+
@@ -0,0 +1,26 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
+ // @generated from file capy/botway/stream.proto (package step.capy.botway, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { StreamMsg } from "./stream_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service step.capy.botway.Stream
11
+ */
12
+ export const Stream = {
13
+ typeName: "step.capy.botway.Stream",
14
+ methods: {
15
+ /**
16
+ * @generated from rpc step.capy.botway.Stream.Process
17
+ */
18
+ process: {
19
+ name: "Process",
20
+ I: StreamMsg,
21
+ O: StreamMsg,
22
+ kind: MethodKind.BiDiStreaming,
23
+ },
24
+ }
25
+ };
26
+