@ozaiya/openclaw-channel 0.10.21 → 0.10.23

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 (2) hide show
  1. package/openclaw.plugin.json +324 -21
  2. package/package.json +1 -1
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "id": "ozaiya",
3
- "channels": ["ozaiya"],
3
+ "channels": [
4
+ "ozaiya"
5
+ ],
4
6
  "configSchema": {
7
+ "$schema": "http://json-schema.org/draft-07/schema#",
5
8
  "type": "object",
6
- "additionalProperties": false,
9
+ "additionalProperties": true,
7
10
  "properties": {
8
11
  "enabled": {
9
12
  "type": "boolean"
@@ -23,6 +26,50 @@
23
26
  "webhookPath": {
24
27
  "type": "string"
25
28
  },
29
+ "webhookBase": {
30
+ "type": "string"
31
+ },
32
+ "botWebhookBases": {
33
+ "type": "object",
34
+ "additionalProperties": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "userToken": {
39
+ "type": "string"
40
+ },
41
+ "provisionSecret": {
42
+ "type": "string"
43
+ },
44
+ "gatewayName": {
45
+ "type": "string"
46
+ },
47
+ "dmPolicy": {
48
+ "type": "string",
49
+ "enum": [
50
+ "allow",
51
+ "deny",
52
+ "allowlist"
53
+ ]
54
+ },
55
+ "imageGeneration": {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "apiBaseUrl": {
60
+ "type": "string"
61
+ },
62
+ "apiKey": {
63
+ "type": "string"
64
+ },
65
+ "model": {
66
+ "type": "string"
67
+ },
68
+ "defaultSize": {
69
+ "type": "string"
70
+ }
71
+ }
72
+ },
26
73
  "accounts": {
27
74
  "type": "object",
28
75
  "additionalProperties": {
@@ -44,14 +91,88 @@
44
91
  "webhookPath": {
45
92
  "type": "string"
46
93
  },
47
- "stt": {
48
- "$ref": "#/$defs/stt"
94
+ "model": {
95
+ "type": "string"
49
96
  }
50
97
  }
51
98
  }
52
99
  },
53
100
  "stt": {
54
101
  "$ref": "#/$defs/stt"
102
+ },
103
+ "yuanbao": {
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "properties": {
107
+ "cookieFile": {
108
+ "type": "string"
109
+ },
110
+ "cookies": {
111
+ "type": "string"
112
+ },
113
+ "agentId": {
114
+ "type": "string"
115
+ },
116
+ "chatModelId": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ },
121
+ "doubao": {
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "properties": {
125
+ "apiBaseUrl": {
126
+ "type": "string"
127
+ },
128
+ "apiKey": {
129
+ "type": "string"
130
+ },
131
+ "model": {
132
+ "type": "string"
133
+ },
134
+ "timeoutMs": {
135
+ "type": "integer",
136
+ "minimum": 10000
137
+ }
138
+ }
139
+ },
140
+ "xueqiu": {
141
+ "type": "object",
142
+ "additionalProperties": false,
143
+ "properties": {
144
+ "cookies": {
145
+ "type": "string"
146
+ },
147
+ "cookieFile": {
148
+ "type": "string"
149
+ },
150
+ "maxComments": {
151
+ "type": "integer",
152
+ "minimum": 1
153
+ },
154
+ "timeoutMs": {
155
+ "type": "integer",
156
+ "minimum": 5000
157
+ }
158
+ }
159
+ },
160
+ "socialMedia": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "properties": {
164
+ "apiBaseUrl": {
165
+ "type": "string"
166
+ },
167
+ "maxComments": {
168
+ "type": "integer",
169
+ "minimum": 0
170
+ },
171
+ "timeoutMs": {
172
+ "type": "integer",
173
+ "minimum": 5000
174
+ }
175
+ }
55
176
  }
56
177
  },
57
178
  "$defs": {
@@ -61,7 +182,13 @@
61
182
  "properties": {
62
183
  "mode": {
63
184
  "type": "string",
64
- "enum": ["disabled", "openai", "local-command"]
185
+ "enum": [
186
+ "disabled",
187
+ "enabled"
188
+ ]
189
+ },
190
+ "url": {
191
+ "type": "string"
65
192
  },
66
193
  "timeoutMs": {
67
194
  "type": "integer",
@@ -70,31 +197,207 @@
70
197
  "maxDurationSeconds": {
71
198
  "type": "integer",
72
199
  "minimum": 1
200
+ }
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "channelConfigs": {
206
+ "ozaiya": {
207
+ "schema": {
208
+ "$schema": "http://json-schema.org/draft-07/schema#",
209
+ "type": "object",
210
+ "additionalProperties": true,
211
+ "properties": {
212
+ "enabled": {
213
+ "type": "boolean"
214
+ },
215
+ "botToken": {
216
+ "type": "string"
217
+ },
218
+ "botPrivateKey": {
219
+ "type": "string"
220
+ },
221
+ "webhookSecret": {
222
+ "type": "string"
223
+ },
224
+ "apiBaseUrl": {
225
+ "type": "string"
226
+ },
227
+ "webhookPath": {
228
+ "type": "string"
229
+ },
230
+ "webhookBase": {
231
+ "type": "string"
232
+ },
233
+ "botWebhookBases": {
234
+ "type": "object",
235
+ "additionalProperties": {
236
+ "type": "string"
237
+ }
238
+ },
239
+ "userToken": {
240
+ "type": "string"
241
+ },
242
+ "provisionSecret": {
243
+ "type": "string"
244
+ },
245
+ "gatewayName": {
246
+ "type": "string"
247
+ },
248
+ "dmPolicy": {
249
+ "type": "string",
250
+ "enum": [
251
+ "allow",
252
+ "deny",
253
+ "allowlist"
254
+ ]
255
+ },
256
+ "imageGeneration": {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "properties": {
260
+ "apiBaseUrl": {
261
+ "type": "string"
262
+ },
263
+ "apiKey": {
264
+ "type": "string"
265
+ },
266
+ "model": {
267
+ "type": "string"
268
+ },
269
+ "defaultSize": {
270
+ "type": "string"
271
+ }
272
+ }
273
+ },
274
+ "accounts": {
275
+ "type": "object",
276
+ "additionalProperties": {
277
+ "type": "object",
278
+ "additionalProperties": false,
279
+ "properties": {
280
+ "enabled": {
281
+ "type": "boolean"
282
+ },
283
+ "botToken": {
284
+ "type": "string"
285
+ },
286
+ "botPrivateKey": {
287
+ "type": "string"
288
+ },
289
+ "webhookSecret": {
290
+ "type": "string"
291
+ },
292
+ "webhookPath": {
293
+ "type": "string"
294
+ },
295
+ "model": {
296
+ "type": "string"
297
+ }
298
+ }
299
+ }
73
300
  },
74
- "openai": {
301
+ "stt": {
302
+ "$ref": "#/$defs/stt"
303
+ },
304
+ "yuanbao": {
305
+ "type": "object",
306
+ "additionalProperties": false,
307
+ "properties": {
308
+ "cookieFile": {
309
+ "type": "string"
310
+ },
311
+ "cookies": {
312
+ "type": "string"
313
+ },
314
+ "agentId": {
315
+ "type": "string"
316
+ },
317
+ "chatModelId": {
318
+ "type": "string"
319
+ }
320
+ }
321
+ },
322
+ "doubao": {
323
+ "type": "object",
324
+ "additionalProperties": false,
325
+ "properties": {
326
+ "apiBaseUrl": {
327
+ "type": "string"
328
+ },
329
+ "apiKey": {
330
+ "type": "string"
331
+ },
332
+ "model": {
333
+ "type": "string"
334
+ },
335
+ "timeoutMs": {
336
+ "type": "integer",
337
+ "minimum": 10000
338
+ }
339
+ }
340
+ },
341
+ "xueqiu": {
75
342
  "type": "object",
76
343
  "additionalProperties": false,
77
344
  "properties": {
78
- "apiKey": { "type": "string" },
79
- "baseUrl": { "type": "string" },
80
- "model": { "type": "string" },
81
- "organization": { "type": "string" },
82
- "project": { "type": "string" }
345
+ "cookies": {
346
+ "type": "string"
347
+ },
348
+ "cookieFile": {
349
+ "type": "string"
350
+ },
351
+ "maxComments": {
352
+ "type": "integer",
353
+ "minimum": 1
354
+ },
355
+ "timeoutMs": {
356
+ "type": "integer",
357
+ "minimum": 5000
358
+ }
83
359
  }
84
360
  },
85
- "localCommand": {
361
+ "socialMedia": {
86
362
  "type": "object",
87
363
  "additionalProperties": false,
88
364
  "properties": {
89
- "command": { "type": "string" },
90
- "args": {
91
- "type": "array",
92
- "items": { "type": "string" }
93
- },
94
- "cwd": { "type": "string" },
95
- "env": {
96
- "type": "object",
97
- "additionalProperties": { "type": "string" }
365
+ "apiBaseUrl": {
366
+ "type": "string"
367
+ },
368
+ "maxComments": {
369
+ "type": "integer",
370
+ "minimum": 0
371
+ },
372
+ "timeoutMs": {
373
+ "type": "integer",
374
+ "minimum": 5000
375
+ }
376
+ }
377
+ }
378
+ },
379
+ "$defs": {
380
+ "stt": {
381
+ "type": "object",
382
+ "additionalProperties": false,
383
+ "properties": {
384
+ "mode": {
385
+ "type": "string",
386
+ "enum": [
387
+ "disabled",
388
+ "enabled"
389
+ ]
390
+ },
391
+ "url": {
392
+ "type": "string"
393
+ },
394
+ "timeoutMs": {
395
+ "type": "integer",
396
+ "minimum": 1
397
+ },
398
+ "maxDurationSeconds": {
399
+ "type": "integer",
400
+ "minimum": 1
98
401
  }
99
402
  }
100
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozaiya/openclaw-channel",
3
- "version": "0.10.21",
3
+ "version": "0.10.23",
4
4
  "description": "OpenClaw channel plugin for Ozaiya Chat",
5
5
  "license": "MIT",
6
6
  "type": "module",