@trendmoon/api-client
Version:
Official TypeScript client for Trendmoon API
194 lines • 6.19 kB
TypeScript
import * as Schema from './Schema.js';
export type GetRootResponse = Schema.StatusResponse;
export interface GetChatByUsernameParams {
group_username: string;
}
export type GetChatByUsernameResponse = Schema.Chat;
export interface GetChatActivityParams {
group_username?: string;
start_date?: string;
end_date?: string;
from_?: number;
size?: number;
}
export type GetChatActivityResponse = Schema.ChatActivity[];
export interface GetMessagesForChatParams {
group_username?: string | null;
chat_id?: number | null;
start_date: string;
end_date: string;
message_type?: Schema.MessageTypeEnum | null;
with_spams?: boolean | null;
from_?: number;
size?: number;
}
export type GetMessagesForChatResponse = Schema.MessageResponse[];
export interface SearchMessagesParams {
text?: string | null;
group_username?: string | null;
username?: string | null;
message_type?: Schema.MessageTypeEnum | null;
user_is_bot?: boolean | null;
user_is_spammer?: boolean | null;
spam_flag?: boolean | null;
start_date: string;
end_date: string;
from_?: number;
size?: number;
}
export type SearchMessagesResponse = Schema.MessageResponse[];
export interface GetMessagesWithinTimeframeParams {
start_date?: string;
end_date?: string;
message_type?: Schema.MessageTypeEnum | null;
with_spams?: boolean | null;
from_?: number;
size?: number;
}
export type GetMessagesWithinTimeframeResponse = Schema.MessageResponse[];
export interface GetMessagesForUserParams {
username?: string | null;
user_id?: number | null;
start_date: string;
end_date: string;
message_type?: Schema.MessageTypeEnum | null;
with_spams?: boolean | null;
from_?: number;
size?: number;
}
export type GetMessagesForUserResponse = Schema.MessageResponse[];
export interface SearchUsersParams {
username?: string | null;
bot?: boolean | null;
verified?: boolean | null;
scam?: boolean | null;
fake?: boolean | null;
spammer?: boolean | null;
from_?: number;
size?: number;
}
export type SearchUsersResponse = Schema.User[];
export interface GetUserByIdentifierParams {
identifier: string;
}
export type GetUserByIdentifierResponse = Schema.User;
export interface GetCategoryDominanceForAssetsParams {
category_name?: string[];
duration?: number;
from_?: number;
size?: number;
}
export type GetCategoryDominanceForAssetsResponse = Schema.CategoryDominance[];
export type GetAllCategoriesResponse = string[];
export interface SearchCoinsParams {
name?: string | null;
symbol?: string | null;
category?: string | null;
chain?: string | null;
contract_address?: string | null;
group_username?: string | null;
page?: number;
page_size?: number;
}
export type SearchCoinsResponse = Schema.Coin[];
export type GetPlatformsResponse = string[];
export interface GetCoinDetailsParams {
contract_address?: string | null;
symbol?: string | null;
project_name?: string | null;
coin_id?: string | null;
telegram_channel?: string | null;
}
export type GetCoinDetailsResponse = Schema.Coin;
export interface GetSocialTrendParams {
contract_address?: string | null;
symbol?: string | null;
project_name?: string | null;
coin_id?: string | null;
date_interval?: number;
time_interval?: Schema.SocialTrendTimeIntervalEnum;
}
export type GetSocialTrendResponse = Schema.SocialTrendResponse;
export interface GetKeywordTrendParams {
keyword?: string;
duration?: number;
time_interval?: Schema.KeywordTimeIntervalEnum;
match_mode?: Schema.MatchModeEnum;
}
export type GetKeywordTrendResponse = Schema.KeywordTrendResponse;
export type GetProjectSummaryParams = {
days_ago: number;
force_regenerate?: boolean;
} & ({
contract_address: string;
symbol?: never;
project_name?: never;
coin_id?: never;
} | {
symbol: string;
contract_address?: never;
project_name?: never;
coin_id?: never;
} | {
project_name: string;
contract_address?: never;
symbol?: never;
coin_id?: never;
} | {
coin_id: string;
contract_address?: never;
symbol?: never;
project_name?: never;
});
export type GetProjectSummaryResponse = Schema.ProjectSummary;
export interface GetTopicPostsParams {
topic?: string;
}
export type GetTopicPostsResponse = Schema.LunarCrushTopicPostsResponse;
export interface GetTopicNewsParams {
topic?: string;
}
export type GetTopicNewsResponse = Schema.LunarCrushTopicPostsResponse;
export interface SearchSocialPostsParams {
terms: string;
limit?: number;
}
export type SearchSocialPostsResponse = Schema.LunarCrushSearchResponse;
export interface GetSocialTrendsParams {
coin_ids: string[];
start_date: string;
end_date: string;
interval?: "4h" | "12h" | "1d";
}
export type GetSocialTrendsResponse = Schema.SocialTrendResponse[];
export type GetGroupsServiceStatusResponse = Schema.ServiceStatusResponse;
export interface GetSpecificGroupParams {
group_username: string;
}
export type GetSpecificGroupResponse = Schema.GroupStatusResponse;
export type AddNewGroupRequest = Schema.GroupAddRequest;
export type AddNewGroupResponse = Schema.GroupAddResponse;
export type GetAllGroupsResponse = Schema.GroupsListResponse;
export type GetTopAlertsTodayResponse = Schema.TopAlertsResponse[];
export type GetTopCategoriesTodayResponse = Schema.TopCategoriesResponse[];
export type GetTopCategoryAlertsResponse = Schema.TopAlertsResponse[];
export interface GetCategoryCoinsLegacyParams {
category_name: string;
top_n?: number;
}
export type GetCategoryCoinsLegacyResponse = Schema.CategoryCoinLegacyResponse;
export interface GetCategoryCoinsParams {
category_name: string;
top_n?: number;
}
export type GetCategoryCoinsResponse = Schema.CategoryCoinResponse;
export interface GetGeneralStatusResponse {
status?: string;
message?: string;
[key: string]: any;
}
export interface GetTopicSummaryParams {
topic: string;
}
export type GetTopicSummaryResponse = Schema.TopicSummaryResponse;
//# sourceMappingURL=ResponseAndParams.d.ts.map