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

# A market's terms and appetite

> For one carrier and a product (the policy's product), the commission terms and the appetite that meet on product, or on type where the term or cell declares type grain, with exact counts. One join rule for terms, appetite and policies. include=classes adds the market's appetite folded into class rows: each class's verdict and bottom line (with naics, the class row it lands on takes its word and bottom line from the carrier appetite grade, served as classes.appetite_grade, with the Markets directory's guide answer for the asked class in the bottom line; a guide's not a market makes the word won't write), its lines with the carrier's word, the outcome and book record and colleagues' notes on each, the lines a class of its kind usually carries, and the carrier's conditions, grouped by source with each condition's lines (condition_groups). With class_words, classes.matched_class_ids ranks the class rows that answer the class in words. Without a product the join answers the market's whole set.



## OpenAPI

````yaml /openapi.generated.json get /records/markets/{id}/rollups/terms-and-appetite
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /records/markets/{id}/rollups/terms-and-appetite:
    get:
      tags:
        - markets
      summary: A market's terms and appetite
      description: >-
        For one carrier and a product (the policy's product), the commission
        terms and the appetite that meet on product, or on type where the term
        or cell declares type grain, with exact counts. One join rule for terms,
        appetite and policies. include=classes adds the market's appetite folded
        into class rows: each class's verdict and bottom line (with naics, the
        class row it lands on takes its word and bottom line from the carrier
        appetite grade, served as classes.appetite_grade, with the Markets
        directory's guide answer for the asked class in the bottom line; a
        guide's not a market makes the word won't write), its lines with the
        carrier's word, the outcome and book record and colleagues' notes on
        each, the lines a class of its kind usually carries, and the carrier's
        conditions, grouped by source with each condition's lines
        (condition_groups). With class_words, classes.matched_class_ids ranks
        the class rows that answer the class in words. Without a product the
        join answers the market's whole set.
      operationId: getMarketTermsAndAppetite
      parameters:
        - description: >-
            The member the read is made for (a WorkOS user id). Unset keeps the
            org-wide posture the key alone grants.
          in: header
          name: Nexio-Act-As
          schema:
            description: >-
              The member the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting member's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting member's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: The calling application (workbench).
          in: header
          name: Nexio-Consumer
          schema:
            description: The calling application (workbench).
            type: string
        - description: The calling application's build.
          in: header
          name: Nexio-Consumer-Build
          schema:
            description: The calling application's build.
            type: string
        - description: The access vocabulary hash the calling build was generated against.
          in: header
          name: Nexio-Consumer-Vocabulary
          schema:
            description: >-
              The access vocabulary hash the calling build was generated
              against.
            type: string
        - description: >-
            A caller-chosen request id, echoed in the Nexio-Request-Id response
            header.
          in: header
          name: Nexio-Request-Id
          schema:
            description: >-
              A caller-chosen request id, echoed in the Nexio-Request-Id
              response header.
            type: string
        - description: >-
            The caller's remaining budget for this request, in whole
            milliseconds (1 to 10 digits, greater than zero), relative to
            receipt. The engine stops work at the shorter of this and the
            route's own budget, and answers 504 request_timeout when it expires.
            A value above the route budget is capped to it; a malformed value is
            ignored.
          in: header
          name: Nexio-Timeout
          schema:
            description: >-
              The caller's remaining budget for this request, in whole
              milliseconds (1 to 10 digits, greater than zero), relative to
              receipt. The engine stops work at the shorter of this and the
              route's own budget, and answers 504 request_timeout when it
              expires. A value above the route budget is capped to it; a
              malformed value is ignored.
            type: string
        - description: The market's entity key (the carrier the policy is written with).
          in: path
          name: id
          required: true
          schema:
            description: The market's entity key (the carrier the policy is written with).
            type: string
        - description: >-
            Repeatable. The products to meet on (the policy's product id from
            /records/policies/{id}, an id of /records/products).
          explode: true
          in: query
          name: product
          schema:
            description: >-
              Repeatable. The products to meet on (the policy's product id from
              /records/policies/{id}, an id of /records/products).
            items:
              type: string
            type:
              - array
              - 'null'
        - description: Repeatable. The product types to meet on.
          explode: true
          in: query
          name: product_type
          schema:
            description: Repeatable. The product types to meet on.
            items:
              type: string
            type:
              - array
              - 'null'
        - explode: false
          in: query
          name: connection_id
          schema:
            type: string
        - description: >-
            Repeatable. classes adds the market's appetite as class rows
            (classes); commission adds the market's commission figures as its
            screens state them (commission). With either, product and
            product_type are optional.
          explode: true
          in: query
          name: include
          schema:
            description: >-
              Repeatable. classes adds the market's appetite as class rows
              (classes); commission adds the market's commission figures as its
              screens state them (commission). With either, product and
              product_type are optional.
            items:
              enum:
                - classes
                - commission
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Two letters. With include=classes: the appointed lines are the
            market's products that apply in this state.
          explode: false
          in: query
          name: state
          schema:
            description: >-
              Two letters. With include=classes: the appointed lines are the
              market's products that apply in this state.
            type: string
        - description: >-
            With include=commission: a line code or label; the commission
            headline and statement state that line's figure.
          explode: false
          in: query
          name: line
          schema:
            description: >-
              With include=commission: a line code or label; the commission
              headline and statement state that line's figure.
            type: string
        - description: >-
            With include=classes: a NAICS code; classes.naics_class_id names the
            class row it lands on.
          explode: false
          in: query
          name: naics
          schema:
            description: >-
              With include=classes: a NAICS code; classes.naics_class_id names
              the class row it lands on.
            type: string
        - description: >-
            With include=classes: a class in words (at most 200 characters);
            classes.matched_class_ids names the class rows that answer it, best
            first.
          explode: false
          in: query
          name: class_words
          schema:
            description: >-
              With include=classes: a class in words (at most 200 characters);
              classes.matched_class_ids names the class rows that answer it,
              best first.
            maxLength: 200
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordMarketTermsAndAppetiteJSON'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    RecordMarketTermsAndAppetiteJSON:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/MarketTermsAndAppetiteJSON'
        missing_count:
          description: >-
            For a hierarchy record, source records missing that level after
            source filters and before name/ID filters.
          format: int64
          type: integer
        request_id:
          type: string
        source:
          $ref: '#/components/schemas/Source'
        unreachable:
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        warnings:
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - data
        - source
        - unreachable
        - warnings
        - request_id
      type: object
    Problem:
      additionalProperties: false
      properties:
        code:
          description: >-
            The stable machine-readable error code, UPPER_SNAKE_CASE, one
            meaning forever.
          enum:
            - INVALID_ARGUMENT
            - UNAUTHENTICATED
            - CAPABILITY_DENIED
            - NOT_VISIBLE_OR_ABSENT
            - IDEMPOTENT_REQUEST_IN_FLIGHT
            - ETAG_MISMATCH
            - VALIDATION_FAILED
            - IDEMPOTENCY_KEY_PAYLOAD_MISMATCH
            - SOURCE_UNAVAILABLE
            - RATE_LIMITED
            - INTERNAL
            - DEADLINE_EXCEEDED
            - UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
          type: string
        detail:
          description: A human-readable sentence about this occurrence.
          type: string
        details:
          description: >-
            Structured detail for the reason (for example which owner selection
            rule failed). A Records refusal names its reason code in
            details.reason; a projection refusal (SOURCE_UNAVAILABLE) also names
            its closed subtype in details.subtype (admission_pending, no_build,
            binding_changed, agency_admission_unbounded,
            authority_coordinates_changed, guard_absent, derivation_unaccepted),
            and only admission_pending, which clears by itself, also carries
            details.retry_after_ms, equal to retry_after_ms and the Retry-After
            header.
        errors:
          description: Each invalid parameter, for INVALID_ARGUMENT.
          items:
            $ref: '#/components/schemas/ProblemError'
          type:
            - array
            - 'null'
        instance:
          description: The request path this occurrence answered.
          type: string
        reason:
          description: >-
            The finer cause within the code, UPPER_SNAKE_CASE (for example
            SCOPE_UNAVAILABLE under CAPABILITY_DENIED).
          type: string
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        retry_after_ms:
          description: When a retry may succeed, the wait before it.
          format: int64
          type: integer
        status:
          description: The HTTP status code.
          format: int64
          type: integer
        title:
          description: The HTTP status phrase.
          type: string
        type:
          description: A URI naming the problem type, derived from the code.
          type: string
      required:
        - type
        - title
        - status
        - code
        - request_id
      type: object
    MarketTermsAndAppetiteJSON:
      additionalProperties: false
      properties:
        appetite:
          description: >-
            The market's governing appetite cells that meet the product, first
            page (100).
          items:
            $ref: '#/components/schemas/CatalogAppetiteJSON'
          type:
            - array
            - 'null'
        appetite_count:
          description: Every matching appetite cell.
          format: int64
          type: integer
        classes:
          $ref: >-
            #/components/schemas/MarketClassesServedCatalogAppetiteSynthesisRowJSON
          description: >-
            With include=classes: the market's appetite as class rows. A row the
            fold cites (a guide fact, a colleague's note) is the appetite
            synthesis row as GET
            /api/v1/catalog/markets/{entityKey}/appetite-synthesis serves it to
            this seat.
        commission:
          $ref: '#/components/schemas/Commission'
          description: >-
            With include=commission: the market's commission in the asked state,
            as its page header, drawer and Appetite & terms table state it (the
            figure that applies, a short named list, or what it depends on, each
            rate with what it applies to). A seat whose role withholds carrier
            compensation reads withheld: true and nothing else.
        commission_term_count:
          description: Every matching term, beyond the first page.
          format: int64
          type: integer
        commission_terms:
          description: >-
            The market's commission and profit-share terms that meet the product
            under the one join rule, first page (100). A member denied carrier
            compensation reads them without their figures.
          items:
            $ref: '#/components/schemas/CatalogTermJSON'
          type:
            - array
            - 'null'
        market_entity_key:
          type: string
        product_types:
          items:
            type: string
          type:
            - array
            - 'null'
        products:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - market_entity_key
        - products
        - product_types
        - commission_terms
        - commission_term_count
        - appetite
        - appetite_count
      type: object
    Source:
      additionalProperties: false
      properties:
        actor:
          $ref: '#/components/schemas/Actor'
        connection:
          description: >-
            The id of the connection that answered; empty when the read had no
            connection.
          type: string
        coverage:
          $ref: '#/components/schemas/SourceCoverage'
          description: >-
            What the family's data has: late only when its source is older than
            its measured window, and the gaps a reader states where it shows an
            absence for the family.
        elapsed_ms:
          description: A live source's call time for this read.
          format: int64
          type: integer
        family:
          description: The registry family that answered.
          type: string
        freshness:
          description: >-
            The freshness word as served before freshness_promised and
            freshness_observed existed; read those two instead.
          type: string
        freshness_observed:
          description: >-
            What this read observed: settled or prior_stable (the warehouse
            pin), reused (a kept answer of the same statement and data version),
            live (a call answered now), fresh or stale.
          type: string
        freshness_promised:
          description: >-
            What the source promises: pinned (the warehouse, read at a pinned
            instant), live (the system of record, per call), store (the
            platform's own store) or computed (a derived function over other
            reads).
          type: string
        id:
          description: >-
            The registry source id (warehouse, ams360_ems, ...), empty when
            absent.
          type: string
        kind:
          description: >-
            The kind of source that answered: the warehouse, the customer's
            system of record (whichever vendor; the vendor is in id), the
            platform's own store, or absent when no source serves the family.
          enum:
            - warehouse
            - system
            - store
            - absent
          type: string
        operations:
          description: >-
            What ran to serve this answer, in order: the warehouse statements,
            vendor operations, store families or functions. Empty only when no
            source serves the family.
          items:
            $ref: '#/components/schemas/SourceOperation'
          type:
            - array
            - 'null'
        origin:
          description: Which input decided the source.
          enum:
            - default
            - connection
            - seat
          type: string
        reason:
          $ref: '#/components/schemas/SourceReason'
          description: Why the family is absent, when kind is absent.
        snapshot_at:
          description: >-
            The instant the rows were read at: the warehouse pin, or the live
            call's time.
          format: date-time
          type:
            - string
            - 'null'
        snapshot_id:
          description: The warehouse snapshot the rows came from, when one names them.
          type: string
        stale_since:
          description: When the snapshot stopped being current, for a stale read.
          format: date-time
          type: string
        subject:
          $ref: '#/components/schemas/Subject'
        system:
          deprecated: true
          description: >-
            deprecated: read kind; removed with generation 1. The system behind
            the source.
          enum:
            - warehouse
            - ams360
            - store
            - absent
          type: string
      required:
        - coverage
        - family
        - kind
        - connection
        - system
        - id
        - origin
        - freshness
        - freshness_promised
        - snapshot_at
        - operations
        - subject
        - actor
      type: object
    Unreachable:
      additionalProperties: false
      properties:
        detail:
          type: string
        part:
          description: The envelope part (a field path or a child family).
          type: string
        reason:
          description: 'Why: no_adapter, not_documented, absent, source_unavailable, ...'
          type: string
        ref:
          description: The vendor reference id of the call that failed, when one did.
          type: string
      required:
        - part
        - reason
      type: object
    Warning:
      additionalProperties: false
      properties:
        code:
          description: >-
            UPPER_SNAKE_CASE, one meaning forever (LIMIT_COERCED, FACET_DROPPED,
            ...).
          type: string
        detail:
          type: string
      required:
        - code
      type: object
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      type: object
    CatalogAppetiteJSON:
      additionalProperties: false
      properties:
        business_class:
          type: string
        confidence:
          format: double
          type:
            - number
            - 'null'
        eligibility:
          type: string
        line:
          type: string
        line_code:
          type: string
        market_entity_key:
          type: string
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
        provenance:
          $ref: '#/components/schemas/CatalogProvenanceJSON'
        segment:
          type: string
        signals:
          $ref: '#/components/schemas/CatalogSignalsJSON'
        verdict:
          description: >-
            What the eligibility tells a producer: writes (send it), considers
            (ask first), wont_write (do not send), or unstated when the token is
            outside the eligibility vocabulary. Read from eligibility, whose
            provenance is the cell's source.
          enum:
            - writes
            - considers
            - wont_write
            - unstated
          type: string
      required:
        - market_entity_key
        - segment
        - business_class
        - line
        - line_code
        - eligibility
        - verdict
        - confidence
        - provenance
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    MarketClassesServedCatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        appetite_grade:
          $ref: '#/components/schemas/MarketsAppetiteGrade'
          description: >-
            With naics: the carrier appetite model's grade of this market for
            the class, on the agency's own placements, exactly as the Markets
            directory's one-row read (entity_key) serves it to this seat, with
            the line it graded. The class row naics_class_id names takes its
            word and bottom line from it, the bottom line also saying the
            directory's guide answer for the asked class with its date; a
            guide's not a market makes the word won't write. Absent when the
            model is off, nothing is published, or the seat may not read the
            directory.
        as_of:
          description: The clock the synthesis was weighed against.
          type: string
        basis:
          $ref: '#/components/schemas/MarketClassesBasis'
        class_counts:
          $ref: '#/components/schemas/MarketClassCounts'
        class_labels:
          description: Every class label in row order, the any-class row excepted.
          items:
            type: string
          type:
            - array
            - 'null'
        classes:
          description: >-
            One row per class the sources name, in the fold's order: guide
            classes, then data-only classes, then the any-class row.
          items:
            $ref: >-
              #/components/schemas/MarketClassServedCatalogAppetiteSynthesisRowJSON
          type:
            - array
            - 'null'
        guide_blob_ref:
          description: >-
            The guide document the first stated row cites; null without one, or
            when the seat's document tiers do not open it.
          type:
            - string
            - 'null'
        guide_observed_at:
          description: The latest date the guide rows carry; null without a guide.
          type:
            - string
            - 'null'
        guide_source_label:
          description: >-
            The kind of document guide_blob_ref cites, in a producer's words
            (served.SourceLabel, set by the read); null with the ref.
          type:
            - string
            - 'null'
        has_guide:
          description: True when the market has a guide on file (a stated row).
          type: boolean
        lines:
          description: Every line any source named on this market, canonical order.
          items:
            type: string
          type:
            - array
            - 'null'
        matched_class_ids:
          description: >-
            With class: the ids of the class rows that answer the asked class,
            best first. A row whose label holds the asked words whole ranks
            first, then a row whose label the taxonomy's keywords for the class
            name, then a keyed row whose class key covers or refines a NAICS
            code the class resolves to or the naics asked (a sector span
            included). Equal matches rank guide classes before data-only
            classes, then by placed policies, most first. The any-class row
            never matches. Empty when no class was asked or none answers.
          items:
            type: string
          type:
            - array
            - 'null'
        naics_class_id:
          description: >-
            With naics: the id of the class row the code lands on (the longest
            class key covering it); null when none does.
          type:
            - string
            - 'null'
        product_groups:
          description: >-
            Producer line groups from the same seat-redacted products as the
            class fold, with variant labels and held flags.
          items:
            $ref: '#/components/schemas/MarketProductGroup'
          type:
            - array
            - 'null'
      required:
        - classes
        - matched_class_ids
        - product_groups
        - has_guide
        - guide_observed_at
        - guide_blob_ref
        - guide_source_label
        - lines
        - class_labels
        - class_counts
        - naics_class_id
        - basis
        - as_of
      type: object
    Commission:
      additionalProperties: false
      properties:
        groups:
          description: >-
            Each line group of the market's rows in the state, in the screens'
            order: its cell and its new and renewal columns.
          items:
            $ref: '#/components/schemas/CommissionGroup'
          type:
            - array
            - 'null'
        headline:
          $ref: '#/components/schemas/CommissionHeadline'
          description: >-
            What a one-figure slot (page header, drawer fact) states for the
            scope.
        line:
          description: >-
            The line (a line code or label) the headline and statement are
            scoped to; null for every line.
          type:
            - string
            - 'null'
        lines:
          description: >-
            Each line code in the state, its groups merged: the cell the
            Appetite & terms table states.
          items:
            $ref: '#/components/schemas/CommissionLine'
          type:
            - array
            - 'null'
        promotions:
          description: >-
            The carrier's commission promotions running today (the book's New
            York day), each with its days and the notice it was filed from.
            Context beside client fit: they never order or filter markets.
          items:
            $ref: '#/components/schemas/CommissionPromotion'
          type:
            - array
            - 'null'
        state:
          description: The state the figures are scoped to; null for every state.
          type:
            - string
            - 'null'
        statement:
          $ref: '#/components/schemas/CommissionStatement'
          description: The whole schedule for the scope, one answer per row.
        withheld:
          description: >-
            True when this seat's role withholds carrier compensation: nothing
            else is served and the screens state no commission.
          type: boolean
      required:
        - withheld
        - state
        - line
      type: object
    CatalogTermJSON:
      additionalProperties: false
      properties:
        band_1:
          $ref: '#/components/schemas/CatalogTermBandJSON'
        band_2:
          $ref: '#/components/schemas/CatalogTermBandJSON'
        business_basis:
          type: string
        citations:
          additionalProperties:
            $ref: '#/components/schemas/CatalogCitationJSON'
          type: object
        conditions:
          type: string
        confidence:
          format: double
          type:
            - number
            - 'null'
        corrected:
          type: boolean
        effective_year:
          format: int64
          type:
            - integer
            - 'null'
        entity_key:
          type: string
        held_for_review:
          type: boolean
        id:
          type: string
        line:
          type: string
        line_class:
          type: string
        line_code:
          type:
            - string
            - 'null'
        market_entity_key:
          type: string
        modifier_delta:
          format: double
          type:
            - number
            - 'null'
        policy_condition:
          type: string
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
        program_parent:
          type: string
        provenance:
          $ref: '#/components/schemas/CatalogProvenanceJSON'
        rate:
          format: double
          type:
            - number
            - 'null'
        rate_is_percent:
          type:
            - boolean
            - 'null'
        rate_non_numeric:
          type:
            - string
            - 'null'
        raw_label:
          type: string
        states:
          items:
            type: string
          type:
            - array
            - 'null'
        term_family:
          type: string
        term_kind:
          type: string
      required:
        - id
        - entity_key
        - market_entity_key
        - term_family
        - term_kind
        - business_basis
        - line
        - line_code
        - line_class
        - raw_label
        - states
        - program_parent
        - policy_condition
        - band_1
        - band_2
        - rate
        - rate_is_percent
        - held_for_review
        - rate_non_numeric
        - modifier_delta
        - conditions
        - effective_year
        - corrected
        - confidence
        - provenance
        - citations
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    Actor:
      additionalProperties: false
      properties:
        impersonation_kind:
          enum:
            - act_as
            - workos
          type: string
        impersonator:
          description: The operator behind an impersonated session.
          type: string
        member:
          description: The acting member (Nexio-Act-As); empty for a key acting as itself.
          type: string
      type: object
    SourceCoverage:
      additionalProperties: false
      properties:
        as_of:
          description: >-
            The earliest as-of among the family's sources, present only when the
            state is late.
          format: date-time
          type: string
        gaps:
          description: >-
            The family's absence gaps, each stated in plain words with its share
            and whose it is to fill. Empty when the family has none.
          items:
            $ref: '#/components/schemas/CoverageGap'
          type: array
        late:
          $ref: '#/components/schemas/CoverageLate'
          description: Present only when the state is late.
        state:
          description: >-
            late: a source is older than its measured window. current: no source
            is late. unmeasured: no source with a refresh cadence has two stored
            commits yet, so no window is known.
          enum:
            - current
            - late
            - unmeasured
          type: string
      required:
        - state
        - gaps
      type: object
    SourceOperation:
      additionalProperties: false
      properties:
        kind:
          description: >-
            statement: a registered warehouse statement; vendor: a system of
            record operation; store: a platform store family; compute: a derived
            function.
          enum:
            - statement
            - vendor
            - store
            - compute
          type: string
        ref:
          description: >-
            The statement name, the Records operation ref, the store family or
            the function.
          type: string
        reused:
          description: >-
            True when a kept answer of the same statement and data version was
            replayed instead of run.
          type: boolean
      required:
        - kind
        - ref
        - reused
      type: object
    SourceReason:
      additionalProperties: false
      properties:
        kind:
          type: string
        note:
          type: string
        ref:
          type: string
      required:
        - kind
      type: object
    Subject:
      additionalProperties: false
      properties:
        member:
          $ref: '#/components/schemas/SubjectMember'
          description: >-
            The member whose book was read, when the request read as another
            member.
        scope:
          description: The scope kind the acting seat resolved to (self, office, all, ...).
          type: string
        selection:
          description: >-
            The subject selection served, as subject= tokens (own,
            book:&lt;code&gt;, producer:&lt;code|me&gt;,
            client_manager:&lt;code|me&gt;, member:&lt;id&gt;). Empty when none
            was sent.
          items:
            type: string
          type:
            - array
            - 'null'
        selection_kind:
          description: >-
            own, code, client_manager, account, boundary or whole: what the
            served relation is.
          type: string
        selection_source:
          description: >-
            request when the caller chose the selection; none when it chose
            nothing.
          type: string
      required:
        - scope
        - selection
        - selection_kind
        - selection_source
      type: object
    CatalogProvenanceJSON:
      additionalProperties: false
      properties:
        effective_from:
          format: date-time
          type: string
        extraction_run_id:
          type:
            - string
            - 'null'
        source_blob_ref:
          type:
            - string
            - 'null'
        source_label:
          type:
            - string
            - 'null'
        source_removed_at:
          format: date-time
          type: string
      required:
        - source_blob_ref
        - source_label
        - extraction_run_id
        - effective_from
      type: object
    CatalogSignalsJSON:
      additionalProperties: false
      type: object
    MarketsAppetiteGrade:
      additionalProperties: false
      properties:
        grade:
          description: >-
            The grade on the agency's own placements of the class: Excellent,
            Good, Fair, Weak or Not enough on file. The sentence leads with it;
            a client renders the sentence, never a copy of these words.
          type: string
        line:
          description: >-
            The line graded: the asked line, or with none asked, the line the
            agency places the class's industry group (four-digit NAICS) on most.
          type: string
        sentence:
          description: >-
            The grade with its counts in one sentence, for example Excellent: 23
            clients placed in NAICS 4841 on commercial auto in 36 months; 41 on
            the line in IL. No count under 5 clients is printed.
          type: string
      required:
        - grade
        - sentence
        - line
      type: object
    MarketClassesBasis:
      additionalProperties: false
      properties:
        appointed_lines:
          description: >-
            The commercial lines the market's served products appoint (in the
            state when one is asked), the per-line table's anchor where the
            class has no convention.
          items:
            type: string
          type:
            - array
            - 'null'
        derived:
          description: The rule that folded the cells.
          enum:
            - market_appetite_fold
          type: string
        state:
          description: >-
            The state the appointed lines were read for; empty for every state.
            Colleague rows and the landed appetite are read for every state.
          type: string
        synthesis_derived_at:
          description: >-
            When the landed appetite head the cells come from was derived; null
            when none has landed.
          type:
            - string
            - 'null'
      required:
        - derived
        - synthesis_derived_at
        - state
        - appointed_lines
      type: object
    MarketClassCounts:
      additionalProperties: false
      properties:
        book:
          description: >-
            Data-only classes: a NAICS rung only the book or the outcome record
            filed under.
          format: int64
          type: integer
        guide:
          description: Classes a source labeled (guide, colleague, contract).
          format: int64
          type: integer
      required:
        - guide
        - book
      type: object
    MarketClassServedCatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        all_lines_guide:
          $ref: '#/components/schemas/MarketClassGuideCatalogAppetiteSynthesisRowJSON'
          description: >-
            The guide's statement about the class on every line, when it made
            one.
        any_class:
          description: The line-level record with no class.
          type: boolean
        book:
          $ref: '#/components/schemas/MarketClassBook'
          description: >-
            The book's placements on the class; null when no book row reached
            it.
        carrier_evidence:
          enum:
            - guide
            - contract_only
            - not_in_guide
            - none
          type: string
        class_key:
          type: string
        class_level:
          type: string
        condition_groups:
          description: >-
            The row's conditions, one group per source in the order the sources
            first appear, each distinct condition once with every line it was
            stated for (canonical line order; the empty line means every line).
          items:
            $ref: '#/components/schemas/MarketClassConditionGroup'
          type:
            - array
            - 'null'
        conditions:
          description: >-
            What the carrier requires before it writes the class, each with the
            line it was stated for (empty for every line). Disclosure only: a
            condition never moves the word.
          items:
            $ref: '#/components/schemas/MarketClassCondition'
          type:
            - array
            - 'null'
        convention_lines:
          description: >-
            The lines a class of this kind usually carries (the industry
            convention); empty when the convention has no opinion.
          items:
            type: string
          type:
            - array
            - 'null'
        data_grain_label:
          description: The Census title of the rung the outcome rows are filed at.
          type:
            - string
            - 'null'
        data_only:
          description: A NAICS rung no source labeled, named from the Census titles.
          type: boolean
        decided_by:
          description: The channel whose row decided the word; null when nothing spoke.
          type:
            - string
            - 'null'
        guide_lines:
          description: Lines the guide named for this class, canonical order.
          items:
            type: string
          type:
            - array
            - 'null'
        id:
          description: >-
            Stable within one read: the label lower-cased, a NAICS rung, or
            any-class.
          type: string
        label:
          type: string
        level:
          description: 'Confidence: 3 high, 2 moderate, 1 low, 0 not enough to say.'
          format: int64
          maximum: 3
          minimum: 0
          type: integer
        lines:
          items:
            $ref: >-
              #/components/schemas/MarketClassLineCatalogAppetiteSynthesisRowJSON
          type:
            - array
            - 'null'
        observed_range:
          $ref: '#/components/schemas/MarketClassDateRange'
          description: First and last month an outcome row on the class was observed.
        outcomes:
          $ref: '#/components/schemas/MarketClassOutcomes'
          description: >-
            The outcome record on the class: what came back when business was
            sent.
        reasons:
          description: The bottom line in the producer's words.
          items:
            $ref: '#/components/schemas/MarketClassReason'
          type:
            - array
            - 'null'
        sector_book:
          $ref: '#/components/schemas/MarketClassSector'
          description: >-
            For a guide class bridged to a sector or subsector: the sector's own
            placed count.
        team:
          description: Colleague (user_supplied) rows on the whole class, newest first.
          items:
            $ref: '#/components/schemas/CatalogAppetiteSynthesisRowJSON'
          type:
            - array
            - 'null'
        word:
          description: >-
            The bottom-line verdict. writes and wont_write only in the carrier's
            own voice; likely_writes and unlikely from the record or a
            colleague; mixed when the class's lines disagree.
          enum:
            - writes
            - likely_writes
            - considers
            - wont_write
            - unlikely
            - unknown
            - mixed
          type: string
      required:
        - condition_groups
        - id
        - label
        - class_key
        - class_level
        - any_class
        - data_only
        - word
        - level
        - decided_by
        - carrier_evidence
        - reasons
        - outcomes
        - book
        - lines
        - guide_lines
        - convention_lines
        - all_lines_guide
        - sector_book
        - data_grain_label
        - observed_range
        - team
        - conditions
      type: object
    MarketProductGroup:
      additionalProperties: false
      properties:
        avoided:
          type: boolean
        label:
          type: string
        line_class:
          type: string
        line_code:
          type:
            - string
            - 'null'
        source_refs:
          items:
            type: string
          type:
            - array
            - 'null'
        variants:
          items:
            $ref: '#/components/schemas/MarketProductVariant'
          type:
            - array
            - 'null'
      required:
        - label
        - line_code
        - line_class
        - variants
        - source_refs
        - avoided
      type: object
    CommissionGroup:
      additionalProperties: false
      properties:
        cell:
          description: >-
            One figure, two that fit, or what the figure depends on; held for
            review or see terms.
          type: string
        label:
          type: string
        line_class:
          type: string
        line_code:
          type:
            - string
            - 'null'
        new_cell:
          description: The new-business column's cell.
          type: string
        rates:
          description: >-
            Each distinct rate with what it applies to, for the hover under a
            cell that varies.
          items:
            $ref: '#/components/schemas/CommissionRateJSON'
          type:
            - array
            - 'null'
        renewal_cell:
          description: The renewal column's cell.
          type: string
      required:
        - label
        - line_code
        - line_class
        - cell
        - new_cell
        - renewal_cell
        - rates
      type: object
    CommissionHeadline:
      additionalProperties: false
      properties:
        figure:
          description: >-
            The one figure that applies to the named state and line, new and
            renewal (for example 8% new, 8% renewal): what a page header states.
            Null without both a state and a line, or when the rows price it more
            than one way (premium tiers, products).
          type:
            - string
            - 'null'
        text:
          description: >-
            The one figure, a short named list, or what the figure depends on;
            null when the scope discloses nothing.
          type:
            - string
            - 'null'
        varies:
          description: >-
            No short answer covers the scope and the State and Line filters can
            still narrow it.
          type: boolean
      required:
        - text
        - varies
        - figure
      type: object
    CommissionLine:
      additionalProperties: false
      properties:
        cell:
          type: string
        line_code:
          type: string
        rates:
          items:
            $ref: '#/components/schemas/CommissionRateJSON'
          type:
            - array
            - 'null'
      required:
        - line_code
        - cell
        - rates
      type: object
    CommissionPromotion:
      additionalProperties: false
      properties:
        business_basis:
          description: new, renewal, or all for both.
          enum:
            - new
            - renewal
            - all
          type: string
        ends_on:
          description: The last day it pays, YYYY-MM-DD.
          type: string
        filed_at:
          description: When it was filed, RFC 3339.
          type: string
        filed_by:
          description: The name of the person who filed it.
          type: string
        line_code:
          description: The line of business code the promotion pays on.
          type: string
        notice:
          $ref: '#/components/schemas/CommissionPromotionNotice'
          description: >-
            The carrier's notice it was filed from: open it through GET
            /records/market-appetite/rollups/evidence with the market and this
            id and version.
        notice_words:
          description: The notice's own words for the promotion.
          type: string
        product:
          $ref: '#/components/schemas/Reference'
          description: >-
            The notice's own name for the line (product_source_text) and the org
            product it names in /records/products, or the reason it names none.
        rate:
          description: The promotion's rate as the screens state it ("20%").
          type: string
        starts_on:
          description: The first day it pays, YYYY-MM-DD.
          type: string
      required:
        - line_code
        - product
        - business_basis
        - rate
        - starts_on
        - ends_on
        - notice_words
        - notice
        - filed_by
        - filed_at
      type: object
    CommissionStatement:
      additionalProperties: false
      properties:
        by_line:
          items:
            $ref: '#/components/schemas/CommissionStatementLine'
          type:
            - array
            - 'null'
        line_count:
          format: int64
          type: integer
        text:
          type:
            - string
            - 'null'
      required:
        - text
        - line_count
        - by_line
      type: object
    CatalogTermBandJSON:
      additionalProperties: false
      properties:
        kind:
          type: string
        max:
          format: double
          type:
            - number
            - 'null'
        min:
          format: double
          type:
            - number
            - 'null'
        raw_label:
          type: string
        unit:
          type: string
      required:
        - kind
        - min
        - max
        - unit
        - raw_label
      type: object
    CatalogCitationJSON:
      additionalProperties: false
      properties:
        field_path:
          type:
            - string
            - 'null'
        grain:
          type: string
        page:
          format: int64
          type:
            - integer
            - 'null'
        quote:
          type:
            - string
            - 'null'
        region:
          $ref: '#/components/schemas/CatalogCitationRegionJSON'
        source_blob_ref:
          type:
            - string
            - 'null'
      required:
        - source_blob_ref
        - field_path
        - quote
        - page
        - region
        - grain
      type: object
    CoverageGap:
      additionalProperties: false
      properties:
        code:
          description: Stable gap code.
          type: string
        owner:
          description: Who keeps the source that would fill the gap.
          enum:
            - firm
            - vertafore
            - nexio
          type: string
        section_field:
          description: >-
            Dotted path inside a derived read's section that holds this gap's
            fact: the gap applies when that value is empty.
          type: string
        section_lines:
          description: >-
            AMS 360 line codes the gap speaks to: it applies only when the
            read's line_codes name one.
          items:
            type: string
          type:
            - array
            - 'null'
        sentence:
          description: >-
            The gap in plain words: the source, the share it covers and whose it
            is to fill.
          type: string
      required:
        - code
        - sentence
        - owner
      type: object
    CoverageLate:
      additionalProperties: false
      properties:
        sentence:
          type: string
      required:
        - sentence
      type: object
    SubjectMember:
      additionalProperties: false
      properties:
        display_name:
          type: string
        id:
          type: string
        scope:
          type: string
      required:
        - id
        - display_name
        - scope
      type: object
    MarketClassGuideCatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        all_lines:
          description: >-
            True when the guide spoke about the class on every line rather than
            this line by name.
          type: boolean
        level:
          format: int64
          maximum: 3
          minimum: 0
          type: integer
        row:
          $ref: '#/components/schemas/CatalogAppetiteSynthesisRowJSON'
          description: The guide row that decided it.
        word:
          enum:
            - writes
            - considers
            - wont_write
            - unknown
          type: string
      required:
        - word
        - level
        - row
        - all_lines
      type: object
    MarketClassBook:
      additionalProperties: false
      properties:
        channel:
          description: revealed when a priced row exists, else observed.
          enum:
            - observed
            - revealed
          type: string
        clients:
          format: int64
          type:
            - integer
            - 'null'
        first:
          type:
            - string
            - 'null'
        floor_met:
          description: True when the sample met the placement-evidence floor.
          type: boolean
        last:
          type:
            - string
            - 'null'
        level:
          format: int64
          maximum: 3
          minimum: 0
          type: integer
        policies:
          format: int64
          type: integer
      required:
        - channel
        - policies
        - clients
        - floor_met
        - level
        - first
        - last
      type: object
    MarketClassConditionGroup:
      additionalProperties: false
      properties:
        heading:
          description: >-
            The source as a producer reads it, for example a workbook's name and
            date.
          type: string
        items:
          items:
            $ref: '#/components/schemas/MarketClassConditionItem'
          type:
            - array
            - 'null'
        key:
          description: >-
            The source's identity: its id (or the name it is shown by) and its
            date.
          type: string
        source:
          $ref: '#/components/schemas/MarketClassConditionSource'
      required:
        - key
        - heading
        - source
        - items
      type: object
    MarketClassCondition:
      additionalProperties: false
      properties:
        account_value:
          type: string
        applies:
          type: boolean
        fact_key:
          type: string
        key:
          type: string
        label:
          type: string
        line:
          description: The line the condition was stated for; empty for every line.
          type: string
        missing_fact:
          type: string
        operator:
          type: string
        refuses:
          description: >-
            True when the condition names something the carrier does not accept:
            an excludes condition, a workbook's frame-only refusal, or a source
            cell that says the carrier does not accept the exposure. False for a
            limit, a requirement, an ask or another note.
          type: boolean
        source:
          $ref: '#/components/schemas/MarketClassConditionSource'
        verbatim:
          description: The carrier's own words.
          type: string
      required:
        - line
        - key
        - label
        - verbatim
        - fact_key
        - missing_fact
        - account_value
        - applies
        - operator
        - refuses
        - source
      type: object
    MarketClassLineCatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        book:
          $ref: '#/components/schemas/MarketClassBook'
        code:
          type: string
        from:
          $ref: '#/components/schemas/MarketClassLineFrom'
          description: Which sources put the line in the table.
        guide:
          $ref: '#/components/schemas/MarketClassGuideCatalogAppetiteSynthesisRowJSON'
          description: The carrier's own word on the line; null when its guide is silent.
        outcomes:
          $ref: '#/components/schemas/MarketClassOutcomes'
          description: The outcome record on the line; null when none reached the class.
        team:
          description: Colleague rows on the line, newest first.
          items:
            $ref: '#/components/schemas/CatalogAppetiteSynthesisRowJSON'
          type:
            - array
            - 'null'
        verdict:
          $ref: '#/components/schemas/MarketClassLineVerdict'
      required:
        - code
        - guide
        - verdict
        - outcomes
        - book
        - team
        - from
      type: object
    MarketClassDateRange:
      additionalProperties: false
      properties:
        first:
          type: string
        last:
          type: string
      required:
        - first
        - last
      type: object
    MarketClassOutcomes:
      additionalProperties: false
      properties:
        bound:
          format: int64
          type: integer
        declined:
          format: int64
          type: integer
        not_bound:
          format: int64
          type: integer
        open:
          format: int64
          type: integer
        quoted:
          format: int64
          type: integer
        quoted_any:
          description: Every submission that reached a quote, whether or not it bound.
          format: int64
          type: integer
        quoted_not_bound:
          format: int64
          type: integer
        total:
          format: int64
          type: integer
      required:
        - bound
        - quoted
        - quoted_not_bound
        - declined
        - not_bound
        - open
        - total
        - quoted_any
      type: object
    MarketClassReason:
      additionalProperties: false
      properties:
        code:
          enum:
            - bottom_line
          type: string
        source:
          $ref: '#/components/schemas/MarketClassReasonSource'
        text:
          type: string
      required:
        - code
        - text
        - source
      type: object
    MarketClassSector:
      additionalProperties: false
      properties:
        label:
          type: string
        policies:
          format: int64
          type: integer
      required:
        - label
        - policies
      type: object
    CatalogAppetiteSynthesisRowJSON:
      additionalProperties: false
      properties:
        actor:
          anyOf:
            - $ref: '#/components/schemas/CatalogAppetiteSynthesisActor'
            - type: 'null'
        added_by:
          type: string
        added_by_email:
          type: string
        added_by_note:
          type: string
        added_on:
          type: string
        channel:
          type: string
        confidence_band:
          type: string
        constraints:
          anyOf:
            - $ref: '#/components/schemas/AppetiteConstraints'
            - type: 'null'
        eligibility:
          type: string
        exclusion_withheld_by:
          type: string
        fidelity_class:
          format: int64
          type: integer
        gate_effect:
          type: string
        had_quote:
          description: >-
            The declined channel's closed outcome only: the market returned
            terms before the submission closed.
          type: boolean
        may_exclude:
          type: boolean
        notes:
          type: string
        observed_at:
          type:
            - string
            - 'null'
        outweighed_by:
          type: string
        rationale:
          type: string
        sample:
          $ref: '#/components/schemas/AppetiteSample'
        source_refs:
          items:
            $ref: '#/components/schemas/AppetiteSourceRef'
          type:
            - array
            - 'null'
        stored_eligibility:
          type: string
        tier:
          type: string
        weight_state:
          type: string
      required:
        - channel
        - had_quote
        - eligibility
        - confidence_band
        - fidelity_class
        - may_exclude
        - sample
        - source_refs
        - observed_at
        - weight_state
        - rationale
        - gate_effect
        - actor
        - constraints
      type: object
    MarketProductVariant:
      additionalProperties: false
      properties:
        commission_new_fraction:
          description: New-business commission as a fraction; 0.15 means 15 percent.
          format: double
          type:
            - number
            - 'null'
        commission_renewal_fraction:
          description: Renewal commission as a fraction; 0.15 means 15 percent.
          format: double
          type:
            - number
            - 'null'
        facts:
          $ref: '#/components/schemas/MarketProductFacts'
        held_for_review:
          type: boolean
        label:
          type: string
        product_id:
          type: string
      required:
        - product_id
        - label
        - facts
        - commission_new_fraction
        - commission_renewal_fraction
        - held_for_review
      type: object
    CommissionRateJSON:
      additionalProperties: false
      properties:
        applies_to:
          items:
            $ref: '#/components/schemas/CommissionAppliesToJSON'
          type:
            - array
            - 'null'
        fresh:
          type: string
        renewal:
          type: string
      required:
        - fresh
        - renewal
        - applies_to
      type: object
    CommissionPromotionNotice:
      additionalProperties: false
      properties:
        connection_id:
          type: string
        entity_key:
          type: string
        id:
          type: string
        name:
          type: string
        version:
          type: string
      required:
        - id
        - version
        - name
        - connection_id
        - entity_key
      type: object
    Reference:
      additionalProperties: false
      properties:
        product_grain:
          enum:
            - product
            - type
          type: string
        product_id:
          type:
            - string
            - 'null'
        product_source_text:
          type: string
        product_unmatched_reason:
          type:
            - string
            - 'null'
      required:
        - product_id
        - product_grain
        - product_source_text
        - product_unmatched_reason
      type: object
    CommissionStatementLine:
      additionalProperties: false
      properties:
        cell:
          type: string
        code:
          type: string
      required:
        - code
        - cell
      type: object
    CatalogCitationRegionJSON:
      additionalProperties: false
      properties:
        h:
          format: double
          type: number
        w:
          format: double
          type: number
        x:
          format: double
          type: number
        'y':
          format: double
          type: number
      required:
        - x
        - 'y'
        - w
        - h
      type: object
    MarketClassConditionItem:
      additionalProperties: false
      properties:
        condition:
          $ref: '#/components/schemas/MarketClassGroupedCondition'
        lines:
          description: >-
            The lines the condition was stated for, canonical line order; an
            empty line means every line.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - condition
        - lines
      type: object
    MarketClassConditionSource:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        as_of:
          type: string
        id:
          type: string
        kind:
          type: string
        label:
          type: string
        row:
          format: double
          type:
            - number
            - 'null'
        sheet:
          type: string
      required:
        - kind
        - id
        - label
        - sheet
        - row
        - as_of
        - actor_email
      type: object
    MarketClassLineFrom:
      additionalProperties: false
      properties:
        appointed:
          type: boolean
        convention:
          type: boolean
        guide:
          type: boolean
        record:
          type: boolean
        team:
          type: boolean
      required:
        - convention
        - appointed
        - guide
        - record
        - team
      type: object
    MarketClassLineVerdict:
      additionalProperties: false
      properties:
        channel:
          description: The channel whose row decided the word; null when nothing spoke.
          type:
            - string
            - 'null'
        level:
          format: int64
          maximum: 3
          minimum: 0
          type: integer
        word:
          enum:
            - writes
            - likely_writes
            - considers
            - wont_write
            - unlikely
            - unknown
            - mixed
          type: string
      required:
        - word
        - level
        - channel
      type: object
    MarketClassReasonSource:
      additionalProperties: false
      properties:
        kind:
          enum:
            - appetite_fold
          type: string
        ref:
          description: The class row id.
          type: string
      required:
        - kind
        - ref
      type: object
    CatalogAppetiteSynthesisActor:
      additionalProperties: false
      properties:
        email:
          type: string
        id:
          type: string
        name:
          type: string
      required:
        - id
      type: object
    AppetiteConstraints:
      additionalProperties: false
      properties:
        conditions:
          items:
            $ref: '#/components/schemas/MarketAppetiteCondition'
          type:
            - array
            - 'null'
        construction:
          type: string
        factor_order:
          items:
            type: string
          type:
            - array
            - 'null'
        max_building_tiv:
          format: int64
          type: integer
        max_frame_tiv:
          format: int64
          type: integer
        max_location_tiv:
          format: int64
          type: integer
        min_year_built:
          format: int64
          type: integer
        rehab_exception_note:
          type: string
        tenant_classes:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    AppetiteSample:
      additionalProperties: false
      properties:
        client_count_is_upper_bound:
          type: boolean
        distinct_clients:
          format: int64
          type: integer
        distinct_policies:
          format: int64
          type: integer
        floor_met:
          type: boolean
        'n':
          format: int64
          type: integer
        rank_distinct_clients:
          format: int64
          type: integer
        rank_n:
          format: int64
          type: integer
        unit:
          type: string
      required:
        - unit
        - 'n'
        - rank_n
        - floor_met
      type: object
    AppetiteSourceRef:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        actor_id:
          type: string
        actor_name:
          type: string
        as_of:
          type: string
        batch_set_id:
          type: string
        connection_id:
          type: string
        entity_key:
          type: string
        extraction_run_id:
          type: string
        kind:
          type: string
        ref:
          type: string
        source_intake_id:
          type: string
        version:
          type: string
      required:
        - kind
      type: object
    MarketProductFacts:
      additionalProperties: false
      properties:
        band:
          type:
            - string
            - 'null'
        condition:
          type:
            - string
            - 'null'
        condition_states:
          items:
            type: string
          type:
            - array
            - 'null'
        excluded_states:
          items:
            type: string
          type:
            - array
            - 'null'
        issuing_company:
          type:
            - string
            - 'null'
        program:
          type:
            - string
            - 'null'
        states:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - issuing_company
        - program
        - condition
        - condition_states
        - states
        - excluded_states
        - band
      type: object
    CommissionAppliesToJSON:
      additionalProperties: false
      properties:
        states:
          type: string
        terms:
          type: string
      required:
        - terms
        - states
      type: object
    MarketClassGroupedCondition:
      additionalProperties: false
      properties:
        account_value:
          type: string
        applies:
          type: boolean
        fact_key:
          type: string
        key:
          type: string
        label:
          type: string
        missing_fact:
          type: string
        operator:
          type: string
        refuses:
          description: >-
            True when the condition names something the carrier does not accept;
            false for a limit, a requirement, an ask or another note.
          type: boolean
        source:
          $ref: '#/components/schemas/MarketClassConditionSource'
        verbatim:
          description: The carrier's own words.
          type: string
      required:
        - key
        - label
        - verbatim
        - fact_key
        - missing_fact
        - account_value
        - applies
        - operator
        - refuses
        - source
      type: object
    MarketAppetiteCondition:
      additionalProperties: false
      properties:
        applies_when:
          items:
            $ref: '#/components/schemas/MarketAppetiteConditionPredicate'
          type:
            - array
            - 'null'
        fact_key:
          type: string
        key:
          type: string
        label:
          type: string
        operator:
          type: string
        source:
          $ref: '#/components/schemas/MarketAppetiteConditionSource'
        value: {}
        verbatim:
          type: string
      required:
        - key
        - label
        - verbatim
        - fact_key
        - operator
        - source
      type: object
    MarketAppetiteConditionPredicate:
      additionalProperties: false
      properties:
        fact_key:
          type: string
        operator:
          type: string
        value: {}
      required:
        - fact_key
        - operator
      type: object
    MarketAppetiteConditionSource:
      additionalProperties: false
      properties:
        actor_email:
          type: string
        as_of:
          type: string
        id:
          type: string
        kind:
          type: string
        label:
          type: string
        row:
          format: int64
          type: integer
        sha256:
          type: string
        sheet:
          type: string
      required:
        - kind
        - label
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.