@zbruceli/openclaw-dchat 0.1.5 → 0.1.6

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.5",
3
+ "version": "0.1.6",
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
- dchatAccountSchema,
15
+ DchatConfigSchema,
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(dchatAccountSchema),
69
+ configSchema: buildChannelConfigSchema(DchatConfigSchema),
70
70
  pairing: {
71
71
  idLabel: "nknAddress",
72
72
  normalizeAllowEntry: (entry) => entry.replace(/^dchat:/i, ""),
@@ -32,7 +32,7 @@ export const dchatAccountSchema = z.object({
32
32
  export const DchatConfigSchema = dchatAccountSchema.extend({
33
33
  accounts: z.record(z.string(), dchatAccountSchema.optional()).optional(),
34
34
  defaultAccount: z.string().optional(),
35
- });
35
+ }).strict();
36
36
 
37
37
  /* ── Config helpers ── */
38
38