You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
QueryMessagesArgs
export type QueryMessagesArgs = {
where?: InputMaybe<Scalars['String']>;
sort?: InputMaybe<Array<Scalars['String']>>;
limit?: InputMaybe<Scalars['Int']>;
offset?: InputMaybe<Scalars['Int']>;
};