{
  "components": {
    "schemas": {
      "APIRequestBlock": {
        "properties": {
          "awsAuth": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/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": "#/components/schemas/HTTPMethod"
          },
          "ociAuth": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OCIAuth"
              },
              {
                "type": "null"
              }
            ],
            "template": true
          },
          "outputs": {
            "$ref": "#/components/schemas/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": {
            "discriminator": {
              "mapping": {
                "request": "#/components/schemas/APIRequestBlock",
                "retry": "#/components/schemas/APIRetryBlock",
                "workflow": "#/components/schemas/APIWorkflowBlock"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/APIRequestBlock"
              },
              {
                "$ref": "#/components/schemas/APIWorkflowBlock"
              },
              {
                "$ref": "#/components/schemas/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": "#/components/schemas/APIScopeOutputs",
            "default": {}
          },
          "stages": {
            "items": {
              "discriminator": {
                "mapping": {
                  "request": "#/components/schemas/APIRequestBlock",
                  "retry": "#/components/schemas/APIRetryBlock",
                  "workflow": "#/components/schemas/APIWorkflowBlock"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/APIRequestBlock"
                },
                {
                  "$ref": "#/components/schemas/APIRetryBlock"
                },
                {
                  "$ref": "#/components/schemas/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"
      },
      "AgentFingerprintStatus": {
        "enum": [
          "in_progress",
          "failed",
          "completed"
        ],
        "title": "AgentFingerprintStatus",
        "type": "string"
      },
      "AgentFingerprintSummary": {
        "properties": {
          "agentCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agentcount"
          },
          "errors": {
            "default": [],
            "items": {
              "discriminator": {
                "mapping": {
                  "incompatible_format": "#/components/schemas/FingerprintUnsupportedError",
                  "internal": "#/components/schemas/FingerprintInternalError",
                  "provider": "#/components/schemas/FingerprintProviderError"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/FingerprintProviderError"
                },
                {
                  "$ref": "#/components/schemas/FingerprintInternalError"
                },
                {
                  "$ref": "#/components/schemas/FingerprintUnsupportedError"
                }
              ]
            },
            "title": "Errors",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/AgentFingerprintStatus"
          },
          "toolCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Toolcount"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "required": [
          "status"
        ],
        "title": "AgentFingerprintSummary",
        "type": "object"
      },
      "AgentSession": {
        "properties": {
          "fingerprints": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentFingerprintSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "firstPromptAt": {
            "format": "date-time",
            "title": "Firstpromptat",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "lastPromptAt": {
            "format": "date-time",
            "title": "Lastpromptat",
            "type": "string"
          },
          "peakOutcome": {
            "$ref": "#/components/schemas/PromptOutcome"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "",
            "title": "Sessionid"
          }
        },
        "required": [
          "id",
          "firstPromptAt",
          "lastPromptAt",
          "peakOutcome",
          "projectId"
        ],
        "title": "AgentSession",
        "type": "object"
      },
      "AgentSessionCreatedEvent": {
        "properties": {
          "agentSessionId": {
            "format": "uuid",
            "title": "Agentsessionid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "agent-session-created",
            "default": "agent-session-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "agentSessionId"
        ],
        "title": "AgentSessionCreatedEvent",
        "type": "object"
      },
      "AgentSessionFingerprintsRequestedEvent": {
        "properties": {
          "agentSessionId": {
            "format": "uuid",
            "title": "Agentsessionid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "agent-session-fingerprints-requested",
            "default": "agent-session-fingerprints-requested",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "agentSessionId"
        ],
        "title": "AgentSessionFingerprintsRequestedEvent",
        "type": "object"
      },
      "AgentSessionSortBy": {
        "enum": [
          "updated_at",
          "created_at"
        ],
        "title": "AgentSessionSortBy",
        "type": "string"
      },
      "ApiTokenCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "tokenId": {
            "format": "uuid",
            "title": "Tokenid",
            "type": "string"
          },
          "type": {
            "const": "api-token-created",
            "default": "api-token-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "tokenId"
        ],
        "title": "ApiTokenCreatedEvent",
        "type": "object"
      },
      "ApiTokenRevokedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "tokenId": {
            "format": "uuid",
            "title": "Tokenid",
            "type": "string"
          },
          "type": {
            "const": "api-token-revoked",
            "default": "api-token-revoked",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "tokenId"
        ],
        "title": "ApiTokenRevokedEvent",
        "type": "object"
      },
      "AttackErrorSummary": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/CampaignRunErrorType"
          }
        },
        "required": [
          "type",
          "message"
        ],
        "title": "AttackErrorSummary",
        "type": "object"
      },
      "AttackRun": {
        "properties": {
          "attack": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/StaticContentAttack"
              },
              {
                "$ref": "#/components/schemas/DynamicSingleTurnContentAttack"
              },
              {
                "$ref": "#/components/schemas/DynamicMultiTurnContentAttack"
              },
              {
                "$ref": "#/components/schemas/OperationalAttack"
              },
              {
                "$ref": "#/components/schemas/CustomAttack"
              }
            ],
            "title": "Attack"
          },
          "errorCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 0,
            "title": "Errorcount"
          },
          "events": {
            "items": {
              "discriminator": {
                "mapping": {
                  "cancelled": "#/components/schemas/AttackRunCancelledEvent",
                  "cancelling": "#/components/schemas/AttackRunCancellingEvent",
                  "completed": "#/components/schemas/AttackRunCompletedEvent",
                  "failed": "#/components/schemas/AttackRunFailedEvent",
                  "queued": "#/components/schemas/AttackRunQueuedEvent",
                  "schedule_error": "#/components/schemas/AttackRunScheduleErrorEvent",
                  "scheduled": "#/components/schemas/AttackRunScheduledEvent",
                  "started": "#/components/schemas/AttackRunStartedEvent"
                },
                "propertyName": "event"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AttackRunQueuedEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunStartedEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunScheduledEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunCompletedEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunFailedEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunCancellingEvent"
                },
                {
                  "$ref": "#/components/schemas/AttackRunCancelledEvent"
                },
                {
                  "$ref": "#/components/schemas/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": "#/components/schemas/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"
      },
      "AttackTechnique": {
        "enum": [
          "static_content",
          "dynamic_content",
          "operational",
          "custom"
        ],
        "title": "AttackTechnique",
        "type": "string"
      },
      "AuditEvent": {
        "oneOf": [
          {
            "discriminator": {
              "mapping": {
                "agent-session-created": "#/components/schemas/AgentSessionCreatedEvent",
                "agent-session-fingerprints-requested": "#/components/schemas/AgentSessionFingerprintsRequestedEvent",
                "api-token-created": "#/components/schemas/ApiTokenCreatedEvent",
                "api-token-revoked": "#/components/schemas/ApiTokenRevokedEvent",
                "branding-created": "#/components/schemas/BrandingCreatedEvent",
                "branding-updated": "#/components/schemas/BrandingUpdatedEvent",
                "campaign-created": "#/components/schemas/CampaignCreatedEvent",
                "campaign-deleted": "#/components/schemas/CampaignDeletedEvent",
                "campaign-run-access-updated": "#/components/schemas/CampaignRunAccessUpdatedEvent",
                "campaign-run-created": "#/components/schemas/CampaignRunCreatedEvent",
                "campaign-run-deleted": "#/components/schemas/CampaignRunDeletedEvent",
                "campaign-run-retried": "#/components/schemas/CampaignRunRetriedEvent",
                "campaign-run-updated": "#/components/schemas/CampaignRunUpdatedEvent",
                "campaign-schedule-created": "#/components/schemas/CampaignScheduleCreatedEvent",
                "campaign-schedule-deleted": "#/components/schemas/CampaignScheduleDeletedEvent",
                "campaign-schedule-updated": "#/components/schemas/CampaignScheduleUpdatedEvent",
                "campaign-updated": "#/components/schemas/CampaignUpdatedEvent",
                "chatbot-created": "#/components/schemas/ChatbotCreatedEvent",
                "chatbot-project-created": "#/components/schemas/ChatbotGroupCreatedEvent",
                "chatbot-project-updated": "#/components/schemas/ChatbotGroupUpdatedEvent",
                "chatbot-updated": "#/components/schemas/ChatbotUpdatedEvent",
                "entitlement-group-created": "#/components/schemas/EntitlementGroupCreatedEvent",
                "entitlement-group-deleted": "#/components/schemas/EntitlementGroupDeletedEvent",
                "entitlement-group-updated": "#/components/schemas/EntitlementGroupUpdatedEvent",
                "entitlement-override-created": "#/components/schemas/EntitlementOverrideCreatedEvent",
                "entitlement-override-deleted": "#/components/schemas/EntitlementOverrideDeletedEvent",
                "entitlement-usage-created": "#/components/schemas/EntitlementUsageCreatedEvent",
                "entitlement-usage-deleted": "#/components/schemas/EntitlementUsageDeletedEvent",
                "file-created": "#/components/schemas/FileCreatedEvent",
                "license-created": "#/components/schemas/LicenseCreatedEvent",
                "oauth_client_created": "#/components/schemas/OAuthClientCreatedEvent",
                "oauth_client_deleted": "#/components/schemas/OAuthClientDeletedEvent",
                "oauth_client_updated": "#/components/schemas/OAuthClientUpdatedEvent",
                "organization-created": "#/components/schemas/OrganizationCreatedEvent",
                "organization-data-deleted": "#/components/schemas/OrganizationDataDeleted",
                "organization-default-role-updated": "#/components/schemas/OrganizationDefaultRoleUpdatedEvent",
                "organization-disabled": "#/components/schemas/OrganizationDisabledEvent",
                "organization-enabled": "#/components/schemas/OrganizationEnabledEvent",
                "organization-entitlements-updated": "#/components/schemas/OrganizationEntitlementsUpdatedEvent",
                "organization-prompt-recording-disabled": "#/components/schemas/OrganizationPromptRecordingDisabled",
                "organization-prompt-recording-enabled": "#/components/schemas/OrganizationPromptRecordingEnabled",
                "organization-updated": "#/components/schemas/OrganizationUpdatedEvent",
                "project-created": "#/components/schemas/ProjectCreatedEvent",
                "project-default-provider-updated": "#/components/schemas/ProjectDefaultProviderUpdatedEvent",
                "project-deleted": "#/components/schemas/ProjectDeletedEvent",
                "project-member-added": "#/components/schemas/ProjectMemberAddedEvent",
                "project-member-removed": "#/components/schemas/ProjectMemberRemovedEvent",
                "project-provider-added": "#/components/schemas/ProjectProviderAddedEvent",
                "project-provider-removed": "#/components/schemas/ProjectProviderRemovedEvent",
                "project-scanner-added": "#/components/schemas/ProjectScannerAddedEvent",
                "project-scanner-package-added": "#/components/schemas/ProjectScannerPackageAddedEvent",
                "project-scanner-package-removed": "#/components/schemas/ProjectScannerPackageRemovedEvent",
                "project-scanner-removed": "#/components/schemas/ProjectScannerRemovedEvent",
                "project-undeleted": "#/components/schemas/ProjectUndeletedEvent",
                "project-updated": "#/components/schemas/ProjectUpdatedEvent",
                "provider-availability-updated": "#/components/schemas/ProviderAvailabilityUpdatedEvent",
                "provider-created": "#/components/schemas/ProviderCreatedEvent",
                "provider-deleted": "#/components/schemas/ProviderDeletedEvent",
                "provider-disabled": "#/components/schemas/ProviderDisabledEvent",
                "provider-enabled": "#/components/schemas/ProviderEnabledEvent",
                "provider-test": "#/components/schemas/ProviderTestEvent",
                "provider-undeleted": "#/components/schemas/ProviderUndeletedEvent",
                "provider-updated": "#/components/schemas/ProviderUpdatedEvent",
                "remediation-created": "#/components/schemas/RemediationCreatedEvent",
                "remediation-deleted": "#/components/schemas/RemediationDeletedEvent",
                "remediation-deployed": "#/components/schemas/RemediationDeployedEvent",
                "remediation-rejected": "#/components/schemas/RemediationRejectedEvent",
                "role-created": "#/components/schemas/RoleCreatedEvent",
                "role-deleted": "#/components/schemas/RoleDeletedEvent",
                "role-permissions-added": "#/components/schemas/RolePermissionsAddedEvent",
                "role-permissions-removed": "#/components/schemas/RolePermissionsRemovedEvent",
                "role-updated": "#/components/schemas/RoleUpdatedEvent",
                "scanner-availability-updated": "#/components/schemas/ScannerAvailabilityUpdatedEvent",
                "scanner-created": "#/components/schemas/ScannerCreatedEvent",
                "scanner-deleted": "#/components/schemas/ScannerDeletedEvent",
                "scanner-disabled": "#/components/schemas/ScannerDisabledEvent",
                "scanner-enabled": "#/components/schemas/ScannerEnabledEvent",
                "scanner-package-availability-updated": "#/components/schemas/ScannerPackageAvailabilityUpdatedEvent",
                "scanner-package-created": "#/components/schemas/ScannerPackageCreatedEvent",
                "scanner-package-deleted": "#/components/schemas/ScannerPackageDeletedEvent",
                "scanner-package-disabled": "#/components/schemas/ScannerPackageDisabledEvent",
                "scanner-package-enabled": "#/components/schemas/ScannerPackageEnabledEvent",
                "scanner-package-undeleted": "#/components/schemas/ScannerPackageUndeletedEvent",
                "scanner-package-updated": "#/components/schemas/ScannerPackageUpdatedEvent",
                "scanner-published": "#/components/schemas/ScannerPublishedEvent",
                "scanner-template-created": "#/components/schemas/ScannerTemplateCreatedEvent",
                "scanner-template-updated": "#/components/schemas/ScannerTemplateUpdatedEvent",
                "scanner-undeleted": "#/components/schemas/ScannerUndeletedEvent",
                "scanner-unpublished": "#/components/schemas/ScannerUnpublishedEvent",
                "scanner-updated": "#/components/schemas/ScannerUpdatedEvent",
                "scanner-version-published": "#/components/schemas/ScannerVersionPublishedEvent",
                "secret-created": "#/components/schemas/SecretCreatedEvent",
                "secret-deleted": "#/components/schemas/SecretDeletedEvent",
                "secret-updated": "#/components/schemas/SecretUpdatedEvent",
                "task-canceled": "#/components/schemas/TaskCanceledEvent",
                "task-created": "#/components/schemas/TaskCreatedEvent",
                "task-updated": "#/components/schemas/TaskUpdatedEvent",
                "user-auth-method-deleted": "#/components/schemas/UserAuthenticationMethodsDeleted",
                "user-blocked": "#/components/schemas/UserBlockedEvent",
                "user-created": "#/components/schemas/UserCreatedEvent",
                "user-deleted": "#/components/schemas/UserDeletedEvent",
                "user-role-granted": "#/components/schemas/UserRoleAssignedEvent",
                "user-role-retracted": "#/components/schemas/UserRoleRetractedEvent",
                "user-roles-updated": "#/components/schemas/UserRolesUpdatedEvent",
                "user-unblocked": "#/components/schemas/UserUnblockedEvent",
                "user-updated": "#/components/schemas/UserUpdatedEvent",
                "user-verified": "#/components/schemas/UserVerifiedEvent"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AgentSessionCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/AgentSessionFingerprintsRequestedEvent"
              },
              {
                "$ref": "#/components/schemas/ApiTokenCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ApiTokenRevokedEvent"
              },
              {
                "$ref": "#/components/schemas/BrandingCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/BrandingUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignRunAccessUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignRunCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignRunDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignRunRetriedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignRunUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignScheduleCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignScheduleDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignScheduleUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/CampaignUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ChatbotCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ChatbotGroupCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ChatbotGroupUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ChatbotUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementGroupCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementGroupDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementGroupUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementOverrideCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementOverrideDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementUsageCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/EntitlementUsageDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/FileCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/LicenseCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/OAuthClientCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/OAuthClientDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/OAuthClientUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationDataDeleted"
              },
              {
                "$ref": "#/components/schemas/OrganizationDefaultRoleUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationDisabledEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationEnabledEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationEntitlementsUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/OrganizationPromptRecordingDisabled"
              },
              {
                "$ref": "#/components/schemas/OrganizationPromptRecordingEnabled"
              },
              {
                "$ref": "#/components/schemas/OrganizationUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectDefaultProviderUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectMemberAddedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectMemberRemovedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectProviderAddedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectProviderRemovedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectScannerAddedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectScannerPackageAddedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectScannerPackageRemovedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectScannerRemovedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectUndeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ProjectUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderAvailabilityUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderDisabledEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderEnabledEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderTestEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderUndeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ProviderUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/RemediationCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/RemediationDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/RemediationDeployedEvent"
              },
              {
                "$ref": "#/components/schemas/RemediationRejectedEvent"
              },
              {
                "$ref": "#/components/schemas/RoleCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/RoleDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/RolePermissionsAddedEvent"
              },
              {
                "$ref": "#/components/schemas/RolePermissionsRemovedEvent"
              },
              {
                "$ref": "#/components/schemas/RoleUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerAvailabilityUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerDisabledEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerEnabledEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageAvailabilityUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageDisabledEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageEnabledEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageUndeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPackageUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerPublishedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerTemplateCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerTemplateUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerUndeletedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerUnpublishedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/ScannerVersionPublishedEvent"
              },
              {
                "$ref": "#/components/schemas/SecretCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/SecretDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/SecretUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/TaskCanceledEvent"
              },
              {
                "$ref": "#/components/schemas/TaskCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/TaskUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/UserAuthenticationMethodsDeleted"
              },
              {
                "$ref": "#/components/schemas/UserBlockedEvent"
              },
              {
                "$ref": "#/components/schemas/UserCreatedEvent"
              },
              {
                "$ref": "#/components/schemas/UserDeletedEvent"
              },
              {
                "$ref": "#/components/schemas/UserRoleAssignedEvent"
              },
              {
                "$ref": "#/components/schemas/UserRoleRetractedEvent"
              },
              {
                "$ref": "#/components/schemas/UserRolesUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/UserUnblockedEvent"
              },
              {
                "$ref": "#/components/schemas/UserUpdatedEvent"
              },
              {
                "$ref": "#/components/schemas/UserVerifiedEvent"
              }
            ]
          },
          {
            "$ref": "#/components/schemas/LegacyAuditEvent"
          }
        ]
      },
      "AuditEventType": {
        "enum": [
          "api-token-created",
          "api-token-revoked",
          "agent-session-created",
          "agent-session-fingerprints-requested",
          "branding-created",
          "branding-updated",
          "campaign-created",
          "campaign-updated",
          "campaign-deleted",
          "campaign-run-created",
          "campaign-run-updated",
          "campaign-run-access-updated",
          "campaign-run-retried",
          "campaign-run-deleted",
          "campaign-schedule-created",
          "campaign-schedule-updated",
          "campaign-schedule-deleted",
          "chatbot-created",
          "chatbot-updated",
          "chatbot-project-created",
          "chatbot-project-updated",
          "entitlement-group-created",
          "entitlement-group-updated",
          "entitlement-group-deleted",
          "entitlement-override-created",
          "entitlement-override-deleted",
          "entitlement-usage-created",
          "entitlement-usage-deleted",
          "file-created",
          "project-created",
          "project-deleted",
          "project-undeleted",
          "project-updated",
          "project-default-provider-updated",
          "project-provider-added",
          "project-provider-removed",
          "project-scanner-added",
          "project-scanner-removed",
          "project-scanner-package-added",
          "project-scanner-package-removed",
          "project-member-added",
          "project-member-removed",
          "organization-created",
          "organization-updated",
          "organization-prompt-recording-enabled",
          "organization-prompt-recording-disabled",
          "organization-disabled",
          "organization-enabled",
          "organization-data-deleted",
          "organization-entitlements-updated",
          "organization-default-role-updated",
          "provider-created",
          "provider-deleted",
          "provider-undeleted",
          "provider-updated",
          "provider-enabled",
          "provider-disabled",
          "provider-availability-updated",
          "scanner-created",
          "scanner-updated",
          "scanner-deleted",
          "scanner-undeleted",
          "scanner-published",
          "scanner-unpublished",
          "scanner-enabled",
          "scanner-disabled",
          "scanner-availability-updated",
          "scanner-version-published",
          "scanner-package-created",
          "scanner-package-updated",
          "scanner-package-deleted",
          "scanner-package-undeleted",
          "scanner-package-enabled",
          "scanner-package-disabled",
          "scanner-package-availability-updated",
          "scanner-template-created",
          "scanner-template-updated",
          "secret-created",
          "secret-updated",
          "secret-deleted",
          "task-created",
          "task-updated",
          "task-canceled",
          "provider-test",
          "user-auth-method-deleted",
          "user-created",
          "user-updated",
          "user-deleted",
          "user-verified",
          "user-blocked",
          "user-unblocked",
          "user-roles-updated",
          "user-role-granted",
          "user-role-retracted",
          "role-created",
          "role-updated",
          "role-permissions-added",
          "role-permissions-removed",
          "role-deleted",
          "license-created",
          "oauth_client_created",
          "oauth_client_deleted",
          "oauth_client_updated",
          "remediation-created",
          "remediation-deleted",
          "remediation-deployed",
          "remediation-rejected"
        ],
        "title": "AuditEventType",
        "type": "string"
      },
      "Body_post_files": {
        "properties": {
          "file": {
            "format": "binary",
            "title": "File",
            "type": "string"
          },
          "purposes": {
            "items": {
              "enum": [
                "custom_attacks",
                "datasets"
              ],
              "type": "string"
            },
            "title": "Purposes",
            "type": "array"
          }
        },
        "required": [
          "file",
          "purposes"
        ],
        "title": "Body_post_files",
        "type": "object"
      },
      "Body_post_scanners_import": {
        "properties": {
          "file": {
            "format": "binary",
            "title": "File",
            "type": "string"
          },
          "ids": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Ids",
            "type": "array"
          }
        },
        "required": [
          "ids",
          "file"
        ],
        "title": "Body_post_scanners_import",
        "type": "object"
      },
      "BrandingConfig": {
        "properties": {
          "disablePoweredByCai": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated",
            "title": "Disablepoweredbycai"
          },
          "hasCustomLogo": {
            "default": false,
            "description": "Does the organization have a custom logo",
            "title": "Hascustomlogo",
            "type": "boolean"
          },
          "productName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated",
            "title": "Productname"
          },
          "supportEmail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The support email shown in the UI",
            "title": "Supportemail"
          }
        },
        "title": "BrandingConfig",
        "type": "object"
      },
      "BrandingCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "branding-created",
            "default": "branding-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ],
        "title": "BrandingCreatedEvent",
        "type": "object"
      },
      "BrandingUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "branding-updated",
            "default": "branding-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ],
        "title": "BrandingUpdatedEvent",
        "type": "object"
      },
      "Campaign": {
        "properties": {
          "attacks": {
            "items": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/StaticContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/DynamicSingleTurnContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/DynamicMultiTurnContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/OperationalAttack"
                    },
                    {
                      "$ref": "#/components/schemas/CustomAttack"
                    }
                  ]
                },
                {
                  "$ref": "#/components/schemas/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"
      },
      "CampaignAttack": {
        "properties": {
          "attack": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/StaticContentAttack"
                  },
                  {
                    "$ref": "#/components/schemas/DynamicSingleTurnContentAttack"
                  },
                  {
                    "$ref": "#/components/schemas/DynamicMultiTurnContentAttack"
                  },
                  {
                    "$ref": "#/components/schemas/OperationalAttack"
                  },
                  {
                    "$ref": "#/components/schemas/CustomAttack"
                  }
                ]
              },
              {
                "$ref": "#/components/schemas/InvalidAttack"
              }
            ],
            "title": "Attack"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "attack"
        ],
        "title": "CampaignAttack",
        "type": "object"
      },
      "CampaignCreatedEvent": {
        "properties": {
          "campaignId": {
            "format": "uuid",
            "title": "Campaignid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-created",
            "default": "campaign-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignId"
        ],
        "title": "CampaignCreatedEvent",
        "type": "object"
      },
      "CampaignDeletedEvent": {
        "properties": {
          "campaignId": {
            "format": "uuid",
            "title": "Campaignid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-deleted",
            "default": "campaign-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignId"
        ],
        "title": "CampaignDeletedEvent",
        "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": "#/components/schemas/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"
          },
          "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": "#/components/schemas/CampaignRunProjectAccess"
          },
          "providerErrors": {
            "additionalProperties": {
              "$ref": "#/components/schemas/CampaignRunProviderErrors"
            },
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Providererrors",
            "type": "object"
          },
          "purged": {
            "default": false,
            "title": "Purged",
            "type": "boolean"
          },
          "remediation": {
            "$ref": "#/components/schemas/CampaignRunRemediation"
          },
          "remediationSettings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/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"
          },
          "scheduleId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduleid"
          },
          "startAt": {
            "format": "date-time",
            "title": "Startat",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/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"
      },
      "CampaignRunAccessUpdatedEvent": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-run-access-updated",
            "default": "campaign-run-access-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignRunId"
        ],
        "title": "CampaignRunAccessUpdatedEvent",
        "type": "object"
      },
      "CampaignRunCreatedEvent": {
        "properties": {
          "campaignId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated, use campaignRunId",
            "title": "Campaignid"
          },
          "campaignRunId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Campaignrunid"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-run-created",
            "default": "campaign-run-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ],
        "title": "CampaignRunCreatedEvent",
        "type": "object"
      },
      "CampaignRunDeletedEvent": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-run-deleted",
            "default": "campaign-run-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignRunId"
        ],
        "title": "CampaignRunDeletedEvent",
        "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"
      },
      "CampaignRunRetriedEvent": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-run-retried",
            "default": "campaign-run-retried",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignRunId"
        ],
        "title": "CampaignRunRetriedEvent",
        "type": "object"
      },
      "CampaignRunScoreRating": {
        "enum": [
          "critical",
          "warning",
          "good",
          "ideal",
          "none"
        ],
        "title": "CampaignRunScoreRating",
        "type": "string"
      },
      "CampaignRunSearchSortBy": {
        "enum": [
          "name",
          "created_at",
          "start_at",
          "score",
          "average_performance",
          "status",
          "model"
        ],
        "title": "CampaignRunSearchSortBy",
        "type": "string"
      },
      "CampaignRunStatus": {
        "enum": [
          "scheduled",
          "in_progress",
          "complete",
          "error",
          "cancelling",
          "cancelled",
          "schedule_error"
        ],
        "title": "CampaignRunStatus",
        "type": "string"
      },
      "CampaignRunUpdatedEvent": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-run-updated",
            "default": "campaign-run-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignRunId"
        ],
        "title": "CampaignRunUpdatedEvent",
        "type": "object"
      },
      "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": "#/components/schemas/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": "#/components/schemas/CampaignRunRemediationSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "startAt": {
            "format": "date-time",
            "title": "Startat",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "campaignId",
          "providerIds",
          "startAt",
          "createdAt"
        ],
        "title": "CampaignSchedule",
        "type": "object"
      },
      "CampaignScheduleCreatedEvent": {
        "properties": {
          "campaignScheduleId": {
            "format": "uuid",
            "title": "Campaignscheduleid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-schedule-created",
            "default": "campaign-schedule-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignScheduleId"
        ],
        "title": "CampaignScheduleCreatedEvent",
        "type": "object"
      },
      "CampaignScheduleDeletedEvent": {
        "properties": {
          "campaignScheduleId": {
            "format": "uuid",
            "title": "Campaignscheduleid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-schedule-deleted",
            "default": "campaign-schedule-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignScheduleId"
        ],
        "title": "CampaignScheduleDeletedEvent",
        "type": "object"
      },
      "CampaignScheduleFrequency": {
        "enum": [
          "weeks",
          "days"
        ],
        "title": "CampaignScheduleFrequency",
        "type": "string"
      },
      "CampaignScheduleUpdatedEvent": {
        "properties": {
          "campaignScheduleId": {
            "format": "uuid",
            "title": "Campaignscheduleid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-schedule-updated",
            "default": "campaign-schedule-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignScheduleId"
        ],
        "title": "CampaignScheduleUpdatedEvent",
        "type": "object"
      },
      "CampaignSortBy": {
        "enum": [
          "name",
          "created_at",
          "last_run",
          "num_of_runs"
        ],
        "title": "CampaignSortBy",
        "type": "string"
      },
      "CampaignUpdatedEvent": {
        "properties": {
          "campaignId": {
            "format": "uuid",
            "title": "Campaignid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "campaign-updated",
            "default": "campaign-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "campaignId"
        ],
        "title": "CampaignUpdatedEvent",
        "type": "object"
      },
      "Chat": {
        "properties": {
          "access": {
            "$ref": "#/components/schemas/ChatAccess"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the project this chat belongs to",
            "title": "Projectid"
          },
          "promptId": {
            "description": "ID of the first prompt in the chat, can be used to retrieve all prompts in the chat",
            "format": "uuid",
            "title": "Promptid",
            "type": "string"
          },
          "promptTemplateId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the prompt template this chat was created from.",
            "title": "Prompttemplateid"
          },
          "starred": {
            "description": "Starred means the chat has been bookmarked or 'starred' to find later",
            "title": "Starred",
            "type": "boolean"
          },
          "updatedAt": {
            "format": "date-time",
            "title": "Updatedat",
            "type": "string"
          },
          "userId": {
            "description": "User who created the chat",
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "promptId",
          "userId",
          "starred",
          "createdAt",
          "updatedAt",
          "access"
        ],
        "title": "Chat",
        "type": "object"
      },
      "ChatAccess": {
        "properties": {
          "org": {
            "description": "If True, is accessible to anyone in the same org as the user that created the chat",
            "title": "Org",
            "type": "boolean"
          },
          "public": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "If is not None, Chat is publicly accessible to anyone with the access ID",
            "title": "Public"
          },
          "users": {
            "description": "list of users ID of users with access to the chat",
            "items": {
              "type": "string"
            },
            "title": "Users",
            "type": "array"
          }
        },
        "required": [
          "org",
          "users"
        ],
        "title": "ChatAccess",
        "type": "object"
      },
      "ChatbotCreatedEvent": {
        "properties": {
          "chatbotId": {
            "format": "uuid",
            "title": "Chatbotid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "chatbot-created",
            "default": "chatbot-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "chatbotId"
        ],
        "title": "ChatbotCreatedEvent",
        "type": "object"
      },
      "ChatbotGroupCreatedEvent": {
        "properties": {
          "chatbotGroupId": {
            "format": "uuid",
            "title": "Chatbotgroupid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "chatbot-project-created",
            "default": "chatbot-project-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "chatbotGroupId"
        ],
        "title": "ChatbotGroupCreatedEvent",
        "type": "object"
      },
      "ChatbotGroupUpdatedEvent": {
        "properties": {
          "chatbotGroupId": {
            "format": "uuid",
            "title": "Chatbotgroupid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "chatbot-project-updated",
            "default": "chatbot-project-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "chatbotGroupId"
        ],
        "title": "ChatbotGroupUpdatedEvent",
        "type": "object"
      },
      "ChatbotType": {
        "enum": [
          "teams",
          "slack"
        ],
        "title": "ChatbotType",
        "type": "string"
      },
      "ChatbotUpdatedEvent": {
        "properties": {
          "chatbotId": {
            "format": "uuid",
            "title": "Chatbotid",
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "chatbot-updated",
            "default": "chatbot-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "chatbotId"
        ],
        "title": "ChatbotUpdatedEvent",
        "type": "object"
      },
      "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"
      },
      "CustomIntentGenerationInput": {
        "properties": {
          "intent": {
            "title": "Intent",
            "type": "string"
          },
          "type": {
            "const": "custom_intent",
            "default": "custom_intent",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "intent"
        ],
        "title": "CustomIntentGenerationInput",
        "type": "object"
      },
      "CustomIntentGenerationOutput": {
        "properties": {
          "intent": {
            "title": "Intent",
            "type": "string"
          }
        },
        "required": [
          "intent"
        ],
        "title": "CustomIntentGenerationOutput",
        "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": "#/components/schemas/PromptConverter"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "errorSummary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AttackErrorSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Intent"
          },
          "intentCategory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Intentcategory"
          },
          "intentType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntentType"
              },
              {
                "type": "null"
              }
            ]
          },
          "refusalCheck": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/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"
      },
      "Dataset": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "createdBy": {
            "title": "Createdby",
            "type": "string"
          },
          "fileId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fileid"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filename"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "scannerPackageId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerpackageid"
          }
        },
        "required": [
          "id",
          "createdBy",
          "createdAt",
          "fileId",
          "filename",
          "name"
        ],
        "title": "Dataset",
        "type": "object"
      },
      "DatasetRun": {
        "properties": {
          "datasetId": {
            "format": "uuid",
            "title": "Datasetid",
            "type": "string"
          },
          "fileId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fileid"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetScores"
              },
              {
                "type": "null"
              }
            ]
          },
          "scannerId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerid"
          },
          "scannerPackageId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerpackageid"
          },
          "scannerVersionId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerversionid"
          },
          "status": {
            "$ref": "#/components/schemas/RunStatus"
          }
        },
        "required": [
          "id",
          "datasetId",
          "status"
        ],
        "title": "DatasetRun",
        "type": "object"
      },
      "DatasetScores": {
        "properties": {
          "accuracy": {
            "title": "Accuracy",
            "type": "number"
          },
          "f1Score": {
            "title": "F1Score",
            "type": "number"
          },
          "falseNegative": {
            "title": "Falsenegative",
            "type": "integer"
          },
          "falsePositive": {
            "title": "Falsepositive",
            "type": "integer"
          },
          "trueNegative": {
            "title": "Truenegative",
            "type": "integer"
          },
          "truePositive": {
            "title": "Truepositive",
            "type": "integer"
          }
        },
        "required": [
          "f1Score",
          "accuracy",
          "falseNegative",
          "truePositive",
          "trueNegative",
          "falsePositive"
        ],
        "title": "DatasetScores",
        "type": "object"
      },
      "DeleteAuthRoleBody": {
        "properties": {
          "reassignToRoleId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reassigntoroleid"
          }
        },
        "title": "DeleteAuthRoleBody",
        "type": "object"
      },
      "DeleteAuthRolePermissionsBody": {
        "properties": {
          "permissions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Permissions to remove from the existing role permission set.",
            "title": "Permissions"
          }
        },
        "title": "DeleteAuthRolePermissionsBody",
        "type": "object"
      },
      "DeleteScannerPackageBody": {
        "properties": {
          "deleteScanners": {
            "default": false,
            "description": "Whether to delete the guardrails in the package.\nIf false, the guardrails will be available for use individually.",
            "title": "Deletescanners",
            "type": "boolean"
          }
        },
        "title": "DeleteScannerPackageBody",
        "type": "object"
      },
      "DuplicateScannerRequest": {
        "properties": {
          "duplicate": {
            "description": "Duplicate the guardrail with the given ID.",
            "format": "uuid",
            "title": "Duplicate",
            "type": "string"
          }
        },
        "required": [
          "duplicate"
        ],
        "title": "DuplicateScannerRequest",
        "type": "object"
      },
      "DynamicMultiTurnContentAttack": {
        "properties": {
          "converters": {
            "default": [
              "base64",
              "leetspeak",
              "unicode_confusable",
              "caesar",
              "repeat_token",
              "single_character"
            ],
            "items": {
              "$ref": "#/components/schemas/PromptConverter"
            },
            "title": "Converters",
            "type": "array"
          },
          "intents": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "$ref": "#/components/schemas/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": "#/components/schemas/PromptConverter"
            },
            "title": "Converters",
            "type": "array"
          },
          "intents": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "$ref": "#/components/schemas/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"
            ],
            "title": "Vector",
            "type": "string"
          }
        },
        "required": [
          "vector"
        ],
        "title": "DynamicSingleTurnContentAttack",
        "type": "object"
      },
      "EntitlementGroupCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementGroupId": {
            "format": "uuid",
            "title": "Entitlementgroupid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-group-created",
            "default": "entitlement-group-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementGroupId"
        ],
        "title": "EntitlementGroupCreatedEvent",
        "type": "object"
      },
      "EntitlementGroupDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementGroupId": {
            "format": "uuid",
            "title": "Entitlementgroupid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-group-deleted",
            "default": "entitlement-group-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementGroupId"
        ],
        "title": "EntitlementGroupDeletedEvent",
        "type": "object"
      },
      "EntitlementGroupUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementGroupId": {
            "format": "uuid",
            "title": "Entitlementgroupid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-group-updated",
            "default": "entitlement-group-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementGroupId"
        ],
        "title": "EntitlementGroupUpdatedEvent",
        "type": "object"
      },
      "EntitlementOverrideCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementId": {
            "format": "uuid",
            "title": "Entitlementid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-override-created",
            "default": "entitlement-override-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementId"
        ],
        "title": "EntitlementOverrideCreatedEvent",
        "type": "object"
      },
      "EntitlementOverrideDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementId": {
            "format": "uuid",
            "title": "Entitlementid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-override-deleted",
            "default": "entitlement-override-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementId"
        ],
        "title": "EntitlementOverrideDeletedEvent",
        "type": "object"
      },
      "EntitlementUsageCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementId": {
            "format": "uuid",
            "title": "Entitlementid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-usage-created",
            "default": "entitlement-usage-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementId"
        ],
        "title": "EntitlementUsageCreatedEvent",
        "type": "object"
      },
      "EntitlementUsageDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "entitlementId": {
            "format": "uuid",
            "title": "Entitlementid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "entitlement-usage-deleted",
            "default": "entitlement-usage-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "entitlementId"
        ],
        "title": "EntitlementUsageDeletedEvent",
        "type": "object"
      },
      "ErrorScanResult": {
        "properties": {
          "msg": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Msg"
          },
          "type": {
            "const": "error",
            "default": "error",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "ErrorScanResult",
        "type": "object"
      },
      "ExportProjectSettings": {
        "properties": {
          "addedPackagesIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Addedpackagesids",
            "type": "array"
          },
          "addedProviderIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Addedproviderids",
            "type": "array"
          },
          "addedScannerIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Addedscannerids",
            "type": "array"
          },
          "project": {
            "$ref": "#/components/schemas/Project"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "title": "Roles",
            "type": "array"
          }
        },
        "required": [
          "project",
          "addedScannerIds",
          "addedPackagesIds",
          "addedProviderIds",
          "roles"
        ],
        "title": "ExportProjectSettings",
        "type": "object"
      },
      "ExportScannersBody": {
        "properties": {
          "packageIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of guardrail packages to export.",
            "title": "Packageids"
          },
          "scannerIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of guardrails to export.",
            "title": "Scannerids"
          }
        },
        "title": "ExportScannersBody",
        "type": "object"
      },
      "ExportSettings": {
        "properties": {
          "packages": {
            "items": {
              "$ref": "#/components/schemas/ScannerPackage"
            },
            "title": "Packages",
            "type": "array"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ExportProjectSettings"
            },
            "title": "Projects",
            "type": "array"
          },
          "providers": {
            "items": {
              "$ref": "#/components/schemas/Provider"
            },
            "title": "Providers",
            "type": "array"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "title": "Roles",
            "type": "array"
          },
          "scanners": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ScannerExport"
                },
                {
                  "$ref": "#/components/schemas/Scanner"
                }
              ]
            },
            "title": "Scanners",
            "type": "array"
          },
          "secrets": {
            "items": {
              "$ref": "#/components/schemas/Secret"
            },
            "title": "Secrets",
            "type": "array"
          }
        },
        "required": [
          "projects",
          "scanners",
          "packages",
          "providers",
          "secrets",
          "roles"
        ],
        "title": "ExportSettings",
        "type": "object"
      },
      "File": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "format": "binary",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "contentType": {
            "title": "Contenttype",
            "type": "string"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiresat"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "orgId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Orgid"
          },
          "resourceId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resourceid"
          }
        },
        "required": [
          "id",
          "name",
          "contentType"
        ],
        "title": "File",
        "type": "object"
      },
      "FileCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "fileId": {
            "format": "uuid",
            "title": "Fileid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "file-created",
            "default": "file-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "fileId"
        ],
        "title": "FileCreatedEvent",
        "type": "object"
      },
      "FileMetadata": {
        "properties": {
          "purposes": {
            "items": {
              "$ref": "#/components/schemas/FilePurpose"
            },
            "title": "Purposes",
            "type": "array",
            "uniqueItems": true
          },
          "rowCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rowcount"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          }
        },
        "required": [
          "purposes"
        ],
        "title": "FileMetadata",
        "type": "object"
      },
      "FilePurpose": {
        "enum": [
          "custom_attacks",
          "datasets",
          "dataset_runs",
          "remediation_result"
        ],
        "title": "FilePurpose",
        "type": "string"
      },
      "FingerprintInternalError": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "const": "internal",
            "default": "internal",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "FingerprintInternalError",
        "type": "object"
      },
      "FingerprintProviderError": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "statusCode": {
            "title": "Statuscode",
            "type": "integer"
          },
          "type": {
            "const": "provider",
            "default": "provider",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "message",
          "providerId",
          "statusCode"
        ],
        "title": "FingerprintProviderError",
        "type": "object"
      },
      "FingerprintUnsupportedError": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "providerId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Providerid"
          },
          "type": {
            "const": "incompatible_format",
            "default": "incompatible_format",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "FingerprintUnsupportedError",
        "type": "object"
      },
      "FlaggedSpan": {
        "properties": {
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "span": {
            "maxItems": 2,
            "minItems": 2,
            "prefixItems": [
              {
                "type": "integer"
              },
              {
                "type": "integer"
              }
            ],
            "title": "Span",
            "type": "array"
          },
          "versionId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Versionid"
          }
        },
        "required": [
          "scannerId",
          "span"
        ],
        "title": "FlaggedSpan",
        "type": "object"
      },
      "GenAIScannerConfig": {
        "properties": {
          "input": {
            "default": "",
            "title": "Input",
            "type": "string"
          },
          "scanContext": {
            "default": "directional",
            "description": "Describes the context that is provided to the scanner\nindividual: Scan only the latest message\ndirectional: Scan all messages in the conversation in the same direction as the latest message",
            "enum": [
              "individual",
              "directional"
            ],
            "title": "Scancontext",
            "type": "string"
          },
          "type": {
            "default": "custom",
            "enum": [
              "genai",
              "custom"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "title": "GenAIScannerConfig",
        "type": "object"
      },
      "GenAIScannerResult": {
        "properties": {
          "type": {
            "default": "custom",
            "enum": [
              "genai",
              "custom"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "title": "GenAIScannerResult",
        "type": "object"
      },
      "GetAgentSessionResponse": {
        "properties": {
          "agentSession": {
            "$ref": "#/components/schemas/AgentSession"
          }
        },
        "required": [
          "agentSession"
        ],
        "title": "GetAgentSessionResponse",
        "type": "object"
      },
      "GetAgentSessionsResponse": {
        "properties": {
          "agentSessions": {
            "items": {
              "$ref": "#/components/schemas/AgentSession"
            },
            "title": "Agentsessions",
            "type": "array"
          },
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          }
        },
        "required": [
          "agentSessions"
        ],
        "title": "GetAgentSessionsResponse",
        "type": "object"
      },
      "GetAuditEventResponse": {
        "properties": {
          "event": {
            "$ref": "#/components/schemas/AuditEvent",
            "description": "Data for requested event"
          }
        },
        "required": [
          "event"
        ],
        "title": "GetAuditEventResponse",
        "type": "object"
      },
      "GetAuditResponse": {
        "properties": {
          "events": {
            "description": "Events matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/AuditEvent"
            },
            "title": "Events",
            "type": "array"
          },
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          }
        },
        "required": [
          "events"
        ],
        "title": "GetAuditResponse",
        "type": "object"
      },
      "GetAuthRoleDefaultResponse": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/Role",
            "description": "The requested role."
          }
        },
        "required": [
          "role"
        ],
        "title": "GetAuthRoleDefaultResponse",
        "type": "object"
      },
      "GetAuthRoleResponse": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/Role",
            "description": "The requested role."
          }
        },
        "required": [
          "role"
        ],
        "title": "GetAuthRoleResponse",
        "type": "object"
      },
      "GetAuthRolesResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "roles": {
            "description": "Roles matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "title": "Roles",
            "type": "array"
          }
        },
        "required": [
          "roles"
        ],
        "title": "GetAuthRolesResponse",
        "type": "object"
      },
      "GetBrandingResponse": {
        "properties": {
          "config": {
            "$ref": "#/components/schemas/BrandingConfig"
          }
        },
        "required": [
          "config"
        ],
        "title": "GetBrandingResponse",
        "type": "object"
      },
      "GetCampaignResponse": {
        "properties": {
          "campaign": {
            "$ref": "#/components/schemas/Campaign",
            "description": "Requested campaign object"
          }
        },
        "required": [
          "campaign"
        ],
        "title": "GetCampaignResponse",
        "type": "object"
      },
      "GetCampaignRunResponse": {
        "properties": {
          "campaign": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Campaign"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaignRun": {
            "$ref": "#/components/schemas/CampaignRun"
          },
          "providers": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Provider"
            },
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Providers",
            "type": "object"
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignSchedule"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaignRun",
          "providers"
        ],
        "title": "GetCampaignRunResponse",
        "type": "object"
      },
      "GetCampaignRunsResponse": {
        "properties": {
          "campaignRuns": {
            "description": "Campaign runs matching the given criteria",
            "items": {
              "$ref": "#/components/schemas/CampaignRun"
            },
            "title": "Campaignruns",
            "type": "array"
          },
          "campaigns": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Campaign"
            },
            "default": {},
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Campaigns",
            "type": "object"
          },
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "providers": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Provider"
            },
            "default": {},
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Providers",
            "type": "object"
          },
          "remediations": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Remediation"
            },
            "default": {},
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Remediations",
            "type": "object"
          },
          "schedules": {
            "additionalProperties": {
              "$ref": "#/components/schemas/CampaignSchedule"
            },
            "default": {},
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Schedules",
            "type": "object"
          },
          "users": {
            "additionalProperties": {
              "$ref": "#/components/schemas/User"
            },
            "default": {},
            "title": "Users",
            "type": "object"
          }
        },
        "required": [
          "campaignRuns"
        ],
        "title": "GetCampaignRunsResponse",
        "type": "object"
      },
      "GetCampaignSchedulesResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "schedules": {
            "description": "Campaign schedules matching the given criteria",
            "items": {
              "$ref": "#/components/schemas/CampaignSchedule"
            },
            "title": "Schedules",
            "type": "array"
          }
        },
        "required": [
          "schedules"
        ],
        "title": "GetCampaignSchedulesResponse",
        "type": "object"
      },
      "GetCampaignsResponse": {
        "properties": {
          "campaigns": {
            "description": "Campaigns matching the given criteria",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            },
            "title": "Campaigns",
            "type": "array"
          },
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "users": {
            "additionalProperties": {
              "$ref": "#/components/schemas/User"
            },
            "default": {},
            "title": "Users",
            "type": "object"
          }
        },
        "required": [
          "campaigns"
        ],
        "title": "GetCampaignsResponse",
        "type": "object"
      },
      "GetChatResponse": {
        "properties": {
          "chat": {
            "$ref": "#/components/schemas/Chat",
            "description": "Requested chat object."
          },
          "prompts": {
            "description": "Prompts contained in the chat.",
            "items": {
              "$ref": "#/components/schemas/Prompt"
            },
            "title": "Prompts",
            "type": "array"
          }
        },
        "required": [
          "chat",
          "prompts"
        ],
        "title": "GetChatResponse",
        "type": "object"
      },
      "GetChatsResponse": {
        "properties": {
          "chats": {
            "description": "Chats matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/Chat"
            },
            "title": "Chats",
            "type": "array"
          }
        },
        "required": [
          "chats"
        ],
        "title": "GetChatsResponse",
        "type": "object"
      },
      "GetDatasetResponse": {
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/Dataset"
          }
        },
        "required": [
          "dataset"
        ],
        "title": "GetDatasetResponse",
        "type": "object"
      },
      "GetDatasetRunResponse": {
        "properties": {
          "dataset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dataset"
              },
              {
                "type": "null"
              }
            ]
          },
          "run": {
            "$ref": "#/components/schemas/DatasetRun"
          },
          "scanner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Scanner"
              },
              {
                "type": "null"
              }
            ]
          },
          "scannerPackage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerPackage"
              },
              {
                "type": "null"
              }
            ]
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/User"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "run"
        ],
        "title": "GetDatasetRunResponse",
        "type": "object"
      },
      "GetDatasetRunsResponse": {
        "properties": {
          "datasetRuns": {
            "description": "Array of dataset runs.",
            "items": {
              "$ref": "#/components/schemas/DatasetRun"
            },
            "title": "Datasetruns",
            "type": "array"
          },
          "datasets": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset"
            },
            "default": {},
            "description": "Map of dataset IDs to datasets.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Datasets",
            "type": "object"
          },
          "scannerPackages": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ScannerPackage"
            },
            "default": {},
            "description": "Map of guardrail version IDs to guardrails.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scannerpackages",
            "type": "object"
          },
          "scanners": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Scanner"
            },
            "default": {},
            "description": "Map of guardrail version IDs to guardrails.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scanners",
            "type": "object"
          },
          "users": {
            "additionalProperties": {
              "$ref": "#/components/schemas/User"
            },
            "default": {},
            "title": "Users",
            "type": "object"
          }
        },
        "required": [
          "datasetRuns"
        ],
        "title": "GetDatasetRunsResponse",
        "type": "object"
      },
      "GetDatasetsResponse": {
        "properties": {
          "datasetRuns": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DatasetRun"
            },
            "default": {},
            "description": "Map of dataset run IDs to runs.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Datasetruns",
            "type": "object"
          },
          "datasets": {
            "description": "Array of datasets.",
            "items": {
              "$ref": "#/components/schemas/Dataset"
            },
            "title": "Datasets",
            "type": "array"
          },
          "scannerPackages": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ScannerPackage"
            },
            "default": {},
            "description": "Map of guardrail version IDs to guardrails.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scannerpackages",
            "type": "object"
          },
          "scanners": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Scanner"
            },
            "default": {},
            "description": "Map of guardrail version IDs to guardrails.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scanners",
            "type": "object"
          },
          "users": {
            "additionalProperties": {
              "$ref": "#/components/schemas/User"
            },
            "default": {},
            "description": "Map of user IDs to users.",
            "title": "Users",
            "type": "object"
          }
        },
        "required": [
          "datasets"
        ],
        "title": "GetDatasetsResponse",
        "type": "object"
      },
      "GetFileResponse": {
        "properties": {
          "file": {
            "$ref": "#/components/schemas/File",
            "description": "The requested file metadata."
          }
        },
        "required": [
          "file"
        ],
        "title": "GetFileResponse",
        "type": "object"
      },
      "GetGlobalProjectResponse": {
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project",
            "description": "The default project for the group/chatbot specified or global settings if neither is given."
          }
        },
        "required": [
          "project"
        ],
        "title": "GetGlobalProjectResponse",
        "type": "object"
      },
      "GetLicenseResponse": {
        "properties": {
          "license": {
            "$ref": "#/components/schemas/LicenseStatus"
          }
        },
        "required": [
          "license"
        ],
        "title": "GetLicenseResponse",
        "type": "object"
      },
      "GetOrgResponse": {
        "properties": {
          "org": {
            "$ref": "#/components/schemas/Organization"
          }
        },
        "required": [
          "org"
        ],
        "title": "GetOrgResponse",
        "type": "object"
      },
      "GetOrganizationPreferencesResponse": {
        "properties": {
          "preferences": {
            "description": "List of organization preferences.",
            "items": {
              "$ref": "#/components/schemas/Setting"
            },
            "title": "Preferences",
            "type": "array"
          }
        },
        "required": [
          "preferences"
        ],
        "title": "GetOrganizationPreferencesResponse",
        "type": "object"
      },
      "GetProjectResponse": {
        "properties": {
          "project": {
            "$ref": "#/components/schemas/Project",
            "description": "Requested project object."
          }
        },
        "required": [
          "project"
        ],
        "title": "GetProjectResponse",
        "type": "object"
      },
      "GetProjectScannersResponse": {
        "properties": {
          "projectScanners": {
            "$ref": "#/components/schemas/ProjectScanners"
          }
        },
        "required": [
          "projectScanners"
        ],
        "title": "GetProjectScannersResponse",
        "type": "object"
      },
      "GetProjectsResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "projects": {
            "description": "Projects matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/Project"
            },
            "title": "Projects",
            "type": "array"
          }
        },
        "required": [
          "projects"
        ],
        "title": "GetProjectsResponse",
        "type": "object"
      },
      "GetPromptResponse": {
        "properties": {
          "memory": {
            "description": "Parent prompts of the request prompt",
            "items": {
              "$ref": "#/components/schemas/Prompt"
            },
            "title": "Memory",
            "type": "array"
          },
          "prompt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Prompt"
              },
              {
                "$ref": "#/components/schemas/ScanRequest"
              }
            ],
            "description": "Data for requested prompt",
            "title": "Prompt"
          },
          "promptScanners": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectScanners"
              },
              {
                "type": "null"
              }
            ],
            "description": "Data for guardrails that run on the prompt"
          }
        },
        "required": [
          "prompt",
          "memory"
        ],
        "title": "GetPromptResponse",
        "type": "object"
      },
      "GetPromptTemplateResponse": {
        "properties": {
          "promptTemplate": {
            "$ref": "#/components/schemas/PromptTemplate",
            "description": "Requested prompt template object."
          },
          "prompts": {
            "description": "Prompts contained in the prompt template.",
            "items": {
              "$ref": "#/components/schemas/Prompt"
            },
            "title": "Prompts",
            "type": "array"
          }
        },
        "required": [
          "promptTemplate",
          "prompts"
        ],
        "title": "GetPromptTemplateResponse",
        "type": "object"
      },
      "GetPromptTemplatesResponse": {
        "properties": {
          "promptTemplates": {
            "description": "Prompt templates matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/PromptTemplate"
            },
            "title": "Prompttemplates",
            "type": "array"
          }
        },
        "required": [
          "promptTemplates"
        ],
        "title": "GetPromptTemplatesResponse",
        "type": "object"
      },
      "GetPromptsResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "prompts": {
            "description": "Prompts matching the given filter criteria.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Prompt"
                },
                {
                  "$ref": "#/components/schemas/ScanRequest"
                }
              ]
            },
            "title": "Prompts",
            "type": "array"
          }
        },
        "required": [
          "prompts"
        ],
        "title": "GetPromptsResponse",
        "type": "object"
      },
      "GetProviderResponse": {
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/Provider",
            "description": "Requested provider object."
          }
        },
        "required": [
          "provider"
        ],
        "title": "GetProviderResponse",
        "type": "object"
      },
      "GetProvidersResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "providers": {
            "description": "Providers matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/Provider"
            },
            "title": "Providers",
            "type": "array"
          }
        },
        "required": [
          "providers"
        ],
        "title": "GetProvidersResponse",
        "type": "object"
      },
      "GetPublicChatResponse": {
        "properties": {
          "chat": {
            "$ref": "#/components/schemas/Chat",
            "description": "Requested chat object."
          },
          "prompts": {
            "description": "Prompts contained in the chat.",
            "items": {
              "$ref": "#/components/schemas/PublicPrompt"
            },
            "title": "Prompts",
            "type": "array"
          },
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicProvider"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider the chat was sent to, if any."
          },
          "user": {
            "$ref": "#/components/schemas/User",
            "description": "Details of the user who owns the chat."
          }
        },
        "required": [
          "chat",
          "prompts",
          "user"
        ],
        "title": "GetPublicChatResponse",
        "type": "object"
      },
      "GetScanResponse": {
        "properties": {
          "scan": {
            "$ref": "#/components/schemas/ScanRequest",
            "description": "Requested scan request object."
          }
        },
        "required": [
          "scan"
        ],
        "title": "GetScanResponse",
        "type": "object"
      },
      "GetScannerPackageResponse": {
        "properties": {
          "package": {
            "$ref": "#/components/schemas/ScannerPackage",
            "description": "Requested guardrail package object."
          },
          "scanners": {
            "description": "Guardrails contained in the package.",
            "items": {
              "$ref": "#/components/schemas/Scanner"
            },
            "title": "Scanners",
            "type": "array"
          }
        },
        "required": [
          "package",
          "scanners"
        ],
        "title": "GetScannerPackageResponse",
        "type": "object"
      },
      "GetScannerPackagesResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "packages": {
            "description": "Packages matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/ScannerPackage"
            },
            "title": "Packages",
            "type": "array"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          }
        },
        "required": [
          "packages"
        ],
        "title": "GetScannerPackagesResponse",
        "type": "object"
      },
      "GetScannerResponse": {
        "properties": {
          "scanner": {
            "$ref": "#/components/schemas/Scanner",
            "description": "Requested guardrail object."
          }
        },
        "required": [
          "scanner"
        ],
        "title": "GetScannerResponse",
        "type": "object"
      },
      "GetScannerVersionsResponse": {
        "properties": {
          "versions": {
            "description": "Metadata for all versions of the chosen guardrail.",
            "items": {
              "$ref": "#/components/schemas/ScannerVersionMeta"
            },
            "title": "Versions",
            "type": "array"
          }
        },
        "required": [
          "versions"
        ],
        "title": "GetScannerVersionsResponse",
        "type": "object"
      },
      "GetScannersResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "scannerPackages": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/ScannerPackage"
                },
                "propertyNames": {
                  "format": "uuid"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerpackages"
          },
          "scanners": {
            "description": "Guardrails matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/Scanner"
            },
            "title": "Scanners",
            "type": "array"
          }
        },
        "required": [
          "scanners"
        ],
        "title": "GetScannersResponse",
        "type": "object"
      },
      "GetScansResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "scans": {
            "description": "Scan requests objects matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/ScanRequest"
            },
            "title": "Scans",
            "type": "array"
          }
        },
        "required": [
          "scans"
        ],
        "title": "GetScansResponse",
        "type": "object"
      },
      "GetSecretResponse": {
        "properties": {
          "secret": {
            "$ref": "#/components/schemas/Secret",
            "description": "Requested secret object with the value obfuscated."
          }
        },
        "required": [
          "secret"
        ],
        "title": "GetSecretResponse",
        "type": "object"
      },
      "GetSecretsResponse": {
        "properties": {
          "secrets": {
            "description": "All secrets available, with their values obfuscated.",
            "items": {
              "$ref": "#/components/schemas/Secret"
            },
            "title": "Secrets",
            "type": "array"
          }
        },
        "required": [
          "secrets"
        ],
        "title": "GetSecretsResponse",
        "type": "object"
      },
      "GetSystemProviderResponse": {
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/Provider",
            "description": "Requested system provider object."
          }
        },
        "required": [
          "provider"
        ],
        "title": "GetSystemProviderResponse",
        "type": "object"
      },
      "GetSystemProvidersResponse": {
        "properties": {
          "providers": {
            "description": "Available system providers.",
            "items": {
              "$ref": "#/components/schemas/Provider"
            },
            "title": "Providers",
            "type": "array"
          }
        },
        "required": [
          "providers"
        ],
        "title": "GetSystemProvidersResponse",
        "type": "object"
      },
      "GetTokensResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "tokens": {
            "items": {
              "$ref": "#/components/schemas/Token"
            },
            "title": "Tokens",
            "type": "array"
          }
        },
        "required": [
          "tokens"
        ],
        "title": "GetTokensResponse",
        "type": "object"
      },
      "GetUserResponse": {
        "properties": {
          "roles": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Role"
            },
            "default": {},
            "description": "The user's roles if requested",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Roles",
            "type": "object"
          },
          "user": {
            "$ref": "#/components/schemas/User",
            "description": "Requested user object."
          }
        },
        "required": [
          "user"
        ],
        "title": "GetUserResponse",
        "type": "object"
      },
      "GetUsersMeResponse": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User",
            "description": "The currently authenticated user."
          }
        },
        "required": [
          "user"
        ],
        "title": "GetUsersMeResponse",
        "type": "object"
      },
      "GetUsersResponse": {
        "properties": {
          "next": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the next page, if any.",
            "title": "Next"
          },
          "prev": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cursor to the previous page, if any.",
            "title": "Prev"
          },
          "roles": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Role"
            },
            "default": {},
            "description": "All roles that are held by user's in the response, if requested.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Roles",
            "type": "object"
          },
          "users": {
            "description": "Users matching the given filter criteria.",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "title": "Users",
            "type": "array"
          }
        },
        "required": [
          "users"
        ],
        "title": "GetUsersResponse",
        "type": "object"
      },
      "GoogleGenerateContentMethod": {
        "enum": [
          "generateContent",
          "streamGenerateContent"
        ],
        "title": "GoogleGenerateContentMethod",
        "type": "string"
      },
      "HTTPMethod": {
        "enum": [
          "GET",
          "POST",
          "PUT",
          "DELETE",
          "PATCH",
          "HEAD",
          "OPTIONS"
        ],
        "title": "HTTPMethod",
        "type": "string"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "Intent": {
        "properties": {
          "severity": {
            "default": 2,
            "maximum": 4.0,
            "minimum": 1.0,
            "title": "Severity",
            "type": "integer"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/IntentType",
            "default": "custom"
          }
        },
        "required": [
          "text"
        ],
        "title": "Intent",
        "type": "object"
      },
      "IntentType": {
        "enum": [
          "custom",
          "system"
        ],
        "title": "IntentType",
        "type": "string"
      },
      "InternalScannerSource": {
        "properties": {
          "type": {
            "const": "internal",
            "default": "internal",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "InternalScannerSource",
        "type": "object"
      },
      "InvalidAttack": {
        "additionalProperties": true,
        "properties": {
          "technique": {
            "title": "Technique",
            "type": "string"
          }
        },
        "required": [
          "technique"
        ],
        "title": "InvalidAttack",
        "type": "object"
      },
      "KeywordScannerConfig": {
        "properties": {
          "type": {
            "const": "keyword",
            "default": "keyword",
            "title": "Type",
            "type": "string"
          },
          "words": {
            "description": "Words to check for in the prompt or response. Case insensitive. Empty strings will be removed.",
            "items": {
              "type": "string"
            },
            "title": "Words",
            "type": "array"
          }
        },
        "required": [
          "words"
        ],
        "title": "KeywordScannerConfig",
        "type": "object"
      },
      "KeywordScannerResult": {
        "properties": {
          "matches": {
            "additionalProperties": {
              "items": {
                "maxItems": 2,
                "minItems": 2,
                "prefixItems": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "integer"
                  }
                ],
                "type": "array"
              },
              "type": "array"
            },
            "title": "Matches",
            "type": "object"
          },
          "type": {
            "const": "keyword",
            "default": "keyword",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "matches"
        ],
        "title": "KeywordScannerResult",
        "type": "object"
      },
      "LegacyAuditEvent": {
        "additionalProperties": true,
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {}
            ],
            "title": "Type"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/User"
              },
              {
                "$ref": "#/components/schemas/LegacyUser"
              }
            ],
            "title": "User"
          }
        },
        "required": [
          "type",
          "user"
        ],
        "title": "LegacyAuditEvent",
        "type": "object"
      },
      "LegacyScannerConfig": {
        "additionalProperties": true,
        "properties": {},
        "title": "LegacyScannerConfig",
        "type": "object"
      },
      "LegacyScannerResult": {
        "additionalProperties": true,
        "properties": {},
        "title": "LegacyScannerResult",
        "type": "object"
      },
      "LegacyUser": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "org": {
            "title": "Org",
            "type": "string"
          }
        },
        "required": [
          "id",
          "org"
        ],
        "title": "LegacyUser",
        "type": "object"
      },
      "LicenseCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "license-created",
            "default": "license-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user"
        ],
        "title": "LicenseCreatedEvent",
        "type": "object"
      },
      "LicenseStatus": {
        "properties": {
          "expiry": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expiry"
          },
          "hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hash"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "LicenseStatus",
        "type": "object"
      },
      "NewSecret": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "value": {
            "format": "password",
            "title": "Value",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "name",
          "value"
        ],
        "title": "NewSecret",
        "type": "object"
      },
      "OAuthClientCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "oauthClientId": {
            "title": "Oauthclientid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "oauth_client_created",
            "default": "oauth_client_created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "oauthClientId"
        ],
        "title": "OAuthClientCreatedEvent",
        "type": "object"
      },
      "OAuthClientDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "oauthClientId": {
            "title": "Oauthclientid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "oauth_client_deleted",
            "default": "oauth_client_deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "oauthClientId"
        ],
        "title": "OAuthClientDeletedEvent",
        "type": "object"
      },
      "OAuthClientUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "oauthClientId": {
            "title": "Oauthclientid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "oauth_client_updated",
            "default": "oauth_client_updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "oauthClientId"
        ],
        "title": "OAuthClientUpdatedEvent",
        "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": "#/components/schemas/OperationalAttackVector"
          }
        },
        "required": [
          "vector"
        ],
        "title": "OperationalAttack",
        "type": "object"
      },
      "OperationalAttackVector": {
        "enum": [
          "tls",
          "fuzzing"
        ],
        "title": "OperationalAttackVector",
        "type": "string"
      },
      "OrgExport": {
        "properties": {
          "settings": {
            "$ref": "#/components/schemas/ExportSettings"
          },
          "version": {
            "exclusiveMinimum": 0.0,
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "version",
          "settings"
        ],
        "title": "OrgExport",
        "type": "object"
      },
      "Organization": {
        "properties": {
          "adminRoleId": {
            "format": "uuid",
            "title": "Adminroleid",
            "type": "string"
          },
          "applicationUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Applicationurl"
          },
          "disabled": {
            "default": false,
            "title": "Disabled",
            "type": "boolean"
          },
          "entitlements": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entitlements"
          },
          "hasOwner": {
            "default": false,
            "title": "Hasowner",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "ownerRoleId": {
            "format": "uuid",
            "title": "Ownerroleid",
            "type": "string"
          },
          "requireMfa": {
            "default": false,
            "title": "Requiremfa",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "ownerRoleId",
          "adminRoleId"
        ],
        "title": "Organization",
        "type": "object"
      },
      "OrganizationCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-created",
            "default": "organization-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationCreatedEvent",
        "type": "object"
      },
      "OrganizationDataDeleted": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-data-deleted",
            "default": "organization-data-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationDataDeleted",
        "type": "object"
      },
      "OrganizationDefaultRoleUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "organization-default-role-updated",
            "default": "organization-default-role-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId",
          "roleId"
        ],
        "title": "OrganizationDefaultRoleUpdatedEvent",
        "type": "object"
      },
      "OrganizationDisabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-disabled",
            "default": "organization-disabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationDisabledEvent",
        "type": "object"
      },
      "OrganizationEnabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-enabled",
            "default": "organization-enabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationEnabledEvent",
        "type": "object"
      },
      "OrganizationEntitlementsUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-entitlements-updated",
            "default": "organization-entitlements-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationEntitlementsUpdatedEvent",
        "type": "object"
      },
      "OrganizationPromptRecordingDisabled": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-prompt-recording-disabled",
            "default": "organization-prompt-recording-disabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationPromptRecordingDisabled",
        "type": "object"
      },
      "OrganizationPromptRecordingEnabled": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-prompt-recording-enabled",
            "default": "organization-prompt-recording-enabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationPromptRecordingEnabled",
        "type": "object"
      },
      "OrganizationUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "orgId": {
            "title": "Orgid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "organization-updated",
            "default": "organization-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "orgId"
        ],
        "title": "OrganizationUpdatedEvent",
        "type": "object"
      },
      "PatchAuthRoleBody": {
        "properties": {
          "isDefault": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set the new role as the default.",
            "title": "Isdefault"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name of the role. Requires case insensitive uniqueness.",
            "title": "Name"
          },
          "permissions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "New set of the permissions assigned by the role. Replaces existing set.\n\nTo add/remove roles use PATCH/DELETE `/auth/roles/{roleId}/permissions`",
            "title": "Permissions"
          }
        },
        "title": "PatchAuthRoleBody",
        "type": "object"
      },
      "PatchAuthRolePermissionsBody": {
        "properties": {
          "permissions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Permissions to add to the existing role permission set.",
            "title": "Permissions"
          }
        },
        "title": "PatchAuthRolePermissionsBody",
        "type": "object"
      },
      "PatchBrandingBody": {
        "properties": {
          "config": {
            "$ref": "#/components/schemas/BrandingConfig"
          }
        },
        "required": [
          "config"
        ],
        "title": "PatchBrandingBody",
        "type": "object"
      },
      "PatchCampaignBody": {
        "properties": {
          "attacks": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/StaticContentAttack"
                        },
                        {
                          "$ref": "#/components/schemas/DynamicSingleTurnContentAttack"
                        },
                        {
                          "$ref": "#/components/schemas/DynamicMultiTurnContentAttack"
                        },
                        {
                          "$ref": "#/components/schemas/OperationalAttack"
                        },
                        {
                          "$ref": "#/components/schemas/CustomAttack"
                        }
                      ]
                    },
                    {
                      "enum": [
                        "static_content",
                        "operational"
                      ],
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "New list of attacks to run as part of this campaign",
            "title": "Attacks"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New description for the campaign",
            "title": "Description"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name for the campaign.",
            "title": "Name"
          }
        },
        "title": "PatchCampaignBody",
        "type": "object"
      },
      "PatchCampaignRunBody": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "preserve": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "If true, the campaign run and its associated data will be preserved from deletion.",
            "title": "Preserve"
          },
          "remediationSettings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignRunRemediationSettings"
              },
              {
                "type": "null"
              }
            ],
            "description": "Determines if the campaign run will automatically create a remediation for vulnerabilities found"
          },
          "startAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New time to start the campaign run",
            "title": "Startat"
          },
          "status": {
            "anyOf": [
              {
                "const": "cancelled",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "If received, the campaign run will be prevented from running in the future.",
            "title": "Status"
          }
        },
        "title": "PatchCampaignRunBody",
        "type": "object"
      },
      "PatchCampaignRunProjectAccessBody": {
        "properties": {
          "global": {
            "description": "If true, the campaign run is available to all projects in the organization",
            "title": "Global",
            "type": "boolean"
          },
          "projectIds": {
            "default": [],
            "description": "List of project IDs that have access to the campaign run (must be empty if available_globally is true)",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Projectids",
            "type": "array"
          }
        },
        "required": [
          "global"
        ],
        "title": "PatchCampaignRunProjectAccessBody",
        "type": "object"
      },
      "PatchChatBody": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "orgAccess": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Allow the chat to be access by anyone in the org",
            "title": "Orgaccess"
          },
          "publicAccess": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Make the chat publicly shareable",
            "title": "Publicaccess"
          },
          "removeUserAccess": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Remove a users access if they have been given user_access",
            "title": "Removeuseraccess"
          },
          "starred": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Use starred to bookmark chat",
            "title": "Starred"
          },
          "userAccess": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Give specific users access by adding their user ID to the list",
            "title": "Useraccess"
          }
        },
        "title": "PatchChatBody",
        "type": "object"
      },
      "PatchLicenseBody": {
        "properties": {
          "license": {
            "description": "The license to be applied to the system",
            "minLength": 1,
            "title": "License",
            "type": "string"
          }
        },
        "required": [
          "license"
        ],
        "title": "PatchLicenseBody",
        "type": "object"
      },
      "PatchOrgBody": {
        "properties": {
          "applicationUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Applicationurl"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "requireMfa": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requiremfa"
          }
        },
        "title": "PatchOrgBody",
        "type": "object"
      },
      "PatchOrganizationPreferencesBody": {
        "examples": [
          {
            "preferences": {
              "org.preferences.record_prompts": false
            }
          }
        ],
        "properties": {
          "preferences": {
            "additionalProperties": true,
            "description": "Organization preferences to update",
            "title": "Preferences",
            "type": "object"
          }
        },
        "required": [
          "preferences"
        ],
        "title": "PatchOrganizationPreferencesBody",
        "type": "object"
      },
      "PatchProjectBody": {
        "properties": {
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectConfig"
              },
              {
                "type": "null"
              }
            ],
            "description": "New config for the project. Partial configurations are accepted."
          },
          "deploymentStatus": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectDeploymentStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "New deployment status for the project."
          },
          "friendlyId": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name can be used to identify the project instead of the id. It is case-sensitive, unique and can only contain letters, numbers and dashes.",
            "title": "Friendlyid"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "title": "PatchProjectBody",
        "type": "object"
      },
      "PatchProjectMemberBody": {
        "properties": {
          "admin": {
            "description": "Whether the user should be an admin of the given group.",
            "title": "Admin",
            "type": "boolean"
          }
        },
        "required": [
          "admin"
        ],
        "title": "PatchProjectMemberBody",
        "type": "object"
      },
      "PatchPromptBody": {
        "properties": {
          "preserve": {
            "description": "Whether or not to preserve this prompt when deleting prompts periodically",
            "title": "Preserve",
            "type": "boolean"
          }
        },
        "required": [
          "preserve"
        ],
        "title": "PatchPromptBody",
        "type": "object"
      },
      "PatchPromptTemplateBody": {
        "properties": {
          "name": {
            "description": "New name for the prompt template.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "PatchPromptTemplateBody",
        "type": "object"
      },
      "PatchProviderAccessBody": {
        "properties": {
          "global": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "If provider should be available to all projects, set to True",
            "title": "Global"
          },
          "projectIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "projects IDs of projects that should be available to use the provider",
            "title": "Projectids"
          }
        },
        "title": "PatchProviderAccessBody",
        "type": "object"
      },
      "PatchProviderBody": {
        "properties": {
          "authTemplate": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "request": "#/components/schemas/APIRequestBlock",
                    "retry": "#/components/schemas/APIRetryBlock",
                    "workflow": "#/components/schemas/APIWorkflowBlock"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/APIRequestBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIRetryBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIWorkflowBlock"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "New provider auth template to use when sending prompts.",
            "title": "Authtemplate"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "New input values that can be accessed in the template.",
            "title": "Inputs"
          },
          "maxRequestsPerSecond": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated, use requestConcurrencyLimit instead.",
            "title": "Maxrequestspersecond"
          },
          "name": {
            "anyOf": [
              {
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "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.",
            "title": "Name"
          },
          "requestConcurrencyLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestConcurrencyLimit"
              },
              {
                "const": false,
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Specifies concurrency limits for requests from campaign run attacks. Set to false to remove existing limit.",
            "title": "Requestconcurrencylimit"
          },
          "secrets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/NewSecret"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "New secrets that can be accessed in the template.",
            "title": "Secrets"
          },
          "template": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "request": "#/components/schemas/APIRequestBlock",
                    "retry": "#/components/schemas/APIRetryBlock",
                    "workflow": "#/components/schemas/APIWorkflowBlock"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/APIRequestBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIRetryBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIWorkflowBlock"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "New provider template to use when sending prompts.",
            "title": "Template"
          },
          "test": {
            "default": false,
            "description": "Whether to test the provider connection before updating.",
            "title": "Test",
            "type": "boolean"
          }
        },
        "title": "PatchProviderBody",
        "type": "object"
      },
      "PatchScanBody": {
        "properties": {
          "preserve": {
            "description": "Whether or not to preserve this scan request when deleting scan requests periodically",
            "title": "Preserve",
            "type": "boolean"
          }
        },
        "required": [
          "preserve"
        ],
        "title": "PatchScanBody",
        "type": "object"
      },
      "PatchScannerAccessBody": {
        "properties": {
          "global": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "If guardrail should be available to all projects, set to True",
            "title": "Global"
          },
          "projectIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Projects IDs of projects that should be available to use the guardrail",
            "title": "Projectids"
          }
        },
        "title": "PatchScannerAccessBody",
        "type": "object"
      },
      "PatchScannerBody": {
        "properties": {
          "config": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "custom": "#/components/schemas/GenAIScannerConfig",
                    "genai": "#/components/schemas/GenAIScannerConfig",
                    "keyword": "#/components/schemas/KeywordScannerConfig",
                    "regex": "#/components/schemas/RegexScannerConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RegexScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/KeywordScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/GenAIScannerConfig"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "New config for the guardrail.",
            "title": "Config"
          },
          "direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerDirection"
              },
              {
                "type": "null"
              }
            ],
            "description": "New direction the guardrail should scan in."
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name for the guardrail.",
            "title": "Name"
          },
          "published": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the guardrail should be published or not.",
            "title": "Published"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 50,
                  "minLength": 1,
                  "pattern": "^[a-zA-Z0-9-_]+$",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "New tags for the guardrail. Replaces all existing tags.",
            "title": "Tags"
          },
          "version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerVersionInputModel"
              },
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Name or object containing the name and description for the new version of the guardrail.",
            "title": "Version"
          }
        },
        "title": "PatchScannerBody",
        "type": "object"
      },
      "PatchScannerPackageAccessBody": {
        "properties": {
          "global": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "If package should be available to all projects, set to True",
            "title": "Global"
          },
          "projectIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of projects that should be available to use the package",
            "title": "Projectids"
          }
        },
        "title": "PatchScannerPackageAccessBody",
        "type": "object"
      },
      "PatchScannerPackageBody": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "maxLength": 70,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name for the guardrail package.",
            "title": "Name"
          },
          "scannerIds": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of guardrails to include in the package. If not provided, the package's guardrails will remain unchanged.",
            "title": "Scannerids"
          }
        },
        "title": "PatchScannerPackageBody",
        "type": "object"
      },
      "PatchScannerResponse": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "versionMeta": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerVersionMeta"
              },
              {
                "type": "null"
              }
            ],
            "description": "New version information for guardrail if an update was applied"
          }
        },
        "required": [
          "message"
        ],
        "title": "PatchScannerResponse",
        "type": "object"
      },
      "PatchScannerVersionBody": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New description for the version.",
            "title": "Description"
          },
          "published": {
            "default": false,
            "description": "Publish this version.",
            "title": "Published",
            "type": "boolean"
          },
          "push": {
            "default": false,
            "description": "Push this version to all projects with the guardrail enabled.\nWill publish the version automatically if not already.",
            "title": "Push",
            "type": "boolean"
          }
        },
        "title": "PatchScannerVersionBody",
        "type": "object"
      },
      "PatchSecretBody": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name for the secret.",
            "title": "Name"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New value for the secret.",
            "title": "Value"
          }
        },
        "title": "PatchSecretBody",
        "type": "object"
      },
      "PatchUserBody": {
        "properties": {
          "blocked": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the user should be blocked.",
            "title": "Blocked"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 3,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New name for the user.",
            "title": "Name"
          }
        },
        "title": "PatchUserBody",
        "type": "object"
      },
      "PostAdminSettingsExportBody": {
        "properties": {
          "export": {
            "$ref": "#/components/schemas/OrgExport"
          }
        },
        "required": [
          "export"
        ],
        "title": "PostAdminSettingsExportBody",
        "type": "object"
      },
      "PostAdmingSettingsImportBody": {
        "properties": {
          "clearExisting": {
            "default": false,
            "description": "If true, all existing data belonging to your organization will be deleted. This is not reversible.",
            "title": "Clearexisting",
            "type": "boolean"
          },
          "export": {
            "$ref": "#/components/schemas/OrgExport",
            "description": "Previously exported data to restore to the organization."
          },
          "preserveRoles": {
            "default": false,
            "description": "If true and clearExisting is true, users will preserve the roles they have at time of import.",
            "title": "Preserveroles",
            "type": "boolean"
          },
          "preserveTokens": {
            "default": false,
            "description": "If true and clearExisting is true, personal API tokens will be preserved.\"\nMachine tokens will not be preserved.",
            "title": "Preservetokens",
            "type": "boolean"
          }
        },
        "required": [
          "export"
        ],
        "title": "PostAdmingSettingsImportBody",
        "type": "object"
      },
      "PostAnthropicMessagesBody": {
        "additionalProperties": true,
        "properties": {
          "max_tokens": {
            "title": "Max Tokens",
            "type": "integer"
          },
          "messages": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Messages",
            "type": "array"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          }
        },
        "required": [
          "max_tokens",
          "messages",
          "model"
        ],
        "title": "PostAnthropicMessagesBody",
        "type": "object"
      },
      "PostAuthRolesBody": {
        "properties": {
          "isDefault": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set the new role as the default.",
            "title": "Isdefault"
          },
          "name": {
            "description": "Name of the role. Requires case insensitive uniqueness.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "permissions": {
            "description": "Permissions to grant to users with the created role.",
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Assign the created role to a given project. If not provided, the role is associated with the organization.",
            "title": "Projectid"
          }
        },
        "required": [
          "name",
          "permissions"
        ],
        "title": "PostAuthRolesBody",
        "type": "object"
      },
      "PostCampaignScheduleBody": {
        "properties": {
          "campaignId": {
            "description": "ID of the campaign to run. If empty, run all attacks.",
            "format": "uuid",
            "title": "Campaignid",
            "type": "string"
          },
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 4,
            "description": "Determines how many occurrences will be generated. Cannot specify both count and end_at.",
            "title": "Count"
          },
          "endAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Target time after which no future occurrences will be generated.",
            "title": "Endat"
          },
          "frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignScheduleFrequency"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often the schedule should run."
          },
          "interval": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The interval between each frequency iteration. For example, when using DAYS, an interval of 2 means once every two days. The default interval is 1.",
            "title": "Interval"
          },
          "name": {
            "description": "Name to give the campaign runs in this schedule.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "providerIds": {
            "description": "IDs of the providers to target for the campaign runs in this schedule",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Providerids",
            "type": "array"
          },
          "remediationSettings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignRunRemediationSettings"
              },
              {
                "type": "null"
              }
            ],
            "description": "Remediation settings for campaign runs in this schedule."
          },
          "startAt": {
            "description": "Target time to start the first campaign run.",
            "format": "date-time",
            "title": "Startat",
            "type": "string"
          }
        },
        "required": [
          "name",
          "startAt",
          "campaignId",
          "providerIds"
        ],
        "title": "PostCampaignScheduleBody",
        "type": "object"
      },
      "PostCampaignScheduleResponse": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "campaignRunId"
        ],
        "title": "PostCampaignScheduleResponse",
        "type": "object"
      },
      "PostCampaignsBody": {
        "properties": {
          "attacks": {
            "description": "List of attacks to run as part of this campaign",
            "items": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/StaticContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/DynamicSingleTurnContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/DynamicMultiTurnContentAttack"
                    },
                    {
                      "$ref": "#/components/schemas/OperationalAttack"
                    },
                    {
                      "$ref": "#/components/schemas/CustomAttack"
                    }
                  ]
                },
                {
                  "enum": [
                    "static_content",
                    "operational"
                  ],
                  "type": "string"
                }
              ]
            },
            "title": "Attacks",
            "type": "array"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Description for the campaign",
            "title": "Description"
          },
          "name": {
            "description": "Name for the new campaign",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "attacks"
        ],
        "title": "PostCampaignsBody",
        "type": "object"
      },
      "PostChatCompletionBody": {
        "additionalProperties": true,
        "properties": {
          "messages": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Messages",
            "type": "array"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          }
        },
        "required": [
          "model",
          "messages"
        ],
        "title": "PostChatCompletionBody",
        "type": "object"
      },
      "PostChatsFromPromptBody": {
        "description": "Use this if you wish to create a chat out of a prompt.\n\nThe newly created chat will use the existing prompts referred to instead of duplicating.",
        "properties": {
          "name": {
            "description": "Name of the new chat.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "promptId": {
            "description": "ID of the prompt you wish to use in the chat",
            "format": "uuid",
            "title": "Promptid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "promptId"
        ],
        "title": "PostChatsFromPromptBody",
        "type": "object"
      },
      "PostChatsFromTemplateBody": {
        "description": "Use this if you wish to create a new chat from a prompt template.\n\nThe newly created chat will duplicate all prompts in the prompt template.",
        "properties": {
          "name": {
            "description": "Name of the new chat.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "promptTemplateId": {
            "description": "ID of the prompt template you wish to use",
            "format": "uuid",
            "title": "Prompttemplateid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "promptTemplateId"
        ],
        "title": "PostChatsFromTemplateBody",
        "type": "object"
      },
      "PostGenerationResponse": {
        "properties": {
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerDescriptionGenerationOutput"
              },
              {
                "$ref": "#/components/schemas/CustomIntentGenerationOutput"
              },
              {
                "$ref": "#/components/schemas/SystemIntentsGenerationOutput"
              }
            ],
            "title": "Output"
          }
        },
        "required": [
          "output"
        ],
        "title": "PostGenerationResponse",
        "type": "object"
      },
      "PostGenerationsBody": {
        "properties": {
          "input": {
            "discriminator": {
              "mapping": {
                "custom_intent": "#/components/schemas/CustomIntentGenerationInput",
                "scanner_description": "#/components/schemas/ScannerDescriptionGenerationInput",
                "system_intents": "#/components/schemas/SystemIntentsGenerationInput"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScannerDescriptionGenerationInput"
              },
              {
                "$ref": "#/components/schemas/CustomIntentGenerationInput"
              },
              {
                "$ref": "#/components/schemas/SystemIntentsGenerationInput"
              }
            ],
            "title": "Input"
          }
        },
        "required": [
          "input"
        ],
        "title": "PostGenerationsBody",
        "type": "object"
      },
      "PostGoogleGenerateContentBody": {
        "additionalProperties": true,
        "properties": {
          "contents": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Contents",
            "type": "array"
          }
        },
        "required": [
          "contents"
        ],
        "title": "PostGoogleGenerateContentBody",
        "type": "object"
      },
      "PostIDResponse": {
        "properties": {
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "PostIDResponse",
        "type": "object"
      },
      "PostOpenAIResponsesBody": {
        "additionalProperties": true,
        "properties": {
          "input": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "string"
              }
            ],
            "title": "Input"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          }
        },
        "required": [
          "model",
          "input"
        ],
        "title": "PostOpenAIResponsesBody",
        "type": "object"
      },
      "PostOrgBody": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Email for the new user.",
            "title": "Email"
          },
          "name": {
            "description": "Name for the new organization",
            "title": "Name",
            "type": "string"
          },
          "roleIds": {
            "description": "Roles to assign to the user.",
            "items": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ]
            },
            "title": "Roleids",
            "type": "array"
          },
          "roles": {
            "description": "Deprecated",
            "items": {
              "$ref": "#/components/schemas/UserRole"
            },
            "title": "Roles",
            "type": "array"
          },
          "sendInvite": {
            "default": true,
            "description": "Whether or not to send an invite email, if possible.",
            "title": "Sendinvite",
            "type": "boolean"
          },
          "userName": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 3,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Name for the new user.",
            "title": "Username"
          }
        },
        "required": [
          "name"
        ],
        "title": "PostOrgBody",
        "type": "object"
      },
      "PostOrgResponse": {
        "properties": {
          "id": {
            "description": "ID of the created organization",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "PostOrgResponse",
        "type": "object"
      },
      "PostPackageRequest": {
        "properties": {
          "global": {
            "default": true,
            "description": "Whether this guardrail package is globally accessible.",
            "title": "Global",
            "type": "boolean"
          },
          "name": {
            "description": "Name for the new guardrail package.",
            "maxLength": 70,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "scannerIds": {
            "description": "IDs of guardrails to add to the package.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Scannerids",
            "type": "array"
          },
          "vendored": {
            "default": false,
            "title": "Vendored",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "scannerIds"
        ],
        "title": "PostPackageRequest",
        "type": "object"
      },
      "PostProjectMembersBody": {
        "properties": {
          "admin": {
            "default": false,
            "description": "IDs of users to add to the project.",
            "title": "Admin",
            "type": "boolean"
          },
          "members": {
            "items": {
              "type": "string"
            },
            "title": "Members",
            "type": "array"
          }
        },
        "required": [
          "members"
        ],
        "title": "PostProjectMembersBody",
        "type": "object"
      },
      "PostProjectsBody": {
        "properties": {
          "adminIds": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "User IDs to be set as project admins, if not specified will be set to current user.\nAt least one ID is required for API calls using global or project tokens.",
            "title": "Adminids"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectConfig"
              },
              {
                "type": "null"
              }
            ],
            "description": "Config for the project.\nIf not provided, the current config for the specified group or global settings will be used."
          },
          "deploymentStatus": {
            "$ref": "#/components/schemas/ProjectDeploymentStatus",
            "default": "draft",
            "description": "Deployment status for the project."
          },
          "friendlyId": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name can be used to identify the project instead of the id. It is case-sensitive, unique and can only contain letters, numbers and dashes.",
            "title": "Friendlyid"
          },
          "memberIds": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "User IDs to be set as project members.",
            "title": "Memberids"
          },
          "name": {
            "description": "Name for the project.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "type": {
            "description": "Type of the project to create.",
            "enum": [
              "app",
              "agentic",
              "chat",
              "bot",
              "red_team"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "title": "PostProjectsBody",
        "type": "object"
      },
      "PostPromptTemplatesBody": {
        "properties": {
          "name": {
            "description": "Name of the prompt template.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "project": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID or friendly ID of a project to allow access to other users to the newly created template with\naccess to the project. If not provided, the new template will only be accessible by the owner.",
            "title": "Project"
          },
          "promptId": {
            "description": "ID of prompt to create template from.",
            "format": "uuid",
            "title": "Promptid",
            "type": "string"
          }
        },
        "required": [
          "promptId",
          "name"
        ],
        "title": "PostPromptTemplatesBody",
        "type": "object"
      },
      "PostPromptsBody": {
        "examples": [
          {
            "input": "\nSee any credit card number in this email?\nDear Customer Support,\n\nI am reaching out regarding a recent purchase with Order #8901. It appears that the payment has not been processed yet. Here are the payment details I used:\n\nRandom Number: 5200a@1234a@5678a@9013\nExpiration: 11/24\nCardholder Name: Jane Doe\n\nCould you please check and confirm if there's been any issue with the payment?\n\nBest regards,\n\nJane Doe\n",
            "verbose": false
          }
        ],
        "properties": {
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A json string for users to attach any data to the prompt for their own use,\nFor example to tag certain prompts for tracking\n(Limited to 10 items, keys of up to 50 characters and values of up to 255 characters).",
            "title": "Externalmetadata"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "description": "Prompt data to send to provider",
            "title": "Input"
          },
          "parentId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Parent ID to set on child prompts",
            "title": "Parentid"
          },
          "project": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project ID or name to send prompt to, defaults to global project",
            "title": "Project"
          },
          "provider": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider ID or name to send prompt to, defaults to chosen project's default provider",
            "title": "Provider"
          },
          "skipScanning": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Skipscanning"
          },
          "verbose": {
            "default": false,
            "description": "If true, return details on each guardrail that ran against the input data",
            "title": "Verbose",
            "type": "boolean"
          }
        },
        "required": [
          "input"
        ],
        "title": "PostPromptsBody",
        "type": "object"
      },
      "PostPromptsBodyFromChat": {
        "examples": [
          {
            "input": "\nSee any credit card number in this email?\nDear Customer Support,\n\nI am reaching out regarding a recent purchase with Order #8901. It appears that the payment has not been processed yet. Here are the payment details I used:\n\nRandom Number: 5200a@1234a@5678a@9013\nExpiration: 11/24\nCardholder Name: Jane Doe\n\nCould you please check and confirm if there's been any issue with the payment?\n\nBest regards,\n\nJane Doe\n",
            "verbose": false
          }
        ],
        "properties": {
          "chatId": {
            "description": "Chat ID to add prompt to",
            "format": "uuid",
            "title": "Chatid",
            "type": "string"
          },
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A json string for users to attach any data to the prompt for their own use,\nFor example to tag certain prompts for tracking\n(Limited to 10 items, keys of up to 50 characters and values of up to 255 characters).",
            "title": "Externalmetadata"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "description": "Prompt data to send to provider",
            "title": "Input"
          },
          "verbose": {
            "default": false,
            "description": "If true, return details on each guardrail that ran against the input data",
            "title": "Verbose",
            "type": "boolean"
          }
        },
        "required": [
          "chatId",
          "input"
        ],
        "title": "PostPromptsBodyFromChat",
        "type": "object"
      },
      "PostPromptsResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of prompt that was created, if prompt recording is enabled",
            "title": "Id"
          },
          "result": {
            "$ref": "#/components/schemas/PromptResult",
            "description": "Result of prompt that was created"
          },
          "scanners": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectScanners"
              },
              {
                "type": "null"
              }
            ],
            "description": "Details on the guardrails that ran on the input"
          }
        },
        "required": [
          "result"
        ],
        "title": "PostPromptsResponse",
        "type": "object"
      },
      "PostProviderTestResponse": {
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Content of the provider template response.",
            "title": "Content"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "files": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProviderOutputFile"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Files returned by the provider response.",
            "title": "Files"
          },
          "requests": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ProviderRunBlockData"
            },
            "description": "\"All request/response data collected during the test\n\nKeys are JSON path strings to each request block within the template.",
            "title": "Requests",
            "type": "object"
          },
          "statusCode": {
            "description": "Status code returned by the provider template.",
            "title": "Statuscode",
            "type": "integer"
          }
        },
        "required": [
          "statusCode",
          "requests"
        ],
        "title": "PostProviderTestResponse",
        "type": "object"
      },
      "PostProviderTestSystemBody": {
        "properties": {
          "capability": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProviderCapability"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider capability to test for"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input values that can be accessed in the template.",
            "title": "Inputs"
          },
          "secrets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Secrets that can be accessed in the template.",
            "title": "Secrets"
          },
          "systemProvider": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "description": "ID or name of system provider to test.",
            "title": "Systemprovider"
          }
        },
        "required": [
          "systemProvider"
        ],
        "title": "PostProviderTestSystemBody",
        "type": "object"
      },
      "PostProviderTestTemplateBody": {
        "properties": {
          "authTemplate": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "request": "#/components/schemas/APIRequestBlock",
                    "retry": "#/components/schemas/APIRetryBlock",
                    "workflow": "#/components/schemas/APIWorkflowBlock"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/APIRequestBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIRetryBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIWorkflowBlock"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional template to use to fetch authentication credentials.",
            "title": "Authtemplate"
          },
          "capability": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProviderCapability"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider capability to test for"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input values that can be accessed in the template.",
            "title": "Inputs"
          },
          "secrets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Secrets that can be accessed in the template.",
            "title": "Secrets"
          },
          "template": {
            "description": "Provider template to use when sending the test.",
            "discriminator": {
              "mapping": {
                "request": "#/components/schemas/APIRequestBlock",
                "retry": "#/components/schemas/APIRetryBlock",
                "workflow": "#/components/schemas/APIWorkflowBlock"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/APIRequestBlock"
              },
              {
                "$ref": "#/components/schemas/APIRetryBlock"
              },
              {
                "$ref": "#/components/schemas/APIWorkflowBlock"
              }
            ],
            "title": "Template"
          }
        },
        "required": [
          "template"
        ],
        "title": "PostProviderTestTemplateBody",
        "type": "object"
      },
      "PostProvidersFromSystemBody": {
        "properties": {
          "capabilities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProviderCapability"
                },
                "type": "array",
                "uniqueItems": true
              },
              {
                "type": "null"
              }
            ],
            "description": "Set of capabilities that the provider will have. Cannot be changed after creation.",
            "title": "Capabilities"
          },
          "default": {
            "default": false,
            "description": "Whether the new provider should the default provider. Has no effect if enable is false.",
            "title": "Default",
            "type": "boolean"
          },
          "enable": {
            "default": false,
            "description": "Enable the new provider for the default project for the group/global settings.",
            "title": "Enable",
            "type": "boolean"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input values that can be accessed in the template.",
            "title": "Inputs"
          },
          "maxRequestsPerSecond": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "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"
              }
            ],
            "description": "Limit access to the provider to a given project.",
            "title": "Projectid"
          },
          "redTeam": {
            "default": false,
            "description": "Mark provider for use in attack campaigns.",
            "title": "Redteam",
            "type": "boolean"
          },
          "requestConcurrencyLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestConcurrencyLimit"
              },
              {
                "type": "null"
              }
            ],
            "description": "Specifies concurrency limits for requests from campaign run attacks."
          },
          "secrets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/NewSecret"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Secrets that can be accessed in the template.",
            "title": "Secrets"
          },
          "systemProvider": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "description": "ID or name of the system provider to use the template from.",
            "title": "Systemprovider"
          },
          "tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional tag to attach to the provider.",
            "title": "Tag"
          },
          "test": {
            "default": false,
            "description": "Whether to test the provider connection before creation.",
            "title": "Test",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "systemProvider"
        ],
        "title": "PostProvidersFromSystemBody",
        "type": "object"
      },
      "PostProvidersWithTemplateBody": {
        "properties": {
          "authTemplate": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "request": "#/components/schemas/APIRequestBlock",
                    "retry": "#/components/schemas/APIRetryBlock",
                    "workflow": "#/components/schemas/APIWorkflowBlock"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/APIRequestBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIRetryBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIWorkflowBlock"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional template to use to fetch authentication credentials.",
            "title": "Authtemplate"
          },
          "capabilities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProviderCapability"
                },
                "type": "array",
                "uniqueItems": true
              },
              {
                "type": "null"
              }
            ],
            "description": "Set of capabilities that the provider will have. Cannot be changed after creation.",
            "title": "Capabilities"
          },
          "default": {
            "default": false,
            "description": "Whether the new provider should the default provider. Has no effect if enable is false.",
            "title": "Default",
            "type": "boolean"
          },
          "enable": {
            "default": false,
            "description": "Enable the new provider for the default project for the group/global settings.",
            "title": "Enable",
            "type": "boolean"
          },
          "inputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input values that can be accessed in the template.",
            "title": "Inputs"
          },
          "maxRequestsPerSecond": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "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"
              }
            ],
            "description": "Limit access to the provider to a given project.",
            "title": "Projectid"
          },
          "redTeam": {
            "default": false,
            "description": "Mark provider for use in attack campaigns.",
            "title": "Redteam",
            "type": "boolean"
          },
          "requestConcurrencyLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestConcurrencyLimit"
              },
              {
                "type": "null"
              }
            ],
            "description": "Specifies concurrency limits for requests from campaign run attacks."
          },
          "secrets": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/NewSecret"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Secrets that can be accessed in the template.",
            "title": "Secrets"
          },
          "tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional tag to attach to the provider.",
            "title": "Tag"
          },
          "template": {
            "description": "Provider template to use when sending prompts.",
            "discriminator": {
              "mapping": {
                "request": "#/components/schemas/APIRequestBlock",
                "retry": "#/components/schemas/APIRetryBlock",
                "workflow": "#/components/schemas/APIWorkflowBlock"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/APIRequestBlock"
              },
              {
                "$ref": "#/components/schemas/APIRetryBlock"
              },
              {
                "$ref": "#/components/schemas/APIWorkflowBlock"
              }
            ],
            "title": "Template"
          },
          "test": {
            "default": false,
            "description": "Whether to test the provider connection before creation.",
            "title": "Test",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "template"
        ],
        "title": "PostProvidersWithTemplateBody",
        "type": "object"
      },
      "PostRefusalCatalog": {
        "properties": {
          "phrases": {
            "items": {
              "type": "string"
            },
            "title": "Phrases",
            "type": "array"
          }
        },
        "required": [
          "phrases"
        ],
        "title": "PostRefusalCatalog",
        "type": "object"
      },
      "PostRefusalCatalogResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "title": "Id"
          },
          "refusalCatalog": {
            "$ref": "#/components/schemas/RefusalCatalog"
          }
        },
        "required": [
          "id",
          "refusalCatalog"
        ],
        "title": "PostRefusalCatalogResponse",
        "type": "object"
      },
      "PostRunCampaignBody": {
        "properties": {
          "campaignId": {
            "description": "ID of the campaign to run. If empty, run all attacks.",
            "format": "uuid",
            "title": "Campaignid",
            "type": "string"
          },
          "name": {
            "description": "Name to give the campaign run",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "providerIds": {
            "description": "IDs of the providers to target for the campaign",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Providerids",
            "type": "array"
          },
          "remediationSettings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignRunRemediationSettings"
              },
              {
                "type": "null"
              }
            ],
            "description": "Remediation settings."
          }
        },
        "required": [
          "campaignId",
          "providerIds",
          "name"
        ],
        "title": "PostRunCampaignBody",
        "type": "object"
      },
      "PostScannersBody": {
        "properties": {
          "config": {
            "description": "Config for the new guardrail.",
            "discriminator": {
              "mapping": {
                "custom": "#/components/schemas/GenAIScannerConfig",
                "genai": "#/components/schemas/GenAIScannerConfig",
                "keyword": "#/components/schemas/KeywordScannerConfig",
                "regex": "#/components/schemas/RegexScannerConfig"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/GenAIScannerConfig"
              },
              {
                "$ref": "#/components/schemas/RegexScannerConfig"
              },
              {
                "$ref": "#/components/schemas/KeywordScannerConfig"
              }
            ],
            "title": "Config"
          },
          "direction": {
            "$ref": "#/components/schemas/ScannerDirection",
            "default": "request",
            "description": "Direction the guardrail should scan in."
          },
          "global": {
            "default": true,
            "description": "Whether this guardrail is globally accessible.",
            "title": "Global",
            "type": "boolean"
          },
          "name": {
            "description": "Name for the new guardrail.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "published": {
            "default": false,
            "description": "Whether the guardrail should be published.",
            "title": "Published",
            "type": "boolean"
          },
          "tags": {
            "default": [],
            "description": "Tags for the guardrail.",
            "items": {
              "maxLength": 50,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9-_]+$",
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "vendored": {
            "default": false,
            "title": "Vendored",
            "type": "boolean"
          },
          "version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerVersionInputModel"
              },
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Name or object containing the name and description for the initial version of the guardrail.",
            "title": "Version"
          }
        },
        "required": [
          "name",
          "config"
        ],
        "title": "PostScannersBody",
        "type": "object"
      },
      "PostScansBody": {
        "properties": {
          "configOverrides": {
            "additionalProperties": {
              "anyOf": [
                {
                  "discriminator": {
                    "mapping": {
                      "custom": "#/components/schemas/GenAIScannerConfig",
                      "genai": "#/components/schemas/GenAIScannerConfig",
                      "keyword": "#/components/schemas/KeywordScannerConfig",
                      "regex": "#/components/schemas/RegexScannerConfig"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/RegexScannerConfig"
                    },
                    {
                      "$ref": "#/components/schemas/KeywordScannerConfig"
                    },
                    {
                      "$ref": "#/components/schemas/GenAIScannerConfig"
                    }
                  ]
                },
                {
                  "additionalProperties": true,
                  "type": "object"
                }
              ]
            },
            "default": {},
            "description": "Config overrider for guardrails.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Configoverrides",
            "type": "object"
          },
          "disabled": {
            "default": [],
            "description": "Disable guardrails.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Disabled",
            "type": "array"
          },
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A json string for users to attach any data to the prompt for their own use,\nFor example to tag certain prompts for tracking\n(Limited to 10 items, keys of up to 50 characters and values of up to 255 characters).",
            "title": "Externalmetadata"
          },
          "flagOnly": {
            "default": true,
            "description": "If true, the final outcome is 'flagged' if any scanner is triggered.\nOtherwise, the outcome depends on the scanner's mode.",
            "title": "Flagonly",
            "type": "boolean"
          },
          "forceEnabled": {
            "default": [],
            "description": "Force guardrails to be enabled.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Forceenabled",
            "type": "array"
          },
          "input": {
            "description": "Data to scan.",
            "title": "Input",
            "type": "string"
          },
          "project": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project to use configuration for. If not provided, the global default will be used.",
            "title": "Project"
          },
          "requestPromptId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional prompt ID to link this scan request to. If provided and scan_direction is response,\nthe scan request will be linked to the given prompt ID as a response scan.",
            "title": "Requestpromptid"
          },
          "scanDirection": {
            "$ref": "#/components/schemas/ScanDirection",
            "default": "request",
            "description": "The direction of the scan, either 'request' or 'response'.\nThis is used for determining which guardrails to apply based on project configuration."
          },
          "verbose": {
            "default": false,
            "description": "If true, return details on each guardrail that ran against the input data",
            "title": "Verbose",
            "type": "boolean"
          }
        },
        "required": [
          "input"
        ],
        "title": "PostScansBody",
        "type": "object"
      },
      "PostScansResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the newly created scan request, if recording is enabled",
            "title": "Id"
          },
          "redactedInput": {
            "description": "The given input after any redaction",
            "title": "Redactedinput",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/ScanRequestResult",
            "description": "Results for the scan request."
          },
          "scanners": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectScanners"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "result",
          "redactedInput"
        ],
        "title": "PostScansResponse",
        "type": "object"
      },
      "PostSecretsBody": {
        "properties": {
          "name": {
            "description": "Name of the newly created secret.",
            "title": "Name",
            "type": "string"
          },
          "value": {
            "description": "Value of the newly created secret.",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "title": "PostSecretsBody",
        "type": "object"
      },
      "PostSuccessMessage": {
        "description": "Contains the ID of an object after a successful POST operation.",
        "properties": {
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "string"
              }
            ],
            "title": "Id"
          }
        },
        "required": [
          "id"
        ],
        "title": "PostSuccessMessage",
        "type": "object"
      },
      "PostTokensBody": {
        "properties": {
          "expiresAt": {
            "description": "Datetime in the future when the api key will no longer be valid",
            "format": "date-time",
            "title": "Expiresat",
            "type": "string"
          },
          "name": {
            "description": "Name of the api token",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "expiresAt"
        ],
        "title": "PostTokensBody",
        "type": "object"
      },
      "PostTokensMachineBody": {
        "properties": {
          "expiresAt": {
            "description": "Datetime in the future when the api key will no longer be valid",
            "format": "date-time",
            "title": "Expiresat",
            "type": "string"
          },
          "machine": {
            "const": true,
            "description": "Can not be set to False",
            "title": "Machine",
            "type": "boolean"
          },
          "name": {
            "description": "Name of the api token",
            "title": "Name",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "If an id of a user group is past in, will create machine token for that user group",
            "title": "Projectid"
          }
        },
        "required": [
          "name",
          "expiresAt",
          "machine"
        ],
        "title": "PostTokensMachineBody",
        "type": "object"
      },
      "PostTokensResponse": {
        "properties": {
          "token": {
            "$ref": "#/components/schemas/Token",
            "description": "Newly created token, with its value visible."
          }
        },
        "required": [
          "token"
        ],
        "title": "PostTokensResponse",
        "type": "object"
      },
      "PostUserBody": {
        "properties": {
          "email": {
            "description": "Email for the new user.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Email",
            "type": "string"
          },
          "name": {
            "description": "Name for the new user.",
            "maxLength": 255,
            "minLength": 3,
            "title": "Name",
            "type": "string"
          },
          "roleIds": {
            "default": [],
            "description": "Roles to assign to the user.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Roleids",
            "type": "array"
          },
          "roles": {
            "default": [
              "basic"
            ],
            "description": "Deprecated",
            "items": {
              "$ref": "#/components/schemas/UserRole"
            },
            "title": "Roles",
            "type": "array"
          },
          "sendInvite": {
            "default": true,
            "description": "Whether or not to send an invite email, if possible.",
            "title": "Sendinvite",
            "type": "boolean"
          }
        },
        "required": [
          "email",
          "name"
        ],
        "title": "PostUserBody",
        "type": "object"
      },
      "PostUserResponse": {
        "properties": {
          "emailSent": {
            "description": "If an email was sent to invite the user",
            "title": "Emailsent",
            "type": "boolean"
          },
          "id": {
            "description": "ID of the created user",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "emailSent"
        ],
        "title": "PostUserResponse",
        "type": "object"
      },
      "PostUsersVerificationBody": {
        "properties": {
          "password": {
            "description": "New password for user",
            "title": "Password",
            "type": "string"
          },
          "token": {
            "description": "Token for verification",
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token",
          "password"
        ],
        "title": "PostUsersVerificationBody",
        "type": "object"
      },
      "PostVerificationTokenResponse": {
        "properties": {
          "token": {
            "title": "Token",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "title": "PostVerificationTokenResponse",
        "type": "object"
      },
      "Project": {
        "properties": {
          "adminCount": {
            "default": 0,
            "title": "Admincount",
            "type": "integer"
          },
          "adminRoleId": {
            "format": "uuid",
            "title": "Adminroleid",
            "type": "string"
          },
          "agentSessionCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agentsessioncount"
          },
          "botType": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChatbotType"
              },
              {
                "type": "null"
              }
            ]
          },
          "chatbotId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chatbotid"
          },
          "config": {
            "$ref": "#/components/schemas/ProjectConfig"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "createdBy": {
            "title": "Createdby",
            "type": "string"
          },
          "deploymentStatus": {
            "$ref": "#/components/schemas/ProjectDeploymentStatus",
            "default": "draft"
          },
          "friendlyId": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name can be used to identify the project instead of the id. It is case-sensitive, unique and can only contain letters, numbers and dashes.",
            "title": "Friendlyid"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "memberCount": {
            "default": 0,
            "title": "Membercount",
            "type": "integer"
          },
          "memberRoleId": {
            "format": "uuid",
            "title": "Memberroleid",
            "type": "string"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "providerCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Providercount"
          },
          "scannerCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannercount"
          },
          "tokenCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tokencount"
          },
          "type": {
            "$ref": "#/components/schemas/ProjectType"
          },
          "updatedAt": {
            "format": "date-time",
            "title": "Updatedat",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "config",
          "createdAt",
          "createdBy",
          "updatedAt",
          "adminRoleId",
          "memberRoleId",
          "tokenCount",
          "providerCount",
          "scannerCount"
        ],
        "title": "Project",
        "type": "object"
      },
      "ProjectConfig": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "packages": {
            "default": [],
            "description": "Packages configured for the project",
            "items": {
              "$ref": "#/components/schemas/ProjectConfigScanner"
            },
            "title": "Packages",
            "type": "array"
          },
          "providers": {
            "default": [],
            "description": "Providers available to the project",
            "items": {
              "$ref": "#/components/schemas/ProjectConfigProvider"
            },
            "title": "Providers",
            "type": "array"
          },
          "scanners": {
            "default": [],
            "description": "Guardrails configured for the project",
            "items": {
              "$ref": "#/components/schemas/ProjectConfigScanner"
            },
            "title": "Scanners",
            "type": "array"
          }
        },
        "title": "ProjectConfig",
        "type": "object"
      },
      "ProjectConfigProvider": {
        "properties": {
          "capabilities": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ProviderCapability"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array",
                "uniqueItems": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Capabilities"
          },
          "default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default"
          },
          "enabled": {
            "title": "Enabled",
            "type": "boolean"
          },
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "ProjectConfigProvider",
        "type": "object"
      },
      "ProjectConfigScanner": {
        "properties": {
          "blocking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocking"
          },
          "direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerDirection"
              },
              {
                "const": "",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Direction"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "flagMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Flagmessage"
          },
          "force": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Force"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScanMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          }
        },
        "required": [
          "id"
        ],
        "title": "ProjectConfigScanner",
        "type": "object"
      },
      "ProjectCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-created",
            "default": "project-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectCreatedEvent",
        "type": "object"
      },
      "ProjectDefaultProviderUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-default-provider-updated",
            "default": "project-default-provider-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectDefaultProviderUpdatedEvent",
        "type": "object"
      },
      "ProjectDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-deleted",
            "default": "project-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectDeletedEvent",
        "type": "object"
      },
      "ProjectDeploymentStatus": {
        "enum": [
          "live",
          "draft"
        ],
        "title": "ProjectDeploymentStatus",
        "type": "string"
      },
      "ProjectMemberAddedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-member-added",
            "default": "project-member-added",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectMemberAddedEvent",
        "type": "object"
      },
      "ProjectMemberRemovedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-member-removed",
            "default": "project-member-removed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectMemberRemovedEvent",
        "type": "object"
      },
      "ProjectProviderAddedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-provider-added",
            "default": "project-provider-added",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProjectProviderAddedEvent",
        "type": "object"
      },
      "ProjectProviderRemovedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-provider-removed",
            "default": "project-provider-removed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProjectProviderRemovedEvent",
        "type": "object"
      },
      "ProjectScannerAddedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "project-scanner-added",
            "default": "project-scanner-added",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ProjectScannerAddedEvent",
        "type": "object"
      },
      "ProjectScannerPackageAddedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "project-scanner-package-added",
            "default": "project-scanner-package-added",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ProjectScannerPackageAddedEvent",
        "type": "object"
      },
      "ProjectScannerPackageRemovedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "project-scanner-package-removed",
            "default": "project-scanner-package-removed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ProjectScannerPackageRemovedEvent",
        "type": "object"
      },
      "ProjectScannerRemovedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "project-scanner-removed",
            "default": "project-scanner-removed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ProjectScannerRemovedEvent",
        "type": "object"
      },
      "ProjectScanners": {
        "properties": {
          "configs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ProjectConfigScanner"
            },
            "default": {},
            "description": "Behaviour of each guardrails specific to the project, such as whether to block flagged prompts",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Configs",
            "type": "object"
          },
          "forcedScanners": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Scanner"
                },
                {
                  "items": {
                    "$ref": "#/components/schemas/Scanner"
                  },
                  "type": "array"
                }
              ]
            },
            "default": {},
            "description": "Guardrails enabled for the project which were enabled by the global setting's admin.\nA list value indicates multiple versions of a guardrail that were enabled (Playground prompts only).",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Forcedscanners",
            "type": "object"
          },
          "scanners": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Scanner"
            },
            "default": {},
            "description": "Guardrails enabled for the project which were enabled by the project's admin.",
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scanners",
            "type": "object"
          }
        },
        "title": "ProjectScanners",
        "type": "object"
      },
      "ProjectSearchSortBy": {
        "enum": [
          "name",
          "created_at",
          "updated_at"
        ],
        "title": "ProjectSearchSortBy",
        "type": "string"
      },
      "ProjectType": {
        "enum": [
          "app",
          "bot",
          "chat",
          "global",
          "agentic",
          "red_team"
        ],
        "title": "ProjectType",
        "type": "string"
      },
      "ProjectUndeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-undeleted",
            "default": "project-undeleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectUndeletedEvent",
        "type": "object"
      },
      "ProjectUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "project-updated",
            "default": "project-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "projectId"
        ],
        "title": "ProjectUpdatedEvent",
        "type": "object"
      },
      "Prompt": {
        "examples": [
          {
            "fromTemplate": false,
            "id": "018fe3e9-1944-705a-9d09-f8e5e3bc1833",
            "input": "Test Input",
            "parentId": "018fe3e9-1944-705a-9d09-f8e5e3bc1833",
            "preserve": false,
            "projectId": "018fe3e9-1944-705a-9d09-f8e5e3bc1833",
            "receivedAt": "2023-10-04T14:06:13.779733Z",
            "result": {
              "files": [],
              "outcome": "flagged",
              "providerResult": {
                "data": "I'm sorry, but I can't assist with that.",
                "receivedDate": "2023-10-04T14:06:18.779733Z",
                "sentDate": "2023-10-04T14:06:15.779733Z",
                "statusCode": 200
              },
              "response": "I'm sorry, but I can't assist with that.",
              "scannerResults": [
                {
                  "completedDate": "2023-10-04T14:06:13.940393Z",
                  "customConfig": false,
                  "data": {
                    "type": "custom"
                  },
                  "outcome": "passed",
                  "scanDirection": "request",
                  "scannerId": "018d6579-dd47-70ac-99f8-5623e48cdeba",
                  "startedDate": "2023-10-04T14:06:13.779733Z"
                }
              ]
            },
            "type": "prompt",
            "userId": "018fe3e9-1944-705a-9d09-f8e5e3bc1833"
          }
        ],
        "properties": {
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Externalmetadata"
          },
          "extraInputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extrainputs"
          },
          "fromTemplate": {
            "default": false,
            "description": "If the prompt is from a template",
            "title": "Fromtemplate",
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "title": "Input"
          },
          "memory": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of prev prompts in the conversation",
            "title": "Memory"
          },
          "parentId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the last prompt in the conversation",
            "title": "Parentid"
          },
          "preserve": {
            "default": false,
            "description": "If the prompt should not be purged on data clean",
            "title": "Preserve",
            "type": "boolean"
          },
          "projectId": {
            "description": "ID of group prompt was used with",
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of LLM provider use for the prompt",
            "title": "Provider"
          },
          "receivedAt": {
            "format": "date-time",
            "title": "Receivedat",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/PromptResult"
          },
          "type": {
            "default": "prompt",
            "enum": [
              "prompt",
              "test"
            ],
            "title": "Type",
            "type": "string"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "projectId",
          "input",
          "receivedAt",
          "userId",
          "result"
        ],
        "title": "Prompt",
        "type": "object"
      },
      "PromptAnalysis": {
        "properties": {
          "input": {
            "description": "Spans of input text that were flagged.",
            "items": {
              "$ref": "#/components/schemas/FlaggedSpan"
            },
            "title": "Input",
            "type": "array"
          },
          "response": {
            "description": "Spans of response text that were flagged.",
            "items": {
              "$ref": "#/components/schemas/FlaggedSpan"
            },
            "title": "Response",
            "type": "array"
          }
        },
        "required": [
          "input",
          "response"
        ],
        "title": "PromptAnalysis",
        "type": "object"
      },
      "PromptConverter": {
        "enum": [
          "base64",
          "leetspeak",
          "unicode_confusable",
          "caesar",
          "repeat_token",
          "single_character"
        ],
        "title": "PromptConverter",
        "type": "string"
      },
      "PromptOutcome": {
        "description": "Outcome of a prompt after it has been processed by all guardrails and providers.\n\nCleared: All guardrails passed, and the prompt was sent to providers\nFlagged: At least one guardrail failed, and the prompt was sent to providers\nBlocked: At least one guardrail failed, and the prompt was not sent to providers.",
        "enum": [
          "cleared",
          "flagged",
          "redacted",
          "blocked"
        ],
        "title": "PromptOutcome",
        "type": "string"
      },
      "PromptResult": {
        "examples": [
          {
            "files": [],
            "outcome": "flagged",
            "providerResult": {
              "data": "I'm sorry, but I can't assist with that.",
              "receivedDate": "2023-10-04T14:06:17.779733Z",
              "sentDate": "2023-10-04T14:06:16.779733Z",
              "statusCode": 200
            },
            "response": "I'm sorry, but I can't assist with that.",
            "scannerResults": [
              {
                "completedDate": "2023-10-04T14:06:13.940393Z",
                "customConfig": false,
                "data": {
                  "type": "custom"
                },
                "outcome": "passed",
                "scanDirection": "request",
                "scannerId": "018d6579-dd47-70ac-99f8-5623e48cdeba",
                "startedDate": "2023-10-04T14:06:13.779733Z"
              }
            ]
          }
        ],
        "properties": {
          "files": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PromptResultFile"
            },
            "title": "Files",
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/PromptOutcome",
            "description": "One of 'cleared', 'flagged' or 'blocked'"
          },
          "providerResult": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProviderPromptResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The response to the prompt from the LLM",
            "title": "Response"
          },
          "scannerResults": {
            "description": "Result for each guardrail that ran on the prompt",
            "items": {
              "$ref": "#/components/schemas/Scan"
            },
            "title": "Scannerresults",
            "type": "array"
          }
        },
        "required": [
          "scannerResults",
          "outcome"
        ],
        "title": "PromptResult",
        "type": "object"
      },
      "PromptResultFile": {
        "properties": {
          "contentType": {
            "title": "Contenttype",
            "type": "string"
          },
          "data": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "File data, optionally base64 encoded if isBase64 is true",
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isBase64": {
            "title": "Isbase64",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "contentType",
          "isBase64"
        ],
        "title": "PromptResultFile",
        "type": "object"
      },
      "PromptTemplate": {
        "examples": [
          {
            "createdAt": "2023-10-04T14:06:13.779733Z",
            "id": "018fe3e6-e87d-702f-85d5-933bab2a6d4d",
            "name": "Example_Template",
            "projectId": "018fe3e6-e87d-702f-85d5-933bab2a6d4d",
            "promptId": "018fe3e6-e87d-702f-85d5-933bab2a6d4d",
            "userId": "018fe3e6-e87d-702f-85d5-933bab2a6d4d"
          }
        ],
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of a group or None if top level",
            "title": "Projectid"
          },
          "promptId": {
            "format": "uuid",
            "title": "Promptid",
            "type": "string"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "createdAt",
          "promptId",
          "userId"
        ],
        "title": "PromptTemplate",
        "type": "object"
      },
      "PromptType": {
        "enum": [
          "prompt",
          "scan",
          "test"
        ],
        "title": "PromptType",
        "type": "string"
      },
      "ProvideRunResponseData": {
        "properties": {
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Body of the response if one was received, encoded in base64",
            "title": "Body"
          },
          "headers": {
            "additionalProperties": true,
            "description": "Headers of the response",
            "title": "Headers",
            "type": "object"
          },
          "statusCode": {
            "description": "HTTP status code of the response",
            "title": "Statuscode",
            "type": "integer"
          }
        },
        "required": [
          "statusCode",
          "headers"
        ],
        "title": "ProvideRunResponseData",
        "type": "object"
      },
      "Provider": {
        "properties": {
          "authTemplate": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "request": "#/components/schemas/APIRequestBlock",
                    "retry": "#/components/schemas/APIRetryBlock",
                    "workflow": "#/components/schemas/APIWorkflowBlock"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/APIRequestBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIRetryBlock"
                  },
                  {
                    "$ref": "#/components/schemas/APIWorkflowBlock"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional API template to retrieve temporary auth credentials",
            "title": "Authtemplate"
          },
          "availability": {
            "$ref": "#/components/schemas/ProviderAvailability",
            "default": {
              "global": false,
              "projectIds": []
            }
          },
          "capabilities": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/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": "#/components/schemas/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": {
            "discriminator": {
              "mapping": {
                "request": "#/components/schemas/APIRequestBlock",
                "retry": "#/components/schemas/APIRetryBlock",
                "workflow": "#/components/schemas/APIWorkflowBlock"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/APIRequestBlock"
              },
              {
                "$ref": "#/components/schemas/APIRetryBlock"
              },
              {
                "$ref": "#/components/schemas/APIWorkflowBlock"
              }
            ],
            "title": "Template"
          },
          "type": {
            "$ref": "#/components/schemas/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"
      },
      "ProviderAvailabilityUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-availability-updated",
            "default": "provider-availability-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderAvailabilityUpdatedEvent",
        "type": "object"
      },
      "ProviderCapability": {
        "enum": [
          "chat",
          "red_team",
          "siem",
          "openai_chat",
          "openai_responses",
          "anthropic_messages",
          "google_generate_content"
        ],
        "title": "ProviderCapability",
        "type": "string"
      },
      "ProviderCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-created",
            "default": "provider-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderCreatedEvent",
        "type": "object"
      },
      "ProviderDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-deleted",
            "default": "provider-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderDeletedEvent",
        "type": "object"
      },
      "ProviderDisabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-disabled",
            "default": "provider-disabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderDisabledEvent",
        "type": "object"
      },
      "ProviderEnabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-enabled",
            "default": "provider-enabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderEnabledEvent",
        "type": "object"
      },
      "ProviderOutputFile": {
        "properties": {
          "contentType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contenttype"
          },
          "data": {
            "title": "Data"
          },
          "isBase64": {
            "default": false,
            "title": "Isbase64",
            "type": "boolean"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "required": [
          "data"
        ],
        "title": "ProviderOutputFile",
        "type": "object"
      },
      "ProviderPromptResult": {
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Response contents from LLM",
            "title": "Data"
          },
          "receivedDate": {
            "description": "Time response was received from the LLM",
            "format": "date-time",
            "title": "Receiveddate",
            "type": "string"
          },
          "sentDate": {
            "description": "Time prompt was sent to the LLM",
            "format": "date-time",
            "title": "Sentdate",
            "type": "string"
          },
          "statusCode": {
            "description": "Status code returned from request to provider",
            "title": "Statuscode",
            "type": "integer"
          }
        },
        "required": [
          "statusCode",
          "sentDate",
          "receivedDate"
        ],
        "title": "ProviderPromptResult",
        "type": "object"
      },
      "ProviderRunBlockData": {
        "properties": {
          "request": {
            "$ref": "#/components/schemas/ProviderRunRequestData",
            "description": "Data of the request sent"
          },
          "response": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProvideRunResponseData"
              },
              {
                "type": "null"
              }
            ],
            "description": "Data of the response received for the request, if one was received"
          }
        },
        "required": [
          "request"
        ],
        "title": "ProviderRunBlockData",
        "type": "object"
      },
      "ProviderRunRequestData": {
        "properties": {
          "body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Body of the request if one was sent, encoded in base64",
            "title": "Body"
          },
          "headers": {
            "additionalProperties": true,
            "description": "Headers sent as part of the request",
            "title": "Headers",
            "type": "object"
          },
          "method": {
            "description": "HTTP method of the request",
            "title": "Method",
            "type": "string"
          },
          "queryParams": {
            "additionalProperties": true,
            "description": "Query parameters appended to the URL for this request",
            "title": "Queryparams",
            "type": "object"
          },
          "url": {
            "description": "URL that the request was sent",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "method",
          "url",
          "headers",
          "queryParams"
        ],
        "title": "ProviderRunRequestData",
        "type": "object"
      },
      "ProviderTestEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "testId": {
            "format": "uuid",
            "title": "Testid",
            "type": "string"
          },
          "type": {
            "const": "provider-test",
            "default": "provider-test",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "testId"
        ],
        "title": "ProviderTestEvent",
        "type": "object"
      },
      "ProviderType": {
        "enum": [
          "ibm",
          "openai",
          "azure",
          "cohere",
          "ai21",
          "custom",
          "anthropic",
          "groq",
          "openai-compatible",
          "huggingface",
          "siem",
          "google",
          "bedrock"
        ],
        "title": "ProviderType",
        "type": "string"
      },
      "ProviderUndeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-undeleted",
            "default": "provider-undeleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderUndeletedEvent",
        "type": "object"
      },
      "ProviderUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "providerId": {
            "format": "uuid",
            "title": "Providerid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "provider-updated",
            "default": "provider-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "providerId"
        ],
        "title": "ProviderUpdatedEvent",
        "type": "object"
      },
      "PublicPrompt": {
        "properties": {
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Externalmetadata"
          },
          "extraInputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extrainputs"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "title": "Input"
          },
          "memory": {
            "anyOf": [
              {
                "items": {
                  "format": "uuid",
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "IDs of prev prompts in the conversation",
            "title": "Memory"
          },
          "parentId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the last prompt in the conversation",
            "title": "Parentid"
          },
          "preserve": {
            "default": false,
            "title": "Preserve",
            "type": "boolean"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of LLM provider use for the prompt",
            "title": "Provider"
          },
          "receivedAt": {
            "format": "date-time",
            "title": "Receivedat",
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScanRequestResult"
              },
              {
                "$ref": "#/components/schemas/PublicPromptResult"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "type": {
            "anyOf": [
              {
                "enum": [
                  "prompt",
                  "scan"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "projectId",
          "input",
          "receivedAt",
          "userId"
        ],
        "title": "PublicPrompt",
        "type": "object"
      },
      "PublicPromptResult": {
        "properties": {
          "files": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PromptResultFile"
            },
            "title": "Files",
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/PromptOutcome",
            "description": "One of 'cleared', 'flagged' or 'blocked'"
          },
          "providerResult": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProviderPromptResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The response to the prompt from the LLM",
            "title": "Response"
          }
        },
        "required": [
          "outcome"
        ],
        "title": "PublicPromptResult",
        "type": "object"
      },
      "PublicProvider": {
        "properties": {
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "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"
          },
          "systemProviderId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Systemproviderid"
          },
          "template": {
            "discriminator": {
              "mapping": {
                "request": "#/components/schemas/APIRequestBlock",
                "retry": "#/components/schemas/APIRetryBlock",
                "workflow": "#/components/schemas/APIWorkflowBlock"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/APIRequestBlock"
              },
              {
                "$ref": "#/components/schemas/APIRetryBlock"
              },
              {
                "$ref": "#/components/schemas/APIWorkflowBlock"
              }
            ],
            "title": "Template"
          },
          "type": {
            "$ref": "#/components/schemas/ProviderType"
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "template"
        ],
        "title": "PublicProvider",
        "type": "object"
      },
      "RawScanFormat": {
        "enum": [
          "openai-chat-request",
          "openai-chat-sse",
          "openai-responses-request",
          "openai-responses-sse"
        ],
        "title": "RawScanFormat",
        "type": "string"
      },
      "RefusalCatalog": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "createdBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdby"
          },
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "phrases": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Phrases",
            "type": "array"
          }
        },
        "title": "RefusalCatalog",
        "type": "object"
      },
      "RefusalCatalogResponse": {
        "properties": {
          "refusalCatalog": {
            "$ref": "#/components/schemas/RefusalCatalog"
          }
        },
        "required": [
          "refusalCatalog"
        ],
        "title": "RefusalCatalogResponse",
        "type": "object"
      },
      "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": "#/components/schemas/RefusalSources"
            },
            "title": "Sources",
            "type": "array"
          }
        },
        "title": "RefusalCheck",
        "type": "object"
      },
      "RefusalSources": {
        "enum": [
          "builtin",
          "custom"
        ],
        "title": "RefusalSources",
        "type": "string"
      },
      "RegexScannerConfig": {
        "properties": {
          "pattern": {
            "description": "Python Flavored Regular Expression (RegEx) to check for in the prompt or response. Case insensitive.",
            "title": "Pattern",
            "type": "string"
          },
          "type": {
            "const": "regex",
            "default": "regex",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "pattern"
        ],
        "title": "RegexScannerConfig",
        "type": "object"
      },
      "RegexScannerResult": {
        "properties": {
          "matches": {
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "type": "integer"
                },
                {
                  "type": "integer"
                }
              ],
              "type": "array"
            },
            "title": "Matches",
            "type": "array"
          },
          "type": {
            "const": "regex",
            "default": "regex",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "matches"
        ],
        "title": "RegexScannerResult",
        "type": "object"
      },
      "Remediation": {
        "properties": {
          "campaignRunId": {
            "format": "uuid",
            "title": "Campaignrunid",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "createdBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdby"
          },
          "deployment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemediationDeployment"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemediationError"
              },
              {
                "type": "null"
              }
            ]
          },
          "events": {
            "items": {
              "discriminator": {
                "mapping": {
                  "cancelled": "#/components/schemas/RemediationCancelledEvent",
                  "cancelling": "#/components/schemas/RemediationCancellingEvent",
                  "completed": "#/components/schemas/RemediationCompletedEvent",
                  "failed": "#/components/schemas/RemediationFailedEvent",
                  "queued": "#/components/schemas/RemediationQueuedEvent",
                  "started": "#/components/schemas/RemediationStartedEvent"
                },
                "propertyName": "event"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RemediationQueuedEvent"
                },
                {
                  "$ref": "#/components/schemas/RemediationStartedEvent"
                },
                {
                  "$ref": "#/components/schemas/RemediationCompletedEvent"
                },
                {
                  "$ref": "#/components/schemas/RemediationFailedEvent"
                },
                {
                  "$ref": "#/components/schemas/RemediationCancellingEvent"
                },
                {
                  "$ref": "#/components/schemas/RemediationCancelledEvent"
                }
              ]
            },
            "title": "Events",
            "type": "array"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemediationResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/RemediationStatus"
          },
          "updatedAt": {
            "format": "date-time",
            "title": "Updatedat",
            "type": "string"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "status",
          "campaignRunId",
          "events"
        ],
        "title": "Remediation",
        "type": "object"
      },
      "RemediationCancelledEvent": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "event": {
            "const": "cancelled",
            "default": "cancelled",
            "title": "Event",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "title": "RemediationCancelledEvent",
        "type": "object"
      },
      "RemediationCancellingEvent": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "event": {
            "const": "cancelling",
            "default": "cancelling",
            "title": "Event",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "title": "RemediationCancellingEvent",
        "type": "object"
      },
      "RemediationCompletedEvent": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "event": {
            "const": "completed",
            "default": "completed",
            "title": "Event",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "title": "RemediationCompletedEvent",
        "type": "object"
      },
      "RemediationConfusionMatrix": {
        "properties": {
          "falseNegatives": {
            "title": "Falsenegatives",
            "type": "integer"
          },
          "falsePositives": {
            "title": "Falsepositives",
            "type": "integer"
          },
          "trueNegatives": {
            "title": "Truenegatives",
            "type": "integer"
          },
          "truePositives": {
            "title": "Truepositives",
            "type": "integer"
          }
        },
        "required": [
          "truePositives",
          "falsePositives",
          "trueNegatives",
          "falseNegatives"
        ],
        "title": "RemediationConfusionMatrix",
        "type": "object"
      },
      "RemediationCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "remediationId": {
            "format": "uuid",
            "title": "Remediationid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "remediation-created",
            "default": "remediation-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "remediationId"
        ],
        "title": "RemediationCreatedEvent",
        "type": "object"
      },
      "RemediationDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "remediationId": {
            "format": "uuid",
            "title": "Remediationid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "remediation-deleted",
            "default": "remediation-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "remediationId"
        ],
        "title": "RemediationDeletedEvent",
        "type": "object"
      },
      "RemediationDeployedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "remediationId": {
            "format": "uuid",
            "title": "Remediationid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "remediation-deployed",
            "default": "remediation-deployed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "remediationId"
        ],
        "title": "RemediationDeployedEvent",
        "type": "object"
      },
      "RemediationDeployment": {
        "properties": {
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "createdBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdby"
          },
          "projectIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Projectids",
            "type": "array"
          },
          "rejected": {
            "title": "Rejected",
            "type": "boolean"
          },
          "scannerConfigs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/RemediationScannerConfig"
            },
            "propertyNames": {
              "format": "uuid"
            },
            "title": "Scannerconfigs",
            "type": "object"
          },
          "scannerPackageId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerpackageid"
          }
        },
        "required": [
          "createdAt",
          "rejected",
          "projectIds",
          "scannerConfigs"
        ],
        "title": "RemediationDeployment",
        "type": "object"
      },
      "RemediationError": {
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "message"
        ],
        "title": "RemediationError",
        "type": "object"
      },
      "RemediationEvaluationMetrics": {
        "properties": {
          "accuracy": {
            "title": "Accuracy",
            "type": "number"
          },
          "confusionMatrix": {
            "$ref": "#/components/schemas/RemediationConfusionMatrix"
          },
          "f1Score": {
            "title": "F1Score",
            "type": "number"
          }
        },
        "required": [
          "f1Score",
          "accuracy",
          "confusionMatrix"
        ],
        "title": "RemediationEvaluationMetrics",
        "type": "object"
      },
      "RemediationFailedEvent": {
        "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": "RemediationFailedEvent",
        "type": "object"
      },
      "RemediationIntentScores": {
        "properties": {
          "after": {
            "title": "After",
            "type": "number"
          },
          "before": {
            "title": "Before",
            "type": "number"
          },
          "intent": {
            "title": "Intent",
            "type": "string"
          }
        },
        "required": [
          "before",
          "after",
          "intent"
        ],
        "title": "RemediationIntentScores",
        "type": "object"
      },
      "RemediationQueuedEvent": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "event": {
            "const": "queued",
            "default": "queued",
            "title": "Event",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "title": "RemediationQueuedEvent",
        "type": "object"
      },
      "RemediationRejectedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "remediationId": {
            "format": "uuid",
            "title": "Remediationid",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "remediation-rejected",
            "default": "remediation-rejected",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "remediationId"
        ],
        "title": "RemediationRejectedEvent",
        "type": "object"
      },
      "RemediationResult": {
        "properties": {
          "intentScores": {
            "items": {
              "$ref": "#/components/schemas/RemediationIntentScores"
            },
            "title": "Intentscores",
            "type": "array"
          },
          "metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemediationEvaluationMetrics"
              },
              {
                "type": "null"
              }
            ]
          },
          "resultFileId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resultfileid"
          },
          "scanners": {
            "items": {
              "$ref": "#/components/schemas/RemediationResultScanner"
            },
            "title": "Scanners",
            "type": "array"
          },
          "scores": {
            "$ref": "#/components/schemas/RemediationScores"
          }
        },
        "required": [
          "scanners",
          "scores",
          "intentScores"
        ],
        "title": "RemediationResult",
        "type": "object"
      },
      "RemediationResultScanner": {
        "properties": {
          "config": {
            "$ref": "#/components/schemas/GenAIScannerConfig"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "config"
        ],
        "title": "RemediationResultScanner",
        "type": "object"
      },
      "RemediationScannerConfig": {
        "properties": {
          "blocking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocking"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "flagMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Flagmessage"
          },
          "force": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Force"
          },
          "mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScanMode"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "RemediationScannerConfig",
        "type": "object"
      },
      "RemediationScannerSource": {
        "properties": {
          "sourceId": {
            "format": "uuid",
            "title": "Sourceid",
            "type": "string"
          },
          "type": {
            "const": "remediation",
            "default": "remediation",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "sourceId"
        ],
        "title": "RemediationScannerSource",
        "type": "object"
      },
      "RemediationScores": {
        "properties": {
          "after": {
            "title": "After",
            "type": "number"
          },
          "before": {
            "title": "Before",
            "type": "number"
          }
        },
        "required": [
          "before",
          "after"
        ],
        "title": "RemediationScores",
        "type": "object"
      },
      "RemediationStartedEvent": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "event": {
            "const": "started",
            "default": "started",
            "title": "Event",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "title": "RemediationStartedEvent",
        "type": "object"
      },
      "RemediationStatus": {
        "enum": [
          "requested",
          "in_progress",
          "complete",
          "error",
          "implemented",
          "deployed",
          "cancelling",
          "cancelled",
          "rejected"
        ],
        "title": "RemediationStatus",
        "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"
      },
      "Role": {
        "properties": {
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "isDefault": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false,
            "title": "Isdefault"
          },
          "memberCount": {
            "title": "Membercount",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "permissions": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "system": {
            "title": "System",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "system",
          "memberCount"
        ],
        "title": "Role",
        "type": "object"
      },
      "RoleCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "role-created",
            "default": "role-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "roleId"
        ],
        "title": "RoleCreatedEvent",
        "type": "object"
      },
      "RoleDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "role-deleted",
            "default": "role-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "roleId"
        ],
        "title": "RoleDeletedEvent",
        "type": "object"
      },
      "RolePermissionsAddedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "role-permissions-added",
            "default": "role-permissions-added",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "roleId"
        ],
        "title": "RolePermissionsAddedEvent",
        "type": "object"
      },
      "RolePermissionsRemovedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "role-permissions-removed",
            "default": "role-permissions-removed",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "roleId"
        ],
        "title": "RolePermissionsRemovedEvent",
        "type": "object"
      },
      "RoleUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "roleId": {
            "format": "uuid",
            "title": "Roleid",
            "type": "string"
          },
          "type": {
            "const": "role-updated",
            "default": "role-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "roleId"
        ],
        "title": "RoleUpdatedEvent",
        "type": "object"
      },
      "RunStatus": {
        "enum": [
          "in_progress",
          "complete",
          "error"
        ],
        "title": "RunStatus",
        "type": "string"
      },
      "Scan": {
        "properties": {
          "completedDate": {
            "format": "date-time",
            "title": "Completeddate",
            "type": "string"
          },
          "customConfig": {
            "default": false,
            "title": "Customconfig",
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "custom": "#/components/schemas/GenAIScannerResult",
                    "error": "#/components/schemas/ErrorScanResult",
                    "genai": "#/components/schemas/GenAIScannerResult",
                    "keyword": "#/components/schemas/KeywordScannerResult",
                    "regex": "#/components/schemas/RegexScannerResult"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RegexScannerResult"
                  },
                  {
                    "$ref": "#/components/schemas/KeywordScannerResult"
                  },
                  {
                    "$ref": "#/components/schemas/GenAIScannerResult"
                  },
                  {
                    "$ref": "#/components/schemas/ErrorScanResult"
                  }
                ]
              },
              {
                "$ref": "#/components/schemas/LegacyScannerResult"
              }
            ],
            "title": "Data"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "outcome": {
            "$ref": "#/components/schemas/ScanOutcome"
          },
          "scanDirection": {
            "$ref": "#/components/schemas/ScanDirection"
          },
          "scannerId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannerid"
          },
          "scannerVersionMeta": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerVersionMeta"
              },
              {
                "type": "null"
              }
            ]
          },
          "startedDate": {
            "format": "date-time",
            "title": "Starteddate",
            "type": "string"
          }
        },
        "required": [
          "outcome",
          "data",
          "startedDate",
          "completedDate",
          "scanDirection"
        ],
        "title": "Scan",
        "type": "object"
      },
      "ScanDirection": {
        "enum": [
          "request",
          "response"
        ],
        "title": "ScanDirection",
        "type": "string"
      },
      "ScanMode": {
        "enum": [
          "block",
          "audit",
          "redact"
        ],
        "title": "ScanMode",
        "type": "string"
      },
      "ScanOutcome": {
        "description": "The outcome of a single scan on a prompt.",
        "enum": [
          "failed",
          "passed"
        ],
        "title": "ScanOutcome",
        "type": "string"
      },
      "ScanRequest": {
        "properties": {
          "externalMetadata": {
            "anyOf": [
              {
                "maxProperties": 10,
                "patternProperties": {
                  "^[a-zA-Z0-9_\\-]*$": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "propertyNames": {
                  "maxLength": 50
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Externalmetadata"
          },
          "extraInputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extrainputs"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ],
            "title": "Input"
          },
          "preserve": {
            "default": false,
            "title": "Preserve",
            "type": "boolean"
          },
          "projectId": {
            "format": "uuid",
            "title": "Projectid",
            "type": "string"
          },
          "receivedAt": {
            "format": "date-time",
            "title": "Receivedat",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/ScanRequestResult"
          },
          "type": {
            "const": "scan",
            "default": "scan",
            "title": "Type",
            "type": "string"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "projectId",
          "input",
          "receivedAt",
          "result",
          "userId"
        ],
        "title": "ScanRequest",
        "type": "object"
      },
      "ScanRequestResult": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/PromptOutcome",
            "description": "One of 'cleared' or 'flagged'"
          },
          "response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The response of the prompt from the llm after processing by guardrails, in case it is a response scan",
            "title": "Response"
          },
          "scannerResults": {
            "description": "Result for each guardrail that ran on the prompt",
            "items": {
              "$ref": "#/components/schemas/Scan"
            },
            "title": "Scannerresults",
            "type": "array"
          }
        },
        "required": [
          "scannerResults",
          "outcome"
        ],
        "title": "ScanRequestResult",
        "type": "object"
      },
      "ScanType": {
        "enum": [
          "genai",
          "custom",
          "regex",
          "keyword"
        ],
        "title": "ScanType",
        "type": "string"
      },
      "Scanner": {
        "properties": {
          "availability": {
            "$ref": "#/components/schemas/ScannerAvailability",
            "default": {
              "global": false,
              "projectIds": []
            }
          },
          "config": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "custom": "#/components/schemas/GenAIScannerConfig",
                    "genai": "#/components/schemas/GenAIScannerConfig",
                    "keyword": "#/components/schemas/KeywordScannerConfig",
                    "regex": "#/components/schemas/RegexScannerConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RegexScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/KeywordScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/GenAIScannerConfig"
                  }
                ]
              },
              {
                "$ref": "#/components/schemas/LegacyScannerConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "direction": {
            "$ref": "#/components/schemas/ScannerDirection",
            "default": "request"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "packageId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Packageid"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "scannerTemplateId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannertemplateid"
          },
          "source": {
            "default": {
              "type": "internal"
            },
            "discriminator": {
              "mapping": {
                "internal": "#/components/schemas/InternalScannerSource",
                "remediation": "#/components/schemas/RemediationScannerSource",
                "vendor": "#/components/schemas/VendorScannerSource",
                "zip": "#/components/schemas/ZipScannerSource"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/InternalScannerSource"
              },
              {
                "$ref": "#/components/schemas/ZipScannerSource"
              },
              {
                "$ref": "#/components/schemas/VendorScannerSource"
              },
              {
                "$ref": "#/components/schemas/RemediationScannerSource"
              }
            ],
            "title": "Source"
          },
          "tags": {
            "default": [],
            "items": {
              "maxLength": 50,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9-_]+$",
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "vendored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "default": false,
            "title": "Vendored"
          },
          "versionMeta": {
            "$ref": "#/components/schemas/ScannerVersionMeta"
          }
        },
        "required": [
          "name",
          "id",
          "versionMeta"
        ],
        "title": "Scanner",
        "type": "object"
      },
      "ScannerAvailability": {
        "properties": {
          "global": {
            "default": false,
            "description": "If True guardrail can be used by all projects",
            "title": "Global",
            "type": "boolean"
          },
          "projectIds": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Projectids",
            "type": "array",
            "uniqueItems": true
          }
        },
        "title": "ScannerAvailability",
        "type": "object"
      },
      "ScannerAvailabilityUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-availability-updated",
            "default": "scanner-availability-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerAvailabilityUpdatedEvent",
        "type": "object"
      },
      "ScannerCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-created",
            "default": "scanner-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerCreatedEvent",
        "type": "object"
      },
      "ScannerDatasetResult": {
        "properties": {
          "datasetRunId": {
            "format": "uuid",
            "title": "Datasetrunid",
            "type": "string"
          },
          "f1Score": {
            "title": "F1Score",
            "type": "number"
          }
        },
        "required": [
          "datasetRunId",
          "f1Score"
        ],
        "title": "ScannerDatasetResult",
        "type": "object"
      },
      "ScannerDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-deleted",
            "default": "scanner-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerDeletedEvent",
        "type": "object"
      },
      "ScannerDescriptionGenerationInput": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          },
          "type": {
            "const": "scanner_description",
            "default": "scanner_description",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "description"
        ],
        "title": "ScannerDescriptionGenerationInput",
        "type": "object"
      },
      "ScannerDescriptionGenerationOutput": {
        "properties": {
          "description": {
            "title": "Description",
            "type": "string"
          }
        },
        "required": [
          "description"
        ],
        "title": "ScannerDescriptionGenerationOutput",
        "type": "object"
      },
      "ScannerDirection": {
        "enum": [
          "both",
          "request",
          "response"
        ],
        "title": "ScannerDirection",
        "type": "string"
      },
      "ScannerDisabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-disabled",
            "default": "scanner-disabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerDisabledEvent",
        "type": "object"
      },
      "ScannerEnabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-enabled",
            "default": "scanner-enabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerEnabledEvent",
        "type": "object"
      },
      "ScannerExport": {
        "properties": {
          "availability": {
            "$ref": "#/components/schemas/ScannerAvailability",
            "default": {
              "global": false,
              "projectIds": []
            }
          },
          "config": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "custom": "#/components/schemas/GenAIScannerConfig",
                    "genai": "#/components/schemas/GenAIScannerConfig",
                    "keyword": "#/components/schemas/KeywordScannerConfig",
                    "regex": "#/components/schemas/RegexScannerConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RegexScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/KeywordScannerConfig"
                  },
                  {
                    "$ref": "#/components/schemas/GenAIScannerConfig"
                  }
                ]
              },
              {
                "$ref": "#/components/schemas/LegacyScannerConfig"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          },
          "direction": {
            "$ref": "#/components/schemas/ScannerDirection",
            "default": "request"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "packageId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Packageid"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "scannerTemplateId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scannertemplateid"
          },
          "source": {
            "default": {
              "type": "internal"
            },
            "discriminator": {
              "mapping": {
                "internal": "#/components/schemas/InternalScannerSource",
                "remediation": "#/components/schemas/RemediationScannerSource",
                "vendor": "#/components/schemas/VendorScannerSource",
                "zip": "#/components/schemas/ZipScannerSource"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/InternalScannerSource"
              },
              {
                "$ref": "#/components/schemas/ZipScannerSource"
              },
              {
                "$ref": "#/components/schemas/VendorScannerSource"
              },
              {
                "$ref": "#/components/schemas/RemediationScannerSource"
              }
            ],
            "title": "Source"
          },
          "tags": {
            "default": [],
            "items": {
              "maxLength": 50,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9-_]+$",
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "vendored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "default": false,
            "title": "Vendored"
          },
          "versionMeta": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerVersionInputModel"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "id"
        ],
        "title": "ScannerExport",
        "type": "object"
      },
      "ScannerImportError": {
        "properties": {
          "details": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Details"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Path"
          }
        },
        "required": [
          "message"
        ],
        "title": "ScannerImportError",
        "type": "object"
      },
      "ScannerPackage": {
        "properties": {
          "availability": {
            "$ref": "#/components/schemas/ScannerAvailability",
            "default": {
              "global": false,
              "projectIds": []
            }
          },
          "direction": {
            "$ref": "#/components/schemas/ScannerDirection"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "scannerCounts": {
            "additionalProperties": {
              "type": "integer"
            },
            "default": {},
            "title": "Scannercounts",
            "type": "object"
          },
          "scannerIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Scannerids",
            "type": "array"
          },
          "source": {
            "discriminator": {
              "mapping": {
                "internal": "#/components/schemas/InternalScannerSource",
                "remediation": "#/components/schemas/RemediationScannerSource",
                "vendor": "#/components/schemas/VendorScannerSource",
                "zip": "#/components/schemas/ZipScannerSource"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/InternalScannerSource"
              },
              {
                "$ref": "#/components/schemas/ZipScannerSource"
              },
              {
                "$ref": "#/components/schemas/VendorScannerSource"
              },
              {
                "$ref": "#/components/schemas/RemediationScannerSource"
              }
            ],
            "title": "Source"
          },
          "vendored": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "default": false,
            "title": "Vendored"
          }
        },
        "required": [
          "id",
          "name",
          "source",
          "direction",
          "scannerIds"
        ],
        "title": "ScannerPackage",
        "type": "object"
      },
      "ScannerPackageAvailabilityUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-availability-updated",
            "default": "scanner-package-availability-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageAvailabilityUpdatedEvent",
        "type": "object"
      },
      "ScannerPackageCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-created",
            "default": "scanner-package-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageCreatedEvent",
        "type": "object"
      },
      "ScannerPackageDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-deleted",
            "default": "scanner-package-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageDeletedEvent",
        "type": "object"
      },
      "ScannerPackageDisabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-disabled",
            "default": "scanner-package-disabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageDisabledEvent",
        "type": "object"
      },
      "ScannerPackageEnabledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-enabled",
            "default": "scanner-package-enabled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageEnabledEvent",
        "type": "object"
      },
      "ScannerPackageUndeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-undeleted",
            "default": "scanner-package-undeleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageUndeletedEvent",
        "type": "object"
      },
      "ScannerPackageUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerPackageId": {
            "format": "uuid",
            "title": "Scannerpackageid",
            "type": "string"
          },
          "type": {
            "const": "scanner-package-updated",
            "default": "scanner-package-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerPackageId"
        ],
        "title": "ScannerPackageUpdatedEvent",
        "type": "object"
      },
      "ScannerPublishedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-published",
            "default": "scanner-published",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerPublishedEvent",
        "type": "object"
      },
      "ScannerSearchSortBy": {
        "enum": [
          "name",
          "updated_at",
          "created_at"
        ],
        "title": "ScannerSearchSortBy",
        "type": "string"
      },
      "ScannerSourceType": {
        "enum": [
          "internal",
          "zip",
          "vendor",
          "remediation"
        ],
        "title": "ScannerSourceType",
        "type": "string"
      },
      "ScannerTemplateCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerTemplateId": {
            "format": "uuid",
            "title": "Scannertemplateid",
            "type": "string"
          },
          "type": {
            "const": "scanner-template-created",
            "default": "scanner-template-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerTemplateId"
        ],
        "title": "ScannerTemplateCreatedEvent",
        "type": "object"
      },
      "ScannerTemplateUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerTemplateId": {
            "format": "uuid",
            "title": "Scannertemplateid",
            "type": "string"
          },
          "type": {
            "const": "scanner-template-updated",
            "default": "scanner-template-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerTemplateId"
        ],
        "title": "ScannerTemplateUpdatedEvent",
        "type": "object"
      },
      "ScannerUndeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-undeleted",
            "default": "scanner-undeleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerUndeletedEvent",
        "type": "object"
      },
      "ScannerUnpublishedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-unpublished",
            "default": "scanner-unpublished",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerUnpublishedEvent",
        "type": "object"
      },
      "ScannerUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-updated",
            "default": "scanner-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "scannerId"
        ],
        "title": "ScannerUpdatedEvent",
        "type": "object"
      },
      "ScannerVersionInputModel": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Description of the changes in the new version.",
            "title": "Description"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 100,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9-_]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Name for the new version.",
            "title": "Name"
          },
          "published": {
            "default": true,
            "description": "If the version should be published.",
            "title": "Published",
            "type": "boolean"
          },
          "push": {
            "default": false,
            "description": "If the version should be pushed to all projects using the guardrail.\nOnly has an effect if the version is published.",
            "title": "Push",
            "type": "boolean"
          }
        },
        "title": "ScannerVersionInputModel",
        "type": "object"
      },
      "ScannerVersionMeta": {
        "properties": {
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "createdBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdby"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerDirection"
              },
              {
                "type": "null"
              }
            ]
          },
          "f1Score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "F1Score"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "latestDatasetResult": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScannerDatasetResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[a-zA-Z0-9-_]+$",
            "title": "Name",
            "type": "string"
          },
          "published": {
            "title": "Published",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "createdAt",
          "name",
          "published"
        ],
        "title": "ScannerVersionMeta",
        "type": "object"
      },
      "ScannerVersionPublishedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "scannerId": {
            "format": "uuid",
            "title": "Scannerid",
            "type": "string"
          },
          "type": {
            "const": "scanner-version-published",
            "default": "scanner-version-published",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "versionId": {
            "format": "uuid",
            "title": "Versionid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "scannerId",
          "versionId"
        ],
        "title": "ScannerVersionPublishedEvent",
        "type": "object"
      },
      "Secret": {
        "properties": {
          "deletedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deletedat"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "value": {
            "format": "password",
            "title": "Value",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "id",
          "name",
          "value"
        ],
        "title": "Secret",
        "type": "object"
      },
      "SecretCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "secretId": {
            "format": "uuid",
            "title": "Secretid",
            "type": "string"
          },
          "type": {
            "const": "secret-created",
            "default": "secret-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "secretId"
        ],
        "title": "SecretCreatedEvent",
        "type": "object"
      },
      "SecretDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "secretId": {
            "format": "uuid",
            "title": "Secretid",
            "type": "string"
          },
          "type": {
            "const": "secret-deleted",
            "default": "secret-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "secretId"
        ],
        "title": "SecretDeletedEvent",
        "type": "object"
      },
      "SecretUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "secretId": {
            "format": "uuid",
            "title": "Secretid",
            "type": "string"
          },
          "type": {
            "const": "secret-updated",
            "default": "secret-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "secretId"
        ],
        "title": "SecretUpdatedEvent",
        "type": "object"
      },
      "Setting": {
        "properties": {
          "level": {
            "title": "Level",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "setAt": {
            "format": "date-time",
            "title": "Setat",
            "type": "string"
          },
          "setBy": {
            "title": "Setby",
            "type": "string"
          },
          "value": {
            "title": "Value"
          }
        },
        "required": [
          "name",
          "value",
          "setBy",
          "setAt",
          "level"
        ],
        "title": "Setting",
        "type": "object"
      },
      "StaticContentAttack": {
        "properties": {
          "converters": {
            "default": [
              "base64",
              "leetspeak",
              "unicode_confusable",
              "caesar",
              "repeat_token",
              "single_character"
            ],
            "items": {
              "$ref": "#/components/schemas/PromptConverter"
            },
            "title": "Converters",
            "type": "array"
          },
          "pack": {
            "default": "2026-09",
            "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"
            ],
            "title": "Vector",
            "type": "string"
          }
        },
        "required": [
          "vector"
        ],
        "title": "StaticContentAttack",
        "type": "object"
      },
      "SuccessMessage": {
        "description": "Confirms a successful operation.",
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "title": "SuccessMessage",
        "type": "object"
      },
      "SystemIntentsGenerationInput": {
        "properties": {
          "systemPrompt": {
            "title": "Systemprompt",
            "type": "string"
          },
          "type": {
            "const": "system_intents",
            "default": "system_intents",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "systemPrompt"
        ],
        "title": "SystemIntentsGenerationInput",
        "type": "object"
      },
      "SystemIntentsGenerationOutput": {
        "properties": {
          "intents": {
            "items": {
              "type": "string"
            },
            "title": "Intents",
            "type": "array"
          }
        },
        "required": [
          "intents"
        ],
        "title": "SystemIntentsGenerationOutput",
        "type": "object"
      },
      "TaskCanceledEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "taskId": {
            "format": "uuid",
            "title": "Taskid",
            "type": "string"
          },
          "type": {
            "const": "task-canceled",
            "default": "task-canceled",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "taskId"
        ],
        "title": "TaskCanceledEvent",
        "type": "object"
      },
      "TaskCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "taskId": {
            "format": "uuid",
            "title": "Taskid",
            "type": "string"
          },
          "type": {
            "const": "task-created",
            "default": "task-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "taskId"
        ],
        "title": "TaskCreatedEvent",
        "type": "object"
      },
      "TaskUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "taskId": {
            "format": "uuid",
            "title": "Taskid",
            "type": "string"
          },
          "type": {
            "const": "task-updated",
            "default": "task-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "user",
          "taskId"
        ],
        "title": "TaskUpdatedEvent",
        "type": "object"
      },
      "Token": {
        "properties": {
          "expiresAt": {
            "format": "date-time",
            "title": "Expiresat",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "machine": {
            "title": "Machine",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "projectId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projectid"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          },
          "value": {
            "format": "password",
            "title": "Value",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "id",
          "name",
          "value",
          "expiresAt",
          "machine",
          "userId"
        ],
        "title": "Token",
        "type": "object"
      },
      "UpdateScheduleParams": {
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Determines how many occurrences will be generated. Cannot specify both count and end_at.",
            "title": "Count"
          },
          "endAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Target time after which no future occurrences will be generated.",
            "title": "Endat"
          },
          "frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignScheduleFrequency"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often the schedule should run."
          },
          "interval": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The interval between each frequency iteration. For example, when using DAYS, an interval of 2 means once every two days. The default interval is 1.",
            "title": "Interval"
          },
          "name": {
            "description": "Name to give the campaign runs in this schedule.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "remediationSettings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignRunRemediationSettings"
              },
              {
                "type": "null"
              }
            ],
            "description": "Determines if the campaign run will automatically create a remediation for vulnerabilities found."
          },
          "startAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Target time to start the first campaign run. If this does not match the previous parameter, it must be in the future.",
            "title": "Startat"
          }
        },
        "required": [
          "name"
        ],
        "title": "UpdateScheduleParams",
        "type": "object"
      },
      "User": {
        "properties": {
          "admin": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Admin"
          },
          "blocked": {
            "default": false,
            "title": "Blocked",
            "type": "boolean"
          },
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "email": {
            "format": "password",
            "title": "Email",
            "type": "string",
            "writeOnly": true
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "lastInvitationSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastinvitationsentat"
          },
          "machine": {
            "default": false,
            "title": "Machine",
            "type": "boolean"
          },
          "name": {
            "format": "password",
            "title": "Name",
            "type": "string",
            "writeOnly": true
          },
          "org": {
            "title": "Org",
            "type": "string"
          },
          "permissions": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Permissions",
            "type": "array",
            "uniqueItems": true
          },
          "roleIds": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Roleids",
            "type": "array"
          },
          "roles": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Roles",
            "type": "array"
          },
          "social": {
            "default": false,
            "title": "Social",
            "type": "boolean"
          },
          "teams": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Teams",
            "type": "array"
          },
          "verified": {
            "default": true,
            "title": "Verified",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "org"
        ],
        "title": "User",
        "type": "object"
      },
      "UserAuthenticationMethodsDeleted": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-auth-method-deleted",
            "default": "user-auth-method-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserAuthenticationMethodsDeleted",
        "type": "object"
      },
      "UserBlockedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-blocked",
            "default": "user-blocked",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserBlockedEvent",
        "type": "object"
      },
      "UserCreatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-created",
            "default": "user-created",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserCreatedEvent",
        "type": "object"
      },
      "UserDeletedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-deleted",
            "default": "user-deleted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserDeletedEvent",
        "type": "object"
      },
      "UserRole": {
        "enum": [
          "owner",
          "super_admin",
          "basic"
        ],
        "title": "UserRole",
        "type": "string"
      },
      "UserRoleAssignedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-role-granted",
            "default": "user-role-granted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserRoleAssignedEvent",
        "type": "object"
      },
      "UserRoleRetractedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-role-retracted",
            "default": "user-role-retracted",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserRoleRetractedEvent",
        "type": "object"
      },
      "UserRolesUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-roles-updated",
            "default": "user-roles-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserRolesUpdatedEvent",
        "type": "object"
      },
      "UserUnblockedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-unblocked",
            "default": "user-unblocked",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserUnblockedEvent",
        "type": "object"
      },
      "UserUpdatedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-updated",
            "default": "user-updated",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserUpdatedEvent",
        "type": "object"
      },
      "UserVerifiedEvent": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "type": {
            "const": "user-verified",
            "default": "user-verified",
            "title": "Type",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "title": "Userid",
            "type": "string"
          }
        },
        "required": [
          "user",
          "userId"
        ],
        "title": "UserVerifiedEvent",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "VendorScannerSource": {
        "properties": {
          "type": {
            "const": "vendor",
            "default": "vendor",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "VendorScannerSource",
        "type": "object"
      },
      "ZipImportResult": {
        "properties": {
          "errors": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ScannerImportError"
            },
            "title": "Errors",
            "type": "array"
          },
          "packageIds": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Packageids",
            "type": "array"
          },
          "scannerIds": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Scannerids",
            "type": "array"
          },
          "scannerTemplateIds": {
            "default": [],
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "title": "Scannertemplateids",
            "type": "array"
          }
        },
        "title": "ZipImportResult",
        "type": "object"
      },
      "ZipScannerSource": {
        "properties": {
          "type": {
            "const": "zip",
            "default": "zip",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "ZipScannerSource",
        "type": "object"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "CalypsoAI API",
    "version": "10.106.1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/anthropic/{provider}/v1/messages": {
      "post": {
        "operationId": "post_anthropic_provider_v1_messages",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAnthropicMessagesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Post",
        "tags": [
          "Anthropic"
        ]
      }
    },
    "/backend/v1/admin/export": {
      "post": {
        "description": "Exports all configuration data for the organization to be used for backup or migration purposes.",
        "operationId": "post_admin_export",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostAdminSettingsExportBody"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create org settings backup.",
        "tags": [
          "Admin"
        ]
      }
    },
    "/backend/v1/admin/import": {
      "post": {
        "description": "Restores organization configuration from a previously created backup.",
        "operationId": "post_admin_import",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAdmingSettingsImportBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Import org settings.",
        "tags": [
          "Admin"
        ]
      }
    },
    "/backend/v1/agent-sessions": {
      "get": {
        "operationId": "get_agent_sessions",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Number of results to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Number of results to return.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AgentSessionSortBy",
              "default": "updated_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Project to retrieve agent sessions for.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Project to retrieve agent sessions for.",
              "title": "Project"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgentSessionsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Agent-Sessions"
        ]
      }
    },
    "/backend/v1/agent-sessions/{agentSessionId}": {
      "get": {
        "operationId": "get_agent_sessions_agentSessionId",
        "parameters": [
          {
            "in": "path",
            "name": "agentSessionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Agentsessionid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgentSessionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Agent-Sessions"
        ]
      }
    },
    "/backend/v1/audit": {
      "get": {
        "description": "Retrieves a paginated list of events that detail the configuration history of the app.",
        "operationId": "get_audit",
        "parameters": [
          {
            "description": "\n                Selects page for paginated results. Pass in the next or prev attribute in the response.\n            ",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "\n                Selects page for paginated results. Pass in the next or prev attribute in the response.\n            ",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "Only return specific types of audit events.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only return specific types of audit events.",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/AuditEventType"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "title": "Type",
              "type": "array"
            }
          },
          {
            "description": "Only return audit events created by specified user.",
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return audit events created by specified user.",
              "title": "Userid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuditResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get audit events.",
        "tags": [
          "Audit"
        ]
      }
    },
    "/backend/v1/audit/{eventId}": {
      "get": {
        "description": "Retrieves an event by its ID.",
        "operationId": "get_audit_eventId",
        "parameters": [
          {
            "in": "path",
            "name": "eventId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Eventid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuditEventResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get event.",
        "tags": [
          "Audit"
        ]
      }
    },
    "/backend/v1/auth/roles": {
      "get": {
        "description": "Retrieves a list of available roles associated with a given resource,\nwith the option to adjust the limit for more results.",
        "operationId": "get_auth_roles",
        "parameters": [
          {
            "description": "Returns roles associated with the specified project. If not provided, organization roles are returned",
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Returns roles associated with the specified project. If not provided, organization roles are returned",
              "title": "Projectid"
            }
          },
          {
            "description": "Max number of items to be returned.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Max number of items to be returned.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Pass cursor from response to get next or prev page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pass cursor from response to get next or prev page.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuthRolesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get roles.",
        "tags": [
          "Auth"
        ]
      },
      "post": {
        "description": "Create a new role associated with a given resource.\n\nCurrently available resources to associate with a role are the organization and projects.",
        "operationId": "post_auth_roles",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAuthRolesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create role.",
        "tags": [
          "Auth"
        ]
      }
    },
    "/backend/v1/auth/roles/default": {
      "get": {
        "description": "Requests the configured default role.",
        "operationId": "get_auth_roles_default",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuthRoleDefaultResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get the default role.",
        "tags": [
          "Auth"
        ]
      }
    },
    "/backend/v1/auth/roles/{roleId}": {
      "delete": {
        "description": "Deletes a role. If the role has assigned users, they can be moved to a new role if one is provided.",
        "operationId": "delete_auth_roles_roleId",
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/DeleteAuthRoleBody"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete role.",
        "tags": [
          "Auth"
        ]
      },
      "get": {
        "description": "Request a role by its ID.",
        "operationId": "get_auth_roles_roleId",
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuthRoleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get role.",
        "tags": [
          "Auth"
        ]
      },
      "patch": {
        "description": "Modifies the role's name and/or permissions. If permissions are provided, they will replace the existing set.",
        "operationId": "patch_auth_roles_roleId",
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAuthRoleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update role.",
        "tags": [
          "Auth"
        ]
      }
    },
    "/backend/v1/auth/roles/{roleId}/permissions": {
      "delete": {
        "description": "Revokes one or more existing permissions from the specified role.",
        "operationId": "delete_auth_roles_roleId_permissions",
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAuthRolePermissionsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove permissions.",
        "tags": [
          "Auth"
        ]
      },
      "patch": {
        "description": "Add new permissions to a role.",
        "operationId": "patch_auth_roles_roleId_permissions",
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAuthRolePermissionsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add permissions.",
        "tags": [
          "Auth"
        ]
      }
    },
    "/backend/v1/branding": {
      "get": {
        "description": "Return the branding config.",
        "operationId": "get_branding",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBrandingResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get branding.",
        "tags": [
          "Branding"
        ]
      },
      "patch": {
        "description": "Edit the branding config.",
        "operationId": "patch_branding",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchBrandingBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update branding.",
        "tags": [
          "Branding"
        ]
      }
    },
    "/backend/v1/branding/favicon": {
      "delete": {
        "description": "Reset the favicon to the first in the history, normally the CalypsoAI branding.",
        "operationId": "delete_branding_favicon",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Reset favicon.",
        "tags": [
          "Branding"
        ]
      },
      "get": {
        "description": "Return the favicon as raw bytes.",
        "operationId": "get_branding_favicon",
        "responses": {
          "200": {
            "content": {
              "image/png": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get favicon.",
        "tags": [
          "Branding"
        ]
      },
      "post": {
        "description": "Upload a new favicon.",
        "operationId": "post_branding_favicon",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Upload favicon.",
        "tags": [
          "Branding"
        ]
      }
    },
    "/backend/v1/branding/logo": {
      "delete": {
        "description": "Reset the logo to the first in the history, normally the CalypsoAI branding.",
        "operationId": "delete_branding_logo",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Reset logo.",
        "tags": [
          "Branding"
        ]
      },
      "get": {
        "description": "Return the logo image as raw bytes.",
        "operationId": "get_branding_logo",
        "responses": {
          "200": {
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get logo.",
        "tags": [
          "Branding"
        ]
      },
      "post": {
        "description": "Upload a new logo image.",
        "operationId": "post_branding_logo",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Upload logo.",
        "tags": [
          "Branding"
        ]
      }
    },
    "/backend/v1/campaign-runs": {
      "get": {
        "description": "Retrieves a list of campaign runs that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_campaign_runs",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "Filter by campaign runs with names that match this value.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaign runs with names that match this value.",
              "title": "Name"
            }
          },
          {
            "description": "Filter by campaign runs shared with this Red Team project.",
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaign runs shared with this Red Team project.",
              "title": "Projectid"
            }
          },
          {
            "description": "Filter by campaign runs in this schedule.",
            "in": "query",
            "name": "campaignScheduleId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaign runs in this schedule.",
              "title": "Campaignscheduleid"
            }
          },
          {
            "description": "Filter by campaign runs with any of these statuses.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/CampaignRunStatus"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaign runs with any of these statuses.",
              "title": "Status"
            }
          },
          {
            "description": "Filter by provider that the campaign was run against.",
            "in": "query",
            "name": "providerId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by provider that the campaign was run against.",
              "title": "Providerid"
            }
          },
          {
            "description": "Filter by users that created the campaign runs.",
            "in": "query",
            "name": "createdBy",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by users that created the campaign runs.",
              "title": "Createdby"
            }
          },
          {
            "description": "Only return campaign runs with a score between range.",
            "in": "query",
            "name": "scoreRange",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/CampaignRunScoreRating"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return campaign runs with a score between range.",
              "title": "Scorerange"
            }
          },
          {
            "description": "Include providers that the campaign was run against.",
            "in": "query",
            "name": "includeProviders",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include providers that the campaign was run against.",
              "title": "Includeproviders",
              "type": "boolean"
            }
          },
          {
            "description": "Include remediations that were created from the campaign runs.",
            "in": "query",
            "name": "includeRemediations",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include remediations that were created from the campaign runs.",
              "title": "Includeremediations",
              "type": "boolean"
            }
          },
          {
            "description": "Include campaigns.",
            "in": "query",
            "name": "includeCampaigns",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include campaigns.",
              "title": "Includecampaigns",
              "type": "boolean"
            }
          },
          {
            "description": "Include campaign schedules.",
            "in": "query",
            "name": "includeSchedules",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include campaign schedules.",
              "title": "Includeschedules",
              "type": "boolean"
            }
          },
          {
            "description": "Include users.",
            "in": "query",
            "name": "includeUsers",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include users.",
              "title": "Includeusers",
              "type": "boolean"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CampaignRunSearchSortBy",
              "default": "created_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Filter by campaign runs that are preserved or not.",
            "in": "query",
            "name": "preserve",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaign runs that are preserved or not.",
              "title": "Preserve"
            }
          },
          {
            "description": "Filter by model name.",
            "in": "query",
            "name": "model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by model name.",
              "title": "Model"
            }
          },
          {
            "description": "Filter by campaign runs that are vendored or not.",
            "in": "query",
            "name": "vendored",
            "required": false,
            "schema": {
              "default": false,
              "description": "Filter by campaign runs that are vendored or not.",
              "title": "Vendored",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaignRunsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get campaign runs.",
        "tags": [
          "Campaign-Runs"
        ]
      },
      "post": {
        "description": "Runs the campaign using the specified providers. The provided name helps identify the campaign run.",
        "operationId": "post_campaign_runs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRunCampaignBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Run campaign.",
        "tags": [
          "Campaign-Runs"
        ]
      }
    },
    "/backend/v1/campaign-runs/{campaignRunId}": {
      "delete": {
        "description": "Deletes a campaign run.",
        "operationId": "delete_campaign_runs_campaignRunId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a campaign run.",
        "tags": [
          "Campaign-Runs"
        ]
      },
      "get": {
        "description": "Returns a campaign run based on its ID. Optional parameters allow including results,\nproviders, and schedule objects in the response.",
        "operationId": "get_campaign_runs_campaignRunId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          },
          {
            "description": "Include attack results in response",
            "in": "query",
            "name": "includeResults",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include attack results in response",
              "title": "Includeresults",
              "type": "boolean"
            }
          },
          {
            "description": "Include providers that the campaign was run against",
            "in": "query",
            "name": "includeProviders",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include providers that the campaign was run against",
              "title": "Includeproviders",
              "type": "boolean"
            }
          },
          {
            "description": "Include the campaign run's schedule if it has one",
            "in": "query",
            "name": "includeSchedule",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the campaign run's schedule if it has one",
              "title": "Includeschedule",
              "type": "boolean"
            }
          },
          {
            "description": "Include the campaign run's campaign",
            "in": "query",
            "name": "includeCampaign",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the campaign run's campaign",
              "title": "Includecampaign",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaignRunResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get campaign run.",
        "tags": [
          "Campaign-Runs"
        ]
      },
      "patch": {
        "description": "Modifies the campaign run's status, name and start time.",
        "operationId": "patch_campaign_runs_campaignRunId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchCampaignRunBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update campaign run.",
        "tags": [
          "Campaign-Runs"
        ]
      }
    },
    "/backend/v1/campaign-runs/{campaignRunId}/access": {
      "get": {
        "operationId": "get_campaign_runs_campaignRunId_access",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignRunProjectAccess"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Campaign-Runs"
        ]
      },
      "patch": {
        "operationId": "patch_campaign_runs_campaignRunId_access",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchCampaignRunProjectAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Patch",
        "tags": [
          "Campaign-Runs"
        ]
      }
    },
    "/backend/v1/campaign-runs/{campaignRunId}/retry": {
      "post": {
        "operationId": "post_campaign_runs_campaignRunId_retry",
        "parameters": [
          {
            "in": "path",
            "name": "campaignRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignrunid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Post",
        "tags": [
          "Campaign-Runs"
        ]
      }
    },
    "/backend/v1/campaign-schedules": {
      "get": {
        "description": "Retrieves a list of campaign schedules that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_campaign_schedules",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "If specified, will only return schedules that run the specified campaign.",
            "in": "query",
            "name": "campaignId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "If specified, will only return schedules that run the specified campaign.",
              "title": "Campaignid"
            }
          },
          {
            "description": "Limits the amount of returned objects. Max 100, min 1.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of returned objects. Max 100, min 1.",
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaignSchedulesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get campaign schedules.",
        "tags": [
          "Campaign-Schedules"
        ]
      },
      "post": {
        "description": "Schedules a campaign run by its ID.\nYou can specify the interval time, start time, end time, frequency, number of occurrences, providers and name.",
        "operationId": "post_campaign_schedules",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCampaignScheduleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCampaignScheduleResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Run campaigns on a schedule.",
        "tags": [
          "Campaign-Schedules"
        ]
      }
    },
    "/backend/v1/campaign-schedules/{campaignScheduleId}": {
      "delete": {
        "description": "This will cancel any scheduled campaign runs created by the schedule",
        "operationId": "delete_campaign_schedules_campaignScheduleId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignScheduleId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignscheduleid",
              "type": "string"
            }
          },
          {
            "description": "Also cancel campaign runs in the schedule that are in progress, defaults to False",
            "in": "query",
            "name": "cancelRunningAttacks",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Also cancel campaign runs in the schedule that are in progress, defaults to False",
              "title": "Cancelrunningattacks"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a campaign run schedule.",
        "tags": [
          "Campaign-Schedules"
        ]
      },
      "get": {
        "description": "Retrieves a scheduled campaign run by its ID.",
        "operationId": "get_campaign_schedules_campaignScheduleId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignScheduleId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignscheduleid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchedule"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get scheduled campaign run.",
        "tags": [
          "Campaign-Schedules"
        ]
      },
      "patch": {
        "description": "Updates a scheduled campaign run.\nYou can modify the interval time, start time, end time, frequency, number of occurrences, and name.",
        "operationId": "patch_campaign_schedules_campaignScheduleId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignScheduleId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignscheduleid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateScheduleParams"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a scheduled campaign run.",
        "tags": [
          "Campaign-Schedules"
        ]
      }
    },
    "/backend/v1/campaigns": {
      "get": {
        "description": "Retrieves a list of campaigns that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_campaigns",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "If true, return vendored campaigns created by the system. If not set, returns both.",
            "in": "query",
            "name": "vendored",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": false,
              "description": "If true, return vendored campaigns created by the system. If not set, returns both.",
              "title": "Vendored"
            }
          },
          {
            "description": "Filter by campaigns that include an attack of these types.",
            "in": "query",
            "name": "attackTechnique",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/AttackTechnique"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by campaigns that include an attack of these types.",
              "title": "Attacktechnique"
            }
          },
          {
            "description": "Only return campaigns that last ran before this timestamp.",
            "in": "query",
            "name": "lastRunBefore",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return campaigns that last ran before this timestamp.",
              "title": "Lastrunbefore"
            }
          },
          {
            "description": "Only return campaigns that last ran after this timestamp.",
            "in": "query",
            "name": "lastRunAfter",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return campaigns that last ran after this timestamp.",
              "title": "Lastrunafter"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CampaignSortBy",
              "default": "created_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Include users.",
            "in": "query",
            "name": "includeUsers",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include users.",
              "title": "Includeusers",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaignsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get campaigns.",
        "tags": [
          "Campaigns"
        ]
      },
      "post": {
        "description": "Creates a new campaign. You can specify the campaign's name, description, and associated attacks.",
        "operationId": "post_campaigns",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCampaignsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create campaign.",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/backend/v1/campaigns/{campaignId}": {
      "delete": {
        "description": "Deletes a campaign.",
        "operationId": "delete_campaigns_campaignId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a campaign.",
        "tags": [
          "Campaigns"
        ]
      },
      "get": {
        "description": "Retrieves a campaign by its ID.",
        "operationId": "get_campaigns_campaignId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignid",
              "type": "string"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCampaignResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get campaign.",
        "tags": [
          "Campaigns"
        ]
      },
      "patch": {
        "description": "Updates a campaign. You can modify the campaign's name, description, and associated attacks.",
        "operationId": "patch_campaigns_campaignId",
        "parameters": [
          {
            "in": "path",
            "name": "campaignId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Campaignid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchCampaignBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update campaign.",
        "tags": [
          "Campaigns"
        ]
      }
    },
    "/backend/v1/chats": {
      "get": {
        "description": "Retrieves a list of chats that match the given criteria, with the option to adjust the limit for more results.\n\nChats contain details of user interactions with a LLM.",
        "operationId": "get_chats",
        "parameters": [
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "If true return only chats that have been marked 'starred'.",
            "in": "query",
            "name": "starred",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "If true return only chats that have been marked 'starred'.",
              "title": "Starred"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get chats.",
        "tags": [
          "Chats"
        ]
      },
      "post": {
        "description": "Create a new chat with an LLM.\n\nAccepts two types of request bodies, allowing you to create chats from prompts or prompt templates.",
        "operationId": "post_chats",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostChatsFromPromptBody"
                  },
                  {
                    "$ref": "#/components/schemas/PostChatsFromTemplateBody"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create chat.",
        "tags": [
          "Chats"
        ]
      }
    },
    "/backend/v1/chats/public/{accessId}": {
      "get": {
        "description": "Retrieves a chat using a public access ID, including its prompts and other relevant data.\n\nThe chat must be publicly accessible.",
        "operationId": "get_chats_public_accessId",
        "parameters": [
          {
            "in": "path",
            "name": "accessId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Accessid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPublicChatResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get chat by access ID.",
        "tags": [
          "Chats"
        ]
      }
    },
    "/backend/v1/chats/{chatId}": {
      "delete": {
        "description": "Deletes a chat. Only the chat's owner can delete it.",
        "operationId": "delete_chats_chatId",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Chatid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete chat.",
        "tags": [
          "Chats"
        ]
      },
      "get": {
        "description": "Retrieves a chat by its ID, including its associated prompts.\n\nThe user must have access to the chat.\n\nAccess is automatically granted to the creator and can be manually assigned to others by the owner.",
        "operationId": "get_chats_chatId",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Chatid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get chat.",
        "tags": [
          "Chats"
        ]
      },
      "patch": {
        "description": "Only the chat's owner can perform updates.\nYou can modify the chat name, public access, organization access, user access, remove user access,\nand mark the chat as starred.",
        "operationId": "patch_chats_chatId",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Chatid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchChatBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update chat.",
        "tags": [
          "Chats"
        ]
      }
    },
    "/backend/v1/datasets": {
      "get": {
        "operationId": "get_datasets",
        "parameters": [
          {
            "description": "Include guardrails in the response.",
            "in": "query",
            "name": "includeScanners",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrails in the response.",
              "title": "Includescanners",
              "type": "boolean"
            }
          },
          {
            "description": "Include guardrail packages in the response.",
            "in": "query",
            "name": "includeScannerPackages",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrail packages in the response.",
              "title": "Includescannerpackages",
              "type": "boolean"
            }
          },
          {
            "description": "Include the users that created the datasets in the response.",
            "in": "query",
            "name": "includeUsers",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the users that created the datasets in the response.",
              "title": "Includeusers",
              "type": "boolean"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Include dataset runs in the response",
            "in": "query",
            "name": "includeRuns",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include dataset runs in the response",
              "title": "Includeruns",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDatasetsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Datasets"
        ]
      },
      "post": {
        "operationId": "post_datasets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "fileId": {
                    "format": "uuid",
                    "title": "Fileid",
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string"
                  },
                  "scannerId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerid"
                  },
                  "scannerPackageId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerpackageid"
                  },
                  "scannerVersions": {
                    "anyOf": [
                      {
                        "items": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "maxLength": 100,
                              "minLength": 1,
                              "pattern": "^[a-zA-Z0-9-_]+$",
                              "type": "string"
                            }
                          ]
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerversions"
                  }
                },
                "required": [
                  "name",
                  "fileId"
                ],
                "title": "PostDatasetsBody",
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "format": "binary",
                    "title": "File",
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string"
                  },
                  "scannerId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerid"
                  },
                  "scannerPackageId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerpackageid"
                  },
                  "scannerVersions": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "format": "date-time",
                        "type": "string"
                      },
                      {
                        "maxLength": 100,
                        "minLength": 1,
                        "pattern": "^[a-zA-Z0-9-_]+$",
                        "type": "string"
                      },
                      {
                        "items": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "maxLength": 100,
                              "minLength": 1,
                              "pattern": "^[a-zA-Z0-9-_]+$",
                              "type": "string"
                            }
                          ]
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Scannerversions"
                  }
                },
                "required": [
                  "file",
                  "name"
                ],
                "title": "PostDatasetsFormBody",
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Post",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/backend/v1/datasets/runs": {
      "get": {
        "operationId": "get_datasets_runs",
        "parameters": [
          {
            "description": "Include guardrails in the response.",
            "in": "query",
            "name": "includeScanners",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrails in the response.",
              "title": "Includescanners",
              "type": "boolean"
            }
          },
          {
            "description": "Include guardrail packages in the response.",
            "in": "query",
            "name": "includeScannerPackages",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrail packages in the response.",
              "title": "Includescannerpackages",
              "type": "boolean"
            }
          },
          {
            "description": "Include the users that created the datasets in the response.",
            "in": "query",
            "name": "includeUsers",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the users that created the datasets in the response.",
              "title": "Includeusers",
              "type": "boolean"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Include datasets in the response",
            "in": "query",
            "name": "includeDatasets",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include datasets in the response",
              "title": "Includedatasets",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDatasetRunsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/backend/v1/datasets/runs/{datasetRunId}": {
      "get": {
        "operationId": "get_datasets_runs_datasetRunId",
        "parameters": [
          {
            "in": "path",
            "name": "datasetRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Datasetrunid",
              "type": "string"
            }
          },
          {
            "description": "Include dataset in the response",
            "in": "query",
            "name": "includeDataset",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include dataset in the response",
              "title": "Includedataset",
              "type": "boolean"
            }
          },
          {
            "description": "Include guardrail in the response",
            "in": "query",
            "name": "includeScanner",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrail in the response",
              "title": "Includescanner",
              "type": "boolean"
            }
          },
          {
            "description": "Include guardrail package in the response if one is associated to the dataset",
            "in": "query",
            "name": "includeScannerPackage",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include guardrail package in the response if one is associated to the dataset",
              "title": "Includescannerpackage",
              "type": "boolean"
            }
          },
          {
            "description": "Include user in the response",
            "in": "query",
            "name": "includeUser",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include user in the response",
              "title": "Includeuser",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDatasetRunResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/backend/v1/datasets/runs/{datasetRunId}/download": {
      "get": {
        "deprecated": true,
        "operationId": "get_datasets_runs_datasetRunId_download",
        "parameters": [
          {
            "in": "path",
            "name": "datasetRunId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Datasetrunid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/backend/v1/datasets/{datasetId}": {
      "get": {
        "operationId": "get_datasets_datasetId",
        "parameters": [
          {
            "in": "path",
            "name": "datasetId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Datasetid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDatasetResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get",
        "tags": [
          "Datasets"
        ]
      }
    },
    "/backend/v1/files": {
      "post": {
        "description": "Upload a file.",
        "operationId": "post_files",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_post_files"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Upload a file.",
        "tags": [
          "Files"
        ]
      }
    },
    "/backend/v1/files/{fileId}": {
      "get": {
        "description": "Get a file's metadata by the file ID.",
        "operationId": "get_files_fileId",
        "parameters": [
          {
            "in": "path",
            "name": "fileId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Fileid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFileResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get a file's metadata by the file ID.",
        "tags": [
          "Files"
        ]
      }
    },
    "/backend/v1/generations": {
      "post": {
        "operationId": "post_generations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostGenerationsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostGenerationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Post",
        "tags": [
          "Generations"
        ]
      }
    },
    "/backend/v1/license": {
      "get": {
        "description": "Return license status for on-premise installations.",
        "operationId": "get_license",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLicenseResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get license status.",
        "tags": [
          "License"
        ]
      },
      "patch": {
        "description": "Update the license for the system.",
        "operationId": "patch_license",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchLicenseBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update license.",
        "tags": [
          "License"
        ]
      }
    },
    "/backend/v1/org": {
      "get": {
        "description": "Retrieves the organization details.",
        "operationId": "get_org",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrgResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get organization.",
        "tags": [
          "Org"
        ]
      },
      "patch": {
        "description": "Modifies the organization's name, application URL, and enables multi-factor authentication.",
        "operationId": "patch_org",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOrgBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update organization.",
        "tags": [
          "Org"
        ]
      },
      "post": {
        "description": "Creates a new organization with the given name.",
        "operationId": "post_org",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrgBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostOrgResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create organization.",
        "tags": [
          "Org"
        ]
      }
    },
    "/backend/v1/org/preferences": {
      "get": {
        "description": "Retrieves all organization preferences.",
        "operationId": "get_org_preferences",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrganizationPreferencesResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get org preferences.",
        "tags": [
          "Org"
        ]
      },
      "patch": {
        "description": "Modifies the organization preferences.",
        "operationId": "patch_org_preferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOrganizationPreferencesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update org preferences.",
        "tags": [
          "Org"
        ]
      }
    },
    "/backend/v1/project": {
      "get": {
        "description": "Retrieves the default project for the specified group or chatbot, or the global settings if neither is provided.",
        "operationId": "get_project",
        "parameters": [
          {
            "description": "ID of chatbot to get the project for.",
            "in": "query",
            "name": "chatbotId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ID of chatbot to get the project for.",
              "title": "Chatbotid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetGlobalProjectResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get default project.",
        "tags": [
          "Project"
        ]
      }
    },
    "/backend/v1/projects": {
      "get": {
        "description": "Retrieves a list of projects that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_projects",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Filter projects by these types.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ProjectType"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter projects by these types.",
              "title": "Type"
            }
          },
          {
            "description": "Filter by projects that have these providers added.",
            "in": "query",
            "name": "providerId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by projects that have these providers added.",
              "title": "Providerid"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ProjectSearchSortBy",
              "default": "created_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Get projects that the current user is/isn't admin of.",
            "in": "query",
            "name": "admin",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get projects that the current user is/isn't admin of.",
              "title": "Admin"
            }
          },
          {
            "description": "Filter by projects created by the specified user.",
            "in": "query",
            "name": "createdBy",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by projects created by the specified user.",
              "title": "Createdby"
            }
          },
          {
            "description": "Filter projects by their deployment status.",
            "in": "query",
            "name": "deploymentStatus",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ProjectDeploymentStatus"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter projects by their deployment status.",
              "title": "Deploymentstatus"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProjectsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get projects.",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "description": "Creates a new project",
        "operationId": "post_projects",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostProjectsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}": {
      "delete": {
        "description": "Deletes a project.\nOnly an org admin can delete projects.",
        "operationId": "delete_projects_project",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete project.",
        "tags": [
          "Projects"
        ]
      },
      "get": {
        "description": "Retrieves a project by its ID or name.",
        "operationId": "get_projects_project",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProjectResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get project by ID or name.",
        "tags": [
          "Projects"
        ]
      },
      "patch": {
        "description": "Modifies a project, including its name, friendly ID and configuration.",
        "operationId": "patch_projects_project",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProjectBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/members": {
      "post": {
        "description": "Only a project admin can add users to a project.",
        "operationId": "post_projects_project_members",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostProjectMembersBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add users to project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/members/{userId}": {
      "delete": {
        "description": "Removes a user from a project. Only a project admin can perform this action.",
        "operationId": "delete_projects_project_members_userId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove user from project.",
        "tags": [
          "Projects"
        ]
      },
      "patch": {
        "description": "Updates a user's admin status within a project. Only project admins can modify a user's admin status.",
        "operationId": "patch_projects_project_members_userId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProjectMemberBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update project user.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/providers/{providerId}": {
      "delete": {
        "description": "Remove provider from project.",
        "operationId": "delete_projects_project_providers_providerId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "providerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Providerid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove provider from project.",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "description": "Add provider to project.",
        "operationId": "post_projects_project_providers_providerId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "providerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Providerid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add provider to project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/scanner-packages/{scannerPackageId}": {
      "delete": {
        "description": "Remove guardrail package from project.",
        "operationId": "delete_projects_project_scanner_packages_scannerPackageId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove guardrail package from project.",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "description": "Add scanner_package to project.",
        "operationId": "post_projects_project_scanner_packages_scannerPackageId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add scanner_package to project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/scanners": {
      "get": {
        "description": "Retrieves all guardrails and their configurations\nused when sending prompts or performing scans within the project.",
        "operationId": "get_projects_project_scanners",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Project",
              "type": "string"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProjectScannersResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get project guardrails.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/projects/{project}/scanners/{scannerId}": {
      "delete": {
        "description": "Remove guardrail from project.",
        "operationId": "delete_projects_project_scanners_scannerId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Remove guardrail from project.",
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "description": "Add guardrail to project.",
        "operationId": "post_projects_project_scanners_scannerId",
        "parameters": [
          {
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Project"
            }
          },
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Add guardrail to project.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/backend/v1/prompts": {
      "get": {
        "description": "Retrieves a list of prompts that match the given criteria, with the option to adjust the limit for more results.",
        "operationId": "get_prompts",
        "parameters": [
          {
            "description": "Pass cursor from response to get next or prev page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pass cursor from response to get next or prev page.",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "Only return results that match the given external metadata\n(as a stringified json e.g. '{\"key\": \"value\"}' would return only prompts with a \"key\" entry matching \"value\")",
            "in": "query",
            "name": "externalMetadata",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given external metadata\n(as a stringified json e.g. '{\"key\": \"value\"}' would return only prompts with a \"key\" entry matching \"value\")",
              "title": "Externalmetadata"
            }
          },
          {
            "description": "Only returns prompts belonging to the authenticated user.",
            "in": "query",
            "name": "onlyUser",
            "required": false,
            "schema": {
              "default": true,
              "description": "Only returns prompts belonging to the authenticated user.",
              "title": "Onlyuser",
              "type": "boolean"
            }
          },
          {
            "description": "Repeated query parameters of outcomes. Filters results by these outcomes.",
            "in": "query",
            "name": "outcomes",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/PromptOutcome"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "default": [],
              "description": "Repeated query parameters of outcomes. Filters results by these outcomes.",
              "title": "Outcomes"
            }
          },
          {
            "description": "Only returns prompts sent to specified projects.",
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only returns prompts sent to specified projects.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Projectid",
              "type": "array"
            }
          },
          {
            "description": "Only returns prompts sent to specified providers.",
            "in": "query",
            "name": "providerId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only returns prompts sent to specified providers.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Providerid",
              "type": "array"
            }
          },
          {
            "description": "Only returns prompts that match the given types.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only returns prompts that match the given types.",
              "items": {
                "$ref": "#/components/schemas/PromptType"
              },
              "title": "Type",
              "type": "array"
            }
          },
          {
            "description": "Only return prompts sent by the given user(s).",
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only return prompts sent by the given user(s).",
              "items": {
                "type": "string"
              },
              "title": "Userid",
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPromptsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get prompts.",
        "tags": [
          "Prompts"
        ]
      },
      "post": {
        "description": "Send a prompt to a provider, after being scanned with the chosen project configuration.",
        "operationId": "post_prompts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostPromptsBodyFromChat"
                  },
                  {
                    "$ref": "#/components/schemas/PostPromptsBody"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostPromptsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Send prompt.",
        "tags": [
          "Prompts"
        ]
      }
    },
    "/backend/v1/prompts/templates": {
      "get": {
        "description": "Retrieves a list of prompt templates that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_prompts_templates",
        "parameters": [
          {
            "description": "ID of an api token, only return results created before that token. Or if datetime instead of ID, will only return results before that datetime",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ID of an api token, only return results created before that token. Or if datetime instead of ID, will only return results before that datetime",
              "title": "Before"
            }
          },
          {
            "description": "ID of an api token, only return results created after that token. Or if datetime instead of ID, will only return results after that datetime",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "ID of an api token, only return results created after that token. Or if datetime instead of ID, will only return results after that datetime",
              "title": "After"
            }
          },
          {
            "description": "Limits the amount of returned objects. Max 100, min 1",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of returned objects. Max 100, min 1",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Filter by project ID or friendly ID.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by project ID or friendly ID.",
              "title": "Project"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPromptTemplatesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get prompt templates.",
        "tags": [
          "Prompts"
        ]
      },
      "post": {
        "description": "Create a new prompt template.",
        "operationId": "post_prompts_templates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostPromptTemplatesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create prompt template.",
        "tags": [
          "Prompts"
        ]
      }
    },
    "/backend/v1/prompts/templates/{promptTemplateId}": {
      "delete": {
        "description": "Delete a prompt template.",
        "operationId": "delete_prompts_templates_promptTemplateId",
        "parameters": [
          {
            "in": "path",
            "name": "promptTemplateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Prompttemplateid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete a prompt template.",
        "tags": [
          "Prompts"
        ]
      },
      "get": {
        "description": "Retrieves a prompt template by its ID.",
        "operationId": "get_prompts_templates_promptTemplateId",
        "parameters": [
          {
            "in": "path",
            "name": "promptTemplateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Prompttemplateid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPromptTemplateResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get prompt template.",
        "tags": [
          "Prompts"
        ]
      },
      "patch": {
        "description": "Modifies a prompt template, allowing you to update the name.",
        "operationId": "patch_prompts_templates_promptTemplateId",
        "parameters": [
          {
            "in": "path",
            "name": "promptTemplateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Prompttemplateid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPromptTemplateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update prompt template.",
        "tags": [
          "Prompts"
        ]
      }
    },
    "/backend/v1/prompts/{promptId}": {
      "get": {
        "description": "Retrieves a prompt by its ID.",
        "operationId": "get_prompts_promptId",
        "parameters": [
          {
            "in": "path",
            "name": "promptId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Promptid",
              "type": "string"
            }
          },
          {
            "description": "Return the guardrails and their configuration that were run on the prompt.",
            "in": "query",
            "name": "fetchScanners",
            "required": false,
            "schema": {
              "default": false,
              "description": "Return the guardrails and their configuration that were run on the prompt.",
              "title": "Fetchscanners",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPromptResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get prompt.",
        "tags": [
          "Prompts"
        ]
      },
      "patch": {
        "description": "Modifies a prompt by its ID.\nThis endpoint allows you to mark the prompt for preservation when deleting prompts periodically.",
        "operationId": "patch_prompts_promptId",
        "parameters": [
          {
            "in": "path",
            "name": "promptId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Promptid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchPromptBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update prompt.",
        "tags": [
          "Prompts"
        ]
      }
    },
    "/backend/v1/providers": {
      "get": {
        "description": "Retrieves a list of providers that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_providers",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Get providers added to the project.",
            "in": "query",
            "name": "addedToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get providers added to the project.",
              "title": "Addedtoprojectid"
            }
          },
          {
            "description": "Get providers accessible to the project.",
            "in": "query",
            "name": "accessibleToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get providers accessible to the project.",
              "title": "Accessibletoprojectid"
            }
          },
          {
            "description": "Get providers enabled for the project.",
            "in": "query",
            "name": "enabledForProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get providers enabled for the project.",
              "title": "Enabledforprojectid"
            }
          },
          {
            "description": "Get providers that are or are not available to all projects.",
            "in": "query",
            "name": "availableGlobally",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get providers that are or are not available to all projects.",
              "title": "Availableglobally"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          },
          {
            "description": "Get providers that are for red team use only.",
            "in": "query",
            "name": "redTeam",
            "required": false,
            "schema": {
              "default": false,
              "description": "Get providers that are for red team use only.",
              "title": "Redteam",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProvidersResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get providers.",
        "tags": [
          "Providers"
        ]
      },
      "post": {
        "description": "Creates a new provider using a template or a system provider.",
        "operationId": "post_providers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostProvidersWithTemplateBody"
                  },
                  {
                    "$ref": "#/components/schemas/PostProvidersFromSystemBody"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create provider.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/providers/system": {
      "get": {
        "description": "Get available system providers.",
        "operationId": "get_providers_system",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSystemProvidersResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get available system providers.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/providers/system/{systemProvider}": {
      "get": {
        "description": "Retrieves a system provider by ID or name.",
        "operationId": "get_providers_system_systemProvider",
        "parameters": [
          {
            "in": "path",
            "name": "systemProvider",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Systemprovider"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSystemProviderResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get system provider.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/providers/test": {
      "post": {
        "description": "Tests the connection to a provider using either a provider template or system provider,\nensuring the connection is functional.",
        "operationId": "post_providers_test",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostProviderTestTemplateBody"
                  },
                  {
                    "$ref": "#/components/schemas/PostProviderTestSystemBody"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostProviderTestResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Test provider.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/providers/{provider}": {
      "delete": {
        "description": "Must be admin of the provider's group or super admin if it is globally accessible.",
        "operationId": "delete_providers_provider",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Provider"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete provider.",
        "tags": [
          "Providers"
        ]
      },
      "get": {
        "description": "Retrieves a provider by ID or name.",
        "operationId": "get_providers_provider",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Provider"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProviderResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get provider.",
        "tags": [
          "Providers"
        ]
      },
      "patch": {
        "description": "Requires group admin access for the provider or org admin access if it is globally accessible.\nYou can update the provider's name, template, inputs, and secrets.",
        "operationId": "patch_providers_provider",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Provider"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProviderBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update provider.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/providers/{provider}/access": {
      "patch": {
        "description": "Updates the availability of a specified provider within a project.",
        "operationId": "patch_providers_provider_access",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Provider"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchProviderAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update provider availability.",
        "tags": [
          "Providers"
        ]
      }
    },
    "/backend/v1/refusal-catalogs": {
      "post": {
        "description": "The most recent phrases are used at attack time. Pass an empty list to clear.",
        "operationId": "post_refusal_catalogs",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRefusalCatalog"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRefusalCatalogResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Set refusal catalog.",
        "tags": [
          "Refusal-Catalogs"
        ]
      }
    },
    "/backend/v1/refusal-catalogs/latest": {
      "get": {
        "description": "Get the latest refusal catalog.",
        "operationId": "get_refusal_catalogs_latest",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalCatalogResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get the latest refusal catalog.",
        "tags": [
          "Refusal-Catalogs"
        ]
      }
    },
    "/backend/v1/refusal-catalogs/{refusalCatalogId}": {
      "get": {
        "description": "Get refusal catalog by id.",
        "operationId": "get_refusal_catalogs_refusalCatalogId",
        "parameters": [
          {
            "in": "path",
            "name": "refusalCatalogId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Refusalcatalogid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefusalCatalogResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get refusal catalog by id.",
        "tags": [
          "Refusal-Catalogs"
        ]
      }
    },
    "/backend/v1/scanner-packages": {
      "get": {
        "description": "Retrieves a list of guardrail packages that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_scanner_packages",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Get guardrails that match the given published state.",
            "in": "query",
            "name": "published",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails that match the given published state.",
              "title": "Published"
            }
          },
          {
            "description": "Get results that scan in the given direction.",
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ScannerDirection"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that scan in the given direction.",
              "title": "Direction"
            }
          },
          {
            "description": "Get results that were created from the given source.",
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScannerSourceType"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that were created from the given source.",
              "title": "Source"
            }
          },
          {
            "description": "Get results that are of the given scan type.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScanType"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are of the given scan type.",
              "title": "Type"
            }
          },
          {
            "description": "Get results that are packaged or not. ",
            "in": "query",
            "name": "packaged",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are packaged or not. ",
              "title": "Packaged"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ScannerSearchSortBy",
              "default": "created_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Get results that are active/inactive. Only has an effect if addedToProjectId or availableToProjectId is provided.",
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are active/inactive. Only has an effect if addedToProjectId or availableToProjectId is provided.",
              "title": "Active"
            }
          },
          {
            "description": "Get results match the chosen active state for the given project.",
            "in": "query",
            "name": "enabledForProject",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results match the chosen active state for the given project.",
              "title": "Enabledforproject"
            }
          },
          {
            "description": "Get results with the given tags.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results with the given tags.",
              "title": "Tags"
            }
          },
          {
            "description": "Get guardrails added to project.",
            "in": "query",
            "name": "addedToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails added to project.",
              "title": "Addedtoprojectid"
            }
          },
          {
            "description": "Get guardrails accessible to project.",
            "in": "query",
            "name": "accessibleToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails accessible to project.",
              "title": "Accessibletoprojectid"
            }
          },
          {
            "description": "Get guardrails that belong to the specified packages.",
            "in": "query",
            "name": "packageId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Get guardrails that belong to the specified packages.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Packageid",
              "type": "array"
            }
          },
          {
            "description": "Get guardrails that are set to given mode(s) for the chosen project.",
            "in": "query",
            "name": "mode",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScanMode"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails that are set to given mode(s) for the chosen project.",
              "title": "Mode"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScannerPackagesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get guardrail packages.",
        "tags": [
          "Scanner-Packages"
        ]
      },
      "post": {
        "description": "Creates a new guardrail package.",
        "operationId": "post_scanner_packages",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostPackageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostIDResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create guardrail package.",
        "tags": [
          "Scanner-Packages"
        ]
      }
    },
    "/backend/v1/scanner-packages/{scannerPackageId}": {
      "delete": {
        "description": "Deletes a guardrail package by ID. You can optionally delete the guardrails included in the package.",
        "operationId": "delete_scanner_packages_scannerPackageId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/DeleteScannerPackageBody"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete guardrail package.",
        "tags": [
          "Scanner-Packages"
        ]
      },
      "get": {
        "description": "Retrieves a guardrail package by ID.",
        "operationId": "get_scanner_packages_scannerPackageId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScannerPackageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get guardrail package.",
        "tags": [
          "Scanner-Packages"
        ]
      },
      "patch": {
        "description": "Updates a guardrail package by ID.",
        "operationId": "patch_scanner_packages_scannerPackageId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScannerPackageBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update guardrail package.",
        "tags": [
          "Scanner-Packages"
        ]
      }
    },
    "/backend/v1/scanner-packages/{scannerPackageId}/access": {
      "patch": {
        "description": "Updates the availability of a guardrail package across projects.",
        "operationId": "patch_scanner_packages_scannerPackageId_access",
        "parameters": [
          {
            "in": "path",
            "name": "scannerPackageId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerpackageid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScannerPackageAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update guardrail package availability.",
        "tags": [
          "Scanner-Packages"
        ]
      }
    },
    "/backend/v1/scanners": {
      "get": {
        "description": "Retrieves a list of guardrails that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_scanners",
        "parameters": [
          {
            "description": "Include the packages for guardrails in the response.",
            "in": "query",
            "name": "includePackages",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the packages for guardrails in the response.",
              "title": "Includepackages",
              "type": "boolean"
            }
          },
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Get guardrails that match the given published state.",
            "in": "query",
            "name": "published",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails that match the given published state.",
              "title": "Published"
            }
          },
          {
            "description": "Get results that scan in the given direction.",
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ScannerDirection"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that scan in the given direction.",
              "title": "Direction"
            }
          },
          {
            "description": "Get results that were created from the given source.",
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScannerSourceType"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that were created from the given source.",
              "title": "Source"
            }
          },
          {
            "description": "Get results that are of the given scan type.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScanType"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are of the given scan type.",
              "title": "Type"
            }
          },
          {
            "description": "Get results that are packaged or not. ",
            "in": "query",
            "name": "packaged",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are packaged or not. ",
              "title": "Packaged"
            }
          },
          {
            "description": "Sort results by the given parameter.",
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ScannerSearchSortBy",
              "default": "created_at",
              "description": "Sort results by the given parameter."
            }
          },
          {
            "description": "Get results that are active/inactive. Only has an effect if addedToProjectId or availableToProjectId is provided.",
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results that are active/inactive. Only has an effect if addedToProjectId or availableToProjectId is provided.",
              "title": "Active"
            }
          },
          {
            "description": "Get results match the chosen active state for the given project.",
            "in": "query",
            "name": "enabledForProject",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results match the chosen active state for the given project.",
              "title": "Enabledforproject"
            }
          },
          {
            "description": "Get results with the given tags.",
            "in": "query",
            "name": "tags",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get results with the given tags.",
              "title": "Tags"
            }
          },
          {
            "description": "Get guardrails added to project.",
            "in": "query",
            "name": "addedToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails added to project.",
              "title": "Addedtoprojectid"
            }
          },
          {
            "description": "Get guardrails accessible to project.",
            "in": "query",
            "name": "accessibleToProjectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails accessible to project.",
              "title": "Accessibletoprojectid"
            }
          },
          {
            "description": "Get guardrails that belong to the specified packages.",
            "in": "query",
            "name": "packageId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Get guardrails that belong to the specified packages.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Packageid",
              "type": "array"
            }
          },
          {
            "description": "Get guardrails that are set to given mode(s) for the chosen project.",
            "in": "query",
            "name": "mode",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/ScanMode"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get guardrails that are set to given mode(s) for the chosen project.",
              "title": "Mode"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScannersResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get guardrails.",
        "tags": [
          "Scanners"
        ]
      },
      "post": {
        "description": "Creates a new guardrail with the specified configuration.",
        "operationId": "post_scanners",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostScannersBody"
                  },
                  {
                    "$ref": "#/components/schemas/DuplicateScannerRequest"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create guardrail.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/export": {
      "post": {
        "description": "Export the given guardrails and guardrail packages in a zip file.",
        "operationId": "post_scanners_export",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportScannersBody"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Export the given guardrails and guardrail packages in a zip file.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/import": {
      "post": {
        "description": "Import guardrails and guardrail packages from a zip file.",
        "operationId": "post_scanners_import",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_post_scanners_import"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZipImportResult"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Import guardrails.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/{scannerId}": {
      "delete": {
        "description": "Deletes a guardrail by ID.",
        "operationId": "delete_scanners_scannerId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete guardrail.",
        "tags": [
          "Scanners"
        ]
      },
      "get": {
        "description": "Retrieves a guardrail by ID.",
        "operationId": "get_scanners_scannerId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          },
          {
            "description": "Get the config at a given point in time.",
            "in": "query",
            "name": "configAt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the config at a given point in time.",
              "title": "Configat"
            }
          },
          {
            "description": "Get the guardrail at a specific version",
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "maxLength": 100,
                  "minLength": 1,
                  "pattern": "^[a-zA-Z0-9-_]+$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Get the guardrail at a specific version",
              "title": "Version"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScannerResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get guardrail.",
        "tags": [
          "Scanners"
        ]
      },
      "patch": {
        "description": "Updates a guardrail's configuration, name, files, tags and direction.",
        "operationId": "patch_scanners_scannerId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScannerBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchScannerResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update guardrail.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/{scannerId}/access": {
      "patch": {
        "description": "Updates a guardrail's availability across projects.",
        "operationId": "patch_scanners_scannerId_access",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScannerAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update guardrail availability.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/{scannerId}/versions": {
      "get": {
        "description": "Get metadata for all existing versions of a guardrail.",
        "operationId": "get_scanners_scannerId_versions",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          },
          {
            "description": "Only return published versions.",
            "in": "query",
            "name": "onlyPublished",
            "required": false,
            "schema": {
              "default": false,
              "description": "Only return published versions.",
              "title": "Onlypublished",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScannerVersionsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get metadata for all existing versions of a guardrail.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scanners/{scannerId}/versions/{versionId}": {
      "patch": {
        "description": "Update a guardrail version.",
        "operationId": "patch_scanners_scannerId_versions_versionId",
        "parameters": [
          {
            "in": "path",
            "name": "scannerId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scannerid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "versionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Versionid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScannerVersionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update a guardrail version.",
        "tags": [
          "Scanners"
        ]
      }
    },
    "/backend/v1/scans": {
      "get": {
        "description": "Retrieves a list of scan requests that match the given criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_scans",
        "parameters": [
          {
            "description": "Pass cursor from response to get next or prev page.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pass cursor from response to get next or prev page.",
              "title": "Cursor"
            }
          },
          {
            "description": "Only return results that match the given text.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given text.",
              "title": "Search"
            }
          },
          {
            "description": "Limits the amount of results.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of results.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Whether results should be sorted in ascending order.",
            "in": "query",
            "name": "ascending",
            "required": false,
            "schema": {
              "default": false,
              "description": "Whether results should be sorted in ascending order.",
              "title": "Ascending",
              "type": "boolean"
            }
          },
          {
            "description": "Only return results from before this timestamp.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from before this timestamp.",
              "title": "Before"
            }
          },
          {
            "description": "Only return results from after this timestamp.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results from after this timestamp.",
              "title": "After"
            }
          },
          {
            "description": "Only return results that match the given external metadata\n(as a stringified json e.g. '{\"key\": \"value\"}' would return only prompts with a \"key\" entry matching \"value\")",
            "in": "query",
            "name": "externalMetadata",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return results that match the given external metadata\n(as a stringified json e.g. '{\"key\": \"value\"}' would return only prompts with a \"key\" entry matching \"value\")",
              "title": "Externalmetadata"
            }
          },
          {
            "description": "Only returns prompts belonging to the authenticated user.",
            "in": "query",
            "name": "onlyUser",
            "required": false,
            "schema": {
              "default": true,
              "description": "Only returns prompts belonging to the authenticated user.",
              "title": "Onlyuser",
              "type": "boolean"
            }
          },
          {
            "description": "Repeated query parameters of outcomes. Filters results by these outcomes.",
            "in": "query",
            "name": "outcomes",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "$ref": "#/components/schemas/PromptOutcome"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "default": [],
              "description": "Repeated query parameters of outcomes. Filters results by these outcomes.",
              "title": "Outcomes"
            }
          },
          {
            "description": "Only returns prompts sent to specified projects.",
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only returns prompts sent to specified projects.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Projectid",
              "type": "array"
            }
          },
          {
            "description": "Only returns prompts sent to specified providers.",
            "in": "query",
            "name": "providerId",
            "required": false,
            "schema": {
              "default": [],
              "description": "Only returns prompts sent to specified providers.",
              "items": {
                "format": "uuid",
                "type": "string"
              },
              "title": "Providerid",
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScansResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get scans.",
        "tags": [
          "Scans"
        ]
      },
      "post": {
        "description": "Runs guardrails against the provided data,\nwith the option to enable/disable specific guardrails and use the given project configuration.",
        "operationId": "post_scans",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostScansBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostScansResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Scan data.",
        "tags": [
          "Scans"
        ]
      }
    },
    "/backend/v1/scans/raw/{format}": {
      "post": {
        "description": "Currently supported formats are\n    openai-chat-request: OpenAI chat completions API request body\n    openai-chat-sse: OpenAI chat completions API SSE response body\n    openai-responses-request: OpenAI responses API SSE request body\n    openai-responses-sse: OpenAI responses API SSE response body",
        "operationId": "post_scans_raw_format",
        "parameters": [
          {
            "in": "path",
            "name": "format",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RawScanFormat"
            }
          },
          {
            "description": "Project to use configuration for. If not provided, the global default will be used.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Project to use configuration for. If not provided, the global default will be used.",
              "title": "Project"
            }
          },
          {
            "description": "If true, the final outcome is 'flagged' if any scanner is triggered.Otherwise, the outcome depends on the scanner's mode.",
            "in": "query",
            "name": "flagOnly",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true, the final outcome is 'flagged' if any scanner is triggered.Otherwise, the outcome depends on the scanner's mode.",
              "title": "Flagonly",
              "type": "boolean"
            }
          },
          {
            "description": "Optional prompt ID to link this scan request to. If provided and scan_direction is response,the scan request will be linked to the given prompt ID as a response scan.",
            "in": "query",
            "name": "requestPromptId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Optional prompt ID to link this scan request to. If provided and scan_direction is response,the scan request will be linked to the given prompt ID as a response scan.",
              "title": "Requestpromptid"
            }
          },
          {
            "description": "The direction of the scan, either 'request' or 'response'.This is used for determining which guardrails to apply based on project configuration.",
            "in": "query",
            "name": "scanDirection",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ScanDirection",
              "default": "request",
              "description": "The direction of the scan, either 'request' or 'response'.This is used for determining which guardrails to apply based on project configuration."
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Process a raw request/response body from a third party API and inject the result in the returned body.",
        "tags": [
          "Scans"
        ]
      }
    },
    "/backend/v1/scans/{scanRequestId}": {
      "get": {
        "description": "Retrieves a scan request by its ID.",
        "operationId": "get_scans_scanRequestId",
        "parameters": [
          {
            "in": "path",
            "name": "scanRequestId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scanrequestid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScanResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get scan.",
        "tags": [
          "Scans"
        ]
      },
      "patch": {
        "description": "Updates a scan request by ID, marking it as preserved.",
        "operationId": "patch_scans_scanRequestId",
        "parameters": [
          {
            "in": "path",
            "name": "scanRequestId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Scanrequestid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchScanBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update scan preservation.",
        "tags": [
          "Scans"
        ]
      }
    },
    "/backend/v1/secrets": {
      "get": {
        "description": "Retrieves all available secrets, with their values obfuscated.",
        "operationId": "get_secrets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSecretsResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get secrets.",
        "tags": [
          "Secrets"
        ]
      },
      "post": {
        "description": "Creates a secret. The value will not be accessible through the API after creation.",
        "operationId": "post_secrets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostSecretsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create secret.",
        "tags": [
          "Secrets"
        ]
      }
    },
    "/backend/v1/secrets/{secretId}": {
      "delete": {
        "description": "Deletes a secret by its ID.",
        "operationId": "delete_secrets_secretId",
        "parameters": [
          {
            "in": "path",
            "name": "secretId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Secretid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete secret.",
        "tags": [
          "Secrets"
        ]
      },
      "get": {
        "description": "Retrieves a secret by its ID.",
        "operationId": "get_secrets_secretId",
        "parameters": [
          {
            "in": "path",
            "name": "secretId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Secretid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSecretResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get secret.",
        "tags": [
          "Secrets"
        ]
      },
      "patch": {
        "description": "Updates a secret by its ID, including the name and value.",
        "operationId": "patch_secrets_secretId",
        "parameters": [
          {
            "in": "path",
            "name": "secretId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Secretid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchSecretBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update secret.",
        "tags": [
          "Secrets"
        ]
      }
    },
    "/backend/v1/tokens": {
      "get": {
        "description": "Retrieves a list of tokens matching the given filter criteria,\nwith the option to adjust the limit for more results.\nThe token values are obfuscated.",
        "operationId": "get_tokens",
        "parameters": [
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response.",
              "title": "Cursor"
            }
          },
          {
            "description": "If true returns only machine tokens, if false doesn't return machine tokens.",
            "in": "query",
            "name": "machine",
            "required": false,
            "schema": {
              "default": false,
              "description": "If true returns only machine tokens, if false doesn't return machine tokens.",
              "title": "Machine",
              "type": "boolean"
            }
          },
          {
            "description": "If set to the Id of a user group and machine=True, returns machine tokens for only that specific user group. Has no effect if machine=False.",
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "If set to the Id of a user group and machine=True, returns machine tokens for only that specific user group. Has no effect if machine=False.",
              "title": "Projectid"
            }
          },
          {
            "description": "Limits the amount of returned objects. Max 100, min 1.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Limits the amount of returned objects. Max 100, min 1.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokensResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get API tokens.",
        "tags": [
          "Tokens"
        ]
      },
      "post": {
        "description": "Creates an API token.\nBased on the provided body,\nit will either create a machine token for the org or user group, or a personal API token.",
        "operationId": "post_tokens",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PostTokensMachineBody"
                  },
                  {
                    "$ref": "#/components/schemas/PostTokensBody"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostTokensResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create API token.",
        "tags": [
          "Tokens"
        ]
      }
    },
    "/backend/v1/tokens/{tokenId}": {
      "delete": {
        "description": "Deletes an api token by its ID.",
        "operationId": "delete_tokens_tokenId",
        "parameters": [
          {
            "in": "path",
            "name": "tokenId",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Tokenid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete API token.",
        "tags": [
          "Tokens"
        ]
      }
    },
    "/backend/v1/users": {
      "get": {
        "description": "Retrieves a list of users matching the given filter criteria,\nwith the option to adjust the limit for more results.",
        "operationId": "get_users",
        "parameters": [
          {
            "description": "User's name or email address for filtering results",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "User's name or email address for filtering results",
              "title": "Search"
            }
          },
          {
            "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Selects page for paginated results. Pass in the next or prev attribute in the response",
              "title": "Cursor"
            }
          },
          {
            "description": "Number of results to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Number of results to return.",
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "If provided, returns only users in that project",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "If provided, returns only users in that project",
              "title": "Project"
            }
          },
          {
            "description": "If provided, returns only users assigned to that role",
            "in": "query",
            "name": "roleId",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "If provided, returns only users assigned to that role",
              "title": "Roleid"
            }
          },
          {
            "description": "Include all of the roles from the returned users in the response.",
            "in": "query",
            "name": "includeRoles",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include all of the roles from the returned users in the response.",
              "title": "Includeroles",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUsersResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get users.",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "description": "Creates a new user.",
        "operationId": "post_users",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUserBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostUserResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Create user.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/me": {
      "get": {
        "description": "Retrieves the currently authenticated user's information.",
        "operationId": "get_users_me",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUsersMeResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get authenticated user.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/token-verification": {
      "post": {
        "description": "Verifies a user with a token and sets the user's password.",
        "operationId": "post_users_token_verification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUsersVerificationBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Set user's password.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/{userId}": {
      "delete": {
        "description": "Deletes a user by their ID.",
        "operationId": "delete_users_userId",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Delete user.",
        "tags": [
          "Users"
        ]
      },
      "get": {
        "description": "Retrieves a user by their ID.",
        "operationId": "get_users_userId",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          },
          {
            "description": "Include the user's roles in the response",
            "in": "query",
            "name": "includeRoles",
            "required": false,
            "schema": {
              "default": false,
              "description": "Include the user's roles in the response",
              "title": "Includeroles",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Get user.",
        "tags": [
          "Users"
        ]
      },
      "patch": {
        "description": "Updates a user by their ID.\n\nOnly users can change their own name.\nUsers created through social account connections (Google, Microsoft) cannot change their names.",
        "operationId": "patch_users_userId",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchUserBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Update user.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/{userId}/multifactor": {
      "delete": {
        "description": "Resets multi-factor authentication for a user.",
        "operationId": "delete_users_userId_multifactor",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Reset multi-factor authentication.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/{userId}/roles/{roleId}": {
      "delete": {
        "description": "Removes a specified role from a user.",
        "operationId": "delete_users_userId_roles_roleId",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Retract role from user.",
        "tags": [
          "Users"
        ]
      },
      "post": {
        "description": "Assigns a specified role to a user.",
        "operationId": "post_users_userId_roles_roleId",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "title": "Roleid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Assign role to user.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/{userId}/verification/resend": {
      "post": {
        "description": "Sends the verification email again to the user.",
        "operationId": "post_users_userId_verification_resend",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessMessage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Re-sends users verification email.",
        "tags": [
          "Users"
        ]
      }
    },
    "/backend/v1/users/{userId}/verification/token": {
      "post": {
        "description": "Generates a token for a user to verify their account and set their password.",
        "operationId": "post_users_userId_verification_token",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "title": "Userid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostVerificationTokenResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Generate verification token.",
        "tags": [
          "Users"
        ]
      }
    },
    "/google/{provider}/v1beta/models/{model}:{methodName}": {
      "post": {
        "description": "Send a generateContent request to the specified provider using compatible format.\nThe request will be processed through the configured guardrails and security policies\nbefore being forwarded to the provider.",
        "operationId": "post_google_provider_v1beta_models_model:methodName",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "model",
            "required": true,
            "schema": {
              "title": "Model",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "methodName",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/GoogleGenerateContentMethod"
            }
          },
          {
            "in": "query",
            "name": "alt",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Alt"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostGoogleGenerateContentBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Google gemini generateContent API gateway.",
        "tags": [
          "Google"
        ]
      }
    },
    "/openai/{provider}/chat/completions": {
      "post": {
        "description": "Send a chat completion request to the specified provider using OpenAI-compatible format.\nThe request will be processed through the configured guardrails and security policies before being forwarded to the provider.",
        "operationId": "post_openai_provider_chat_completions",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostChatCompletionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Chat Completions.",
        "tags": [
          "Openai"
        ]
      }
    },
    "/openai/{provider}/openai/deployments/{model}/chat/completions": {
      "post": {
        "description": "Send a chat completion request to the specified provider using OpenAI-compatible format.\nThe request will be processed through the configured guardrails and security policies before being forwarded to the provider.",
        "operationId": "post_openai_provider_openai_deployments_model_chat_completions",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostChatCompletionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "Chat Completions.",
        "tags": [
          "Openai"
        ]
      }
    },
    "/openai/{provider}/openai/responses": {
      "post": {
        "description": "Send a responses request to the specified provider using OpenAI-compatible format.\nThe request will be processed through the configured guardrails and security policies\nbefore being forwarded to the provider.",
        "operationId": "post_openai_provider_openai_responses",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOpenAIResponsesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "OpenAI responses API gateway.",
        "tags": [
          "Openai"
        ]
      }
    },
    "/openai/{provider}/responses": {
      "post": {
        "description": "Send a responses request to the specified provider using OpenAI-compatible format.\nThe request will be processed through the configured guardrails and security policies\nbefore being forwarded to the provider.",
        "operationId": "post_openai_provider_responses",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "title": "Provider",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOpenAIResponsesBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "summary": "OpenAI responses API gateway.",
        "tags": [
          "Openai"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "US1 availability zone",
      "url": "https://us1.calypsoai.app"
    },
    {
      "description": "EU1 availability zone",
      "url": "https://eu1.calypsoai.app"
    }
  ]
}