{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-get-campaign-run-response-schema.json",
  "title": "GetCampaignRunResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-campaign-runs-api-openapi.yml#/components/schemas/GetCampaignRunResponse",
  "properties": {
    "campaign": {
      "anyOf": [
        {
          "$ref": "#/$defs/Campaign"
        },
        {
          "type": "null"
        }
      ]
    },
    "campaignRun": {
      "$ref": "#/$defs/CampaignRun"
    },
    "providers": {
      "additionalProperties": {
        "$ref": "#/$defs/Provider"
      },
      "propertyNames": {
        "format": "uuid"
      },
      "title": "Providers",
      "type": "object"
    },
    "schedule": {
      "anyOf": [
        {
          "$ref": "#/$defs/CampaignSchedule"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "campaignRun",
    "providers"
  ],
  "type": "object",
  "$defs": {
    "APIRequestBlock": {
      "properties": {
        "awsAuth": {
          "anyOf": [
            {
              "$ref": "#/$defs/AWSAuth"
            },
            {
              "type": "null"
            }
          ],
          "template": true
        },
        "body": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Body"
        },
        "headers": {
          "additionalProperties": true,
          "default": {},
          "template": true,
          "title": "Headers",
          "type": "object"
        },
        "json": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Json"
        },
        "method": {
          "$ref": "#/$defs/HTTPMethod"
        },
        "ociAuth": {
          "anyOf": [
            {
              "$ref": "#/$defs/OCIAuth"
            },
            {
              "type": "null"
            }
          ],
          "template": true
        },
        "outputs": {
          "$ref": "#/$defs/APIScopeOutputs",
          "default": {}
        },
        "queryParams": {
          "additionalProperties": {
            "type": "string"
          },
          "default": {},
          "template": true,
          "title": "Queryparams",
          "type": "object"
        },
        "timeout": {
          "default": 20,
          "title": "Timeout",
          "type": "integer"
        },
        "type": {
          "const": "request",
          "default": "request",
          "title": "Type",
          "type": "string"
        },
        "url": {
          "template": true,
          "title": "Url",
          "type": "string"
        }
      },
      "required": [
        "method",
        "url"
      ],
      "title": "APIRequestBlock",
      "type": "object"
    },
    "APIRetryBlock": {
      "properties": {
        "attempts": {
          "title": "Attempts",
          "type": "integer"
        },
        "backoff": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ],
          "default": 1,
          "template": true,
          "title": "Backoff"
        },
        "block": {
          "oneOf": [
            {
              "$ref": "#/$defs/APIRequestBlock"
            },
            {
              "$ref": "#/$defs/APIWorkflowBlock"
            },
            {
              "$ref": "#/$defs/APIRetryBlock"
            }
          ],
          "template": true,
          "title": "Block"
        },
        "type": {
          "const": "retry",
          "default": "retry",
          "title": "Type",
          "type": "string"
        },
        "when": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "When"
        }
      },
      "required": [
        "attempts",
        "block"
      ],
      "title": "APIRetryBlock",
      "type": "object"
    },
    "APIScopeOutputs": {
      "patternProperties": {
        "^[a-zA-Z_][a-zA-Z0-9_]*$": {
          "type": "string"
        }
      },
      "template": true,
      "title": "APIScopeOutputs",
      "type": "object"
    },
    "APIWorkflowBlock": {
      "properties": {
        "outputs": {
          "$ref": "#/$defs/APIScopeOutputs",
          "default": {}
        },
        "stages": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/APIRequestBlock"
              },
              {
                "$ref": "#/$defs/APIRetryBlock"
              },
              {
                "$ref": "#/$defs/APIWorkflowBlock"
              }
            ]
          },
          "template": true,
          "title": "Stages",
          "type": "array"
        },
        "type": {
          "const": "workflow",
          "default": "workflow",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "stages"
      ],
      "title": "APIWorkflowBlock",
      "type": "object"
    },
    "AWSAuth": {
      "properties": {
        "accessKey": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Accesskey"
        },
        "region": {
          "template": true,
          "title": "Region",
          "type": "string"
        },
        "secretKey": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Secretkey"
        },
        "service": {
          "template": true,
          "title": "Service",
          "type": "string"
        },
        "token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Token"
        }
      },
      "required": [
        "service",
        "region"
      ],
      "title": "AWSAuth",
      "type": "object"
    },
    "AttackErrorSummary": {
      "properties": {
        "message": {
          "title": "Message",
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CampaignRunErrorType"
        }
      },
      "required": [
        "type",
        "message"
      ],
      "title": "AttackErrorSummary",
      "type": "object"
    },
    "AttackRun": {
      "properties": {
        "attack": {
          "oneOf": [
            {
              "$ref": "#/$defs/StaticContentAttack"
            },
            {
              "$ref": "#/$defs/DynamicSingleTurnContentAttack"
            },
            {
              "$ref": "#/$defs/DynamicMultiTurnContentAttack"
            },
            {
              "$ref": "#/$defs/OperationalAttack"
            },
            {
              "$ref": "#/$defs/CustomAttack"
            }
          ],
          "title": "Attack"
        },
        "errorCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": 0,
          "title": "Errorcount"
        },
        "events": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/AttackRunQueuedEvent"
              },
              {
                "$ref": "#/$defs/AttackRunStartedEvent"
              },
              {
                "$ref": "#/$defs/AttackRunScheduledEvent"
              },
              {
                "$ref": "#/$defs/AttackRunCompletedEvent"
              },
              {
                "$ref": "#/$defs/AttackRunFailedEvent"
              },
              {
                "$ref": "#/$defs/AttackRunCancellingEvent"
              },
              {
                "$ref": "#/$defs/AttackRunCancelledEvent"
              },
              {
                "$ref": "#/$defs/AttackRunScheduleErrorEvent"
              }
            ]
          },
          "title": "Events",
          "type": "array"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "progress": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": 0,
          "title": "Progress"
        },
        "providerId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Providerid"
        },
        "providerName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Providername"
        },
        "results": {
          "default": [],
          "items": {
            "$ref": "#/$defs/DSAttackResult"
          },
          "title": "Results",
          "type": "array"
        },
        "total": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total"
        }
      },
      "required": [
        "id",
        "providerId",
        "attack",
        "events"
      ],
      "title": "AttackRun",
      "type": "object"
    },
    "AttackRunCancelledEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "cancelled",
          "default": "cancelled",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunCancelledEvent",
      "type": "object"
    },
    "AttackRunCancellingEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "cancelling",
          "default": "cancelling",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunCancellingEvent",
      "type": "object"
    },
    "AttackRunCompletedEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "completed",
          "default": "completed",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunCompletedEvent",
      "type": "object"
    },
    "AttackRunFailedEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "failed",
          "default": "failed",
          "title": "Event",
          "type": "string"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunFailedEvent",
      "type": "object"
    },
    "AttackRunQueuedEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "queued",
          "default": "queued",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunQueuedEvent",
      "type": "object"
    },
    "AttackRunScheduleErrorEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "schedule_error",
          "default": "schedule_error",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunScheduleErrorEvent",
      "type": "object"
    },
    "AttackRunScheduledEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "scheduled",
          "default": "scheduled",
          "title": "Event",
          "type": "string"
        },
        "scheduledStartTime": {
          "format": "date-time",
          "title": "Scheduledstarttime",
          "type": "string"
        }
      },
      "required": [
        "createdAt",
        "scheduledStartTime"
      ],
      "title": "AttackRunScheduledEvent",
      "type": "object"
    },
    "AttackRunStartedEvent": {
      "properties": {
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "event": {
          "const": "started",
          "default": "started",
          "title": "Event",
          "type": "string"
        }
      },
      "required": [
        "createdAt"
      ],
      "title": "AttackRunStartedEvent",
      "type": "object"
    },
    "Campaign": {
      "properties": {
        "attacks": {
          "items": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "$ref": "#/$defs/StaticContentAttack"
                  },
                  {
                    "$ref": "#/$defs/DynamicSingleTurnContentAttack"
                  },
                  {
                    "$ref": "#/$defs/DynamicMultiTurnContentAttack"
                  },
                  {
                    "$ref": "#/$defs/OperationalAttack"
                  },
                  {
                    "$ref": "#/$defs/CustomAttack"
                  }
                ]
              },
              {
                "$ref": "#/$defs/InvalidAttack"
              }
            ]
          },
          "title": "Attacks",
          "type": "array"
        },
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "createdBy": {
          "title": "Createdby",
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "lastRun": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastrun"
        },
        "lastRunAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastrunat"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "runCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": 0,
          "title": "Runcount"
        },
        "vendored": {
          "default": false,
          "title": "Vendored",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "attacks",
        "createdBy",
        "createdAt"
      ],
      "title": "Campaign",
      "type": "object"
    },
    "CampaignRun": {
      "properties": {
        "CASIScore": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Casiscore"
        },
        "actionsCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actionscount"
        },
        "attackRuns": {
          "items": {
            "$ref": "#/$defs/AttackRun"
          },
          "title": "Attackruns",
          "type": "array"
        },
        "averagePerformance": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Averageperformance"
        },
        "campaignId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Campaignid"
        },
        "casiScorePositionDelta": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Casiscorepositiondelta"
        },
        "completedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completedat"
        },
        "costOfSecurity": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Costofsecurity"
        },
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "createdBy": {
          "title": "Createdby",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "preserve": {
          "default": false,
          "title": "Preserve",
          "type": "boolean"
        },
        "progress": {
          "default": 0,
          "title": "Progress",
          "type": "integer"
        },
        "projectAccess": {
          "$ref": "#/$defs/CampaignRunProjectAccess"
        },
        "providerErrors": {
          "additionalProperties": {
            "$ref": "#/$defs/CampaignRunProviderErrors"
          },
          "propertyNames": {
            "format": "uuid"
          },
          "title": "Providererrors",
          "type": "object"
        },
        "purged": {
          "default": false,
          "title": "Purged",
          "type": "boolean"
        },
        "remediation": {
          "$ref": "#/$defs/CampaignRunRemediation"
        },
        "remediationSettings": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignRunRemediationSettings"
            },
            {
              "type": "null"
            }
          ]
        },
        "retries": {
          "default": 0,
          "title": "Retries",
          "type": "integer"
        },
        "retryable": {
          "default": false,
          "title": "Retryable",
          "type": "boolean"
        },
        "rtpRatio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rtpratio"
        },
        "runTime": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Runtime"
        },
        "scheduleId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Scheduleid"
        },
        "startAt": {
          "format": "date-time",
          "title": "Startat",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/CampaignRunStatus"
        },
        "total": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total"
        },
        "vendored": {
          "default": false,
          "title": "Vendored",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "campaignId",
        "name",
        "attackRuns",
        "startAt",
        "status",
        "createdAt",
        "createdBy",
        "providerErrors",
        "remediation"
      ],
      "title": "CampaignRun",
      "type": "object"
    },
    "CampaignRunErrorType": {
      "enum": [
        "api_token",
        "permission",
        "not_found",
        "validation",
        "rate_limit",
        "client_error",
        "server_error",
        "timeout",
        "service_unavailable",
        "unknown",
        "failure_limit_reached",
        "bad_provider_configuration"
      ],
      "title": "CampaignRunErrorType",
      "type": "string"
    },
    "CampaignRunProjectAccess": {
      "properties": {
        "global": {
          "default": false,
          "description": "If True campaign run is available to all projects",
          "title": "Global",
          "type": "boolean"
        },
        "projectIds": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "title": "Projectids",
          "type": "array"
        }
      },
      "title": "CampaignRunProjectAccess",
      "type": "object"
    },
    "CampaignRunProviderErrors": {
      "properties": {
        "errorCount": {
          "title": "Errorcount",
          "type": "integer"
        },
        "providerFailed": {
          "title": "Providerfailed",
          "type": "boolean"
        },
        "providerName": {
          "title": "Providername",
          "type": "string"
        },
        "totalPrompts": {
          "title": "Totalprompts",
          "type": "integer"
        }
      },
      "required": [
        "providerName",
        "errorCount",
        "totalPrompts",
        "providerFailed"
      ],
      "title": "CampaignRunProviderErrors",
      "type": "object"
    },
    "CampaignRunRemediation": {
      "properties": {
        "available": {
          "default": false,
          "title": "Available",
          "type": "boolean"
        },
        "id": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "title": "CampaignRunRemediation",
      "type": "object"
    },
    "CampaignRunRemediationSettings": {
      "properties": {
        "autorun": {
          "default": false,
          "description": "Run remediation once available.",
          "title": "Autorun",
          "type": "boolean"
        }
      },
      "title": "CampaignRunRemediationSettings",
      "type": "object"
    },
    "CampaignRunStatus": {
      "enum": [
        "scheduled",
        "in_progress",
        "complete",
        "error",
        "cancelling",
        "cancelled",
        "schedule_error"
      ],
      "title": "CampaignRunStatus",
      "type": "string"
    },
    "CampaignSchedule": {
      "properties": {
        "campaignId": {
          "format": "uuid",
          "title": "Campaignid",
          "type": "string"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Count"
        },
        "createdAt": {
          "format": "date-time",
          "title": "Createdat",
          "type": "string"
        },
        "endAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Endat"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "frequency": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignScheduleFrequency"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "interval": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Interval"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "providerIds": {
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "title": "Providerids",
          "type": "array"
        },
        "remediationSettings": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignRunRemediationSettings"
            },
            {
              "type": "null"
            }
          ]
        },
        "startAt": {
          "format": "date-time",
          "title": "Startat",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "campaignId",
        "providerIds",
        "startAt",
        "createdAt"
      ],
      "title": "CampaignSchedule",
      "type": "object"
    },
    "CampaignScheduleFrequency": {
      "enum": [
        "weeks",
        "days"
      ],
      "title": "CampaignScheduleFrequency",
      "type": "string"
    },
    "CustomAttack": {
      "properties": {
        "fileId": {
          "format": "uuid",
          "title": "Fileid",
          "type": "string"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "severity": {
          "anyOf": [
            {
              "maximum": 4.0,
              "minimum": 1.0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": 1,
          "title": "Severity"
        },
        "technique": {
          "const": "custom",
          "default": "custom",
          "title": "Technique",
          "type": "string"
        }
      },
      "required": [
        "name",
        "fileId"
      ],
      "title": "CustomAttack",
      "type": "object"
    },
    "DSAttackResult": {
      "properties": {
        "conversation": {
          "default": [],
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Conversation",
          "type": "array"
        },
        "conversationSteps": {
          "default": 0,
          "title": "Conversationsteps",
          "type": "integer"
        },
        "converter": {
          "anyOf": [
            {
              "$ref": "#/$defs/PromptConverter"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "errorSummary": {
          "anyOf": [
            {
              "$ref": "#/$defs/AttackErrorSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "intent": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Intent"
        },
        "intentCategory": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Intentcategory"
        },
        "intentType": {
          "anyOf": [
            {
              "$ref": "#/$defs/IntentType"
            },
            {
              "type": "null"
            }
          ]
        },
        "refusalCheck": {
          "anyOf": [
            {
              "$ref": "#/$defs/RefusalCheck"
            },
            {
              "type": "null"
            }
          ]
        },
        "severity": {
          "anyOf": [
            {
              "maximum": 4.0,
              "minimum": 1.0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Severity"
        },
        "vulnerable": {
          "title": "Vulnerable",
          "type": "boolean"
        }
      },
      "required": [
        "vulnerable"
      ],
      "title": "DSAttackResult",
      "type": "object"
    },
    "DynamicMultiTurnContentAttack": {
      "properties": {
        "converters": {
          "default": [
            "base64",
            "leetspeak",
            "unicode_confusable",
            "caesar",
            "repeat_token",
            "single_character"
          ],
          "items": {
            "$ref": "#/$defs/PromptConverter"
          },
          "title": "Converters",
          "type": "array"
        },
        "intents": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Intent"
              }
            ]
          },
          "title": "Intents",
          "type": "array"
        },
        "multiTurn": {
          "const": true,
          "default": true,
          "title": "Multiturn",
          "type": "boolean"
        },
        "severity": {
          "default": 1,
          "maximum": 4.0,
          "minimum": 1.0,
          "title": "Severity",
          "type": "integer"
        },
        "technique": {
          "const": "dynamic_content",
          "default": "dynamic_content",
          "title": "Technique",
          "type": "string"
        },
        "vector": {
          "enum": [
            "crescendo",
            "frame",
            "trolley",
            "echo_chamber"
          ],
          "title": "Vector",
          "type": "string"
        }
      },
      "required": [
        "vector"
      ],
      "title": "DynamicMultiTurnContentAttack",
      "type": "object"
    },
    "DynamicSingleTurnContentAttack": {
      "properties": {
        "converters": {
          "default": [
            "base64",
            "leetspeak",
            "unicode_confusable",
            "caesar",
            "repeat_token",
            "single_character"
          ],
          "items": {
            "$ref": "#/$defs/PromptConverter"
          },
          "title": "Converters",
          "type": "array"
        },
        "intents": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/Intent"
              }
            ]
          },
          "title": "Intents",
          "type": "array"
        },
        "severity": {
          "default": 1,
          "maximum": 4.0,
          "minimum": 1.0,
          "title": "Severity",
          "type": "integer"
        },
        "technique": {
          "const": "dynamic_content",
          "default": "dynamic_content",
          "title": "Technique",
          "type": "string"
        },
        "vector": {
          "enum": [
            "dan",
            "fictional_context_change",
            "conditional_context_change",
            "math_prompt",
            "flip",
            "persuasive_adversarial",
            "payload_splitting",
            "refusal_suppression",
            "scenario_nesting",
            "style_injection",
            "word_game",
            "fallacy_failure",
            "adversarial_metaphor",
            "persona_bullying",
            "invasive_context_engineering",
            "sugar_coated_poison",
            "developer_role_attack",
            "topic_steering",
            "bias_framing",
            "cyberpunk_stories",
            "crescendo",
            "morality_dilemma",
            "stylistic_reformulation",
            "involuntary_in_context_learning",
            "safety_paradox"
          ],
          "title": "Vector",
          "type": "string"
        }
      },
      "required": [
        "vector"
      ],
      "title": "DynamicSingleTurnContentAttack",
      "type": "object"
    },
    "HTTPMethod": {
      "enum": [
        "GET",
        "POST",
        "PUT",
        "DELETE",
        "PATCH",
        "HEAD",
        "OPTIONS"
      ],
      "title": "HTTPMethod",
      "type": "string"
    },
    "Intent": {
      "properties": {
        "severity": {
          "default": 2,
          "maximum": 4.0,
          "minimum": 1.0,
          "title": "Severity",
          "type": "integer"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/IntentType",
          "default": "custom"
        }
      },
      "required": [
        "text"
      ],
      "title": "Intent",
      "type": "object"
    },
    "IntentType": {
      "enum": [
        "custom",
        "system"
      ],
      "title": "IntentType",
      "type": "string"
    },
    "InvalidAttack": {
      "additionalProperties": true,
      "properties": {
        "technique": {
          "title": "Technique",
          "type": "string"
        }
      },
      "required": [
        "technique"
      ],
      "title": "InvalidAttack",
      "type": "object"
    },
    "OCIAuth": {
      "properties": {
        "keyId": {
          "template": true,
          "title": "Keyid",
          "type": "string"
        },
        "passphrase": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "template": true,
          "title": "Passphrase"
        },
        "privateKeyPem": {
          "template": true,
          "title": "Privatekeypem",
          "type": "string"
        }
      },
      "required": [
        "keyId",
        "privateKeyPem"
      ],
      "title": "OCIAuth",
      "type": "object"
    },
    "OperationalAttack": {
      "properties": {
        "severity": {
          "const": 1,
          "default": 1,
          "title": "Severity",
          "type": "integer"
        },
        "technique": {
          "const": "operational",
          "default": "operational",
          "title": "Technique",
          "type": "string"
        },
        "vector": {
          "$ref": "#/$defs/OperationalAttackVector"
        }
      },
      "required": [
        "vector"
      ],
      "title": "OperationalAttack",
      "type": "object"
    },
    "OperationalAttackVector": {
      "enum": [
        "tls",
        "fuzzing"
      ],
      "title": "OperationalAttackVector",
      "type": "string"
    },
    "PromptConverter": {
      "enum": [
        "base64",
        "leetspeak",
        "unicode_confusable",
        "caesar",
        "repeat_token",
        "single_character"
      ],
      "title": "PromptConverter",
      "type": "string"
    },
    "Provider": {
      "properties": {
        "authTemplate": {
          "anyOf": [
            {
              "oneOf": [
                {
                  "$ref": "#/$defs/APIRequestBlock"
                },
                {
                  "$ref": "#/$defs/APIRetryBlock"
                },
                {
                  "$ref": "#/$defs/APIWorkflowBlock"
                }
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Optional API template to retrieve temporary auth credentials",
          "title": "Authtemplate"
        },
        "availability": {
          "$ref": "#/$defs/ProviderAvailability",
          "default": {
            "global": false,
            "projectIds": []
          }
        },
        "capabilities": {
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/ProviderCapability"
              },
              {
                "type": "string"
              }
            ]
          },
          "title": "Capabilities",
          "type": "array",
          "uniqueItems": true
        },
        "hasLogo": {
          "default": false,
          "title": "Haslogo",
          "type": "boolean"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "inputs": {
          "additionalProperties": true,
          "title": "Inputs",
          "type": "object"
        },
        "maxRequestsPerSecond": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Deprecated, use requestConcurrencyLimit instead",
          "title": "Maxrequestspersecond"
        },
        "name": {
          "description": "The name can be used to identify the provider instead of the id. It is case-sensitive, unique and can only contain letters, numbers and dashes.",
          "pattern": "^[a-zA-Z0-9-_]+$",
          "title": "Name",
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Projectid"
        },
        "redTeam": {
          "default": false,
          "title": "Redteam",
          "type": "boolean"
        },
        "requestConcurrencyLimit": {
          "anyOf": [
            {
              "$ref": "#/$defs/RequestConcurrencyLimit"
            },
            {
              "type": "null"
            }
          ],
          "description": "Specifies concurrency limits for requests from campaign run attacks"
        },
        "secrets": {
          "additionalProperties": {
            "format": "uuid",
            "type": "string"
          },
          "title": "Secrets",
          "type": "object"
        },
        "siem": {
          "default": false,
          "title": "Siem",
          "type": "boolean"
        },
        "systemProviderId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Systemproviderid"
        },
        "tag": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tag"
        },
        "template": {
          "oneOf": [
            {
              "$ref": "#/$defs/APIRequestBlock"
            },
            {
              "$ref": "#/$defs/APIRetryBlock"
            },
            {
              "$ref": "#/$defs/APIWorkflowBlock"
            }
          ],
          "title": "Template"
        },
        "type": {
          "$ref": "#/$defs/ProviderType"
        }
      },
      "required": [
        "id",
        "name",
        "type",
        "template",
        "inputs",
        "secrets",
        "capabilities"
      ],
      "title": "Provider",
      "type": "object"
    },
    "ProviderAvailability": {
      "properties": {
        "global": {
          "default": false,
          "description": "If True provider can be used by all projects",
          "title": "Global",
          "type": "boolean"
        },
        "projectIds": {
          "default": [],
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "title": "Projectids",
          "type": "array",
          "uniqueItems": true
        }
      },
      "title": "ProviderAvailability",
      "type": "object"
    },
    "ProviderCapability": {
      "enum": [
        "chat",
        "red_team",
        "siem",
        "openai_chat",
        "openai_responses",
        "anthropic_messages",
        "google_generate_content"
      ],
      "title": "ProviderCapability",
      "type": "string"
    },
    "ProviderType": {
      "enum": [
        "ibm",
        "openai",
        "azure",
        "cohere",
        "ai21",
        "custom",
        "anthropic",
        "groq",
        "openai-compatible",
        "huggingface",
        "siem",
        "google",
        "bedrock"
      ],
      "title": "ProviderType",
      "type": "string"
    },
    "RefusalCheck": {
      "properties": {
        "isDeterministic": {
          "default": false,
          "title": "Isdeterministic",
          "type": "boolean"
        },
        "isRefusal": {
          "default": false,
          "title": "Isrefusal",
          "type": "boolean"
        },
        "matchedPhrases": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Matchedphrases",
          "type": "array"
        },
        "score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        },
        "sources": {
          "default": [],
          "items": {
            "$ref": "#/$defs/RefusalSources"
          },
          "title": "Sources",
          "type": "array"
        }
      },
      "title": "RefusalCheck",
      "type": "object"
    },
    "RefusalSources": {
      "enum": [
        "builtin",
        "custom"
      ],
      "title": "RefusalSources",
      "type": "string"
    },
    "RequestConcurrencyLimit": {
      "properties": {
        "decayPerSecond": {
          "anyOf": [
            {
              "exclusiveMinimum": 0.0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Number of request slots that are opened per second.\n\nSet a value to use the concurrency limit as a rate limit.\n\nFor example, to set a rate limit of 5 requests per second set requests=5 and decayPerSecond=5",
          "title": "Decaypersecond"
        },
        "requests": {
          "description": "Max number of request slots that can be occupied at once.",
          "exclusiveMinimum": 0.0,
          "title": "Requests",
          "type": "integer"
        }
      },
      "required": [
        "requests"
      ],
      "title": "RequestConcurrencyLimit",
      "type": "object"
    },
    "StaticContentAttack": {
      "properties": {
        "converters": {
          "default": [
            "base64",
            "leetspeak",
            "unicode_confusable",
            "caesar",
            "repeat_token",
            "single_character"
          ],
          "items": {
            "$ref": "#/$defs/PromptConverter"
          },
          "title": "Converters",
          "type": "array"
        },
        "pack": {
          "default": "2026-11",
          "title": "Pack",
          "type": "string"
        },
        "severity": {
          "const": 1,
          "default": 1,
          "title": "Severity",
          "type": "integer"
        },
        "technique": {
          "const": "static_content",
          "default": "static_content",
          "title": "Technique",
          "type": "string"
        },
        "vector": {
          "enum": [
            "dan",
            "fictional_context_change",
            "conditional_context_change",
            "math_prompt",
            "flip",
            "persuasive_adversarial",
            "payload_splitting",
            "refusal_suppression",
            "scenario_nesting",
            "style_injection",
            "word_game",
            "fallacy_failure",
            "adversarial_metaphor",
            "persona_bullying",
            "invasive_context_engineering",
            "sugar_coated_poison",
            "developer_role_attack",
            "topic_steering",
            "bias_framing",
            "cyberpunk_stories",
            "crescendo",
            "morality_dilemma",
            "stylistic_reformulation",
            "involuntary_in_context_learning",
            "safety_paradox"
          ],
          "title": "Vector",
          "type": "string"
        }
      },
      "required": [
        "vector"
      ],
      "title": "StaticContentAttack",
      "type": "object"
    }
  }
}