{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-sales-product-options-response-schema.json",
  "title": "SalesProductOptionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-cost-attribution-api-openapi.yml#/components/schemas/SalesProductOptionsResponse",
  "properties": {
    "options": {
      "items": {
        "$ref": "#/$defs/SalesProductOption"
      },
      "type": "array",
      "title": "Options"
    }
  },
  "type": "object",
  "required": [
    "options"
  ],
  "$defs": {
    "SalesProductOption": {
      "properties": {
        "sales_product_id": {
          "type": "string",
          "minLength": 1,
          "title": "Sales Product Id"
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "title": "Label"
        },
        "sales_product_key": {
          "type": "string",
          "minLength": 1,
          "title": "Sales Product Key"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "title": "Name"
        },
        "resource_kind": {
          "type": "string",
          "enum": [
            "seed",
            "env",
            "task",
            "research"
          ],
          "title": "Resource Kind"
        },
        "resource_key": {
          "type": "string",
          "minLength": 1,
          "title": "Resource Key"
        },
        "account_id": {
          "type": "string",
          "minLength": 1,
          "title": "Account Id"
        },
        "account_name": {
          "type": "string",
          "minLength": 1,
          "title": "Account Name"
        },
        "opportunity_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Opportunity Id"
        },
        "opportunity_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Opportunity Name"
        },
        "contract_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Id"
        },
        "contract_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Name"
        }
      },
      "type": "object",
      "required": [
        "sales_product_id",
        "label",
        "sales_product_key",
        "name",
        "resource_kind",
        "resource_key",
        "account_id",
        "account_name"
      ],
      "title": "SalesProductOption"
    }
  }
}