{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outlit-ai/json-schema/outlit-ai-tool-output-outlit-list-customers-schema.json",
  "title": "ToolOutput_outlit_list_customers",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outlit-ai-openapi.json#/components/schemas/ToolOutput_outlit_list_customers",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "billingStatus": {
            "type": "string",
            "enum": [
              "none",
              "trialing",
              "paying",
              "past_due",
              "churned"
            ]
          },
          "activatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastActivityAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "daysSinceActivity": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "contactCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "arr": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$",
                        "description": "ISO 4217 code."
                      },
                      "decimals": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 4
                      },
                      "formatted": {
                        "type": "string",
                        "description": "For example \"$12,000.00\"."
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "decimals",
                      "formatted"
                    ],
                    "additionalProperties": false,
                    "description": "0 for a churned, paused or trialing customer."
                  },
                  "estimated": {
                    "type": "boolean",
                    "description": "Includes a usage or per-seat estimate (~ in the app)."
                  },
                  "lifecycle": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "active",
                          "past_due",
                          "paused",
                          "churned",
                          "trialing"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "parts": {
                    "description": "Annualized parts; null when unknown or not applicable.",
                    "type": "object",
                    "properties": {
                      "subscriptions": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$",
                                "description": "ISO 4217 code."
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 4
                              },
                              "formatted": {
                                "type": "string",
                                "description": "For example \"$12,000.00\"."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "decimals",
                              "formatted"
                            ],
                            "additionalProperties": false,
                            "description": "amount is in minor units; divide by 10^decimals, or read formatted."
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Live subscriptions at list price."
                      },
                      "usage": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$",
                                "description": "ISO 4217 code."
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 4
                              },
                              "formatted": {
                                "type": "string",
                                "description": "For example \"$12,000.00\"."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "decimals",
                              "formatted"
                            ],
                            "additionalProperties": false,
                            "description": "amount is in minor units; divide by 10^decimals, or read formatted."
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Usage estimate."
                      },
                      "invoicedLast12Months": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$",
                                "description": "ISO 4217 code."
                              },
                              "decimals": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 4
                              },
                              "formatted": {
                                "type": "string",
                                "description": "For example \"$12,000.00\"."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "decimals",
                              "formatted"
                            ],
                            "additionalProperties": false,
                            "description": "amount is in minor units; divide by 10^decimals, or read formatted."
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Invoice charges outside any subscription whose service began in the last 12 months, leaving out setup fees and prorations."
                      }
                    },
                    "required": [
                      "subscriptions",
                      "usage",
                      "invoicedLast12Months"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "description": "Which counted: subscriptions plus usage, or invoicedLast12Months, the larger.",
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "subscriptions",
                          "invoices"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "value",
                  "estimated",
                  "lifecycle"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when the app shows no ARR."
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "email",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "outlit": {
            "type": "object",
            "properties": {
              "firstSyncedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "firstSyncedAt"
            ],
            "additionalProperties": false,
            "description": "Outlit's own times for its record, not facts about the customer."
          },
          "renewal": {
            "description": "The renewal date outlit_get_customer include renewal shows: stored in Outlit or the CRM, or, for a customer with neither, derived from the billing period end (source billing). Null when there is none. Always set by the server; absent only in results saved before it existed.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "description": "Renewal date, YYYY-MM-DD (UTC)."
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "outlit",
                      "crm",
                      "billing"
                    ],
                    "description": "Set in Outlit, a CRM opportunity, or a stored billing renewal."
                  }
                },
                "required": [
                  "date",
                  "source"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "description": "With filters.credits: the customer's soonest-depleting Autumn credit pool, in the pool's own units (credits, not money).",
            "type": "object",
            "properties": {
              "runsOutAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "description": "When the pool is forecast to run out, ISO 8601 UTC."
              },
              "pool": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              "balance": {
                "type": "object",
                "properties": {
                  "remaining": {
                    "type": "number"
                  },
                  "granted": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "remaining",
                  "granted"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "runsOutAt",
              "pool",
              "balance"
            ],
            "additionalProperties": false
          },
          "meter": {
            "description": "With orderBy meter_usage: the quantity the list is ranked by.",
            "type": "object",
            "properties": {
              "feature": {
                "type": "string"
              },
              "reported": {
                "type": "number",
                "description": "The provider-reported usage, summed over the accounts, in the feature's units."
              },
              "accounts": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991,
                "description": "How many live Autumn accounts were summed."
              },
              "observed": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When the connection's last scan completed; null when it is not known."
              }
            },
            "required": [
              "feature",
              "reported",
              "accounts",
              "observed"
            ],
            "additionalProperties": false
          },
          "fields": {
            "description": "With input fields, in order.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "hubspot",
                        "salesforce",
                        "attio",
                        "pylon",
                        "traits"
                      ]
                    },
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 191
                    }
                  },
                  "required": [
                    "source",
                    "key"
                  ],
                  "additionalProperties": false
                },
                "label": {
                  "type": "string"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  },
                  "description": "The customer's values, without duplicates; empty when it holds none."
                }
              },
              "required": [
                "field",
                "label",
                "values"
              ],
              "additionalProperties": false
            }
          },
          "crmSummary": {
            "description": "The customer's CRM and support tool accounts at a glance: the stage and the first custom picklists, numbers and yes/no fields, at most 4 fields from 3 accounts. Each field is a reference outlit_list_customers fields accepts. Absent when not enabled, with input fields, or when no account has such a field.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "description": "The system that holds the account: hubspot, salesforce, attio or pylon."
                },
                "connectionId": {
                  "type": "string",
                  "description": "The Outlit integration connection the account syncs through."
                },
                "accountId": {
                  "type": "string",
                  "description": "The account's id in that system."
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The account's name in that system."
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "object",
                        "properties": {
                          "source": {
                            "type": "string",
                            "enum": [
                              "hubspot",
                              "salesforce",
                              "attio",
                              "pylon",
                              "traits"
                            ]
                          },
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 191
                          }
                        },
                        "required": [
                          "source",
                          "key"
                        ],
                        "additionalProperties": false
                      },
                      "label": {
                        "type": "string"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        },
                        "description": "The customer's values, without duplicates; empty when it holds none."
                      }
                    },
                    "required": [
                      "field",
                      "label",
                      "values"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "provider",
                "connectionId",
                "accountId",
                "name",
                "fields"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "name",
          "domain",
          "billingStatus",
          "activatedAt",
          "lastActivityAt",
          "daysSinceActivity",
          "contactCount",
          "arr",
          "owner",
          "outlit"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "nextCursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "How many items match, over every page; null when it isn't counted."
        }
      },
      "required": [
        "hasMore",
        "nextCursor",
        "total"
      ],
      "additionalProperties": false
    },
    "totals": {
      "type": "object",
      "properties": {
        "arr": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$",
                "description": "ISO 4217 code."
              },
              "decimals": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4
              },
              "formatted": {
                "type": "string",
                "description": "For example \"$12,000.00\"."
              }
            },
            "required": [
              "amount",
              "currency",
              "decimals",
              "formatted"
            ],
            "additionalProperties": false,
            "description": "amount is in minor units; divide by 10^decimals, or read formatted."
          },
          "description": "Total ARR of every matched customer, one per currency."
        }
      },
      "required": [
        "arr"
      ],
      "additionalProperties": false
    },
    "arrCurrencies": {
      "description": "When the call ordered or bounded by ARR: the currencies among the matches. With more than one, amounts were compared unconverted; pass filters.arr.currency to rank within one.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "coverage": {
      "description": "When items is empty, or when filters.credits or orderBy meter_usage left customers out.",
      "type": "object",
      "properties": {
        "searched": {
          "type": "string",
          "maxLength": 500
        },
        "stale": {
          "description": "With filters.credits or orderBy meter_usage: customers left out because their Autumn connection's last scan is over 3 hours old.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "withoutMeter": {
          "description": "With orderBy meter_usage: customers looked through that report no usage for the meter, so are not listed.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "ambiguous": {
          "description": "With filters.credits or orderBy meter_usage: customers left out because their email key matches several Autumn accounts, so none can be attributed to them.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "searched"
      ],
      "additionalProperties": false
    },
    "truncation": {
      "description": "Set by the gateway when the list was cut to fit the response cap; next says how to get the rest.",
      "type": "object",
      "properties": {
        "truncated": {
          "type": "boolean",
          "const": true
        },
        "reason": {
          "type": "string",
          "enum": [
            "byte_cap",
            "row_cap"
          ]
        },
        "returned": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "next": {
          "type": "object",
          "properties": {
            "instruction": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "tool": {
              "type": "string",
              "maxLength": 100,
              "pattern": "^outlit_[a-z0-9_]+$"
            },
            "input": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            }
          },
          "required": [
            "instruction"
          ],
          "additionalProperties": false
        },
        "clipped": {
          "description": "Text fields cut because one item alone was over the cap: each path, and the call that reads it whole when one exists.",
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "maxLength": 200
              },
              "next": {
                "type": "object",
                "properties": {
                  "instruction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "tool": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^outlit_[a-z0-9_]+$"
                  },
                  "input": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "instruction"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "path"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "truncated",
        "reason",
        "returned",
        "next"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "items",
    "page",
    "totals"
  ],
  "additionalProperties": false
}