@openclaw/nostr 2026.3.8-beta.1 → 2026.3.10
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/config-schema.ts +3 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/config-schema.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { AllowFromListSchema, DmPolicySchema } from "openclaw/plugin-sdk/compat";
|
|
1
2
|
import { MarkdownConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/nostr";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
|
|
4
|
-
const allowFromEntry = z.union([z.string(), z.number()]);
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Validates https:// URLs only (no javascript:, data:, file:, etc.)
|
|
8
7
|
*/
|
|
@@ -76,10 +75,10 @@ export const NostrConfigSchema = z.object({
|
|
|
76
75
|
relays: z.array(z.string()).optional(),
|
|
77
76
|
|
|
78
77
|
/** DM access policy: pairing, allowlist, open, or disabled */
|
|
79
|
-
dmPolicy:
|
|
78
|
+
dmPolicy: DmPolicySchema.optional(),
|
|
80
79
|
|
|
81
80
|
/** Allowed sender pubkeys (npub or hex format) */
|
|
82
|
-
allowFrom:
|
|
81
|
+
allowFrom: AllowFromListSchema,
|
|
83
82
|
|
|
84
83
|
/** Profile metadata (NIP-01 kind:0 content) */
|
|
85
84
|
profile: NostrProfileSchema.optional(),
|