{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vergio-ai/json-schema/vergio-ai-get-api-v1-deals-response-schema.json",
  "title": "GetApiV1DealsResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/vergio-ai-openapi-generated.yml#/components/schemas/GetApiV1DealsResponse",
  "type": "object",
  "properties": {
    "deals": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "storeId": {
            "type": "string"
          },
          "accountName": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "integer"
          },
          "dealKind": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          },
          "ownerUserId": {
            "type": "string"
          },
          "nextStep": {
            "type": "string"
          },
          "nextStepDue": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "emailPermissionStatus": {
            "type": "string"
          },
          "emailPermissionSource": {
            "type": "string"
          },
          "emailPermissionConfirmedAt": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "next_cursor": {
      "type": "string"
    }
  }
}