{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Preemption Risk Tracker - AI Regulation Compliance",
    "description": "Track federal preemption risks for state AI regulations. Monitor Executive Orders, DOJ actions, federal courts for Colorado AI Act (CAIA), California SB 1047 compliance. RAG-ready output for AI agents. Risk scoring, conflict analysis, compliance calendar.",
    "version": "1.0",
    "x-build-id": "XZ4aZgzwglwy3FMLC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai_solutionist~federal-preemption-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai_solutionist-federal-preemption-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ai_solutionist~federal-preemption-tracker/runs": {
      "post": {
        "operationId": "runs-sync-ai_solutionist-federal-preemption-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ai_solutionist~federal-preemption-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-ai_solutionist-federal-preemption-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchMode": {
            "title": "Intelligence Gathering Mode",
            "enum": [
              "comprehensive",
              "courtCases",
              "executiveOrders",
              "dojActions",
              "federalRegister",
              "stateConflicts",
              "riskAssessment"
            ],
            "type": "string",
            "description": "Select the scope of federal preemption monitoring. 'Comprehensive' scans all sources (recommended for full compliance coverage). Individual modes focus on specific federal authorities for targeted monitoring.",
            "default": "comprehensive"
          },
          "targetStates": {
            "title": "Target State Regulations",
            "type": "array",
            "description": "Select state AI regulations to monitor for federal preemption risks. Colorado (CAIA SB 24-205) and California (SB 1047) are highest-impact. 'ALL' monitors all tracked state AI laws.",
            "items": {
              "type": "string",
              "enum": [
                "CO",
                "CA",
                "CT",
                "IL",
                "TX",
                "NY",
                "VA",
                "WA",
                "ALL"
              ]
            },
            "default": [
              "CO",
              "CA"
            ]
          },
          "keywords": {
            "title": "Additional Search Keywords",
            "type": "string",
            "description": "Add custom keywords to expand search scope (comma-separated). Default keywords include: AI regulation, algorithmic discrimination, preemption, disparate impact, automated decision systems.",
            "default": ""
          },
          "dateRangeStart": {
            "title": "Monitor From Date",
            "type": "string",
            "description": "Start date for federal action monitoring (YYYY-MM-DD format). Defaults to 6 months ago for comprehensive coverage of recent regulatory developments.",
            "default": ""
          },
          "dateRangeEnd": {
            "title": "Monitor Until Date",
            "type": "string",
            "description": "End date for monitoring window (YYYY-MM-DD format). Defaults to today. Set future dates for scheduled monitoring.",
            "default": ""
          },
          "courtTypes": {
            "title": "Federal Court Levels",
            "type": "array",
            "description": "Select federal court levels to monitor for preemption litigation. Supreme Court and Circuit Courts have highest precedential impact on state AI law validity.",
            "items": {
              "type": "string",
              "enum": [
                "scotus",
                "circuit",
                "district",
                "all"
              ]
            },
            "default": [
              "scotus",
              "circuit"
            ]
          },
          "includeProposedRules": {
            "title": "Include Proposed Rules (NPRMs)",
            "type": "boolean",
            "description": "Monitor Notices of Proposed Rulemaking from federal agencies. Proposed rules signal future regulatory direction and provide early warning of preemption risks.",
            "default": true
          },
          "includeFinalRules": {
            "title": "Include Final Rules",
            "type": "boolean",
            "description": "Monitor final rules published in the Federal Register. Final rules have immediate legal effect and may directly preempt state AI regulations.",
            "default": true
          },
          "includeExecutiveOrders": {
            "title": "Include Executive Orders",
            "type": "boolean",
            "description": "Track Executive Orders affecting AI policy and state regulation. Critical for monitoring EO 14281 (Removing Barriers to AI) and similar presidential actions.",
            "default": true
          },
          "riskScoreThreshold": {
            "title": "Minimum Risk Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Filter results by preemption risk score (0-100). Lower thresholds capture more events; higher thresholds focus on critical risks. Recommended: 25 for comprehensive monitoring, 50 for high-priority alerts.",
            "default": 25
          },
          "maxResults": {
            "title": "Maximum Results Per Source",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Limit results per data source. Higher values provide comprehensive coverage; lower values reduce processing time and API costs.",
            "default": 100
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "detailed",
              "summary",
              "agent_optimized",
              "compliance_report"
            ],
            "type": "string",
            "description": "Select output format optimized for your use case. 'Agent Optimized' includes RAG chunks and structured metadata for AI agent consumption. 'Compliance Report' generates audit-ready documentation.",
            "default": "agent_optimized"
          },
          "courtListenerApiToken": {
            "title": "CourtListener API Token (Optional)",
            "type": "string",
            "description": "Your CourtListener API token for enhanced federal court data access. Free tokens available at courtlistener.com. Increases rate limits and enables full-text search."
          },
          "webhookUrl": {
            "title": "Alert Webhook URL",
            "type": "string",
            "description": "Receive real-time notifications when critical preemption risks are detected. Supports n8n, Zapier, Make, and custom webhook endpoints."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Configure proxy settings for web scraping of DOJ and White House sources. Apify proxy recommended for reliability."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}