{
  "components": {
    "schemas": {
      "AgreementCatalogResponse": {
        "properties": {
          "agreements": {
            "items": {
              "$ref": "#/components/schemas/CatalogAgreement"
            },
            "type": "array"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          }
        },
        "required": [
          "referenced_at",
          "agreements"
        ],
        "type": "object"
      },
      "AgreementCatalogResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AgreementCatalogResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ApiKeyPrincipal": {
        "properties": {
          "accountable_auth_id": {
            "type": "string"
          },
          "api_key_id": {
            "type": "string"
          },
          "api_key_prefix": {
            "type": "string"
          },
          "data_delivery_access": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "managed_campaign_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "org_id": {
            "type": "string"
          },
          "principal": {
            "const": "api_key",
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "principal",
          "org_id",
          "api_key_id",
          "api_key_prefix",
          "accountable_auth_id",
          "scopes",
          "data_delivery_access",
          "managed_campaign_ids"
        ],
        "type": "object"
      },
      "ApplyResponse": {
        "properties": {
          "action": {
            "type": "string"
          },
          "action_id": {
            "type": "string"
          },
          "campaign_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "granted_to_key": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "in_progress_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "request_hash": {
            "type": "string"
          },
          "request_key": {
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "enum": [
              "in_progress",
              "succeeded",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "steps": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "uncertain_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "action_id",
          "action",
          "status",
          "request_key",
          "request_hash",
          "replayed"
        ],
        "type": "object"
      },
      "ApplyResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ApplyResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "AuthoredSemanticImpact": {
        "properties": {
          "changed_disclosure_terms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hard_rules": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "policy_version": {
            "type": "string"
          },
          "unclassified_paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "policy_version",
          "changed_disclosure_terms",
          "hard_rules",
          "unclassified_paths"
        ],
        "type": "object"
      },
      "BaseDescriptor": {
        "properties": {
          "file_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "spec_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object"
      },
      "CampaignApiErrorCode": {
        "enum": [
          "ACTION_IN_FLIGHT",
          "ACTION_LOOKUP_REQUIRED",
          "ACTION_NOT_FOUND",
          "ACTION_UNCERTAIN",
          "AGREEMENT_CATALOG_UNAVAILABLE",
          "AUDIT_SAMPLES_REQUIRED",
          "BASE_VERSION_STALE",
          "BUDGET_LOCKED_AFTER_DRAFT",
          "CAMPAIGN_BUDGET_EXHAUSTED",
          "CAMPAIGN_CLOSING",
          "CAMPAIGN_GRAPH_MALFORMED",
          "CAMPAIGN_GRAPH_NO_WORK_ORIGIN",
          "CAMPAIGN_GRAPH_UNAVAILABLE",
          "CAMPAIGN_GRAPH_UNKNOWN_NODE",
          "CAMPAIGN_HAS_NO_VERSION",
          "CAMPAIGN_ID_REQUIRED",
          "CAMPAIGN_NOT_FOUND",
          "CAMPAIGN_ROLE_INSUFFICIENT",
          "CAMPAIGN_VERSION_NOT_FOUND",
          "CANDIDATE_INVALID",
          "CANDIDATE_MALFORMED",
          "CANDIDATE_TOO_LARGE",
          "CATALOG_OWNER_UNAVAILABLE",
          "CHECK_NOT_RUNNABLE",
          "CHECK_RUNNER_UNAVAILABLE",
          "CLAIM_FUNDING_REQUIRED",
          "CLI_SESSION_NOT_PERMITTED",
          "CONTENT_IS_HISTORICAL",
          "COST_KEY_CAMPAIGN_REQUIRED",
          "COST_ORG_ROLE_REQUIRED",
          "COST_OWNER_UNAVAILABLE",
          "COST_QUERY_TOO_LARGE",
          "COST_WINDOW_INVALID",
          "COVER_FILE_UNUSABLE",
          "CURSOR_INVALID",
          "DATASET_INDEX_UNAVAILABLE",
          "DATASET_NOT_AVAILABLE",
          "DETAILS_INVALID",
          "DEVELOPER_NOT_ADMITTED",
          "DEVELOPER_SESSION_REQUIRED",
          "DISCLOSURE_LOCKED_AFTER_DRAFT",
          "EXECUTION_BINDING_AMBIGUOUS",
          "EXECUTION_BINDING_CONFLICT",
          "EXECUTION_BINDING_REQUIRED",
          "EXPECTED_BASE_ON_CREATE",
          "EXPECTED_SPEC_HASH_REQUIRED",
          "EXPECTED_VERSION_REQUIRED",
          "FILE_SERVICE_UNAVAILABLE",
          "KEY_CAMPAIGN_LIMIT_REACHED",
          "KEY_CAPABILITY_MISSING",
          "KEY_HAS_NO_ACCOUNTABLE_PERSON",
          "KEY_HAS_NO_CAMPAIGN_ALLOWLIST",
          "KEY_PRINCIPAL_INCOMPLETE",
          "LIMIT_OUT_OF_RANGE",
          "MASTER_AGREEMENT_MISSING",
          "MODE_UNSUPPORTED",
          "OBSERVATION_OWNER_DISAGREES",
          "OBSERVATION_OWNER_UNAVAILABLE",
          "OBSERVATION_REFUSED_BY_OWNER",
          "OBSERVATION_WINDOW_INVALID",
          "ORG_ID_REQUIRED",
          "ORG_MEMBERSHIP_REQUIRED",
          "ORG_MISMATCH",
          "PIPELINE_NOT_PROVISIONED",
          "PIPELINE_TEMPORARY_UNAVAILABLE",
          "PIPELINE_VERSION_NOT_FOUND",
          "PLATFORM_NOT_CONFIGURED",
          "PORTAL_SESSION_NOT_PERMITTED",
          "PROPOSAL_ALREADY_EXECUTED",
          "PROPOSAL_EXPIRED",
          "PROPOSAL_HASH_MISMATCH",
          "PROPOSAL_NOT_CONFIRMED",
          "PROPOSAL_NOT_FOUND",
          "PROPOSAL_OPEN_ALREADY",
          "PROPOSAL_REVOKED",
          "PROPOSAL_STALE",
          "REAPPROVAL_BUDGET_UNAVAILABLE",
          "REQUEST_KEY_REQUIRED",
          "REQUEST_KEY_REUSED",
          "REQUEST_KEY_SPENT",
          "REQUEST_MALFORMED",
          "REVIEW_OWNER_UNAVAILABLE",
          "REVIEW_RATING_INVALID",
          "REVIEW_REASON_REQUIRED",
          "SELF_IMPORT",
          "SETTINGS_UNCHANGED",
          "SLACK_BINDING_INACTIVE",
          "SLACK_BINDING_STORE_UNAVAILABLE",
          "SLACK_DELEGATION_INCOMPLETE",
          "SOURCE_HAS_NO_RECORDS",
          "SOURCE_PIPELINE_MISSING",
          "SOURCE_RECORDS_EMPTY",
          "SPEND_CAP_EXCEEDED",
          "SPEND_CAP_UNAVAILABLE",
          "STATUS_TRANSITION_INVALID",
          "SUBMISSION_ALREADY_DECIDED",
          "SUBMISSION_NOT_DECIDABLE",
          "SUBMISSION_NOT_DECIDED",
          "SUBMISSION_NOT_FOUND",
          "SUBMISSION_PAYOUT_LOCKED",
          "SUBMISSION_REVISION_CHANGED",
          "SUBMISSION_RULED_ON_APPEAL",
          "SUBMISSION_SAME_DECISION",
          "SUBMISSION_UNDER_DISPUTE",
          "TEMPLATE_INVALID",
          "TEMPLATE_KIND_IMMUTABLE",
          "TEMPLATE_MALFORMED",
          "TEMPLATE_NOT_EDITABLE",
          "TEMPLATE_NOT_FOUND",
          "TEMPLATE_STALE"
        ],
        "type": "string"
      },
      "CampaignBudgetSnapshot": {
        "properties": {
          "available_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "budget_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "escrow_locked_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "held_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "org_id": {
            "type": "string"
          },
          "refunded_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "released_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "unavailable_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "org_id",
          "budget_usd",
          "escrow_locked_usd",
          "held_usd",
          "available_usd",
          "released_usd",
          "refunded_usd",
          "unavailable_reason"
        ],
        "type": "object"
      },
      "CampaignBudgetSnapshotEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignBudgetSnapshot"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignCostResponse": {
        "properties": {
          "approved_record_count": {
            "type": "integer"
          },
          "billing": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "breakdown": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "by": {
            "enum": [
              "campaign",
              "step",
              "week",
              "month"
            ],
            "type": "string"
          },
          "campaign_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost_per_released_record_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "denominators": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "inclusion_rules": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "org_id": {
            "type": "string"
          },
          "reconciliation": {
            "additionalProperties": true,
            "type": "object"
          },
          "reviewed_submission_count": {
            "type": "integer"
          },
          "settlement_asset_totals": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "object"
          },
          "unavailable": {
            "additionalProperties": true,
            "type": "object"
          },
          "usd_split": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "window": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "org_id",
          "campaign_id",
          "by",
          "window",
          "settlement_asset_totals",
          "breakdown",
          "approved_record_count",
          "reviewed_submission_count",
          "cost_per_released_record_usd",
          "usd_split",
          "billing",
          "reconciliation",
          "denominators",
          "inclusion_rules",
          "unavailable"
        ],
        "type": "object"
      },
      "CampaignCostResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignCostResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignDetailsResponse": {
        "properties": {
          "brief": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "cover_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "map_sites": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CampaignMapSite"
                },
                "maxItems": 250,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "optional_academy_quiz": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OptionalAcademyQuizView"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "theme": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "theme_resolved": {
            "additionalProperties": true,
            "type": "object"
          },
          "tutorials": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CampaignTutorial"
            },
            "type": "array"
          }
        },
        "required": [
          "campaign_id",
          "status",
          "theme_resolved"
        ],
        "type": "object"
      },
      "CampaignDetailsResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignDetailsResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignDetailsTutorialBody": {
        "additionalProperties": false,
        "properties": {
          "order": {
            "default": 0,
            "minimum": 0,
            "type": "integer"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "default": "",
            "type": "string"
          },
          "video_url": {
            "type": "string"
          }
        },
        "required": [
          "video_url"
        ],
        "type": "object"
      },
      "CampaignDetailsUpdateBody": {
        "additionalProperties": false,
        "properties": {
          "brief": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_current_file_hash": {
            "anyOf": [
              {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_current_version_number": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_description_hash": {
            "anyOf": [
              {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "map_sites": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CampaignMapSite"
                },
                "maxItems": 250,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "optional_academy_quiz_version_id": {
            "anyOf": [
              {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "theme": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "tutorials": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CampaignDetailsTutorialBody"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "request_key"
        ],
        "type": "object"
      },
      "CampaignFileViolationCode": {
        "enum": [
          "AUDIT_CONFIG_INVALID",
          "AUDIT_CONTRACT_UNAVAILABLE",
          "AUDIT_REFERENCE_INVALID",
          "BUDGET_REQUIRED",
          "CAPABILITY_UNAVAILABLE",
          "CLINICAL_FORM_REQUIRED",
          "CLINICAL_WORKFLOW_UNAVAILABLE",
          "CURVE_MONOTONICITY",
          "CYCLE",
          "DUPLICATE_NODE_KEY",
          "DUPLICATE_PORT",
          "GATE_FANOUT_REQUIRES_SUPPLY_ENTRIES",
          "GATE_HAS_INBOUND",
          "GATE_INBOUND_UNSUPPORTED",
          "GATE_MUST_BE_ENTRY",
          "HOURLY_RATE_CONFLICT",
          "INVALID_BINDING",
          "INVALID_CLAIM_LIMIT",
          "INVALID_IDENTIFIER",
          "INVALID_MANUAL_ACCEPTANCE_TARGET",
          "INVALID_VALUE",
          "MANUAL_ACCEPTANCE_TARGET_REQUIRED",
          "MANUAL_ACCEPTANCE_TARGET_WITH_CONSENSUS",
          "MULTI_NEXT_UNSUPPORTED",
          "NON_JSON_KEY",
          "NON_JSON_VALUE",
          "NON_UPSTREAM_PRODUCER",
          "OUTPUT_SCHEMA_REQUIRED",
          "PORT_TYPE_MISMATCH",
          "PREMIUM_EXCEEDS_CAP",
          "REFERENCE_LISTING_UNAVAILABLE",
          "REQUIRED",
          "RESERVED_NODE_KEY",
          "REWARD_CAP_INVALID",
          "ROUTES_REQUIRED",
          "ROUTES_TYPE_ERROR",
          "ROUTE_ACTION_INVALID",
          "ROUTE_TARGET_UNKNOWN",
          "SERVER_ASSIGNED",
          "TEMPLATE_REF_MISMATCH",
          "TEMPLATE_UNAVAILABLE",
          "TIER_MONOTONICITY",
          "TIER_SCHEDULE_BOUNDS",
          "TIER_SCHEDULE_KEY",
          "TIER_SCHEDULE_LENGTH",
          "TYPE_ERROR",
          "UNKNOWN_NODE",
          "UNKNOWN_OUTPUT_FIELD",
          "UNKNOWN_PRODUCER",
          "UNKNOWN_PRODUCER_OUTPUT",
          "UNKNOWN_SECTION",
          "UNKNOWN_TARGET",
          "UNROUTABLE_EDGE",
          "UNSUPPORTED_FIELD",
          "UNSUPPORTED_VERSION"
        ],
        "type": "string"
      },
      "CampaignListResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "has_more": {
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CampaignSummary"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "org_id": {
            "type": "string"
          }
        },
        "required": [
          "items",
          "has_more",
          "count",
          "org_id"
        ],
        "type": "object"
      },
      "CampaignListResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignListResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignMapSite": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "directions": {
            "items": {
              "enum": [
                "buy",
                "sell"
              ],
              "type": "string"
            },
            "maxItems": 2,
            "type": "array"
          },
          "latitude": {
            "maximum": 90,
            "minimum": -90,
            "type": "number"
          },
          "longitude": {
            "maximum": 180,
            "minimum": -180,
            "type": "number"
          },
          "name": {
            "maxLength": 160,
            "minLength": 1,
            "type": "string"
          },
          "site_id": {
            "pattern": "^[a-zA-Z0-9_-]{1,80}$",
            "type": "string"
          }
        },
        "required": [
          "site_id",
          "name",
          "address",
          "latitude",
          "longitude"
        ],
        "type": "object"
      },
      "CampaignProgress": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "delivery": {
            "$ref": "#/components/schemas/ProgressDelivery"
          },
          "has_pipeline": {
            "type": "boolean"
          },
          "in_flight": {
            "$ref": "#/components/schemas/ProgressInFlight"
          },
          "participation": {
            "$ref": "#/components/schemas/ProgressParticipation"
          }
        },
        "required": [
          "campaign_id",
          "has_pipeline",
          "in_flight",
          "delivery",
          "participation"
        ],
        "type": "object"
      },
      "CampaignProgressEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignProgress"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignResponse": {
        "properties": {
          "campaign": {
            "$ref": "#/components/schemas/CampaignSummary"
          },
          "capabilities": {
            "$ref": "#/components/schemas/CapabilityFlags"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          }
        },
        "required": [
          "campaign",
          "capabilities"
        ],
        "type": "object"
      },
      "CampaignResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignSettingsResponse": {
        "properties": {
          "budget_usd": {
            "type": "number"
          },
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "type": "string"
          },
          "disagreements": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "escrow_locked_usd": {
            "type": "number"
          },
          "escrow_remaining_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "file_hash": {
            "default": "",
            "type": "string"
          },
          "file_version": {
            "default": 0,
            "type": "integer"
          },
          "publisher_alias_intro": {
            "default": "",
            "type": "string"
          },
          "publisher_alias_name": {
            "default": "",
            "type": "string"
          },
          "publisher_mode": {
            "enum": [
              "organization",
              "alias",
              "anonymous"
            ],
            "type": "string"
          },
          "requirements_revision": {
            "type": "integer"
          },
          "sensitivity": {
            "enum": [
              "public",
              "standard",
              "confidential"
            ],
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "visibility": {
            "enum": [
              "public",
              "private",
              "invite_only"
            ],
            "type": "string"
          }
        },
        "required": [
          "contract_version",
          "campaign_id",
          "status",
          "visibility",
          "sensitivity",
          "publisher_mode",
          "budget_usd",
          "escrow_locked_usd",
          "requirements_revision",
          "disagreements"
        ],
        "type": "object"
      },
      "CampaignSettingsResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CampaignSettingsResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CampaignSettingsUpdateBody": {
        "additionalProperties": false,
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "sensitivity": {
            "anyOf": [
              {
                "enum": [
                  "public",
                  "standard",
                  "confidential"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility": {
            "anyOf": [
              {
                "enum": [
                  "public",
                  "private",
                  "invite_only"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "request_key"
        ],
        "type": "object"
      },
      "CampaignSummary": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id"
        ],
        "type": "object"
      },
      "CampaignTutorial": {
        "properties": {
          "order": {
            "type": "integer"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "video_url": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "video_url",
          "order"
        ],
        "type": "object"
      },
      "CancelCheckEvaluationBody": {
        "additionalProperties": false,
        "properties": {
          "campaign_id": {
            "minLength": 1,
            "type": "string"
          },
          "evaluation_id": {
            "minLength": 1,
            "type": "string"
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "campaign_id",
          "evaluation_id",
          "request_key"
        ],
        "type": "object"
      },
      "CandidateApplyBody": {
        "properties": {
          "campaign_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidate": {
            "additionalProperties": true,
            "type": "object"
          },
          "expected_spec_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_version_number": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "enum": [
              "create",
              "update"
            ],
            "type": "string"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "candidate",
          "mode",
          "request_key"
        ],
        "type": "object"
      },
      "CandidateBody": {
        "properties": {
          "candidate": {
            "additionalProperties": true,
            "type": "object"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "candidate"
        ],
        "type": "object"
      },
      "CandidatePlanBody": {
        "properties": {
          "campaign_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidate": {
            "additionalProperties": true,
            "type": "object"
          },
          "expected_spec_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_version_number": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "enum": [
              "create",
              "update"
            ],
            "type": "string"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "candidate",
          "mode"
        ],
        "type": "object"
      },
      "CapabilityFlags": {
        "properties": {
          "author": {
            "type": "boolean"
          },
          "launch": {
            "type": "boolean"
          },
          "publish": {
            "type": "boolean"
          },
          "read": {
            "type": "boolean"
          }
        },
        "required": [
          "read",
          "author",
          "publish",
          "launch"
        ],
        "type": "object"
      },
      "CatalogAgreement": {
        "properties": {
          "agreement_id": {
            "type": "string"
          },
          "effective_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "agreement_id"
        ],
        "type": "object"
      },
      "CatalogNode": {
        "properties": {
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_params": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "examples": {
            "items": {
              "$ref": "#/components/schemas/CatalogNodeExample"
            },
            "type": "array"
          },
          "inputs_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "node_key": {
            "type": "string"
          },
          "outputs_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "params_schema": {
            "additionalProperties": true,
            "type": "object"
          },
          "run_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "step_presets": {
            "items": {
              "$ref": "#/components/schemas/CatalogStepPreset"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "node_key",
          "version",
          "params_schema",
          "examples"
        ],
        "type": "object"
      },
      "CatalogNodeExample": {
        "properties": {
          "params": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "params"
        ],
        "type": "object"
      },
      "CatalogResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "granted_scopes": {
            "$ref": "#/components/schemas/CapabilityFlags"
          },
          "supported_templates": {
            "items": {
              "$ref": "#/components/schemas/SupportedTemplate"
            },
            "type": "array"
          }
        },
        "required": [
          "supported_templates",
          "granted_scopes"
        ],
        "type": "object"
      },
      "CatalogResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CatalogResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CatalogStepPreset": {
        "properties": {
          "defaults": {
            "additionalProperties": true,
            "type": "object"
          },
          "key": {
            "type": "string"
          },
          "locked_fields": {
            "additionalProperties": true,
            "type": "object"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "version",
          "defaults",
          "locked_fields"
        ],
        "type": "object"
      },
      "ChangeOperation": {
        "properties": {
          "after": {},
          "before": {},
          "op": {
            "enum": [
              "add",
              "remove",
              "replace"
            ],
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "op",
          "path"
        ],
        "type": "object"
      },
      "CheckDryRunBody": {
        "additionalProperties": false,
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "checks": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "min_rating": {
            "default": 5,
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object"
          },
          "script": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "payload"
        ],
        "type": "object"
      },
      "CheckDryRunCheck": {
        "properties": {
          "check_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "detail": {},
          "on_fail": {
            "anyOf": [
              {
                "enum": [
                  "reject",
                  "downgrade"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "passed": {
            "type": "boolean"
          }
        },
        "required": [
          "passed",
          "detail",
          "check_kind",
          "on_fail"
        ],
        "type": "object"
      },
      "CheckDryRunReport": {
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "checks": {
            "additionalProperties": {
              "$ref": "#/components/schemas/CheckDryRunCheck"
            },
            "type": "object"
          },
          "min_rating": {
            "type": "integer"
          },
          "rating": {
            "type": "integer"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "accepted",
          "rating",
          "min_rating",
          "reason",
          "checks"
        ],
        "type": "object"
      },
      "CheckDryRunReportEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CheckDryRunReport"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CheckEvaluateBody": {
        "additionalProperties": false,
        "properties": {
          "campaign_id": {
            "minLength": 1,
            "type": "string"
          },
          "checks": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "double_check": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_outcome": {
            "enum": [
              "accepted",
              "rejected"
            ],
            "type": "string"
          },
          "min_rating": {
            "anyOf": [
              {
                "maximum": 5,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "payload": {
            "additionalProperties": true,
            "type": "object"
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "script": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "step_key": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "campaign_id",
          "step_key",
          "request_key",
          "payload",
          "expected_outcome"
        ],
        "type": "object"
      },
      "CheckEvaluationError": {
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "retryable"
        ],
        "type": "object"
      },
      "CheckEvaluationReadiness": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "launch_required": {
            "type": "boolean"
          },
          "ready": {
            "type": "boolean"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/CheckEvaluationStepReadiness"
            },
            "type": "array"
          }
        },
        "required": [
          "campaign_id",
          "enabled",
          "launch_required",
          "ready",
          "steps"
        ],
        "type": "object"
      },
      "CheckEvaluationReadinessEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CheckEvaluationReadiness"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CheckEvaluationReport": {
        "properties": {
          "accepted": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "checks": {
            "additionalProperties": true,
            "type": "object"
          },
          "config_fingerprint": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "deadline_at": {
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckEvaluationError"
              },
              {
                "type": "null"
              }
            ]
          },
          "evaluation_id": {
            "type": "string"
          },
          "evaluator_version": {
            "type": "string"
          },
          "expectation_matched": {
            "type": "boolean"
          },
          "expected_outcome": {
            "enum": [
              "accepted",
              "rejected"
            ],
            "type": "string"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "form_fingerprint": {
            "type": "string"
          },
          "min_rating": {
            "type": "integer"
          },
          "outcome": {
            "anyOf": [
              {
                "enum": [
                  "accepted",
                  "rejected",
                  "unavailable"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "runs": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "sample_digest": {
            "type": "string"
          },
          "schema_version": {
            "const": 2,
            "type": "integer"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "completed",
              "failed",
              "cancelled",
              "expired"
            ],
            "type": "string"
          },
          "step_key": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "required": [
          "schema_version",
          "evaluation_id",
          "campaign_id",
          "step_key",
          "status",
          "outcome",
          "accepted",
          "rating",
          "min_rating",
          "checks",
          "reason",
          "error",
          "expected_outcome",
          "expectation_matched",
          "config_fingerprint",
          "form_fingerprint",
          "sample_digest",
          "evaluator_version",
          "trace_id",
          "created_at",
          "started_at",
          "finished_at",
          "deadline_at"
        ],
        "type": "object"
      },
      "CheckEvaluationReportEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CheckEvaluationReport"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CheckEvaluationStepReadiness": {
        "properties": {
          "config_fingerprint": {
            "type": "string"
          },
          "configuration_valid": {
            "type": "boolean"
          },
          "form_fingerprint": {
            "type": "string"
          },
          "passed_sample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckEvaluationReport"
              },
              {
                "type": "null"
              }
            ]
          },
          "ready": {
            "type": "boolean"
          },
          "rejected_sample": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckEvaluationReport"
              },
              {
                "type": "null"
              }
            ]
          },
          "rejected_sample_required": {
            "default": true,
            "type": "boolean"
          },
          "step_key": {
            "type": "string"
          },
          "trial_unavailable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "violations": {
            "items": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "step_key",
          "config_fingerprint",
          "form_fingerprint",
          "configuration_valid",
          "violations",
          "passed_sample",
          "rejected_sample",
          "ready"
        ],
        "type": "object"
      },
      "CheckKind": {
        "properties": {
          "configured_in": {
            "type": "string"
          },
          "costs_llm_call": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "enums": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object"
          },
          "example": {
            "additionalProperties": true,
            "type": "object"
          },
          "kind": {
            "type": "string"
          },
          "optional": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "kind",
          "required",
          "optional",
          "description",
          "example",
          "costs_llm_call",
          "configured_in",
          "enums"
        ],
        "type": "object"
      },
      "CheckKindsResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "kinds": {
            "items": {
              "$ref": "#/components/schemas/CheckKind"
            },
            "type": "array"
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          }
        },
        "required": [
          "referenced_at",
          "kinds"
        ],
        "type": "object"
      },
      "CheckKindsResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CheckKindsResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "CheckOutcome": {
        "properties": {
          "check": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "ran": {
            "type": "boolean"
          },
          "violations": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/Violation"
            },
            "type": "array"
          }
        },
        "required": [
          "check",
          "ran",
          "passed"
        ],
        "type": "object"
      },
      "DedupKey": {
        "properties": {
          "data_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "key_name": {
            "type": "string"
          }
        },
        "required": [
          "key_name"
        ],
        "type": "object"
      },
      "DedupKeysResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "keys": {
            "items": {
              "$ref": "#/components/schemas/DedupKey"
            },
            "type": "array"
          },
          "org_id": {
            "type": "string"
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          }
        },
        "required": [
          "org_id",
          "referenced_at",
          "keys"
        ],
        "type": "object"
      },
      "DedupKeysResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/DedupKeysResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "DirectoryTeam": {
        "properties": {
          "name": {
            "type": "string"
          },
          "specialties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "team_access_entry": {
            "$ref": "#/components/schemas/TeamAccessEntry"
          },
          "team_id": {
            "type": "string"
          }
        },
        "required": [
          "team_id",
          "name",
          "specialties",
          "team_access_entry"
        ],
        "type": "object"
      },
      "ErrorEnvelope": {
        "properties": {
          "data": {
            "nullable": true
          },
          "errorCode": {
            "type": "integer"
          },
          "errorCodeName": {
            "type": "string"
          },
          "errorMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "success": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "FeasibilityBody": {
        "properties": {
          "candidate": {
            "additionalProperties": true,
            "type": "object"
          },
          "crs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "candidate"
        ],
        "type": "object"
      },
      "FeasibilityResponse": {
        "properties": {
          "as_of": {
            "type": "string"
          },
          "assumptions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "authoritative": {
            "default": false,
            "type": "boolean"
          },
          "candidate_hash": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "crs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "decided_by": {
            "type": "string"
          },
          "pay_line": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "pay_line_unavailable_because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "unavailable": {
            "items": {
              "$ref": "#/components/schemas/UnavailableMeasure"
            },
            "type": "array"
          }
        },
        "required": [
          "candidate_hash",
          "as_of",
          "unavailable",
          "assumptions",
          "decided_by"
        ],
        "type": "object"
      },
      "FeasibilityResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FeasibilityResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "InputDataset": {
        "properties": {
          "columns": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "dataset_id": {
            "type": "string"
          },
          "importable": {
            "type": "boolean"
          },
          "origin": {
            "enum": [
              "owned",
              "subscribed"
            ],
            "type": "string"
          },
          "pii_class": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_count": {
            "type": "integer"
          },
          "source_campaign_id": {
            "type": "string"
          },
          "subscription_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "dataset_id",
          "title",
          "source_campaign_id",
          "pii_class",
          "created_at",
          "record_count",
          "columns",
          "importable",
          "origin",
          "subscription_id"
        ],
        "type": "object"
      },
      "InputDatasetList": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "datasets": {
            "items": {
              "$ref": "#/components/schemas/InputDataset"
            },
            "type": "array"
          },
          "subscriptions_available": {
            "type": "boolean"
          }
        },
        "required": [
          "campaign_id",
          "datasets",
          "subscriptions_available"
        ],
        "type": "object"
      },
      "InputDatasetListEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/InputDatasetList"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "InstalledAgent": {
        "properties": {
          "agent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "agent_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "input_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "slug"
        ],
        "type": "object"
      },
      "InstalledAgentsResponse": {
        "properties": {
          "agents": {
            "items": {
              "$ref": "#/components/schemas/InstalledAgent"
            },
            "type": "array"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          }
        },
        "required": [
          "org_id",
          "referenced_at",
          "agents"
        ],
        "type": "object"
      },
      "InstalledAgentsResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/InstalledAgentsResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "LaunchExecuteBody": {
        "properties": {
          "proposal_id": {
            "type": "string"
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "proposal_id",
          "request_key"
        ],
        "type": "object"
      },
      "LaunchProposalResponse": {
        "properties": {
          "amount_usd": {
            "type": "string"
          },
          "base_budget_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "base_spec_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "base_version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "confirmed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmed_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "executed_action_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "operation": {
            "default": "launch",
            "type": "string"
          },
          "proposal_hash": {
            "type": "string"
          },
          "proposal_id": {
            "type": "string"
          },
          "resulting_budget_usd": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "enum": [
              "proposed",
              "confirmed",
              "executing",
              "executed",
              "revoked"
            ],
            "type": "string"
          },
          "terminal_confirmation_available": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "proposal_id",
          "campaign_id",
          "state",
          "amount_usd",
          "proposal_hash"
        ],
        "type": "object"
      },
      "LaunchProposalResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/LaunchProposalResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "LaunchProposeBody": {
        "properties": {
          "campaign_id": {
            "type": "string"
          }
        },
        "required": [
          "campaign_id"
        ],
        "type": "object"
      },
      "NodeCatalogResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/CatalogNode"
            },
            "type": "array"
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          }
        },
        "required": [
          "referenced_at",
          "nodes"
        ],
        "type": "object"
      },
      "NodeCatalogResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/NodeCatalogResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ObservationManifest": {
        "properties": {
          "arrivals": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_file_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_file_version_unbound_because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "denominators": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "inclusion_rules": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "isolated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "observed": {
            "type": "boolean"
          },
          "outcomes": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "pipeline_version": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "unavailable": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObservationWindow"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "observed"
        ],
        "type": "object"
      },
      "ObservationManifestEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ObservationManifest"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ObservationWindow": {
        "properties": {
          "bounds": {
            "type": "string"
          },
          "clocks": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "bounds",
          "clocks"
        ],
        "type": "object"
      },
      "OptionalAcademyQuizView": {
        "properties": {
          "availability": {
            "enum": [
              "available",
              "unavailable"
            ],
            "type": "string"
          },
          "optional": {
            "const": true,
            "default": true,
            "type": "boolean"
          },
          "program_version_id": {
            "minLength": 1,
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "program_version_id",
          "availability"
        ],
        "type": "object"
      },
      "OutcomeBreakdown": {
        "properties": {
          "arrivals": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "backlog": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_file_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_file_version_unbound_because": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "contributors": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "dedup": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "denominators": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "inclusion_rules": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "isolated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "observed": {
            "type": "boolean"
          },
          "outcomes": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "pipeline_version": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "quality_grades": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reasons": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "review_latency_seconds": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeline": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "unavailable": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "versions": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObservationWindow"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "observed"
        ],
        "type": "object"
      },
      "OutcomeBreakdownEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/OutcomeBreakdown"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ParticipantRequirements": {
        "properties": {
          "academy": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "access": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "advanced": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "agreements": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "campaign_id": {
            "type": "string"
          },
          "editing_enabled": {
            "default": false,
            "type": "boolean"
          },
          "operation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "profile": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "reputation": {
            "$ref": "#/components/schemas/RequirementFamily"
          },
          "restore_scope": {
            "const": "workflow_only",
            "default": "workflow_only",
            "type": "string"
          },
          "reviewable": {
            "type": "boolean"
          },
          "revision": {
            "$ref": "#/components/schemas/RequirementsRevision"
          },
          "schema_version": {
            "const": 1,
            "default": 1,
            "type": "integer"
          }
        },
        "required": [
          "campaign_id",
          "revision",
          "reputation",
          "profile",
          "agreements",
          "academy",
          "access",
          "platform",
          "advanced",
          "reviewable"
        ],
        "type": "object"
      },
      "ParticipantRequirementsEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ParticipantRequirements"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "PlanResponse": {
        "properties": {
          "applicable": {
            "type": "boolean"
          },
          "authored_semantic_impact": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthoredSemanticImpact"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaseDescriptor"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidate_hash": {
            "type": "string"
          },
          "change_count": {
            "type": "integer"
          },
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ChangeOperation"
            },
            "type": "array"
          },
          "findings": {
            "$ref": "#/components/schemas/ValidationFindings"
          },
          "mode": {
            "enum": [
              "create",
              "update"
            ],
            "type": "string"
          },
          "persisted_file_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "persisted_hash_differs_because": {
            "type": "string"
          }
        },
        "required": [
          "mode",
          "candidate_hash",
          "persisted_hash_differs_because",
          "changes",
          "change_count",
          "applicable",
          "findings"
        ],
        "type": "object"
      },
      "PlanResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PlanResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ProgressDelivery": {
        "properties": {
          "approved": {
            "type": "integer"
          },
          "backfill_window_seconds": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "holding": {
            "type": "integer"
          },
          "lagging": {
            "type": "integer"
          },
          "no_payload": {
            "type": "integer"
          },
          "reading": {
            "enum": [
              "nothing-to-deliver",
              "shortfall",
              "unreconciled"
            ],
            "type": "string"
          },
          "stuck": {
            "type": "integer"
          },
          "unattributed": {
            "type": "integer"
          }
        },
        "required": [
          "approved",
          "holding",
          "no_payload",
          "lagging",
          "stuck",
          "unattributed",
          "delivered",
          "reading",
          "backfill_window_seconds"
        ],
        "type": "object"
      },
      "ProgressInFlight": {
        "properties": {
          "active_leases": {
            "type": "integer"
          },
          "pending_award": {
            "type": "integer"
          },
          "pending_review": {
            "type": "integer"
          },
          "queued_machine_work": {
            "type": "integer"
          },
          "settlements_in_flight": {
            "type": "integer"
          }
        },
        "required": [
          "active_leases",
          "pending_review",
          "pending_award",
          "settlements_in_flight",
          "queued_machine_work"
        ],
        "type": "object"
      },
      "ProgressParticipation": {
        "properties": {
          "blocked": {
            "type": "integer"
          },
          "enrolled": {
            "type": "integer"
          },
          "enrolled_submitted": {
            "type": "integer"
          },
          "submitted": {
            "type": "integer"
          }
        },
        "required": [
          "enrolled",
          "submitted",
          "enrolled_submitted",
          "blocked"
        ],
        "type": "object"
      },
      "ReadinessByLaunch": {
        "properties": {
          "api_launch": {
            "type": "boolean"
          },
          "portal_launch": {
            "type": "boolean"
          }
        },
        "required": [
          "api_launch",
          "portal_launch"
        ],
        "type": "object"
      },
      "ReadinessCheck": {
        "properties": {
          "check": {
            "type": "string"
          },
          "details": {
            "default": [],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "evidence": {
            "type": "string"
          },
          "fix_op": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "refused_by": {
            "default": [],
            "items": {
              "enum": [
                "api_launch",
                "portal_launch"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "enum": [
              "pass",
              "missing",
              "risk"
            ],
            "type": "string"
          }
        },
        "required": [
          "check",
          "status",
          "evidence"
        ],
        "type": "object"
      },
      "ReadinessNotChecked": {
        "properties": {
          "because": {
            "type": "string"
          },
          "check": {
            "type": "string"
          }
        },
        "required": [
          "check",
          "because"
        ],
        "type": "object"
      },
      "ReadinessResponse": {
        "properties": {
          "as_of": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "campaign_status": {
            "type": "string"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/ReadinessCheck"
            },
            "type": "array"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "not_checked": {
            "items": {
              "$ref": "#/components/schemas/ReadinessNotChecked"
            },
            "type": "array"
          },
          "ready": {
            "type": "boolean"
          },
          "ready_for": {
            "$ref": "#/components/schemas/ReadinessByLaunch"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "campaign_status",
          "ready",
          "ready_for",
          "checks",
          "not_checked",
          "as_of"
        ],
        "type": "object"
      },
      "ReadinessResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ReadinessResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "ReferenceSite": {
        "properties": {
          "entry_field": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "step": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "step",
          "path",
          "entry_field"
        ],
        "type": "object"
      },
      "RequirementFamily": {
        "properties": {
          "evidence": {
            "type": "string"
          },
          "problems": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reference_status": {
            "default": "not_required",
            "enum": [
              "not_required",
              "unresolved",
              "resolved",
              "unavailable"
            ],
            "type": "string"
          },
          "references": {
            "items": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "type": "array"
          },
          "shadowed": {},
          "source": {
            "enum": [
              "campaign",
              "gate",
              "legacy",
              "platform",
              "none"
            ],
            "type": "string"
          },
          "state": {
            "enum": [
              "configured",
              "empty",
              "absent",
              "malformed",
              "unavailable",
              "unsupported",
              "unresolved"
            ],
            "type": "string"
          },
          "value": {}
        },
        "required": [
          "source",
          "state",
          "value",
          "evidence"
        ],
        "type": "object"
      },
      "RequirementsRevision": {
        "properties": {
          "admission_fence": {
            "default": 0,
            "type": "integer"
          },
          "pipeline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "qualification": {
            "type": "string"
          }
        },
        "required": [
          "qualification",
          "pipeline"
        ],
        "type": "object"
      },
      "SessionPrincipal": {
        "properties": {
          "active_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cli_session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "client_type": {
            "default": "portal",
            "enum": [
              "portal",
              "humanbased_cli"
            ],
            "type": "string"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "principal": {
            "const": "session",
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_id": {
            "type": "string"
          },
          "user_role": {
            "type": "string"
          }
        },
        "required": [
          "principal",
          "user_id",
          "user_role",
          "active_role",
          "scopes"
        ],
        "type": "object"
      },
      "SubmissionContributor": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "display_name",
          "email"
        ],
        "type": "object"
      },
      "SubmissionDecisionBody": {
        "additionalProperties": false,
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "decision": {
            "anyOf": [
              {
                "enum": [
                  "approved",
                  "rejected"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_revision": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "rating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "submission_id": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "campaign_id",
          "submission_id",
          "expected_revision",
          "request_key"
        ],
        "type": "object"
      },
      "SubmissionHold": {
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "needs_a_person": {
            "type": "boolean"
          },
          "since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "unlock": {
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "label",
          "why",
          "unlock",
          "since",
          "needs_a_person"
        ],
        "type": "object"
      },
      "SubmissionPage": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "has_pipeline": {
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/SubmissionRow"
            },
            "type": "array"
          },
          "page": {
            "type": "integer"
          },
          "page_size": {
            "type": "integer"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/SubmissionStep"
            },
            "type": "array"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "campaign_id",
          "has_pipeline",
          "page",
          "page_size",
          "total",
          "steps",
          "items"
        ],
        "type": "object"
      },
      "SubmissionPageEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SubmissionPage"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "SubmissionRow": {
        "properties": {
          "award_state": {
            "anyOf": [
              {
                "enum": [
                  "pending",
                  "awarded",
                  "disputed",
                  "refused",
                  "failed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "contributors": {
            "items": {
              "$ref": "#/components/schemas/SubmissionRowContributor"
            },
            "type": "array"
          },
          "current_step": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "decidable": {
            "type": "boolean"
          },
          "item_id": {
            "type": "string"
          },
          "overall_state": {
            "enum": [
              "in_progress",
              "completed",
              "stuck"
            ],
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "item_id",
          "current_step",
          "overall_state",
          "decidable",
          "award_state",
          "updated_at",
          "contributors"
        ],
        "type": "object"
      },
      "SubmissionRowContributor": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "submission_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "display_name",
          "email",
          "submission_ids"
        ],
        "type": "object"
      },
      "SubmissionStep": {
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "key",
          "label"
        ],
        "type": "object"
      },
      "SubmissionView": {
        "properties": {
          "answers": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "appeal": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "appeals_unavailable": {
            "type": "boolean"
          },
          "assessment": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "award_status": {
            "anyOf": [
              {
                "enum": [
                  "pending",
                  "settling",
                  "awarded",
                  "failed",
                  "disputed",
                  "rejected"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "can_decide": {
            "type": "boolean"
          },
          "can_override": {
            "type": "boolean"
          },
          "content_withheld": {
            "type": "boolean"
          },
          "contributor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubmissionContributor"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "final_human_ruling": {
            "type": "boolean"
          },
          "form_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "hold": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubmissionHold"
              },
              {
                "type": "null"
              }
            ]
          },
          "item_acceptance_role": {
            "anyOf": [
              {
                "enum": [
                  "target",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "item_id": {
            "type": "string"
          },
          "labeling_config": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "manual_acceptance_target_step_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "pass_mark": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "privacy_tier": {
            "anyOf": [
              {
                "enum": [
                  "open",
                  "shielded",
                  "guarded",
                  "sealed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "quality_grade": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "rating_scale": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "anyOf": [
              {
                "enum": [
                  "approved",
                  "rejected",
                  "duplicate"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "result_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "result_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "claimed",
                  "submitted",
                  "returned"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "step": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubmissionStep"
              },
              {
                "type": "null"
              }
            ]
          },
          "submission_id": {
            "type": "string"
          },
          "template_context_unavailable": {
            "type": "boolean"
          },
          "template_vars": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign_id",
          "submission_id",
          "item_id",
          "revision",
          "can_decide",
          "can_override",
          "final_human_ruling",
          "appeals_unavailable",
          "content_withheld",
          "template_context_unavailable",
          "privacy_tier",
          "step",
          "contributor",
          "status",
          "result",
          "result_reason",
          "result_at",
          "quality_grade",
          "answers",
          "form_schema",
          "labeling_config",
          "template_vars",
          "assessment",
          "hold",
          "escalation",
          "award_status",
          "pass_mark",
          "rating_scale",
          "appeal"
        ],
        "type": "object"
      },
      "SubmissionViewEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SubmissionView"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "SupportedTemplate": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "form",
                  "labeling"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "modalities": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "template_id": {
            "type": "string"
          }
        },
        "required": [
          "template_id"
        ],
        "type": "object"
      },
      "TeamAccessEntry": {
        "properties": {
          "name": {
            "type": "string"
          },
          "team_id": {
            "type": "string"
          }
        },
        "required": [
          "team_id",
          "name"
        ],
        "type": "object"
      },
      "TeamDirectoryResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "referenced_at": {
            "items": {
              "$ref": "#/components/schemas/ReferenceSite"
            },
            "type": "array"
          },
          "teams": {
            "items": {
              "$ref": "#/components/schemas/DirectoryTeam"
            },
            "type": "array"
          }
        },
        "required": [
          "referenced_at",
          "teams",
          "has_more",
          "next_cursor"
        ],
        "type": "object"
      },
      "TeamDirectoryResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TeamDirectoryResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "TemplateApplyBody": {
        "properties": {
          "expected_template_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_key": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "template": {},
          "template_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "template",
          "request_key"
        ],
        "type": "object"
      },
      "TemplateApplyResponse": {
        "properties": {
          "action": {
            "type": "string"
          },
          "action_id": {
            "type": "string"
          },
          "campaign_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "replayed": {
            "default": false,
            "type": "boolean"
          },
          "request_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_key": {
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateApplyResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "uncertain_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "action_id",
          "action",
          "request_key"
        ],
        "type": "object"
      },
      "TemplateApplyResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TemplateApplyResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "TemplateApplyResult": {
        "properties": {
          "created": {
            "type": "boolean"
          },
          "editable_in_builder": {
            "type": "boolean"
          },
          "template_hash": {
            "type": "string"
          },
          "template_id": {
            "type": "string"
          }
        },
        "required": [
          "template_id",
          "template_hash",
          "editable_in_builder",
          "created"
        ],
        "type": "object"
      },
      "TemplateDocumentBody": {
        "properties": {
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "template": {}
        },
        "required": [
          "template"
        ],
        "type": "object"
      },
      "TemplateListResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "count": {
            "default": 0,
            "type": "integer"
          },
          "has_more": {
            "default": false,
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TemplateSummary"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "org_id": {
            "type": "string"
          }
        },
        "required": [
          "items",
          "org_id"
        ],
        "type": "object"
      },
      "TemplateListResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TemplateListResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "TemplateResponse": {
        "properties": {
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "description": {
            "default": "",
            "type": "string"
          },
          "form_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_preset": {
            "default": false,
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "form",
              "labeling"
            ],
            "type": "string"
          },
          "master_json": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "modalities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "preset_price": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rubric": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "sample_task": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_template_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "template_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "template_id": {
            "type": "string"
          }
        },
        "required": [
          "template_id",
          "kind",
          "name"
        ],
        "type": "object"
      },
      "TemplateResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TemplateResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "TemplateSummary": {
        "properties": {
          "is_preset": {
            "default": false,
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "form",
              "labeling"
            ],
            "type": "string"
          },
          "modalities": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "template_id": {
            "type": "string"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility": {
            "type": "string"
          }
        },
        "required": [
          "template_id",
          "name",
          "kind",
          "visibility"
        ],
        "type": "object"
      },
      "TemplateValidationFindings": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/CheckOutcome"
            },
            "type": "array"
          },
          "compiled_form_schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "editable_in_builder": {
            "type": "boolean"
          },
          "server_assigned_fields": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "template_hash": {
            "type": "string"
          },
          "valid": {
            "type": "boolean"
          },
          "validator_version": {
            "type": "string"
          }
        },
        "required": [
          "valid",
          "checks",
          "validator_version",
          "template_hash",
          "editable_in_builder"
        ],
        "type": "object"
      },
      "TemplateValidationFindingsEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/TemplateValidationFindings"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "UnavailableMeasure": {
        "properties": {
          "because": {
            "type": "string"
          },
          "measure": {
            "type": "string"
          }
        },
        "required": [
          "measure",
          "because"
        ],
        "type": "object"
      },
      "ValidationFindings": {
        "properties": {
          "candidate_hash": {
            "type": "string"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/CheckOutcome"
            },
            "type": "array"
          },
          "server_assigned_fields": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "spec_version": {
            "type": "string"
          },
          "valid": {
            "type": "boolean"
          },
          "validator_version": {
            "type": "string"
          }
        },
        "required": [
          "valid",
          "checks",
          "validator_version",
          "spec_version",
          "candidate_hash"
        ],
        "type": "object"
      },
      "ValidationFindingsEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ValidationFindings"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "VersionDiffResponse": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "change_count": {
            "type": "integer"
          },
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ChangeOperation"
            },
            "type": "array"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "from_version": {
            "$ref": "#/components/schemas/VersionSummary"
          },
          "to_version": {
            "$ref": "#/components/schemas/VersionSummary"
          }
        },
        "required": [
          "campaign_id",
          "from_version",
          "to_version",
          "changes",
          "change_count"
        ],
        "type": "object"
      },
      "VersionDiffResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/VersionDiffResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "VersionListResponse": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "has_more": {
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/VersionSummary"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "campaign_id",
          "items",
          "count",
          "has_more",
          "truncated"
        ],
        "type": "object"
      },
      "VersionListResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/VersionListResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "VersionResponse": {
        "properties": {
          "campaign_file": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaign_id": {
            "type": "string"
          },
          "contract_version": {
            "default": "campaign-read.v1",
            "type": "string"
          },
          "server_assigned_fields": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "version": {
            "$ref": "#/components/schemas/VersionSummary"
          }
        },
        "required": [
          "campaign_id",
          "version"
        ],
        "type": "object"
      },
      "VersionResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/VersionResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      },
      "VersionSummary": {
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "file_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "spec_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "spec_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object"
      },
      "Violation": {
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "code",
          "message"
        ],
        "type": "object"
      },
      "WhoamiResponse": {
        "discriminator": {
          "mapping": {
            "api_key": "#/components/schemas/ApiKeyPrincipal",
            "session": "#/components/schemas/SessionPrincipal"
          },
          "propertyName": "principal"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ApiKeyPrincipal"
          },
          {
            "$ref": "#/components/schemas/SessionPrincipal"
          }
        ]
      },
      "WhoamiResponseEnvelope": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/WhoamiResponse"
          },
          "errorCode": {
            "const": 0,
            "type": "integer"
          },
          "errorMessage": {
            "const": "SUCCESS",
            "type": "string"
          },
          "success": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "success",
          "errorCode",
          "errorMessage"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Use an organization API Key issued for the selected environment. Grants are checked independently. Human-only operations are excluded; a person must confirm a launch in the Developer portal before the proposing key can execute it.",
    "title": "Humanbased Campaign API for organization keys",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/auth/whoami": {
      "get": {
        "operationId": "getWhoami",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhoamiResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Check the API key's identity and grants",
        "x-hb-auth-required": true
      }
    },
    "/api/v1/campaignapi/actionreceipt": {
      "get": {
        "operationId": "getActionreceipt",
        "parameters": [
          {
            "in": "query",
            "name": "action_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "request_key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a previous write's receipt",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author",
        "x-hb-capability-by-action": {
          "campaign.budget.increase": "campaign:launch",
          "submission.decide": "submission:decide",
          "submission.override": "submission:decide"
        }
      }
    },
    "/api/v1/campaignapi/agreementcatalog": {
      "get": {
        "operationId": "getAgreementcatalog",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgreementCatalogResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List agreements a Campaign may require",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaign": {
      "get": {
        "operationId": "getCampaign",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read one Campaign",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaignbudget": {
      "get": {
        "operationId": "getCampaignbudget",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignBudgetSnapshotEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a Campaign's escrow and outstanding commitments",
        "x-hb-auth-required": true,
        "x-hb-capability": "billing:read"
      }
    },
    "/api/v1/campaignapi/campaigncost": {
      "get": {
        "operationId": "getCampaigncost",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "by",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "campaign",
                    "step",
                    "week",
                    "month"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignCostResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read Campaign or organization cost facts",
        "x-hb-auth-required": true,
        "x-hb-capability": "billing:read"
      }
    },
    "/api/v1/campaignapi/campaigndetails": {
      "get": {
        "operationId": "getCampaigndetails",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignDetailsResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read the Campaign's contributor-facing details",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaigndetailsupdate": {
      "post": {
        "operationId": "postCampaigndetailsupdate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignDetailsUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Update the Campaign's contributor-facing details",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/campaignprogress": {
      "get": {
        "operationId": "getCampaignprogress",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignProgressEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read current Campaign progress",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaignrequirements": {
      "get": {
        "operationId": "getCampaignrequirements",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantRequirementsEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a Campaign's saved participant requirements",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaigns": {
      "get": {
        "operationId": "getCampaigns",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 200,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignListResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List visible Campaigns",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaignsettings": {
      "get": {
        "operationId": "getCampaignsettings",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSettingsResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a Campaign's settings",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/campaignsettingsupdate": {
      "post": {
        "operationId": "postCampaignsettingsupdate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignSettingsUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change a Campaign's visibility or protection",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/cancelcheckevaluation": {
      "post": {
        "operationId": "postCancelcheckevaluation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelCheckEvaluationBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckEvaluationReportEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Cancel a durable acceptance-check sample trial",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/candidateapply": {
      "post": {
        "operationId": "postCandidateapply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateApplyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create a Campaign or apply a draft change",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/candidatefeasibility": {
      "post": {
        "operationId": "postCandidatefeasibility",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeasibilityBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeasibilityResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Describe a candidate's pay range without writing",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/candidateplan": {
      "post": {
        "operationId": "postCandidateplan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidatePlanBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Plan a candidate without writing",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/candidatevalidate": {
      "post": {
        "operationId": "postCandidatevalidate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFindingsEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Validate a candidate without writing",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/catalog": {
      "get": {
        "operationId": "getCatalog",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read the Campaign authoring catalog",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/checkdryrun": {
      "post": {
        "operationId": "postCheckdryrun",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckDryRunBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckDryRunReportEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Try an acceptance check without saving",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/checkevaluate": {
      "post": {
        "operationId": "postCheckevaluate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckEvaluateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckEvaluationReportEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Start a durable acceptance-check sample trial",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/checkevaluation": {
      "get": {
        "operationId": "getCheckevaluation",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "evaluation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckEvaluationReportEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a durable acceptance-check sample trial",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/checkevaluationreadiness": {
      "get": {
        "operationId": "getCheckevaluationreadiness",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckEvaluationReadinessEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Check current acceptance configuration and matched sample evidence",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/checkkinds": {
      "get": {
        "operationId": "getCheckkinds",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckKindsResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List acceptance check kinds",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/dedupkeys": {
      "get": {
        "operationId": "getDedupkeys",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DedupKeysResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List the organization's deduplication keys",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/inputdatasets": {
      "get": {
        "operationId": "getInputdatasets",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InputDatasetListEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List datasets available for Campaign import",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/installedagents": {
      "get": {
        "operationId": "getInstalledagents",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InstalledAgentsResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List the organization's installed agents",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/launch": {
      "post": {
        "operationId": "postLaunch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaunchExecuteBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Execute a launch confirmed by a person",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:launch"
      }
    },
    "/api/v1/campaignapi/launchproposal": {
      "get": {
        "operationId": "getLaunchproposal",
        "parameters": [
          {
            "in": "query",
            "name": "proposal_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaunchProposalResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read this key's launch proposal",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:launch"
      }
    },
    "/api/v1/campaignapi/launchpropose": {
      "post": {
        "operationId": "postLaunchpropose",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaunchProposeBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaunchProposalResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Propose a launch for a person to confirm",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:launch"
      }
    },
    "/api/v1/campaignapi/nodecatalog": {
      "get": {
        "operationId": "getNodecatalog",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NodeCatalogResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List workflow node types",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/observation": {
      "get": {
        "operationId": "getObservation",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pipeline_version_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationManifestEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read counts for an outcome window",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/outcomebreakdown": {
      "get": {
        "operationId": "getOutcomebreakdown",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pipeline_version_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeBreakdownEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read aggregate explanations for an outcome window",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/readiness": {
      "get": {
        "operationId": "getReadiness",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read checks that may prevent a launch",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/submission": {
      "get": {
        "operationId": "getSubmission",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "submission_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionViewEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Inspect one submission",
        "x-hb-auth-required": true,
        "x-hb-capability": "submission:read"
      }
    },
    "/api/v1/campaignapi/submissiondecide": {
      "post": {
        "operationId": "postSubmissiondecide",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmissionDecisionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Decide a pending submission",
        "x-hb-auth-required": true,
        "x-hb-capability": "submission:decide"
      }
    },
    "/api/v1/campaignapi/submissionoverride": {
      "post": {
        "operationId": "postSubmissionoverride",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmissionDecisionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Change a submission verdict",
        "x-hb-auth-required": true,
        "x-hb-capability": "submission:decide"
      }
    },
    "/api/v1/campaignapi/submissions": {
      "get": {
        "operationId": "getSubmissions",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "in_progress",
                    "completed",
                    "stuck"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionPageEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List Campaign submissions",
        "x-hb-auth-required": true,
        "x-hb-capability": "submission:read"
      }
    },
    "/api/v1/campaignapi/teamdirectory": {
      "get": {
        "operationId": "getTeamdirectory",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 64,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 64,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamDirectoryResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Search published teams",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/template": {
      "get": {
        "operationId": "getTemplate",
        "parameters": [
          {
            "in": "query",
            "name": "template_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a visible template",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/templateapply": {
      "post": {
        "operationId": "postTemplateapply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateApplyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateApplyResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Create or update a template once",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/templates": {
      "get": {
        "operationId": "getTemplates",
        "parameters": [
          {
            "in": "query",
            "name": "org_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "form",
                    "labeling"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 200,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateListResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List visible templates",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/templatevalidate": {
      "post": {
        "operationId": "postTemplatevalidate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateDocumentBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateValidationFindingsEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Validate a template without writing",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:author"
      }
    },
    "/api/v1/campaignapi/version": {
      "get": {
        "operationId": "getVersion",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version_number",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Read a stored Campaign version",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/versiondiff": {
      "get": {
        "operationId": "getVersiondiff",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from_version",
            "required": true,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "to_version",
            "required": true,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionDiffResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "Compare two stored Campaign versions",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    },
    "/api/v1/campaignapi/versions": {
      "get": {
        "operationId": "getVersions",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 200,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionListResponseEnvelope"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            },
            "description": "Error response. Check the status and errorCodeName when present."
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "summary": "List stored Campaign versions",
        "x-hb-auth-required": true,
        "x-hb-capability": "campaign:read"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.humanbased.ai"
    },
    {
      "url": "https://api.staging.humanbased.ai"
    }
  ]
}
