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

# List the policies in the subject's book

> One cursor page of policy terms the acting seat may read, narrowed by the subject and the filters: view=basic in expiration order, view=full the policy register.



## OpenAPI

````yaml /openapi.generated.json get /records/policies
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/policies:
    get:
      tags:
        - policies
      summary: List the policies in the subject's book
      description: >-
        One cursor page of policy terms the acting seat may read, narrowed by
        the subject and the filters: view=basic in expiration order, view=full
        the policy register.
      operationId: listPolicies
      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 book to read, as tokens, repeatable: own (the acting seat's own
            codes), book:&lt;code&gt;, producer:&lt;me|code&gt;,
            client_manager:&lt;me|code&gt; (the two axes AND; repeats within one
            OR), member:&lt;member id&gt; (read as another member). Absent: the
            seat's can-open boundary. Frozen in the cursor.
          explode: true
          in: query
          name: subject
          schema:
            description: >-
              The book to read, as tokens, repeatable: own (the acting seat's
              own codes), book:&lt;code&gt;, producer:&lt;me|code&gt;,
              client_manager:&lt;me|code&gt; (the two axes AND; repeats within
              one OR), member:&lt;member id&gt; (read as another member).
              Absent: the seat's can-open boundary. Frozen in the cursor.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Page size. Defaults to 25. For view=cancellations, larger values are
            coerced to 5000. view=basic accepts up to 10000; view=full,
            view=renewal and view=certificates_due accept up to 100. Values
            above each view's ceiling are reduced with a LIMIT_COERCED warning.
            AMS 360 bound-seat policy-number lookup accepts up to 200.
          explode: false
          in: query
          name: limit
          schema:
            description: >-
              Page size. Defaults to 25. For view=cancellations, larger values
              are coerced to 5000. view=basic accepts up to 10000; view=full,
              view=renewal and view=certificates_due accept up to 100. Values
              above each view's ceiling are reduced with a LIMIT_COERCED
              warning. AMS 360 bound-seat policy-number lookup accepts up to
              200.
            format: int64
            minimum: 1
            type: integer
        - description: >-
            The opaque page.next of the previous page. Filters, sort and subject
            are frozen inside it.
          explode: false
          in: query
          name: cursor
          schema:
            description: >-
              The opaque page.next of the previous page. Filters, sort and
              subject are frozen inside it.
            type: string
        - description: true adds total, the row count of the whole relation.
          explode: false
          in: query
          name: include_total
          schema:
            description: true adds total, the row count of the whole relation.
            type: boolean
        - description: >-
            view=full. true reads the page's rows and page.next alone, and the
            answer says so with rows_only: true. total, facets, view and rollups
            are absent, never 0: the read does not count them. Not with
            include_total, facets or rollups (400 ROWS_ONLY_WITH_FIGURES). A
            cursor does not carry it: send it on every page of a rows-only list.
          explode: false
          in: query
          name: rows_only
          schema:
            description: >-
              view=full. true reads the page's rows and page.next alone, and the
              answer says so with rows_only: true. total, facets, view and
              rollups are absent, never 0: the read does not count them. Not
              with include_total, facets or rollups (400
              ROWS_ONLY_WITH_FIGURES). A cursor does not carry it: send it on
              every page of a rows-only list.
            type: boolean
        - description: >-
            view=full. true reads the figures alone, with no rows. total (with
            include_total), facets, view and rollups each match the full read's
            for the same filters; data is empty, page.next is absent and the
            answer says figures_only: true. The register statement keeps no page
            row. Not with rows_only, cursor or offset (400
            FIGURES_ONLY_WITH_ROWS).
          explode: false
          in: query
          name: figures_only
          schema:
            description: >-
              view=full. true reads the figures alone, with no rows. total (with
              include_total), facets, view and rollups each match the full
              read's for the same filters; data is empty, page.next is absent
              and the answer says figures_only: true. The register statement
              keeps no page row. Not with rows_only, cursor or offset (400
              FIGURES_ONLY_WITH_ROWS).
            type: boolean
        - description: >-
            Rows to skip, register views only: at most 1000000, not with cursor.
            A later page continues with page.next.
          explode: false
          in: query
          name: offset
          schema:
            description: >-
              Rows to skip, register views only: at most 1000000, not with
              cursor. A later page continues with page.next.
            format: int64
            minimum: 0
            type: integer
        - description: view=renewal. Exact Records policy identity.
          explode: false
          in: query
          name: policy_id
          schema:
            description: view=renewal. Exact Records policy identity.
            type: string
        - description: >-
            view=renewal. Keeps renewals at one workflow stage. not_recorded
            keeps those with no stage recorded; not_started keeps those too,
            beside the renewals recorded as not started. It matches the stage on
            record, not the stage the renewal page shows, so a row it keeps can
            show another stage.
          explode: false
          in: query
          name: stage
          schema:
            description: >-
              view=renewal. Keeps renewals at one workflow stage. not_recorded
              keeps those with no stage recorded; not_started keeps those too,
              beside the renewals recorded as not started. It matches the stage
              on record, not the stage the renewal page shows, so a row it keeps
              can show another stage.
            enum:
              - not_recorded
              - not_started
              - reviewing
              - hold
              - remarketing
              - renewing_as_is
              - quoted
              - proposal_out
              - bind_requested
              - bound
              - non_renewed
              - lost
              - closed
            type: string
        - description: >-
            view=renewal. Keeps renewals at one risk level. The read derives the
            level for each renewal (from its workflow stage and days to
            expiration, among other things); it is not a stored field.
          explode: false
          in: query
          name: risk
          schema:
            description: >-
              view=renewal. Keeps renewals at one risk level. The read derives
              the level for each renewal (from its workflow stage and days to
              expiration, among other things); it is not a stored field.
            enum:
              - at_risk
              - watch
              - steady
            type: string
        - description: >-
            view=renewal. Keeps renewals of one renewal nature. Sending it
            computes nature, risk and facets in SQL.
          explode: false
          in: query
          name: renewal_nature
          schema:
            description: >-
              view=renewal. Keeps renewals of one renewal nature. Sending it
              computes nature, risk and facets in SQL.
            enum:
              - renews
              - one_time
              - multi_year
              - bond_continuous
              - bond_term
              - non_renewed
            type: string
        - description: >-
            view=renewal. only returns closed lines; absent excludes them from
            rows and facets.
          explode: false
          in: query
          name: closed
          schema:
            description: >-
              view=renewal. only returns closed lines; absent excludes them from
              rows and facets.
            enum:
              - only
            type: string
        - description: view=renewal. The renewal desk's assignee code.
          explode: false
          in: query
          name: desk_assigned_to
          schema:
            description: view=renewal. The renewal desk's assignee code.
            type: string
        - description: >-
            view=renewal. issued keeps renewals with an issued certificate;
            contractor_board_due keeps those due a contractor board reminder
            this week. omit requires steps=omit and no facets, rollups or work
            view; certificates is then unreachable with reason not_requested.
            contractor_board_due fills renewal.contractor_board_reminder_on and
            reaches the 90-day reminder with days_to_expiration[lte] of 97 or
            more.
          explode: false
          in: query
          name: certificates
          schema:
            description: >-
              view=renewal. issued keeps renewals with an issued certificate;
              contractor_board_due keeps those due a contractor board reminder
              this week. omit requires steps=omit and no facets, rollups or work
              view; certificates is then unreachable with reason not_requested.
              contractor_board_due fills renewal.contractor_board_reminder_on
              and reaches the 90-day reminder with days_to_expiration[lte] of 97
              or more.
            enum:
              - issued
              - contractor_board_due
              - omit
            type: string
        - description: >-
            view=renewal. only keeps renewals whose account and renewal period
            meet the retention focus rule. The rule is revenue plus fees of
            $10,000 or more for the period under one department line, so a seat
            whose field classes withhold carrier compensation is refused it with
            403 FIELD_DENIED.
          explode: false
          in: query
          name: focus
          schema:
            description: >-
              view=renewal. only keeps renewals whose account and renewal period
              meet the retention focus rule. The rule is revenue plus fees of
              $10,000 or more for the period under one department line, so a
              seat whose field classes withhold carrier compensation is refused
              it with 403 FIELD_DENIED.
            enum:
              - only
            type: string
        - description: >-
            view=renewal. policy (default): one row per renewal; account: each
            account's nearest renewal.
          explode: false
          in: query
          name: grain
          schema:
            description: >-
              view=renewal. policy (default): one row per renewal; account: each
              account's nearest renewal.
            enum:
              - policy
              - account
            type: string
        - description: >-
            view=renewal. Inclusive lower day bound, -30 to the window less one.
            It sits inside the days_to_expiration[lte] window. A sent value
            always applies, to the rows, the filtered total and the facets
            alike: 0 is from today and leaves out the renewals already past
            their expiration, a negative reaches that many days behind it (the
            register keeps renewals up to 30 days past expiration). Absent,
            there is no lower bound, unless days_to_expiration[lt] is sent: 1 or
            more bands the page only, from 0; 0 or below bands from -30 in the
            rows, total and facets.
          explode: false
          in: query
          name: days_to_expiration[gte]
          schema:
            description: >-
              view=renewal. Inclusive lower day bound, -30 to the window less
              one. It sits inside the days_to_expiration[lte] window. A sent
              value always applies, to the rows, the filtered total and the
              facets alike: 0 is from today and leaves out the renewals already
              past their expiration, a negative reaches that many days behind it
              (the register keeps renewals up to 30 days past expiration).
              Absent, there is no lower bound, unless days_to_expiration[lt] is
              sent: 1 or more bands the page only, from 0; 0 or below bands from
              -30 in the rows, total and facets.
            pattern: ^-?[0-9]{1,3}$
            type: string
        - description: >-
            view=renewal. Exclusive upper day bound, -29 to the window (default
            the window). At 0 or below with days_to_expiration[gte] absent, the
            band starts 30 days back (the lookback), so lt=0 is the renewals
            past their date; at 0 or below it narrows the filtered total and the
            facets too.
          explode: false
          in: query
          name: days_to_expiration[lt]
          schema:
            description: >-
              view=renewal. Exclusive upper day bound, -29 to the window
              (default the window). At 0 or below with days_to_expiration[gte]
              absent, the band starts 30 days back (the lookback), so lt=0 is
              the renewals past their date; at 0 or below it narrows the
              filtered total and the facets too.
            pattern: ^-?[0-9]{1,3}$
            type: string
        - description: >-
            view=renewal, repeatable. Keeps renewals in any of these states. It
            applies to the rows, the filtered total and the facets, and narrows
            the renewal_state, producer, client_manager, office, market,
            policy_line_of_business and carrier_attribution facets; the
            renewal_state facet does not leave out its own filter, so it counts
            only the states asked for.
          explode: true
          in: query
          name: renewal_state
          schema:
            description: >-
              view=renewal, repeatable. Keeps renewals in any of these states.
              It applies to the rows, the filtered total and the facets, and
              narrows the renewal_state, producer, client_manager, office,
              market, policy_line_of_business and carrier_attribution facets;
              the renewal_state facet does not leave out its own filter, so it
              counts only the states asked for.
            items:
              enum:
                - open
                - information
                - remarketing
                - quoted
                - proposal_out
                - bind_requested
                - offer_in
                - renewed
                - overdue
                - renewed_then_cancelled
                - rewritten
                - lost
                - cancelled
                - non_renewed
                - confirm
              type: string
            type:
              - array
              - 'null'
        - description: >-
            view=renewal. true: open work, the upcoming renewals the Renewals
            page lists; false: finished. Finished is renewed, lost and the like.
            It narrows the rows, the filtered total and the facets; with
            days_to_expiration[lt]=0, true is the open renewals past their date.
          explode: false
          in: query
          name: renewal_open
          schema:
            description: >-
              view=renewal. true: open work, the upcoming renewals the Renewals
              page lists; false: finished. Finished is renewed, lost and the
              like. It narrows the rows, the filtered total and the facets; with
              days_to_expiration[lt]=0, true is the open renewals past their
              date.
            enum:
              - 'true'
              - 'false'
            type: string
        - description: >-
            view=renewal. omit serves each row's standing without its renewal
            steps, and the step statement does not run. steps, next_step_key,
            next_step_label, next_status_key, next_step_due, next_step_args,
            available_decisions and hold_path are then unreachable with reason
            not_requested.
          explode: false
          in: query
          name: steps
          schema:
            description: >-
              view=renewal. omit serves each row's standing without its renewal
              steps, and the step statement does not run. steps, next_step_key,
              next_step_label, next_status_key, next_step_due, next_step_args,
              available_decisions and hold_path are then unreachable with reason
              not_requested.
            enum:
              - omit
            type: string
        - description: >-
            view=cancellations, required. The first cancellation effective date
            (YYYY-MM-DD).
          explode: false
          in: query
          name: cancellation_effective_date[gte]
          schema:
            description: >-
              view=cancellations, required. The first cancellation effective
              date (YYYY-MM-DD).
            type: string
        - description: >-
            view=cancellations, required. The last cancellation effective date
            (YYYY-MM-DD), at most 366 days after the first.
          explode: false
          in: query
          name: cancellation_effective_date[lte]
          schema:
            description: >-
              view=cancellations, required. The last cancellation effective date
              (YYYY-MM-DD), at most 366 days after the first.
            type: string
        - description: >-
            view=cancellations. Whether policies AMS 360 reinstated after their
            cancellation are kept. exclude (default) drops them; include keeps
            each with its reinstated_on; only keeps just those.
          explode: false
          in: query
          name: reinstated
          schema:
            description: >-
              view=cancellations. Whether policies AMS 360 reinstated after
              their cancellation are kept. exclude (default) drops them; include
              keeps each with its reinstated_on; only keeps just those.
            enum:
              - exclude
              - include
              - only
            type: string
        - description: >-
            view=cancellations, repeatable, at most 20. An office by name or
            agency code as the reader wrote it. Each resolves only against the
            offices the acting seat's scope reaches; one that reaches none is
            echoed as an OFFICE_NOT_VISIBLE warning and adds no rows.
          explode: true
          in: query
          name: office_name
          schema:
            description: >-
              view=cancellations, repeatable, at most 20. An office by name or
              agency code as the reader wrote it. Each resolves only against the
              offices the acting seat's scope reaches; one that reaches none is
              echoed as an OFFICE_NOT_VISIBLE warning and adds no rows.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            A named work window with its own date bounds, order and row cap.
            Omit date/order/page-size parameters with this selector.
          explode: false
          in: query
          name: work_view
          schema:
            description: >-
              A named work window with its own date bounds, order and row cap.
              Omit date/order/page-size parameters with this selector.
            enum:
              - today
              - market_insight
              - certificates
              - retention_review
            type: string
        - description: >-
            basic (default): policy terms; full: policy register; renewal:
            renewal register; certificates_due: renewals with certificates;
            cancellations: cancelled terms. basic: the policy term rows in
            expiration order; its limit goes up to 10000, for a walk of the
            whole relation. full: the register's rows with its filters, sorts
            and facets. renewal: the renewal register's rows (each term in force
            at the read pin expiring inside the window, with its renewal block).
            certificates_due: renewal rows whose policy carries a live
            certificate, soonest first, reading the subject,
            days_to_expiration[lte] (default 30), limit, offset and
            include_total. cancellations: the terms AMS 360 recorded a
            cancellation on inside cancellation_effective_date[gte] to [lte],
            oldest first, reading the subject, its own filters, world,
            policy_line_of_business, limit, offset, include_total and
            facets=office,office_covered.
          explode: false
          in: query
          name: view
          schema:
            description: >-
              basic (default): policy terms; full: policy register; renewal:
              renewal register; certificates_due: renewals with certificates;
              cancellations: cancelled terms. basic: the policy term rows in
              expiration order; its limit goes up to 10000, for a walk of the
              whole relation. full: the register's rows with its filters, sorts
              and facets. renewal: the renewal register's rows (each term in
              force at the read pin expiring inside the window, with its renewal
              block). certificates_due: renewal rows whose policy carries a live
              certificate, soonest first, reading the subject,
              days_to_expiration[lte] (default 30), limit, offset and
              include_total. cancellations: the terms AMS 360 recorded a
              cancellation on inside cancellation_effective_date[gte] to [lte],
              oldest first, reading the subject, its own filters, world,
              policy_line_of_business, limit, offset, include_total and
              facets=office,office_covered.
            enum:
              - basic
              - full
              - renewal
              - certificates_due
              - cancellations
            type: string
        - description: >-
            Keeps policies whose line of business equals this text. view=basic
            matches it exactly; view=full, view=renewal and view=cancellations
            ignore case. view=certificates_due and account_scope=register do not
            take it.
          explode: false
          in: query
          name: policy_line_of_business
          schema:
            description: >-
              Keeps policies whose line of business equals this text. view=basic
              matches it exactly; view=full, view=renewal and view=cancellations
              ignore case. view=certificates_due and account_scope=register do
              not take it.
            type: string
        - description: >-
            view=full and view=renewal. Repeatable: products to keep (ids or
            names, GET /records/products). OR within product and product_type,
            AND with other filters. An id outside the org's list is a 400
            (UNKNOWN_PRODUCT); an unreadable list is a 503
            (PRODUCT_LIST_UNAVAILABLE); a live AMS 360 read, which carries no
            product, is a 424 (FILTER_NOT_IN_SOURCE). The product facet's No
            product value (the org's unknown member, the source's own no-product
            row) selects the policies recorded with no product. Not with
            hide.product or hide.product_type.
          explode: true
          in: query
          name: product
          schema:
            description: >-
              view=full and view=renewal. Repeatable: products to keep (ids or
              names, GET /records/products). OR within product and product_type,
              AND with other filters. An id outside the org's list is a 400
              (UNKNOWN_PRODUCT); an unreadable list is a 503
              (PRODUCT_LIST_UNAVAILABLE); a live AMS 360 read, which carries no
              product, is a 424 (FILTER_NOT_IN_SOURCE). The product facet's No
              product value (the org's unknown member, the source's own
              no-product row) selects the policies recorded with no product. Not
              with hide.product or hide.product_type.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            view=full and view=renewal. Repeatable: product types to keep
            (type:&lt;name&gt;, from GET /records/products). OR'd with product.
            A type outside the org's list is a 400 (UNKNOWN_PRODUCT_TYPE);
            otherwise refused as product is.
          explode: true
          in: query
          name: product_type
          schema:
            description: >-
              view=full and view=renewal. Repeatable: product types to keep
              (type:&lt;name&gt;, from GET /records/products). OR'd with
              product. A type outside the org's list is a 400
              (UNKNOWN_PRODUCT_TYPE); otherwise refused as product is.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Terms expiring within this many days: renewal and full 1 to 400
            (default the seat's horizon); basic 1 to 365; certificates_due
            default 30. Days are counted from the read date; the seat's horizon
            is its renewal_horizon_days. basic: 1 to 365 with no default; the
            window always ends that many days after the read date, and
            policy_expiration_date[gte] moves only its start
            (policy_expiration_date[lte], when sent, is the end in place of it).
            full: the window of status=expiring (1 to 400, default is the seat
            renewal_horizon_days). renewal: 1 to 400, default is the seat
            renewal_horizon_days. certificates_due: 1 to 400, default 30.
            view=cancellations does not take it.
          explode: false
          in: query
          name: days_to_expiration[lte]
          schema:
            description: >-
              Terms expiring within this many days: renewal and full 1 to 400
              (default the seat's horizon); basic 1 to 365; certificates_due
              default 30. Days are counted from the read date; the seat's
              horizon is its renewal_horizon_days. basic: 1 to 365 with no
              default; the window always ends that many days after the read
              date, and policy_expiration_date[gte] moves only its start
              (policy_expiration_date[lte], when sent, is the end in place of
              it). full: the window of status=expiring (1 to 400, default is the
              seat renewal_horizon_days). renewal: 1 to 400, default is the seat
              renewal_horizon_days. certificates_due: 1 to 400, default 30.
              view=cancellations does not take it.
            pattern: ^[0-9]{1,3}$
            patternDescription: >-
              a whole number of days: 1 to 400 for view=renewal and view=full
              (leave it out for the seat's renewal horizon), 1 to 365 for
              view=basic
            type: string
        - description: >-
            view=basic and view=renewal. The policies of one account (its
            instance key).
          explode: false
          in: query
          name: account_id
          schema:
            description: >-
              view=basic and view=renewal. The policies of one account (its
              instance key).
            type: string
        - description: >-
            view=basic. The policies of these accounts: the parameter repeated
            once per account id or comma-separated ids, at most 200, read as one
            statement per page. An id the subject cannot read adds no row. Not
            with account_id or account_scope. Each row serves its identity half
            without the premium (number, line, carrier, dates, owners, in force)
            unless include=term.
          explode: true
          in: query
          name: account_id[in]
          schema:
            description: >-
              view=basic. The policies of these accounts: the parameter repeated
              once per account id or comma-separated ids, at most 200, read as
              one statement per page. An id the subject cannot read adds no row.
              Not with account_id or account_scope. Each row serves its identity
              half without the premium (number, line, carrier, dates, owners, in
              force) unless include=term.
            items:
              type: string
            maxItems: 200
            type:
              - array
              - 'null'
        - description: >-
            view=basic with account_id[in]: term adds each row's term half (the
            premium with its quality and basis) and product.
          explode: false
          in: query
          name: include
          schema:
            description: >-
              view=basic with account_id[in]: term adds each row's term half
              (the premium with its quality and basis) and product.
            enum:
              - term
            type: string
        - description: >-
            view=basic with account_id. all (default): every term on the
            account, the policies read. register: the account's policies as the
            account detail serves them (the seat's register scope, with the
            account executive, representative and revenue columns), in one page;
            it takes no date, line, instance or cursor.
          explode: false
          in: query
          name: account_scope
          schema:
            description: >-
              view=basic with account_id. all (default): every term on the
              account, the policies read. register: the account's policies as
              the account detail serves them (the seat's register scope, with
              the account executive, representative and revenue columns), in one
              page; it takes no date, line, instance or cursor.
            enum:
              - all
              - register
            type: string
        - description: >-
            view=basic. Terms expiring on or after this date (YYYY-MM-DD or RFC
            3339).
          explode: false
          in: query
          name: policy_expiration_date[gte]
          schema:
            description: >-
              view=basic. Terms expiring on or after this date (YYYY-MM-DD or
              RFC 3339).
            type: string
        - description: >-
            view=basic. Terms expiring on or before this date (YYYY-MM-DD or RFC
            3339).
          explode: false
          in: query
          name: policy_expiration_date[lte]
          schema:
            description: >-
              view=basic. Terms expiring on or before this date (YYYY-MM-DD or
              RFC 3339).
            type: string
        - description: >-
            view=basic. The source instance (datasource) the policies were read
            from.
          explode: false
          in: query
          name: instance
          schema:
            description: >-
              view=basic. The source instance (datasource) the policies were
              read from.
            type: string
        - description: >-
            basic: exact number. Matching ignores case, spaces and punctuation.
            AMS 360 bound seats: this filter plus subject and pagination only,
            up to 200 rows per page.
          explode: false
          in: query
          name: policy_number
          schema:
            description: >-
              basic: exact number. Matching ignores case, spaces and
              punctuation. AMS 360 bound seats: this filter plus subject and
              pagination only, up to 200 rows per page.
            type: string
        - description: view=basic. In force on date.
          explode: false
          in: query
          name: active_on
          schema:
            description: view=basic. In force on date.
            type: string
        - description: view=basic. Up to 100 policy ids.
          explode: true
          in: query
          name: id
          schema:
            description: view=basic. Up to 100 policy ids.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: view=full. A prefix of the policy number or of the account's name.
          explode: false
          in: query
          name: q
          schema:
            description: view=full. A prefix of the policy number or of the account's name.
            type: string
        - description: >-
            view=full: absent, hide.status applies; expiring: in force and
            within days_to_expiration[lte]. view=basic takes in_force (terms in
            force on the read date; an active_on you send wins) and all (no
            filter, the basic default); expiring is a 400 there.
          explode: false
          in: query
          name: status
          schema:
            description: >-
              view=full: absent, hide.status applies; expiring: in force and
              within days_to_expiration[lte]. view=basic takes in_force (terms
              in force on the read date; an active_on you send wins) and all (no
              filter, the basic default); expiring is a 400 there.
            enum:
              - in_force
              - expiring
              - all
            type: string
        - description: >-
            view=full. Statuses to hide, comma-separated: in_force, ended
            (expired or not yet in force), cancelled, or none. Default
            cancelled,ended, which keeps in-force terms. Not with status. Left
            out with status, world and the other hide filter, the person's saved
            view or the default applies. The view block counts each status under
            every other filter.
          explode: false
          in: query
          name: hide.status
          schema:
            description: >-
              view=full. Statuses to hide, comma-separated: in_force, ended
              (expired or not yet in force), cancelled, or none. Default
              cancelled,ended, which keeps in-force terms. Not with status. Left
              out with status, world and the other hide filter, the person's
              saved view or the default applies. The view block counts each
              status under every other filter.
            type: string
        - description: >-
            view=full. Worlds to hide, comma-separated: commercial, personal,
            benefits, life, other, or none. Default none. Not with world. Left
            out with status, world and the other hide filter, the person's saved
            view or the default applies.
          explode: false
          in: query
          name: hide.world
          schema:
            description: >-
              view=full. Worlds to hide, comma-separated: commercial, personal,
              benefits, life, other, or none. Default none. Not with world. Left
              out with status, world and the other hide filter, the person's
              saved view or the default applies.
            type: string
        - description: >-
            view=full and view=renewal. Repeatable: products to hide, each a
            product id or name (GET /records/products) or a value facets=product
            returns, its No product value (the org's unknown member) included;
            none hides nothing. A policy is hidden when its product is one of
            them; a policy with no product row stays. Not with product or
            product_type. Default none; a saved view does not carry it. Refused
            as product is: an id outside the org's list is a 400
            (UNKNOWN_PRODUCT), an unreadable list a 503
            (PRODUCT_LIST_UNAVAILABLE), a live AMS 360 read a 424
            (FILTER_NOT_IN_SOURCE). The product facet counts without it, and on
            view=full the view block's hidden.by_filter[hide.product] counts the
            policies it hides.
          explode: true
          in: query
          name: hide.product
          schema:
            description: >-
              view=full and view=renewal. Repeatable: products to hide, each a
              product id or name (GET /records/products) or a value
              facets=product returns, its No product value (the org's unknown
              member) included; none hides nothing. A policy is hidden when its
              product is one of them; a policy with no product row stays. Not
              with product or product_type. Default none; a saved view does not
              carry it. Refused as product is: an id outside the org's list is a
              400 (UNKNOWN_PRODUCT), an unreadable list a 503
              (PRODUCT_LIST_UNAVAILABLE), a live AMS 360 read a 424
              (FILTER_NOT_IN_SOURCE). The product facet counts without it, and
              on view=full the view block's hidden.by_filter[hide.product]
              counts the policies it hides.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            view=full and view=renewal. Repeatable: product types to hide
            (type:&lt;name&gt;, from GET /records/products), each standing for
            every product of the type; with hide.product, a policy is hidden
            when either names its product. Not with product or product_type. A
            type outside the org's list is a 400 (UNKNOWN_PRODUCT_TYPE);
            otherwise refused as hide.product is.
          explode: true
          in: query
          name: hide.product_type
          schema:
            description: >-
              view=full and view=renewal. Repeatable: product types to hide
              (type:&lt;name&gt;, from GET /records/products), each standing for
              every product of the type; with hide.product, a policy is hidden
              when either names its product. Not with product or product_type. A
              type outside the org's list is a 400 (UNKNOWN_PRODUCT_TYPE);
              otherwise refused as hide.product is.
            items:
              type: string
            type:
              - array
              - 'null'
        - description: >-
            view=full and view=renewal. One book; all is every book. With no
            book named, view=renewal leaves out benefits and life renewals (a
            renewal list is a property and casualty desk's); view=full reads
            every book; view=cancellations reads every book unless one is named.
          explode: false
          in: query
          name: world
          schema:
            description: >-
              view=full and view=renewal. One book; all is every book. With no
              book named, view=renewal leaves out benefits and life renewals (a
              renewal list is a property and casualty desk's); view=full reads
              every book; view=cancellations reads every book unless one is
              named.
            enum:
              - commercial
              - personal
              - benefits
              - life
              - other
              - all
            type: string
        - description: view=full. The carrier, as the register names it.
          explode: false
          in: query
          name: carrier_attribution
          schema:
            description: view=full. The carrier, as the register names it.
            type: string
        - description: >-
            view=full. The AM Best rating of each policy's writing company, from
            the agency's company list. not_rated: AM Best's own NR, the carriers
            a signed non-AM Best placement acknowledgement covers. not_on_file:
            the writing company has no AM Best rating on file (often an
            intermediary in the writing company field), so its rating is
            unknown. Each row then carries am_best_company, the writing company
            whose rating matched. The live AMS 360 read refuses it
            (FILTER_NOT_IN_SOURCE).
          explode: false
          in: query
          name: am_best_rating
          schema:
            description: >-
              view=full. The AM Best rating of each policy's writing company,
              from the agency's company list. not_rated: AM Best's own NR, the
              carriers a signed non-AM Best placement acknowledgement covers.
              not_on_file: the writing company has no AM Best rating on file
              (often an intermediary in the writing company field), so its
              rating is unknown. Each row then carries am_best_company, the
              writing company whose rating matched. The live AMS 360 read
              refuses it (FILTER_NOT_IN_SOURCE).
            enum:
              - not_rated
              - not_on_file
            type: string
        - description: view=full. A reporting market; all is no filter.
          explode: false
          in: query
          name: market
          schema:
            description: view=full. A reporting market; all is no filter.
            type: string
        - description: >-
            view=full: an office by name or agency code. A name resolves only
            against the offices the acting seat's scope reaches and narrows to
            every office it names, echoed as an OFFICE_RESOLVED warning with
            each office's label and code; a name that reaches none reads no rows
            and is echoed as OFFICE_NOT_VISIBLE. view=renewal: an office
            (agency) code.
          explode: false
          in: query
          name: office
          schema:
            description: >-
              view=full: an office by name or agency code. A name resolves only
              against the offices the acting seat's scope reaches and narrows to
              every office it names, echoed as an OFFICE_RESOLVED warning with
              each office's label and code; a name that reaches none reads no
              rows and is echoed as OFFICE_NOT_VISIBLE. view=renewal: an office
              (agency) code.
            type: string
        - description: view=full. Premium floor in whole dollars.
          explode: false
          in: query
          name: full_term_premium_effective[gte]
          schema:
            description: view=full. Premium floor in whole dollars.
            pattern: ^[0-9]{1,12}$
            type: string
        - description: >-
            view=full and view=renewal. Words that each start a word of an
            owner's name, or equal an owner's AMS 360 code, in any order, at
            most 64 characters. It narrows the producer and client_manager
            facets' lists (search a list the facet cap cut) and selects no
            policy, moves no count and reads under the same admission. With
            facets=producer or facets=client_manager at limit=1 it is the
            one-facet read.
          explode: false
          in: query
          name: owner_q
          schema:
            description: >-
              view=full and view=renewal. Words that each start a word of an
              owner's name, or equal an owner's AMS 360 code, in any order, at
              most 64 characters. It narrows the producer and client_manager
              facets' lists (search a list the facet cap cut) and selects no
              policy, moves no count and reads under the same admission. With
              facets=producer or facets=client_manager at limit=1 it is the
              one-facet read.
            maxLength: 64
            type: string
        - description: >-
            Sort key (default policy_expiration_date; view=basic: only it).
            view=cancellations sorts by cancelled_on (its default, ascending),
            account_name, office or cancel_type, a leading - reversing the key;
            every other view refuses those three keys, and view=cancellations
            refuses the other keys. raw_producer_name sorts view=full only.
            contractor_board_reminder_on sorts view=renewal with
            certificates=contractor_board_due only, by the day each reminder is
            due.
          explode: false
          in: query
          name: sort
          schema:
            description: >-
              Sort key (default policy_expiration_date; view=basic: only it).
              view=cancellations sorts by cancelled_on (its default, ascending),
              account_name, office or cancel_type, a leading - reversing the
              key; every other view refuses those three keys, and
              view=cancellations refuses the other keys. raw_producer_name sorts
              view=full only. contractor_board_reminder_on sorts view=renewal
              with certificates=contractor_board_due only, by the day each
              reminder is due.
            enum:
              - policy_expiration_date
              - '-policy_expiration_date'
              - policy_number
              - '-policy_number'
              - account_name
              - '-account_name'
              - carrier_attribution
              - '-carrier_attribution'
              - full_term_premium_effective
              - '-full_term_premium_effective'
              - account_executive_name
              - '-account_executive_name'
              - account_representative_name
              - '-account_representative_name'
              - raw_producer_name
              - '-raw_producer_name'
              - contractor_board_reminder_on
              - '-contractor_board_reminder_on'
              - cancelled_on
              - '-cancelled_on'
              - office
              - '-office'
              - cancel_type
              - '-cancel_type'
            type: string
        - description: >-
            The admitted account policy whose renewal workspace is requested.
            Requires account_id and rollups=renewal_workspace. Absent selects
            the soonest-expiring admitted term.
          explode: false
          in: query
          name: workspace_policy_id
          schema:
            description: >-
              The admitted account policy whose renewal workspace is requested.
              Requires account_id and rollups=renewal_workspace. Absent selects
              the soonest-expiring admitted term.
            type: string
        - description: >-
            view=basic with account_id: renewal_workspace answers the selected
            term workspace; the page is the account's register terms, under
            either account_scope. view=full: register answers its side figures
            in rollups.register. view=renewal: renewals answers its counts and
            figures in rollups.renewals. Each uses the page's own read.
          explode: false
          in: query
          name: rollups
          schema:
            description: >-
              view=basic with account_id: renewal_workspace answers the selected
              term workspace; the page is the account's register terms, under
              either account_scope. view=full: register answers its side figures
              in rollups.register. view=renewal: renewals answers its counts and
              figures in rollups.renewals. Each uses the page's own read.
            items:
              enum:
                - register
                - renewals
                - renewal_step
                - renewal_workspace
              type: string
            type:
              - array
              - 'null'
        - description: >-
            Facets to count over the filtered policies, on view=full, renewal
            and cancellations. Each owner, org, carrier and product facet is
            counted without its own filter, and so is renewal_open
            (view=renewal: the open, true, and finished, false, renewals under
            the serving derivation, so a page filtered to renewal_open=true
            still counts the finished ones). view=full counts producer,
            client_manager, office, market, carrier_attribution, product (each
            product name the policies carry, once per name, parent its type; an
            id outside the org's list is kept with no parent, the org's unknown
            member labeled No product and any other labeled by its id) and
            product_type (each type, summed over its products), status and world
            (each counted without its own filter, the counts the view block
            shows), and a view=full request at limit=1, with no offset, cursor,
            include_total or rollups, whose only facets are office and market is
            the office list: it reads the org facet alone and serves no rows,
            total or view block; the same request naming exactly one of
            producer, client_manager, carrier_attribution, product,
            product_type, status or world, with no rows_only or figures_only,
            counts that facet alone, the full read's count for the same filters,
            and serves no rows, total or view block; view=renewal counts every
            one but office_covered (a view=renewal request at limit=1, with no
            offset, cursor or rollups, whose only facets are office and market
            is the office list: it reads the summary alone and serves no rows);
            view=cancellations counts office (every office the scope reaches,
            with its cancellations) and office_covered (the offices the rows
            were read from). The stage facet counts the stage on record, not the
            stage the renewal page shows.
          explode: false
          in: query
          name: facets
          schema:
            description: >-
              Facets to count over the filtered policies, on view=full, renewal
              and cancellations. Each owner, org, carrier and product facet is
              counted without its own filter, and so is renewal_open
              (view=renewal: the open, true, and finished, false, renewals under
              the serving derivation, so a page filtered to renewal_open=true
              still counts the finished ones). view=full counts producer,
              client_manager, office, market, carrier_attribution, product (each
              product name the policies carry, once per name, parent its type;
              an id outside the org's list is kept with no parent, the org's
              unknown member labeled No product and any other labeled by its id)
              and product_type (each type, summed over its products), status and
              world (each counted without its own filter, the counts the view
              block shows), and a view=full request at limit=1, with no offset,
              cursor, include_total or rollups, whose only facets are office and
              market is the office list: it reads the org facet alone and serves
              no rows, total or view block; the same request naming exactly one
              of producer, client_manager, carrier_attribution, product,
              product_type, status or world, with no rows_only or figures_only,
              counts that facet alone, the full read's count for the same
              filters, and serves no rows, total or view block; view=renewal
              counts every one but office_covered (a view=renewal request at
              limit=1, with no offset, cursor or rollups, whose only facets are
              office and market is the office list: it reads the summary alone
              and serves no rows); view=cancellations counts office (every
              office the scope reaches, with its cancellations) and
              office_covered (the offices the rows were read from). The stage
              facet counts the stage on record, not the stage the renewal page
              shows.
            items:
              enum:
                - producer
                - client_manager
                - office
                - market
                - carrier_attribution
                - product
                - product_type
                - policy_line_of_business
                - status
                - world
                - renewal_nature
                - risk
                - stage
                - renewal_state
                - renewal_open
                - office_covered
              type: string
            type:
              - array
              - 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyList'
          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:
    PolicyList:
      additionalProperties: false
      properties:
        data:
          description: One page of the collection, in the requested sort order.
          items:
            $ref: '#/components/schemas/Policy'
          type:
            - array
            - 'null'
        facets:
          additionalProperties:
            items:
              $ref: '#/components/schemas/FacetValue'
            type:
              - array
              - 'null'
          description: Present only for the facets the request named in facets=.
          type: object
        figures_only:
          description: >-
            true when the request sent figures_only: the answer holds the
            figures alone. data is empty because no row was read, not because
            the register is empty.
          type: boolean
        missing_count:
          description: >-
            For a hierarchy read, source records missing the requested level
            after source filters, before name/ID filters and pagination. Present
            even when zero or the page is empty.
          format: int64
          type: integer
        page:
          $ref: '#/components/schemas/Page'
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        rollups:
          $ref: '#/components/schemas/PolicyListRollups'
          description: >-
            Present only for the rollups the request named in rollups=, each
            computed by the same read as the page.
        rows_only:
          description: >-
            true when the request sent rows_only: the answer holds the page's
            rows and page.next alone. total, facets, view and rollups are absent
            because they were not read, not because they are 0 or empty.
          type: boolean
        source:
          $ref: '#/components/schemas/Source'
        total:
          $ref: '#/components/schemas/Total'
          description: Present only when the request sent include_total=true.
        unreachable:
          description: >-
            Parts of the answer no source could fill, each with its reason.
            Empty when every part was filled.
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        view:
          $ref: '#/components/schemas/View'
          description: >-
            view=full: the register's view filters, hide.status and hide.world,
            each with its options (every value, its label and the policies it
            returns under every other filter), its default and the value this
            read applied, and how many policies they hide. A read with
            hide.product also counts the policies it hides in
            hidden.by_filter[hide.product] and in hidden.total. Absent on other
            views and on a live read.
        warnings:
          description: >-
            Adjustments the platform made to the request (a coerced limit, a
            dropped facet).
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
        work_window:
          $ref: '#/components/schemas/RegisterWorkWindow'
      required:
        - data
        - page
        - 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
    Policy:
      additionalProperties: false
      properties:
        account_decisions:
          $ref: '#/components/schemas/PolicyAccountDecisions'
          description: >-
            Complete-account policy order and term support. Present on
            account_scope=register when workflow facts were read.
        account_executive_code:
          type:
            - string
            - 'null'
        account_executive_display_name:
          description: >-
            account_executive_name as a producer reads it: AMS 360's Last, First
            in reading order without the dates, phone numbers, extensions or
            splits the agency typed into it (bookdisplay.AMSPersonName). Filters
            and sorts read the served name.
          type:
            - string
            - 'null'
        account_executive_name:
          type:
            - string
            - 'null'
        account_id:
          description: >-
            The account's instance key, {instance}:customer:{customer id}; null
            when the policy names no customer.
          type:
            - string
            - 'null'
        account_name:
          description: The account's name, from the client record or the policy.
          type:
            - string
            - 'null'
        account_representative_code:
          type:
            - string
            - 'null'
        account_representative_display_name:
          description: >-
            account_representative_name as a producer reads it: AMS 360's Last,
            First in reading order without the dates, phone numbers, extensions
            or splits the agency typed into it (bookdisplay.AMSPersonName).
            Filters and sorts read the served name.
          type:
            - string
            - 'null'
        account_representative_name:
          type:
            - string
            - 'null'
        agency_code:
          type:
            - string
            - 'null'
        am_best_company:
          description: >-
            view=full with am_best_rating: the writing company whose AM Best
            rating matched, which can differ from carrier_attribution (a group
            or an intermediary).
          type: string
        ams360_branch_code:
          type:
            - string
            - 'null'
        ams360_branch_name:
          type:
            - string
            - 'null'
        ams360_datasource:
          type:
            - string
            - 'null'
        ams360_department_code:
          type:
            - string
            - 'null'
        ams360_department_name:
          type:
            - string
            - 'null'
        ams360_division_code:
          type:
            - string
            - 'null'
        ams360_division_name:
          type:
            - string
            - 'null'
        ams360_group_code:
          type:
            - string
            - 'null'
        ams360_group_name:
          type:
            - string
            - 'null'
        bill_method:
          type:
            - string
            - 'null'
        billed_commission_total:
          type:
            - string
            - 'null'
        brokerage_company:
          type:
            - string
            - 'null'
        business_origin:
          type:
            - string
            - 'null'
        cancellation:
          $ref: '#/components/schemas/PolicyCancellation'
          description: >-
            view=cancellations: the cancellation inside the range, its office
            and any reinstatement after it.
        cancellation_effective_date:
          format: date-time
          type:
            - string
            - 'null'
        cancelled_at_pin:
          type: boolean
        carrier_attribution:
          type:
            - string
            - 'null'
        certificates_due:
          $ref: '#/components/schemas/PolicyCertificatesDue'
          description: >-
            view=certificates_due: the renewing term's certificates and its days
            to expiration.
        client_code:
          type:
            - string
            - 'null'
        client_naics_code:
          type:
            - string
            - 'null'
        client_name:
          type:
            - string
            - 'null'
        cohort_member:
          type: boolean
        commission_method:
          type:
            - string
            - 'null'
        coverage_line:
          anyOf:
            - $ref: '#/components/schemas/PolicyCoverageLine'
              description: >-
                The canonical coverage line policy_line_of_business resolves to,
                read with the type of business (the register views read their
                world in its place): a known line or alias under its canonical
                id and label, an unrecognized line under its own trimmed text
                with an x_&lt;world&gt;_ id. A read that serves
                policy_description reads the line with it: an occupational
                accident policy landed as Workers Compensation or Accident and
                Health is Occupational Accident. Null when the policy carries no
                line.
            - type: 'null'
        coverage_world:
          description: >-
            The world of coverage_line when the line resolves to a known
            coverage, else the world the type of business names (other when it
            names none). Not the registers' world: view=full, renewal,
            certificates_due and cancellations serve and filter world by the
            type of business alone, and the two can differ on the same policy (a
            known line under a miscoded or missing type of business).
          enum:
            - commercial
            - personal
            - benefits
            - life
            - other
          type: string
        current_policy_status:
          type:
            - string
            - 'null'
        customer_id:
          type:
            - string
            - 'null'
        days_to_expiration:
          format: int64
          type: integer
        dim_billing_company_sk:
          type:
            - string
            - 'null'
        dim_writing_company_sk:
          type:
            - string
            - 'null'
        effective_next_policy_id:
          items:
            type: string
          type:
            - array
            - 'null'
        effective_prior_policy_id:
          type:
            - string
            - 'null'
        expiry_urgency:
          enum:
            - muted
            - critical
            - warning
            - normal
          type: string
        first_written_date:
          format: date-time
          type:
            - string
            - 'null'
        full_term_premium:
          type:
            - string
            - 'null'
        full_term_premium_basis:
          type:
            - string
            - 'null'
        full_term_premium_effective:
          type:
            - string
            - 'null'
        id:
          description: >-
            The policy term's instance key, {instance}:policy_term:{policy id}:
            the rank-1 version's POLICY_ID, which changes when a new version
            becomes rank 1 (the term identity is open in the cutover spec).
          type: string
        in_force:
          type: boolean
        in_force_at_pin:
          type: boolean
        insurance_company:
          type:
            - string
            - 'null'
        is_continuous_policy:
          type:
            - boolean
            - 'null'
        is_new_business_to_agency:
          type:
            - boolean
            - 'null'
        line_kind:
          description: >-
            The certificate section the policy belongs to, classified over the
            landed line and coverage_line's label together (so an abbreviation
            classifies by its canonical label): the first of gl, auto, umbrella,
            wc and package whose words appear, else other. package marks a
            policy that may hold a liability section.
          enum:
            - gl
            - auto
            - umbrella
            - wc
            - package
            - other
          type: string
        lines:
          description: >-
            The coverage lines the policy holds from its AMS 360 line rows,
            beside the package it is: a package written as General Liability and
            Property lists both. Absent when the read serves no line rows or the
            policy has none live.
          items:
            $ref: '#/components/schemas/PolicyCoverageLine'
          type:
            - array
            - 'null'
        negotiated_commission_flat_amount:
          type:
            - string
            - 'null'
        negotiated_commission_percentage:
          type:
            - string
            - 'null'
        new_business_renewal_group:
          type:
            - string
            - 'null'
        personnel_datasource:
          description: >-
            The AMS 360 datasource whose employee records the policy's account
            executive and representative codes name. It differs from
            ams360_datasource on a policy relabelled from another instance,
            where the same code names another employee; read an employee by code
            only in this datasource. Null when the read carries neither code.
          type:
            - string
            - 'null'
        policy_description:
          type:
            - string
            - 'null'
        policy_effective_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_expiration_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_id:
          type:
            - string
            - 'null'
        policy_issued_state:
          type:
            - string
            - 'null'
        policy_line_of_business:
          type:
            - string
            - 'null'
        policy_number:
          type:
            - string
            - 'null'
        policy_record_status:
          type:
            - string
            - 'null'
        policy_status:
          type:
            - string
            - 'null'
        policy_sub_type:
          type:
            - string
            - 'null'
        policy_type:
          type:
            - string
            - 'null'
        policy_type_of_business:
          type:
            - string
            - 'null'
        premium_2025_up_for_renewal_after_2026:
          type:
            - string
            - 'null'
        premium_quality:
          description: >-
            Whether full_term_premium_effective prices the term. priced: it
            does. not_a_premium: it was recovered from the policy's own
            transactions (full_term_premium_basis transaction_annualized or
            transaction_full_term) and either the line resolves into the
            benefits world or the figure is under 100 dollars a year in absolute
            value; the figure still serves, and a premium total leaves it out.
            absent: the term carries no figure (full_term_premium_effective
            null, empty, an exact zero or not a number).
          enum:
            - priced
            - not_a_premium
            - absent
          type: string
        premium_quality_reason:
          description: >-
            Why premium_quality is not_a_premium. benefits_line: the line
            resolves into the benefits world (this wins when the figure is also
            under the floor). under_floor: the figure is under 100 dollars a
            year in absolute value on any other line. Null when premium_quality
            is priced or absent.
          enum:
            - benefits_line
            - under_floor
          type:
            - string
            - 'null'
        prior_policy_id:
          type:
            - string
            - 'null'
        prior_policy_link_source:
          type:
            - string
            - 'null'
        product_grain:
          description: The level the reference names; a book row always names a product.
          enum:
            - product
            - type
          type: string
        product_id:
          description: >-
            The org's product id (the source's PRODUCT_ID); null when the source
            names no product, with product_unmatched_reason saying why.
          type:
            - string
            - 'null'
        product_name:
          description: The product's name in the source; null when product_id is null.
          type:
            - string
            - 'null'
        product_source_text:
          description: >-
            The source's own wording for the row's line, or the product name
            where the row carries no line text.
          type: string
        product_unmatched_reason:
          description: >-
            source_has_no_product (the source mapped the row to its unknown
            member) or source_product_missing (the row's product key finds no
            product); null when product_id is set.
          type:
            - string
            - 'null'
        program:
          description: The coverage program this policy belongs to, including ended terms.
          type: string
        program_rank:
          description: The program's display order; lower ranks appear first.
          format: int64
          type: integer
        raw_producer_display_name:
          description: >-
            raw_producer_name as a producer reads it: AMS 360's Last, First in
            reading order without the dates, phone numbers, extensions or splits
            the agency typed into it (bookdisplay.AMSPersonName). Filters and
            sorts read the served name.
          type:
            - string
            - 'null'
        raw_producer_name:
          description: >-
            The producer the AMS 360 policy record names
            (DIM_POLICY.RAW_PRODUCER_NAME), the value the policy detail serves
            on source_record.raw_producer_name. It can differ from
            account_executive_name and has no code; the producer filter and
            facet read the account executive. Null when the record names none.
          type:
            - string
            - 'null'
        register_status:
          description: >-
            Policy register status at the served as-of day: cancelled when the
            term's last cancellation or reinstatement transaction is a
            cancellation, ended when it is no longer in force, active otherwise.
          enum:
            - active
            - ended
            - cancelled
          type: string
        renewal:
          $ref: '#/components/schemas/PolicyRenewal'
          description: 'view=renewal: the renewal register''s row.'
        renewal_report_flag:
          type:
            - string
            - 'null'
        revenue:
          type:
            - string
            - 'null'
        revenue_2025_up_for_renewal_after_2026:
          type:
            - string
            - 'null'
        revenue_unread:
          description: >-
            True when the account detail did not read this term's revenue: the
            term expires outside the renewal window (from 2 days before the pin
            to 402 days after). revenue is then null because it was not read,
            not because the term has none. Absent or false where revenue was
            read.
          type: boolean
        root_policy_id:
          type:
            - string
            - 'null'
        root_policy_level_num:
          type:
            - string
            - 'null'
        source_datasource:
          description: The source instance the row was read from.
          type: string
        standard_policy_number:
          type:
            - string
            - 'null'
        world:
          description: commercial, personal, benefits, life or other.
          type: string
        writing_company:
          type:
            - string
            - 'null'
        writing_company_naic:
          description: >-
            The five-digit NAIC company number of the writing company; null when
            the warehouse holds none.
          type:
            - string
            - 'null'
      required:
        - id
        - account_id
        - policy_number
        - policy_line_of_business
        - account_executive_name
        - account_representative_code
        - account_representative_name
        - policy_effective_date
        - policy_expiration_date
        - carrier_attribution
        - in_force_at_pin
        - cancelled_at_pin
        - full_term_premium_effective
        - coverage_line
        - line_kind
        - coverage_world
        - program
        - program_rank
        - expiry_urgency
      type: object
    FacetValue:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        description:
          type: string
        label:
          type: string
        parent:
          type: string
        value:
          type: string
      required:
        - value
        - count
      type: object
    Page:
      additionalProperties: false
      properties:
        cursor:
          description: The cursor that produced this page; null for the first page.
          type:
            - string
            - 'null'
        limit:
          description: >-
            The page size the platform applied, after any coercion (see
            warnings).
          format: int64
          type: integer
        max_limit:
          description: >-
            The largest page size this collection serves for this request's
            view; a larger limit is coerced to it (see warnings). A reader that
            wants the whole set in one page reads at this ceiling. Absent where
            the collection states none.
          format: int64
          type: integer
        next:
          description: The cursor of the following page; null at the end of the collection.
          type:
            - string
            - 'null'
        offset:
          description: >-
            The rows skipped before this page, echoed only when the request sent
            offset (a register's page jump).
          format: int64
          type: integer
        prev:
          description: The cursor of the preceding page; null on the first page.
          type:
            - string
            - 'null'
      required:
        - cursor
        - next
        - prev
        - limit
      type: object
    PolicyListRollups:
      additionalProperties: false
      properties:
        register:
          $ref: '#/components/schemas/PolicyRegisterRollup'
          description: >-
            The policy register's side figures over the page's filters and
            subject (rollups=register, view=full).
        renewal_step:
          $ref: '#/components/schemas/PolicyAccountRenewalStep'
          description: >-
            Account next renewal selected from a complete bounded account page.
            Requires account_id and the unfiltered first policy page in expiry
            order.
        renewal_workspace:
          $ref: '#/components/schemas/PolicyAccountRenewalWorkspace'
          description: >-
            The selected account policy and its declared renewal workspace,
            independent of a published plan row.
        renewals:
          $ref: '#/components/schemas/PolicyRenewalsRollup'
          description: >-
            Renewal counts and figures over the page's filters and subject, from
            the same register read (rollups=renewals, view=renewal).
      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
    Total:
      additionalProperties: false
      properties:
        exact:
          type: boolean
        value:
          format: int64
          type: integer
      required:
        - value
        - exact
      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
    View:
      additionalProperties: false
      properties:
        columns:
          $ref: '#/components/schemas/Columns'
          description: >-
            Every column the seat may show, its role's default columns and the
            columns this person shows.
        filters:
          items:
            $ref: '#/components/schemas/Filter'
          type:
            - array
            - 'null'
        hidden:
          $ref: '#/components/schemas/Hidden'
      required:
        - filters
        - hidden
      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
    RegisterWorkWindow:
      additionalProperties: false
      properties:
        bands:
          description: >-
            The today work view's day bands of the renewal window (0 to 30, 30
            to 60, 60 to 120, 120 to the window's end): per band, the policies
            of the view's selection expiring in it, the accounts whose nearest
            selected renewal does, and those of them still open that the status
            rule left unbanded. The same counts as rollups.renewals.facets.bands
            on the same read; present on every today read, absent on every other
            view.
          items:
            $ref: '#/components/schemas/BookRenewalRegisterBand'
          type:
            - array
            - 'null'
        days_from:
          format: int64
          type:
            - integer
            - 'null'
        days_to:
          description: Exclusive upper day boundary.
          format: int64
          type:
            - integer
            - 'null'
        limit:
          format: int64
          type: integer
        name:
          type: string
      required:
        - name
        - days_from
        - days_to
        - limit
      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
    PolicyAccountDecisions:
      additionalProperties: false
      properties:
        pursuit_urgent:
          type: boolean
        renewal_support:
          $ref: '#/components/schemas/RenewalTermSupport'
        scan_order:
          format: int64
          type: integer
        urgency_rank:
          format: int64
          type: integer
      required:
        - scan_order
        - urgency_rank
        - pursuit_urgent
        - renewal_support
      type: object
    PolicyCancellation:
      additionalProperties: false
      properties:
        account_name:
          type:
            - string
            - 'null'
        ams360_datasource:
          type: string
        cancel_reason:
          description: >-
            Why the policy cancelled, in plain words: the label AMS 360's reason
            dictionary gives the cancellation's reason code (with the typed note
            when the code is Other), or the typed note when no code was set;
            null when AMS 360 recorded no reason.
          type:
            - string
            - 'null'
        cancel_reason_code:
          description: >-
            The cancellation's AMS 360 reason code (REASONPOLT), or null when
            none was set.
          type:
            - string
            - 'null'
        cancelled_on:
          description: >-
            The newest cancellation AMS 360 recorded on the term effective
            inside the range (YYYY-MM-DD).
          type: string
        customer_id:
          type: string
        office_code:
          description: The policy's office (agency code).
          type:
            - string
            - 'null'
        office_label:
          description: The office's name and place as the org units list it.
          type:
            - string
            - 'null'
        policy_id:
          type: string
        reinstated_by_download:
          description: True when a carrier download posted that reinstatement.
          type: boolean
        reinstated_on:
          description: >-
            The effective date of the reinstatement AMS 360 entered last on the
            policy, after every cancellation on it, or null when the policy is
            not reinstated.
          type:
            - string
            - 'null'
        state:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                Where the policy's cancellation stands, as the org's
                policy_cancellation machine declares it: the value its last
                cancellation and reason stand at (reinstated when a
                reinstatement followed), with the label, settled flag, tone and
                next step. Null when the org declares no policy_cancellation
                machine or no value names the transaction.
            - type: 'null'
        world:
          enum:
            - commercial
            - personal
            - benefits
            - life
            - other
          type: string
      required:
        - ams360_datasource
        - policy_id
        - customer_id
        - account_name
        - world
        - office_code
        - office_label
        - cancelled_on
        - cancel_reason
        - cancel_reason_code
        - reinstated_on
        - reinstated_by_download
        - state
      type: object
    PolicyCertificatesDue:
      additionalProperties: false
      properties:
        account_name:
          type:
            - string
            - 'null'
        ams360_datasource:
          type: string
        certificates:
          description: Distinct live AMS 360 certificates that name the policy; at least 1.
          format: int64
          type: integer
        customer_id:
          type: string
        days_to_expiration:
          format: int64
          type: integer
        expiration_date:
          type: string
        policy_id:
          type: string
        urgency:
          enum:
            - warning
            - info
          type: string
        world:
          enum:
            - commercial
            - personal
            - benefits
            - life
            - other
          type: string
      required:
        - urgency
        - ams360_datasource
        - policy_id
        - customer_id
        - account_name
        - world
        - expiration_date
        - days_to_expiration
        - certificates
      type: object
    PolicyCoverageLine:
      additionalProperties: false
      properties:
        id:
          description: >-
            The canonical line's id, for example general_liability or
            personal_umbrella; an unrecognized line is x_&lt;world&gt;_&lt;its
            normalized text&gt;.
          type: string
        label:
          description: >-
            The canonical line's label, for example General Liability; an
            unrecognized line's own trimmed text.
          type: string
      required:
        - id
        - label
      type: object
    PolicyRenewal:
      additionalProperties: false
      properties:
        account_executive_code:
          type:
            - string
            - 'null'
        account_executive_display_name:
          description: >-
            account_executive_name as a producer reads it: AMS 360's Last, First
            in reading order without the dates, phone numbers, extensions or
            splits the agency typed into it (bookdisplay.AMSPersonName). Filters
            and sorts read the served name.
          type:
            - string
            - 'null'
        account_executive_name:
          type:
            - string
            - 'null'
        account_name:
          type:
            - string
            - 'null'
        account_representative_code:
          type:
            - string
            - 'null'
        account_representative_display_name:
          description: >-
            account_representative_name as a producer reads it: AMS 360's Last,
            First in reading order without the dates, phone numbers, extensions
            or splits the agency typed into it (bookdisplay.AMSPersonName).
            Filters and sorts read the served name.
          type:
            - string
            - 'null'
        account_representative_name:
          type:
            - string
            - 'null'
        already_renewed:
          type: boolean
        ams360_datasource:
          type: string
        available_decisions:
          description: >-
            The strategy decisions renewal.strategy_record accepts from this
            term's stage and AMS 360 standing, with whether each needs the
            producer's reason. Empty when none is open to the producer. Null
            when not read: the stage or standing was unread, the renewal step
            read failed, or the key holds no actions:read.
          items:
            $ref: '#/components/schemas/BookRenewalDecision'
          type:
            - array
            - 'null'
        bill_method:
          description: >-
            The policy's AMS 360 bill method: Direct, Agency or Unknown. Only an
            agency-bill renewal has a payment for the agency to collect.
          type:
            - string
            - 'null'
        board_filings:
          description: >-
            How many of the policy's live certificates are filed with Oregon's
            Construction Contractors Board: the client is a contractor whose
            license needs this policy on file at the board.
          format: int64
          type: integer
        carrier:
          type:
            - string
            - 'null'
        certificates:
          format: int64
          type: integer
        commission:
          type:
            - string
            - 'null'
        contractor_board_reminder_on:
          description: >-
            The day the contractor board filing is due a reminder (90, 60, 30 or
            15 days before expiration), when the policy has board_filings and
            that day is within the next 7 days, today included; null otherwise.
          format: date
          type:
            - string
            - 'null'
        customer_id:
          type: string
        days_to_expiration:
          format: int64
          type: integer
        desk_assigned_to:
          type:
            - string
            - 'null'
        desk_assigned_to_name:
          type:
            - string
            - 'null'
        desk_complete:
          type: boolean
        desk_list_description:
          type:
            - string
            - 'null'
        desk_list_id:
          type:
            - string
            - 'null'
        desk_not_renewable:
          type: boolean
        desk_stage:
          type:
            - string
            - 'null'
        desk_stage_label:
          description: >-
            The renewal desk's stage as the agency wrote it on the renewal list
            row (AMS 360 STAGE), trimmed; null when the row has no stage. It is
            desk_stage read for display, never a recomputed or mapped stage.
          type:
            - string
            - 'null'
        desk_state:
          type: string
        display:
          anyOf:
            - $ref: '#/components/schemas/PolicyRenewalDisplay'
              description: >-
                Renewal presentation decisions. Null when the standing was not
                read; clients do not reconstruct them from state words.
            - type: 'null'
        effective_date:
          type:
            - string
            - 'null'
        expected_revenue:
          type:
            - string
            - 'null'
        expiration_date:
          type: string
        flags:
          items:
            $ref: '#/components/schemas/BookRetentionFlag'
          type:
            - array
            - 'null'
        focus:
          type: boolean
        hold_path:
          anyOf:
            - $ref: '#/components/schemas/BookRenewalHoldPath'
              description: >-
                Where the renewal stands on the hold path, read from the one
                recorded stage: whether it is on the path, the stage, and the
                steps done through it. Null when not read: the renewal step read
                failed, or the key holds no actions:read.
            - type: 'null'
        last_action_at:
          format: date-time
          type:
            - string
            - 'null'
        line:
          type:
            - string
            - 'null'
        lost_reason:
          description: >-
            A Lost mark's reason code, one of the org's lost reasons (GET
            /records/machines/renewal_outcome); empty on every other mark and on
            a Lost mark recorded with a note only.
          type: string
        lost_reason_label:
          description: >-
            The lost reason's words as the org declares them; empty when the
            mark carries no reason.
          type: string
        marked_at:
          format: date-time
          type:
            - string
            - 'null'
        marked_by:
          type: string
        marked_this_cycle:
          description: >-
            Whether this account-period has a mark younger than 14 producer
            calendar days. Null when marks or the account-period identity are
            unread; an undated mark counts as marked.
          type:
            - boolean
            - 'null'
        nature_basis:
          type: string
        next_status_key:
          type: string
        next_step_args:
          anyOf:
            - $ref: '#/components/schemas/RenewalActionArgs'
              description: >-
                The selected next step's arguments, set for annual_check_in
                only. Null for every other key and when no next step is served;
                an unread next step is named in unreachable.
            - type: 'null'
        next_step_due:
          description: >-
            Due date of the selected next step. Null when no deadline is stated;
            an unread deadline is named in unreachable.
          type:
            - string
            - 'null'
        next_step_key:
          description: >-
            The renewal's one next step: the plan workspace's (its checklist
            item id, or record_the_outcome once the term expired with no settled
            outcome) for a term with a plan row the caller may read; for any
            other term, the renewal register's next action key from its AMS 360
            activity and Workbench stage record. Empty when next_status_key is
            set or no step is served.
          type: string
        next_step_label:
          description: >-
            The next step's words: the plan workspace's item, or the org's
            renewal_stage machine's words for a register key. Clients show it as
            served; empty when no next action is served; unread steps are named
            in unreachable.
          type: string
        note:
          type: string
        outcome:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_outcome value with its label, tone and settled flag
                from the org's declared machine; null when the org declares no
                renewal_outcome machine, or when the standing was not read,
                which unreachable names.
            - type: 'null'
        outlook:
          type: string
        placement_scope:
          $ref: '#/components/schemas/PlacementScope'
          description: >-
            What a placement of this renewal carries: every term on the account
            that expires on this term's day, this term first, as the lines the
            commercial placement engine places and the terms it cannot with
            their reason. Basis says which terms it was read over.
        placement_scope_unavailable:
          description: >-
            Why this row has no placement scope: terms_unavailable, the same-day
            terms were not read; cancellation_unavailable, a same-day term's
            cancellation is unknown on this build; content_lag, the build is
            behind its source, so a term cancelled or added since would be
            missing; renewing_term_cancelled, this row's own term is cancelled
            at the serving pin. The admitted renewal remains readable; no
            placement may infer a scope from this row alone.
          enum:
            - terms_unavailable
            - cancellation_unavailable
            - content_lag
            - renewing_term_cancelled
          type: string
        policy_current_status:
          type:
            - string
            - 'null'
        policy_id:
          type: string
        policy_number:
          type:
            - string
            - 'null'
        policy_prior_policy_id:
          type:
            - string
            - 'null'
        premium:
          type:
            - string
            - 'null'
        premium_basis:
          type:
            - string
            - 'null'
        renewal_closed_by_name:
          description: >-
            The named person who keyed or worked a completed live successor.
            Null on due work, loss, cancellation, untouched offers and unnamed
            or system actors.
          type:
            - string
            - 'null'
        renewal_closed_on:
          description: >-
            The day the renewal was closed by that review. Set on the same rows
            as renewal_closed_by_name.
          format: date
          type:
            - string
            - 'null'
        renewal_flag:
          description: >-
            The AMS 360 renewal report flag word the state read, lower case, for
            audit.
          type:
            - string
            - 'null'
        renewal_nature:
          enum:
            - renews
            - one_time
            - multi_year
            - bond_continuous
            - bond_term
            - non_renewed
          type: string
        renewal_open:
          description: Whether the row is open work. Read this, never the state word.
          type: boolean
        renewal_state:
          description: >-
            Where the expiring term stands, read from AMS 360 and the Workbench
            remarketing mark: a renewal_outcome value (GET
            /records/machines/renewal_outcome). renewal_open says whether it is
            open work.
          enum:
            - open
            - information
            - remarketing
            - quoted
            - proposal_out
            - bind_requested
            - offer_in
            - renewed
            - overdue
            - renewed_then_cancelled
            - rewritten
            - lost
            - cancelled
            - non_renewed
            - confirm
          type: string
        renewal_state_reason:
          description: >-
            The sentence beside a state that is not plain open work; null on an
            open row.
          type:
            - string
            - 'null'
        renewed_id:
          description: >-
            The renewal term's policy id (its instance key), when AMS 360
            already renewed the policy; the id the renewal steps rollup takes
            for it.
          type:
            - string
            - 'null'
        renewed_policy_id:
          type:
            - string
            - 'null'
        revenue:
          type:
            - string
            - 'null'
        risk:
          type: string
        risk_reason:
          type: string
        stage:
          description: >-
            The renewal stage on record: a renewal_stage value (GET
            /records/machines/renewal_stage); not_started when nothing is
            recorded. It is not the stage the renewal page shows:
            workspace_stage is.
          enum:
            - not_started
            - reviewing
            - hold
            - remarketing
            - renewing_as_is
            - quoted
            - proposal_out
            - bind_requested
            - bound
            - non_renewed
            - lost
            - closed
          type: string
        stage_state:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_stage value on record with its label, step, settled
                flag, tone and next step from the org's declared machine; null
                when the org declares no renewal_stage machine, or when the
                stage was not read: a key without actions:read is refused the
                action ledger, which unreachable names.
            - type: 'null'
        standing_key:
          description: >-
            Records-selected headline discriminator. Clients own labels and
            sentence formatting; absent with unreachable when standing facts are
            unread.
          type: string
        state_source:
          description: >-
            Always events: the renewal state has one derivation, from raw AMS
            360 events. Deprecated; removed in a later release once no client
            reads it.
          enum:
            - events
          type: string
        status_band:
          type:
            - string
            - 'null'
        status_cancellation_on:
          type:
            - string
            - 'null'
        status_reason:
          type:
            - string
            - 'null'
        status_state:
          anyOf:
            - $ref: '#/components/schemas/MachineState'
              description: >-
                The renewal_outcome confirm value when AMS 360 disagrees with
                itself about whether the term is in force, with the words for
                why; null otherwise, and when the standing was not read, which
                unreachable names. The outcome stays beside it.
            - type: 'null'
        steps:
          $ref: '#/components/schemas/BookRenewalStepsRow'
        strategy_note:
          type:
            - string
            - 'null'
        successor_carrier:
          description: The next term's carrier.
          type:
            - string
            - 'null'
        successor_creator:
          description: >-
            Who created the next term AMS 360 holds for this renewal: download
            (the carrier's overnight feed) or person. Null when no next term is
            on file.
          enum:
            - download
            - person
          type:
            - string
            - 'null'
        successor_creator_name:
          description: The person who keyed the next term, when a person did.
          type:
            - string
            - 'null'
        successor_effective_on:
          description: The day the next term starts.
          format: date
          type:
            - string
            - 'null'
        successor_entered_on:
          description: The day the next term was entered in AMS 360.
          format: date
          type:
            - string
            - 'null'
        successor_person_touch:
          description: >-
            Whether a person has worked the next term since it was entered: a
            person-authored transaction, a suspense or a Renewal activity on it.
          type: boolean
        successor_premium:
          description: >-
            The next term's full term premium as AMS 360 holds it; null when it
            carries none.
          type:
            - string
            - 'null'
        term_end:
          format: date
          type:
            - string
            - 'null'
        term_years:
          format: int64
          maximum: 5
          minimum: 2
          type:
            - integer
            - 'null'
        today_flagged:
          description: The open renewal needs attention in the Today work view.
          type: boolean
        workflow_recorded:
          type: boolean
        workspace_stage:
          anyOf:
            - $ref: '#/components/schemas/PolicyRenewalStage'
              description: >-
                The stage the renewal is at, the one its renewal page shows as
                current: the plan workspace's stage id and words, from the AMS
                360 outcome, the recorded moves and the checklist. Read this,
                never stage, to say what stage a renewal is at. Null when the
                term has no plan row, is settled or has no current stage; a
                stage that could not be read (no live term state, too many
                recorded moves, a failed read or access refused) is null and
                named in unreachable. Never fall back to stage.
            - type: 'null'
        world:
          type: string
      required:
        - today_flagged
        - display
        - next_step_due
        - next_step_args
        - steps
        - renewal_nature
        - nature_basis
        - term_end
        - term_years
        - ams360_datasource
        - policy_id
        - customer_id
        - policy_number
        - account_name
        - line
        - world
        - carrier
        - premium
        - premium_basis
        - commission
        - revenue
        - focus
        - effective_date
        - expiration_date
        - days_to_expiration
        - workspace_stage
        - stage
        - workflow_recorded
        - strategy_note
        - risk
        - risk_reason
        - already_renewed
        - renewed_policy_id
        - renewed_id
        - desk_state
        - desk_stage
        - desk_stage_label
        - desk_assigned_to
        - desk_assigned_to_name
        - desk_complete
        - desk_not_renewable
        - desk_list_id
        - desk_list_description
        - policy_prior_policy_id
        - policy_current_status
        - account_executive_code
        - account_executive_name
        - account_representative_code
        - account_representative_name
        - bill_method
        - renewal_state
        - outcome
        - status_state
        - stage_state
        - renewal_state_reason
        - renewal_open
        - state_source
        - renewal_flag
        - successor_creator
        - successor_creator_name
        - successor_premium
        - successor_carrier
        - successor_effective_on
        - successor_entered_on
        - successor_person_touch
        - renewal_closed_by_name
        - renewal_closed_on
        - status_band
        - status_reason
        - status_cancellation_on
        - certificates
        - board_filings
        - contractor_board_reminder_on
        - outlook
        - lost_reason
        - lost_reason_label
        - note
        - expected_revenue
        - marked_by
        - marked_at
        - marked_this_cycle
        - last_action_at
        - flags
        - available_decisions
        - hold_path
        - placement_scope
      type: object
    PolicyRegisterRollup:
      additionalProperties: false
      properties:
        accounts_by_state:
          description: In-force accounts by state, unmoved by filters.
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        accounts_by_tenant:
          description: In-force accounts by source instance, unmoved by filters.
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        book:
          $ref: '#/components/schemas/BookTotals'
          description: The whole book's totals at the read pin, unmoved by filters.
        expiring:
          $ref: '#/components/schemas/BookExpiringBuckets'
          description: >-
            In-force policies expiring within 30, 60 and 90 days of the read
            pin, unmoved by filters.
        policies:
          description: The filtered policy count.
          format: int64
          type: integer
        policies_by_datasource:
          description: In-force policies by source instance, unmoved by filters.
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        policies_by_line:
          description: In-force policies by line of business, unmoved by filters.
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        renewal_window:
          $ref: '#/components/schemas/BookRenewalWindow'
          description: The definition the expiring counts are measured under.
        slice:
          $ref: '#/components/schemas/BookPolicyRegisterSlice'
          description: >-
            The filtered policies' premium, priced and unpriced, and their
            distinct clients.
      type: object
    PolicyAccountRenewalStep:
      additionalProperties: false
      properties:
        complete:
          description: >-
            False if the bounded account relation or its page step read is
            unread. A null row then does not mean absent work.
          type: boolean
        row:
          anyOf:
            - $ref: '#/components/schemas/Policy'
              description: >-
                The Records-selected account renewal, or null when complete and
                no action remains. A term whose standing or step facts are
                unread is selected when no earlier term has an action, with its
                rollups.renewal_step.row.renewal parts unreachable, so its step
                is unknown.
            - type: 'null'
      required:
        - row
        - complete
      type: object
    PolicyAccountRenewalWorkspace:
      additionalProperties: false
      properties:
        policy_id:
          type: string
        renewal:
          $ref: '#/components/schemas/EngineRenewal'
          description: >-
            The renewal of the selected term: the account's terms that renew
            together, the members the seat may read, their lines and the terms
            the placement does not carry. Any member's policy id selects it.
            Null when the account has no term to select.
        renewal_id:
          description: >-
            The renewal the selected term belongs to; the same for every
            member's term. Empty when the account has no term to select.
          type: string
        workspace:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspace'
            - type: 'null'
      required:
        - policy_id
        - renewal_id
        - renewal
        - workspace
      type: object
    PolicyRenewalsRollup:
      additionalProperties: false
      properties:
        bands:
          description: >-
            The window's fixed day bands: per band, the policies expiring in it
            and the accounts whose nearest renewal falls in it.
          items:
            $ref: '#/components/schemas/BookRenewalRegisterBand'
          type:
            - array
            - 'null'
        book:
          $ref: '#/components/schemas/BookTotals'
          description: The whole book's totals at the read pin, unmoved by filters.
        closed_count:
          description: Closed lines in the owner cohort.
          format: int64
          type: integer
        desk_coverage:
          $ref: '#/components/schemas/BookRenewalRegisterDeskCoverage'
        facets:
          $ref: '#/components/schemas/BookRenewalRegisterFacets'
          description: >-
            The old register summary's facets over the same filtered renewals,
            member for member (risk, stage, desk, world, bands, producer,
            client_manager, org, line, carrier, status, nature): one read with
            the figures above.
        nearest_days:
          format: int64
          type: integer
        nearest_expiration:
          type: string
        renewal_open_counts:
          $ref: '#/components/schemas/BookRenewalOpenCounts'
          description: >-
            The open and finished renewals counted with every filter but
            renewal_open itself (facet semantics): a read filtered to
            renewal_open=true still says how many are finished. renewals_open
            and renewals_finished stay counted after the filter.
        renewal_window:
          $ref: '#/components/schemas/BookRenewalWindow'
          description: The definition the window is measured under.
        renewals:
          description: The filtered renewal count (the old register's total).
          format: int64
          type: integer
        renewals_finished:
          description: >-
            The filtered renewals that are finished: renewals less
            renewals_open.
          format: int64
          type: integer
        renewals_open:
          description: >-
            The filtered renewals that are open work: the rows whose
            renewal_open is true.
          format: int64
          type: integer
        retention_cycle_days:
          description: >-
            The producer calendar days a mark counts for: a row's
            marked_this_cycle is true when its newest mark is younger than this.
            One served number; a client states it from here and keeps no copy.
          format: int64
          type: integer
        slice:
          $ref: '#/components/schemas/BookRenewalRegisterSlice'
          description: The filtered renewals' accounts and premium.
        state_source:
          description: >-
            Always events: the renewal state has one derivation, from raw AMS
            360 events. Deprecated; removed in a later release once no client
            reads it.
          enum:
            - events
          type: string
        status:
          additionalProperties:
            format: int64
            type: integer
          description: What the status truth rule did to the in-window rows, by reason.
          type: object
      required:
        - retention_cycle_days
        - state_source
      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
    Columns:
      additionalProperties: false
      properties:
        available:
          description: Every labeled field the register serves that this seat may read.
          items:
            $ref: '#/components/schemas/Column'
          type:
            - array
            - 'null'
        default:
          description: The columns the seat's role shows with nothing chosen, in order.
          items:
            type: string
          type:
            - array
            - 'null'
        shown:
          description: >-
            The columns this person shows, in order: their saved choice, else
            the default.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - available
        - default
        - shown
      type: object
    Filter:
      additionalProperties: false
      properties:
        applied:
          description: The value this read used.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        default:
          description: The value with nothing chosen.
          oneOf:
            - items:
                type: string
              type: array
            - type: integer
            - type: boolean
            - type: string
        key:
          type: string
        option_count:
          description: Values the filter holds.
          format: int64
          type: integer
        options:
          description: A multiselect's values with their counts, in the order they show.
          items:
            $ref: '#/components/schemas/Option'
          type:
            - array
            - 'null'
        truncated:
          description: More values than options; search with options_q.&lt;key&gt;.
          type: boolean
        type:
          enum:
            - multiselect
            - days
            - toggle
            - select
            - amount
          type: string
      required:
        - key
        - type
        - default
        - applied
      type: object
    Hidden:
      additionalProperties: false
      properties:
        by_filter:
          additionalProperties:
            format: int64
            type: integer
          description: >-
            Rows each filter removes from what every other filter keeps. These
            overlap and need not sum to total.
          type: object
        total:
          description: >-
            Rows the other filters keep minus the rows shown: turning every
            filter of this block off shows exactly this many more.
          format: int64
          type: integer
      required:
        - total
        - by_filter
      type: object
    BookRenewalRegisterBand:
      additionalProperties: false
      properties:
        accounts:
          format: int64
          type: integer
        days_from:
          format: int64
          type: integer
        days_to:
          format: int64
          type: integer
        open_accounts:
          format: int64
          type: integer
        policies:
          format: int64
          type: integer
      required:
        - days_from
        - days_to
        - policies
        - accounts
        - open_accounts
      type: object
    RenewalTermSupport:
      additionalProperties: false
      properties:
        attached_placement_id:
          type:
            - string
            - 'null'
        placement_attach_allowed:
          type: boolean
        successor_id:
          type:
            - string
            - 'null'
      required:
        - successor_id
        - placement_attach_allowed
        - attached_placement_id
      type: object
    MachineState:
      additionalProperties: false
      properties:
        label:
          description: >-
            The words a person sees for the value; null when the machine labels
            none.
          type:
            - string
            - 'null'
        machine:
          description: The machine's state field (GET /records/machines/{field}).
          type: string
        next:
          anyOf:
            - $ref: '#/components/schemas/MachineNextStep'
              description: The next step served for the value; null when it has none.
            - type: 'null'
        settled:
          description: True when the value ends the work.
          type: boolean
        step:
          description: The workflow step the value sits in; null when it sits in none.
          type:
            - string
            - 'null'
        tone:
          description: The tone the value is shown with; null when the machine gives none.
          enum:
            - neutral
            - positive
            - warning
            - danger
            - null
          type:
            - string
            - 'null'
        value:
          type: string
      required:
        - machine
        - value
        - label
        - step
        - settled
        - tone
        - next
      type: object
    BookRenewalDecision:
      additionalProperties: false
      properties:
        decision:
          enum:
            - start_review
            - hold
            - remarket
          type: string
        reason_required:
          description: >-
            Whether renewal.strategy_record refuses the decision without the
            producer's reason when the renewal plan suggests another approach or
            none.
          type: boolean
        stage:
          description: The stage the decision records.
          type: string
      required:
        - decision
        - stage
        - reason_required
      type: object
    PolicyRenewalDisplay:
      additionalProperties: false
      properties:
        next_term_on_file:
          description: >-
            Open, with a next term on file: an offer in, or a term a person
            keyed.
          type: boolean
        offer_detail:
          description: The carrier's offer is in and no person has worked it.
          type: boolean
        renewed:
          description: Finished, and the term renewed or was rewritten.
          type: boolean
        summary_uses_sentence:
          description: >-
            The summary line reads renewal_state_reason rather than the outcome
            label.
          type: boolean
        urgency_flag:
          type: boolean
      required:
        - renewed
        - next_term_on_file
        - offer_detail
        - summary_uses_sentence
        - urgency_flag
      type: object
    BookRetentionFlag:
      additionalProperties: false
      properties:
        code:
          type: string
        sentence:
          type: string
      required:
        - code
        - sentence
      type: object
    BookRenewalHoldPath:
      additionalProperties: false
      properties:
        done:
          items:
            enum:
              - terms_received
              - proposal_sent
              - bind_requested
              - carrier_confirmed
            type: string
          type:
            - array
            - 'null'
        on_hold:
          description: >-
            True when the recorded stage keeps the incumbent (hold or
            renewing_as_is) or is a hold-path step.
          type: boolean
        stage:
          description: >-
            The recorded stage the path stands at; null when the renewal is not
            on the hold path.
          type:
            - string
            - 'null'
      required:
        - on_hold
        - stage
        - done
      type: object
    RenewalActionArgs:
      additionalProperties: false
      properties:
        renewal_certificate:
          description: >-
            annual_check_in only: the line is a bond, surety, dealer or garage
            line, so the check-in also asks for what the renewal certificate
            needs. False on a row that serves no line.
          type: boolean
      required:
        - renewal_certificate
      type: object
    PlacementScope:
      additionalProperties: false
      properties:
        as_of:
          description: The serving pin's day the terms were read at.
          format: date
          type: string
        basis:
          description: >-
            Which terms the scope was read over, less every term cancelled at
            the serving pin. same_day_terms: every term on the account the seat
            can read that expires on the renewing term's day.
          enum:
            - same_day_terms
          type: string
        covered:
          description: The renewal's terms the placement carries, renewing term first.
          items:
            $ref: '#/components/schemas/RenewalScopeTerm'
          type:
            - array
            - 'null'
        excluded:
          description: >-
            The renewal's terms the placement does not carry, each with its
            reason.
          items:
            $ref: '#/components/schemas/RenewalScopeExcluded'
          type:
            - array
            - 'null'
        expiration_date:
          description: 'The renewal''s day: the renewing term''s expiration.'
          format: date
          type: string
        lines:
          description: >-
            The canonical line codes a placement of this renewal carries, in
            term order, each once: the renewing term's first, then the other
            terms expiring the same day.
          items:
            type: string
          type:
            - array
            - 'null'
        renewing_policy_id:
          description: 'The renewing term''s policy id (its instance key): this row''s term.'
          type: string
      required:
        - renewing_policy_id
        - expiration_date
        - lines
        - covered
        - excluded
        - basis
        - as_of
      type: object
    BookRenewalStepsRow:
      additionalProperties: false
      properties:
        ams:
          $ref: '#/components/schemas/BookRenewalAMSStep'
        auto_id_on:
          type:
            - string
            - 'null'
        certificate_on:
          type:
            - string
            - 'null'
        datasource:
          type: string
        open_step:
          $ref: '#/components/schemas/BookRenewalOpenStep'
        policy_id:
          type: string
        workbench:
          $ref: '#/components/schemas/BookRenewalWorkbenchStep'
      required:
        - datasource
        - policy_id
        - ams
        - open_step
        - auto_id_on
        - certificate_on
        - workbench
      type: object
    PolicyRenewalStage:
      additionalProperties: false
      properties:
        id:
          type: string
        label:
          type: string
      required:
        - id
        - label
      type: object
    BookFacetCount:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        value:
          type:
            - string
            - 'null'
      required:
        - value
        - count
      type: object
    BookTotals:
      additionalProperties: false
      properties:
        active_clients:
          format: int64
          type: integer
        active_full_term_premium:
          type:
            - string
            - 'null'
        active_policies:
          format: int64
          type: integer
        policies:
          format: int64
          type: integer
      required:
        - policies
        - active_policies
        - active_clients
        - active_full_term_premium
      type: object
    BookExpiringBuckets:
      additionalProperties: false
      properties:
        days_30:
          format: int64
          type: integer
        days_60:
          format: int64
          type: integer
        days_90:
          format: int64
          type: integer
      required:
        - days_30
        - days_60
        - days_90
      type: object
    BookRenewalWindow:
      additionalProperties: false
      properties:
        buckets_days:
          items:
            format: int64
            type: integer
          type:
            - array
            - 'null'
        lower_bound:
          type: string
        measured_from:
          type: string
        note:
          type: string
        predicate:
          type: string
        rows_query:
          type: string
        upper_bound:
          type: string
      required:
        - buckets_days
        - measured_from
        - lower_bound
        - upper_bound
        - predicate
        - rows_query
        - note
      type: object
    BookPolicyRegisterSlice:
      additionalProperties: false
      properties:
        clients:
          format: int64
          type: integer
        premium:
          type:
            - string
            - 'null'
        priced:
          format: int64
          type: integer
        unpriced:
          format: int64
          type: integer
      required:
        - premium
        - priced
        - unpriced
        - clients
      type: object
    EngineRenewal:
      additionalProperties: false
      properties:
        excluded:
          description: >-
            The members the placement does not carry, each with its reason
            (renewalscope.Of).
          items:
            $ref: '#/components/schemas/RenewalScopeExcluded'
          type:
            - array
            - 'null'
        expiration_date:
          description: >-
            The renewal's day: the earliest expiration among the members the
            seat may see.
          format: date
          type: string
        id:
          description: >-
            The renewal's identity, the same on every member's plan row and on
            the workspace of any member.
          type: string
        lines:
          description: >-
            The canonical line codes a placement of this renewal carries, each
            once, in member order (renewalscope.Of).
          items:
            type: string
          type:
            - array
            - 'null'
        members:
          description: >-
            The terms of the renewal the seat may read, the row's own term among
            them. A term outside the seat's scope is never a member of its
            response.
          items:
            $ref: '#/components/schemas/EngineRenewalMember'
          type:
            - array
            - 'null'
      required:
        - id
        - expiration_date
        - members
        - lines
        - excluded
      type: object
    EngineRenewalWorkspace:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceItem'
          type:
            - array
            - 'null'
        next:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspaceNext'
              description: >-
                Null when the term is settled, no item is open, or the term's
                outcome was not read; else the renewal's one next step, the same
                the list's status line, Today and the policy Renewal panel
                serve.
            - type: 'null'
        offer:
          anyOf:
            - $ref: '#/components/schemas/EngineRenewalWorkspaceOffer'
              description: >-
                Null when the current renewal terms build holds no row for the
                term.
            - type: 'null'
        path:
          $ref: '#/components/schemas/EngineRenewalWorkspacePath'
        path_options:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspacePathOption'
          type:
            - array
            - 'null'
        stages:
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceStage'
          type:
            - array
            - 'null'
      required:
        - path
        - path_options
        - stages
        - items
        - offer
        - next
      type: object
    BookRenewalRegisterDeskCoverage:
      additionalProperties: false
      properties:
        complete:
          format: int64
          type: integer
        horizon_rows:
          format: int64
          type: integer
        listed:
          format: int64
          type: integer
        not_renewable:
          format: int64
          type: integer
        serving:
          $ref: '#/components/schemas/BookFamilyServing'
      required:
        - horizon_rows
        - listed
        - complete
        - not_renewable
        - serving
      type: object
    BookRenewalRegisterFacets:
      additionalProperties: false
      properties:
        bands:
          items:
            $ref: '#/components/schemas/BookRenewalRegisterBand'
          type:
            - array
            - 'null'
        carrier:
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        client_manager:
          items:
            $ref: '#/components/schemas/BookOwnerFacet'
          type:
            - array
            - 'null'
        client_manager_truncated:
          type: boolean
        line:
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        nature:
          additionalProperties:
            format: int64
            type: integer
          description: >-
            Counted only with nature= or include=nature_facets; otherwise an
            empty object.
          type: object
        org:
          items:
            $ref: '#/components/schemas/BookOrgFacet'
          type:
            - array
            - 'null'
        producer:
          items:
            $ref: '#/components/schemas/BookOwnerFacet'
          type:
            - array
            - 'null'
        producer_truncated:
          type: boolean
        product:
          items:
            $ref: '#/components/schemas/BookFacetCount'
          type:
            - array
            - 'null'
        risk:
          additionalProperties:
            format: int64
            type: integer
          type: object
        stage:
          additionalProperties:
            format: int64
            type: integer
          type: object
        state:
          additionalProperties:
            format: int64
            type: integer
          type: object
        status:
          additionalProperties:
            format: int64
            type: integer
          type: object
        world:
          additionalProperties:
            format: int64
            type: integer
          type: object
      required:
        - nature
        - risk
        - stage
        - world
        - bands
        - producer
        - producer_truncated
        - client_manager
        - client_manager_truncated
        - org
        - line
        - carrier
        - product
        - status
        - state
      type: object
    BookRenewalOpenCounts:
      additionalProperties: false
      properties:
        finished:
          description: >-
            Renewals that are finished under the derivation that served the read
            (renewal_open false), counted with every filter but renewal_open.
          format: int64
          type: integer
        open:
          description: >-
            Renewals that are open work under the derivation that served the
            read (renewal_open true), counted with every filter but
            renewal_open.
          format: int64
          type: integer
      required:
        - open
        - finished
      type: object
    BookRenewalRegisterSlice:
      additionalProperties: false
      properties:
        accounts:
          format: int64
          type: integer
        premium:
          type:
            - string
            - 'null'
        priced:
          format: int64
          type: integer
        renewals:
          format: int64
          type: integer
      required:
        - renewals
        - accounts
        - priced
        - premium
      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
    Column:
      additionalProperties: false
      properties:
        description:
          description: What the field holds, from the API contract.
          type: string
        key:
          description: >-
            The served field, dotted for a field inside an object:
            producer.name.
          type: string
        label:
          type: string
        sortable:
          description: The list's sort parameter takes this key.
          type: boolean
        type:
          enum:
            - text
            - number
            - date
            - boolean
            - list
            - object
          type: string
      required:
        - key
        - label
        - type
        - sortable
      type: object
    Option:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        label:
          type: string
        parent:
          description: >-
            The value this option sits under, where the filter groups its
            values: an office's reporting market. Absent when it has none.
          type: string
        uncounted:
          description: >-
            True when the read did not count this option; count is then 0 and
            states nothing. Absent when counted.
          type: boolean
        value:
          type: string
      required:
        - value
        - label
        - count
      type: object
    MachineNextStep:
      additionalProperties: false
      properties:
        key:
          description: The next step key.
          type: string
        label:
          description: The words a person sees for the step.
          type: string
        waiting_on:
          description: Who the work waits on at this step.
          type: string
      required:
        - key
      type: object
    RenewalScopeTerm:
      additionalProperties: false
      properties:
        carrier:
          type:
            - string
            - 'null'
        line:
          description: The term's line of business as AMS 360 holds it.
          type:
            - string
            - 'null'
        policy_id:
          description: The term's policy id (its instance key).
          type: string
        policy_number:
          type:
            - string
            - 'null'
      required:
        - policy_id
        - line
        - policy_number
        - carrier
      type: object
    RenewalScopeExcluded:
      additionalProperties: false
      properties:
        reason:
          description: >-
            Why the placement does not carry the term: line_not_placeable, the
            commercial placement engine places commercial lines and surety bonds
            only, so the term needs a separate placement.
          enum:
            - line_not_placeable
          type: string
        term:
          $ref: '#/components/schemas/RenewalScopeTerm'
      required:
        - term
        - reason
      type: object
    BookRenewalAMSStep:
      additionalProperties: false
      properties:
        action:
          type: string
        occurred_on:
          type: string
        scope:
          enum:
            - policy
            - account
          type: string
        source:
          enum:
            - activity
            - suspense
          type: string
        step:
          type: string
      required:
        - action
        - step
        - scope
        - source
        - occurred_on
      type: object
    BookRenewalOpenStep:
      additionalProperties: false
      properties:
        action:
          type: string
        assigned_to_name:
          type:
            - string
            - 'null'
        due_on:
          type:
            - string
            - 'null'
        step:
          type: string
      required:
        - action
        - step
        - due_on
        - assigned_to_name
      type: object
    BookRenewalWorkbenchStep:
      additionalProperties: false
      properties:
        at:
          format: date-time
          type:
            - string
            - 'null'
        reason:
          type:
            - string
            - 'null'
        stage:
          type: string
      required:
        - stage
        - reason
        - at
      type: object
    EngineRenewalMember:
      additionalProperties: false
      properties:
        carrier:
          type: string
        expiration_date:
          format: date
          type: string
        line:
          description: The term's line of business as AMS 360 holds it.
          type: string
        open:
          description: >-
            Whether the term was open work when the run planned; the row's own
            term is read live. Null on the account workspace, which does not
            read the plan run.
          type:
            - boolean
            - 'null'
        policy_id:
          description: The term's policy id; any member's id opens the renewal.
          type: string
        policy_number:
          type: string
        state:
          description: >-
            The term's renewal outcome when the run planned; the row's own term
            is read live.
          type: string
      required:
        - policy_id
        - line
        - expiration_date
        - open
      type: object
    EngineRenewalWorkspaceItem:
      additionalProperties: false
      properties:
        action_kind:
          description: >-
            The one thing the item opens. recommend_markets and compare_quotes
            open the Assistant on the account's market recommendation and quote
            comparison asks.
          enum:
            - download
            - open_outlook
            - record_choice
            - assistant_draft
            - open_ams
            - mark_done
            - mark_lost
            - recommend_markets
            - compare_quotes
          type: string
        action_label:
          type:
            - string
            - 'null'
        applies:
          description: >-
            False for a remarket item until the recorded choice is remarket, and
            for a no-offer item once an offer is in.
          type: boolean
        closed_by:
          description: >-
            The receipts that close the item; empty when no recorded receipt
            closes it.
          items:
            $ref: '#/components/schemas/EngineRenewalWorkspaceReceipt'
          type:
            - array
            - 'null'
        done:
          description: Whether any receipt in closed_by closes the item.
          type: boolean
        done_by:
          description: >-
            The person who recorded the receipt; null for a carrier download or
            an unnamed principal.
          type:
            - string
            - 'null'
        done_on:
          description: >-
            The day the earliest dated receipt in closed_by was recorded,
            YYYY-MM-DD; for an Assistant record (placement_run,
            quote_comparison), the day of the account's latest one, which the
            Placement tab shows. Null without one, as for a source receipt,
            which records no day. Never inferred from time.
          type:
            - string
            - 'null'
        done_when:
          type: string
        id:
          description: >-
            Stable across config versions:
            &lt;path&gt;.&lt;stage&gt;.&lt;item&gt;, or &lt;path&gt;.mark_lost.
          type: string
        label:
          type: string
        stage_id:
          description: The stage the item belongs to; null for the path's Mark lost item.
          type:
            - string
            - 'null'
      required:
        - id
        - stage_id
        - label
        - action_kind
        - action_label
        - done_when
        - done
        - done_on
        - done_by
        - applies
        - closed_by
      type: object
    EngineRenewalWorkspaceNext:
      additionalProperties: false
      properties:
        due_on:
          description: >-
            The stage's due day, YYYY-MM-DD; null when the stage states none or
            for record_the_outcome.
          type:
            - string
            - 'null'
        key:
          description: >-
            The checklist item's id, or record_the_outcome once the term expired
            with no settled outcome.
          type: string
        label:
          description: >-
            The next step's words: the current stage's first open item, or the
            org's record_the_outcome words.
          type: string
        stage_id:
          description: The stage the item belongs to; null for record_the_outcome.
          type:
            - string
            - 'null'
      required:
        - key
        - label
        - stage_id
        - due_on
      type: object
    EngineRenewalWorkspaceOffer:
      additionalProperties: false
      properties:
        carrier:
          type:
            - string
            - 'null'
        change_amount:
          description: Offer premium minus the expiring premium; null unless both exist.
          format: double
          type:
            - number
            - 'null'
        change_percent:
          description: >-
            The change over the expiring premium, in percent to one decimal;
            null unless both exist and the expiring premium is not zero.
          format: double
          type:
            - number
            - 'null'
        expected_by:
          description: >-
            The day the checklist asks the carrier when no offer is in,
            YYYY-MM-DD.
          type: string
        over_threshold:
          description: >-
            Whether the change is over the config's strategy line (15 percent,
            SOP step 6); null without a change percent.
          type:
            - boolean
            - 'null'
        premium:
          description: >-
            The next term's premium as AMS 360 holds it; null when no offer is
            in or it carries none.
          format: double
          type:
            - number
            - 'null'
      required:
        - premium
        - carrier
        - change_amount
        - change_percent
        - over_threshold
        - expected_by
      type: object
    EngineRenewalWorkspacePath:
      additionalProperties: false
      properties:
        changed_at:
          description: >-
            The day a person set the path, YYYY-MM-DD; null when the rules or
            the default set it.
          type:
            - string
            - 'null'
        changed_by:
          description: >-
            The person who recorded the path, or whose recorded remarket choice
            moved the renewal to it; null when the rules or the default set it,
            or no name is on record.
          type:
            - string
            - 'null'
        id:
          description: The path id the plan Engine's config names.
          type: string
        label:
          type: string
        source:
          enum:
            - rule
            - person
            - default
          type: string
      required:
        - id
        - label
        - source
        - changed_by
        - changed_at
      type: object
    EngineRenewalWorkspacePathOption:
      additionalProperties: false
      properties:
        id:
          description: >-
            The path id the plan Engine's config names; the value
            renewal.path_record records.
          type: string
        label:
          type: string
        rule:
          description: >-
            The path's rule in plain words, e.g. Account premium under $10,000,
            direct bill; null when the config names no path rule.
          type:
            - string
            - 'null'
      required:
        - id
        - label
        - rule
      type: object
    EngineRenewalWorkspaceStage:
      additionalProperties: false
      properties:
        done_on:
          description: >-
            The latest day a receipt recorded for the stage's items, YYYY-MM-DD;
            null when the stage is not done or no receipt records a day. A done
            stage may carry no day.
          type:
            - string
            - 'null'
        due_on:
          description: >-
            The stage's due day from the config's days before expiration,
            YYYY-MM-DD; null when no source states one.
          type:
            - string
            - 'null'
        id:
          type: string
        label:
          type: string
        state:
          enum:
            - done
            - current
            - upcoming
          type: string
      required:
        - id
        - label
        - due_on
        - done_on
        - state
      type: object
    BookFamilyServing:
      additionalProperties: false
      properties:
        batch_set_id:
          type:
            - string
            - 'null'
        family:
          type: string
        gap:
          type: string
        notice:
          $ref: '#/components/schemas/BookFamilyNotice'
        plane:
          type: string
        presence:
          type: string
        published_at:
          format: date-time
          type:
            - string
            - 'null'
      required:
        - family
        - plane
        - presence
        - batch_set_id
        - published_at
      type: object
    BookOwnerFacet:
      additionalProperties: false
      properties:
        code:
          type: string
        count:
          format: int64
          type: integer
        display_name:
          description: >-
            name as a producer reads it: AMS 360's Last, First in reading order
            without the dates, phone numbers, extensions or splits the agency
            typed into it. Filters take code; sorts read name.
          type: string
        name:
          type: string
      required:
        - code
        - name
        - count
      type: object
    BookOrgFacet:
      additionalProperties: false
      properties:
        count:
          format: int64
          type: integer
        market:
          type:
            - string
            - 'null'
        office_code:
          type: string
        office_label:
          type: string
      required:
        - market
        - office_code
        - office_label
        - count
      type: object
    EngineRenewalWorkspaceReceipt:
      additionalProperties: false
      properties:
        field:
          enum:
            - renewal_stage
            - renewal_status
            - renewal_outcome
          type: string
        kind:
          description: >-
            ledger: a status.set of field to one of values on the policy;
            choice: the work choice recorded on the policy
            (renewal.strategy_record); carrier_offer: the carrier offer
            downloaded into AMS 360; placement_run: a market recommendation
            completed on the account during the expiring term; quote_comparison:
            a quote comparison saved on the account during the expiring term.
            The last two date the item and leave the stage timeline as the
            policy's own receipts set it.
          enum:
            - ledger
            - source
            - choice
            - carrier_offer
            - placement_run
            - quote_comparison
          type: string
        values:
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - kind
      type: object
    BookFamilyNotice:
      additionalProperties: false
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      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.