{
  "components": {
    "schemas": {
      "AckRequest": {
        "properties": {
          "acknowledged": {
            "type": "boolean"
          },
          "category": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "path_key": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "description": "Version is the group's acknowledgement version the caller last saw\n(0: none yet).",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ActivateRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ActiveJSON": {
        "properties": {
          "activated_at": {
            "format": "date-time",
            "type": "string"
          },
          "activated_by": {
            "type": "string"
          },
          "code": {
            "$ref": "#/components/schemas/ScriptCode"
          },
          "draft_version": {
            "type": "integer"
          },
          "samples_passed": {
            "type": "integer"
          },
          "sha256": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentActivation": {
        "description": "Activation records the samples run before activation.",
        "properties": {
          "activated_at": {
            "format": "date-time",
            "type": "string"
          },
          "activated_by": {
            "type": "string"
          },
          "samples_passed": {
            "type": "integer"
          },
          "sha256": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentAgentUpdate": {
        "description": "AgentUpdate says whether a newer listed version of an agent exists.",
        "properties": {
          "id": {
            "type": "string"
          },
          "latest_sha256": {
            "type": "string"
          },
          "latest_version": {
            "type": "string"
          },
          "missing": {
            "type": "boolean"
          },
          "newer": {
            "type": "boolean"
          },
          "purged": {
            "type": "boolean"
          },
          "revoked": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentApproval": {
        "description": "Approval is the administrator's review of a version.",
        "properties": {
          "approved_at": {
            "format": "date-time",
            "type": "string"
          },
          "approved_by": {
            "type": "string"
          },
          "beyond_parent": {
            "description": "BeyondParent (private remixes) must equal the capabilities the\nremix adds beyond its parent: approved explicitly, one by one.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "capabilities": {
            "description": "Capabilities must equal Capabilities(spec) (every capability is\napproved; an administrator who disagrees does not activate).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "egress": {
            "description": "Egress has one decision per declared egress and gcp_apis entry.",
            "items": {
              "$ref": "#/components/schemas/AgentEgressApproval"
            },
            "type": "array"
          },
          "sha256": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentCapabilityDiff": {
        "description": "CapabilityDiff compares two versions' capabilities (upgrade review).",
        "properties": {
          "added": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kept": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "removed": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AgentCost": {
        "description": "agentCost is the attributed cost at list prices, in millionths of a dollar.",
        "properties": {
          "callback_micros": {
            "type": "integer"
          },
          "channel_message_micros": {
            "type": "integer"
          },
          "outreach_micros": {
            "type": "integer"
          },
          "standard_micros": {
            "type": "integer"
          },
          "total_micros": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "AgentCriticalValue": {
        "description": "CriticalValue is one row of the tenant's critical-value table.",
        "properties": {
          "code": {
            "description": "Code and System: a LOINC code (system \"LN\") or a local code (system\nas sent in OBX-3.3, or \"\" for any).",
            "type": "string"
          },
          "high": {
            "type": "number"
          },
          "level": {
            "type": "string"
          },
          "low": {
            "type": "number"
          },
          "max_age": {
            "type": "number"
          },
          "min_age": {
            "type": "number"
          },
          "sex": {
            "description": "Sex \"F\" or \"M\" (PID-8; \"\" for any); age range in years (inclusive\nmin, exclusive max; 0 for none).",
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "unit": {
            "description": "Unit as sent in OBX-6.1 (compared case-insensitively; \"\" accepts any).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentEgressApproval": {
        "description": "EgressApproval is one host decision.",
        "properties": {
          "allow_private": {
            "description": "AllowPrivate lets this host resolve to a private address (an\non-premises system over the tenant's private connectivity).",
            "type": "boolean"
          },
          "approved": {
            "type": "boolean"
          },
          "attested_by": {
            "type": "string"
          },
          "baa_attested": {
            "description": "Attestation (required when the egress may carry PHI): the tenant\nhas a BAA or another basis for the external party receiving PHI\n(a Customer-Provided Service under the MSA).",
            "type": "boolean"
          },
          "basis": {
            "type": "string"
          },
          "credential_file": {
            "description": "CredentialFile is the tenant's credential for the host, a file\nmounted from Secret Manager under the broker's agent secrets\ndirectory (never inline).",
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentInstall": {
        "description": "Install is the configuration document of an installed agent.",
        "properties": {
          "activation": {
            "$ref": "#/components/schemas/AgentActivation"
          },
          "approval": {
            "$ref": "#/components/schemas/AgentApproval"
          },
          "blocking": {
            "description": "Blocking overrides the agent's default for an enrich agent (the\ntenant may make a non-blocking agent blocking, never the reverse\nwithout saying so here).",
            "type": "boolean"
          },
          "channels": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Channels binds the agent's logical channels to notification\nchannels; Targets binds its logical destinations to routes.",
            "type": "object"
          },
          "critical_values": {
            "description": "CriticalValues and Policy configure the critical_results detector\n(Policy: the facility's own wording of its categories, no PHI).",
            "items": {
              "$ref": "#/components/schemas/AgentCriticalValue"
            },
            "type": "array"
          },
          "destinations": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "directory": {
            "description": "Directory names the provider directory the agent may read.",
            "type": "string"
          },
          "file": {
            "type": "string"
          },
          "gcp_project": {
            "description": "GCPProject is the tenant's linked Google Cloud project for gcp_apis.",
            "type": "string"
          },
          "id": {
            "description": "the agent ID (one install per agent)",
            "type": "string"
          },
          "lookups": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "description": "Lookups are the tenant's rows for each declared lookup.",
            "type": "object"
          },
          "loop_due": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "description": "LoopDue overrides step due durations: loop → step → duration\n(e.g. follow-up procedure: 7d by default, tenant-configurable).",
            "type": "object"
          },
          "minutes_saved": {
            "description": "MinutesSaved is the customer's own estimate of staff minutes one\ncompleted outcome saves (outcomes.go); shown on the dashboard as the\ncustomer's estimate, never as a Velacent Bridge claim.",
            "type": "integer"
          },
          "notify": {
            "$ref": "#/components/schemas/AgentNotifyPolicy",
            "description": "Notify is the tenant's notification settings (agents with loops)."
          },
          "parallel_run": {
            "$ref": "#/components/schemas/AgentParallelRun"
          },
          "policy": {
            "type": "string"
          },
          "public_key": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "purged": {
            "description": "Purged is set when Velacent Bridge removed the version's content from the\nregistry (PHI or other content it may not keep): File is emptied,\nthe digest and signature record stay, and the install never runs\nagain (upgrade or uninstall).",
            "type": "boolean"
          },
          "remix": {
            "$ref": "#/components/schemas/AgentInstallRemix",
            "description": "Remix (private installs only) is the remix's lineage; ParallelRun\nthe parallel run that must precede running it live."
          },
          "revoked": {
            "description": "Revoked is set when the registry yanked the version (the broker\nstops running it at once).",
            "type": "boolean"
          },
          "revoked_note": {
            "type": "string"
          },
          "routes": {
            "description": "Routes limits message triggers to these routes (empty: every route\ndelivering a matching message); Destinations to these\n\"route/destination\" deliveries.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "run_mode": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "targets": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "test_runs": {
            "description": "TestRuns are the summaries (counts and codes) of the latest test runs.",
            "items": {
              "$ref": "#/components/schemas/AgentTestRunSummary"
            },
            "type": "array"
          },
          "trust": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentInstallRemix": {
        "description": "InstallRemix is the lineage of a private remix install: the parent\nversion, the parent's capabilities (what the remix adds beyond them is\napproved explicitly) and the draft version it was installed from.",
        "properties": {
          "draft_version": {
            "type": "integer"
          },
          "lineage": {
            "$ref": "#/components/schemas/AgentLineage"
          },
          "parent_capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AgentIssue": {
        "description": "Issue is one publish-check finding (never a value).",
        "properties": {
          "kind": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "where": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentLineage": {
        "description": "Lineage names the registry agent version a remix was adapted from.",
        "properties": {
          "id": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentMerge": {
        "description": "Merge is a three-way merge: the regions and the merged text, with\nconflict markers where both sides changed a region differently.",
        "properties": {
          "conflicts": {
            "type": "integer"
          },
          "regions": {
            "items": {
              "$ref": "#/components/schemas/AgentMergeRegion"
            },
            "type": "array"
          },
          "text": {
            "type": "string"
          },
          "theirs_changed": {
            "description": "TheirsChanged: lines the parent changed that the merge takes.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "AgentMergeRegion": {
        "description": "MergeRegion is one region of a three-way merge.",
        "properties": {
          "base": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "type": "string"
          },
          "ours": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "theirs": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AgentNotifyPolicy": {
        "description": "NotifyPolicy is the tenant's notification settings (install).",
        "properties": {
          "facility": {
            "description": "Facility prefixes every notification.",
            "type": "string"
          },
          "for": {
            "description": "For is the provider roles listed in a notification, in order\n(default ordering, referring, attending, consulting).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AgentOrganization": {
        "description": "Organization is the publisher's identity claim.",
        "properties": {
          "kind": {
            "description": "Kind is provider (default: name and NPI) or vendor (an approved\nverified vendor; the registry takes the name from its application).",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "npi": {
            "type": "string"
          },
          "verified": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentOutcomeOut": {
        "description": "agentOutcomeOut is one agent's measurements with its declaration, the\ncustomer's estimate and its cost.",
        "properties": {
          "acknowledged": {
            "type": "integer"
          },
          "agent": {
            "type": "string"
          },
          "billed_outreach": {
            "type": "integer"
          },
          "billed_standard": {
            "description": "Usage attributed to the agent.",
            "type": "integer"
          },
          "callback_minutes": {
            "type": "integer"
          },
          "callbacks_connected": {
            "type": "integer"
          },
          "callbacks_placed": {
            "type": "integer"
          },
          "changes_applied": {
            "description": "Actions by kind.",
            "type": "integer"
          },
          "channel_message_units": {
            "type": "integer"
          },
          "channel_messages": {
            "type": "integer"
          },
          "completed": {
            "type": "integer"
          },
          "completed_event": {
            "type": "string"
          },
          "completed_label": {
            "type": "string"
          },
          "completed_outcomes": {
            "description": "CompletedOutcomes counts the completed event in the window.",
            "type": "integer"
          },
          "cost": {
            "$ref": "#/components/schemas/AgentCost"
          },
          "dry_run": {
            "type": "integer"
          },
          "estimated_minutes_saved": {
            "type": "integer"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "external_calls": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "followups_closed": {
            "type": "integer"
          },
          "followups_created": {
            "type": "integer"
          },
          "followups_done": {
            "type": "integer"
          },
          "input_tokens": {
            "type": "integer"
          },
          "installed": {
            "type": "boolean"
          },
          "live": {
            "type": "integer"
          },
          "minutes_per_outcome": {
            "description": "MinutesPerOutcome is what the customer entered; EstimatedMinutes is\nthe customer's estimate (never a Velacent Bridge claim).",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "notifications_failed": {
            "type": "integer"
          },
          "notifications_sent": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "open_loops": {
            "description": "Open items now (not limited to the window).",
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "overdue_loops": {
            "type": "integer"
          },
          "reasons": {
            "items": {
              "$ref": "#/components/schemas/DbOutcomeReason"
            },
            "type": "array"
          },
          "refused": {
            "type": "integer"
          },
          "runs": {
            "description": "Runs are the message and scheduled executions (samples and loop\ntimer actions excluded). Completed ran to the end; Refused ran but\nthe platform refused part of the reply; Failed failed or timed out;\nSkipped did nothing (kill switch, not active).",
            "type": "integer"
          },
          "skipped": {
            "type": "integer"
          },
          "time_to_ack": {
            "$ref": "#/components/schemas/DbOutcomeSeconds"
          },
          "time_to_action": {
            "$ref": "#/components/schemas/DbOutcomeSeconds",
            "description": "Time from a loop opening (the agent acting on the message) to its\nfirst delivered notification and to its first acknowledgement."
          },
          "unacknowledged": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "AgentParallelRun": {
        "description": "ParallelRun records that a version of a private remix was activated in\nparallel (or dry run) first: it goes live only after that.",
        "properties": {
          "sha256": {
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "started_by": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentPublisherPageRequest": {
        "description": "PublisherPageRequest updates this tenant's publisher page.",
        "properties": {
          "description": {
            "type": "string"
          },
          "logo_png": {
            "contentEncoding": "base64",
            "type": "string"
          },
          "remove_logo": {
            "type": "boolean"
          },
          "support_contact": {
            "type": "string"
          },
          "website": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentSampleResult": {
        "description": "SampleResult is one sample test's result (value-free).",
        "properties": {
          "failures": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "for": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "level": {
            "type": "string"
          },
          "loops": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AgentTestRunSummary": {
        "description": "TestRunSummary is the kept result of one test run (counts and codes\nonly), stored with the install of the version that was tested.",
        "properties": {
          "actions": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "cost_per_1000_micros": {
            "description": "CostPer1000Micros estimates what 1,000 such messages cost at list\nprices (executions and delivered notifications, not Google's model\ncharges, which Google bills to the customer's project).",
            "type": "integer"
          },
          "executed": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "messages": {
            "description": "Messages were offered; Executed of them were run (the rest were\nunreadable or did not match a trigger); Triggered of those would\nhave acted.",
            "type": "integer"
          },
          "reasons": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "refusals": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "sha256": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "triggered": {
            "type": "integer"
          },
          "used_model": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AgentVendorApplicationRequest": {
        "description": "VendorApplicationRequest applies as a verified vendor (the registry\nchecks it; docs/DATA_PLANE.md, \"Workflow Agents\", \"Publishers\").",
        "properties": {
          "accept_terms": {
            "type": "string"
          },
          "claim_profile_id": {
            "description": "ClaimProfile optionally names the Official profile being claimed.",
            "type": "string"
          },
          "legal_name": {
            "description": "The organization: registered legal name, US state of registration and\nthe representation that it is a US organization.",
            "type": "string"
          },
          "listing_preview": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "org_state": {
            "type": "string"
          },
          "proof_email": {
            "type": "string"
          },
          "signer_email": {
            "type": "string"
          },
          "signer_name": {
            "type": "string"
          },
          "signer_title": {
            "type": "string"
          },
          "us_organization": {
            "type": "boolean"
          },
          "vendor_name": {
            "type": "string"
          },
          "website": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiAskRequest": {
        "properties": {
          "context": {},
          "history": {
            "items": {
              "$ref": "#/components/schemas/AiTurnJSON"
            },
            "type": "array"
          },
          "question": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiAskResponse": {
        "properties": {
          "answer": {
            "type": "string"
          },
          "citations": {
            "items": {
              "$ref": "#/components/schemas/AiCitation"
            },
            "type": "array"
          },
          "proposals": {
            "description": "Proposals are confirmation cards (ai_actions.go); nothing ran yet.",
            "items": {
              "$ref": "#/components/schemas/AiCard"
            },
            "type": "array"
          },
          "tools_used": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "AiCard": {
        "description": "aiCard is a proposal as the console (and an MCP agent) sees it: never\nthe request bodies.",
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "base_version": {
            "type": "integer"
          },
          "checks": {},
          "count": {
            "type": "integer"
          },
          "diff": {
            "items": {
              "$ref": "#/components/schemas/AiDiffLine"
            },
            "type": "array"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "plan_hash": {
            "type": "string"
          },
          "proposed_by": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "result": {},
          "risk": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "token": {
            "description": "Token is returned once, to the proposing console user only.",
            "type": "string"
          },
          "tool": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiCitation": {
        "properties": {
          "ref": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiDecisionRequest": {
        "properties": {
          "plan_hash": {
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiDiffLine": {
        "description": "aiDiffLine is one line of a plan's diff: op \"+\", \"-\" or \" \".",
        "properties": {
          "op": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiTurnJSON": {
        "properties": {
          "role": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ApiClientView": {
        "description": "apiClientView is a client as the console shows it: never a secret or a\ndigest.",
        "properties": {
          "auth": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "endpoints": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "environment": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "key_count": {
            "type": "integer"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "link_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "previous_secret_valid_until": {
            "format": "date-time",
            "type": "string"
          },
          "quickstart": {
            "$ref": "#/components/schemas/DevapiQuickstart"
          },
          "rate_per_minute": {
            "type": "integer"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "send_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "usage_30d": {
            "$ref": "#/components/schemas/DbAPIClientUsage"
          }
        },
        "type": "object"
      },
      "ApplyRequest": {
        "properties": {
          "bindings": {
            "items": {
              "$ref": "#/components/schemas/ProfileBinding"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "BindingsReq": {
        "properties": {
          "blocking": {
            "type": "boolean"
          },
          "channels": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "critical_values": {
            "items": {
              "$ref": "#/components/schemas/AgentCriticalValue"
            },
            "type": "array"
          },
          "destinations": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "lookups": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "object"
          },
          "loop_due": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "object"
          },
          "notify": {
            "$ref": "#/components/schemas/AgentNotifyPolicy"
          },
          "policy": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "run_mode": {
            "type": "string"
          },
          "targets": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "BundleExternalStatus": {
        "description": "ExternalStatus is an external dependency checked against the target.",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "description": "Kind is \"provider_directory\" (never carried: it holds provider\ncontact data) or \"profile\" (an interface profile; its rules are\nembedded in the route, so it is not needed to run).",
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "required_by": {
            "description": "RequiredBy lists \"kind/id\" of the entities that refer to it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sha256": {
            "type": "string"
          },
          "status": {
            "description": "Status is \"present\", \"missing\" or \"informational\".",
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "BundleItem": {
        "description": "Item is one entity in a plan.",
        "properties": {
          "action": {
            "type": "string"
          },
          "arrives_disabled": {
            "description": "ArrivesDisabled: the entity is written disabled and stays so until it\nis enabled.",
            "type": "boolean"
          },
          "choices": {
            "description": "Choices are the decisions the person may take for a conflict.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "conflict": {
            "description": "Conflict: the target account already has this ID with a different\nconfiguration.",
            "type": "boolean"
          },
          "document_sha256": {
            "type": "string"
          },
          "from_version": {
            "description": "FromVersion is the target's version a replace overwrites.",
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "permitted": {
            "type": "boolean"
          },
          "reasons": {
            "description": "Reasons say why an item is blocked.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "target_id": {
            "description": "TargetID is the ID it is written under (differs after a rename).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "BundleMissing": {
        "description": "Missing is a dependency the target account lacks.",
        "properties": {
          "hint": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "required_by": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "BundleOptions": {
        "description": "Options are the choices a person makes on the plan.",
        "properties": {
          "attest_baa": {
            "description": "AttestBAA is the restoring person's own attestation that a business\nassociate agreement (or other basis) covers the service behind each\nrestored notification channel's URL, because notifications can carry\nPHI. A bundle never carries an attestation; without this the channels\nare blocked (or can be skipped).",
            "type": "boolean"
          },
          "conflict": {
            "description": "Conflict is the default for every conflicting entity (default\nConflictRename).",
            "type": "string"
          },
          "decisions": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Decisions overrides it per entity (\"kind/id\" to rename, replace or\nskip). Skip also lets an apply proceed without a blocked entity.",
            "type": "object"
          }
        },
        "type": "object"
      },
      "BundlePlan": {
        "description": "Plan is what a restore would do, shown before anything changes.",
        "properties": {
          "blocked": {
            "description": "Blocked: an apply is refused until each blocked item is fixed or\nchosen to be skipped.",
            "type": "boolean"
          },
          "bundle_digest": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "external_dependencies": {
            "items": {
              "$ref": "#/components/schemas/BundleExternalStatus"
            },
            "type": "array"
          },
          "format_version": {
            "type": "integer"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/BundleItem"
            },
            "type": "array"
          },
          "missing": {
            "items": {
              "$ref": "#/components/schemas/BundleMissing"
            },
            "type": "array"
          },
          "must_supply": {
            "description": "MustSupply is what the target account must provide before the\nrestored entities can be enabled (for the entities this plan writes).",
            "items": {
              "$ref": "#/components/schemas/BundleSupply"
            },
            "type": "array"
          },
          "plan_sha256": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "source_tenant": {
            "type": "string"
          },
          "summary": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "validation_error": {
            "description": "ValidationError is the configuration validation's verdict on the\nresult (the caller fills it in; empty: valid).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "BundleSupply": {
        "description": "Supply is one value the target account must provide again.",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "path": {
            "description": "Path is the JSON Pointer of the field in the entity's document.",
            "type": "string"
          },
          "reference": {
            "description": "Reference is the non-secret reference the configuration holds (a\nmounted file path or a certificate fingerprint); empty for an\nattestation.",
            "type": "string"
          },
          "type": {
            "description": "Type is one of the Supply constants.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "CallAttemptView": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "n": {
            "type": "integer"
          },
          "result": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CallContactReq": {
        "properties": {
          "consent": {
            "type": "boolean"
          },
          "do_not_call": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CancelReplayRequest": {
        "properties": {
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CertActionRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "revocation_reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CertificateJSON": {
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "days_left": {
            "type": "integer"
          },
          "from_ca": {
            "type": "boolean"
          },
          "issuer": {
            "type": "string"
          },
          "last_seen_at": {
            "format": "date-time",
            "type": "string"
          },
          "not_after": {
            "format": "date-time",
            "type": "string"
          },
          "not_before": {
            "format": "date-time",
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "renewal": {
            "description": "Renewal is \"auto\" (issued by automatic renewal: the agent renews\nit) or \"manual\".",
            "type": "string"
          },
          "retire_at": {
            "format": "date-time",
            "type": "string"
          },
          "revoke_reason": {
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "sender_id": {
            "type": "string"
          },
          "serial": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ChannelsAccount": {
        "description": "Account is a carrier account's sending setup: Velacent Bridge's (admin.json\n\"channels\", one messaging profile per tenant) or the tenant's own (BYO).\nCredentials are never in the document: APIKeyEnv names the environment\nvariable a Secret Manager secret is mounted as.",
        "properties": {
          "api_key_env": {
            "description": "APIKeyEnv names the API key variable (VELACENT_CARRIER_*).",
            "type": "string"
          },
          "connection_id": {
            "description": "ConnectionID is the Call Control application used to dial (empty:\nno Callback).",
            "type": "string"
          },
          "from": {
            "description": "From is the sending number for SMS and the caller ID for calls\n(10DLC or toll-free, registered).",
            "type": "string"
          },
          "messaging_profile_id": {
            "description": "MessagingProfileID is the tenant's messaging profile (its inbound\nwebhook is this tenant's console; STOP/HELP are profile-wide).",
            "type": "string"
          },
          "rcs_agent_id": {
            "description": "RCSAgentID is the verified RCS agent (empty: Text is always SMS).",
            "type": "string"
          },
          "webhook_public_key": {
            "description": "WebhookPublicKey is the account's Ed25519 webhook public key\n(base64, from the carrier's portal); every webhook is verified with it.",
            "type": "string"
          },
          "whatsapp_from": {
            "description": "WhatsAppFrom is the WhatsApp Business number (empty: no WhatsApp).",
            "type": "string"
          },
          "whatsapp_templates": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "WhatsAppTemplates names the approved utility templates per purpose\n(alert, notice, outreach) and the authentication template\n(verification). Each takes the parameters documented in\ndocs/DEPLOYMENT.md, \"Notification channels\".",
            "type": "object"
          }
        },
        "type": "object"
      },
      "ChannelsContact": {
        "description": "Contact is a person's contact method on one channel.",
        "properties": {
          "address": {
            "description": "Address is an e-mail address (email) or an E.164 number.",
            "type": "string"
          },
          "carrier": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "failures": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "line_type": {
            "description": "Lookup results (Text, WhatsApp, Callback).",
            "type": "string"
          },
          "rcs": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "subject": {
            "description": "the console user it belongs to",
            "type": "string"
          },
          "voip": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ChannelsNoticeRoute": {
        "description": "NoticeRoute sends platform notices of Kinds (empty: all) to Users on\nChannels, and/or to Alerts: the customer's own Slack, Microsoft Teams or\nGoogle Chat targets and alert webhooks (kinds messaging and webhook),\nposted as PHI-free alerts (internal/messaging) and billed as alert\nmessages.",
        "properties": {
          "alerts": {
            "items": {
              "$ref": "#/components/schemas/DashboardsChannel"
            },
            "type": "array"
          },
          "channels": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kinds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "users": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ChannelsSettings": {
        "description": "Settings are the tenant's channel settings (console › Notifications).",
        "properties": {
          "byo": {
            "$ref": "#/components/schemas/ChannelsAccount",
            "description": "BYO is the tenant's own carrier account (Provider \"byo\")."
          },
          "call_attempts": {
            "description": "CallAttempts per contact before the next contact in a chain (1-3,\ndefault 2); RetryMinutes between them (default 5).",
            "type": "integer"
          },
          "callback_number": {
            "description": "CallbackNumber is the number people are asked to call back (E.164);\nthe only thing a voicemail says besides the facility and the name.",
            "type": "string"
          },
          "facility": {
            "description": "Facility is the name said and shown (\"an automated call from ...\").",
            "type": "string"
          },
          "note_format": {
            "type": "string"
          },
          "note_route": {
            "description": "NoteRoute is the route a Callback's call note is delivered on, to\nthe customer's own systems (notemsg.go); empty: not delivered.\nNoteFormat is what its destination takes: fhir (Communication), mdm\n(MDM^T02) or oru (ORU^R01).",
            "type": "string"
          },
          "notices": {
            "description": "Notices routes platform notices to people (besides the e-mail every\nadministrator receives).",
            "items": {
              "$ref": "#/components/schemas/ChannelsNoticeRoute"
            },
            "type": "array"
          },
          "provider": {
            "description": "Provider: \"velacent\" (default: Velacent Bridge provides the line) or\n\"byo\" (the tenant's own carrier account; Secret Manager credentials).",
            "type": "string"
          },
          "retry_minutes": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ClearinghouseExplanation": {
        "description": "Explanation is a meaning and what to do about it.",
        "properties": {
          "action": {
            "type": "string"
          },
          "meaning": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ClearinghouseResult": {
        "description": "ClearinghouseResult is the connection test's answer.",
        "properties": {
          "error_class": {
            "type": "string"
          },
          "explanation": {
            "$ref": "#/components/schemas/ClearinghouseExplanation"
          },
          "ok": {
            "type": "boolean"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfUploadReq": {
        "properties": {
          "confirm_synthetic": {
            "description": "ConfirmSynthetic confirms that values the screen found (dates of\nbirth, record numbers, SSN-shaped numbers, patient segments) are\nsynthetic sample data.",
            "type": "boolean"
          },
          "data": {
            "description": "base64",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "no_phi": {
            "description": "NoPHI is the uploader's statement that the document contains no PHI\n(required).",
            "type": "boolean"
          },
          "request_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigAgentSettings": {
        "description": "AgentSettings links the tenant's Google Cloud project: Google Cloud AI and the\nGoogle Cloud APIs agents call run there, billed by Google to the tenant.\nAI agents do not run until the link is verified.",
        "properties": {
          "baa_confirmed_at": {
            "format": "date-time",
            "type": "string"
          },
          "baa_confirmed_by": {
            "description": "The administrator confirmed the tenant accepted Google Cloud's BAA\nfor the project's billing account.",
            "type": "string"
          },
          "gcp_project": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "location": {
            "description": "Google Cloud AI location (default us)",
            "type": "string"
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "official_only": {
            "description": "OfficialOnly restricts installs to official agents (Enterprise).",
            "type": "boolean"
          },
          "source": {
            "description": "Source says where the project came from: marketplace (the project\nthe Marketplace purchase was made in) or chosen.",
            "type": "string"
          },
          "verified_at": {
            "description": "VerifiedAt is when the verification check passed (every permission\nthe installed agents need, tested with testIamPermissions as the\ntenant's service account); Missing lists what it lacked.",
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigFieldMap": {
        "properties": {
          "alternate_codes": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "array"
          },
          "form": {
            "type": "string"
          },
          "labels": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigPausedFeature": {
        "description": "PausedFeature is configuration the deployment keeps but does not run\nbecause its edition or add-ons do not include it (a downgrade). A\ndowngrade never fails a rollout and never deletes configuration: the\nfeature is switched off at start, its block stays in the configuration\nfile, the console names it in a banner with how to get it back, routes\nthat depend on it hold their messages with a reason, an audit record is\nwritten, and the next rollout on an edition that includes it runs it\nagain without re-entry.",
        "properties": {
          "feature": {
            "description": "Feature is the stable ID (atna, external_empi, empi_matching).",
            "type": "string"
          },
          "message": {
            "description": "Message is the console banner text (plain language).",
            "type": "string"
          },
          "needs": {
            "description": "Needs is what restores it (\"enterprise\" or \"empi\" add-on).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigPrecedenceOverride": {
        "properties": {
          "authority": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "recency": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ConfigReviewRules": {
        "properties": {
          "always_review": {
            "type": "boolean"
          },
          "field_maps": {
            "items": {
              "$ref": "#/components/schemas/ConfigFieldMap"
            },
            "type": "array"
          },
          "force_ocr": {
            "type": "boolean"
          },
          "min_confidence": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object"
          },
          "precedence": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ConfigPrecedenceOverride"
            },
            "type": "object"
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_by_type": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object"
          },
          "required_phones": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "safety_critical": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "split": {
            "$ref": "#/components/schemas/ConfigSplitRules"
          },
          "trusted_accounts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "trusted_senders": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "unverified_sender": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigSplitRules": {
        "properties": {
          "document_threshold": {
            "type": "number"
          },
          "max_documents": {
            "type": "integer"
          },
          "mode": {
            "type": "string"
          },
          "model_confirm": {
            "type": "boolean"
          },
          "patient_threshold": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "ConfigcodeApplyRequest": {
        "description": "ApplyRequest applies a plan the caller reviewed: the server plans again\nand refuses unless the result has the same PlanSHA256.",
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/ConfigcodeEntity"
            },
            "type": "array"
          },
          "kinds": {
            "description": "Kinds limits the plan (and pruning) to these kinds; every desired\nentity must be of one of them. Empty: every kind.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "plan_sha256": {
            "type": "string"
          },
          "prune": {
            "description": "Prune deletes live entities of the managed, writable kinds that the\nfiles do not hold. Read-only kinds are never deleted.",
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigcodeChange": {
        "description": "Change is one entity in a plan.",
        "properties": {
          "action": {
            "type": "string"
          },
          "document_sha256": {
            "description": "DocumentSHA256 is the digest of the desired canonical document.",
            "type": "string"
          },
          "from_version": {
            "description": "FromVersion is the live version the change replaces (0: none).",
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "paths": {
            "description": "Paths are the JSON paths that differ (at most MaxPaths).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "permission": {
            "description": "Permission is what writing the entity requires; Permitted reports\nwhether the caller holds it.",
            "type": "string"
          },
          "permitted": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ConfigcodeEntity": {
        "description": "Entity is one configuration document as it is stored in a file.",
        "properties": {
          "document": {},
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigcodePlan": {
        "description": "Plan is the result of comparing desired entities with the live\nconfiguration.",
        "properties": {
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ConfigcodeChange"
            },
            "type": "array"
          },
          "config_version": {
            "type": "integer"
          },
          "plan_sha256": {
            "type": "string"
          },
          "summary": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "unmanaged": {
            "description": "Unmanaged counts live entities in scope that the files do not hold\nand that are kept (no prune, or a read-only kind).",
            "type": "integer"
          },
          "validation_error": {
            "description": "ValidationError is the configuration validation's verdict on the\nresult (empty: valid). An apply runs the same validation again.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ConfigcodePlanRequest": {
        "description": "PlanRequest asks for a plan: the desired entities, optionally limited to\nsome kinds, optionally deleting live entities the files no longer hold.",
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/ConfigcodeEntity"
            },
            "type": "array"
          },
          "kinds": {
            "description": "Kinds limits the plan (and pruning) to these kinds; every desired\nentity must be of one of them. Empty: every kind.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "prune": {
            "description": "Prune deletes live entities of the managed, writable kinds that the\nfiles do not hold. Read-only kinds are never deleted.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ConformanceRef": {
        "description": "Ref identifies the profile a rule set came from.",
        "properties": {
          "id": {
            "type": "string"
          },
          "route": {
            "description": "Route is the profile's template route key this route was made from.",
            "type": "string"
          },
          "sha256": {
            "description": "SHA256 is the hex digest of the profile file applied.",
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactReq": {
        "properties": {
          "address": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateInvitationRequest": {
        "properties": {
          "direction": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "message_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "organization": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "partner_kind": {
            "type": "string"
          },
          "route_names": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sender_id": {
            "type": "string"
          },
          "transports": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "CreateInviteRequest": {
        "properties": {
          "direction": {
            "type": "string"
          },
          "expires_hours": {
            "type": "integer"
          },
          "message_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "partner_kind": {
            "type": "string"
          },
          "partner_label": {
            "type": "string"
          },
          "sender_id": {
            "type": "string"
          },
          "transports": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "CreatePromotionRequest": {
        "properties": {
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/PromoteEvidence"
            },
            "type": "array"
          },
          "note": {
            "type": "string"
          },
          "package": {},
          "select": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "CreateRunRequest": {
        "properties": {
          "candidate": {
            "$ref": "#/components/schemas/ParallelrunCandidate"
          },
          "gate": {
            "$ref": "#/components/schemas/ParallelrunGate"
          },
          "name": {
            "type": "string"
          },
          "routes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "rules": {
            "$ref": "#/components/schemas/ParallelrunRules"
          },
          "source": {
            "$ref": "#/components/schemas/ParallelrunSource"
          }
        },
        "type": "object"
      },
      "CustomerCallView": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "callback_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "notes": {
            "$ref": "#/components/schemas/SupportcallNotes",
            "description": "Notes are the full notes: only the customer's own users get them."
          },
          "notes_mode": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DashboardsChannel": {
        "description": "Channel is where an alert is sent.",
        "properties": {
          "body_template": {
            "description": "BodyTemplate is the JSON body (Go text/template; see\ndocs/ADMIN_UI.md, \"Alert webhooks\"). Empty: the default body.",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "messaging": {
            "$ref": "#/components/schemas/MessagingConnection",
            "description": "Messaging is the target (messaging): one Slack, Teams or Chat\ntarget, used for alerts only."
          },
          "secret_env": {
            "description": "SecretEnv names the environment variable holding the HMAC signing\nkey (webhook): a Secret Manager secret mounted into the Admin API\nservice, named VELACENT_ALERT_*. The key never appears in the rule.",
            "type": "string"
          },
          "to": {
            "description": "To are the email recipients (email).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "url": {
            "description": "URL is the HTTPS endpoint (webhook).",
            "type": "string"
          },
          "users": {
            "description": "Users are console users (subjects) reached on their verified contact\nmethods (text, whatsapp; callback calls them in this order).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DashboardsFilter": {
        "description": "Filter restricts a tile.",
        "properties": {
          "field": {
            "type": "string"
          },
          "op": {
            "description": "eq, neq, in",
            "type": "string"
          },
          "values": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DashboardsRule": {
        "description": "Rule is a customer-defined alert rule.",
        "properties": {
          "channels": {
            "items": {
              "$ref": "#/components/schemas/DashboardsChannel"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "for_minutes": {
            "description": "ForMinutes is how long the condition must hold before it fires.",
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "scope": {
            "description": "Scope is the route (or destination, for device_down); empty: any.",
            "type": "string"
          },
          "severity": {
            "description": "info, warning, critical",
            "type": "string"
          },
          "threshold": {
            "type": "number"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DashboardsTile": {
        "description": "Tile is one chart of a dashboard.",
        "properties": {
          "chart": {
            "type": "string"
          },
          "dimensions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "filters": {
            "items": {
              "$ref": "#/components/schemas/DashboardsFilter"
            },
            "type": "array"
          },
          "metric": {
            "type": "string"
          },
          "time_range": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbAPIClientUsage": {
        "description": "APIClientUsage is a client's activity over the last 30 days (counts).",
        "properties": {
          "Errors": {
            "type": "integer"
          },
          "Events": {
            "type": "integer"
          },
          "Requests": {
            "type": "integer"
          },
          "WebhookFailures": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DbAssignment": {
        "description": "Assignment scopes a clerk to a route, a document/fax connection or a\nfax number.",
        "properties": {
          "kind": {
            "description": "route | connection | number",
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbBadNumber": {
        "description": "BadNumber is one entry of the tenant's bad-number list.",
        "properties": {
          "cleared_at": {
            "format": "date-time",
            "type": "string"
          },
          "cleared_by": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "first_seen": {
            "format": "date-time",
            "type": "string"
          },
          "flagged": {
            "type": "boolean"
          },
          "held": {
            "description": "faxes held for this number",
            "type": "integer"
          },
          "last_seen": {
            "format": "date-time",
            "type": "string"
          },
          "notified_at": {
            "format": "date-time",
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "reminded_at": {
            "format": "date-time",
            "type": "string"
          },
          "routes": {
            "description": "routes whose held faxes use it",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DbBuildSession": {
        "description": "BuildSession is one build factory session for a request.",
        "properties": {
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_reads": {
            "type": "integer"
          },
          "opened_at": {
            "format": "date-time",
            "type": "string"
          },
          "opened_by": {
            "type": "string"
          },
          "reads": {
            "type": "integer"
          },
          "request_ref": {
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "revoked_by": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbDisclosureCounts": {
        "description": "DisclosureCounts are a connection's disclosure records by delivery\nstate (no patient data).",
        "properties": {
          "delivered": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "pending": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DbFHIRSourceState": {
        "description": "FHIRSourceState is a FHIR polling or bulk export source's persisted\nstate (no PHI: a watermark instant, the server's job URL, counts and a\nreason code).",
        "properties": {
          "job_in_progress": {
            "type": "boolean"
          },
          "job_started_at": {
            "format": "date-time",
            "type": "string"
          },
          "kind": {
            "description": "poll | bulk_export",
            "type": "string"
          },
          "last_duplicates": {
            "type": "integer"
          },
          "last_error": {
            "type": "string"
          },
          "last_resources": {
            "type": "integer"
          },
          "last_run_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_success_at": {
            "format": "date-time",
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "total_resources": {
            "type": "integer"
          },
          "watermark": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbInboundLogEntry": {
        "description": "InboundLogEntry is one received fax in the log (transmission metadata).",
        "properties": {
          "account": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "from_number": {
            "description": "as presented (unverified caller ID)",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "latency_seconds": {
            "type": "integer"
          },
          "pages": {
            "type": "integer"
          },
          "received_at": {
            "format": "date-time",
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "status": {
            "description": "received | fetching | in_review | filed | quarantined | failed | junk",
            "type": "string"
          },
          "to_number": {
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DbInboundView": {
        "description": "InboundView is an inbound fax for the console (no numbers, no link).",
        "properties": {
          "account": {
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "latency_seconds": {
            "description": "LatencySeconds is provider receive time to pipeline entry.",
            "type": "integer"
          },
          "received_at": {
            "format": "date-time",
            "type": "string"
          },
          "recorded_at": {
            "format": "date-time",
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DbOutcomeReason": {
        "description": "OutcomeReason is a count of runs that did not complete, by code.",
        "properties": {
          "count": {
            "type": "integer"
          },
          "outcome": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbOutcomeSeconds": {
        "description": "OutcomeSeconds is a duration distribution (seconds) over n items.",
        "properties": {
          "median_s": {
            "type": "number"
          },
          "n": {
            "type": "integer"
          },
          "p90_s": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "DbParallelRun": {
        "description": "ParallelRun is a run as the Admin API shows it (metadata).",
        "properties": {
          "candidate": {
            "$ref": "#/components/schemas/ParallelrunCandidate"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "error_message": {
            "type": "string"
          },
          "files": {
            "type": "integer"
          },
          "frozen": {
            "$ref": "#/components/schemas/ParallelrunFrozenCandidate"
          },
          "gate": {
            "$ref": "#/components/schemas/ParallelrunGate"
          },
          "id": {
            "type": "string"
          },
          "items_done": {
            "type": "integer"
          },
          "items_total": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "plan": {
            "$ref": "#/components/schemas/ParallelrunPlan"
          },
          "routes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "rules": {
            "$ref": "#/components/schemas/ParallelrunRules"
          },
          "signed_off_at": {
            "format": "date-time",
            "type": "string"
          },
          "signed_off_by": {
            "type": "string"
          },
          "signoff_note": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/ParallelrunSource"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DbReportSchedule": {
        "description": "ReportSchedule is a scheduled report.",
        "properties": {
          "cadence": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "frameworks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "last_run_at": {
            "format": "date-time",
            "type": "string"
          },
          "next_run_at": {
            "format": "date-time",
            "type": "string"
          },
          "recipients": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DbRunFile": {
        "description": "RunFile is one file of a run's corpus.",
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DbVendorLink": {
        "description": "VendorLink is one accepted vendor hub link.",
        "properties": {
          "BAAAttested": {
            "type": "boolean"
          },
          "BulkAllPatients": {
            "type": "boolean"
          },
          "BulkAllPatientsAt": {
            "format": "date-time",
            "type": "string"
          },
          "BulkAllPatientsBy": {
            "type": "string"
          },
          "BulkEpoch": {
            "type": "integer"
          },
          "BulkFreshnessHours": {
            "type": "integer"
          },
          "BulkTypes": {
            "description": "Bulk export (migration 0097): the types the provider lets the link\nexport, the all-patients grant (who enabled it, when), the freshness\nperiod of held exports in hours and the epoch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "CreatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "DataScopes": {
            "description": "Partner FHIR access (migration 0096): the scopes the provider granted\n(never wider than RequestedDataScopes, what the vendor asked for), the\npartner query system the facade answers from and the patient policy.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "DecidedBy": {
            "type": "string"
          },
          "ID": {
            "type": "string"
          },
          "PatientPolicy": {
            "type": "string"
          },
          "Purpose": {
            "type": "string"
          },
          "QuerySystem": {
            "type": "string"
          },
          "ReceiveRoutes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "RequestedDataScopes": {
            "description": "Partner FHIR access (migration 0096): the scopes the provider granted\n(never wider than RequestedDataScopes, what the vendor asked for), the\npartner query system the facade answers from and the patient policy.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "SendTypes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "Status": {
            "type": "string"
          },
          "StatusReason": {
            "type": "string"
          },
          "TermsVersion": {
            "type": "string"
          },
          "UpdatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "VendorAccount": {
            "type": "string"
          },
          "VendorName": {
            "type": "string"
          },
          "VendorSuspended": {
            "type": "boolean"
          },
          "Version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DecideIncidentRequest": {
        "properties": {
          "decision": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "status": {
            "description": "Status optionally moves the incident on (closed, or notified once a\nnotice is recorded).",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DeleteScriptRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DemoInfo": {
        "description": "demoInfo describes the demo environment to the console.",
        "properties": {
          "simulated_ai": {
            "type": "boolean"
          },
          "synthetic_data": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "DevapiNewClient": {
        "description": "NewClient is what an administrator asks for.",
        "properties": {
          "accept_terms_version": {
            "description": "AcceptTermsVersion is the version of the API Terms of Use the\nadministrator accepted for this client (checked by the admin API).",
            "type": "string"
          },
          "auth": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "jwks": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "public_key_pem": {
            "type": "string"
          },
          "rate_per_minute": {
            "type": "integer"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "send_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "DevapiQuickstart": {
        "description": "Quickstart holds copy-paste samples for one client.",
        "properties": {
          "curl": {
            "type": "string"
          },
          "node": {
            "type": "string"
          },
          "python": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DiffValuesRequest": {
        "properties": {
          "after": {
            "type": "integer"
          },
          "category": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "note": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "reason_code": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DisclosureOption": {
        "description": "DisclosureOption is a route that may receive disclosure records. Hosts\nare the hosts its destinations name; OtherHost is true when one differs\nfrom the host of the customer's system the connection reads (a warning:\ncheck that it is still the customer's own system).",
        "properties": {
          "hosts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "other_host": {
            "type": "boolean"
          },
          "route": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DraftEval": {
        "description": "draftEval is a draft as the console shows it: whether it parses, what\nkeeps it from being installed or published, its samples and its\ncapabilities against its parent's.",
        "properties": {
          "agent_version": {
            "type": "string"
          },
          "beyond_parent": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dropped_from_parent": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "issues": {
            "items": {
              "$ref": "#/components/schemas/AgentIssue"
            },
            "type": "array"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "problems": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "samples": {
            "items": {
              "$ref": "#/components/schemas/AgentSampleResult"
            },
            "type": "array"
          },
          "samples_pass": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "DraftInstall": {
        "description": "draftInstall is the private install of a draft, when there is one.",
        "properties": {
          "current": {
            "description": "installed from the draft's current file",
            "type": "boolean"
          },
          "draft_version": {
            "type": "integer"
          },
          "ready": {
            "type": "boolean"
          },
          "run_mode": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DraftOut": {
        "description": "draftOut is a draft in the console.",
        "properties": {
          "evaluation": {
            "$ref": "#/components/schemas/DraftEval"
          },
          "file": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "installed": {
            "$ref": "#/components/schemas/DraftInstall"
          },
          "lineage": {
            "$ref": "#/components/schemas/AgentLineage"
          },
          "reason": {
            "type": "string"
          },
          "redacted": {
            "type": "boolean"
          },
          "saved_at": {
            "format": "date-time",
            "type": "string"
          },
          "saved_by": {
            "type": "string"
          },
          "upstream": {
            "$ref": "#/components/schemas/AgentAgentUpdate"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DraftRequest": {
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/ProfileMeta"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EhrKitSummary": {
        "properties": {
          "attribution": {
            "type": "string"
          },
          "badge": {
            "type": "string"
          },
          "flows": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hl7v2": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "product_versions": {
            "items": {
              "$ref": "#/components/schemas/EhrkitProductVersion"
            },
            "type": "array"
          },
          "summary": {
            "type": "string"
          },
          "tested_on": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitAuth": {
        "description": "Auth is the SMART Backend Services pattern.",
        "properties": {
          "alg": {
            "description": "RS384 or ES384",
            "type": "string"
          },
          "base_url_hint": {
            "description": "BaseURLHint describes the FHIR base URL the customer enters.",
            "type": "string"
          },
          "kind": {
            "description": "smart_backend",
            "type": "string"
          },
          "registration": {
            "description": "Registration is how the customer registers the public key.",
            "type": "string"
          },
          "scope_style": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitBinding": {
        "description": "Binding is what the customer supplies when applying a kit: connection\ndetails only, never a secret. The signing key is a Cloud KMS key version\nin the customer's own tenant: the private key is generated there and is\nnever exported; the kit only names it.",
        "properties": {
          "address": {
            "description": "HL7 v2 over MLLP (kits with an HL7 v2 pattern): Address is the\nhost:port of the system's MLLP interface (through a VPN or Velacent Bridge\nRamp); TLSCAFile the CA bundle file when the link uses TLS. The\nsetup check connects, and sends one synthetic message only when\nSendSynthetic is set (it is delivered to that system, so use a test\ninterface).",
            "type": "string"
          },
          "allow_private": {
            "description": "AllowPrivate permits a server at a private (VPC, VPN) address.",
            "type": "boolean"
          },
          "base_url": {
            "description": "BaseURL is the FHIR base URL of the customer's system.",
            "type": "string"
          },
          "client_id": {
            "description": "ClientID is the client ID the vendor issued to the customer's app\nregistration (an identifier, not a secret).",
            "type": "string"
          },
          "group_id": {
            "description": "GroupID is the Group a group-level Bulk $export reads.",
            "type": "string"
          },
          "kid": {
            "description": "KID is the key ID published in the JWKS (default: KMSKey).",
            "type": "string"
          },
          "kms_key": {
            "description": "KMSKey is the Cloud KMS key version that signs client assertions.",
            "type": "string"
          },
          "send_synthetic": {
            "type": "boolean"
          },
          "sender_id": {
            "description": "SenderID is the sender the feeds record resources under.",
            "type": "string"
          },
          "skip_routes": {
            "description": "SkipRoutes are template routes the customer does not want.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "synthetic_patient_id": {
            "description": "SyntheticPatientID is a synthetic test patient the setup checker may\nread (never a real patient).",
            "type": "string"
          },
          "synthetic_search": {
            "description": "SyntheticSearch is a search (Patient?_count=2) the checker pages\nthrough on a synthetic test system, to prove paging works.",
            "type": "string"
          },
          "synthetic_type": {
            "description": "SyntheticType is the synthetic message type sent (default: the first\nthe kit generates, e.g. ADT^A08).",
            "type": "string"
          },
          "tls_ca_file": {
            "type": "string"
          },
          "token_url": {
            "description": "TokenURL overrides discovery (.well-known/smart-configuration).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitFeed": {
        "description": "Feed is a read preset: a search poll or a Bulk Data $export.",
        "properties": {
          "description": {
            "type": "string"
          },
          "flow": {
            "type": "string"
          },
          "interval_seconds": {
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EhrkitFlow": {
        "description": "Flow is a data flow the kit covers.",
        "properties": {
          "description": {
            "type": "string"
          },
          "direction": {
            "description": "in",
            "type": "string"
          },
          "feeds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "resources": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitHL7Family": {
        "description": "HL7Family is a group of message types that share a purpose: what the\ncustomer's system sends to the EHR or department system (ToSystem) and\nwhat it sends back (FromSystem), each with its template route.",
        "properties": {
          "description": {
            "type": "string"
          },
          "from_system": {
            "items": {
              "$ref": "#/components/schemas/EhrkitHL7Type"
            },
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "routes": {
            "description": "Routes are the template routes (of the companion profile) for it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          },
          "to_system": {
            "items": {
              "$ref": "#/components/schemas/EhrkitHL7Type"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EhrkitHL7Type": {
        "description": "HL7Type is a message type and its triggers.",
        "properties": {
          "triggers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitHL7v2": {
        "description": "HL7v2 is the HL7 v2 interface pattern over MLLP, VPN or Velacent Ramp.",
        "properties": {
          "basis": {
            "description": "Basis says what the pattern rests on.",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "families": {
            "description": "Families group the message types by purpose and direction, as the\nvendor's public statement documents them (optional).",
            "items": {
              "$ref": "#/components/schemas/EhrkitHL7Family"
            },
            "type": "array"
          },
          "notes": {
            "description": "Notes are plain-language points about the interface that need care\n(for example where a public statement is unclear).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "routes": {
            "description": "Routes are the template routes of the companion profile.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "transport": {
            "type": "string"
          },
          "types": {
            "description": "Types are the message types the generic pattern carries.",
            "items": {
              "$ref": "#/components/schemas/EhrkitHL7Type"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EhrkitKit": {
        "description": "Kit is one connection kit definition.",
        "properties": {
          "attribution": {
            "type": "string"
          },
          "auth": {
            "$ref": "#/components/schemas/EhrkitAuth"
          },
          "feeds": {
            "items": {
              "$ref": "#/components/schemas/EhrkitFeed"
            },
            "type": "array"
          },
          "flows": {
            "items": {
              "$ref": "#/components/schemas/EhrkitFlow"
            },
            "type": "array"
          },
          "held_reason": {
            "description": "HeldReason says why a held kit is not listed.",
            "type": "string"
          },
          "hl7v2": {
            "$ref": "#/components/schemas/EhrkitHL7v2"
          },
          "id": {
            "type": "string"
          },
          "listing": {
            "$ref": "#/components/schemas/EhrkitListing",
            "description": "Listing is the certified product listing check (CHPL) for kits on a\nstandard FHIR API."
          },
          "mark": {
            "description": "Mark is the vendor's name as a trademark, Owner its owner; MarkSymbol\nis the symbol the vendor uses at first mention (empty until confirmed).",
            "type": "string"
          },
          "mark_symbol": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "not_included": {
            "description": "NotIncluded says in plain language what the kit does not cover and why.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "owner": {
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "product_versions": {
            "description": "ProductVersions are the vendor product versions the kit's settings\ncover (one kit per set of versions that need different settings).",
            "items": {
              "$ref": "#/components/schemas/EhrkitProductVersion"
            },
            "type": "array"
          },
          "profile": {
            "description": "Profile is the companion interface profile (ID and version).",
            "type": "string"
          },
          "profile_version": {
            "type": "string"
          },
          "references": {
            "items": {
              "$ref": "#/components/schemas/EhrkitReference"
            },
            "type": "array"
          },
          "schema": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/EhrkitStep"
            },
            "type": "array"
          },
          "summary": {
            "type": "string"
          },
          "synthetic": {
            "$ref": "#/components/schemas/EhrkitSynthetic",
            "description": "Synthetic lists the synthetic test messages Velacent Bridge generates."
          },
          "terms_note": {
            "description": "TermsNote records what was not read (for the owner at registration).",
            "type": "string"
          },
          "tested": {
            "$ref": "#/components/schemas/EhrkitTested",
            "description": "Tested is the dated test record (required to publish)."
          },
          "vendor": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitListing": {
        "description": "Listing is the certified product listing check.",
        "properties": {
          "confirmed": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitProductVersion": {
        "description": "ProductVersion is a vendor product version range and the FHIR release.",
        "properties": {
          "fhir": {
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "range": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitReference": {
        "description": "Reference cites a public vendor document (a link, never a copy).",
        "properties": {
          "accessed": {
            "type": "string"
          },
          "basis": {
            "description": "Accessed is the document's own date (last updated or release date).\nBasis is \"baseline\" when the document states none.",
            "type": "string"
          },
          "read": {
            "description": "Read says whether the document could be read when the kit was built;\nan unread document is a step for the owner or the customer.",
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitStep": {
        "description": "Step is one step on the customer's side.",
        "properties": {
          "id": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "milestone": {
            "description": "Milestone is the go-live plan milestone the step belongs to.",
            "type": "string"
          },
          "owner": {
            "description": "Owner is a go-live owner (customer_it, customer_integration, velacent).",
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EhrkitSynthetic": {
        "description": "Synthetic says which synthetic test messages Velacent Bridge generates.",
        "properties": {
          "fhir": {
            "description": "resource types",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hl7_version": {
            "description": "HL7Version is the MSH-12 version of the HL7 v2 messages (default 2.5.1).",
            "type": "string"
          },
          "hl7v2": {
            "description": "\"ADT^A04\"",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EhrkitTested": {
        "description": "Tested is the dated test record.",
        "properties": {
          "against": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "sandbox": {
            "description": "Sandbox is true only when a vendor sandbox was used (never in this\nbuild: no vendor account exists).",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "EnableRequest": {
        "description": "enableRequest names restored entities to enable.",
        "properties": {
          "entities": {
            "description": "Entities are \"kind/id\" of disabled routes and sources.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Error": {
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "ExplainChange": {
        "description": "explainChange is one configuration change a fix proposes.",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {}
        },
        "type": "object"
      },
      "ExplainCitation": {
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExplainDeterministic": {
        "description": "explainDeterministic is the explanation without the model: the source\nof truth shown with, or instead of, the model's.",
        "properties": {
          "facts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "field": {
            "type": "string"
          },
          "meaning": {
            "type": "string"
          },
          "screen": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "what_to_do": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExplainFinding": {
        "description": "ExplainFinding is a structured warning or error, the input of every\nexplanation. Code is a fixed code (a reason code, an issue reason, a\nconformance rule ID); Path a position (HL7 \"PID-19\", \"OBX(2)-5.1\", FHIR\n\"Patient.address.use\", an X12 element, \"line:12\"); Action what the\npolicy did (kept, dropped, rejected); Text the finding's own plain\nwords (redacted before use); Attrs a few allowlisted metadata values\nper kind (e.g. from/to versions, a script's error class and line).",
        "properties": {
          "action": {
            "type": "string"
          },
          "attributes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "code": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExplainFix": {
        "description": "explainFix is one fix: guidance, optionally with a configuration change\nand, once validated for the caller, its confirmation card.",
        "properties": {
          "change": {
            "$ref": "#/components/schemas/ExplainChange"
          },
          "citations": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "detail": {
            "type": "string"
          },
          "proposal": {
            "$ref": "#/components/schemas/AiCard"
          },
          "title": {
            "type": "string"
          },
          "unavailable": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExplainRequest": {
        "properties": {
          "finding": {
            "$ref": "#/components/schemas/ExplainFinding"
          },
          "include_content": {
            "type": "boolean"
          },
          "reason_code": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ExplainResponse": {
        "properties": {
          "content_included": {
            "type": "boolean"
          },
          "deterministic": {
            "$ref": "#/components/schemas/ExplainDeterministic"
          },
          "explanation": {
            "$ref": "#/components/schemas/ExplainView"
          },
          "fallback_reason": {
            "type": "string"
          },
          "finding": {
            "$ref": "#/components/schemas/ExplainFinding"
          },
          "metered": {
            "description": "Metered: this explanation counted as an Ask AI question.",
            "type": "boolean"
          },
          "model": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExplainView": {
        "description": "explainView is the model's validated explanation (cached without the\ncards).",
        "properties": {
          "citations": {
            "items": {
              "$ref": "#/components/schemas/ExplainCitation"
            },
            "type": "array"
          },
          "field": {
            "type": "string"
          },
          "fixes": {
            "items": {
              "$ref": "#/components/schemas/ExplainFix"
            },
            "type": "array"
          },
          "fixes_rejected": {
            "type": "integer"
          },
          "impact": {
            "type": "string"
          },
          "what_happened": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ExportTableJSON": {
        "properties": {
          "columns": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rows": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "array"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "FailureJSON": {
        "properties": {
          "class": {
            "type": "string"
          },
          "detail": {
            "description": "payload:read only",
            "type": "string"
          },
          "limit": {
            "type": "string"
          },
          "line": {
            "type": "integer"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "FaxHealthView": {
        "description": "faxHealthView is a connection's health for the console.",
        "properties": {
          "account": {
            "type": "string"
          },
          "alert": {
            "type": "string"
          },
          "alert_notified_at": {
            "format": "date-time",
            "type": "string"
          },
          "alert_since": {
            "format": "date-time",
            "type": "string"
          },
          "alert_text": {
            "type": "string"
          },
          "last_fax_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_reconcile_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_webhook_at": {
            "format": "date-time",
            "type": "string"
          },
          "missed": {
            "type": "integer"
          },
          "renewed_at": {
            "format": "date-time",
            "type": "string"
          },
          "window_seconds": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "FaxnumNumber": {
        "description": "Number is a fax number the organization holds.",
        "properties": {
          "attached_to": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "ordered_at": {
            "format": "date-time",
            "type": "string"
          },
          "released_at": {
            "format": "date-time",
            "type": "string"
          },
          "source": {
            "description": "ordered | ported | temporary",
            "type": "string"
          },
          "status": {
            "description": "ordering | active | released",
            "type": "string"
          }
        },
        "type": "object"
      },
      "FaxnumPort": {
        "description": "Port is a port-in order.",
        "properties": {
          "by": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "final_at": {
            "format": "date-time",
            "type": "string"
          },
          "foc_date": {
            "description": "only when the carrier confirmed it",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "issues": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "request": {
            "$ref": "#/components/schemas/FaxnumPortRequest"
          },
          "signature": {
            "$ref": "#/components/schemas/FaxnumSignature"
          },
          "state": {
            "type": "string"
          },
          "temporary_number_id": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "FaxnumPortRequest": {
        "description": "PortRequest is exactly what the carrier needs for a port in (US/CA).",
        "properties": {
          "account_number": {
            "type": "string"
          },
          "authorized_person": {
            "description": "signs the LOA",
            "type": "string"
          },
          "billing_number": {
            "description": "BTN",
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "description": "US or CA",
            "type": "string"
          },
          "current_provider": {
            "type": "string"
          },
          "entity_name": {
            "description": "account holder, as on the bill",
            "type": "string"
          },
          "extended": {
            "type": "string"
          },
          "numbers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pin": {
            "description": "port-out PIN / passcode, when the provider uses one",
            "type": "string"
          },
          "postal_code": {
            "type": "string"
          },
          "region": {
            "description": "state or province",
            "type": "string"
          },
          "street": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "FaxnumSignature": {
        "description": "Signature is the recorded e-signature of a letter of authorization:\nthe signer typed their name and title and ticked the attestation (the\nsame acceptance-recording pattern as the Network terms).",
        "properties": {
          "attested": {
            "type": "boolean"
          },
          "email": {
            "description": "the signed-in console user",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "signed_at": {
            "format": "date-time",
            "type": "string"
          },
          "text_hash": {
            "description": "SHA-256 of the LOA text signed",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "FaxoutJobRecord": {
        "description": "JobRecord is the durable state of one fax (table fax_jobs).",
        "properties": {
          "Account": {
            "type": "string"
          },
          "AttemptBase": {
            "description": "AttemptBase restarts the retry count after an organization-wide number\ncorrection (the policy counts Attempts - AttemptBase); CorrectedFrom is\nthe number the correction replaced.",
            "type": "integer"
          },
          "Attempts": {
            "type": "integer"
          },
          "CorrectedFrom": {
            "type": "string"
          },
          "Destination": {
            "type": "string"
          },
          "DocumentURI": {
            "type": "string"
          },
          "FirstAt": {
            "format": "date-time",
            "type": "string"
          },
          "From": {
            "description": "Log metadata (outbound fax log): numbers, route and destination,\nthe archived files (for a resend and to view what was sent), the\noriginal of a resend, who sent it (\"route\" or a person), the first\nattempt (the retry window starts there).",
            "type": "string"
          },
          "Key": {
            "type": "string"
          },
          "Pages": {
            "type": "integer"
          },
          "ParentKey": {
            "type": "string"
          },
          "Reason": {
            "type": "string"
          },
          "Ref": {
            "type": "string"
          },
          "Route": {
            "type": "string"
          },
          "SentBy": {
            "type": "string"
          },
          "Status": {
            "type": "string"
          },
          "SubmittedAt": {
            "format": "date-time",
            "type": "string"
          },
          "To": {
            "description": "Log metadata (outbound fax log): numbers, route and destination,\nthe archived files (for a resend and to view what was sent), the\noriginal of a resend, who sent it (\"route\" or a person), the first\nattempt (the retry window starts there).",
            "type": "string"
          },
          "UpdatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "GateRequest": {
        "properties": {
          "gate": {
            "$ref": "#/components/schemas/ParallelrunGate"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "GoLiveInstructionsReq": {
        "properties": {
          "milestone": {
            "type": "string"
          },
          "to": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "GoLiveTargetRequest": {
        "properties": {
          "date": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GoliveBlocker": {
        "description": "Blocker says what is in the way and what to do about it.",
        "properties": {
          "action": {
            "type": "string"
          },
          "link": {
            "description": "console path, e.g. \"ramp?add=1\"",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "waiting_on": {
            "description": "an owner side; \"\" = the customer's own next action",
            "type": "string"
          }
        },
        "type": "object"
      },
      "GoliveCoaching": {
        "description": "Coaching is what the coach knows for one person at one moment.",
        "properties": {
          "active": {
            "description": "Active is false once the tenant is live (cut-over done): coaching\nstops and Help is normal support.",
            "type": "boolean"
          },
          "behind": {
            "description": "Behind is the milestones past their planned day (at most 4).",
            "items": {
              "$ref": "#/components/schemas/GoliveItem"
            },
            "type": "array"
          },
          "days": {
            "type": "integer"
          },
          "days_left": {
            "type": "integer"
          },
          "done": {
            "description": "Done lists the completed milestones (for a brief acknowledgement).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "next": {
            "$ref": "#/components/schemas/GoliveItem",
            "description": "Next is the single next step this person may perform now; nil when\neverything this person can do is done or waiting on someone else."
          },
          "state": {
            "description": "on_track, at_risk, live",
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "today": {
            "type": "integer"
          },
          "waiting": {
            "description": "Waiting is what waits on someone else (at most 4).",
            "items": {
              "$ref": "#/components/schemas/GoliveItem"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "GoliveItem": {
        "description": "Item is one milestone the coach names.",
        "properties": {
          "days_late": {
            "description": "DaysLate is how many days past its planned day (0: not behind).",
            "type": "integer"
          },
          "fix": {
            "description": "Fix is the fastest fix: the one action that unblocks it.",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "instructions": {
            "description": "Instructions is true when the exact instructions can be sent to the\nperson it waits on (Instructions below).",
            "type": "boolean"
          },
          "invite": {
            "description": "Invite is the console link that invites the outside organization the\nstep waits on (\"Invite them\": their side of the connection is free);\nempty when the step does not wait on another organization.",
            "type": "string"
          },
          "link": {
            "description": "console path, e.g. \"ramp?add=1\"",
            "type": "string"
          },
          "owner": {
            "description": "Owner is the milestone's owner side (an Owner constant).",
            "type": "string"
          },
          "planned_date": {
            "type": "string"
          },
          "planned_day": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "waiting_on": {
            "description": "WaitingOn is who it waits on (\"your IT team\", \"an administrator\");\nempty for the person's own step.",
            "type": "string"
          },
          "why": {
            "description": "Why is what is in the way (the milestone's blocker reason).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "GoliveMilestone": {
        "description": "Milestone is one planned milestone with its computed state.",
        "properties": {
          "behind": {
            "type": "boolean"
          },
          "blocker": {
            "$ref": "#/components/schemas/GoliveBlocker"
          },
          "evidence": {
            "description": "the status comes from system state, not a manual mark",
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "manual": {
            "type": "boolean"
          },
          "owner": {
            "type": "string"
          },
          "planned_date": {
            "type": "string"
          },
          "planned_day": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GolivePlan": {
        "description": "Plan is the evaluated go-live plan.",
        "properties": {
          "behind": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "days": {
            "description": "length of the plan",
            "type": "integer"
          },
          "days_left": {
            "type": "integer"
          },
          "days_to_first_message": {
            "type": "number"
          },
          "days_to_go_live": {
            "type": "number"
          },
          "live_at": {
            "format": "date-time",
            "type": "string"
          },
          "milestones": {
            "items": {
              "$ref": "#/components/schemas/GoliveMilestone"
            },
            "type": "array"
          },
          "next": {
            "items": {
              "$ref": "#/components/schemas/GoliveRef"
            },
            "type": "array"
          },
          "stalled": {
            "description": "the first open milestone",
            "type": "string"
          },
          "start": {
            "description": "YYYY-MM-DD (UTC)",
            "type": "string"
          },
          "state": {
            "description": "on_track, at_risk, live",
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "target_default": {
            "type": "string"
          },
          "target_is_set": {
            "type": "boolean"
          },
          "today": {
            "description": "day number (1 = start)",
            "type": "integer"
          },
          "waiting": {
            "items": {
              "$ref": "#/components/schemas/GoliveRef"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "GoliveRef": {
        "description": "Ref names a milestone in the \"next\" and \"waiting\" lists.",
        "properties": {
          "id": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "planned_day": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "GroupView": {
        "description": "groupView is a group as the console shows it (never its members).",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "members": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "provider_group": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "IncidentJSON": {
        "properties": {
          "acknowledged_at": {
            "format": "date-time",
            "type": "string"
          },
          "acknowledged_by": {
            "type": "string"
          },
          "checklist": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object"
          },
          "customer_notice_automatic": {
            "description": "always false",
            "type": "boolean"
          },
          "deadline": {
            "format": "date-time",
            "type": "string"
          },
          "decided_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_by": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "decision_rationale": {
            "type": "string"
          },
          "discovered_at": {
            "format": "date-time",
            "type": "string"
          },
          "escalated_24h_at": {
            "format": "date-time",
            "type": "string"
          },
          "escalated_48h_at": {
            "format": "date-time",
            "type": "string"
          },
          "first_notice_at": {
            "format": "date-time",
            "type": "string"
          },
          "hours_left": {
            "type": "number"
          },
          "id": {
            "type": "integer"
          },
          "last_notified_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_seen_at": {
            "format": "date-time",
            "type": "string"
          },
          "notice_within_72h": {
            "type": "boolean"
          },
          "notify_count": {
            "type": "integer"
          },
          "occurrences": {
            "type": "integer"
          },
          "patient_count": {
            "type": "integer"
          },
          "ref": {
            "type": "string"
          },
          "reported_by": {
            "type": "string"
          },
          "rule": {
            "type": "string"
          },
          "security_incident_deadline": {
            "format": "date-time",
            "type": "string"
          },
          "severity": {
            "type": "integer"
          },
          "severity_label": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "suggested_decision": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "tenants": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "integer"
          },
          "worksheet": {
            "$ref": "#/components/schemas/IncidentWorksheet"
          }
        },
        "type": "object"
      },
      "IncidentWorksheet": {
        "description": "Worksheet is the breach risk assessment (docs/INCIDENT_RESPONSE.md\nsection 8): the decision tree answers and the four-factor worksheet\n(45 CFR 164.402(2)), plus the facts the customer notice needs. Free\ntext, written by the officer: metadata and descriptions only, never\npatient identifiers.",
        "properties": {
          "conclusion": {
            "type": "string"
          },
          "containment": {
            "type": "string"
          },
          "customer_individuals": {
            "type": "string"
          },
          "data_types": {
            "description": "message types and data elements, e.g. \"HL7 ORU results: name, MRN, DOB\"",
            "type": "string"
          },
          "exclusion": {
            "description": "a 164.402(1)(i)-(iii) exclusion applies",
            "type": "string"
          },
          "factor1_nature": {
            "description": "Four factors: finding and rating (low, medium, high).",
            "type": "string"
          },
          "factor1_rating": {
            "type": "string"
          },
          "factor2_rating": {
            "type": "string"
          },
          "factor2_recipient": {
            "type": "string"
          },
          "factor3_acquired": {
            "type": "string"
          },
          "factor3_rating": {
            "type": "string"
          },
          "factor4_mitigation": {
            "type": "string"
          },
          "factor4_rating": {
            "type": "string"
          },
          "incident_commander": {
            "description": "name, phone, email of the IC (workforce contact)",
            "type": "string"
          },
          "incident_dates": {
            "type": "string"
          },
          "law_enforcement": {
            "type": "string"
          },
          "low_probability": {
            "description": "four factors show a low probability of compromise",
            "type": "string"
          },
          "next_update": {
            "type": "string"
          },
          "not_permitted": {
            "description": "a use or disclosure the Privacy Rule does not permit",
            "type": "string"
          },
          "phi_involved": {
            "description": "Decision tree (8.1): \"yes\", \"no\" or \"unknown\".",
            "type": "string"
          },
          "secured": {
            "description": "encrypted with an uncompromised key, or destroyed",
            "type": "string"
          },
          "systems": {
            "type": "string"
          },
          "what_happened": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InstallOut": {
        "properties": {
          "entity_version": {
            "type": "integer"
          },
          "install": {
            "$ref": "#/components/schemas/AgentInstall"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "pending_capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ready": {
            "type": "boolean"
          },
          "samples": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "InvitationJSON": {
        "description": "invitationJSON is an invitation as the customer sees it (never a token).",
        "properties": {
          "can_remind": {
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "email_sent_at": {
            "format": "date-time",
            "type": "string"
          },
          "email_verified": {
            "type": "boolean"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_reminded_at": {
            "format": "date-time",
            "type": "string"
          },
          "live": {
            "type": "boolean"
          },
          "organization": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "remind_note": {
            "type": "string"
          },
          "reminders": {
            "type": "integer"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sender_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "terms_accepted": {
            "type": "boolean"
          },
          "transports": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "usage": {
            "$ref": "#/components/schemas/InvitedLine"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "InviteActionRequest": {
        "properties": {
          "expires_hours": {
            "type": "integer"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "InviteCertJSON": {
        "properties": {
          "not_after": {
            "format": "date-time",
            "type": "string"
          },
          "registered": {
            "type": "boolean"
          },
          "sha256": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InviteJSON": {
        "description": "inviteJSON is an invite as the customer sees it (never a token).",
        "properties": {
          "certificate": {
            "$ref": "#/components/schemas/InviteCertJSON"
          },
          "claimed_at": {
            "format": "date-time",
            "type": "string"
          },
          "connectivity": {},
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "decided_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_by": {
            "type": "string"
          },
          "decision_reason": {
            "type": "string"
          },
          "direction": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "message_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "partner_kind": {
            "type": "string"
          },
          "partner_label": {
            "type": "string"
          },
          "registration": {},
          "sender_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "submitted_at": {
            "format": "date-time",
            "type": "string"
          },
          "test_result": {},
          "transports": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "InvitedLine": {
        "description": "Line is what the usage dashboards show for an invited connection.",
        "properties": {
          "beyond_ceiling": {
            "type": "integer"
          },
          "billed": {
            "description": "Billed is what the invited side is charged for these messages: always\nnothing. Free is the part inside the ceiling; Beyond is the part above.",
            "type": "string"
          },
          "ceiling": {
            "type": "integer"
          },
          "free": {
            "type": "integer"
          },
          "in": {
            "type": "integer"
          },
          "messages": {
            "type": "integer"
          },
          "out": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IssueRequest": {
        "description": "issueRequest is common to every way a certificate is added.",
        "properties": {
          "cert_pem": {
            "type": "string"
          },
          "csr_pem": {
            "type": "string"
          },
          "key_type": {
            "type": "string"
          },
          "lifetime_days": {
            "type": "integer"
          },
          "overlap_days": {
            "type": "integer"
          },
          "platform": {
            "description": "Platform is the sending system chosen in the console (install guide\nand one-click renewal reuse it).",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "rotate": {
            "description": "Rotate makes the new certificate current and keeps the current one\naccepted for OverlapDays (then it is retired). Without it the new\ncertificate is added beside the current one (first certificate, or\na second system).",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "JwksRequest": {
        "properties": {
          "alg": {
            "type": "string"
          },
          "kid": {
            "type": "string"
          },
          "public_key_pem": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "LogJSON": {
        "properties": {
          "level": {
            "type": "string"
          },
          "text": {
            "description": "redacted unless payload:read",
            "type": "string"
          }
        },
        "type": "object"
      },
      "MappingCondition": {
        "description": "Condition is a rule's \"only when\".",
        "properties": {
          "op": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "value": {
            "description": "Value is compared with (equals, not_equals, starts_with) or names the\ncode set (in_set).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "MappingMapping": {
        "description": "Mapping is a visual mapping: the message format and its rules.",
        "properties": {
          "format": {
            "type": "string"
          },
          "namespaces": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Namespaces binds the prefixes an xml mapping's paths use (\"p\" to its\nnamespace URI). An unprefixed name matches that local name in any\nnamespace, so most mappings need none.",
            "type": "object"
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/MappingRule"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "MappingRule": {
        "description": "Rule sets one target from the message.",
        "properties": {
          "from": {
            "description": "From and To are Java-style date patterns (yyyyMMddHHmmss).",
            "type": "string"
          },
          "index": {
            "description": "Index is the 1-based part a split takes.",
            "type": "integer"
          },
          "map": {
            "description": "Map is the code map a lookup uses, System the source code system\n(optional) and Part the part of the mapped coding written: code\n(default), display or system.",
            "type": "string"
          },
          "note": {
            "description": "Note is the author's comment.",
            "type": "string"
          },
          "op": {
            "type": "string"
          },
          "otherwise": {
            "description": "Otherwise is what a date or lookup rule does without a result.",
            "type": "string"
          },
          "part": {
            "type": "string"
          },
          "separator": {
            "description": "Separator joins (concat) or splits (split).",
            "type": "string"
          },
          "sources": {
            "description": "Sources are the paths read (copy, split, date, default and lookup\nread the first; concat joins them all).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "system": {
            "type": "string"
          },
          "target": {
            "description": "Target is the path written (script path syntax of the format).",
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "transform": {
            "description": "Transform is applied to the result: trim, upper or lower.",
            "type": "string"
          },
          "value": {
            "description": "Value is the constant, the default, or the lookup/date fallback.",
            "type": "string"
          },
          "when": {
            "$ref": "#/components/schemas/MappingCondition",
            "description": "When limits the rule to messages matching a condition."
          }
        },
        "type": "object"
      },
      "MappingSampleIn": {
        "properties": {
          "message": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MappingSummary": {
        "properties": {
          "active": {
            "$ref": "#/components/schemas/ActiveJSON"
          },
          "description": {
            "type": "string"
          },
          "draft": {
            "$ref": "#/components/schemas/ScriptCode"
          },
          "draft_sha256": {
            "type": "string"
          },
          "hand_edited": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "kept_blocks": {
            "type": "boolean"
          },
          "pending": {
            "description": "Pending: the draft differs from the active version.",
            "type": "boolean"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rules": {
            "type": "integer"
          },
          "samples": {
            "type": "integer"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MessagingAcknowledgement": {
        "description": "Acknowledgement is who acknowledged something and when (RFC 3339).",
        "properties": {
          "acknowledged_at": {},
          "acknowledged_by": {}
        },
        "type": "object"
      },
      "MessagingChatConn": {
        "description": "ChatConn is the customer's Chat app service account (checkable, required\nfor patient notices) or a space's incoming webhook (alerts only).",
        "properties": {
          "service_account": {},
          "webhook_url_file": {}
        },
        "type": "object"
      },
      "MessagingConnection": {
        "description": "Connection is one target on one platform, as configured (JSON). Exactly\none target: a channel, chat, space or person. Secrets are never here,\nonly the paths of mounted Secret Manager files.",
        "properties": {
          "external_ack": {
            "$ref": "#/components/schemas/MessagingAcknowledgement",
            "description": "ExternalAck records that an administrator acknowledged that this\nalerts target may include people outside the organization (alerts\nonly; stamped by the Admin API)."
          },
          "google_chat": {
            "$ref": "#/components/schemas/MessagingChatConn"
          },
          "label": {
            "description": "Label is a display name for the console (never sent).",
            "type": "string"
          },
          "microsoft_teams": {
            "$ref": "#/components/schemas/MessagingTeamsConn"
          },
          "platform": {
            "description": "Platform is slack, microsoft_teams or google_chat.",
            "type": "string"
          },
          "slack": {
            "$ref": "#/components/schemas/MessagingSlackConn"
          },
          "target": {
            "description": "Target is the one recipient: a Slack channel (C..., G...) or user\n(U..., W...); a Teams channel or chat ID (19:...); a Chat space\n(spaces/...). Optional for alerts through an incoming webhook or a\nTeams workflow, which are bound to one channel by the platform.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "MessagingSlackConn": {
        "description": "SlackConn is the customer's Slack app (bot token: checkable, required for\npatient notices) or an incoming webhook (alerts only).",
        "properties": {
          "bot_token_file": {},
          "team_id": {},
          "webhook_url_file": {}
        },
        "type": "object"
      },
      "MessagingTeamsConn": {
        "description": "TeamsConn is the customer's Workflows webhook, and the Entra app Velacent Bridge\nfederates to for Microsoft Graph membership checks (required for patient\nnotices, optional for alerts).",
        "properties": {
          "client_id": {},
          "team_id": {},
          "tenant_id": {},
          "webhook_url_file": {}
        },
        "type": "object"
      },
      "NoticeIncidentRequest": {
        "properties": {
          "channel": {
            "description": "email, phone, portal, letter",
            "type": "string"
          },
          "mark_notified": {
            "description": "MarkNotified moves the incident to \"notified\" (a decision is needed).",
            "type": "boolean"
          },
          "recipient": {
            "description": "organization and role, e.g. \"Acme Health privacy officer\"",
            "type": "string"
          },
          "sent_at": {
            "format": "date-time",
            "type": "string"
          },
          "template": {
            "description": "A1, A2, A3",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "NumberCheck": {
        "description": "numberCheck is one number read from the document with what is on file.",
        "properties": {
          "end": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "on_file": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "owner": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "status": {
            "description": "match | mismatch | new | no_record",
            "type": "string"
          },
          "system": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OcrClerkDoc": {
        "properties": {
          "key": {
            "type": "string"
          },
          "pages": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OcrClerkPatient": {
        "properties": {
          "docs": {
            "items": {
              "$ref": "#/components/schemas/OcrClerkDoc"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "OcrClerkPlan": {
        "properties": {
          "file": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "patients": {
            "items": {
              "$ref": "#/components/schemas/OcrClerkPatient"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "OcrDecision": {
        "properties": {
          "assignee": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "fields": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "OnboardingStepRequest": {
        "properties": {
          "choice": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "OperatorCallView": {
        "properties": {
          "attempts": {
            "items": {
              "$ref": "#/components/schemas/CallAttemptView"
            },
            "type": "array"
          },
          "callback_at": {
            "format": "date-time",
            "type": "string"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "live": {
            "type": "boolean"
          },
          "mine": {
            "type": "boolean"
          },
          "next_at": {
            "format": "date-time",
            "type": "string"
          },
          "notes": {
            "$ref": "#/components/schemas/SupportcallNotes",
            "description": "Notes is the operator copy: de-identified."
          },
          "notes_mode": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OperatorOverrideReq": {
        "properties": {
          "cause": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OrgdirListing": {
        "description": "Listing is what an organization publishes.",
        "properties": {
          "accepts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "city": {
            "type": "string"
          },
          "confirm_website": {
            "description": "ConfirmWebsite is the administrator's attestation that the\norganization is entitled to publish this website (needed when the\nwebsite's domain is not a verified Network domain).",
            "type": "boolean"
          },
          "display_name": {
            "type": "string"
          },
          "npis": {
            "items": {
              "$ref": "#/components/schemas/OrgdirNPIEntry"
            },
            "type": "array"
          },
          "practice_type": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "website": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "OrgdirNPIEntry": {
        "description": "NPIEntry is one published NPI with what NPPES said when it was checked.",
        "properties": {
          "legal_name": {
            "type": "string"
          },
          "npi": {
            "type": "string"
          },
          "taxonomy": {
            "type": "string"
          },
          "verified": {
            "description": "Verified is set by the control plane when NPPES confirmed an active\norganizational NPI; a tenant's own claim never sets it.",
            "type": "boolean"
          },
          "verified_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "OutboundView": {
        "description": "outboundView adds the plain-language reason and the next attempt.",
        "properties": {
          "account": {
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "corrected_from": {
            "description": "CorrectedFrom is the number an organization-wide correction replaced\n(\"sent to ...1234, corrected from ...5678\").",
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "from_number": {
            "type": "string"
          },
          "held": {
            "type": "boolean"
          },
          "key": {
            "type": "string"
          },
          "next_attempt_at": {
            "format": "date-time",
            "type": "string"
          },
          "pages": {
            "type": "integer"
          },
          "parent_key": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "reason_text": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "sent_by": {
            "description": "a person (resend) or \"route\"",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "submitted_at": {
            "format": "date-time",
            "type": "string"
          },
          "to_number": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PAAct": {
        "description": "PAAct is one action and its result.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "done_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "requested_by": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PADoc": {
        "description": "PADoc is one documentation request (codes as the payer sent them).",
        "properties": {
          "batch": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "due_at": {
            "format": "date-time",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "lines": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          },
          "request": {
            "type": "integer"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PARequest": {
        "description": "PARequest is a request's metadata for the console.",
        "properties": {
          "allowed": {
            "description": "Allowed are the actions the state allows (update, cancel, attach).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "destination": {
            "type": "string"
          },
          "follow": {
            "type": "string"
          },
          "inquiries": {
            "type": "integer"
          },
          "next_check_at": {
            "format": "date-time",
            "type": "string"
          },
          "open_action": {
            "type": "string"
          },
          "open_documentation": {
            "type": "integer"
          },
          "outcome": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "submitted_at": {
            "format": "date-time",
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ParallelrunCandidate": {
        "description": "Candidate is a configuration to test: the live configuration (or the\nconfiguration as it was at a moment) with changes applied on top, never\nwritten to the live configuration.",
        "properties": {
          "base": {
            "description": "Base is \"live\" (the current configuration) or an RFC 3339 time (the\nconfiguration as of then). Empty means live.",
            "type": "string"
          },
          "changes": {
            "description": "Changes are applied over the base: entities of the versioned\nconfiguration (route, code_map, code_set, provider_directory,\nscript). A script change carries a draft only: its active version\nis always the base's (activation needs scripts:activate and passing\nsamples, never a candidate).",
            "items": {
              "$ref": "#/components/schemas/ParallelrunCandidateChange"
            },
            "type": "array"
          },
          "draft_scripts": {
            "description": "DraftScripts are scripts whose draft (the base's, or the one in\nChanges) the replay runs in place of their active version, so a\ntranslated or edited script is compared before anyone activates\nit. Nothing is activated or stored in the live configuration.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ParallelrunCandidateChange": {
        "description": "CandidateChange is one configuration entity of a candidate.",
        "properties": {
          "deleted": {
            "type": "boolean"
          },
          "document": {},
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ParallelrunFrozenCandidate": {
        "description": "FrozenCandidate is a candidate resolved to a full configuration and\nstored with the run, so a resumed run replays against exactly the same\nconfiguration.",
        "properties": {
          "base_version": {
            "description": "global configuration version of the base",
            "type": "integer"
          },
          "ref": {
            "description": "payload buffer object holding the entities",
            "type": "string"
          },
          "sha256": {
            "description": "of that object",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ParallelrunGate": {
        "description": "Gate is the cut-over criterion the operator sets on a run.",
        "properties": {
          "min_match_rate": {
            "description": "MinMatchRate is the lowest acceptable match rate in percent\n(default 100).",
            "type": "number"
          },
          "required": {
            "description": "Required records that cut-over waits for this run's sign-off.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ParallelrunPlan": {
        "description": "Plan is the pairing of a corpus.",
        "properties": {
          "destinations": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "file_errors": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "FileErrors maps a file to a fixed error code (unsupported_format,\nunsplittable, pairing_count_mismatch, missing_file, ...).",
            "type": "object"
          },
          "mode": {
            "description": "\"manifest\" or \"control_id\"",
            "type": "string"
          },
          "unpaired_outputs": {
            "description": "Unpaired counts legacy outputs no input was paired with.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ParallelrunRules": {
        "description": "Rules control what the differs treat as equal. The zero value plus the\ndefaults (Effective) is what a run uses unless the operator says\notherwise; the effective rules are stored with the run.",
        "properties": {
          "ignore_paths": {
            "description": "IgnorePaths are paths whose differences are not reported. HL7 v2:\n\"MSH-7\", \"PID-3[*].4\", \"OBX-5.1\", \"ZPD\" (a whole segment), \"Z*\"\n(every Z-segment); an unspecified occurrence or repetition matches\nany. X12: \"ISA\", \"GS-06\", \"ST-02\". FHIR: an element name alone\n(\"meta\") matches at any depth; a dotted path (\"Bundle.entry.fullUrl\",\n\"Patient.telecom\", \"*.text\") matches that element and everything\nunder it, indexes ignored.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ignore_segment_order": {
            "description": "IgnoreSegmentOrder skips the segment order check entirely.",
            "type": "boolean"
          },
          "no_default_ignores": {
            "description": "NoDefaultIgnores drops the default ignore list (DefaultIgnorePaths).",
            "type": "boolean"
          },
          "ordered_arrays": {
            "description": "OrderedArrays are FHIR element names whose array order is\nsignificant (default: given, prefix, suffix, line); every other\narray is compared as an unordered collection.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "strict_escaping": {
            "description": "StrictEscaping compares HL7 v2 values as encoded; by default escape\nsequences (\\F\\ \\S\\ \\T\\ \\R\\ \\E\\) are decoded first and MSH-1/MSH-2\nare not compared, so different encoding characters or escaping of\nthe same value are equal.",
            "type": "boolean"
          },
          "strict_references": {
            "description": "StrictReferences compares FHIR urn:uuid: references literally; by\ndefault any urn:uuid: reference equals any other (generated IDs\ndiffer between engines; ignore Bundle.entry.fullUrl alongside).",
            "type": "boolean"
          },
          "strict_trailing": {
            "description": "StrictTrailing reports trailing empty fields, repetitions,\ncomponents and subcomponents (\"PID|1||\" vs \"PID|1\"); by default\nthey are insignificant, as the standard says.",
            "type": "boolean"
          },
          "unordered_segments": {
            "description": "UnorderedSegments may appear anywhere without a segment_order\ndifference (default \"Z*\": the standard leaves Z-segment placement to\nthe interface). Patterns as in IgnorePaths (segment level).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ParallelrunSource": {
        "description": "Source says where a run's recorded traffic comes from.",
        "properties": {
          "kind": {
            "description": "Kind is \"upload\" (files uploaded to the run through the Admin API)\nor \"gcs\" (every object under URI, a gs://bucket/prefix the Admin\nAPI's service account may read: a customer bucket or a Cloud FTP\ninbox's landing prefix). Either way the files are copied into the\npayload buffer (30-day lifecycle, CMEK where configured) before\npairing, so a run never depends on the source afterwards.",
            "type": "string"
          },
          "sender": {
            "description": "Sender is the Velacent Bridge sender the legacy traffic stands for\n(per-sender feature flags and enrichment); empty: none.",
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PartnerTestResult": {
        "description": "PartnerTestResult is the connection test's answer.",
        "properties": {
          "error_class": {
            "type": "string"
          },
          "explanation": {},
          "kind": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PatientSearchRequest": {
        "description": "patientSearchRequest is the search body; the checks below report what\nis missing.",
        "properties": {
          "authority": {
            "type": "string"
          },
          "dob": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "limit": {
            "type": "integer"
          },
          "to": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PayloadViewRequest": {
        "properties": {
          "note": {
            "type": "string"
          },
          "reason_code": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PreviewMappingRequest": {
        "properties": {
          "id": {
            "description": "ID is the script the rules belong to (its kept blocks run too and\nits saved samples can be used); empty for a new mapping.",
            "type": "string"
          },
          "mapping": {
            "$ref": "#/components/schemas/MappingMapping"
          },
          "message": {
            "description": "Message is a pasted sample (payload:read); Sample names a saved one.",
            "type": "string"
          },
          "sample": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PriorAuthDiscovery": {
        "description": "PriorAuthDiscovery is what a payer's discovery document offers.",
        "properties": {
          "endpoints": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "error_class": {
            "type": "string"
          },
          "keys": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ok": {
            "type": "boolean"
          },
          "payer_id": {
            "type": "string"
          },
          "payer_matches": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PriorAuthUpdate": {
        "description": "PriorAuthUpdate is one pas destination's follow-up mode.",
        "properties": {
          "active_at": {
            "format": "date-time",
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "failures": {
            "type": "integer"
          },
          "last_signal_at": {
            "format": "date-time",
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PrivateView": {
        "description": "privateView is a private connector as the console lists it.",
        "properties": {
          "id": {
            "type": "string"
          },
          "installed_at": {
            "type": "string"
          },
          "installed_by": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "request_ref": {
            "type": "string"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "summary": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "visibility": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfileBinding": {
        "description": "Binding is what the applying tenant supplies for one template route.",
        "properties": {
          "destination": {
            "description": "Destination holds the connection details (address, url, tls, AE\ntitles, files, credentials references) merged over the template's\noptions. Ignored keys: kind."
          },
          "name": {
            "description": "Name is the route name in the tenant (default: derived from the\nprofile ID and key).",
            "type": "string"
          },
          "policy": {
            "description": "Policy is the conformance policy: report, reject or off (default:\nthe template's, else report).",
            "type": "string"
          },
          "priority": {
            "description": "Priority orders the route (default: after every existing route).",
            "type": "integer"
          },
          "route": {
            "description": "Route is the template route key.",
            "type": "string"
          },
          "skip": {
            "description": "Skip leaves this template route out.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ProfileBound": {
        "description": "Bound is a route bound to a profile in the tenant's configuration.",
        "properties": {
          "policy": {
            "type": "string"
          },
          "profile": {
            "$ref": "#/components/schemas/ConformanceRef"
          },
          "route": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfileEntityDiff": {
        "description": "EntityDiff is what applying does to one configuration entity.",
        "properties": {
          "action": {
            "description": "create, update, unchanged",
            "type": "string"
          },
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ProfileFieldChange"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfileFieldChange": {
        "description": "FieldChange is one changed configuration value.",
        "properties": {
          "after": {},
          "before": {},
          "path": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfileIssueReport": {
        "description": "IssueReport is an issue reported against a version.",
        "properties": {
          "category": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "profile_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfileMeta": {
        "description": "Meta is what a publisher states about a profile built from a route.",
        "properties": {
          "anonymous": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "org": {
            "type": "string"
          },
          "overview": {
            "description": "Overview, Setup and Quirks become the documentation (plain text).",
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "quirks": {
            "type": "string"
          },
          "setup": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProfilePlan": {
        "description": "Plan is the configuration a profile application writes, and its diff.",
        "properties": {
          "diff": {
            "items": {
              "$ref": "#/components/schemas/ProfileEntityDiff"
            },
            "type": "array"
          },
          "missing": {
            "description": "Missing lists code maps, code sets or provider directories the\ntemplate references that the tenant does not have.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "profile": {
            "$ref": "#/components/schemas/ConformanceRef"
          }
        },
        "type": "object"
      },
      "PromoteEvidence": {
        "description": "Evidence is what a promotion rests on.",
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "note": {
            "description": "Note says what was exercised (required for EvTestEnvironment).",
            "type": "string"
          },
          "ref": {
            "description": "Ref is the parallel run ID (EvParallelRun).",
            "type": "string"
          },
          "verified": {
            "description": "Verified and Detail are filled by the server: whether Velacent Bridge\nchecked the evidence itself, and what it found.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PromotePackage": {
        "description": "Package is what a test environment exports for promotion.",
        "properties": {
          "config_version": {
            "type": "integer"
          },
          "entities": {
            "items": {
              "$ref": "#/components/schemas/ConfigcodeEntity"
            },
            "type": "array"
          },
          "environment": {
            "type": "string"
          },
          "exported_at": {
            "format": "date-time",
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "redacted": {
            "description": "Redacted lists \"kind/id path\" of inline credentials the export\nreplaced; such a package cannot be promoted until they are references.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PromoteVariable": {
        "description": "Variable is one environment-specific value: what the test environment\nuses and what production uses instead.",
        "properties": {
          "name": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "production": {
            "type": "string"
          },
          "test": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PromotionStepRequest": {
        "properties": {
          "acknowledge_warnings": {
            "type": "boolean"
          },
          "plan_sha256": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutConfigRequest": {
        "properties": {
          "deleted": {
            "type": "boolean"
          },
          "document": {},
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutDirectoryRequest": {
        "properties": {
          "listing": {
            "$ref": "#/components/schemas/OrgdirListing"
          },
          "publish": {
            "type": "boolean"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutMappingRequest": {
        "properties": {
          "description": {
            "type": "string"
          },
          "mapping": {
            "$ref": "#/components/schemas/MappingMapping"
          },
          "reason": {
            "type": "string"
          },
          "sample": {
            "$ref": "#/components/schemas/MappingSampleIn"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutSSORequest": {
        "properties": {
          "client_secret": {
            "type": "string"
          },
          "connection": {
            "$ref": "#/components/schemas/SsoConnection"
          },
          "enabled": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutScriptRequest": {
        "properties": {
          "description": {
            "type": "string"
          },
          "draft": {
            "$ref": "#/components/schemas/ScriptCode"
          },
          "reason": {
            "type": "string"
          },
          "samples": {
            "items": {
              "$ref": "#/components/schemas/SampleIn"
            },
            "type": "array"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PutUserRequest": {
        "properties": {
          "email": {
            "type": "string"
          },
          "patient_search": {
            "type": "boolean"
          },
          "payload_read": {
            "type": "boolean"
          },
          "reason": {
            "description": "Reason is required: why the change is being made (kept in the\ndatabase audit only).",
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "version": {
            "description": "Version is the version the caller last read (optimistic concurrency\ncontrol); 0 creates a new assignment. Required.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "QuerySystemView": {
        "description": "querySystemView is a partner query system as the console offers it.",
        "properties": {
          "id": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "ready": {
            "type": "boolean"
          },
          "resources": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "summary": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampConfig": {
        "description": "Config is one Ramp's configuration: which local ports it listens on\nand where cloud deliveries go. Version increases with every change.",
        "properties": {
          "endpoints": {
            "items": {
              "$ref": "#/components/schemas/RampEndpoint"
            },
            "type": "array"
          },
          "heartbeat_seconds": {
            "description": "HeartbeatSeconds (default 30, 10-300).",
            "type": "integer"
          },
          "listeners": {
            "items": {
              "$ref": "#/components/schemas/RampListener"
            },
            "type": "array"
          },
          "queue": {
            "$ref": "#/components/schemas/RampQueue"
          },
          "update": {
            "$ref": "#/components/schemas/RampUpdate"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RampDICOM": {
        "description": "DICOM configures a local C-STORE SCP. Only the tenant's acceptance list\nis negotiated; everything else is refused at association time.",
        "properties": {
          "accept": {
            "description": "Accept narrows the acceptance registry (groups or SOP class UIDs;\nempty = the registry defaults). Images are never accepted.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ae_title": {
            "type": "string"
          },
          "bytes_per_minute": {
            "type": "integer"
          },
          "calling_ae_titles": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "max_association_bytes": {
            "type": "integer"
          },
          "max_associations": {
            "description": "MaxAssociations (default 8), MaxObjectBytes (default and maximum\n10 MB), MaxAssociationBytes (default 64 MB), ObjectsPerMinute\n(default 120) and BytesPerMinute (default 256 MB) limit what one\nRamp ingests.",
            "type": "integer"
          },
          "max_object_bytes": {
            "type": "integer"
          },
          "objects_per_minute": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RampEcho": {
        "description": "Echo counts answered C-ECHO requests from one calling AE title.",
        "properties": {
          "calling_ae": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "last_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampEndpoint": {
        "description": "Endpoint is a local system Velacent Bridge delivers to through Ramp (a route\nwith destination kind \"ramp\" names it).",
        "properties": {
          "address": {
            "description": "host:port on the customer network",
            "type": "string"
          },
          "kind": {
            "description": "mllp",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "timeout_seconds": {
            "description": "TimeoutSeconds waits for the local system's ACK (default 30).",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RampEndpointStatus": {
        "description": "EndpointStatus is one local destination's state.",
        "properties": {
          "error": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reachable": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "RampHeartbeat": {
        "description": "Heartbeat is Ramp's status, sent every HeartbeatSeconds. Metadata only:\ncounts, versions, codes; never message content or patient data.",
        "properties": {
          "arch": {
            "type": "string"
          },
          "cert_not_after": {
            "format": "date-time",
            "type": "string"
          },
          "cloud_rejected": {
            "type": "integer"
          },
          "config_version": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "dicom_refusals": {
            "items": {
              "$ref": "#/components/schemas/RampRefusal"
            },
            "type": "array"
          },
          "endpoints": {
            "items": {
              "$ref": "#/components/schemas/RampEndpointStatus"
            },
            "type": "array"
          },
          "lan_addrs": {
            "description": "LANAddrs are the machine's non-loopback unicast addresses, so the\nconsole can name the Ramp host in the LAN access rules IT must\nallow (docs/RAMP_NETWORK.md, \"Host firewall and segmentation\").",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "listeners": {
            "items": {
              "$ref": "#/components/schemas/RampListenerStatus"
            },
            "type": "array"
          },
          "os": {
            "type": "string"
          },
          "queue": {
            "$ref": "#/components/schemas/RampQueueStatus"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "update": {
            "$ref": "#/components/schemas/RampUpdateStatus"
          },
          "uplinked": {
            "description": "Counters since start.",
            "type": "integer"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampListener": {
        "description": "Listener is a local port Ramp accepts messages on (inbound to Velacent Bridge).",
        "properties": {
          "ack_mode": {
            "description": "mllp: local (default) or cloud",
            "type": "string"
          },
          "allow_cidrs": {
            "description": "AllowCIDRs restricts source addresses (default: private and\nloopback addresses only).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "dicom": {
            "$ref": "#/components/schemas/RampDICOM"
          },
          "kind": {
            "description": "mllp or dicom",
            "type": "string"
          },
          "listen": {
            "description": "Listen is the local interface and port, e.g. \"10.1.2.3:2575\". Bind\nto the interface the sending systems use; 0.0.0.0 only on purpose.",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampListenerStatus": {
        "description": "ListenerStatus is one local listener's state.",
        "properties": {
          "connections": {
            "type": "integer"
          },
          "echoes": {
            "description": "Echoes are the C-ECHO (DICOM verify) requests answered on a DICOM\nlistener, by calling AE title (the console's \"Test from device\").",
            "items": {
              "$ref": "#/components/schemas/RampEcho"
            },
            "type": "array"
          },
          "error": {
            "description": "fixed code, e.g. address_in_use",
            "type": "string"
          },
          "first_connection_at": {
            "description": "FirstConnectionAt is when a TCP connection first arrived on this\naddress (kept across restarts); nil means none ever reached Ramp: a\nhost or network firewall, or the sender's settings, is in the way.\nLastConnectionAt follows; Connections and SourceRefused (from\noutside the allowed ranges) count since the worker started.",
            "format": "date-time",
            "type": "string"
          },
          "last_connection_at": {
            "format": "date-time",
            "type": "string"
          },
          "listen": {
            "description": "Listen is the address this status is for (the configured one); the\nconnection record below starts again when it changes.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source_refused": {
            "type": "integer"
          },
          "up": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "RampQueue": {
        "description": "Queue bounds the local store-and-forward queue.",
        "properties": {
          "alert_percent": {
            "description": "default 70",
            "type": "integer"
          },
          "max_bytes": {
            "description": "default 1 GB",
            "type": "integer"
          },
          "max_messages": {
            "description": "default 200000",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RampQueueStatus": {
        "description": "QueueStatus is the local queue's depth.",
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "full": {
            "type": "boolean"
          },
          "max_bytes": {
            "type": "integer"
          },
          "max_messages": {
            "type": "integer"
          },
          "messages": {
            "type": "integer"
          },
          "oldest_seconds": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RampRefusal": {
        "description": "Refusal counts DICOM presentation contexts or objects Ramp refused,\nby what was offered (UIDs only).",
        "properties": {
          "called_ae": {
            "type": "string"
          },
          "calling_ae": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "last_at": {
            "format": "date-time",
            "type": "string"
          },
          "listener": {
            "description": "Listener is the DICOM listener; CalledAE the AE title the DICOM device\nasked for and Source its address (association refusals only).",
            "type": "string"
          },
          "reason": {
            "description": "Reason: calling_ae_unknown, called_ae_not_recognized,\nsource_not_allowed, invalid_associate_request,\nabstract_syntax_not_supported, transfer_syntax_not_supported,\nobject_too_large, rate_limited, association_too_large, queue_full.",
            "type": "string"
          },
          "sop_class": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "transfer_syntax": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampUpdate": {
        "description": "Update is the Ramp's update policy. Updates are on by default.",
        "properties": {
          "channel": {
            "description": "stable (default) or canary",
            "type": "string"
          },
          "window": {
            "$ref": "#/components/schemas/RampWindow",
            "description": "Window, when set, limits non-security updates to a maintenance\nwindow; security releases install at once regardless."
          }
        },
        "type": "object"
      },
      "RampUpdateStatus": {
        "description": "UpdateStatus is the state of automatic updates.",
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "error": {
            "description": "fixed code",
            "type": "string"
          },
          "from_version": {
            "type": "string"
          },
          "state": {
            "description": "idle, downloading, trial, committed, rolled_back, failed, disabled",
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampView": {
        "description": "rampView is a Ramp as the console shows it (metadata only).",
        "properties": {
          "alerts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "arch": {
            "type": "string"
          },
          "cert_not_after": {
            "format": "date-time",
            "type": "string"
          },
          "cert_sha256": {
            "type": "string"
          },
          "cloud_oldest_waiting": {
            "format": "date-time",
            "type": "string"
          },
          "cloud_waiting": {
            "type": "integer"
          },
          "config": {},
          "config_doc": {
            "$ref": "#/components/schemas/RampConfig"
          },
          "config_version": {
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "enrolled_at": {
            "format": "date-time",
            "type": "string"
          },
          "heartbeat": {},
          "heartbeat_doc": {
            "$ref": "#/components/schemas/RampHeartbeat"
          },
          "hostname": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_seen_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "type": "string"
          },
          "queue_bytes": {
            "type": "integer"
          },
          "queue_messages": {
            "type": "integer"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "sender_id": {
            "type": "string"
          },
          "state": {
            "description": "pending, online, offline, revoked",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RampWindow": {
        "description": "Window is a weekly maintenance window in a time zone.",
        "properties": {
          "days": {
            "description": "mon..sun",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "end": {
            "description": "HH:MM (may wrap past midnight)",
            "type": "string"
          },
          "start": {
            "description": "HH:MM",
            "type": "string"
          },
          "time_zone": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeAlternative": {
        "description": "Alternative is another way to reach the same outcome between the same\ntwo systems (offered as an upgrade when the fastest path is fuller-\nfeatured elsewhere).",
        "properties": {
          "conversion": {
            "type": "string"
          },
          "dependency": {
            "type": "string"
          },
          "destination_path": {
            "type": "string"
          },
          "source_path": {
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeIDReq": {
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipePair": {
        "properties": {
          "destination": {
            "type": "string"
          },
          "flow": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeSide": {
        "description": "Side is one side of a recipe: the system and the path it connects by.",
        "properties": {
          "basis": {
            "type": "string"
          },
          "dependency": {
            "description": "Dependency is who must act on this side (a Depend constant), and\nNeeds is what, in plain words.",
            "type": "string"
          },
          "evidence": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "needs": {
            "type": "string"
          },
          "party": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendor": {
            "type": "string"
          },
          "versions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "via": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeStepReq": {
        "properties": {
          "recipe": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "step": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeSystemsReq": {
        "properties": {
          "systems": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RecipeVendorRequest": {
        "description": "VendorRequest is the ready-to-send, neutral, specific interface request\nfor a side that waits on a vendor or a receiving organization.",
        "properties": {
          "subject": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "to": {
            "description": "the party, e.g. \"eClinicalWorks\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RecipeView": {
        "description": "recipeView is a recipe as the console lists it.",
        "properties": {
          "alternatives": {
            "items": {
              "$ref": "#/components/schemas/RecipeAlternative"
            },
            "type": "array"
          },
          "checks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "conversion": {
            "description": "Conversion is what Velacent Bridge does between the two (a Convert\nconstant); TargetVersion the HL7 version sent (version conversion).",
            "type": "string"
          },
          "curated": {
            "type": "boolean"
          },
          "dependency": {
            "description": "Dependency is the slower side's class; Effort says it in words.",
            "type": "string"
          },
          "dependency_label": {
            "type": "string"
          },
          "destination": {
            "$ref": "#/components/schemas/RecipeSide"
          },
          "effort": {
            "type": "string"
          },
          "evidence": {
            "type": "string"
          },
          "evidence_label": {
            "type": "string"
          },
          "flow": {
            "type": "string"
          },
          "flow_title": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "set_up": {
            "type": "boolean"
          },
          "slug": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/RecipeSide"
          },
          "target_version": {
            "type": "string"
          },
          "tested": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "who_acts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "RecordedJSON": {
        "description": "recordedJSON is a recorded attestation as the console shows it.",
        "properties": {
          "attested_at": {
            "format": "date-time",
            "type": "string"
          },
          "attested_by": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "entity_kind": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "text_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReleaseHoldsRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ReplayBillingJSON": {
        "description": "replayBillingJSON is what the job bills, shown in the confirm step: a\ndelivered replay is billed exactly as a delivered retransmission (one\nmessage out per destination it reaches; no message in).",
        "properties": {
          "max_messages_out": {
            "type": "integer"
          },
          "messages_in": {
            "type": "integer"
          },
          "metric": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReplayItemJSON": {
        "properties": {
          "archived": {
            "type": "boolean"
          },
          "attempts": {
            "type": "integer"
          },
          "destinations": {
            "type": "integer"
          },
          "done_at": {
            "format": "date-time",
            "type": "string"
          },
          "message_type": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "received_at": {
            "format": "date-time",
            "type": "string"
          },
          "retransmission_id": {
            "type": "integer"
          },
          "retransmission_status": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "seq": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ReplayJobJSON": {
        "properties": {
          "billing": {
            "$ref": "#/components/schemas/ReplayBillingJSON"
          },
          "canceled_by": {
            "type": "string"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "config_version": {
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "done": {
            "type": "integer"
          },
          "error_code": {
            "type": "string"
          },
          "error_message": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "items_total": {
            "type": "integer"
          },
          "lanes_total": {
            "type": "integer"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "outcomes": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "pending": {
            "type": "integer"
          },
          "prepared_at": {
            "format": "date-time",
            "type": "string"
          },
          "rate": {
            "type": "integer"
          },
          "reason": {
            "type": "string"
          },
          "selection": {},
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "started_by": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReportIncidentRequest": {
        "properties": {
          "discovered_at": {
            "description": "DiscoveredAt is when the reporter first knew, if earlier than now.",
            "format": "date-time",
            "type": "string"
          },
          "severity": {
            "type": "integer"
          },
          "summary": {
            "type": "string"
          },
          "tenants": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ResolveRequest": {
        "properties": {
          "decision": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "survivor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ResponderView": {
        "description": "ResponderView is one connection on the console.",
        "properties": {
          "attested_at": {
            "type": "string"
          },
          "attested_by": {
            "type": "string"
          },
          "attests": {
            "type": "boolean"
          },
          "binding": {
            "description": "Binding is the configuration the broker reports now (what an\nattestation sent back with it attests).",
            "type": "string"
          },
          "connection": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "disclosure_options": {
            "items": {
              "$ref": "#/components/schemas/DisclosureOption"
            },
            "type": "array"
          },
          "disclosure_records": {
            "$ref": "#/components/schemas/DbDisclosureCounts"
          },
          "disclosure_refusals": {
            "type": "boolean"
          },
          "disclosure_route": {
            "description": "DisclosureRoute receives the customer's disclosure records;\nDisclosureRefusals adds records (without patient) of refused known\ncallers. DisclosureRecords counts the last 30 days' records by\ndelivery state (nil when unavailable). DisclosureOptions are the\nroutes that qualify, with the hosts they send to.",
            "type": "string"
          },
          "pause_reason": {
            "type": "string"
          },
          "paused": {
            "type": "boolean"
          },
          "paused_at": {
            "type": "string"
          },
          "paused_by": {
            "type": "string"
          },
          "summary": {}
        },
        "type": "object"
      },
      "RestoreApplyRequest": {
        "description": "restoreApplyRequest applies a plan the caller reviewed.",
        "properties": {
          "bundle": {},
          "confirm": {
            "description": "Confirm must be true.",
            "type": "boolean"
          },
          "options": {
            "$ref": "#/components/schemas/BundleOptions"
          },
          "plan_sha256": {
            "description": "PlanSHA256 is the plan the caller reviewed: the server plans again\nand refuses unless the result is the same.",
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RestoreRequest": {
        "description": "restoreRequest is the body of a plan.",
        "properties": {
          "bundle": {
            "description": "Bundle is the configuration bundle (the downloaded file)."
          },
          "options": {
            "$ref": "#/components/schemas/BundleOptions",
            "description": "Options are the choices made on the plan: how conflicts are handled\n(default: restore under a new name), per-entity decisions, and the\nattestation notification channels need."
          }
        },
        "type": "object"
      },
      "RetransmitRequest": {
        "properties": {
          "destinations": {
            "description": "Destinations names the destinations to retransmit to\n(\"route/destination\"): failed ones, or a delivered one to re-send it\nexplicitly. Empty: every failed (dead-lettered) destination, never\none that was delivered.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RollbackRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "to_version": {
            "type": "integer"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RuleOutput": {
        "properties": {
          "code_preference": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "demographics_message": {
            "type": "string"
          },
          "emission_order": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "packet": {
            "type": "string"
          },
          "split_correction": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RuleSet": {
        "properties": {
          "output": {
            "$ref": "#/components/schemas/RuleOutput"
          },
          "review": {
            "$ref": "#/components/schemas/ConfigReviewRules"
          }
        },
        "type": "object"
      },
      "RulesRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "requeue": {
            "type": "boolean"
          },
          "rules": {
            "$ref": "#/components/schemas/RuleSet"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SFTPDirResult": {
        "description": "SFTPDirResult is one directory's check: readable and how many entries\n(never their names).",
        "properties": {
          "directory": {
            "type": "string"
          },
          "files": {
            "type": "integer"
          },
          "readable": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SFTPTestResult": {
        "description": "SFTPTestResult is the clearinghouse SFTP connection test's answer.",
        "properties": {
          "directories": {
            "items": {
              "$ref": "#/components/schemas/SFTPDirResult"
            },
            "type": "array"
          },
          "error": {
            "type": "string"
          },
          "host_key_presented": {
            "description": "HostKeyPresented is the SHA-256 fingerprint of the key the server\nshowed (when none was pinned, or on a mismatch): public, for the\nadministrator to compare with the published value before pinning.",
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "reachable": {
            "type": "boolean"
          },
          "reason": {
            "description": "Reason is a fixed code for a failure (sftp_auth_failed,\nsftp_auth_blocked, sftp_auth_prompt_refused, sftp_secret_unreadable,\nsftp_algorithm_unsupported, sftp_host_key_mismatch,\nsftp_host_key_unpinned).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SampleIn": {
        "properties": {
          "expect": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "output": {
            "type": "string"
          },
          "previous": {
            "description": "Previous names the stored sample a renamed one keeps its masked\nmessage and output from (default: Name).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SampleResult": {
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "duration_ms": {
            "type": "integer"
          },
          "expect": {
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/FailureJSON"
          },
          "input": {
            "description": "Input and Output: payload:read only.",
            "type": "string"
          },
          "logs": {
            "items": {
              "$ref": "#/components/schemas/LogJSON"
            },
            "type": "array"
          },
          "lookups": {
            "items": {
              "$ref": "#/components/schemas/ScriptLookupUse"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "output": {
            "type": "string"
          },
          "output_matched": {
            "type": "boolean"
          },
          "passed": {
            "type": "boolean"
          },
          "problem": {
            "description": "why it did not pass (no values)",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SavedRequest": {
        "properties": {
          "refresh_minutes": {
            "type": "integer"
          },
          "shared": {
            "type": "boolean"
          },
          "spec": {},
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ScimTokenJSON": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "replaced_by": {
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "revoked_by": {
            "type": "string"
          },
          "rotated_from": {
            "type": "string"
          },
          "status": {
            "description": "active, rotating, expired, revoked",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ScimTokenRequest": {
        "properties": {
          "expires_days": {
            "type": "integer"
          },
          "label": {
            "type": "string"
          },
          "overlap_hours": {
            "type": "integer"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ScriptCode": {
        "description": "Code is one script version: what runs.",
        "properties": {
          "dialect": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/ScriptLimits"
          },
          "output": {
            "description": "Output, for a transform of a json or xml message, converts it: the\nscript builds the result in the global `output` (hl7v2 or fhir) and\nthe converted message continues through the destination's own\npipeline in that format. Empty: the message stays in its format.",
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ScriptLimits": {
        "description": "Limits are a script's resource limits; zero values take the defaults.",
        "properties": {
          "memory_mb": {
            "type": "integer"
          },
          "time_ms": {
            "description": "TimeMS is the time limit: a budget of TimeMS * StepsPerMS steps of\nwork (not elapsed time).",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ScriptLookupUse": {
        "description": "LookupUse counts the lookups an execution made of one code map or code\nset (audited; never the codes).",
        "properties": {
          "count": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "description": "\"code_map\" or \"code_set\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ScriptSummary": {
        "properties": {
          "active": {
            "$ref": "#/components/schemas/ActiveJSON"
          },
          "description": {
            "type": "string"
          },
          "draft": {
            "$ref": "#/components/schemas/ScriptCode"
          },
          "draft_sha256": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "pending": {
            "description": "Pending: the draft differs from the active version.",
            "type": "boolean"
          },
          "routes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "samples": {
            "type": "integer"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ServiceStatusResponse": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "ongoing": {
            "items": {
              "$ref": "#/components/schemas/StatuspagePublicEvent"
            },
            "type": "array"
          },
          "overall": {
            "type": "string"
          },
          "page_url": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "regions": {
            "items": {
              "$ref": "#/components/schemas/StatuspageRegionStatus"
            },
            "type": "array"
          },
          "updated": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SessionReq": {
        "properties": {
          "hours": {
            "type": "integer"
          },
          "max_reads": {
            "type": "integer"
          },
          "request_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SignOffRequest": {
        "properties": {
          "note": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SplitDecision": {
        "properties": {
          "plan": {
            "$ref": "#/components/schemas/OcrClerkPlan"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SsoConnection": {
        "description": "Connection is the non-secret connection configuration (stored as JSON;\nshown in the console). Secrets travel separately (Secrets).",
        "properties": {
          "client_id": {
            "description": "OIDC (microsoft, google, oidc).",
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "email_attribute": {
            "type": "string"
          },
          "group_roles": {
            "description": "GroupRoles maps IdP groups to roles (Enterprise). Empty: roles are\nmanaged per user in the console.",
            "items": {
              "$ref": "#/components/schemas/SsoGroupRole"
            },
            "type": "array"
          },
          "groups_attribute": {
            "type": "string"
          },
          "groups_claim": {
            "description": "GroupsClaim is the ID token claim carrying groups (default \"groups\";\nEntra app roles: \"roles\").",
            "type": "string"
          },
          "idp_certificates": {
            "description": "PEM",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "idp_entity_id": {
            "description": "SAML.",
            "type": "string"
          },
          "idp_sso_url": {
            "type": "string"
          },
          "issuer": {
            "description": "Issuer is the custom OIDC issuer (oidc); discovery is read from\nIssuer + /.well-known/openid-configuration.",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "metadata_url": {
            "description": "where metadata was read (informational)",
            "type": "string"
          },
          "sp_certificate": {
            "description": "SPCertificate is Velacent Bridge's SP certificate (PEM) published in the SP\nmetadata: IdPs encrypt assertions to it. Its key is a Secret.",
            "type": "string"
          },
          "tenant_ids": {
            "description": "TenantIDs are the customer's Entra tenant IDs (microsoft).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "SsoGroupRole": {
        "description": "GroupRole maps one IdP group (name or ID, as the IdP sends it) to a role.",
        "properties": {
          "group": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SsoView": {
        "properties": {
          "allowed_kinds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "changed_at": {
            "format": "date-time",
            "type": "string"
          },
          "changed_by": {
            "type": "string"
          },
          "connection": {
            "$ref": "#/components/schemas/SsoConnection"
          },
          "customer_domains": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "edition": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "group_mapping_allowed": {
            "type": "boolean"
          },
          "has_client_secret": {
            "type": "boolean"
          },
          "velacent": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "StartReplayRequest": {
        "properties": {
          "confirm_count": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "StatuspageComponentStatus": {
        "description": "ComponentStatus is a component's state and 90-day uptime in a region.",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "uptime_90d": {
            "description": "percent, -1 when unmeasured",
            "type": "number"
          }
        },
        "type": "object"
      },
      "StatuspagePublicEvent": {
        "description": "PublicEvent is an incident or maintenance window as published.",
        "properties": {
          "end": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ongoing": {
            "type": "boolean"
          },
          "region": {
            "type": "string"
          },
          "start": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "StatuspageRegionStatus": {
        "description": "RegionStatus is one region's current state.",
        "properties": {
          "components": {
            "items": {
              "$ref": "#/components/schemas/StatuspageComponentStatus"
            },
            "type": "array"
          },
          "region": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SuggestedRoute": {
        "description": "suggestedRoute is a route the customer may create from a registration\n(the route wizard asks for the rest: CA files, keys, secrets).",
        "properties": {
          "destination": {
            "additionalProperties": {},
            "type": "object"
          },
          "match": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportAttachReq": {
        "properties": {
          "data": {
            "description": "base64",
            "type": "string"
          },
          "media_type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportCSATReq": {
        "properties": {
          "comment": {
            "type": "string"
          },
          "score": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SupportChatReq": {
        "properties": {
          "case_id": {
            "type": "string"
          },
          "context": {
            "description": "Context is the Ask AI screen context (PHI-free, ai_context.go)."
          },
          "finding": {
            "$ref": "#/components/schemas/SupportFinding",
            "description": "Finding is a hand-off from an error or Explain panel."
          },
          "help": {
            "description": "Help is the Help context: screen, selected IDs, codes, failed\nactions, onboarding step (help_context.go)."
          },
          "history": {
            "description": "History is this Help session's earlier turns, held by the browser\nonly (no transcript is stored): the model's context for this turn.",
            "items": {
              "$ref": "#/components/schemas/SupportHistoryTurn"
            },
            "type": "array"
          },
          "text": {
            "type": "string"
          },
          "zone": {
            "description": "Zone is the browser's IANA time zone: the SLA quote is in it.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportFinding": {
        "properties": {
          "code": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "transaction_id": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SupportFormReq": {
        "properties": {
          "case_id": {
            "type": "string"
          },
          "feature": {
            "type": "string"
          },
          "impact": {
            "description": "blocked, degraded, question",
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "transactions": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "zone": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportHistoryTurn": {
        "description": "supportHistoryTurn is one earlier turn of the session (not stored).",
        "properties": {
          "role": {
            "description": "user, agent",
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportMetrics": {
        "description": "Metrics are the aggregates.",
        "properties": {
          "closed_unconfirmed": {
            "type": "integer"
          },
          "confirmation_rate": {
            "type": "number"
          },
          "confirmed": {
            "description": "Closure counts the final outcomes; ConfirmationRate is the share of\nfinal tickets the customer confirmed (never counting evidence or\nsilence as confirmation).",
            "type": "integer"
          },
          "evidence_rate": {
            "type": "number"
          },
          "first_response_median_sec": {
            "description": "Medians, in seconds (0: no data).",
            "type": "integer"
          },
          "reopen_rate": {
            "type": "number"
          },
          "sla_by_severity": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SupportSLACount"
            },
            "description": "SLA is first-response target met and missed by severity.",
            "type": "object"
          },
          "tickets": {
            "type": "integer"
          },
          "time_in_stage_median_sec": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "TimeInStage is the median seconds spent in each stage.",
            "type": "object"
          },
          "time_to_fix_median_sec": {
            "type": "integer"
          },
          "unconfirmed_rate": {
            "type": "number"
          },
          "updates_on_time": {
            "description": "UpdatesOnTime is the share of due updates sent on time (-1: none due).",
            "type": "number"
          },
          "verified_by_evidence": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SupportOperatorEv": {
        "description": "OperatorEv is evidence in the view: kind, result and counts only.",
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "details": {
            "additionalProperties": {},
            "type": "object"
          },
          "failed": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SupportOperatorEvent2": {
        "description": "OperatorEvent2 is a timeline entry in the view.",
        "properties": {
          "actor": {
            "type": "string"
          },
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "cause": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportOperatorTarget": {
        "description": "OperatorTarget is a target with its state.",
        "properties": {
          "due": {
            "format": "date-time",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportOperatorView": {
        "description": "OperatorView is a ticket as a Velacent Bridge operator sees it: closed\nvocabulary, numbers, times, opaque references and de-identified text. It\nhas no field that can hold a payload, a title, a name or a customer's\nwords.",
        "properties": {
          "case": {
            "type": "string"
          },
          "cause": {
            "type": "string"
          },
          "customer_said": {
            "description": "CustomerSaid is the customer's typed text after the PHI screen\n(vocabulary words only).",
            "type": "string"
          },
          "defect_ref": {
            "type": "string"
          },
          "edition": {
            "type": "string"
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/SupportOperatorEv"
            },
            "type": "array"
          },
          "feature": {
            "type": "string"
          },
          "fix_kind": {
            "type": "string"
          },
          "opened_at": {
            "format": "date-time",
            "type": "string"
          },
          "release": {
            "type": "string"
          },
          "severity": {
            "type": "integer"
          },
          "stage": {
            "type": "string"
          },
          "stage_at": {
            "format": "date-time",
            "type": "string"
          },
          "stage_label": {
            "type": "string"
          },
          "summary": {
            "description": "Summary is the de-identified technical summary.",
            "type": "string"
          },
          "symptom": {
            "type": "string"
          },
          "synthetic_reproduction": {
            "description": "Repro is the synthetic reproduction (HL7 v2 with placeholders).",
            "type": "string"
          },
          "targets": {
            "items": {
              "$ref": "#/components/schemas/SupportOperatorTarget"
            },
            "type": "array"
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/SupportOperatorEvent2"
            },
            "type": "array"
          },
          "update_preference": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportSLACount": {
        "description": "SLACount is met and missed counts.",
        "properties": {
          "met": {
            "type": "integer"
          },
          "missed": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SupportTarget": {
        "description": "Target is a response target: within Within on Clock.",
        "properties": {
          "clock": {
            "type": "string"
          },
          "contractual": {
            "description": "Contractual: from MSA Exhibit B.6 (a target, not subject to\ncredits). Internal objectives are false.",
            "type": "boolean"
          },
          "minutes": {
            "type": "integer"
          },
          "severity": {
            "type": "integer"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportVersionReq": {
        "properties": {
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SupportcallNextStep": {
        "description": "NextStep is an agreed action. Owner is \"customer\" or \"velacent\"; DueDays\nis days after the call (0 to 90; 0 means none given).",
        "properties": {
          "action": {
            "type": "string"
          },
          "due_days": {
            "type": "integer"
          },
          "owner": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SupportcallNotes": {
        "description": "Notes is the structured summary of a call. The customer-side version is\nfree text; the operator copy has passed support.Deidentify.",
        "properties": {
          "decisions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "discussed": {
            "type": "string"
          },
          "next_steps": {
            "items": {
              "$ref": "#/components/schemas/SupportcallNextStep"
            },
            "type": "array"
          },
          "sentiment": {
            "description": "Sentiment is one of Sentiments, in neutral words.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "TestReport": {
        "properties": {
          "compile_error": {
            "type": "string"
          },
          "compile_line": {
            "type": "integer"
          },
          "compiled": {
            "type": "boolean"
          },
          "content_shown": {
            "type": "boolean"
          },
          "passed": {
            "type": "integer"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/SampleResult"
            },
            "type": "array"
          },
          "sha256": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "TestScriptRequest": {
        "properties": {
          "draft": {
            "$ref": "#/components/schemas/ScriptCode",
            "description": "Draft is a candidate to test instead of the saved draft (the editor's\nunsaved text)."
          },
          "message": {
            "description": "Message, when set, is one pasted message to run instead of the\nsamples (payload:read).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "TicketAnswerReq": {
        "properties": {
          "answer": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "rating": {
            "type": "integer"
          },
          "via": {
            "description": "Via is \"button\" (the Support screen) or \"voice\" (Help).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "TicketSettingsReq": {
        "properties": {
          "assistant_content": {
            "type": "boolean"
          },
          "update_preference": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TileResult": {
        "properties": {
          "columns": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "definition": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "rows": {
            "items": {
              "items": {},
              "type": "array"
            },
            "type": "array"
          },
          "source": {
            "type": "string"
          },
          "tile": {
            "$ref": "#/components/schemas/DashboardsTile"
          }
        },
        "type": "object"
      },
      "UpdateIncidentRequest": {
        "properties": {
          "acknowledge": {
            "type": "boolean"
          },
          "checklist": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object"
          },
          "note": {
            "type": "string"
          },
          "severity": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "tenants": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "version": {
            "type": "integer"
          },
          "worksheet": {
            "$ref": "#/components/schemas/IncidentWorksheet"
          }
        },
        "type": "object"
      },
      "UpstreamMerge": {
        "description": "upstreamMerge is a remix's three-way merge with its parent's newer\nversion.",
        "properties": {
          "base_version": {
            "type": "string"
          },
          "latest_version": {
            "type": "string"
          },
          "merge": {
            "$ref": "#/components/schemas/AgentMerge"
          },
          "newer": {
            "type": "boolean"
          },
          "parent_capability_changes": {
            "$ref": "#/components/schemas/AgentCapabilityDiff"
          },
          "problems": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "UserJSON": {
        "description": "userJSON renders an assignment. Timestamps are RFC 3339 UTC; the UI\nrenders them in the viewer's time zone.",
        "properties": {
          "changed_at": {
            "format": "date-time",
            "type": "string"
          },
          "changed_by": {
            "type": "string"
          },
          "changed_by_auth": {
            "type": "string"
          },
          "changed_by_subject": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "patient_search": {
            "type": "boolean"
          },
          "payload_read": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "valid_from": {
            "format": "date-time",
            "type": "string"
          },
          "valid_to": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VersionRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VpnKeysRequest": {
        "properties": {
          "rotate": {
            "type": "boolean"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VpnSiteRequest": {
        "properties": {
          "site": {
            "$ref": "#/components/schemas/VpnconfigSite"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VpnSiteView": {
        "description": "vpnSiteView is a site as the console shows it.",
        "properties": {
          "created_at": {},
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "key_fingerprints": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "key_stored": {
            "description": "KeyStored: the Alkira path's keys are held for Velacent Bridge operations.",
            "type": "boolean"
          },
          "keys_issued": {
            "type": "boolean"
          },
          "keys_issued_at": {},
          "keys_issued_by": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "ready": {
            "type": "boolean"
          },
          "site": {
            "$ref": "#/components/schemas/VpnconfigSite"
          },
          "updated_at": {},
          "vendor": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "VpnconfigCheck": {
        "description": "Check is one line of the report.",
        "properties": {
          "detail": {
            "type": "string"
          },
          "fix": {
            "description": "Fix is what to do when it fails.",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "VpnconfigCloudStatus": {
        "description": "CloudStatus is what the Compute API reports, reduced to what the check\nneeds (no secrets in it).",
        "properties": {
          "learned": {
            "description": "Learned are the router's best routes' destinations (what it learned\nfrom the site).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "peers": {
            "items": {
              "$ref": "#/components/schemas/VpnconfigPeerState"
            },
            "type": "array"
          },
          "tunnels": {
            "items": {
              "$ref": "#/components/schemas/VpnconfigTunnelState"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "VpnconfigPeerState": {
        "description": "PeerState is one BGP session.",
        "properties": {
          "advertised": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "learned_routes": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "status": {
            "description": "UP, DOWN, UNKNOWN",
            "type": "string"
          },
          "uptime": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "VpnconfigReport": {
        "description": "Report is the outcome of a connectivity check.",
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/VpnconfigCheck"
            },
            "type": "array"
          },
          "ok": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "site_tests": {
            "description": "SiteTests still have to be run from a site computer.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "Source: \"google\" (live), \"unavailable\" (with Reason).",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VpnconfigCloudStatus"
          }
        },
        "type": "object"
      },
      "VpnconfigSite": {
        "description": "Site is one customer site's tunnel parameters (no secrets).",
        "properties": {
          "bgp_ranges": {
            "description": "BGPRanges are the two link-local /30s, one per tunnel: the cloud\nside takes the first host address, the site the second.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cloud_asn": {
            "description": "CloudASN is the Cloud Router's (or Alkira's) ASN.",
            "type": "integer"
          },
          "cloud_public_ips": {
            "description": "CloudPublicIPs are the cloud gateway's two interface addresses: HA VPN\ninterfaces 0 and 1, or the Alkira connector's two tunnel endpoints.\nEmpty until the gateway exists (the configuration needs them).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "endpoint": {
            "description": "Endpoint is the private address senders connect to: the Private\nService Connect endpoint (google_ha_vpn) or the tenant's private\ningress address (alkira). Empty until known.",
            "type": "string"
          },
          "lan": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "project": {
            "description": "Project and Region locate the customer's HA VPN (google_ha_vpn) for\nthe live status check; Router and the tunnel names default to\ncustomer_setup.sh's.",
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "site_asn": {
            "type": "integer"
          },
          "site_cidrs": {
            "description": "SiteCIDRs are the on-site networks whose systems talk to Velacent Bridge\n(advertised over BGP; sources in the firewall rules).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "site_public_ips": {
            "description": "SitePublicIPs are the public IPv4 addresses of the customer's VPN\ndevice(s): one (both tunnels from one address) or two (tunnel i from\naddress i: two WAN links, or two devices).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendor": {
            "type": "string"
          },
          "wan_interfaces": {
            "description": "WANInterfaces name the device's outside interface per tunnel and\nLAN its inside interface or zone (vendor defaults when empty).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "VpnconfigTunnelState": {
        "description": "TunnelState is one tunnel as Google reports it.",
        "properties": {
          "detailed_status": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "description": "ESTABLISHED, FIRST_HANDSHAKE, NO_INCOMING_PACKETS, AUTHORIZATION_ERROR, ...",
            "type": "string"
          }
        },
        "type": "object"
      },
      "WhoamiResponse": {
        "properties": {
          "addons": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "auth_method": {
            "type": "string"
          },
          "demo": {
            "$ref": "#/components/schemas/DemoInfo",
            "description": "Demo is set only in the local demo environment (a test build with\nVELACENT_DEMO=1, never a real deployment): the console shows a\n\"Demo environment, synthetic data\" banner, and says so when its AI\nanswers are simulated."
          },
          "edition": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "features": {
            "description": "Features lists optional console areas this deployment enables\n(\"developers\"), so the navigation shows only what works.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "patient_search": {
            "type": "boolean"
          },
          "paused_features": {
            "description": "PausedFeatures are configured features this edition does not run\n(a downgrade kept them): the console banner names each and how to\nget it back.",
            "items": {
              "$ref": "#/components/schemas/ConfigPausedFeature"
            },
            "type": "array"
          },
          "payload_read": {
            "type": "boolean"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "personnel": {
            "description": "Personnel is customer, staff (Velacent personnel: support role,\nmetadata only) or unbound.",
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "consoleSession": {
        "description": "The console session after customer SSO sign-in (browser only; state-changing requests must be same-origin).",
        "in": "cookie",
        "name": "__Host-velacent_session",
        "type": "apiKey"
      },
      "googleIdToken": {
        "bearerFormat": "JWT",
        "description": "A Google-signed ID token (verified email) whose audience is one of the Admin API's configured audiences: service accounts and CI (Workload Identity Federation).",
        "scheme": "bearer",
        "type": "http"
      },
      "iapAssertion": {
        "description": "Set by Cloud IAP in front of the console; never sent by clients directly.",
        "in": "header",
        "name": "X-Goog-IAP-JWT-Assertion",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Generated from the Admin API's route table (go run ./scripts/gen_openapi); a test fails when a registered route is missing. Every request is authenticated (a Google ID token for the Admin API's audience, the Cloud IAP assertion, or the console session) and authorized against the caller's role and grants; x-velacent-permissions lists what an operation checks (default deny). Every change and every refusal is audited, fail-closed: a change whose audit record cannot be written is not made. Configuration writes carry the version last read (optimistic concurrency: 409 when it changed) and a reason. Configuration as code: GET /admin/v1/config exports, POST /admin/v1/config/plan previews files, POST /admin/v1/config/apply applies a reviewed plan (the velacent -config-export, -config-diff and -config-apply commands). See docs/DATA_PLANE.md and docs/ADMIN_UI.md.",
    "summary": "Authenticated, role-checked and audited management of a Velacent Bridge tenant.",
    "title": "Velacent Bridge Admin API",
    "version": "1.0"
  },
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base",
  "openapi": "3.1.0",
  "paths": {
    "/admin/v1/agent-drafts": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentDrafts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "drafts": {
                      "items": {
                        "$ref": "#/components/schemas/DraftOut"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent drafts",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      },
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftCreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "parent_id": {
                    "type": "string"
                  },
                  "parent_version": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft create",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}": {
      "delete": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft delete",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      },
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentDraftGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "summary": "Agent draft get",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      },
      "put": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftSave",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft save",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/assist": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftAssist",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "request": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "proposal": {
                      "additionalProperties": {},
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "issues": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "problems": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft assist",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/install": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftInstall",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "evaluation": {
                      "$ref": "#/components/schemas/DraftEval"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft install",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/merge": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDraftMerge",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string"
                  },
                  "parent_version": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "evaluation": {
                      "$ref": "#/components/schemas/DraftEval"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft merge",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/publish": {
      "post": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "agentDraftPublish",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accept_terms": {
                    "type": "string"
                  },
                  "organization": {
                    "$ref": "#/components/schemas/AgentOrganization"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "evaluation": {
                          "$ref": "#/components/schemas/DraftEval"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "issues": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "samples": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft publish",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/test-run": {
      "post": {
        "description": "Permissions checked: `agents:activate`, `payload:read`.",
        "operationId": "agentDraftTestRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft test run",
        "tags": [
          "agent_testrun"
        ],
        "x-velacent-permissions": [
          "agents:activate",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/agent_testrun.go"
      }
    },
    "/admin/v1/agent-drafts/{id}/upstream": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentDraftUpstream",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpstreamMerge"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent draft upstream",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-executions": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "agentExecutions",
        "parameters": [
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "outcome",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "executions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent executions",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-issues": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentIssueList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Agent issue list",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-issues/{iid}/response": {
      "post": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "agentIssueRespond",
        "parameters": [
          {
            "in": "path",
            "name": "iid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reply": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent issue respond",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agent-loops": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "agentLoops",
        "parameters": [
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "loop",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "loops": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent loops",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-loops/export": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "agentLoopsExport",
        "parameters": [
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "loop",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent loops export",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-loops/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "agentLoop",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "events": {},
                    "loop": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Agent loop",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-loops/{id}/acknowledge": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "agentLoopAck",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "note": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {},
                    "step": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent loop ack",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-loops/{id}/close": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "agentLoopClose",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "note": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {},
                    "step": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent loop close",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-outcomes": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "agentOutcomes",
        "parameters": [
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "agents": {
                      "items": {
                        "$ref": "#/components/schemas/AgentOutcomeOut"
                      },
                      "type": "array"
                    },
                    "cost_note": {
                      "type": "string"
                    },
                    "daily": {},
                    "days": {
                      "type": "integer"
                    },
                    "estimate_note": {
                      "type": "string"
                    },
                    "from": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "rates": {
                      "properties": {
                        "callback_minute_micros": {},
                        "channel_message_micros": {},
                        "outreach_micros": {},
                        "standard_micros": {}
                      },
                      "type": "object"
                    },
                    "timing_note": {
                      "type": "string"
                    },
                    "to": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "totals": {
                      "properties": {
                        "completed": {},
                        "completed_outcomes": {},
                        "cost": {},
                        "estimated_minutes_saved": {},
                        "failed": {},
                        "open_loops": {},
                        "overdue_loops": {},
                        "refused": {},
                        "runs": {},
                        "skipped": {},
                        "unacknowledged": {}
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent outcomes",
        "tags": [
          "agent_outcomes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/agent_outcomes.go"
      }
    },
    "/admin/v1/agent-outcomes/export": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "agentOutcomesExport",
        "parameters": [
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent outcomes export",
        "tags": [
          "agent_outcomes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/agent_outcomes.go"
      }
    },
    "/admin/v1/agent-publications": {
      "post": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "agentPublish",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accept_terms": {
                    "type": "string"
                  },
                  "file": {
                    "type": "string"
                  },
                  "organization": {
                    "$ref": "#/components/schemas/AgentOrganization"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "issues": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "type": "string"
                        },
                        "samples": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent publish",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-settings": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentSettingsGet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "baa_services": {},
                    "baa_url": {},
                    "default_project": {},
                    "linked": {},
                    "permissions": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "settings": {
                      "$ref": "#/components/schemas/ConfigAgentSettings"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent settings get",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      },
      "put": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentSettingsPut",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "baa_confirmed": {
                    "type": "boolean"
                  },
                  "gcp_project": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "official_only": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent settings put",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-settings/verify": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentSettingsVerify",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent settings verify",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agent-usage": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "agentUsage",
        "parameters": [
          {
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "agents": {
                      "items": {},
                      "type": "array"
                    },
                    "amount_cents": {
                      "type": "integer"
                    },
                    "note": {
                      "type": "string"
                    },
                    "period_end": {},
                    "period_start": {},
                    "rates": {
                      "properties": {
                        "outreach_micros": {},
                        "standard_micros": {}
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent usage",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentsInstalled",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "installs": {
                      "items": {
                        "$ref": "#/components/schemas/InstallOut"
                      },
                      "type": "array"
                    },
                    "linked": {},
                    "settings": {
                      "$ref": "#/components/schemas/ConfigAgentSettings"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agents installed",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents-mine": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentsMine",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "agents": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Agents mine",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/catalog": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentCatalog",
        "parameters": [
          {
            "in": "query",
            "name": "publisher_kind",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "trust",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "agents": {},
                    "official_only": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Agent catalog",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/catalog/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentCatalogDetail",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Agent catalog detail",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/catalog/{id}/community": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "agentCommunity",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Agent community",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agents/catalog/{id}/issues": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentIssueReport",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "category": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent issue report",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agents/catalog/{id}/rating": {
      "delete": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentUnrate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent unrate",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      },
      "put": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentRate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "review": {
                    "type": "string"
                  },
                  "stars": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent rate",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agents/catalog/{id}/ratings/{rid}/reply": {
      "post": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "agentRatingReply",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "rid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reply": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent rating reply",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/agents/{id}": {
      "delete": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentUninstall",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent uninstall",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/activate": {
      "post": {
        "description": "Permissions checked: `agents:activate`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "agentActivate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent activate",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/approve": {
      "post": {
        "description": "Permissions checked: `agents:activate`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "agentApprove",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "beyond_parent": {
                    "description": "BeyondParent (private remixes): the capabilities the remix adds\nbeyond its parent, approved explicitly.",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "capabilities": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "egress": {
                    "items": {
                      "$ref": "#/components/schemas/AgentEgressApproval"
                    },
                    "type": "array"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent approve",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/bindings": {
      "put": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentBindings",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BindingsReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent bindings",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/disable": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentDisable",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent disable",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/install": {
      "post": {
        "description": "Permissions checked: `agents:activate`.",
        "operationId": "agentInstall",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent install",
        "tags": [
          "agents"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agents.go"
      }
    },
    "/admin/v1/agents/{id}/outcome-settings": {
      "put": {
        "description": "Records the customer's own estimate of staff\nminutes one completed outcome saves.\n\nPermissions checked: `agents:activate`.",
        "operationId": "agentOutcomeSettings",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "minutes_saved": {
                    "type": "integer"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Records the customer's own estimate of staff minutes one completed outcome saves",
        "tags": [
          "agent_outcomes"
        ],
        "x-velacent-permissions": [
          "agents:activate"
        ],
        "x-velacent-source": "internal/admin/agent_outcomes.go"
      }
    },
    "/admin/v1/agents/{id}/test-run": {
      "post": {
        "description": "Permissions checked: `agents:activate`, `payload:read`.",
        "operationId": "agentTestRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Agent test run",
        "tags": [
          "agent_testrun"
        ],
        "x-velacent-permissions": [
          "agents:activate",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/agent_testrun.go"
      }
    },
    "/admin/v1/ai/actions": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "listAIActions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "actions": {},
                    "enabled": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List a i actions",
        "tags": [
          "ai_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai_actions.go"
      }
    },
    "/admin/v1/ai/actions/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "getAIAction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiCard"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Get a i action",
        "tags": [
          "ai_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai_actions.go"
      }
    },
    "/admin/v1/ai/actions/{id}/cancel": {
      "post": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "cancelAIAction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiDecisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cancel a i action",
        "tags": [
          "ai_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai_actions.go"
      }
    },
    "/admin/v1/ai/actions/{id}/confirm": {
      "post": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "confirmAIAction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiDecisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "results": {},
                    "status": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Confirm a i action",
        "tags": [
          "ai_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai_actions.go"
      }
    },
    "/admin/v1/ai/ask": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`, `transactions:read`.",
        "operationId": "aiAsk",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAskResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ai ask",
        "tags": [
          "ai"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai.go"
      }
    },
    "/admin/v1/ai/explain": {
      "post": {
        "description": "Permissions checked: `payload:read`, `transactions:read`.",
        "operationId": "aiExplain",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExplainRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ai explain",
        "tags": [
          "ai_explain"
        ],
        "x-velacent-permissions": [
          "payload:read",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/ai_explain.go"
      }
    },
    "/admin/v1/alerts/events": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "listAlertEvents",
        "parameters": [
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "events": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List alert events",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/alerts/events/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "alertEventOp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Alert event op",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/alerts/rules": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "listAlertRules",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "default_body": {},
                    "metrics": {},
                    "rules": {},
                    "signature_header": {
                      "type": "string"
                    },
                    "timestamp_header": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List alert rules",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/alerts/rules/{id}": {
      "delete": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "deleteAlertRule",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Delete alert rule",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "putAlertRule",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expect_version": {
                    "type": "integer"
                  },
                  "rule": {
                    "$ref": "#/components/schemas/DashboardsRule"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put alert rule",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/api-clients": {
      "get": {
        "description": "Permissions checked: `developers:manage`, `transactions:read`.",
        "operationId": "apiClientsList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "api_terms_version": {},
                    "base_url": {},
                    "can_manage": {},
                    "clients": {},
                    "max_clients": {},
                    "scopes": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api clients list",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      },
      "post": {
        "description": "Permissions checked: `developers:manage`, `payload:read`.",
        "operationId": "apiClientCreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DevapiNewClient"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client create",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "apiClientGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiClientView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client get",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}/keys": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "apiClientKeys",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "jwks": {
                    "type": "string"
                  },
                  "public_key_pem": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client keys",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}/revoke": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "apiClientRevoke",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client revoke",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}/rotate-secret": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "apiClientRotate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "overlap_hours": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "client_secret": {},
                    "client_secret_notice": {
                      "type": "string"
                    },
                    "previous_secret_valid_until": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client rotate",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}/scope": {
      "post": {
        "description": "Permissions checked: `developers:manage`, `payload:read`.",
        "operationId": "apiClientScope",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "rate_per_minute": {
                    "type": "integer"
                  },
                  "routes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "send_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "tokens_ended": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api client scope",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/api-clients/{id}/webhooks/{wid}/disable": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "apiWebhookDisable",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "wid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Api webhook disable",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/audit/log": {
      "get": {
        "description": "Permissions checked: `audit:read`, `patient:search`, `transactions:read`.",
        "operationId": "auditLog",
        "parameters": [
          {
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "agent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "allowed",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "target",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "transaction",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "history_note": {},
                    "records": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Audit log",
        "tags": [
          "auditlog"
        ],
        "x-velacent-permissions": [
          "audit:read",
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/auditlog.go"
      }
    },
    "/admin/v1/authorities": {
      "get": {
        "description": "Suggests configured assigning authorities by prefix\n(case-insensitive). Only configuration is ever suggested, never an\nauthority seen in messages.\n\nPermissions checked: `patient:search`, `transactions:read`.",
        "operationId": "authorities",
        "parameters": [
          {
            "in": "query",
            "name": "prefix",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "authorities": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Suggests configured assigning authorities by prefix (case-insensitive)",
        "tags": [
          "patient"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/patient.go"
      }
    },
    "/admin/v1/backup/enable": {
      "post": {
        "description": "Enables restored routes and sources (removes their\ndisabled flag) in one transaction, once the person has put the secrets in\nplace. Each is a new version in the configuration history.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "restoreEnable",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnableRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "config_version": {},
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {},
                        "enabled": {},
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Enables restored routes and sources (removes their disabled flag) in one transaction, once the person has put the secrets in place",
        "tags": [
          "backup"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/backup.go"
      }
    },
    "/admin/v1/backup/export": {
      "get": {
        "description": "Downloads the configuration as a bundle. The audit record\n(database and stdout, before any byte of the bundle is sent) names the\ncaller, the scope and the digest, never the content; if it cannot be\nwritten nothing is sent.\n\nPermissions checked: `config:export`.",
        "operationId": "backupExport",
        "parameters": [
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Downloads the configuration as a bundle",
        "tags": [
          "backup"
        ],
        "x-velacent-permissions": [
          "config:export"
        ],
        "x-velacent-source": "internal/admin/backup.go"
      }
    },
    "/admin/v1/backup/restore/apply": {
      "post": {
        "description": "Applies a reviewed plan: the plan is computed again and must\nhave the same plan_sha256; a blocked plan is refused (skip or fix the\nblocked items first); every entity needs its kind's write permission (a\nscript with an active version also scripts:activate); all entities are\nwritten in one transaction with the stated reason, audited fail-closed\n(the audit names the bundle digest, never the content).\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "restoreApply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreApplyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "plan": {
                          "$ref": "#/components/schemas/BundlePlan"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {},
                        "disabled": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "must_supply": {},
                        "plan": {
                          "$ref": "#/components/schemas/BundlePlan"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Applies a reviewed plan",
        "tags": [
          "backup"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/backup.go"
      }
    },
    "/admin/v1/backup/restore/plan": {
      "post": {
        "description": "Shows what restoring a bundle would do: per entity create,\nrestore under a new name, replace, unchanged, skip or blocked; the\nconflicts and the choices; what is missing in this account; the secrets\nand certificates to supply; what arrives disabled. Nothing is written.\n\nPermissions checked: `config:write`.",
        "operationId": "restorePlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BundlePlan"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Shows what restoring a bundle would do",
        "tags": [
          "backup"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/backup.go"
      }
    },
    "/admin/v1/build-sessions": {
      "post": {
        "description": "Permissions checked: `documents:confidential_build`.",
        "operationId": "sessionOpen",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Session open",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential_build"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/build-sessions/{id}/documents": {
      "get": {
        "description": "Permissions checked: `documents:confidential_build`.",
        "operationId": "sessionDocuments",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "documents": {},
                    "session": {
                      "$ref": "#/components/schemas/DbBuildSession"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Session documents",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential_build"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/build-sessions/{id}/documents/{doc}": {
      "get": {
        "description": "Permissions checked: `documents:confidential_build`.",
        "operationId": "sessionRead",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "doc",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/octet-stream": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Session read",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential_build"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/certificates": {
      "get": {
        "description": "Is the inventory (?sender= narrows it), the expiry\nbanner (accepted certificates within 30 days of expiry, or expired) and\nwhat the console may offer.\n\nPermissions checked: `config:history`.",
        "operationId": "listCertificates",
        "parameters": [
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "auto_renewal": {},
                    "certificates": {
                      "items": {
                        "$ref": "#/components/schemas/CertificateJSON"
                      },
                      "type": "array"
                    },
                    "default_lifetime_days": {},
                    "default_overlap_days": {},
                    "expiring": {
                      "items": {
                        "$ref": "#/components/schemas/CertificateJSON"
                      },
                      "type": "array"
                    },
                    "issuance": {},
                    "platforms": {
                      "items": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "reminder_days": {},
                    "revocation_reasons": {},
                    "unregistered_digests": {
                      "items": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is the inventory (?sender= narrows it), the expiry banner (accepted certificates within 30 days of expiry, or expired) and what the console may offer",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/certificates/{digest}/guide": {
      "get": {
        "description": "Renders install steps for one platform.\n\nPermissions checked: `config:history`.",
        "operationId": "certificateGuide",
        "parameters": [
          {
            "in": "path",
            "name": "digest",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "bundle",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "platform",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Renders install steps for one platform",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/certificates/{digest}/retire": {
      "post": {
        "description": "Stops accepting a certificate now (normally the old\none after a rotation, once the sender uses the new one). The sender's\nonly certificate cannot be retired: issue a replacement, or revoke it.\n\nPermissions checked: `senders:write`.",
        "operationId": "retireCertificate",
        "parameters": [
          {
            "in": "path",
            "name": "digest",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "sender_id": {
                      "type": "string"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Stops accepting a certificate now (normally the old one after a rotation, once the sender uses the new one)",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/certificates/{digest}/revoke": {
      "post": {
        "description": "Removes the digest from its sender at once (the\nbroker refuses it from the next message, even on an open connection),\nthen revokes it at the CA when Velacent Bridge issued it. If the CA call\nfails the certificate is already refused; retrying completes it.\n\nPermissions checked: `senders:write`.",
        "operationId": "revokeCertificate",
        "parameters": [
          {
            "in": "path",
            "name": "digest",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ca_revoked": {},
                    "sender_id": {
                      "type": "string"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Removes the digest from its sender at once (the broker refuses it from the next message, even on an open connection), then revokes it at the CA when Velacent...",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/channel-deliveries": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "channelDeliveries",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "calls": {},
                    "days": {},
                    "deliveries": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Channel deliveries",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/channel-settings": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "channelSettingsGet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "notice_kinds": {},
                    "prices": {
                      "properties": {
                        "callback": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "whatsapp": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "settings": {},
                    "supported": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "unavailable": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "velacent_line": {},
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Channel settings get",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "channelSettingsPut",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expect_version": {
                    "type": "integer"
                  },
                  "settings": {
                    "$ref": "#/components/schemas/ChannelsSettings"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Channel settings put",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/claims": {
      "get": {
        "description": "(GET /admin/v1/claims) filters tracked claims: transaction\n(the 837, the generated 277CA or a received 277CA), sender, ack_status\n(accepted, rejected), payer_status (accepted, rejected, other, none),\nfrom, to, before and limit. Codes, amounts and IDs only: no claim\ncontent.\n\nPermissions checked: `transactions:read`.",
        "operationId": "listClaims",
        "parameters": [
          {
            "in": "query",
            "name": "ack_status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "payer_status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "claims": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "(GET /admin/v1/claims) filters tracked claims",
        "tags": [
          "transactions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/transactions.go"
      }
    },
    "/admin/v1/clearinghouse/check": {
      "post": {
        "description": "Runs one eligibility check through the customer's own\nclearinghouse account and returns the result, its FHIR\nCoverageEligibilityResponse and a plain-language explanation.\n\nPermissions checked: `payload:read`.",
        "operationId": "clearinghouseCheck",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Runs one eligibility check through the customer's own clearinghouse account and returns the result, its FHIR CoverageEligibilityResponse and a plain-language...",
        "tags": [
          "clearinghouse"
        ],
        "x-velacent-permissions": [
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/clearinghouse.go"
      }
    },
    "/admin/v1/clearinghouse/claims": {
      "get": {
        "description": "Lists the claims sent to clearinghouses with their\nlifecycle (submitted, file_rejected, accepted, rejected, paid, denied,\nreversed, processed), the codes as sent and the amounts. Filters:\nconnection, submission, transaction, state, overdue, before, limit.\n\nPermissions checked: `transactions:read`.",
        "operationId": "listSubmittedClaims",
        "parameters": [
          {
            "in": "query",
            "name": "connection",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "overdue",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "claims": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the claims sent to clearinghouses with their lifecycle (submitted, file_rejected, accepted, rejected, paid, denied, reversed, processed), the codes as ...",
        "tags": [
          "claims_connections"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/claims_connections.go"
      }
    },
    "/admin/v1/clearinghouse/providers": {
      "get": {
        "description": "Lists the clearinghouse connectors that are built,\nwith their operations, authentication and documentation level.\n\nPermissions checked: `transactions:read`.",
        "operationId": "clearinghouseProviders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "providers": {},
                    "published": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Lists the clearinghouse connectors that are built, with their operations, authentication and documentation level",
        "tags": [
          "clearinghouse"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/clearinghouse.go"
      }
    },
    "/admin/v1/clearinghouse/sftp-test": {
      "post": {
        "description": "Checks a clearinghouse SFTP connection without\nsending anything: the pinned host key, the sign-in (mounted key file,\npassword file or both) and that each directory can be listed (entry\ncounts only, never names). Without a pinned host key it only shows the\nkey the server presents, sending no credential.\n\nPermissions checked: `config:write`.",
        "operationId": "clearinghouseSFTPTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SFTPTestResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Checks a clearinghouse SFTP connection without sending anything",
        "tags": [
          "claims_connections"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/claims_connections.go"
      }
    },
    "/admin/v1/clearinghouse/submissions": {
      "get": {
        "description": "Lists the claim files sent to clearinghouses, newest\nfirst: control numbers, file name, claim count, status and the TA1/999\nacknowledgment codes. Filters: connection, status, before, limit.\n\nPermissions checked: `transactions:read`.",
        "operationId": "listSubmissions",
        "parameters": [
          {
            "in": "query",
            "name": "connection",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "submissions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the claim files sent to clearinghouses, newest first",
        "tags": [
          "claims_connections"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/claims_connections.go"
      }
    },
    "/admin/v1/clearinghouse/test": {
      "post": {
        "description": "Checks the customer's clearinghouse credential and\nendpoint with a call that carries no patient data.\n\nPermissions checked: `config:write`.",
        "operationId": "clearinghouseTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearinghouseResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Checks the customer's clearinghouse credential and endpoint with a call that carries no patient data",
        "tags": [
          "clearinghouse"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/clearinghouse.go"
      }
    },
    "/admin/v1/clearinghouse/unmatched-remittances": {
      "get": {
        "description": "Lists 835 claim payments Velacent Bridge could not tie to a\nclaim it sent, with the reason (payee_not_identified,\npayee_id_not_mapped, claim_not_found), the 835 transaction and the\nclaim's position in it: never guessed, for a person to resolve.\nFilters: connection, before, limit.\n\nPermissions checked: `transactions:read`.",
        "operationId": "listUnmatchedRemits",
        "parameters": [
          {
            "in": "query",
            "name": "connection",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "unmatched": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists 835 claim payments Velacent Bridge could not tie to a claim it sent, with the reason (payee_not_identified, payee_id_not_mapped, claim_not_found), the ...",
        "tags": [
          "claims_connections"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/claims_connections.go"
      }
    },
    "/admin/v1/clerk/scope-options": {
      "get": {
        "description": "Lists what a clerical person can be assigned to: the\ndocument routes of the organization (connections and numbers are typed\nor chosen from the Fax screen). users:write, the same permission as\nassigning (administrators).\n\nPermissions checked: `users:write`.",
        "operationId": "clerkScopeOptions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "routes": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists what a clerical person can be assigned to",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/clerk/scope/{subject}": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "clerkScopeGet",
        "parameters": [
          {
            "in": "path",
            "name": "subject",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "assignments": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Clerk scope get",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/clerical.go"
      },
      "put": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "clerkScopePut",
        "parameters": [
          {
            "in": "path",
            "name": "subject",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "assignments": {
                    "items": {
                      "$ref": "#/components/schemas/DbAssignment"
                    },
                    "type": "array"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "assignments": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Clerk scope put",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/cloud-fhir/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "cloudFHIRTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cloud f h i r test",
        "tags": [
          "cloudfhir"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/cloudfhir.go"
      }
    },
    "/admin/v1/code-maps/{id}/import": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "importCodeMap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "dry_run": {},
                        "preview": {
                          "additionalProperties": {},
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Import code map",
        "tags": [
          "terminology"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/terminology.go"
      }
    },
    "/admin/v1/code-sets/{id}/import": {
      "post": {
        "description": "ImportCodeSet: POST /admin/v1/code-sets/{id}/import (config:write). The\ntenant's own code list for a code system it names; the response always\ncarries the license notice.\n\nPermissions checked: `config:write`.",
        "operationId": "importCodeSet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "dry_run": {},
                        "license_notice": {},
                        "preview": {
                          "additionalProperties": {},
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "ImportCodeSet",
        "tags": [
          "terminology"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/terminology.go"
      }
    },
    "/admin/v1/confidential-documents": {
      "get": {
        "description": "Permissions checked: `documents:confidential`.",
        "operationId": "confList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "documents": {},
                    "limits": {
                      "properties": {
                        "max_document_bytes": {},
                        "max_per_request": {},
                        "max_total_bytes": {}
                      },
                      "type": "object"
                    },
                    "sessions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Conf list",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      },
      "post": {
        "description": "Permissions checked: `documents:confidential`.",
        "operationId": "confUpload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfUploadReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bytes": {},
                    "id": {},
                    "media_type": {},
                    "phi_screen": {},
                    "visibility": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Conf upload",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/confidential-documents/build-sessions/{id}/revoke": {
      "post": {
        "description": "Permissions checked: `documents:confidential`, `documents:confidential_build`.",
        "operationId": "confRevoke",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Conf revoke",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential",
          "documents:confidential_build"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/confidential-documents/{id}": {
      "delete": {
        "description": "Permissions checked: `documents:confidential`.",
        "operationId": "confDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Conf delete",
        "tags": [
          "confidential_docs"
        ],
        "x-velacent-permissions": [
          "documents:confidential"
        ],
        "x-velacent-source": "internal/admin/confidential_docs.go"
      }
    },
    "/admin/v1/config": {
      "get": {
        "description": "Returns the current configuration, or with ?at=RFC3339 the\nwhole configuration as it was at that moment.\n\nPermissions checked: `config:history`.",
        "operationId": "getConfig",
        "parameters": [
          {
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "at": {},
                        "entities": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "attestations": {
                          "items": {
                            "$ref": "#/components/schemas/RecordedJSON"
                          },
                          "type": "array"
                        },
                        "config_version": {},
                        "entities": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns the current configuration, or with ?at=RFC3339 the whole configuration as it was at that moment",
        "tags": [
          "config"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/config.go"
      }
    },
    "/admin/v1/config/apply": {
      "post": {
        "description": "Applies configuration files the caller reviewed as a plan:\nthe plan is computed again and must have the same plan_sha256; every\nchange needs the same permission as the console edit of its kind; all\nchanges are written in one transaction with the stated reason, audited\nfail-closed (one admin audit record and the stdout record before\ncommit), each a new version in the configuration history.\n\nPermissions checked: `config:history`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "configApply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigcodeApplyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "config_version": {},
                    "plan": {
                      "$ref": "#/components/schemas/ConfigcodePlan"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Applies configuration files the caller reviewed as a plan",
        "tags": [
          "config_code"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/config_code.go"
      }
    },
    "/admin/v1/config/plan": {
      "post": {
        "description": "Previews applying configuration files: what would be\ncreated, updated or deleted, the paths that differ, the permission each\nchange needs, and the configuration validation's verdict. Nothing is\nwritten. Operator and above (config:history).\n\nPermissions checked: `config:history`.",
        "operationId": "configPlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigcodePlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigcodePlan"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Previews applying configuration files",
        "tags": [
          "config_code"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/config_code.go"
      }
    },
    "/admin/v1/config/{kind}/{id}": {
      "put": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "putConfig",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutConfigRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put config",
        "tags": [
          "config"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/config.go"
      }
    },
    "/admin/v1/config/{kind}/{id}/history": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "configHistory",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "kind": {},
                    "versions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Config history",
        "tags": [
          "config"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/config.go"
      }
    },
    "/admin/v1/config/{kind}/{id}/rollback": {
      "post": {
        "description": "Restores an entity's document from an earlier version, as\na new version (history is never rewritten).\n\nPermissions checked: `config:rollback`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "rollbackConfig",
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RollbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Restores an entity's document from an earlier version, as a new version (history is never rewritten)",
        "tags": [
          "config"
        ],
        "x-velacent-permissions": [
          "config:rollback"
        ],
        "x-velacent-source": "internal/admin/config.go"
      }
    },
    "/admin/v1/conformance": {
      "get": {
        "description": "Lists validated messages with their reports\n(metadata: rules, paths and explanations; never values).\n\nPermissions checked: `transactions:read`.",
        "operationId": "conformanceResults",
        "parameters": [
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "failed",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "results": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists validated messages with their reports (metadata: rules, paths and explanations; never values)",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/contact-methods": {
      "get": {
        "description": "Permissions checked: `metrics:read`, `users:write`.",
        "operationId": "contactsList",
        "parameters": [
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "contacts": {
                      "items": {
                        "$ref": "#/components/schemas/ChannelsContact"
                      },
                      "type": "array"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "supported": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "unavailable": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Contacts list",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "metrics:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      },
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "contactAdd",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "check": {},
                    "error": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Contact add",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/contact-methods/check": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "contactCheck",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "check": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "check": {},
                    "error": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          }
        },
        "summary": "Contact check",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/contact-methods/{id}": {
      "delete": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "contactDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Contact delete",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/contact-methods/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "contactOp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "code_sent": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "contact": {
                          "$ref": "#/components/schemas/ChannelsContact"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Contact op",
        "tags": [
          "channels"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/channels.go"
      }
    },
    "/admin/v1/dashboards/acks": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "ackAnalysis",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "analysis": {},
                    "classes": {
                      "type": "object"
                    },
                    "days": {},
                    "from": {},
                    "source": {
                      "type": "string"
                    },
                    "to": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ack analysis",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/cadence/{route}": {
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "setCadence",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_gap_s": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "expected_gap_s": {},
                    "route": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Set cadence",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/catalog": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "dashboardCatalog",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "charts": {},
                    "dimensions": {},
                    "max_rows": {},
                    "max_tiles": {},
                    "metrics": {},
                    "time_ranges": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Dashboard catalog",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/generate": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "generateDashboard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "question": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "spec": {},
                    "via": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "detail": {},
                    "error": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Generate dashboard",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/run": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "runDashboard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "spec": {}
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "generated_at": {},
                    "spec": {},
                    "tiles": {
                      "items": {
                        "$ref": "#/components/schemas/TileResult"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Run dashboard",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/saved": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "listSaved",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "dashboards": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List saved",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      },
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "createSaved",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create saved",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/saved/{id}": {
      "delete": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "deleteSaved",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Delete saved",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      },
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "getSaved",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get saved",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      },
      "put": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "updateSaved",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Update saved",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/dashboards/status": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "statusBoard",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cadence_note": {},
                    "destinations": {},
                    "generated_at": {},
                    "routes": {},
                    "summary": {
                      "properties": {
                        "destinations_down": {},
                        "down": {},
                        "held": {},
                        "quiet": {},
                        "up": {}
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Status board",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/database/dry-run": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`, `payload:read`.",
        "operationId": "databaseDryRun",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "executions": {
                      "items": {},
                      "type": "array"
                    },
                    "values_included": {},
                    "written": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Database dry run",
        "tags": [
          "database"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/database.go"
      }
    },
    "/admin/v1/database/preview": {
      "post": {
        "description": "Permissions checked: `config:write`, `payload:read`.",
        "operationId": "databasePreview",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "columns": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "ok": {},
                        "rows": {},
                        "sample_message": {
                          "type": "string"
                        },
                        "truncated": {},
                        "values_included": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Database preview",
        "tags": [
          "database"
        ],
        "x-velacent-permissions": [
          "config:write",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/database.go"
      }
    },
    "/admin/v1/database/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "databaseTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "ok": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Database test",
        "tags": [
          "database"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/database.go"
      }
    },
    "/admin/v1/dictation": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "dictationInfo",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "max_bytes": {},
                    "max_seconds": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Dictation info",
        "tags": [
          "dictation"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/dictation.go"
      },
      "post": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "dictate",
        "parameters": [
          {
            "in": "query",
            "name": "field",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "text": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Dictate",
        "tags": [
          "dictation"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/dictation.go"
      }
    },
    "/admin/v1/directory": {
      "get": {
        "description": "Returns this organization's public provider directory listing (off by default), its state and the choices the form offers.\n\nPermissions checked: `config:history`.",
        "operationId": "getDirectory",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accepts": {},
                    "available": {},
                    "connect": {},
                    "listing": {
                      "$ref": "#/components/schemas/OrgdirListing"
                    },
                    "npi_lookup": {},
                    "practice_types": {},
                    "public_facts": {},
                    "published_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "states": {},
                    "status": {},
                    "suggested_accepts": {},
                    "sync_pending": {},
                    "synced_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns this organization's public provider directory listing (off by default), its state and the choices the form offers",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      },
      "put": {
        "description": "Saves the listing as a draft or publishes it to the public provider directory; the control plane verifies the NPIs and the website.\n\nPermissions checked: `config:write`.",
        "operationId": "putDirectory",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutDirectoryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "public": {},
                        "status": {},
                        "version": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "listed": {},
                        "listing": {},
                        "public": {},
                        "slug": {},
                        "status": {},
                        "threshold": {},
                        "version": {},
                        "website_basis": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "public": {},
                    "status": {},
                    "sync_pending": {},
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Saves the listing as a draft or publishes it to the public provider directory",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/connect": {
      "post": {
        "description": "Asks a listed organization to connect; its administrators are notified. Nothing about either side's endpoints, volumes or systems is shared.\n\nPermissions checked: `senders:write`.",
        "operationId": "connectDirectory",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "note": {
                    "type": "string"
                  },
                  "provider": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "request": {
                      "properties": {
                        "id": {},
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Asks a listed organization to connect",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/npi": {
      "post": {
        "description": "Checks an NPI's check digit and looks it up in the public NPPES registry to prefill the listing.\n\nPermissions checked: `config:write`.",
        "operationId": "directoryNPI",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "npi": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "message": {},
                        "valid": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "valid": {},
                        "verified": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "unavailable": {},
                        "valid": {},
                        "verified": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "message": {},
                        "org": {},
                        "valid": {},
                        "verified": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Checks an NPI's check digit and looks it up in the public NPPES registry to prefill the listing",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/requests": {
      "get": {
        "description": "Lists the connection requests sent to and by this organization through the directory.\n\nPermissions checked: `config:history`.",
        "operationId": "directoryRequests",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "requests": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Lists the connection requests sent to and by this organization through the directory",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/requests/{id}/decline": {
      "post": {
        "description": "Declines a connection request sent to this organization; the requester is not asked again for 30 days.\n\nPermissions checked: `senders:write`.",
        "operationId": "declineDirectory",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "declined": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Declines a connection request sent to this organization",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/search": {
      "get": {
        "description": "Searches the other organizations listed in the provider directory (public facts only).\n\nPermissions checked: `config:history`.",
        "operationId": "searchDirectory",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "providers": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Searches the other organizations listed in the provider directory (public facts only)",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/directory/withdraw": {
      "post": {
        "description": "Removes the listing from the public provider directory now.\n\nPermissions checked: `config:write`.",
        "operationId": "withdrawDirectory",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "public": {},
                        "status": {},
                        "version": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "public": {},
                        "removal_pending": {},
                        "status": {},
                        "version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Removes the listing from the public provider directory now",
        "tags": [
          "provider_directory"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/provider_directory.go"
      }
    },
    "/admin/v1/doc-rules": {
      "get": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:rules`.",
        "operationId": "docRulesList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "routes": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules list",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/doc-rules/{route}": {
      "get": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:rules`.",
        "operationId": "docRulesGet",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "history": {
                      "items": {},
                      "type": "array"
                    },
                    "options": {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    "route": {},
                    "rules": {
                      "$ref": "#/components/schemas/RuleSet"
                    },
                    "version": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules get",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      },
      "put": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:rules`.",
        "operationId": "docRulesPut",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules put",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/doc-rules/{route}/preview": {
      "post": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:inbox`, `documents:rules`.",
        "operationId": "docRulesPreview",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules preview",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:inbox",
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/doc-rules/{route}/rollback": {
      "post": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:rules`.",
        "operationId": "docRulesRollback",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "requeue": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules rollback",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/doc-rules/{route}/suggestions": {
      "get": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:rules`.",
        "operationId": "docRulesSuggestions",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "suggestions": {
                      "items": {},
                      "type": "array"
                    },
                    "threshold": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules suggestions",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/doc-rules/{route}/suggestions/{id}/{op}": {
      "post": {
        "description": "Review and value rules for documents read on a route.\n\nPermissions checked: `documents:inbox`, `documents:rules`.",
        "operationId": "docRulesSuggestionOp",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "dismissed": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Doc rules suggestion op",
        "tags": [
          "docrules"
        ],
        "x-velacent-permissions": [
          "documents:inbox",
          "documents:rules"
        ],
        "x-velacent-source": "internal/admin/docrules.go"
      }
    },
    "/admin/v1/ehr-kits": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "ehrKitList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "checker": {
                      "type": "boolean"
                    },
                    "kits": {
                      "items": {
                        "$ref": "#/components/schemas/EhrKitSummary"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Ehr kit list",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/ehr-kits/jwks": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "ehrKitJWKS",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JwksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "jwks": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Ehr kit j w k s",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/ehr-kits/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "ehrKitGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "badge": {},
                    "checker": {
                      "type": "boolean"
                    },
                    "kit": {
                      "$ref": "#/components/schemas/EhrkitKit"
                    },
                    "needed_scopes": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Ehr kit get",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/ehr-kits/{id}/check": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "ehrKitCheck",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EhrkitBinding"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ehr kit check",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/ehr-kits/{id}/render": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "ehrKitRender",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EhrkitBinding"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "file": {},
                    "rendered": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Ehr kit render",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/ehr-kits/{id}/synthetic": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "ehrKitSynthetic",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "messages": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "summary": "Ehr kit synthetic",
        "tags": [
          "ehrkits"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/ehrkits.go"
      }
    },
    "/admin/v1/empi/reviews": {
      "get": {
        "description": "Possible duplicate patients awaiting an administrator's decision.\n\nPermissions checked: `empi:review`, `patient:search`.",
        "operationId": "listReviews",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "reviews": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "List reviews",
        "tags": [
          "empi_review"
        ],
        "x-velacent-permissions": [
          "empi:review",
          "patient:search"
        ],
        "x-velacent-source": "internal/admin/empi_review.go"
      }
    },
    "/admin/v1/empi/reviews/{id}": {
      "post": {
        "description": "Possible duplicate patients awaiting an administrator's decision.\n\nPermissions checked: `empi:review`, `patient:search`.",
        "operationId": "resolveReview",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "decision": {},
                    "review": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Records an Administrator's decision",
        "tags": [
          "empi_review"
        ],
        "x-velacent-permissions": [
          "empi:review",
          "patient:search"
        ],
        "x-velacent-source": "internal/admin/empi_review.go"
      }
    },
    "/admin/v1/exports/sheets/config": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "sheetsConfig",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "client_id": {},
                    "scope": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Sheets config",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/exports/{format}": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "exportTable",
        "parameters": [
          {
            "in": "path",
            "name": "format",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "access_token": {
                    "type": "string"
                  },
                  "table": {
                    "$ref": "#/components/schemas/ExportTableJSON"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              },
              "application/pdf": {
                "schema": {}
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Export table",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/external-empi": {
      "get": {
        "description": "Shows the connector's configuration (no secrets) and\nstate: breaker, cache, request and failure counts.\n\nPermissions checked: `metrics:read`.",
        "operationId": "externalEMPIStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Shows the connector's configuration (no secrets) and state",
        "tags": [
          "extempi"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/extempi.go"
      }
    },
    "/admin/v1/fax": {
      "get": {
        "description": "Permissions checked: `config:history`, `config:write`.",
        "operationId": "faxOverview",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accounts": {},
                    "connections": {
                      "items": {
                        "$ref": "#/components/schemas/FaxHealthView"
                      },
                      "type": "array"
                    },
                    "countries": {},
                    "issues": {},
                    "jobs": {
                      "items": {
                        "$ref": "#/components/schemas/FaxoutJobRecord"
                      },
                      "type": "array"
                    },
                    "limit": {},
                    "numbers": {},
                    "ports": {},
                    "received": {
                      "items": {
                        "$ref": "#/components/schemas/DbInboundView"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax overview",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:history",
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax-log/bad-numbers": {
      "get": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogBadNumbers",
        "parameters": [
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "numbers": {
                      "items": {
                        "$ref": "#/components/schemas/DbBadNumber"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log bad numbers",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/bad-numbers/{number}/clear": {
      "post": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogClearNumber",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cleared": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log clear number",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/corrections": {
      "get": {
        "description": "Permissions checked: `fax:log`, `fax:resend`.",
        "operationId": "faxCorrectionList",
        "parameters": [
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "corrections": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax correction list",
        "tags": [
          "faxcorrect"
        ],
        "x-velacent-permissions": [
          "fax:log",
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/faxcorrect.go"
      },
      "post": {
        "description": "Permissions checked: `fax:resend`.",
        "operationId": "faxCorrectionApply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "type": "string"
                  },
                  "new": {
                    "type": "string"
                  },
                  "old": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Fax correction apply",
        "tags": [
          "faxcorrect"
        ],
        "x-velacent-permissions": [
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/faxcorrect.go"
      }
    },
    "/admin/v1/fax-log/corrections/preview": {
      "post": {
        "description": "Permissions checked: `fax:resend`.",
        "operationId": "faxCorrectionPreview",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "old": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "destinations": {},
                    "destinations_outside_scope": {},
                    "faxes": {},
                    "held_or_retrying": {},
                    "old_masked": {},
                    "organization_wide": {},
                    "waiting": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax correction preview",
        "tags": [
          "faxcorrect"
        ],
        "x-velacent-permissions": [
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/faxcorrect.go"
      }
    },
    "/admin/v1/fax-log/corrections/{id}/undo": {
      "post": {
        "description": "Permissions checked: `fax:resend`.",
        "operationId": "faxCorrectionUndo",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax correction undo",
        "tags": [
          "faxcorrect"
        ],
        "x-velacent-permissions": [
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/faxcorrect.go"
      }
    },
    "/admin/v1/fax-log/inbound": {
      "get": {
        "description": "Permissions checked: `documents:inbox`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogInbound",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "entries": {
                      "items": {
                        "$ref": "#/components/schemas/DbInboundLogEntry"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log inbound",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [
          "documents:inbox"
        ],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/inbound/{id}/{op}": {
      "post": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogInboundOp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log inbound op",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/outbound": {
      "get": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogOutbound",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "entries": {
                      "items": {
                        "$ref": "#/components/schemas/OutboundView"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log outbound",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/outbound/{key}/attempts": {
      "get": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogAttempts",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "attempts": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log attempts",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/outbound/{key}/document": {
      "get": {
        "description": "Returns what was sent (decided: fax:resend only, needed\nto verify a fax before resending it), audited at NOTICE first.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogDocument",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "i",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Gone"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns what was sent (decided: fax:resend only, needed to verify a fax before resending it), audited at NOTICE first",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/outbound/{key}/misdirected": {
      "post": {
        "description": "Starts the documented incident path for a fax that may\nhave reached a wrong number (docs/INCIDENT_RESPONSE.md): audited and\nhanded to the Privacy Officer through the incident intake.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogMisdirected",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "next": {
                      "type": "string"
                    },
                    "reported": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Starts the documented incident path for a fax that may have reached a wrong number (docs/INCIDENT_RESPONSE.md)",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/outbound/{key}/resend": {
      "post": {
        "description": "Resends a fax, to the same number or a corrected one, and\noptionally updates the destination's saved number (fax:resend, within\nscope; that field only). Safeguards: validation, the US/Canada default,\na new number confirmed (typed again, or its last four digits), the\ndaily page cap at send, idempotent per request_id, 30 an hour per person,\naudited before effect with numbers masked.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogResend",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "recipient_name": {
                    "type": "string"
                  },
                  "request_id": {
                    "type": "string"
                  },
                  "save": {
                    "description": "also update the saved number (this fax only)",
                    "type": "boolean"
                  },
                  "scope": {
                    "description": "Scope: \"organization\" (the default for a corrected number) or \"this_fax\".",
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Resends a fax, to the same number or a corrected one, and optionally updates the destination's saved number (fax:resend, within scope; that field only)",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/saved-number/history": {
      "get": {
        "description": "Lists the versions of one destination's saved\nnumber (last four digits only in the list: the full number is shown to\nfax:resend holders, who are the only callers), newest first.\n\nPermissions checked: `fax:resend`.",
        "operationId": "faxSavedNumberHistory",
        "parameters": [
          {
            "in": "query",
            "name": "destination",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "versions": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the versions of one destination's saved number...",
        "tags": [
          "faxcorrect"
        ],
        "x-velacent-permissions": [
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/faxcorrect.go"
      }
    },
    "/admin/v1/fax-log/saved-number/revert": {
      "post": {
        "description": "Restores a destination's previous saved fax number\n(one step; that field only), audited.\n\nPermissions checked: `fax:resend`.",
        "operationId": "faxLogRevertNumber",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "Destination": {
                    "type": "string"
                  },
                  "Reason": {
                    "type": "string"
                  },
                  "Route": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "number_last4": {
                      "type": "string"
                    },
                    "reverted": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          }
        },
        "summary": "Restores a destination's previous saved fax number (one step; that field only), audited",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [
          "fax:resend"
        ],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax-log/summary": {
      "get": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "faxLogSummary",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alerts": {
                      "items": {},
                      "type": "array"
                    },
                    "flagged": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax log summary",
        "tags": [
          "clerical"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/clerical.go"
      }
    },
    "/admin/v1/fax/destination-check": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "faxDestinationCheck",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "account": {
                    "type": "string"
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Fax destination check",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/numbers": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "number": {
                    "type": "string"
                  },
                  "request_id": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "number": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax order",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/numbers/search": {
      "get": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxSearch",
        "parameters": [
          {
            "in": "query",
            "name": "area_code",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "available": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax search",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/numbers/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxNumberOp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "type": "string"
                  },
                  "target": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "pages": {},
                        "reason": {},
                        "status": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "number": {
                          "$ref": "#/components/schemas/FaxnumNumber"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax number op",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/ports": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxPortCreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FaxnumPortRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "guidance": {},
                    "loa_text": {},
                    "port": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax port create",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/ports/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`, `config:write`.",
        "operationId": "faxPortGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "guidance": {},
                    "loa_text": {},
                    "port": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax port get",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:history",
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/ports/{id}/loa": {
      "get": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxPortLOA",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Fax port l o a",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fax/ports/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "faxPortOp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "invoice_pdf": {
                    "description": "base64, optional",
                    "type": "string"
                  },
                  "signature": {
                    "$ref": "#/components/schemas/FaxnumSignature"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "guidance": {},
                    "port": {
                      "$ref": "#/components/schemas/FaxnumPort"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Fax port op",
        "tags": [
          "fax"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/fax.go"
      }
    },
    "/admin/v1/fhir/sources": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listFHIRSources",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "available": {},
                        "sources": {
                          "items": {
                            "$ref": "#/components/schemas/DbFHIRSourceState"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "available": {},
                        "sources": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List f h i r sources",
        "tags": [
          "fhirsources"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/fhirsources.go"
      }
    },
    "/admin/v1/flags": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listFlags",
        "parameters": [
          {
            "in": "query",
            "name": "org",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tenant",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "database": {},
                    "flags": {},
                    "org": {},
                    "tenant": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List flags",
        "tags": [
          "flags"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/flags.go"
      }
    },
    "/admin/v1/gcp-healthcare/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "gcpHealthcareTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Gcp healthcare test",
        "tags": [
          "gcphealth"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/gcphealth.go"
      }
    },
    "/admin/v1/hl7https/digest": {
      "post": {
        "description": "Permissions checked: `senders:write`.",
        "operationId": "hl7httpsDigest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "sha256": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Hl7https digest",
        "tags": [
          "hl7https"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/hl7https.go"
      }
    },
    "/admin/v1/hl7https/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "hl7httpsTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Hl7https test",
        "tags": [
          "hl7https"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/hl7https.go"
      }
    },
    "/admin/v1/incidents": {
      "get": {
        "description": "Permissions checked: `incident:manage`.",
        "operationId": "listIncidents",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "incidents": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List incidents",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      },
      "post": {
        "description": "Is the staff \"report an incident\" form. Any signed-in\nviewer may report; the report is audited before it is stored.\n\nPermissions checked: `incident:report`.",
        "operationId": "reportIncident",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportIncidentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "created": {},
                    "id": {},
                    "message": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is the staff \"report an incident\" form",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:report"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/incidents/alerts": {
      "post": {
        "description": "Receives a Cloud Monitoring notification through a\nPub/Sub push subscription (OIDC as a service account with viewer role).\n\nPermissions checked: `incident:report`.",
        "operationId": "alertIncident",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "created": {},
                    "id": {},
                    "message": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Receives a Cloud Monitoring notification through a Pub/Sub push subscription (OIDC as a service account with viewer role)",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:report"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/incidents/{id}": {
      "get": {
        "description": "Returns the review package: the record, its change log and\na timeline of what the audit trail says about its transactions, the\npolicy checklist, evidence holds and the drafted customer notice.\n\nPermissions checked: `incident:manage`.",
        "operationId": "getIncident",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "checklist": {},
                    "draft": {},
                    "holds": {},
                    "incident": {
                      "$ref": "#/components/schemas/IncidentJSON"
                    },
                    "notices": {
                      "items": {
                        "additionalProperties": {},
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "timeline": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns the review package",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      },
      "post": {
        "description": "Permissions checked: `incident:manage`.",
        "operationId": "updateIncident",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIncidentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Update incident",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/incidents/{id}/decision": {
      "post": {
        "description": "Permissions checked: `incident:manage`.",
        "operationId": "decideIncident",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecideIncidentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Decide incident",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/incidents/{id}/notices": {
      "post": {
        "description": "Records a customer notice the officer sent by hand\n(evidence for the 72-hour and 5-business-day clocks). Velacent Bridge does\nnot send it.\n\nPermissions checked: `incident:manage`.",
        "operationId": "noticeIncident",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoticeIncidentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Records a customer notice the officer sent by hand (evidence for the 72-hour and 5-business-day clocks)",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/incidents/{id}/release-holds": {
      "post": {
        "description": "Releases the evidence holds of a closed or notified\nincident: payload object holds are removed (the 30-day lifecycle then\napplies again) and the transactions may be archived.\n\nPermissions checked: `incident:manage`.",
        "operationId": "releaseIncidentHolds",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseHoldsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Releases the evidence holds of a closed or notified incident",
        "tags": [
          "incidents"
        ],
        "x-velacent-permissions": [
          "incident:manage"
        ],
        "x-velacent-source": "internal/admin/incidents.go"
      }
    },
    "/admin/v1/invitations": {
      "get": {
        "description": "Lists the provider invitations with their status, reminders and (for live connections) this month's usage against the free ceiling.\n\nPermissions checked: `config:history`.",
        "operationId": "listInvitations",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "available": {},
                        "invitations": {
                          "items": {
                            "$ref": "#/components/schemas/InvitationJSON"
                          },
                          "type": "array"
                        },
                        "scope": {},
                        "why": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "available": {},
                        "enabled": {},
                        "invitations": {},
                        "limit": {},
                        "live": {},
                        "max_reminders": {},
                        "organization_name": {},
                        "scope": {},
                        "terms_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the provider invitations with their status, reminders and (for live connections) this month's usage against the free ceiling",
        "tags": [
          "invitations"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/invitations.go"
      },
      "post": {
        "description": "Invites an organization that is not on Velacent Bridge to exchange messages with this one; its side is free. The single-use link is e-mailed to the recipient and never returned.\n\nPermissions checked: `senders:write`.",
        "operationId": "createInvitation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "invitation": {
                      "$ref": "#/components/schemas/InvitationJSON"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Invites an organization that is not on Velacent Bridge to exchange messages with this one",
        "tags": [
          "invitations"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/invitations.go"
      }
    },
    "/admin/v1/invitations/{id}/{op}": {
      "post": {
        "description": "Sends a reminder with a new link (op remind) or links the routes that carry the invited connection (op routes).\n\nPermissions checked: `senders:write`.",
        "operationId": "invitationAction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "routes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "invitation": {
                      "$ref": "#/components/schemas/InvitationJSON"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sends a reminder with a new link (op remind) or links the routes that carry the invited connection (op routes)",
        "tags": [
          "invitations"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/invitations.go"
      }
    },
    "/admin/v1/mappings": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listMappings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code_maps": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "code_sets": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "functions": {},
                    "mappings": {
                      "items": {
                        "$ref": "#/components/schemas/MappingSummary"
                      },
                      "type": "array"
                    },
                    "max_rules": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List mappings",
        "tags": [
          "mappings"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/mappings.go"
      }
    },
    "/admin/v1/mappings/preview": {
      "post": {
        "description": "Permissions checked: `config:write`, `payload:read`.",
        "operationId": "previewMapping",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewMappingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Preview mapping",
        "tags": [
          "mappings"
        ],
        "x-velacent-permissions": [
          "config:write",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/mappings.go"
      }
    },
    "/admin/v1/mappings/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`, `payload:read`.",
        "operationId": "getMapping",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code_maps": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "code_sets": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "editable": {},
                    "functions": {},
                    "max_rules": {},
                    "not_editable": {
                      "type": "string"
                    },
                    "parsed": {},
                    "samples": {},
                    "samples_visible": {
                      "type": "boolean"
                    },
                    "script": {
                      "$ref": "#/components/schemas/ScriptSummary"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get mapping",
        "tags": [
          "mappings"
        ],
        "x-velacent-permissions": [
          "config:history",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/mappings.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "putMapping",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutMappingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put mapping",
        "tags": [
          "mappings"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/mappings.go"
      }
    },
    "/admin/v1/messaging/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "messagingTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Messaging test",
        "tags": [
          "messaging"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/messaging.go"
      }
    },
    "/admin/v1/messaging/webhook-url": {
      "delete": {
        "description": "Destroys a pasted URL's version that no alert\nrule or notice route uses (a Replace or Remove the administrator did not\nsave, or a cancelled dialog).\n\n\tDELETE /admin/v1/messaging/webhook-url   administrator (config:write)\n\t     {\"webhook_url_secret\": \"projects/.../versions/N\"}\n\nPermissions checked: `config:write`.",
        "operationId": "messagingWebhookDelete",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "removed": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Destroys a pasted URL's version that no alert rule or notice route uses (a Replace or Remove the administrator did not save, or a cancelled dialog)",
        "tags": [
          "messaging"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/messaging.go"
      },
      "post": {
        "description": "Stores a webhook URL pasted in the console (alerts\nonly) as a Secret Manager version and returns the version name and the\nlast four characters; the URL itself is never stored in the\nconfiguration, logged, audited or returned.\n\n\tPOST /admin/v1/messaging/webhook-url   administrator (config:write)\n\t     {\"platform\": \"microsoft_teams\"|\"slack\"|\"google_chat\", \"url\": \"https://...\"}\n\t     -\u003e {\"webhook_url_secret\": \"projects/.../versions/N\", \"webhook_url_last4\": \"abcd\"}\n\nPermissions checked: `config:write`.",
        "operationId": "messagingWebhookPut",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "webhook_url_last4": {},
                    "webhook_url_secret": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Stores a webhook URL pasted in the console (alerts only) as a Secret Manager version and returns the version name and the last four characters",
        "tags": [
          "messaging"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/messaging.go"
      }
    },
    "/admin/v1/metrics": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "metrics",
        "parameters": [
          {
            "in": "query",
            "name": "bucket",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "window",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Metrics",
        "tags": [
          "metrics"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/metrics.go"
      }
    },
    "/admin/v1/migrate/imports": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listImports",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "imports": {},
                    "translation_available": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List imports",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "createImport",
        "parameters": [
          {
            "in": "query",
            "name": "engine",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create import",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      }
    },
    "/admin/v1/migrate/imports/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "getImport",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get import",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      }
    },
    "/admin/v1/migrate/imports/{id}/cancel": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "cancelImport",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cancel import",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      }
    },
    "/admin/v1/migrate/imports/{id}/translate": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "translateImport",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "max_rounds": {
                    "type": "integer"
                  },
                  "parallel_run": {
                    "type": "string"
                  },
                  "scripts": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Translate import",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      }
    },
    "/admin/v1/migrate/mirth": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "migrateMirth",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Migrate mirth",
        "tags": [
          "migrate"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/migrate.go"
      }
    },
    "/admin/v1/network": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "networkStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Network status",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/connections": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_connection_request",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: connection request",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/connections/{id}": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "networkConnection",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Network connection",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/network.go"
      },
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_connection_action",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: connection action",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/connections/{id}/consent-revocations": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_consent_revocation",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: consent revocation",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/directory": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "networkDirectory",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "entries": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Network directory",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/enabled": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_enabled",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: enabled",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/joins": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "networkJoins",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Network joins",
        "tags": [
          "partner_join"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/partner_join.go"
      }
    },
    "/admin/v1/network/joins/redeem": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "networkJoinRedeem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network join redeem",
        "tags": [
          "partner_join"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/partner_join.go"
      }
    },
    "/admin/v1/network/joins/{id}/connect": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "networkJoinConnect",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accept_terms_version": {
                    "type": "string"
                  },
                  "attest": {
                    "type": "boolean"
                  },
                  "purposes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "connection": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network join connect",
        "tags": [
          "partner_join"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/partner_join.go"
      }
    },
    "/admin/v1/network/listing": {
      "put": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_listing_put",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: listing put",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/listing/authorizations/{npi}": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_authorization_upload",
        "parameters": [
          {
            "in": "path",
            "name": "npi",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: authorization upload",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/listing/domains/{domain}/verify": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_domain_verify",
        "parameters": [
          {
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: domain verify",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/network/terms": {
      "post": {
        "description": "Handles every change: authorize, audit, then act.\n\nPermissions checked: `config:write`.",
        "operationId": "networkChangeNetwork_terms_accept",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Network: terms accept",
        "tags": [
          "network"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/network.go"
      }
    },
    "/admin/v1/object-storage/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "objectStorageTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Object storage test",
        "tags": [
          "objstore"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/objstore.go"
      }
    },
    "/admin/v1/ocr/reviews": {
      "get": {
        "description": "Documents awaiting review and a reviewer's decisions.\n\nPermissions checked: `documents:inbox`.",
        "operationId": "ocrQueue",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "documents": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Lists documents awaiting review with their extracted fields (PHI)",
        "tags": [
          "ocr"
        ],
        "x-velacent-permissions": [
          "documents:inbox"
        ],
        "x-velacent-source": "internal/admin/ocr.go"
      }
    },
    "/admin/v1/ocr/{id}": {
      "post": {
        "description": "Documents awaiting review and a reviewer's decisions.\n\nPermissions checked: `documents:review`.",
        "operationId": "ocrDecide",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OcrDecision"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "decision": {},
                        "transaction_id": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "decision": {},
                        "transaction_id": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Records a reviewer's decision",
        "tags": [
          "ocr"
        ],
        "x-velacent-permissions": [
          "documents:review"
        ],
        "x-velacent-source": "internal/admin/ocr.go"
      }
    },
    "/admin/v1/ocr/{id}/document": {
      "get": {
        "description": "Documents awaiting review and a reviewer's decisions.\n\nPermissions checked: `documents:inbox`.",
        "operationId": "ocrDocument",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {},
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Returns the original document (PDF or TIFF) for a reviewer",
        "tags": [
          "ocr"
        ],
        "x-velacent-permissions": [
          "documents:inbox"
        ],
        "x-velacent-source": "internal/admin/ocr.go"
      }
    },
    "/admin/v1/ocr/{id}/numbers": {
      "get": {
        "description": "Permissions checked: `documents:inbox`.",
        "operationId": "ocrNumbers",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "numbers": {
                          "items": {
                            "$ref": "#/components/schemas/NumberCheck"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "numbers": {
                          "items": {},
                          "type": "array"
                        },
                        "patient_matched": {
                          "type": "boolean"
                        },
                        "providers_matched": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ocr numbers",
        "tags": [
          "numbercheck"
        ],
        "x-velacent-permissions": [
          "documents:inbox"
        ],
        "x-velacent-source": "internal/admin/numbercheck.go"
      }
    },
    "/admin/v1/ocr/{id}/split": {
      "get": {
        "description": "The page split of a received file, for the page editor.\n\nPermissions checked: `documents:inbox`.",
        "operationId": "splitView",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "basis": {},
                    "boundaries": {},
                    "doc_types": {},
                    "documents": {},
                    "file_pages": {},
                    "file_transaction_id": {
                      "type": "integer"
                    },
                    "orphans": {},
                    "pages": {},
                    "patients": {
                      "items": {},
                      "type": "array"
                    },
                    "reasons": {},
                    "status": {},
                    "version": {}
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Returns the file's pages and its split for the editor",
        "tags": [
          "docsplit"
        ],
        "x-velacent-permissions": [
          "documents:inbox"
        ],
        "x-velacent-source": "internal/admin/docsplit.go"
      },
      "post": {
        "description": "The page split of a received file, for the page editor.\n\nPermissions checked: `documents:review`.",
        "operationId": "splitDecide",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SplitDecision"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "documents": {},
                    "file_transaction_id": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Records a clerk's split (applied by the broker)",
        "tags": [
          "docsplit"
        ],
        "x-velacent-permissions": [
          "documents:review"
        ],
        "x-velacent-source": "internal/admin/docsplit.go"
      }
    },
    "/admin/v1/offboarding": {
      "get": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "offboarding",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Offboarding",
        "tags": [
          "offboarding"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/offboarding.go"
      }
    },
    "/admin/v1/offboarding/exports/{name}": {
      "get": {
        "description": "A further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "offboardingExport",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              },
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Offboarding export",
        "tags": [
          "offboarding"
        ],
        "x-velacent-permissions": [],
        "x-velacent-source": "internal/admin/offboarding.go"
      }
    },
    "/admin/v1/onboarding": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "getOnboarding",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get onboarding",
        "tags": [
          "onboarding"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/onboarding.go"
      }
    },
    "/admin/v1/onboarding/plan": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "getGoLivePlan",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "max_days": {},
                    "min_days": {},
                    "nudges": {},
                    "plan": {
                      "$ref": "#/components/schemas/GolivePlan"
                    },
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get go live plan",
        "tags": [
          "golive_plan"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/golive_plan.go"
      }
    },
    "/admin/v1/onboarding/plan.csv": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "getGoLivePlanCSV",
        "responses": {
          "200": {
            "content": {
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get go live plan c s v",
        "tags": [
          "golive_plan"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/golive_plan.go"
      }
    },
    "/admin/v1/onboarding/plan/instructions": {
      "post": {
        "description": "Queues the fixed instructions for a milestone\n(reached by a confirmed card; the person's permissions apply again).\n\nPermissions checked: `dlq:retransmit`.",
        "operationId": "postGoLiveInstructions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoLiveInstructionsReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "at": {},
                    "milestone": {},
                    "queued": {},
                    "recipients": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Queues the fixed instructions for a milestone (reached by a confirmed card; the person's permissions apply again)",
        "tags": [
          "golive_plan"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/golive_plan.go"
      }
    },
    "/admin/v1/onboarding/plan/target": {
      "put": {
        "description": "Permissions checked: `config:write`, `senders:write`.",
        "operationId": "putGoLiveTarget",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoLiveTargetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "max_days": {},
                    "min_days": {},
                    "nudges": {},
                    "plan": {
                      "$ref": "#/components/schemas/GolivePlan"
                    },
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put go live target",
        "tags": [
          "golive_plan"
        ],
        "x-velacent-permissions": [
          "config:write",
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/golive_plan.go"
      }
    },
    "/admin/v1/onboarding/sample": {
      "post": {
        "description": "Creates the demo route (when missing) and sends the\nsample messages through it with the test panel's queue: tagged channel\n\"test\", never metered, never counted as real traffic.\n\nPermissions checked: `config:write`, `dlq:retransmit`.",
        "operationId": "onboardingSample",
        "parameters": [
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type_path",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "queued": {},
                    "route": {},
                    "transaction_ids": {},
                    "types": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Creates the demo route (when missing) and sends the sample messages through it with the test panel's queue",
        "tags": [
          "onboarding"
        ],
        "x-velacent-permissions": [
          "config:write",
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/onboarding.go"
      }
    },
    "/admin/v1/onboarding/steps/{id}": {
      "put": {
        "description": "Permissions checked: `config:write`, `senders:write`.",
        "operationId": "putOnboardingStep",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardingStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put onboarding step",
        "tags": [
          "onboarding"
        ],
        "x-velacent-permissions": [
          "config:write",
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/onboarding.go"
      }
    },
    "/admin/v1/openapi.json": {
      "get": {
        "description": "Serves the Admin API's OpenAPI 3.1 description. Any assigned\nrole (viewer and above); the same file is published with the\ndocumentation.\n\nPermissions checked: `transactions:read`.",
        "operationId": "openAPI",
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Serves the Admin API's OpenAPI 3.1 description",
        "tags": [
          "openapi"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/openapi.go"
      }
    },
    "/admin/v1/overview": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "overview",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Overview",
        "tags": [
          "overview"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/overview.go"
      }
    },
    "/admin/v1/parallel-runs": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "listRuns",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "runs": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List runs",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      },
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "createRun",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "getRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "effective_rules": {},
                    "gate": {},
                    "report": {},
                    "run": {
                      "$ref": "#/components/schemas/DbParallelRun"
                    },
                    "threshold": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/acks": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "runAcks",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "acks": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Run acks",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "ackRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ack run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/cancel": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "cancelRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cancel run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/candidate": {
      "put": {
        "description": "Replaces a draft parallel run's candidate and\ndestination map (validated like a new run's).\n\nPermissions checked: `dlq:retransmit`.",
        "operationId": "setRunCandidate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "candidate": {
                    "$ref": "#/components/schemas/ParallelrunCandidate"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "routes": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Replaces a draft parallel run's candidate and destination map (validated like a new run's)",
        "tags": [
          "engine_import"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/engine_import.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/diffs": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "runDiffs",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "destination",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "diffs": {},
                    "values_included": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Run diffs",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/diffs/values": {
      "post": {
        "description": "Shows the expected and actual values (message content):\npayload:read with a stated reason, audited at NOTICE before anything is\nreturned (fail closed), like a raw payload view.\n\nPermissions checked: `payload:read`.",
        "operationId": "runDiffValues",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiffValuesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "diffs": {},
                    "values_included": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Shows the expected and actual values (message content)",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/export.csv": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "exportRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Export run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/files": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "runFiles",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "files": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Run files",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/files/{name}": {
      "put": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "uploadRunFile",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "the rest of the path (may contain /)",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DbRunFile"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Upload run file",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/gate": {
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "setRunGate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "gate": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Set run gate",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/signoff": {
      "post": {
        "description": "Permissions checked: `config:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "signOffRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignOffRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sign off run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/parallel-runs/{id}/start": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "startRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Start run",
        "tags": [
          "parallelrun"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/parallelrun.go"
      }
    },
    "/admin/v1/partner-invites": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listInvites",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "default_hours": {},
                    "enabled": {},
                    "invites": {},
                    "issuance": {},
                    "join_offer": {},
                    "joins": {},
                    "max_hours": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List invites",
        "tags": [
          "partner_invites"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/partner_invites.go"
      },
      "post": {
        "description": "Permissions checked: `senders:write`.",
        "operationId": "createInvite",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "invite": {
                      "$ref": "#/components/schemas/InviteJSON"
                    },
                    "link_note": {},
                    "link_path": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create invite",
        "tags": [
          "partner_invites"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/partner_invites.go"
      }
    },
    "/admin/v1/partner-invites/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "getInvite",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get invite",
        "tags": [
          "partner_invites"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/partner_invites.go"
      }
    },
    "/admin/v1/partner-invites/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `senders:write`.",
        "operationId": "inviteAction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "invite": {
                          "$ref": "#/components/schemas/InviteJSON"
                        },
                        "link_path": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "invite": {
                          "$ref": "#/components/schemas/InviteJSON"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "invite": {
                          "$ref": "#/components/schemas/InviteJSON"
                        },
                        "routes": {
                          "items": {
                            "$ref": "#/components/schemas/SuggestedRoute"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Invite action",
        "tags": [
          "partner_invites"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/partner_invites.go"
      }
    },
    "/admin/v1/partners/prior-auth/discover": {
      "post": {
        "description": "Reads the payer's discovery document so a person can\ncopy its endpoints into empty settings (POST\n/admin/v1/partners/prior-auth/discover {\"base_url\", \"payer_id\"};\nconfig:write; audited before the call; no patient data).\n\nPermissions checked: `config:write`.",
        "operationId": "priorAuthDiscover",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriorAuthDiscovery"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Reads the payer's discovery document so a person can copy its endpoints into empty settings...",
        "tags": [
          "partner"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/partner.go"
      }
    },
    "/admin/v1/partners/prior-auth/updates": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "priorAuthUpdates",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "available": {},
                    "destinations": {
                      "items": {
                        "$ref": "#/components/schemas/PriorAuthUpdate"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Prior auth updates",
        "tags": [
          "partner"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/partner.go"
      }
    },
    "/admin/v1/partners/profiles": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "partnerProfiles",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "national_network": {},
                    "network_purposes": {
                      "additionalProperties": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "type": "object"
                    },
                    "prior_auth": {},
                    "purposes": {},
                    "tefca": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Partner profiles",
        "tags": [
          "partner"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/partner.go"
      }
    },
    "/admin/v1/partners/responders": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "respondersList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ResponderView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Responders list",
        "tags": [
          "responder"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/responder.go"
      }
    },
    "/admin/v1/partners/responders/{name}/activity": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "responderActivity",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {},
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Responder activity",
        "tags": [
          "responder"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/responder.go"
      }
    },
    "/admin/v1/partners/responders/{name}/attest": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "responderAttest",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "attests": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Responder attest",
        "tags": [
          "responder"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/responder.go"
      }
    },
    "/admin/v1/partners/responders/{name}/pause": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "responderPause",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "paused": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Responder pause",
        "tags": [
          "responder"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/responder.go"
      }
    },
    "/admin/v1/partners/test": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "partnerTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerTestResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Partner test",
        "tags": [
          "partner"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/partner.go"
      }
    },
    "/admin/v1/patient-erasures": {
      "get": {
        "description": "Permissions checked: `patient:erase`.",
        "operationId": "erasureList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "empi_notice": {},
                    "erasures": {},
                    "notice": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Erasure list",
        "tags": [
          "erasure"
        ],
        "x-velacent-permissions": [
          "patient:erase"
        ],
        "x-velacent-source": "internal/admin/erasure.go"
      },
      "post": {
        "description": "Permissions checked: `patient:erase`.",
        "operationId": "erasureRequest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "empi_notice": {},
                        "id": {},
                        "notice": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "empi_notice": {},
                        "id": {},
                        "job": {},
                        "notice": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Erasure request",
        "tags": [
          "erasure"
        ],
        "x-velacent-permissions": [
          "patient:erase"
        ],
        "x-velacent-source": "internal/admin/erasure.go"
      }
    },
    "/admin/v1/patient-erasures/preview": {
      "post": {
        "description": "Permissions checked: `patient:erase`.",
        "operationId": "erasurePreview",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Erasure preview",
        "tags": [
          "erasure"
        ],
        "x-velacent-permissions": [
          "patient:erase"
        ],
        "x-velacent-source": "internal/admin/erasure.go"
      }
    },
    "/admin/v1/patient-erasures/{id}": {
      "get": {
        "description": "Permissions checked: `patient:erase`.",
        "operationId": "erasureGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Erasure get",
        "tags": [
          "erasure"
        ],
        "x-velacent-permissions": [
          "patient:erase"
        ],
        "x-velacent-source": "internal/admin/erasure.go"
      }
    },
    "/admin/v1/patient-erasures/{id}/retry": {
      "post": {
        "description": "Restarts a failed erasure at the step that failed. Audited\n(database and stdout) before the change commits: fail closed.\n\nPermissions checked: `patient:erase`.",
        "operationId": "erasureRetry",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "id": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "id": {},
                        "job": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Restarts a failed erasure at the step that failed",
        "tags": [
          "erasure"
        ],
        "x-velacent-permissions": [
          "patient:erase"
        ],
        "x-velacent-source": "internal/admin/erasure.go"
      }
    },
    "/admin/v1/patient-transactions/search": {
      "post": {
        "description": "Permissions checked: `patient:search`, `transactions:read`.",
        "operationId": "patientTransactions",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "patient_ref": {},
                    "transactions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Patient transactions",
        "tags": [
          "patient"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/patient.go"
      }
    },
    "/admin/v1/prior-auth/requests": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "paRequests",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "available": {},
                    "requests": {
                      "items": {
                        "$ref": "#/components/schemas/PARequest"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Pa requests",
        "tags": [
          "priorauth_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/priorauth_actions.go"
      }
    },
    "/admin/v1/prior-auth/requests/{route}/{dest}/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "paRequest",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "dest",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "actions": {
                      "items": {
                        "$ref": "#/components/schemas/PAAct"
                      },
                      "type": "array"
                    },
                    "documentation": {
                      "items": {
                        "$ref": "#/components/schemas/PADoc"
                      },
                      "type": "array"
                    },
                    "request": {
                      "$ref": "#/components/schemas/PARequest"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Pa request",
        "tags": [
          "priorauth_actions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/priorauth_actions.go"
      }
    },
    "/admin/v1/prior-auth/requests/{route}/{dest}/{id}/items": {
      "get": {
        "description": "Shows the request's items as sent, to a person who may change\nthem: audited (NOTICE) before the buffered request is read.\n\nPermissions checked: `prior_auth:act`.",
        "operationId": "paItems",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "dest",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cancelled": {},
                    "items": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Shows the request's items as sent, to a person who may change them",
        "tags": [
          "priorauth_actions"
        ],
        "x-velacent-permissions": [
          "prior_auth:act"
        ],
        "x-velacent-source": "internal/admin/priorauth_actions.go"
      }
    },
    "/admin/v1/prior-auth/requests/{route}/{dest}/{id}/{op}": {
      "post": {
        "description": "Permissions checked: `prior_auth:act`.",
        "operationId": "paAction",
        "parameters": [
          {
            "in": "path",
            "name": "route",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "dest",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "action_id": {},
                    "state": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Pa action",
        "tags": [
          "priorauth_actions"
        ],
        "x-velacent-permissions": [
          "prior_auth:act"
        ],
        "x-velacent-source": "internal/admin/priorauth_actions.go"
      }
    },
    "/admin/v1/private-connectors": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "privateConnectorList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "connectors": {
                      "items": {
                        "$ref": "#/components/schemas/PrivateView"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Private connector list",
        "tags": [
          "private_connectors"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/private_connectors.go"
      }
    },
    "/admin/v1/private-connectors/{id}": {
      "delete": {
        "description": "Permissions checked: `connectors:private`.",
        "operationId": "privateConnectorDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "versions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Private connector delete",
        "tags": [
          "private_connectors"
        ],
        "x-velacent-permissions": [
          "connectors:private"
        ],
        "x-velacent-source": "internal/admin/private_connectors.go"
      }
    },
    "/admin/v1/private-connectors/{id}/versions/{version}": {
      "put": {
        "description": "Permissions checked: `connectors:private`.",
        "operationId": "privateConnectorInstall",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "version": {},
                    "visibility": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Private connector install",
        "tags": [
          "private_connectors"
        ],
        "x-velacent-permissions": [
          "connectors:private"
        ],
        "x-velacent-source": "internal/admin/private_connectors.go"
      }
    },
    "/admin/v1/private-listener": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "privateListenerGet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Private listener get",
        "tags": [
          "private_listener"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/private_listener.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "privateListenerPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Private listener post",
        "tags": [
          "private_listener"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/private_listener.go"
      }
    },
    "/admin/v1/profile-bindings": {
      "get": {
        "description": "Lists routes made from profiles and, per profile, the\nnewest version available: an upgrade is offered, never applied.\n\nPermissions checked: `config:history`.",
        "operationId": "profileBindings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bindings": {},
                    "upgrades": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists routes made from profiles and, per profile, the newest version available",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profile-drafts": {
      "post": {
        "description": "Builds a profile from configured routes: connection\ndetails, sender names and sample values are stripped; the publish checks\nrun so the preview shows what would be refused.\n\nPermissions checked: `config:write`.",
        "operationId": "profileDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {},
                    "stripped": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Builds a profile from configured routes",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profile-publications": {
      "post": {
        "description": "Signs a (previewed, possibly edited) profile file with\nthis organization's key and publishes it. The checks run here first, and\nagain in the registry.\n\nPermissions checked: `config:write`.",
        "operationId": "profilePublish",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Signs a (previewed, possibly edited) profile file with this organization's key and publishes it",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profileSearch",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "community_allowed": {
                      "type": "boolean"
                    },
                    "profiles": {},
                    "publishing": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile search",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles-mine": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profilesMine",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "issues": {},
                    "profiles": {},
                    "publishing": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Profiles mine",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profileVersions",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "versions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Profile versions",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/issues": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profileReport",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileIssueReport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile report",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/ratings": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profileRate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "stars": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile rate",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/versions/{version}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "profileDetail",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bound_routes": {
                      "items": {
                        "$ref": "#/components/schemas/ProfileBound"
                      },
                      "type": "array"
                    },
                    "entry": {},
                    "key_id": {},
                    "profile": {},
                    "prose": {
                      "type": "string"
                    },
                    "signature_verified": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Profile detail",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/versions/{version}/apply": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "profileApply",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "plan": {
                          "$ref": "#/components/schemas/ProfilePlan"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {},
                        "plan": {
                          "$ref": "#/components/schemas/ProfilePlan"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile apply",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/versions/{version}/deprecate": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "profileDeprecate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "note": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile deprecate",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/profiles/{id}/versions/{version}/plan": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "profilePlan",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "config_version": {},
                    "plan": {
                      "$ref": "#/components/schemas/ProfilePlan"
                    },
                    "validation_error": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Profile plan",
        "tags": [
          "profiles"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/profiles.go"
      }
    },
    "/admin/v1/promotion/package": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "promotionPackage",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotePackage"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Promotion package",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotion/settings": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "getPromotionSettings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "source_environment": {},
                    "target_environment": {},
                    "variables": {},
                    "version": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get promotion settings",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "putPromotionSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "variables": {
                    "items": {
                      "$ref": "#/components/schemas/PromoteVariable"
                    },
                    "type": "array"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "variables": {},
                    "version": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put promotion settings",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listPromotions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "promotions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List promotions",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "createPromotion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePromotionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "getPromotion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}/apply": {
      "post": {
        "description": "Permissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "applyPromotion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Apply promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}/approve": {
      "post": {
        "description": "Permissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "decidePromotion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Decide promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}/cancel": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "cancelPromotion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cancel promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}/reject": {
      "post": {
        "description": "Permissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "decidePromotion2",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Decide promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/promotions/{id}/rollback": {
      "post": {
        "description": "Permissions checked: `config:rollback`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "rollbackPromotion",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromotionStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Rollback promotion",
        "tags": [
          "promotions"
        ],
        "x-velacent-permissions": [
          "config:rollback"
        ],
        "x-velacent-source": "internal/admin/promotions.go"
      }
    },
    "/admin/v1/provider-directories/{id}/import": {
      "post": {
        "description": "ImportProviders: POST /admin/v1/provider-directories/{id}/import.\n\nPermissions checked: `config:write`.",
        "operationId": "importProviders",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "dry_run": {},
                        "preview": {
                          "additionalProperties": {},
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "ImportProviders",
        "tags": [
          "terminology"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/terminology.go"
      }
    },
    "/admin/v1/provider-directories/{id}/nppes-sync": {
      "post": {
        "description": "NppesSync: POST /admin/v1/provider-directories/{id}/nppes-sync.\n\nPermissions checked: `config:write`.",
        "operationId": "nppesSync",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "dry_run": {},
                        "preview": {
                          "additionalProperties": {},
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "report": {},
                        "unchanged": {}
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "NppesSync",
        "tags": [
          "terminology"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/terminology.go"
      }
    },
    "/admin/v1/publisher-page": {
      "put": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "publisherPageUpdate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentPublisherPageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {},
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Publisher page update",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/publisher-verification": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "vendorApplication",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "application": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Vendor application",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      },
      "post": {
        "description": "Permissions checked: `agents:publish`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "vendorApply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentVendorApplicationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "application": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {},
                    "issues": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor apply",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/publisher-verification/check": {
      "post": {
        "description": "Permissions checked: `agents:publish`.",
        "operationId": "vendorCheck",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "application": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor check",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "agents:publish"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/publishers/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "publisherPage",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "summary": "Publisher page",
        "tags": [
          "agent_remix"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/agent_remix.go"
      }
    },
    "/admin/v1/queue": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "queue",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Queue",
        "tags": [
          "metrics"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/metrics.go"
      }
    },
    "/admin/v1/ramps": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "listRamps",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "endpoint": {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    "ramps": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List ramps",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "createRamp",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "code_expires_at": {},
                    "endpoint": {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    "id": {
                      "type": "string"
                    },
                    "install": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create ramp",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      }
    },
    "/admin/v1/ramps/{id}": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "getRamp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "certificate_requests": {},
                    "config_history": {},
                    "device_sheets": {},
                    "endpoint": {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    "lan_access": {},
                    "ramp": {
                      "$ref": "#/components/schemas/RampView"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get ramp",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      }
    },
    "/admin/v1/ramps/{id}/code": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "newRampCode",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "code_expires_at": {},
                    "id": {},
                    "install": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "New ramp code",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      }
    },
    "/admin/v1/ramps/{id}/config": {
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "putRampConfig",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "it_action": {},
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put ramp config",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      }
    },
    "/admin/v1/ramps/{id}/revoke": {
      "post": {
        "description": "Ends a Ramp at once: its certificate digests are removed\nfrom its sender (refused from the next request), the Ramp is marked\nrevoked (deliveries to it dead-letter), and its certificates are\nrevoked at the CA.\n\nPermissions checked: `config:write`.",
        "operationId": "revokeRamp",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "status": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ends a Ramp at once",
        "tags": [
          "ramp"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/ramp.go"
      }
    },
    "/admin/v1/recipes": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeList",
        "parameters": [
          {
            "in": "query",
            "name": "any",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "destination",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "flow",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "mine",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "no_vendor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "recipes": {
                      "items": {
                        "$ref": "#/components/schemas/RecipeView"
                      },
                      "type": "array"
                    },
                    "systems": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe list",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/detail": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeDetail",
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "checklist": {},
                    "flow": {},
                    "golive_key": {},
                    "messages": {
                      "items": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "recipe": {
                      "$ref": "#/components/schemas/RecipeView"
                    },
                    "requests": {
                      "items": {
                        "$ref": "#/components/schemas/RecipeVendorRequest"
                      },
                      "type": "array"
                    },
                    "routes": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe detail",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/explain": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeExplain",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipePair"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alternatives": {
                      "items": {
                        "$ref": "#/components/schemas/RecipeView"
                      },
                      "type": "array"
                    },
                    "destination": {},
                    "mismatches": {},
                    "request": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "source": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe explain",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/flows": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeFlows",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "dependency_labels": {},
                    "evidence_labels": {},
                    "flows": {
                      "items": {
                        "additionalProperties": {},
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe flows",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/mine": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeMine",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "available": {},
                        "setups": {
                          "items": {},
                          "type": "array"
                        },
                        "systems": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "available": {},
                        "names": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "setups": {
                          "items": {},
                          "type": "array"
                        },
                        "systems": {},
                        "version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe mine",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/mine/steps": {
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "recipeMarkStep",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipeStepReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe mark step",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/mine/systems": {
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "recipeSetSystems",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipeSystemsReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe set systems",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/propose": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipePropose",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "flows": {},
                    "hint": {},
                    "recipes": {
                      "items": {
                        "$ref": "#/components/schemas/RecipeView"
                      },
                      "type": "array"
                    },
                    "systems": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe propose",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/setup": {
      "post": {
        "description": "Creates the recipe's routes, turned off with a test\ndestination and the intended destination kept on the recipe reference,\nand records the checklist. The person needs config:write: the same\npermission as creating a route by hand.\n\nPermissions checked: `config:write`.",
        "operationId": "recipeSetup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipeIDReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "checklist": {},
                    "disabled": {},
                    "next": {
                      "type": "string"
                    },
                    "path": {},
                    "recipe": {},
                    "routes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "steps": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Creates the recipe's routes, turned off with a test destination and the intended destination kept on the recipe reference, and records the checklist",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/systems": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "recipeSystems",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "systems": {
                      "items": {},
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Recipe systems",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/recipes/try": {
      "post": {
        "description": "Runs the recipe with simulated systems: synthetic messages\nthrough Velacent Bridge's own converters and checks. Nothing is stored, queued\nor sent and nothing is billed; the call is audited (the recipe ID only).\n\nPermissions checked: `metrics:read`.",
        "operationId": "recipeTry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipeIDReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Runs the recipe with simulated systems",
        "tags": [
          "recipes"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/recipes.go"
      }
    },
    "/admin/v1/replay-jobs": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "listReplayJobs",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "confirm_threshold": {},
                    "default_rate": {},
                    "jobs": {},
                    "max_messages": {},
                    "max_rate": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List replay jobs",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      },
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "createReplayJob",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayJobJSON"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create replay job",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      }
    },
    "/admin/v1/replay-jobs/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "getReplayJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "breakdown": {},
                    "confirm_required": {},
                    "confirm_threshold": {},
                    "job": {
                      "$ref": "#/components/schemas/ReplayJobJSON"
                    },
                    "sample": {
                      "items": {
                        "$ref": "#/components/schemas/ReplayItemJSON"
                      },
                      "type": "array"
                    },
                    "stale": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get replay job",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      }
    },
    "/admin/v1/replay-jobs/{id}/cancel": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "cancelReplayJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelReplayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayJobJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Cancel replay job",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      }
    },
    "/admin/v1/replay-jobs/{id}/items": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "replayJobItems",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "outcome",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/ReplayItemJSON"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Replay job items",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      }
    },
    "/admin/v1/replay-jobs/{id}/start": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "startReplayJob",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartReplayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayJobJSON"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Start replay job",
        "tags": [
          "bulkreplay"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/bulkreplay.go"
      }
    },
    "/admin/v1/reports/compliance": {
      "get": {
        "description": "Permissions checked: `audit:read`.",
        "operationId": "complianceReport",
        "parameters": [
          {
            "in": "query",
            "name": "frameworks",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "options",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "from": {},
                    "report": {},
                    "table": {
                      "$ref": "#/components/schemas/ExportTableJSON"
                    },
                    "to": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Compliance report",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "audit:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/compliance/frameworks": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "complianceFrameworks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "disclaimer": {},
                    "frameworks": {
                      "items": {
                        "additionalProperties": {},
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "mapping_version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Compliance frameworks",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/compliance/records": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "complianceRecord",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "description": "drill, training",
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "outcome": {
                    "description": "passed, failed, completed",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Compliance record",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/schedules": {
      "get": {
        "description": "Permissions checked: `audit:read`.",
        "operationId": "listSchedules",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "schedules": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List schedules",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "audit:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      },
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "addSchedule",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DbReportSchedule"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DbReportSchedule"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Add schedule",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/schedules/{id}": {
      "delete": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "deleteSchedule",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Delete schedule",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/sla": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "slaReport",
        "parameters": [
          {
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "commitment_pct": {},
                    "credit_pct": {},
                    "credited": {},
                    "downtime_minutes": {},
                    "edition": {},
                    "from": {},
                    "measured_at": {
                      "type": "string"
                    },
                    "month": {},
                    "routes": {},
                    "table": {
                      "$ref": "#/components/schemas/ExportTableJSON"
                    },
                    "to": {},
                    "uptime_pct": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sla report",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/reports/sla/downtime": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "recordDowntime",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "end": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "excluded": {
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "start": {
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Record downtime",
        "tags": [
          "dashboards"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/dashboards.go"
      }
    },
    "/admin/v1/sandbox": {
      "delete": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      },
      "get": {
        "description": "Permissions checked: `config:write`, `metrics:read`.",
        "operationId": "getSandbox",
        "parameters": [
          {
            "in": "query",
            "name": "watch",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get sandbox",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write",
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      },
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange2",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/dismiss": {
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange3",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/messages/{id}": {
      "get": {
        "description": "Shows a sandbox message's before and after: what the\nsimulated sender sent and what the receiving system got, with the\nconversion's warnings as findings Explain can explain. Synthetic content\nonly: a transaction that is not a simulated system's is refused, so this\nis never a way to read real messages (payload viewing stays its own\naudited grant).\n\nPermissions checked: `transactions:read`.",
        "operationId": "sandboxMessage",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Shows a sandbox message's before and after",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/pause": {
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange4",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/reset": {
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange5",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/resume": {
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange6",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/routes/{name}/copy": {
      "post": {
        "description": "Turns a sandbox route into a disabled real route\ntemplate: a route with the same match whose destination is a test\ndestination (it takes no part in live routing, so it is disabled) for the\ncustomer to point at their own system. Nothing synthetic is copied.\n\nPermissions checked: `config:write`.",
        "operationId": "sandboxCopyRoute",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "disabled": {},
                    "intended": {},
                    "match": {},
                    "next": {},
                    "path": {},
                    "route": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Turns a sandbox route into a disabled real route template",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/sandbox/tour/complete": {
      "post": {
        "description": "Handles one state change: create, reset, pause, resume,\nremove, dismiss and the tour's completion.\n\nPermissions checked: `config:write`.\n\nA further permission depends on the resource (for configuration, the write permission of its kind: `config:write`, or `senders:write` for senders).",
        "operationId": "sandboxChange7",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Handles one state change",
        "tags": [
          "sandbox"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/sandbox.go"
      }
    },
    "/admin/v1/scim": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "getSCIM",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get s c i m",
        "tags": [
          "scim"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/scim.go"
      }
    },
    "/admin/v1/scim/tokens": {
      "post": {
        "description": "Permissions checked: `users:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "createSCIMToken",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "endpoint_url": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "token": {},
                    "token_info": {
                      "$ref": "#/components/schemas/ScimTokenJSON"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create s c i m token",
        "tags": [
          "scim"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/scim.go"
      }
    },
    "/admin/v1/scim/tokens/{id}/revoke": {
      "post": {
        "description": "Permissions checked: `users:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "revokeSCIMToken",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "revoked": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Revoke s c i m token",
        "tags": [
          "scim"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/scim.go"
      }
    },
    "/admin/v1/scim/tokens/{id}/rotate": {
      "post": {
        "description": "Permissions checked: `users:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "createSCIMToken2",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "endpoint_url": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "token": {},
                    "token_info": {
                      "$ref": "#/components/schemas/ScimTokenJSON"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Create s c i m token",
        "tags": [
          "scim"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/scim.go"
      }
    },
    "/admin/v1/scripts": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "listScripts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "limits": {
                      "additionalProperties": {
                        "type": "integer"
                      },
                      "type": "object"
                    },
                    "scripts": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List scripts",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      }
    },
    "/admin/v1/scripts/{id}": {
      "get": {
        "description": "Permissions checked: `config:history`, `payload:read`.",
        "operationId": "getScript",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "limits": {
                      "additionalProperties": {
                        "type": "integer"
                      },
                      "type": "object"
                    },
                    "samples": {},
                    "samples_visible": {
                      "type": "boolean"
                    },
                    "script": {
                      "$ref": "#/components/schemas/ScriptSummary"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get script",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "config:history",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "putScript",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutScriptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put script",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      }
    },
    "/admin/v1/scripts/{id}/activate": {
      "post": {
        "description": "Permissions checked: `payload:read`, `scripts:activate`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "activateScript",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Activate script",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "payload:read",
          "scripts:activate"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      }
    },
    "/admin/v1/scripts/{id}/delete": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "deleteScript",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteScriptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    {
                      "properties": {
                        "config_version": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Delete script",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      }
    },
    "/admin/v1/scripts/{id}/test": {
      "post": {
        "description": "Permissions checked: `config:write`, `payload:read`.",
        "operationId": "testScript",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestScriptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestReport"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Test script",
        "tags": [
          "scripts"
        ],
        "x-velacent-permissions": [
          "config:write",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/scripts.go"
      }
    },
    "/admin/v1/security-pack": {
      "get": {
        "description": "Lists the files of the security review pack.\n\nPermissions checked: `metrics:read`.",
        "operationId": "securityPackList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "files": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Lists the files of the security review pack",
        "tags": [
          "securitypack"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/securitypack.go"
      }
    },
    "/admin/v1/security-pack/files/{name}": {
      "get": {
        "description": "Downloads one file of the pack as an attachment.\n\nPermissions checked: `metrics:read`.",
        "operationId": "securityPackFile",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Downloads one file of the pack as an attachment",
        "tags": [
          "securitypack"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/securitypack.go"
      }
    },
    "/admin/v1/security-pack/pack.zip": {
      "get": {
        "description": "Downloads every file of the pack as one zip.\n\nPermissions checked: `metrics:read`.",
        "operationId": "securityPackZip",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Downloads every file of the pack as one zip",
        "tags": [
          "securitypack"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/securitypack.go"
      }
    },
    "/admin/v1/senders/{id}/certificates/csr": {
      "post": {
        "description": "Signs a CSR made where the key lives (the browser, with\nWebCrypto, or the sender's own system). Recommended: the private key\nnever reaches Velacent Bridge.\n\nPermissions checked: `senders:write`.",
        "operationId": "issueFromCSR",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Signs a CSR made where the key lives (the browser, with WebCrypto, or the sender's own system)",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/senders/{id}/certificates/import": {
      "post": {
        "description": "Registers an externally issued certificate by its\ndigest (the chain must still verify against the broker's client CA\nbundle).\n\nPermissions checked: `senders:write`.",
        "operationId": "importCertificate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "not_after": {},
                    "sha256": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Registers an externally issued certificate by its digest (the chain must still verify against the broker's client CA bundle)",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/senders/{id}/certificates/pkcs12": {
      "post": {
        "description": "Generates the key on the server, has the CA sign it and\nreturns a PKCS#12 bundle with a one-time password, once. Neither the key\nnor the bundle nor the password is stored or logged; a lost bundle means\nissuing a new certificate.\n\nPermissions checked: `senders:write`.",
        "operationId": "issuePKCS12",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Generates the key on the server, has the CA sign it and returns a PKCS#12 bundle with a one-time password, once",
        "tags": [
          "certificates"
        ],
        "x-velacent-permissions": [
          "senders:write"
        ],
        "x-velacent-source": "internal/admin/certificates.go"
      }
    },
    "/admin/v1/service-status": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "get_admin_v1_service_status",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Handler",
        "tags": [
          "servicestatus"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/servicestatus.go"
      }
    },
    "/admin/v1/sso": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "getSSO",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get s s o",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/sso/connection": {
      "put": {
        "description": "Permissions checked: `users:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "putSSOConnection",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutSSORequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "enabled": {},
                    "version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put s s o connection",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/sso/metadata": {
      "post": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "readIdPMetadata",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "xml": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "idp_certificates": {},
                    "idp_entity_id": {},
                    "idp_sso_url": {},
                    "metadata_url": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          }
        },
        "summary": "Read id p metadata",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/sso/microsoft-tenant": {
      "post": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "detectMicrosoftTenant",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "domain": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "tenant_id": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          }
        },
        "summary": "Detect microsoft tenant",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/sso/test": {
      "post": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "startSSOTest",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {},
                    "url": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          }
        },
        "summary": "Start s s o test",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/sso/test/{id}": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "ssoTestResult",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "result": {},
                        "status": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sso test result",
        "tags": [
          "sso"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/sso.go"
      }
    },
    "/admin/v1/subscription": {
      "get": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "subscription",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "marketplace": {}
                      },
                      "type": "object"
                    },
                    {
                      "additionalProperties": {},
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Subscription",
        "tags": [
          "subscription"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/subscription.go"
      }
    },
    "/admin/v1/subscription/empi-ai-limit": {
      "get": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "empiAILimitGet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Empi a i limit get",
        "tags": [
          "empi_ai_limit"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/empi_ai_limit.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "empiAILimitPut",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Empi a i limit put",
        "tags": [
          "empi_ai_limit"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/empi_ai_limit.go"
      }
    },
    "/admin/v1/subscription/resume": {
      "post": {
        "description": "SubscriptionResume: an administrator resumes message intake after the\nsubscription was reactivated in place (re-subscribed inside the export\nwindow; docs/MARKETPLACE.md section 8). Audited before the control plane\nis asked (fail closed); intake resumes with the broker's next status push.\n\nPermissions checked: `config:write`.",
        "operationId": "subscriptionResume",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "resumed": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "SubscriptionResume",
        "tags": [
          "subscription"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/subscription.go"
      }
    },
    "/admin/v1/subscription/usage": {
      "get": {
        "description": "Is the drill-down of the tenant's own counters\n(messages, in and out, EMPI extras, Ask AI questions, dictation seconds) per day or\nper hour, within [from, to) (default: this month; at most 62 days).\n\nPermissions checked: `config:write`.",
        "operationId": "subscriptionUsage",
        "parameters": [
          {
            "in": "query",
            "name": "granularity",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is the drill-down of the tenant's own counters (messages, in and out, EMPI extras, Ask AI questions, dictation seconds) per day or per hour, within [from, to...",
        "tags": [
          "subscription"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/subscription.go"
      }
    },
    "/admin/v1/support": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "supportInfo",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chat": {},
                    "coach": {
                      "type": "boolean"
                    },
                    "edition": {
                      "type": "string"
                    },
                    "form": {},
                    "max_attachment_bytes": {},
                    "next_holiday": {},
                    "person": {
                      "type": "boolean"
                    },
                    "response_targets": {
                      "items": {
                        "$ref": "#/components/schemas/SupportTarget"
                      },
                      "type": "array"
                    },
                    "retention_days": {},
                    "voice": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Support info",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases": {
      "get": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportCases",
        "parameters": [
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cases": {},
                    "scope": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support cases",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      },
      "post": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportOpenForm",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportFormReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support open form",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/export.csv": {
      "get": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportExport",
        "parameters": [
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv; charset=utf-8": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support export",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportCase",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support case",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/attachments": {
      "post": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportAttach",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportAttachReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bytes": {},
                    "id": {},
                    "media_type": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unprocessable (invalid configuration or input)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support attach",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/attachments/{att}": {
      "get": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportAttachment",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "att",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/octet-stream": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support attachment",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/call-contact": {
      "put": {
        "description": "Sets the phone number Velacent Bridge may call about a case, the customer's consent and the do-not-call flag (the case's owner or an administrator).\n\nPermissions checked: `transactions:read`, `users:write`.",
        "operationId": "customerCallContact",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallContactReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "contact": {
                      "properties": {
                        "consent": {},
                        "do_not_call": {},
                        "has_phone": {},
                        "phone_hint": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sets the phone number Velacent Bridge may call about a case, the customer's consent and the do-not-call flag (the case's owner or an administrator)",
        "tags": [
          "support_call"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_call.go"
      }
    },
    "/admin/v1/support/cases/{id}/calls": {
      "get": {
        "description": "Lists the calls Velacent Bridge placed about a case, with the customer's own full notes, and the calling contact settings (the case's owner or an administrator).\n\nPermissions checked: `transactions:read`, `users:write`.",
        "operationId": "customerCalls",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "calls": {
                      "items": {
                        "$ref": "#/components/schemas/CustomerCallView"
                      },
                      "type": "array"
                    },
                    "can_change": {},
                    "contact": {
                      "additionalProperties": {},
                      "type": "object"
                    },
                    "enabled": {},
                    "text": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the calls Velacent Bridge placed about a case, with the customer's own full notes, and the calling contact settings (the case's owner or an administrator)",
        "tags": [
          "support_call"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_call.go"
      }
    },
    "/admin/v1/support/cases/{id}/csat": {
      "post": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportCSAT",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportCSATReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support c s a t",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/reopen": {
      "post": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportResolve",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportVersionReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support resolve",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/resolve": {
      "post": {
        "description": "Permissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportResolve2",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportVersionReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Support resolve",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/cases/{id}/ticket": {
      "get": {
        "description": "Permissions checked: `payload:read`, `transactions:read`, `users:write`.",
        "operationId": "ticketGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ticket get",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "payload:read",
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/cases/{id}/ticket/answer": {
      "post": {
        "description": "Permissions checked: `payload:read`, `transactions:read`, `users:write`.",
        "operationId": "ticketAnswerHTTP",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketAnswerReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ticket answer h t t p",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "payload:read",
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/cases/{id}/ticket/settings": {
      "post": {
        "description": "Permissions checked: `payload:read`, `transactions:read`, `users:write`.",
        "operationId": "ticketSettings",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketSettingsReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ticket settings",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "payload:read",
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/chat": {
      "post": {
        "description": "Answers one turn of a support conversation with the Help Agent.\n\nPermissions checked: `dlq:retransmit`, `transactions:read`, `users:write`.",
        "operationId": "supportChat",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupportChatReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Answers one turn of a support conversation with the Help Agent",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/coach": {
      "get": {
        "description": "Is the go-live briefing Help shows when it opens: where the\nplan stands and the next step for this person's role, what waits on\nothers and what is behind plan; inactive once the tenant is live.\n\nPermissions checked: `dlq:retransmit`, `transactions:read`.",
        "operationId": "supportCoach",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "enabled": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "coach": {
                          "$ref": "#/components/schemas/GoliveCoaching"
                        },
                        "enabled": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "coach": {
                          "$ref": "#/components/schemas/GoliveCoaching"
                        },
                        "enabled": {},
                        "instructions": {}
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is the go-live briefing Help shows when it opens",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/live": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "supportLive",
        "responses": {
          "200": {
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Support live",
        "tags": [
          "support"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support.go"
      }
    },
    "/admin/v1/support/operator/metrics": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "operatorMetrics",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportMetrics"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Operator metrics",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/operator/tickets": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "operatorTickets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "tickets": {
                      "items": {
                        "$ref": "#/components/schemas/SupportOperatorView"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Operator tickets",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/operator/tickets/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "operatorTicket",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportOperatorView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Operator ticket",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/operator/tickets/{id}/call": {
      "post": {
        "description": "Has the AI assistant call the customer about a ticket and connect the staff member (Velacent staff; the customer must have agreed to calls). Returns 202; follow progress with the calls list.\n\nPermissions checked: `transactions:read`.",
        "operationId": "operatorCall",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "call": {
                      "$ref": "#/components/schemas/OperatorCallView"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Has the AI assistant call the customer about a ticket and connect the staff member (Velacent staff; the customer must have agreed to calls)",
        "tags": [
          "support_call"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_call.go"
      }
    },
    "/admin/v1/support/operator/tickets/{id}/calls": {
      "get": {
        "description": "Lists the calls the assistant placed for a ticket and whether the button is available (Velacent staff). Notes are the de-identified operator copy.\n\nPermissions checked: `transactions:read`.",
        "operationId": "operatorCalls",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "calls": {},
                    "can_call": {},
                    "reason": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Lists the calls the assistant placed for a ticket and whether the button is available (Velacent staff)",
        "tags": [
          "support_call"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_call.go"
      }
    },
    "/admin/v1/support/operator/tickets/{id}/stage": {
      "post": {
        "description": "Moves a ticket by hand: audited, reason required, on\nthe PHI-free view only, through the same state machine (an operator can\nnever record the customer's confirmation or an evidence verification).\n\nPermissions checked: `transactions:read`.",
        "operationId": "operatorOverride",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorOverrideReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportOperatorView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Moves a ticket by hand",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/preferences": {
      "put": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "ticketPrefs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "stop_asking": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "stop_asking": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Ticket prefs",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/prompt": {
      "get": {
        "description": "Returns the single non-blocking confirmation prompt due at\nthis sign-in: the person's own ticket waiting for confirmation, never\nshown twice for one wait and never to someone who asked to stop being\nasked. Showing it is recorded.\n\nPermissions checked: `transactions:read`.",
        "operationId": "ticketPrompt",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "prompt": {}
                      },
                      "type": "object"
                    },
                    {
                      "properties": {
                        "prompt": {
                          "properties": {
                            "case": {},
                            "non_blocking": {},
                            "prefill": {},
                            "question": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns the single non-blocking confirmation prompt due at this sign-in",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/support/settings": {
      "get": {
        "description": "Reports the tenant-level setting: may the support\nassistant examine messages linked to a ticket (default on).\n\nPermissions checked: `transactions:read`, `users:write`.",
        "operationId": "supportSettingsGet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "assistant_content": {},
                    "can_change": {},
                    "label": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Reports the tenant-level setting",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "transactions:read",
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      },
      "put": {
        "description": "Turns the tenant-level setting on or off (administrators;\naudited, fail closed).\n\nPermissions checked: `users:write`.",
        "operationId": "supportSettingsPut",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "assistant_content": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "assistant_content": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Turns the tenant-level setting on or off (administrators; audited, fail closed)",
        "tags": [
          "support_ticket_http"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/support_ticket_http.go"
      }
    },
    "/admin/v1/terminology": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "terminologyStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Terminology status",
        "tags": [
          "terminology"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/terminology.go"
      }
    },
    "/admin/v1/test/dry-run": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`, `payload:read`.",
        "operationId": "dryRun",
        "parameters": [
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type_path",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Dry run",
        "tags": [
          "dryrun"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/dryrun.go"
      }
    },
    "/admin/v1/test/ocr": {
      "post": {
        "description": "A test read of a sample document.\n\nPermissions checked: `dlq:retransmit`, `payload:read`.",
        "operationId": "testOCR",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Test o c r",
        "tags": [
          "testocr"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/testocr.go"
      }
    },
    "/admin/v1/test/send": {
      "post": {
        "description": "Permissions checked: `dlq:retransmit`.",
        "operationId": "testSend",
        "parameters": [
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type_path",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "queued": {},
                    "queued_at": {},
                    "route": {},
                    "transaction_ids": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Test send",
        "tags": [
          "testsend"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/testsend.go"
      }
    },
    "/admin/v1/transactions": {
      "get": {
        "description": "Filters transaction metadata: from, to (RFC 3339),\nstatus, type, route, sender, destination (a name or \"route/destination\")\nand destination_status (a delivery status: e.g. dead_lettered finds\nmessages where any destination failed), before (an ID, for paging) and\nlimit.\n\nPermissions checked: `transactions:read`.",
        "operationId": "listTransactions",
        "parameters": [
          {
            "in": "query",
            "name": "destination",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "destination_status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "route",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sender",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Filters transaction metadata",
        "tags": [
          "transactions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/transactions.go"
      }
    },
    "/admin/v1/transactions/{id}": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "getTransaction",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get transaction",
        "tags": [
          "transactions"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/transactions.go"
      }
    },
    "/admin/v1/transactions/{id}/payload": {
      "post": {
        "description": "Returns a raw payload (PHI) to a holder of payload:read, with\na stated reason. The view is audited (database, and the stdout stream at\nNOTICE) before any content is returned; if the audit fails, nothing is\nshown.\n\nPermissions checked: `payload:read`.",
        "operationId": "viewPayload",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayloadViewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "payload_base64": {},
                    "reference": {},
                    "transaction_id": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Returns a raw payload (PHI) to a holder of payload:read, with a stated reason",
        "tags": [
          "transactions"
        ],
        "x-velacent-permissions": [
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/transactions.go"
      }
    },
    "/admin/v1/transactions/{id}/retransmit": {
      "post": {
        "description": "Re-injects a dead letter (RETRANSMIT). The operator never sees\nthe payload: the broker delivers the preserved DLQ copy server-side.\n\nPermissions checked: `dlq:retransmit`.",
        "operationId": "retransmit",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetransmitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "destinations": {},
                    "retransmission_id": {
                      "type": "integer"
                    },
                    "transaction_id": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Re-injects a dead letter (RETRANSMIT)",
        "tags": [
          "transactions"
        ],
        "x-velacent-permissions": [
          "dlq:retransmit"
        ],
        "x-velacent-source": "internal/admin/transactions.go"
      }
    },
    "/admin/v1/usage/events": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "postUIEvents",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unsupported Media Type"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Post u i events",
        "tags": [
          "ui_events"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/ui_events.go"
      }
    },
    "/admin/v1/usage/summary": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "getUsageSummary",
        "parameters": [
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "days": {},
                    "enabled": {
                      "type": "boolean"
                    },
                    "summary": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Get usage summary",
        "tags": [
          "ui_events"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/ui_events.go"
      }
    },
    "/admin/v1/users": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "listUsers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "users": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "List users",
        "tags": [
          "admin"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/admin.go"
      }
    },
    "/admin/v1/users/{subject}": {
      "put": {
        "description": "Permissions checked: `users:write`.\n\nWith customer SSO, requires a recent sign-in (re-authentication).",
        "operationId": "putUser",
        "parameters": [
          {
            "in": "path",
            "name": "subject",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserJSON"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Put user",
        "tags": [
          "admin"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/admin.go"
      }
    },
    "/admin/v1/users/{subject}/history": {
      "get": {
        "description": "Permissions checked: `users:write`.",
        "operationId": "userHistory",
        "parameters": [
          {
            "in": "path",
            "name": "subject",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "subject": {},
                    "versions": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "User history",
        "tags": [
          "admin"
        ],
        "x-velacent-permissions": [
          "users:write"
        ],
        "x-velacent-source": "internal/admin/admin.go"
      }
    },
    "/admin/v1/vendor-links": {
      "get": {
        "description": "Permissions checked: `developers:manage`, `transactions:read`.",
        "operationId": "vendorLinksList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "can_manage": {},
                    "hub": {},
                    "links": {},
                    "terms_version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor links list",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/query-systems": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "vendorQuerySystems",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "policies": {},
                    "served_types": {},
                    "systems": {
                      "items": {
                        "$ref": "#/components/schemas/QuerySystemView"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor query systems",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/requests": {
      "get": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorRequestsList",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "requests": {},
                    "terms_version": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor requests list",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/requests/{id}/accept": {
      "post": {
        "description": "Accepts a vendor's request with the scope the\nprovider chooses (never wider than requested), after the BAA\nattestation and the Vendor Hub Terms; it creates the link and its API\nclient (the vendor's registered public keys, production, bound to the\nlink) in one audited transaction.\n\nPermissions checked: `developers:manage`.",
        "operationId": "vendorRequestAccept",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "baa_attested": {
                    "type": "boolean"
                  },
                  "data_scopes": {
                    "description": "Partner FHIR access: the scopes granted (nil: read and search on\nevery type the vendor asked for), the query system and the patient\npolicy (default identifier_or_demographics).",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "patient_policy": {
                    "type": "string"
                  },
                  "purpose": {
                    "type": "string"
                  },
                  "query_system": {
                    "type": "string"
                  },
                  "receive_routes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "send_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "terms_version": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "client_id": {},
                    "endpoints": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "link": {
                      "$ref": "#/components/schemas/DbVendorLink"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Accepts a vendor's request with the scope the provider chooses (never wider than requested), after the BAA attestation and the Vendor Hub Terms",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/requests/{id}/decline": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorRequestDecline",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor request decline",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/{id}/activity": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "vendorLinkActivity",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "by_day": {},
                    "note": {
                      "type": "string"
                    },
                    "recent": {},
                    "requests": {
                      "type": "integer"
                    },
                    "resources_returned": {
                      "type": "integer"
                    },
                    "since": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link activity",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/{id}/approve-keys": {
      "post": {
        "description": "Approves the vendor's current keys for a link that\nrequires approval; the broker applies them at its next sync (within 5\nminutes).\n\nPermissions checked: `developers:manage`.",
        "operationId": "vendorLinkApproveKeys",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "applies_within": {
                      "type": "string"
                    },
                    "approved": {},
                    "link": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Approves the vendor's current keys for a link that requires approval",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/{id}/bulk": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkBulk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "all_patients": {
                    "type": "boolean"
                  },
                  "all_patients_confirm": {
                    "type": "string"
                  },
                  "bulk_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "freshness_hours": {
                    "type": "integer"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "applies": {
                      "type": "string"
                    },
                    "link": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link bulk",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      }
    },
    "/admin/v1/vendor-links/{id}/data-access": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkDataAccess",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "data_scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "patient_policy": {
                    "type": "string"
                  },
                  "query_system": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "applies": {
                      "type": "string"
                    },
                    "link": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link data access",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/{id}/exports": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "vendorLinkExports",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "exports": {},
                    "note": {
                      "type": "string"
                    },
                    "pulls": {
                      "type": "integer"
                    },
                    "resources_exported": {
                      "type": "integer"
                    },
                    "reused": {
                      "type": "integer"
                    },
                    "since": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link exports",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      }
    },
    "/admin/v1/vendor-links/{id}/exports/clear": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkExportsClear",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "applies": {
                      "type": "string"
                    },
                    "cleared": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link exports clear",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      }
    },
    "/admin/v1/vendor-links/{id}/groups": {
      "get": {
        "description": "Permissions checked: `transactions:read`.",
        "operationId": "vendorLinkGroups",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "groups": {
                      "items": {
                        "$ref": "#/components/schemas/GroupView"
                      },
                      "type": "array"
                    },
                    "max_groups": {},
                    "max_members": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link groups",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      },
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkGroupCreate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "patient_ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "provider_group": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "group": {
                      "$ref": "#/components/schemas/GroupView"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link group create",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      }
    },
    "/admin/v1/vendor-links/{id}/groups/{gid}": {
      "delete": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkGroupDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "gid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "deleted": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link group delete",
        "tags": [
          "devapi_bulk"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi_bulk.go"
      }
    },
    "/admin/v1/vendor-links/{id}/key-policy": {
      "post": {
        "description": "Sets whether the link requires this provider's\napproval when the vendor's keys change (default: the provider is told of\nevery change and the new keys apply at once). Audited before the\ncontrol plane is asked; nothing changes when the audit cannot be written.\n\nPermissions checked: `developers:manage`.",
        "operationId": "vendorLinkKeyPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "require_approval": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "link": {},
                    "require_key_approval": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Sets whether the link requires this provider's approval when the vendor's keys change...",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vendor-links/{id}/status": {
      "post": {
        "description": "Permissions checked: `developers:manage`.",
        "operationId": "vendorLinkStatus",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Conflict (changed since read, or a state conflict)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vendor link status",
        "tags": [
          "devapi"
        ],
        "x-velacent-permissions": [
          "developers:manage"
        ],
        "x-velacent-source": "internal/admin/devapi.go"
      }
    },
    "/admin/v1/vpn": {
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "vpnOverview",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "defaults": {
                      "properties": {
                        "bgp_ranges": {},
                        "cloud_asn": {},
                        "region": {}
                      },
                      "type": "object"
                    },
                    "key_storage": {},
                    "ports": {},
                    "proposal": {},
                    "ramp_available": {},
                    "service_account": {},
                    "service_attachment": {},
                    "sites": {},
                    "status_check": {},
                    "vendors": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn overview",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/vpn/gateway": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "vpnGateway",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "text": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cloud_public_ips": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "summary": "Vpn gateway",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/vpn/sites": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "vpnCreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VpnSiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn create",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/vpn/sites/{id}": {
      "delete": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "vpnDelete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "deleted": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn delete",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      },
      "get": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "vpnGet",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "vendor",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn get",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      },
      "put": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "vpnUpdate",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VpnSiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn update",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/vpn/sites/{id}/check": {
      "post": {
        "description": "Permissions checked: `config:history`.",
        "operationId": "vpnCheck",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "grant_command": {},
                    "report": {
                      "$ref": "#/components/schemas/VpnconfigReport"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn check",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:history"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/vpn/sites/{id}/keys": {
      "post": {
        "description": "Permissions checked: `config:write`.",
        "operationId": "vpnKeys",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VpnKeysRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "fingerprints": {},
                    "keys": {},
                    "shown_once": {},
                    "site": {
                      "$ref": "#/components/schemas/VpnSiteView"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Vpn keys",
        "tags": [
          "vpn"
        ],
        "x-velacent-permissions": [
          "config:write"
        ],
        "x-velacent-source": "internal/admin/vpn.go"
      }
    },
    "/admin/v1/whats-new": {
      "get": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "whatsNew",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {},
                    "server_state": {}
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Whats new",
        "tags": [
          "whatsnew"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/whatsnew.go"
      }
    },
    "/admin/v1/whats-new/read": {
      "post": {
        "description": "Permissions checked: `metrics:read`.",
        "operationId": "whatsNewRead",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Whats new read",
        "tags": [
          "whatsnew"
        ],
        "x-velacent-permissions": [
          "metrics:read"
        ],
        "x-velacent-source": "internal/admin/whatsnew.go"
      }
    },
    "/admin/v1/whoami": {
      "get": {
        "description": "Permissions checked: `patient:search`, `payload:read`.",
        "operationId": "whoami",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhoamiResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          }
        },
        "summary": "Whoami",
        "tags": [
          "admin"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "payload:read"
        ],
        "x-velacent-source": "internal/admin/admin.go"
      }
    },
    "/fhir/AuditEvent": {
      "get": {
        "description": "Is the GET search. An identifier in its URL is\nrefused on the console's session path (POST _search instead).\n\nPermissions checked: `audit:read`, `patient:search`, `transactions:read`.",
        "operationId": "fhirAuditEventsGET",
        "parameters": [
          {
            "in": "query",
            "name": "entity",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "entity.identifier",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "patient.identifier",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is the GET search",
        "tags": [
          "fhir_audit"
        ],
        "x-velacent-permissions": [
          "audit:read",
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/fhir_audit.go"
      }
    },
    "/fhir/AuditEvent/_search": {
      "post": {
        "description": "Is POST /fhir/AuditEvent/_search: the same search with\nthe parameters in a form body.\n\nPermissions checked: `audit:read`, `patient:search`, `transactions:read`.",
        "operationId": "fhirAuditEventsPOST",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "entity": {
                    "type": "string"
                  },
                  "entity.identifier": {
                    "type": "string"
                  },
                  "patient.identifier": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is POST /fhir/AuditEvent/_search",
        "tags": [
          "fhir_audit"
        ],
        "x-velacent-permissions": [
          "audit:read",
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/fhir_audit.go"
      }
    },
    "/fhir/Patient": {
      "get": {
        "description": "Is PDQm: GET /fhir/Patient with identifier\n(system|value; birthdate when there is no system, or for SSN), or\nfamily + given + birthdate, all exact. The URL is logged by the load\nbalancer, so the console's session path is refused here and uses POST\n/fhir/Patient/_search; the GET form stays for FHIR clients and service\ncallers (docs/SECURITY.md).\n\nPermissions checked: `patient:search`, `transactions:read`.",
        "operationId": "fhirPatientSearchGET",
        "parameters": [
          {
            "in": "query",
            "name": "birthdate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "family",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "given",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "identifier",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is PDQm",
        "tags": [
          "fhir_patient"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/fhir_patient.go"
      }
    },
    "/fhir/Patient/_search": {
      "post": {
        "description": "Is POST /fhir/Patient/_search: the same search, its\nparameters in a form body (application/x-www-form-urlencoded).\n\nPermissions checked: `patient:search`, `transactions:read`.",
        "operationId": "fhirPatientSearchPOST",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "birthdate": {
                    "type": "string"
                  },
                  "family": {
                    "type": "string"
                  },
                  "given": {
                    "type": "string"
                  },
                  "identifier": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is POST /fhir/Patient/_search",
        "tags": [
          "fhir_patient"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/fhir_patient.go"
      }
    },
    "/fhir/Patient/{id}": {
      "get": {
        "description": "Is GET /fhir/Patient/{id}, or the PIXm operation\nGET /fhir/Patient/$ihe-pix?sourceIdentifier=system|value[\u0026targetSystem=].\n\nPermissions checked: `patient:search`, `transactions:read`.",
        "operationId": "fhirPatientRead",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sourceIdentifier",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "targetSystem",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Authentication required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not permitted"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Unavailable (nothing was changed)"
          }
        },
        "summary": "Is GET /fhir/Patient/{id}, or the PIXm operation GET /fhir/Patient/$ihe-pix?sourceIdentifier=system|value[\u0026targetSystem=]",
        "tags": [
          "fhir_patient"
        ],
        "x-velacent-permissions": [
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/fhir_patient.go"
      }
    },
    "/fhir/Patient/{op}": {
      "post": {
        "description": "Possible duplicate patients awaiting an administrator's decision.\n\nPermissions checked: `empi:review`, `patient:search`, `transactions:read`.",
        "operationId": "fhirPatientOperation",
        "parameters": [
          {
            "in": "path",
            "name": "op",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {}
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/fhir+json": {
                "schema": {}
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Dispatches POST /fhir/Patient/$match and POST /fhir/Patient/$ihe-pix...",
        "tags": [
          "empi_review"
        ],
        "x-velacent-permissions": [
          "empi:review",
          "patient:search",
          "transactions:read"
        ],
        "x-velacent-source": "internal/admin/empi_review.go"
      }
    }
  },
  "security": [
    {
      "googleIdToken": []
    },
    {
      "iapAssertion": []
    },
    {
      "consoleSession": []
    }
  ],
  "servers": [
    {
      "description": "the tenant's console host (this description is served from it)",
      "url": "/"
    }
  ],
  "tags": [
    {
      "name": "admin"
    },
    {
      "name": "agent_outcomes"
    },
    {
      "name": "agent_remix"
    },
    {
      "name": "agent_testrun"
    },
    {
      "name": "agents"
    },
    {
      "name": "ai"
    },
    {
      "name": "ai_actions"
    },
    {
      "name": "ai_explain"
    },
    {
      "name": "auditlog"
    },
    {
      "name": "backup"
    },
    {
      "name": "bulkreplay"
    },
    {
      "name": "certificates"
    },
    {
      "name": "channels"
    },
    {
      "name": "claims_connections"
    },
    {
      "name": "clearinghouse"
    },
    {
      "name": "clerical"
    },
    {
      "name": "cloudfhir"
    },
    {
      "name": "confidential_docs"
    },
    {
      "name": "config"
    },
    {
      "name": "config_code"
    },
    {
      "name": "dashboards"
    },
    {
      "name": "database"
    },
    {
      "name": "devapi"
    },
    {
      "name": "devapi_bulk"
    },
    {
      "name": "dictation"
    },
    {
      "name": "docrules"
    },
    {
      "name": "docsplit"
    },
    {
      "name": "dryrun"
    },
    {
      "name": "ehrkits"
    },
    {
      "name": "empi_ai_limit"
    },
    {
      "name": "empi_review"
    },
    {
      "name": "engine_import"
    },
    {
      "name": "erasure"
    },
    {
      "name": "extempi"
    },
    {
      "name": "fax"
    },
    {
      "name": "faxcorrect"
    },
    {
      "name": "fhir_audit"
    },
    {
      "name": "fhir_patient"
    },
    {
      "name": "fhirsources"
    },
    {
      "name": "flags"
    },
    {
      "name": "gcphealth"
    },
    {
      "name": "golive_plan"
    },
    {
      "name": "hl7https"
    },
    {
      "name": "incidents"
    },
    {
      "name": "invitations"
    },
    {
      "name": "mappings"
    },
    {
      "name": "messaging"
    },
    {
      "name": "metrics"
    },
    {
      "name": "migrate"
    },
    {
      "name": "network"
    },
    {
      "name": "numbercheck"
    },
    {
      "name": "objstore"
    },
    {
      "name": "ocr"
    },
    {
      "name": "offboarding"
    },
    {
      "name": "onboarding"
    },
    {
      "name": "openapi"
    },
    {
      "name": "overview"
    },
    {
      "name": "parallelrun"
    },
    {
      "name": "partner"
    },
    {
      "name": "partner_invites"
    },
    {
      "name": "partner_join"
    },
    {
      "name": "patient"
    },
    {
      "name": "priorauth_actions"
    },
    {
      "name": "private_connectors"
    },
    {
      "name": "private_listener"
    },
    {
      "name": "profiles"
    },
    {
      "name": "promotions"
    },
    {
      "name": "provider_directory"
    },
    {
      "name": "ramp"
    },
    {
      "name": "recipes"
    },
    {
      "name": "responder"
    },
    {
      "name": "sandbox"
    },
    {
      "name": "scim"
    },
    {
      "name": "scripts"
    },
    {
      "name": "securitypack"
    },
    {
      "name": "servicestatus"
    },
    {
      "name": "sso"
    },
    {
      "name": "subscription"
    },
    {
      "name": "support"
    },
    {
      "name": "support_call"
    },
    {
      "name": "support_ticket_http"
    },
    {
      "name": "terminology"
    },
    {
      "name": "testocr"
    },
    {
      "name": "testsend"
    },
    {
      "name": "transactions"
    },
    {
      "name": "ui_events"
    },
    {
      "name": "vpn"
    },
    {
      "name": "whatsnew"
    }
  ]
}
