@zbruceli/openclaw-dchat 0.1.2 → 0.1.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zbruceli/openclaw-dchat",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OpenClaw D-Chat/nMobile channel plugin — decentralized E2E encrypted messaging over the NKN relay network",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/src/channel.ts CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from "openclaw/plugin-sdk";
13
13
  import {
14
14
  type CoreConfig,
15
- DchatConfigSchema,
15
+ dchatAccountSchema,
16
16
  listDchatAccountIds,
17
17
  resolveDchatAccount,
18
18
  resolveDchatAccountConfig,
@@ -66,7 +66,7 @@ export const dchatPlugin: ChannelPlugin<ResolvedDchatAccount> = {
66
66
  polls: false,
67
67
  },
68
68
  reload: { configPrefixes: ["channels.dchat"] },
69
- configSchema: buildChannelConfigSchema(DchatConfigSchema),
69
+ configSchema: buildChannelConfigSchema(dchatAccountSchema),
70
70
  pairing: {
71
71
  idLabel: "nknAddress",
72
72
  normalizeAllowEntry: (entry) => entry.replace(/^dchat:/i, ""),
@@ -17,7 +17,7 @@ const DEFAULT_ACCOUNT_ID = "default";
17
17
 
18
18
  /* ── Zod config schema (powers web UI form via buildChannelConfigSchema) ── */
19
19
 
20
- const dchatAccountSchema = z.object({
20
+ export const dchatAccountSchema = z.object({
21
21
  name: z.string().optional(),
22
22
  enabled: z.boolean().optional(),
23
23
  seed: z.string().optional(),