@slack/web-api
Version:
Official library for using the Slack Platform's Web API
86 lines • 2.04 kB
TypeScript
import type { WebAPICallResult } from '../../WebClient';
export type AssistantSearchContextResponse = WebAPICallResult & {
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
results?: Results;
warning?: string;
};
export interface ResponseMetadata {
messages?: string[];
next_cursor?: string;
warnings?: string[];
}
export interface Results {
channels?: Channel[];
files?: File[];
messages?: Message[];
users?: User[];
}
export interface Channel {
channel_type?: string;
creator_name?: string;
creator_user_id?: string;
date_created?: number;
date_updated?: number;
is_archived?: boolean;
name?: string;
permalink?: string;
purpose?: string;
team_id?: string;
topic?: string;
}
export interface File {
author_email?: string;
author_name?: string;
author_user_id?: string;
content?: string;
date_created?: number;
date_updated?: number;
file_id?: string;
file_type?: string;
permalink?: string;
size?: number;
team_id?: string;
title?: string;
uploader_user_id?: string;
}
export interface Message {
author_email?: string;
author_name?: string;
author_user_id?: string;
blocks?: any[];
channel_id?: string;
channel_name?: string;
content?: string;
context_messages?: ContextMessages;
is_author_bot?: boolean;
message_ts?: string;
permalink?: string;
reply_count?: number;
team_id?: string;
}
export interface ContextMessages {
after?: After[];
before?: After[];
}
export interface After {
author_email?: string;
author_name?: string;
blocks?: any[];
text?: string;
ts?: string;
user_id?: string;
}
export interface User {
email?: string;
full_name?: string;
permalink?: string;
profile_pic_permalink?: string;
timezone?: string;
title?: string;
user_id?: string;
}
//# sourceMappingURL=AssistantSearchContextResponse.d.ts.map