/** * @fileoverview Validated FBI CDE response shapes, including sparse count records. * @module services/fbi-api/types */ import { z } from '@cyanheads/mcp-ts-core'; /** Category or month key to count; null means unavailable, never zero. */ export declare const CountMapSchema: z.ZodRecord>; /** Dimension or killing type to category counts; null subgroups stay explicit. */ export declare const NestedCountMapSchema: z.ZodRecord>>>; /** Killing type to year to month counts, including comparison years. */ export declare const MonthlyCountMapSchema: z.ZodRecord>>>>>; /** Raw incidents_victim_officer_totals_ytd block, returned by both LEOKA periods. */ export declare const FbiLeokaTotalsSchema: z.ZodObject<{ total_officers: z.ZodOptional>; total_incidents: z.ZodOptional>; total_officers_dod: z.ZodOptional>; total_officers_doi: z.ZodOptional>; total_incidents_dod: z.ZodOptional>; total_incidents_doi: z.ZodOptional>; }, z.core.$strip>; /** LEOKA chart_data shared by the YTD and monthly envelopes. */ export declare const FbiLeokaChartSchema: z.ZodObject<{ incidents_victim_officer_totals_ytd: z.ZodOptional>; total_incidents: z.ZodOptional>; total_officers_dod: z.ZodOptional>; total_officers_doi: z.ZodOptional>; total_incidents_dod: z.ZodOptional>; total_incidents_doi: z.ZodOptional>; }, z.core.$strip>>>; body_armor_worn: z.ZodOptional>>>; lighting_conditions: z.ZodOptional>>>; location_of_attack: z.ZodOptional>>>; offender_demographic: z.ZodOptional>>>>>; offender_previously_known_to_agency: z.ZodOptional>>>; offender_prior_mental_illness: z.ZodOptional>>>; offender_prior_relationship: z.ZodOptional>>>; officer_activity: z.ZodOptional>>>; officer_circumstances_time_of_attack: z.ZodOptional>>>; officer_death_by_geographic_region: z.ZodOptional>>>>>; officer_death_by_month: z.ZodOptional>>>>>>>; officer_death_by_time_of_day: z.ZodOptional>>>>>; officer_death_by_year: z.ZodOptional>>>>>; officer_demographic: z.ZodOptional>>>>>; officer_incident_type: z.ZodOptional>>>; officer_type_of_assignment: z.ZodOptional>>>; weapons: z.ZodOptional>>>; weather_conditions: z.ZodOptional>>>; }, z.core.$strip>; /** Validated LEOKA chart, before omitted/null sections are removed from tool output. */ export type FbiLeokaChartData = z.infer; /** * Summarized rates and actuals use entity labels then MM-YYYY month keys. * Actuals identify the scoped entity. Rates, populations, and the coverage tooltip also carry * comparison entities ahead of it (an agency's state and the United States, a state's United * States), with rates per 100,000 participating population and no comparison actuals. */ export declare const FbiSummarizedResponseSchema: z.ZodObject<{ populations: z.ZodOptional>>>>>; participated_population: z.ZodOptional>>>>>; }, z.core.$strip>>>; tooltips: z.ZodOptional>>>>>; }, z.core.$strip>>>; cde_properties: z.ZodOptional>; last_refresh_date: z.ZodOptional>; }, z.core.$strip>>>; offenses: z.ZodOptional>>>>>; actuals: z.ZodOptional>>>>>; }, z.core.$strip>>>; }, z.core.$strip>; /** Summarized data with nullable scoped actuals and rates represented explicitly. */ export type FbiSummarizedResponse = z.infer; /** A CDE scope with its identifier, sent as given, so callers pass it uppercased. */ export type CdeScope = { scope: 'national'; } | { scope: 'state'; stateAbbr: string; } | { scope: 'agency'; ori: string; }; /** Scope and MM-YYYY window for a CDE `{endpoint}/{scope}/{selector}` request. */ export type CdeScopedWindow = CdeScope & { from: string; to: string; }; /** * `GET /hate-crime/{scope}/{bias}?type=totals`: category counts summed over the window. Every * captured payload carries the same dimensions at every scope, bias, and year (286 cells), so a * missing or null dimension is malformed. An unknown ORI or bias code returns the same shape with * every count zero. */ export declare const FbiHateCrimeTotalsSchema: z.ZodObject<{ incident_section: z.ZodObject<{ bias: z.ZodRecord>; bias_category: z.ZodRecord>; }, z.core.$strip>; bias_section: z.ZodObject<{ offense_type: z.ZodRecord>; location_type: z.ZodRecord>; offender_race: z.ZodRecord>; offender_ethnicity: z.ZodRecord>; judicial_district: z.ZodRecord>; }, z.core.$strip>; last_refresh_date: z.ZodOptional>>; }, z.core.$strip>; export type FbiHateCrimeTotals = z.infer; /** * `GET /arrest/{scope}/{offense}?type=totals`: seven category groups summed over the window (175 * cells in every captured payload). The demographic groups do not sum to the offense total. An * unknown ORI or offense code returns the same shape with every count zero. */ export declare const FbiArrestTotalsSchema: z.ZodObject<{ 'Offense Name': z.ZodRecord>; 'Offense Category': z.ZodRecord>; 'Offense Breakdown': z.ZodRecord>; 'Arrestee Sex': z.ZodRecord>; 'Arrestee Race': z.ZodRecord>; 'Male Arrests By Age': z.ZodRecord>; 'Female Arrests By Age': z.ZodRecord>; cde_properties: z.ZodOptional>>; last_refresh_date: z.ZodOptional>>; }, z.core.$strip>>>; }, z.core.$strip>; export type FbiArrestTotals = z.infer; /** * `GET /nibrs/{scope}/{offense}?type=totals`: victim, offender, and offense category counts summed * over the window (261 cells in every captured payload; dimensions do not sum to one total). An * unknown ORI or offense code, a window with no NIBRS data, or an offense with no reported * incidents in the window returns the same shape with every count null. */ export declare const FbiNibrsTotalsSchema: z.ZodObject<{ victim: z.ZodObject<{ age: z.ZodRecord>; sex: z.ZodRecord>; race: z.ZodRecord>; location: z.ZodRecord>; ethnicity: z.ZodRecord>; relationship: z.ZodRecord>; }, z.core.$strip>; offender: z.ZodObject<{ age: z.ZodRecord>; sex: z.ZodRecord>; race: z.ZodRecord>; ethnicity: z.ZodRecord>; }, z.core.$strip>; offense: z.ZodObject<{ weapons: z.ZodRecord>; related_offenses: z.ZodRecord>; }, z.core.$strip>; cde_properties: z.ZodOptional>>; last_refresh_date: z.ZodOptional>>; }, z.core.$strip>>>; }, z.core.$strip>; export type FbiNibrsTotals = z.infer; /** * `GET /{hate-crime|arrest}/{scope}/{selector}?type=counts`: one month series per * `{Entity} {Series}` key (hate crime `Incidents` and `Offenses`, arrest `Arrests`), then MM-YYYY * keys in string order, beside the `/summarized` populations and coverage tooltip. `actuals` names * only the scoped entity and is null when CDE does not recognize the state or ORI; `rates`, * `populations`, and the tooltip also name comparison entities. A rate of -1 marks a month with no * participating population. NIBRS nests the same series under `offenses`, the `/summarized` * shape, and the service lifts them to this one. */ export declare const FbiMonthlyCountsSchema: z.ZodObject<{ populations: z.ZodOptional>>>>>; participated_population: z.ZodOptional>>>>>; }, z.core.$strip>>>; tooltips: z.ZodOptional>>>>>; }, z.core.$strip>>>; cde_properties: z.ZodOptional>; last_refresh_date: z.ZodOptional>; }, z.core.$strip>>>; rates: z.ZodOptional>>>>>; actuals: z.ZodNullable>>>>; }, z.core.$strip>; export type FbiMonthlyCounts = z.infer; /** * One agency in the CDE state directory. Every captured record carries these fields; * `nibrs_start_date` is null exactly when `is_nibrs` is false. Coordinates and the * per-state constants (`state_abbr`, `state_name`) are dropped. */ export declare const FbiDirectoryAgencySchema: z.ZodObject<{ ori: z.ZodString; agency_name: z.ZodString; agency_type_name: z.ZodString; counties: z.ZodString; is_nibrs: z.ZodBoolean; nibrs_start_date: z.ZodOptional>; }, z.core.$strip>; export type FbiDirectoryAgency = z.infer; /** * `GET /agency/byStateAbbr/{STATE}` answers HTTP 200 in two shapes: agencies grouped * under county-string keys (a multi-county agency appears once, under its combined key), * or, for a code CDE has no directory for (including any lowercase code), an envelope * whose `counties` is null. */ export declare const FbiAgencyDirectoryResponseSchema: z.ZodUnion; }, z.core.$strip>, z.ZodRecord>; }, z.core.$strip>>>]>; /** Scope and inclusive whole-year window for an annual CDE series such as `GET /pe`. */ export type CdeYearWindow = CdeScope & { fromYear: number; toYear: number; }; /** * `GET /pe`, `/pe/{STATE}` and `/pe/agency/{ORI}` (Law Enforcement Employees): one year-keyed * series per measure, no totals. Coverage is keyed by the one entity a state or national response * names (`Washington`, `United States`); agency scope sends `tooltips: null`, and an unknown state * a null coverage entry. An unknown identifier or a year CDE has not published returns the same * shape with every value null; a reversed window nulls the sections. */ export declare const FbiPoliceEmployeesSchema: z.ZodObject<{ rates: z.ZodNullable>; }, z.core.$strip>>; actuals: z.ZodNullable>; 'Female Officers': z.ZodRecord>; 'Male Civilians': z.ZodRecord>; 'Female Civilians': z.ZodRecord>; }, z.core.$strip>>; tooltips: z.ZodNullable>>>; }, z.core.$strip>>; populations: z.ZodNullable>; }, z.core.$strip>>; cde_properties: z.ZodOptional>>; last_refresh_date: z.ZodOptional>>; }, z.core.$strip>>>; }, z.core.$strip>; export type FbiPoliceEmployees = z.infer; //# sourceMappingURL=types.d.ts.map