> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nlbs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get analysis graph

> Grafo de relacionamentos da contraparte (nós, arestas e caminhos relevantes) usado na análise. Uso: exibição/investigação visual.



## OpenAPI

````yaml https://api.qa.nlbs.ai/api/openapi.json get /analyses/{analysis_uuid}/graph
openapi: 3.1.0
info:
  description: >-
    NL Labs AI AML API. Use Bearer API keys for protected endpoints. The /live
    and /ready probes are public.
  title: NL Labs AI
  version: 0.1.0
servers:
  - url: https://api.qa.nlbs.ai/api
security:
  - ApiKeyAuth: []
tags:
  - description: Runtime health checks and source freshness endpoints.
    name: health
  - description: Canonical entity lookup endpoints used before starting analyses.
    name: entities
  - description: AML analysis creation, status, result, and debug endpoints.
    name: analyses
  - description: Regulatory report (Motor 2) creation, status, result, and debug endpoints.
    name: reports
  - description: Versioned deterministic rules catalog endpoints.
    name: rules
  - description: Versioned regulatory reference catalog endpoints.
    name: regulatory
  - description: Webhook endpoint configuration and delivery-event operations.
    name: webhooks
paths:
  /analyses/{analysis_uuid}/graph:
    get:
      tags:
        - analyses
      summary: Get analysis graph
      description: >-
        Grafo de relacionamentos da contraparte (nós, arestas e caminhos
        relevantes) usado na análise. Uso: exibição/investigação visual.
      operationId: get_analysis_graph
      parameters:
        - description: UUID da execução da análise.
          in: path
          name: analysis_uuid
          required: true
          schema:
            description: UUID da execução da análise.
            format: uuid
            title: Analysis Uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisGraphResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, expired, or invalid Bearer API key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The authenticated API key does not have the required scope.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Analysis was not found.
        '422':
          description: >-
            Invalid request body, path parameter, query parameter, or business
            rule.
      security:
        - HTTPBearer: []
