{"draft":null,"from":19,"to":20,"files":[{"path":"client/src/api.ts","added":19,"removed":2,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -50,7 +50,16 @@\n \tWhereAnswer,\n \tWhyAnswer,\n } from \"./history-answers.ts\";\n-import type { Ask, Attachment, Draft, DraftBody, News as IssueNews, IssuePage, IssueRow } from \"./issues-wire.ts\";\n+import type {\n+\tAsk,\n+\tAttachment,\n+\tDraft,\n+\tDraftBody,\n+\tNews as IssueNews,\n+\tIssuePage,\n+\tIssueRow,\n+\tIssueSearchHit,\n+} from \"./issues-wire.ts\";\n import type { Modes } from \"./modes.ts\";\n \n export * from \"./api-answers.ts\";\n@@ -65,7 +74,7 @@\n } from \"./box-run.ts\";\n export * from \"./ci-answers.ts\";\n export * from \"./history-answers.ts\";\n-export type { Ask, Attachment, Draft, DraftBody, IssueNews, IssuePage, IssueRow };\n+export type { Ask, Attachment, Draft, DraftBody, IssueNews, IssuePage, IssueRow, IssueSearchHit };\n \n /**\n  * How long a call may take: the base, plus 1 s for each 100 KB it sends\n@@ -375,6 +384,14 @@\n \t\t);\n \t}\n \n+\t/**\n+\t * The project's issues matching q, best first: by its words and, where\n+\t * the server has it on, by what it means.\n+\t */\n+\tissueSearch(q: string, limit?: number): Promise<{ hits: readonly IssueSearchHit[] }> {\n+\t\treturn this.#issues(\"GET\", `/search?${query({ q, limit })}`);\n+\t}\n+\n \t/** Every label in use, with how many issues have it and how many of those are open. */\n \tissueLabels(): Promise<{ labels: readonly { label: string; open: number; total: number }[] }> {\n \t\treturn this.#issues(\"GET\", \"/labels\");"}],"unmatched":[]}