feat(onebot): add public Qzone feeds and interactions (#587)

Add public Qzone discovery, pagination, and interactions with SDK and MCP support.
This commit is contained in:
Qiao authored and GitHub committed 2026-10-25 23:20:14 +08:00
1 parent 1ff2c08765
commit 2f1aadffbe
20 files changed
+4997 -6

No files matched your search

+14
View File
@@ -491,6 +491,20 @@ export const f = {
{ type: 'bool', required: true, schema: { type: 'boolean' } },
);
},
/** JSON object, preserving unknown fields without coercing scalars or arrays. */
object(): Field<JsonObject> {
return new FieldImpl<JsonObject>(
(raw, field) =>
typeof raw === 'object' && raw !== null && !Array.isArray(raw)
? ok(raw)
: err(field, 'expected an object'),
{
type: 'object',
required: true,
schema: { type: 'object', additionalProperties: true },
},
);
},
/** OneBot message union: string | segment[] | object. A string that looks
* like a JSON array is parsed (matches legacy `asMessage`); otherwise the
* value passes through. Output stays `JsonValue` — downstream ctx.* accept it. */