Skip to content

Commit 89dd5c8

Browse files
fix: Update IChatPostMessageBody to include optional attachments and adjust bodyParams type
1 parent 5b57f89 commit 89dd5c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/meteor/app/api/server/definition.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ type Mutable<T> = { -readonly [K in keyof T]: T[K] };
1212
interface IChatPostMessageBody {
1313
channal: string;
1414
text: string;
15+
attachments?: Array<{
16+
text: string;
17+
color?: string;
18+
image_url?: string;
19+
}>;
1520
}
1621
type ChatPostMessageBodyValidator = ValidateFunction<IChatPostMessageBody>;
1722

@@ -31,7 +36,7 @@ type ExpectedActionThis = {
3136
urlParams: never;
3237
readonly response: Response;
3338
readonly queryParams: Record<string, string>;
34-
readonly bodyParams: IChatPostMessageBody;
39+
readonly bodyParams: ChatPostMessageBodyValidator;
3540
readonly request: Request;
3641
readonly queryOperations: never;
3742
parseJsonQuery: () => Promise<{

0 commit comments

Comments
 (0)