<commit_before>/* @flow strict-local */
import type { Auth, User } from '../apiTypes';
import { apiGet } from '../apiFetch';

/** See https://zulipchat.com/api/get-all-users */
export default (auth: Auth): Promise<User[]> =>
  apiGet(auth, 'users', res => res.members, { client_gravatar: true });<commit_msg>api: Make `getUsers` return full response<commit_after>/* @flow strict-local */
import type { Auth, ApiResponseSuccess, User } from '../apiTypes';
import { apiGet } from '../apiFetch';

type ApiResponseUsers = {|
  ...ApiResponseSuccess,
  members: User[],
|};

/** See https://zulipchat.com/api/get-all-users */
export default (auth: Auth): Promise<ApiResponseUsers> =>
  apiGet(auth, 'users', res => res, { client_gravatar: true });
{'fraction_non_alphanumeric': 0.19002695417789758, 'fraction_numerical': 0.0, 'mean_word_length': 4.384057971014493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '782504', 'n_tokens_mistral': 234, 'n_tokens_neox': 236, 'n_words': 63}