> ## 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.

# Due bucket counts and exact deal amounts of the filtered deals, with each filter's facet

> Due bucket counts and exact deal amounts of the filtered deals, with each filter's facet



## OpenAPI

````yaml /openapi.generated.json get /records/deals/rollups/due
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/deals/rollups/due:
    get:
      tags:
        - deals
      summary: >-
        Due bucket counts and exact deal amounts of the filtered deals, with
        each filter's facet
      description: >-
        Due bucket counts and exact deal amounts of the filtered deals, with
        each filter's facet
      operationId: getDealsDueRollup
      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: >-
            Keeps deals whose name holds these words, matched any case, spacing,
            punctuation and plural ignored.
          explode: false
          in: query
          name: q
          schema:
            description: >-
              Keeps deals whose name holds these words, matched any case,
              spacing, punctuation and plural ignored.
            type: string
        - description: >-
            Keeps Salesforce deals whose state is this deal_stage value; none
            keeps the deals whose Salesforce stage the machine does not declare.
          explode: false
          in: query
          name: deal_stage
          schema:
            description: >-
              Keeps Salesforce deals whose state is this deal_stage value; none
              keeps the deals whose Salesforce stage the machine does not
              declare.
            enum:
              - information_gathering
              - quoting
              - proposal
              - closed_won
              - closed_lost
              - closed_did_not_submit
              - none
            type: string
        - description: >-
            Keeps AMS 360 prospects whose state is this prospect_stage value;
            none keeps the prospects whose stage the machine does not declare.
          explode: false
          in: query
          name: prospect_stage
          schema:
            description: >-
              Keeps AMS 360 prospects whose state is this prospect_stage value;
              none keeps the prospects whose stage the machine does not declare.
            enum:
              - prospect
              - marketing
              - submission_to_carrier
              - quote_received
              - proposal
              - bind_request
              - binder
              - new_business
              - declined_by_customer
              - none
            type: string
        - description: >-
            Keeps deals whose stage words, ignoring case, or whose machine value
            is this text, on either machine. deal_stage and prospect_stage
            filter on one machine.
          explode: false
          in: query
          name: stage
          schema:
            description: >-
              Keeps deals whose stage words, ignoring case, or whose machine
              value is this text, on either machine. deal_stage and
              prospect_stage filter on one machine.
            type: string
        - description: Keeps deals whose next action is this one.
          explode: false
          in: query
          name: next_action
          schema:
            description: Keeps deals whose next action is this one.
            enum:
              - set_effective_date
              - past_effective
              - build_submission
              - follow_up_quotes
              - remarket_or_close
              - inactive_prospect
              - draft_proposal
              - follow_up_client
            type: string
        - description: >-
            salesforce: every Salesforce deal, each on deal_stage. ams360: every
            live AMS 360 prospect, one row per customer whether a deal matched
            it or not, each on prospect_stage. Absent: the Salesforce deals and
            the prospects no deal matched, each on its own machine.
          explode: false
          in: query
          name: source
          schema:
            description: >-
              salesforce: every Salesforce deal, each on deal_stage. ams360:
              every live AMS 360 prospect, one row per customer whether a deal
              matched it or not, each on prospect_stage. Absent: the Salesforce
              deals and the prospects no deal matched, each on its own machine.
            enum:
              - salesforce
              - ams360
            type: string
        - description: >-
            true: deals that name an account (a Salesforce deal the platform
            matched to an AMS 360 account, or an AMS 360 prospect). false: deals
            with no account.
          explode: false
          in: query
          name: matched
          schema:
            description: >-
              true: deals that name an account (a Salesforce deal the platform
              matched to an AMS 360 account, or an AMS 360 prospect). false:
              deals with no account.
            enum:
              - 'true'
              - 'false'
            type: string
        - description: >-
            Read as past_due_days=1 when true and as 0 when false, unless
            past_due_days is sent. Left out, the person's saved view or the
            default applies.
          explode: false
          in: query
          name: hide_past_due
          schema:
            description: >-
              Read as past_due_days=1 when true and as 0 when false, unless
              past_due_days is sent. Left out, the person's saved view or the
              default applies.
            enum:
              - 'true'
              - 'false'
            type: string
        - description: >-
            Leaves out deals this many days or more past their due date; a deal
            with no due date stays. 1 leaves out every past due deal. 0 turns it
            off. Left out, the person's saved view or the default applies.
          explode: false
          in: query
          name: past_due_days
          schema:
            description: >-
              Leaves out deals this many days or more past their due date; a
              deal with no due date stays. 1 leaves out every past due deal. 0
              turns it off. Left out, the person's saved view or the default
              applies.
            format: int64
            maximum: 3650
            minimum: 0
            type: integer
        - description: >-
            Keeps deals on this AMS 360 account, named by its Records account id
            in either spelling: a Salesforce deal the platform matched to it, or
            its AMS 360 prospect.
          explode: false
          in: query
          name: account_id
          schema:
            description: >-
              Keeps deals on this AMS 360 account, named by its Records account
              id in either spelling: a Salesforce deal the platform matched to
              it, or its AMS 360 prospect.
            type: string
        - description: >-
            Keeps deals whose owner, a Salesforce owner's name or an AMS 360
            prospect's producer code, is this value exactly; the seat's own
            deals, the prospects where it is the producer or CSR included, are
            the read without it, and the owner field names whose each deal is.
            The due rollup's producer facet lists the values the seat's deals
            hold.
          explode: false
          in: query
          name: producer
          schema:
            description: >-
              Keeps deals whose owner, a Salesforce owner's name or an AMS 360
              prospect's producer code, is this value exactly; the seat's own
              deals, the prospects where it is the producer or CSR included, are
              the read without it, and the owner field names whose each deal is.
              The due rollup's producer facet lists the values the seat's deals
              hold.
            type: string
        - description: >-
            Keeps deals whose deal_type is this value exactly: the Salesforce
            opportunity type (New Business, Existing Business, Cross-Sell), New
            Business for an AMS 360 prospect. The due rollup's deal_type facet
            lists the values the seat's deals hold.
          explode: false
          in: query
          name: deal_type
          schema:
            description: >-
              Keeps deals whose deal_type is this value exactly: the Salesforce
              opportunity type (New Business, Existing Business, Cross-Sell),
              New Business for an AMS 360 prospect. The due rollup's deal_type
              facet lists the values the seat's deals hold.
            maxLength: 64
            type: string
        - description: >-
            Keeps AMS 360 rows of this kind, read from AMS 360:
            renewal_remarketing for an account whose open submission group is
            coded renewal (REN); new_line for a client's open group coded new
            business (NB); new_business for a suspect or prospect otherwise. A
            Salesforce deal has no submission kind. The due rollup's
            submission_kind facet counts each kind.
          explode: false
          in: query
          name: submission_kind
          schema:
            description: >-
              Keeps AMS 360 rows of this kind, read from AMS 360:
              renewal_remarketing for an account whose open submission group is
              coded renewal (REN); new_line for a client's open group coded new
              business (NB); new_business for a suspect or prospect otherwise. A
              Salesforce deal has no submission kind. The due rollup's
              submission_kind facet counts each kind.
            enum:
              - new_business
              - renewal_remarketing
              - new_line
            type: string
        - description: >-
            Comma-separated stage values to leave out, from the requested
            source's machine, plus no_date for deals with no due date. Empty or
            none hides nothing. Left out, the person's saved view or the default
            applies. A read with no source takes no_date only. The view block
            lists the values with their counts.
          explode: false
          in: query
          name: hide.stage
          schema:
            description: >-
              Comma-separated stage values to leave out, from the requested
              source's machine, plus no_date for deals with no due date. Empty
              or none hides nothing. Left out, the person's saved view or the
              default applies. A read with no source takes no_date only. The
              view block lists the values with their counts.
            type: string
        - description: >-
            Leaves out deals with no touch in this many days, except a deal with
            an open follow-up ahead, a binder or a due date ahead. A deal with
            no touch date stays. 0 turns it off. Left out, the person's saved
            view or the default applies.
          explode: false
          in: query
          name: no_touch_days
          schema:
            description: >-
              Leaves out deals with no touch in this many days, except a deal
              with an open follow-up ahead, a binder or a due date ahead. A deal
              with no touch date stays. 0 turns it off. Left out, the person's
              saved view or the default applies.
            format: int64
            maximum: 3650
            minimum: 0
            type: integer
        - description: >-
            Leaves out deals created more than this many days ago. 0 turns it
            off. Left out, the person's saved view or the default applies.
          explode: false
          in: query
          name: created_days
          schema:
            description: >-
              Leaves out deals created more than this many days ago. 0 turns it
              off. Left out, the person's saved view or the default applies.
            format: int64
            maximum: 3650
            minimum: 0
            type: integer
        - description: >-
            opportunities, the default: the deals every other parameter
            describes. leads: the seat's open Salesforce leads (neither
            converted nor unqualified), newest first by created day, each in the
            no_date bucket with kind lead. all: every opportunity in the
            requested order, then the open leads newest first; a hidden no_date
            bucket hides the leads. leads and all take source=salesforce and no
            stage, next action, matched, account, deal_type or q filter;
            producer narrows the leads by owner, and the other hide filters
            narrow opportunities only.
          explode: false
          in: query
          name: kind
          schema:
            description: >-
              opportunities, the default: the deals every other parameter
              describes. leads: the seat's open Salesforce leads (neither
              converted nor unqualified), newest first by created day, each in
              the no_date bucket with kind lead. all: every opportunity in the
              requested order, then the open leads newest first; a hidden
              no_date bucket hides the leads. leads and all take
              source=salesforce and no stage, next action, matched, account,
              deal_type or q filter; producer narrows the leads by owner, and
              the other hide filters narrow opportunities only.
            enum:
              - opportunities
              - leads
              - all
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordDealsDue'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '424':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Failed Dependency
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Gateway Timeout
      security:
        - bearer: []
