{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-post-generations-body-schema.json",
  "title": "PostGenerationsBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-generations-api-openapi.yml#/components/schemas/PostGenerationsBody",
  "properties": {
    "input": {
      "oneOf": [
        {
          "$ref": "#/$defs/ScannerDescriptionGenerationInput"
        },
        {
          "$ref": "#/$defs/CustomIntentGenerationInput"
        },
        {
          "$ref": "#/$defs/SystemIntentsGenerationInput"
        }
      ],
      "title": "Input"
    }
  },
  "required": [
    "input"
  ],
  "type": "object",
  "$defs": {
    "CustomIntentGenerationInput": {
      "properties": {
        "intent": {
          "title": "Intent",
          "type": "string"
        },
        "type": {
          "const": "custom_intent",
          "default": "custom_intent",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "intent"
      ],
      "title": "CustomIntentGenerationInput",
      "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"
    },
    "SystemIntentsGenerationInput": {
      "properties": {
        "systemPrompt": {
          "maxLength": 50000,
          "title": "Systemprompt",
          "type": "string"
        },
        "type": {
          "const": "system_intents",
          "default": "system_intents",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "systemPrompt"
      ],
      "title": "SystemIntentsGenerationInput",
      "type": "object"
    }
  }
}