changedOutput schema / properties / data / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "description": "Dated manufacturing and compliance events for a company family, newest first, with freshness and matching limits. Dates are YYYY-MM-DD",
- "properties": {
- "company_resolution": {
- "additionalProperties": {},
- "description": "Which company family the summary covers and how it was matched",
- "properties": {
- "aliases": {
- "description": "Alias list; empty unless verbose=true",
- "items": {},
- "type": "array"
- },
- "company_id": {
- "description": "Resolved family ID; counts cover this whole family",
- "type": "string"
- },
- "confidence": {
- "description": "Resolution confidence from 0 to 1",
- "type": "number"
- },
- "input_company": {
- "description": "Company name as asked",
- "type": "string"
- },
- "input_normalized": {
- "type": "string"
- },
- "matched_family_member": {
- "additionalProperties": {},
- "description": "The linked family member the input names",
- "properties": {
- "child_company_id": {
- "type": "string"
- },
- "relationship_type": {
- "description": "Relationship to the parent",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "description": "Where the relationship comes from",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "child_company_id"
- ],
- "type": "object"
- },
- "resolved_via": {
- "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
- "type": "string"
- },
- "scope_note": {
- "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
- "type": "string"
- }
- },
- "required": [
- "company_id",
- "input_company",
- "input_normalized",
- "resolved_via",
- "confidence",
- "aliases"
- ],
- "type": "object"
- },
- "coverage": {
- "description": "complete, low_confidence, no_alias_pack or possible_split",
- "type": "string"
- },
- "data_freshness": {
- "additionalProperties": {
- "additionalProperties": {},
- "properties": {
- "as_of_date": {
- "type": "string"
- },
- "executed_at": {
- "type": "string"
- }
- },
- "required": [
- "executed_at",
- "as_of_date"
- ],
- "type": "object"
- },
- "description": "Per-dataset freshness; only when verbose=true",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "family_context": {
- "additionalProperties": {},
- "description": "Linked family members included in the counts",
- "properties": {
- "child_company_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "family_members": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "alias_count": {
- "description": "Aliases for this member (alias lists only when verbose=true)",
- "type": "number"
- },
- "child_company_id": {
- "type": "string"
- },
- "relationship_type": {
- "description": "subsidiary, division or another relationship",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "child_company_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "fuzzy_expanded_names": {
- "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "note": {
- "type": "string"
- },
- "search_name_count": {
- "type": "number"
- }
- },
- "required": [
- "child_company_ids",
- "family_members"
- ],
- "type": "object"
- },
- "former_subsidiaries": {
- "additionalProperties": {},
- "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
- "properties": {
- "counted_in_parent_totals": {
- "const": false,
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "counted_in_parent_totals",
- "note",
- "results"
- ],
- "type": "object"
- },
- "freshness_summary": {
- "additionalProperties": {},
- "description": "Dataset freshness; state it in answers",
- "properties": {
- "covered_dataset_count": {
- "type": "number"
- },
- "expected_dataset_count": {
- "type": "number"
- },
- "freshest_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "missing_dataset_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "newest_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "older_datasets": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "as_of_date": {
- "type": "string"
- },
- "dataset_id": {
- "type": "string"
- }
- },
- "required": [
- "dataset_id",
- "as_of_date"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "oldest_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "stalest_as_of_date": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "covered_dataset_count",
- "expected_dataset_count",
- "older_datasets",
- "missing_dataset_ids"
- ],
- "type": "object"
- },
- "matching_notes": {
- "description": "How names were matched",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "near_name_candidates": {
- "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- },
- "near_name_note": {
- "type": "string"
- },
- "newest_as_of": {
- "description": "Newest source date (default compact freshness)",
- "type": [
- "string",
- "null"
- ]
- },
- "next_step": {
- "additionalProperties": {},
- "description": "Present when nothing matched",
- "properties": {
- "call": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "tool",
- "reason",
- "call"
- ],
- "type": "object"
- },
- "no_records_note": {
- "description": "Present when nothing matched: no matching records does not establish safety",
- "type": "string"
- },
- "notable_gaps": {
- "description": "Missing data, matching limits and stale sources; state these",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "notices": {
- "description": "Account notices about this key, such as a low balance; show them to the user",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "possible_split_with": {
- "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recommend_subsidiary_search": {
- "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
- "type": "boolean"
- },
- "recommended_follow_ups": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "reason": {
- "description": "Why the follow-up matters",
- "type": "string"
- },
- "tool": {
- "description": "Tool to call next",
- "type": "string"
- }
- },
- "required": [
- "tool",
- "reason"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "regdatalab_page": {
- "additionalProperties": {},
- "description": "The RegDataLab page for this company or site, for the reader to open, share or bookmark; give it next to the fda.gov sources, never in place of them",
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "title",
- "url"
- ],
- "type": "object"
- },
- "source_counts": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "Events per source type",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "sources": {
- "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
- "items": {
- "additionalProperties": {},
- "properties": {
- "title": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "title",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "timeline": {
- "description": "Dated events, newest first",
- "items": {
- "additionalProperties": {},
- "properties": {
- "event_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "event_url": {
- "description": "Source link when one exists; cite it",
- "type": [
- "string",
- "null"
- ]
- },
- "fei_number": {
- "type": [
- "string",
- "null"
- ]
- },
- "headline": {
- "type": [
- "string",
- "null"
- ]
- },
- "source_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "source_type": {
- "description": "inspection, warning_letter, import_alert, recall and other source types",
- "type": "string"
- }
- },
- "required": [
- "source_type"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "unresolved_entities": {
- "additionalProperties": {},
- "description": "Related entities with no recorded ownership change; not in the totals above",
- "properties": {
- "counted_in_parent_totals": {
- "const": false,
- "type": "boolean"
- },
- "note": {
- "type": "string"
- },
- "results": {
- "items": {
- "additionalProperties": {},
- "properties": {},
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "counted_in_parent_totals",
- "note",
- "results"
- ],
- "type": "object"
- }
- },
- "required": [
- "company_resolution",
- "coverage",
- "recommend_subsidiary_search",
- "matching_notes",
- "family_context",
- "freshness_summary",
- "source_counts",
- "timeline",
- "recommended_follow_ups",
- "notable_gaps"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "description": "Returned instead of records when the session has no API key: how to sign up and connect",
- "properties": {
- "attempted_tool": {
- "type": "string"
- },
- "auth_required": {
- "const": true,
- "type": "boolean"
- },
- "message": {
- "type": "string"
- },
- "signup_url": {
- "type": "string"
- }
- },
- "required": [
- "auth_required",
- "attempted_tool",
- "message",
- "signup_url"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "description": "Dated manufacturing and compliance events for a company family, newest first, with freshness and matching limits. Dates are YYYY-MM-DD",
+ "properties": {
+ "company_resolution": {
+ "additionalProperties": {},
+ "description": "Which company family the summary covers and how it was matched",
+ "properties": {
+ "aliases": {
+ "description": "Alias list; empty unless verbose=true",
+ "items": {},
+ "type": "array"
+ },
+ "company_id": {
+ "description": "Resolved family ID; counts cover this whole family",
+ "type": "string"
+ },
+ "confidence": {
+ "description": "Resolution confidence from 0 to 1",
+ "type": "number"
+ },
+ "input_company": {
+ "description": "Company name as asked",
+ "type": "string"
+ },
+ "input_normalized": {
+ "type": "string"
+ },
+ "matched_family_member": {
+ "additionalProperties": {},
+ "description": "The linked family member the input names",
+ "properties": {
+ "child_company_id": {
+ "type": "string"
+ },
+ "relationship_type": {
+ "description": "Relationship to the parent",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "description": "Where the relationship comes from",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "child_company_id"
+ ],
+ "type": "object"
+ },
+ "resolved_via": {
+ "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
+ "type": "string"
+ },
+ "scope_note": {
+ "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
+ "type": "string"
+ }
+ },
+ "required": [
+ "company_id",
+ "input_company",
+ "input_normalized",
+ "resolved_via",
+ "confidence",
+ "aliases"
+ ],
+ "type": "object"
+ },
+ "coverage": {
+ "description": "complete, low_confidence, no_alias_pack or possible_split",
+ "type": "string"
+ },
+ "data_freshness": {
+ "additionalProperties": {
+ "additionalProperties": {},
+ "properties": {
+ "as_of_date": {
+ "type": "string"
+ },
+ "executed_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "executed_at",
+ "as_of_date"
+ ],
+ "type": "object"
+ },
+ "description": "Per-dataset freshness; only when verbose=true",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "family_context": {
+ "additionalProperties": {},
+ "description": "Linked family members included in the counts",
+ "properties": {
+ "child_company_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "family_members": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "alias_count": {
+ "description": "Aliases for this member (alias lists only when verbose=true)",
+ "type": "number"
+ },
+ "child_company_id": {
+ "type": "string"
+ },
+ "relationship_type": {
+ "description": "subsidiary, division or another relationship",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "child_company_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fuzzy_expanded_names": {
+ "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "note": {
+ "type": "string"
+ },
+ "search_name_count": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "child_company_ids",
+ "family_members"
+ ],
+ "type": "object"
+ },
+ "former_subsidiaries": {
+ "additionalProperties": {},
+ "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
+ "properties": {
+ "counted_in_parent_totals": {
+ "const": false,
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "counted_in_parent_totals",
+ "note",
+ "results"
+ ],
+ "type": "object"
+ },
+ "freshness_summary": {
+ "additionalProperties": {},
+ "description": "Dataset freshness; state it in answers",
+ "properties": {
+ "covered_dataset_count": {
+ "type": "number"
+ },
+ "expected_dataset_count": {
+ "type": "number"
+ },
+ "freshest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "missing_dataset_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "newest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "older_datasets": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "as_of_date": {
+ "type": "string"
+ },
+ "dataset_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "dataset_id",
+ "as_of_date"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "oldest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "stalest_as_of_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "covered_dataset_count",
+ "expected_dataset_count",
+ "older_datasets",
+ "missing_dataset_ids"
+ ],
+ "type": "object"
+ },
+ "matching_notes": {
+ "description": "How names were matched",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "near_name_candidates": {
+ "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "near_name_note": {
+ "type": "string"
+ },
+ "newest_as_of": {
+ "description": "Newest source date (default compact freshness)",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "next_step": {
+ "additionalProperties": {},
+ "description": "Present when nothing matched",
+ "properties": {
+ "call": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "reason",
+ "call"
+ ],
+ "type": "object"
+ },
+ "no_records_note": {
+ "description": "Present when nothing matched: no matching records does not establish safety",
+ "type": "string"
+ },
+ "notable_gaps": {
+ "description": "Missing data, matching limits and stale sources; state these",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "notices": {
+ "description": "Account notices about this key, such as a low balance; show them to the user",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "possible_split_with": {
+ "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recommend_subsidiary_search": {
+ "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
+ "type": "boolean"
+ },
+ "recommended_follow_ups": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "reason": {
+ "description": "Why the follow-up matters",
+ "type": "string"
+ },
+ "tool": {
+ "description": "Tool to call next",
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "regdatalab_page": {
+ "additionalProperties": {},
+ "description": "The RegDataLab page for this company or site, for the reader to open, share or bookmark; give it next to the fda.gov sources, never in place of them",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "url"
+ ],
+ "type": "object"
+ },
+ "source_counts": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "Events per source type",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "sources": {
+ "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "timeline": {
+ "description": "Dated events, newest first",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "event_date": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "event_id": {
+ "description": "Event id, set when a recall number is not assigned yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "event_url": {
+ "description": "Source link when one exists; cite it",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fei_number": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "headline": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "recall_number_note": {
+ "description": "Present when FDA has not assigned a recall number yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source_id": {
+ "description": "Record id. Null when a recall has no FDA number yet",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source_type": {
+ "description": "inspection, warning_letter, import_alert, recall and other source types",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_type"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "unresolved_entities": {
+ "additionalProperties": {},
+ "description": "Related entities with no recorded ownership change; not in the totals above",
+ "properties": {
+ "counted_in_parent_totals": {
+ "const": false,
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ },
+ "results": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {},
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "counted_in_parent_totals",
+ "note",
+ "results"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "company_resolution",
+ "coverage",
+ "recommend_subsidiary_search",
+ "matching_notes",
+ "family_context",
+ "freshness_summary",
+ "source_counts",
+ "timeline",
+ "recommended_follow_ups",
+ "notable_gaps"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "description": "Returned instead of records when the session has no API key: how to sign up and connect",
+ "properties": {
+ "attempted_tool": {
+ "type": "string"
+ },
+ "auth_required": {
+ "const": true,
+ "type": "boolean"
+ },
+ "message": {
+ "type": "string"
+ },
+ "signup_url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "auth_required",
+ "attempted_tool",
+ "message",
+ "signup_url"
+ ],
+ "type": "object"
+ }
+]