Message: clarify media schema + fix MEDIA newline
This commit is contained in:
@@ -56,7 +56,11 @@ function buildSendSchema(options: { includeButtons: boolean; includeCards: boole
|
||||
effect: Type.Optional(
|
||||
Type.String({ description: "Alias for effectId (e.g., invisible-ink, balloons)." }),
|
||||
),
|
||||
media: Type.Optional(Type.String()),
|
||||
media: Type.Optional(
|
||||
Type.String({
|
||||
description: "Media URL or local path. data: URLs are not supported here, use buffer.",
|
||||
}),
|
||||
),
|
||||
filename: Type.Optional(Type.String()),
|
||||
buffer: Type.Optional(
|
||||
Type.String({
|
||||
|
||||
@@ -579,7 +579,7 @@ describe("runMessageAction sandboxed media validation", () => {
|
||||
params: {
|
||||
channel: "slack",
|
||||
target: "#C12345678",
|
||||
message: "Hello\\nMEDIA: ./data/note.ogg",
|
||||
message: "Hello\nMEDIA: ./data/note.ogg",
|
||||
},
|
||||
sandboxRoot: sandboxDir,
|
||||
dryRun: true,
|
||||
|
||||
Reference in New Issue
Block a user