#!/usr/bin/env bash
set -euo pipefail

# FinanceGPT generated client starter
# Source: FinanceGPT API v2 OpenAPI index
# OpenAPI SHA-256: 228f3cf999f801d03634f0dad1fc6d296671bc13a8cf0d80994b00a57b62f910
# Operations: post-investment-governed-ai-operations
# Credential: FINANCEGPT_API_KEY environment variable; no credential is embedded.
# Authority: API identity and generated code do not create model-promotion, QLM-binding or Financial Actions authority.

# Create a shadow or governed-review investment operation | scope: investment:run
curl -X POST \
  -H "Authorization: Bearer $FINANCEGPT_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{
    "portfolio_id": "string",
    "mode": "shadow",
    "title": "string",
    "investment_thesis": "string",
    "thematic_universe_id": 1,
    "model_portfolio_id": 1,
    "synthetic_option_run_id": 1,
    "xva_snapshot_id": 1,
    "require_thematic": true,
    "require_theme_watch": true,
    "require_lqm": false,
    "require_generative_markets": true
}' \
  "https://financegpt.dev/api/v2/investment/governed-ai-operations"