components:
  schemas:
    RecordDealsDue:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/DealsDue'
        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
    DealsDue:
      additionalProperties: false
      properties:
        buckets:
          description: >-
            Every due bucket in due order, also when it holds no deal. past_due
            is left out while past_due_days is 1.
          items:
            $ref: '#/components/schemas/DealDueBucket'
          type:
            - array
            - 'null'
        facets:
          $ref: '#/components/schemas/DealsFacets'
          description: >-
            The values each filter can take, with their deal counts. A facet
            counts the deals every other filter keeps, so its own filter never
            hides its other values.
      required:
        - buckets
        - facets
      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
    DealDueBucket:
      additionalProperties: false
      properties:
        bucket:
          enum:
            - past_due
            - d0_30
            - d31_60
            - d61_90
            - d91_180
            - d180_plus
            - no_date
          type: string
        count:
          format: int64
          type: integer
        expected_revenue:
          description: >-
            Exact decimal sum over Salesforce deals only; missing amounts
            contribute nothing.
          type: string
        premium:
          description: >-
            Exact decimal sum over AMS-only deals only; matched AMS premium is
            excluded.
          type: string
        weighted_revenue:
          description: >-
            Exact decimal sum of the Salesforce deals' weighted revenue; missing
            amounts contribute nothing.
          type: string
      required:
        - bucket
        - count
        - expected_revenue
        - weighted_revenue
        - premium
      type: object
    DealsFacets:
      additionalProperties: false
      properties:
        deal_type:
          description: >-
            Each deal type the other filters keep, by count then name, the
            values the deal_type filter takes.
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
        next_action:
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
        past_due:
          description: >-
            Past due deals the other filters keep: what past_due_days leaves
            out.
          format: int64
          type: integer
        producer:
          description: >-
            Each deal owner the other filters keep, the values the producer
            filter takes.
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
        source:
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
        stage:
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
        submission_kind:
          description: >-
            Each submission kind the other filters keep, in new_business,
            renewal_remarketing, new_line order, the values the submission_kind
            filter takes. The counts add up to the AMS 360 rows the other
            filters keep.
          items:
            $ref: '#/components/schemas/DealFacetValue'
          type:
            - array
            - 'null'
      required:
        - stage
        - next_action
        - source
        - producer
        - deal_type
        - submission_kind
        - past_due
      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
    DealFacetValue:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        label:
          description: The words for the value, for a stage and a declared next action.
          type: string
        machine:
          description: >-
            The machine a stage value belongs to, and the query parameter that
            filters on it.
          enum:
            - deal_stage
            - prospect_stage
          type: string
        value:
          description: >-
            The value the filter takes. A stage is its machine's value: send it
            as the query parameter its machine names.
          type: string
      required:
        - value
        - count
      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
  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.