{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foresea-ink/json-schema/foresea-ink-mandate-draft-request-schema.json",
  "title": "MandateDraftRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foresea-ink-autonomous-twin-api-openapi.yml#/components/schemas/MandateDraftRequest",
  "properties": {
    "client_request_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Client Request Id"
    },
    "account_scope_id": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1,
      "title": "Account Scope Id"
    },
    "strategy_version": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Strategy Version"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "live": {
      "type": "boolean",
      "title": "Live",
      "default": false
    },
    "allowed_actions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Allowed Actions",
      "default": [
        "BUY_YES",
        "BUY_NO"
      ]
    },
    "max_capital": {
      "type": "string",
      "title": "Max Capital",
      "default": "0"
    },
    "max_loss": {
      "type": "string",
      "title": "Max Loss",
      "default": "0"
    },
    "max_model_usd": {
      "type": "string",
      "title": "Max Model Usd",
      "default": "0"
    },
    "max_model_tokens": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Max Model Tokens",
      "default": 0
    },
    "max_model_requests": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Max Model Requests",
      "default": 0
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "client_request_id",
    "account_scope_id",
    "strategy_version",
    "expires_at"
  ]
}