components:
  schemas:
    AnalysisGraphResponse:
      properties:
        graph:
          anyOf:
            - $ref: '#/components/schemas/AnalysisGraph'
            - type: 'null'
          description: Grafo (nós, arestas, caminhos). Nulo se a análise não gerou grafo.
        signal_graph_index:
          description: Índice de sinais associados a cada elemento do grafo.
          items:
            $ref: '#/components/schemas/SignalGraphIndex'
          title: Signal Graph Index
          type: array
      required:
        - graph
      title: AnalysisGraphResponse
      type: object
      description: >-
        Grafo de relacionamentos da contraparte, com índice opcional de sinais
        por elemento do grafo.
    ErrorResponse:
      properties:
        detail:
          description: Stable public error message.
          examples:
            - Resource not found.
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    AnalysisGraph:
      additionalProperties: false
      description: Graph slice included in an analysis result.
      properties:
        edges:
          items:
            $ref: '#/components/schemas/GraphEdge'
          title: Edges
          type: array
        limitations:
          items:
            $ref: '#/components/schemas/AnalysisLimitation'
          title: Limitations
          type: array
        nodes:
          items:
            $ref: '#/components/schemas/GraphNode'
          title: Nodes
          type: array
        paths:
          items:
            $ref: '#/components/schemas/GraphPath'
          title: Paths
          type: array
        root_entity_id:
          exclusiveMinimum: 0
          title: Root Entity Id
          type: integer
        truncated:
          default: false
          title: Truncated
          type: boolean
      required:
        - root_entity_id
      title: AnalysisGraph
      type: object
      x-graph-edge-types:
        - domain: entities
          projection_schema:
            module: nllabs_ai.graph.schemas.entities
            name: EntityRelationshipProjection
          relationship_type: RELATED_TO
          source_label: Entity
          target_label: Entity
        - domain: corporate
          projection_schema:
            module: nllabs_ai.graph.schemas.corporate
            name: BranchOfProjection
          relationship_type: BRANCH_OF
          source_label: Entity
          target_label: Entity
        - domain: corporate
          projection_schema:
            module: nllabs_ai.graph.schemas.corporate
            name: CorporateOwnershipProjection
          relationship_type: OWNS_OR_PARTICIPATES_IN
          source_label: Entity
          target_label: Entity
        - domain: corporate
          projection_schema:
            module: nllabs_ai.graph.schemas.corporate
            name: BeneficialOwnershipProjection
          relationship_type: CONTROLS_OR_BENEFITS_FROM
          source_label: Entity
          target_label: Entity
        - domain: corporate
          projection_schema:
            module: nllabs_ai.graph.schemas.corporate
            name: EconomicGroupMembershipProjection
          relationship_type: BELONGS_TO_ECONOMIC_GROUP
          source_label: Entity
          target_label: EconomicGroup
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.owns_account
            name: OwnsAccountProjection
          relationship_type: OWNS_ACCOUNT
          source_label: Entity
          target_label: FinancialAccount
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.account_at_institution
            name: AccountAtInstitutionProjection
          relationship_type: ACCOUNT_AT_INSTITUTION
          source_label: FinancialAccount
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.has_financial_relationship_with
            name: HasFinancialRelationshipWithProjection
          relationship_type: HAS_FINANCIAL_RELATIONSHIP_WITH
          source_label: Entity
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.transacted_with
            name: TransactedWithAggregateProjection
          relationship_type: TRANSACTED_WITH
          source_label: Entity
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.borrowed_from
            name: BorrowedFromProjection
          relationship_type: BORROWED_FROM
          source_label: Entity
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.guaranteed_by
            name: GuaranteedByProjection
          relationship_type: GUARANTEED_BY
          source_label: Entity
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.paid_public_funds_to
            name: PaidPublicFundsToAggregateProjection
          relationship_type: PAID_PUBLIC_FUNDS_TO
          source_label: Entity
          target_label: Entity
        - domain: financial
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.electoral_financial_flow
            name: ElectoralFinancialFlowAggregateProjection
          relationship_type: ELECTORAL_FINANCIAL_FLOW
          source_label: Entity
          target_label: Entity
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.party_in_case
            name: PartyInCaseProjection
          relationship_type: PARTY_IN_CASE
          source_label: Entity
          target_label: LegalCase
        - domain: legal
          relationship_type: CASE_HAS_SUBJECT
        - domain: legal
          relationship_type: CASE_HAS_CLASS
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.case_has_decision
            name: CaseHasDecisionProjection
          relationship_type: CASE_HAS_DECISION
          source_label: LegalCase
          target_label: LegalDecision
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.target_of_warrant
            name: TargetOfWarrantProjection
          relationship_type: TARGET_OF_WARRANT
          source_label: Entity
          target_label: Warrant
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.warrant_in_case
            name: WarrantInCaseProjection
          relationship_type: WARRANT_IN_CASE
          source_label: Warrant
          target_label: LegalCase
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.convicted_in
            name: ConvictedInProjection
          relationship_type: CONVICTED_IN
          source_label: Entity
          target_label: Conviction
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.conviction_in_case
            name: ConvictionInCaseProjection
          relationship_type: CONVICTION_IN_CASE
          source_label: Conviction
          target_label: LegalCase
        - domain: legal
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.conviction_from_decision
            name: ConvictionFromDecisionProjection
          relationship_type: CONVICTION_FROM_DECISION
          source_label: Conviction
          target_label: LegalDecision
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.sanctioned_in
            name: SanctionedInProjection
          relationship_type: SANCTIONED_IN
          source_label: Entity
          target_label: Sanction
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.sanction_from_proceeding
            name: SanctionFromProceedingProjection
          relationship_type: SANCTION_FROM_PROCEEDING
          source_label: Sanction
          target_label: AdministrativeProceeding
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.subject_of_proceeding
            name: SubjectOfProceedingProjection
          relationship_type: SUBJECT_OF_PROCEEDING
          source_label: Entity
          target_label: AdministrativeProceeding
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.subject_of_regulatory_alert
            name: SubjectOfRegulatoryAlertProjection
          relationship_type: SUBJECT_OF_REGULATORY_ALERT
          source_label: Entity
          target_label: RegulatoryAlert
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.has_restriction
            name: HasRestrictionProjection
          relationship_type: HAS_RESTRICTION
          source_label: Entity
          target_label: Restriction
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.restriction_from_sanction
            name: RestrictionFromSanctionProjection
          relationship_type: RESTRICTION_FROM_SANCTION
          source_label: Restriction
          target_label: Sanction
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.restriction_from_alert
            name: RestrictionFromAlertProjection
          relationship_type: RESTRICTION_FROM_ALERT
          source_label: Restriction
          target_label: RegulatoryAlert
        - domain: sanctions
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.restriction_from_proceeding
            name: RestrictionFromProceedingProjection
          relationship_type: RESTRICTION_FROM_PROCEEDING
          source_label: Restriction
          target_label: AdministrativeProceeding
        - domain: watchlists
          projection_schema:
            module: nllabs_ai.graph.schemas.watchlists.listed_in_watchlist
            name: ListedInProjection
          relationship_type: LISTED_IN_WATCHLIST
          source_label: Entity
          target_label: WatchlistProgram
        - domain: political
          projection_schema:
            module: nllabs_ai.graph.schemas.political.ran_in_election
            name: RanInElectionProjection
          relationship_type: RAN_IN_ELECTION
          source_label: Entity
          target_label: Candidacy
        - domain: political
          projection_schema:
            module: nllabs_ai.graph.schemas.political.candidacy_by_party
            name: CandidacyByPartyProjection
          relationship_type: CANDIDACY_BY_PARTY
          source_label: Candidacy
          target_label: Entity
        - domain: political
          projection_schema:
            module: nllabs_ai.graph.schemas.political.holds_mandate
            name: HoldsMandateProjection
          relationship_type: HOLDS_MANDATE
          source_label: Entity
          target_label: Mandate
        - domain: political
          projection_schema:
            module: nllabs_ai.graph.schemas.political.mandate_by_party
            name: MandateByPartyProjection
          relationship_type: MANDATE_BY_PARTY
          source_label: Mandate
          target_label: Entity
        - domain: political
          projection_schema:
            module: nllabs_ai.graph.schemas.political.affiliated_to_party
            name: AffiliatedToPartyProjection
          relationship_type: AFFILIATED_TO_PARTY
          source_label: Entity
          target_label: Entity
        - domain: political
          projection_schema:
            module: >-
              nllabs_ai.graph.schemas.political.entered_private_activity_during_quarantine
            name: EnteredPrivateActivityDuringQuarantineProjection
          relationship_type: ENTERED_PRIVATE_ACTIVITY_DURING_QUARANTINE
          source_label: Entity
          target_label: Entity
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.declared_asset
            name: DeclaredAssetProjection
          relationship_type: DECLARED_ASSET
          source_label: Entity
          target_label: Asset
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.owns_asset
            name: OwnsAssetProjection
          relationship_type: OWNS_ASSET
          source_label: Entity
          target_label: Asset
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.notarial_act_party
            name: NotarialActPartyProjection
          relationship_type: NOTARIAL_ACT_PARTY
          source_label: Entity
          target_label: NotarialAct
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.notarial_act_related_to_asset
            name: NotarialActRelatedToAssetProjection
          relationship_type: NOTARIAL_ACT_RELATED_TO_ASSET
          source_label: NotarialAct
          target_label: Asset
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.debtor_in_protest
            name: DebtorInProtestProjection
          relationship_type: DEBTOR_IN_PROTEST
          source_label: Entity
          target_label: ProtestRecord
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.creditor_in_protest
            name: CreditorInProtestProjection
          relationship_type: CREDITOR_IN_PROTEST
          source_label: Entity
          target_label: ProtestRecord
        - domain: assets
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.civil_event_participant
            name: CivilEventParticipantProjection
          relationship_type: CIVIL_EVENT_PARTICIPANT
          source_label: Entity
          target_label: CivilRegistryEvent
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.published_by
            name: PublishedByProjection
          relationship_type: PUBLISHED_BY
          source_label: OfficialPublication
          target_label: Entity
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.mentioned_in_publication
            name: MentionedInPublicationProjection
          relationship_type: MENTIONED_IN_PUBLICATION
          source_label: Entity
          target_label: OfficialPublication
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.condemned_in
            name: CondemnedInProjection
          relationship_type: CONDEMNED_IN
          source_label: Entity
          target_label: OfficialPublication
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.subject_of_enforcement
            name: SubjectOfEnforcementProjection
          relationship_type: SUBJECT_OF_ENFORCEMENT
          source_label: Entity
          target_label: OfficialPublication
        - domain: publications
          relationship_type: INTENDED_CONTROL
          source_label: Entity
          target_label: OfficialPublication
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.involved_in_adverse_media
            name: InvolvedInAdverseMediaProjection
          relationship_type: INVOLVED_IN_ADVERSE_MEDIA
          source_label: Entity
          target_label: AdverseMediaEvent
        - domain: publications
          projection_schema:
            module: >-
              nllabs_ai.graph.schemas.publications.publication_has_extracted_fact
            name: PublicationHasExtractedFactProjection
          relationship_type: PUBLICATION_HAS_EXTRACTED_FACT
          source_label: OfficialPublication
          target_label: PublicationExtractedFact
        - domain: publications
          projection_schema:
            module: >-
              nllabs_ai.graph.schemas.publications.adverse_media_has_extracted_fact
            name: AdverseMediaHasExtractedFactProjection
          relationship_type: ADVERSE_MEDIA_HAS_EXTRACTED_FACT
          source_label: AdverseMediaEvent
          target_label: PublicationExtractedFact
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.fact_subject
            name: FactSubjectProjection
          relationship_type: FACT_SUBJECT
          source_label: PublicationExtractedFact
          target_label: Entity
        - domain: publications
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.fact_object
            name: FactObjectProjection
          relationship_type: FACT_OBJECT
          source_label: PublicationExtractedFact
          target_label: Entity
      x-graph-node-types:
        - domain: entities
          label: Entity
          projection_schema:
            module: nllabs_ai.graph.schemas.entities
            name: EntityProjection
        - domain: corporate
          label: EconomicGroup
          projection_schema:
            module: nllabs_ai.graph.schemas.corporate
            name: EconomicGroupProjection
        - domain: financial
          label: FinancialAccount
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.financial_account
            name: FinancialAccountProjection
        - domain: financial
          label: CreditOperation
          projection_schema:
            module: nllabs_ai.graph.schemas.financial.credit_operation
            name: CreditOperationProjection
        - domain: legal
          label: LegalCase
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.legal_case
            name: LegalCaseProjection
        - domain: legal
          label: LegalDecision
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.legal_decision
            name: LegalDecisionProjection
        - domain: legal
          label: Warrant
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.warrant
            name: WarrantProjection
        - domain: legal
          label: Conviction
          projection_schema:
            module: nllabs_ai.graph.schemas.legal.conviction
            name: ConvictionProjection
        - domain: sanctions
          label: Sanction
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.sanction
            name: SanctionProjection
        - domain: sanctions
          label: AdministrativeProceeding
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.administrative_proceeding
            name: AdministrativeProceedingProjection
        - domain: sanctions
          label: RegulatoryAlert
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.regulatory_alert
            name: RegulatoryAlertProjection
        - domain: sanctions
          label: Restriction
          projection_schema:
            module: nllabs_ai.graph.schemas.sanctions.restriction
            name: RestrictionProjection
        - domain: watchlists
          label: WatchlistProgram
          projection_schema:
            module: nllabs_ai.graph.schemas.watchlists.watchlist_program
            name: WatchlistProgramProjection
        - domain: political
          label: Candidacy
          projection_schema:
            module: nllabs_ai.graph.schemas.political.candidacy
            name: CandidacyProjection
        - domain: political
          label: Mandate
          projection_schema:
            module: nllabs_ai.graph.schemas.political.mandate
            name: MandateProjection
        - domain: assets
          label: Asset
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.asset
            name: AssetProjection
        - domain: assets
          label: NotarialAct
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.notarial_act
            name: NotarialActProjection
        - domain: assets
          label: ProtestRecord
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.protest_record
            name: ProtestRecordProjection
        - domain: assets
          label: CivilRegistryEvent
          projection_schema:
            module: nllabs_ai.graph.schemas.assets.civil_registry_event
            name: CivilRegistryEventProjection
        - domain: publications
          label: OfficialPublication
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.official_publication
            name: OfficialPublicationProjection
        - domain: publications
          label: AdverseMediaEvent
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.adverse_media_event
            name: AdverseMediaEventProjection
        - domain: publications
          label: PublicationExtractedFact
          projection_schema:
            module: nllabs_ai.graph.schemas.publications.publication_extracted_fact
            name: PublicationExtractedFactProjection
    SignalGraphIndex:
      additionalProperties: false
      description: Graph objects that should be highlighted when a signal is selected.
      properties:
        edge_keys:
          items:
            type: string
          title: Edge Keys
          type: array
        node_keys:
          items:
            type: string
          title: Node Keys
          type: array
        path_ids:
          items:
            type: string
          title: Path Ids
          type: array
        signal_code:
          minLength: 1
          title: Signal Code
          type: string
      required:
        - signal_code
      title: SignalGraphIndex
      type: object
    GraphEdge:
      additionalProperties: true
      properties:
        canonical_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Canonical Id
        canonical_table:
          anyOf:
            - type: string
            - type: 'null'
          title: Canonical Table
        confidence_level:
          anyOf:
            - type: string
            - type: 'null'
          title: Confidence Level
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        evidence_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Evidence Count
        evidence_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Evidence Id
        evidence_table:
          anyOf:
            - type: string
            - type: 'null'
          title: Evidence Table
        is_active:
          default: true
          title: Is Active
          type: boolean
        is_inferred:
          default: false
          title: Is Inferred
          type: boolean
        projection_key:
          title: Projection Key
          type: string
        relationship_role:
          anyOf:
            - type: string
            - type: 'null'
          title: Relationship Role
        relationship_subtype:
          anyOf:
            - type: string
            - type: 'null'
          title: Relationship Subtype
        relationship_type:
          $ref: '#/components/schemas/GraphRelationshipType'
        risk_level:
          anyOf:
            - type: string
            - type: 'null'
          title: Risk Level
        risk_weight:
          anyOf:
            - type: number
            - type: 'null'
          title: Risk Weight
        source_canonical_id:
          title: Source Canonical Id
          type: integer
        source_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Id
        source_label:
          $ref: '#/components/schemas/GraphNodeLabel'
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        target_canonical_id:
          title: Target Canonical Id
          type: integer
        target_label:
          $ref: '#/components/schemas/GraphNodeLabel'
        valid_from:
          anyOf:
            - format: date
              type: string
            - format: date-time
              type: string
            - type: 'null'
          title: Valid From
        valid_to:
          anyOf:
            - format: date
              type: string
            - format: date-time
              type: string
            - type: 'null'
          title: Valid To
      required:
        - relationship_type
        - source_label
        - source_canonical_id
        - target_label
        - target_canonical_id
        - projection_key
      title: GraphEdge
      type: object
    AnalysisLimitation:
      additionalProperties: false
      description: >-
        Structured description of missing, partial, or constrained analysis
        data.
      properties:
        code:
          minLength: 1
          pattern: ^[a-z][a-z0-9_]*$
          title: Code
          type: string
        details:
          additionalProperties: true
          title: Details
          type: object
        entity_id:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          title: Entity Id
        message:
          minLength: 1
          title: Message
          type: string
      required:
        - code
        - message
      title: AnalysisLimitation
      type: object
    GraphNode:
      additionalProperties: true
      properties:
        canonical_id:
          title: Canonical Id
          type: integer
        canonical_table:
          title: Canonical Table
          type: string
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        is_active:
          default: true
          title: Is Active
          type: boolean
        is_inferred:
          default: false
          title: Is Inferred
          type: boolean
        label:
          $ref: '#/components/schemas/GraphNodeLabel'
        risk_level:
          anyOf:
            - type: string
            - type: 'null'
          title: Risk Level
        risk_weight:
          anyOf:
            - type: number
            - type: 'null'
          title: Risk Weight
        source_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Id
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        valid_from:
          anyOf:
            - format: date
              type: string
            - format: date-time
              type: string
            - type: 'null'
          title: Valid From
        valid_to:
          anyOf:
            - format: date
              type: string
            - format: date-time
              type: string
            - type: 'null'
          title: Valid To
      required:
        - label
        - canonical_id
        - canonical_table
      title: GraphNode
      type: object
    GraphPath:
      additionalProperties: false
      description: >-
        Validated path between the analysis subject and any navigable graph
        node.
      properties:
        contains_cycle:
          default: false
          title: Contains Cycle
          type: boolean
        depth:
          minimum: 0
          title: Depth
          type: integer
        direction:
          anyOf:
            - $ref: '#/components/schemas/GraphPathDirection'
            - type: 'null'
        edge_keys:
          items:
            type: string
          title: Edge Keys
          type: array
        equivalent_path_count:
          default: 1
          minimum: 1
          title: Equivalent Path Count
          type: integer
        node_keys:
          items:
            $ref: '#/components/schemas/GraphElementKey'
          title: Node Keys
          type: array
        path_id:
          default: ''
          minLength: 0
          title: Path Id
          type: string
        root_node_key:
          $ref: '#/components/schemas/GraphElementKey'
        target_node_key:
          $ref: '#/components/schemas/GraphElementKey'
        truncated:
          default: false
          title: Truncated
          type: boolean
      required:
        - root_node_key
        - target_node_key
        - depth
      title: GraphPath
      type: object
    GraphRelationshipType:
      enum:
        - RELATED_TO
        - BRANCH_OF
        - OWNS_OR_PARTICIPATES_IN
        - CONTROLS_OR_BENEFITS_FROM
        - BELONGS_TO_ECONOMIC_GROUP
        - OWNS_ACCOUNT
        - ACCOUNT_AT_INSTITUTION
        - HAS_FINANCIAL_RELATIONSHIP_WITH
        - TRANSACTED_WITH
        - BORROWED_FROM
        - GUARANTEED_BY
        - PAID_PUBLIC_FUNDS_TO
        - ELECTORAL_FINANCIAL_FLOW
        - PARTY_IN_CASE
        - CASE_HAS_SUBJECT
        - CASE_HAS_CLASS
        - CASE_HAS_DECISION
        - TARGET_OF_WARRANT
        - WARRANT_IN_CASE
        - CONVICTED_IN
        - CONVICTION_IN_CASE
        - CONVICTION_FROM_DECISION
        - SANCTIONED_IN
        - SANCTION_FROM_PROCEEDING
        - SUBJECT_OF_PROCEEDING
        - SUBJECT_OF_REGULATORY_ALERT
        - HAS_RESTRICTION
        - RESTRICTION_FROM_SANCTION
        - RESTRICTION_FROM_ALERT
        - RESTRICTION_FROM_PROCEEDING
        - LISTED_IN_WATCHLIST
        - RAN_IN_ELECTION
        - CANDIDACY_BY_PARTY
        - HOLDS_MANDATE
        - MANDATE_BY_PARTY
        - AFFILIATED_TO_PARTY
        - ENTERED_PRIVATE_ACTIVITY_DURING_QUARANTINE
        - DECLARED_ASSET
        - OWNS_ASSET
        - NOTARIAL_ACT_PARTY
        - NOTARIAL_ACT_RELATED_TO_ASSET
        - DEBTOR_IN_PROTEST
        - CREDITOR_IN_PROTEST
        - CIVIL_EVENT_PARTICIPANT
        - PUBLISHED_BY
        - MENTIONED_IN_PUBLICATION
        - CONDEMNED_IN
        - SUBJECT_OF_ENFORCEMENT
        - INTENDED_CONTROL
        - INVOLVED_IN_ADVERSE_MEDIA
        - PUBLICATION_HAS_EXTRACTED_FACT
        - ADVERSE_MEDIA_HAS_EXTRACTED_FACT
        - FACT_SUBJECT
        - FACT_OBJECT
      title: GraphRelationshipType
      type: string
    GraphNodeLabel:
      enum:
        - Entity
        - EconomicGroup
        - FinancialAccount
        - CreditOperation
        - LegalCase
        - LegalDecision
        - Warrant
        - Conviction
        - Sanction
        - AdministrativeProceeding
        - RegulatoryAlert
        - Restriction
        - WatchlistProgram
        - Candidacy
        - Mandate
        - Asset
        - NotarialAct
        - ProtestRecord
        - CivilRegistryEvent
        - OfficialPublication
        - AdverseMediaEvent
        - PublicationExtractedFact
      title: GraphNodeLabel
      type: string
    GraphPathDirection:
      description: Direction of graph edge traversal along the ordered path nodes.
      enum:
        - self
        - outbound
        - inbound
        - mixed
      title: GraphPathDirection
      type: string
    GraphElementKey:
      additionalProperties: false
      description: Stable identifier for one graph element addressable in analysis paths.
      properties:
        canonical_id:
          exclusiveMinimum: 0
          title: Canonical Id
          type: integer
        label:
          $ref: '#/components/schemas/GraphNodeLabel'
      required:
        - label
        - canonical_id
      title: GraphElementKey
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````