@curatedotfun/masa-source
Version:
Masa source plugin for curatedotfun
68 lines (67 loc) • 2.83 kB
TypeScript
import { PlatformState } from "@curatedotfun/types";
import { z } from "zod";
export interface TwitterPlatformState extends PlatformState {
}
export declare const TwitterQueryOptionsSchema: z.ZodObject<{
allWords: z.ZodOptional<z.ZodString>;
exactPhrase: z.ZodOptional<z.ZodString>;
anyWords: z.ZodOptional<z.ZodString>;
noneWords: z.ZodOptional<z.ZodString>;
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
fromAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
toAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
mentioningAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
includeReplies: z.ZodOptional<z.ZodBoolean>;
onlyReplies: z.ZodOptional<z.ZodBoolean>;
onlyLinks: z.ZodOptional<z.ZodBoolean>;
minReplies: z.ZodOptional<z.ZodNumber>;
minLikes: z.ZodOptional<z.ZodNumber>;
minRetweets: z.ZodOptional<z.ZodNumber>;
sinceDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
untilDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
sinceId: z.ZodOptional<z.ZodString>;
pageSize: z.ZodOptional<z.ZodNumber>;
language: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
allWords?: string | undefined;
exactPhrase?: string | undefined;
anyWords?: string | undefined;
noneWords?: string | undefined;
hashtags?: string[] | undefined;
fromAccounts?: string[] | undefined;
toAccounts?: string[] | undefined;
mentioningAccounts?: string[] | undefined;
includeReplies?: boolean | undefined;
onlyReplies?: boolean | undefined;
onlyLinks?: boolean | undefined;
minReplies?: number | undefined;
minLikes?: number | undefined;
minRetweets?: number | undefined;
sinceDate?: string | Date | undefined;
untilDate?: string | Date | undefined;
sinceId?: string | undefined;
pageSize?: number | undefined;
language?: string | undefined;
}, {
allWords?: string | undefined;
exactPhrase?: string | undefined;
anyWords?: string | undefined;
noneWords?: string | undefined;
hashtags?: string[] | undefined;
fromAccounts?: string[] | undefined;
toAccounts?: string[] | undefined;
mentioningAccounts?: string[] | undefined;
includeReplies?: boolean | undefined;
onlyReplies?: boolean | undefined;
onlyLinks?: boolean | undefined;
minReplies?: number | undefined;
minLikes?: number | undefined;
minRetweets?: number | undefined;
sinceDate?: string | Date | undefined;
untilDate?: string | Date | undefined;
sinceId?: string | undefined;
pageSize?: number | undefined;
language?: string | undefined;
}>;
export type TwitterQueryOptionsInput = z.input<typeof TwitterQueryOptionsSchema>;
export type TwitterQueryOptionsOutput = z.output<typeof TwitterQueryOptionsSchema>;