Updates to intel and correlation
This commit is contained in:
@@ -94,6 +94,12 @@ export const c2api = {
|
||||
reissueNodeKey: (nodeId: string) =>
|
||||
request(`/nodes/${nodeId}/reissue-key`, { method: "POST" }),
|
||||
|
||||
// Ten-codes
|
||||
getTenCodes: (systemId: string) =>
|
||||
request<{ ten_codes: Record<string, string> }>(`/systems/${systemId}/ten-codes`),
|
||||
updateTenCodes: (systemId: string, ten_codes: Record<string, string>) =>
|
||||
request(`/systems/${systemId}/ten-codes`, { method: "PUT", body: JSON.stringify({ ten_codes }) }),
|
||||
|
||||
// Vocabulary
|
||||
getVocabulary: (systemId: string) =>
|
||||
request<{ vocabulary: string[]; vocabulary_pending: { term: string; source: "induction" | "correction"; added_at: string }[]; vocabulary_bootstrapped: boolean }>(
|
||||
|
||||
Reference in New Issue
Block a user